Problem with Windows solver

Discussion about building and installing Elmer
Post Reply
gforti
Posts: 77
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Problem with Windows solver

Post by gforti »

Hello all,

Been having problem using Elmer in Windows. Installed the version from the site:
https://www.nic.funet.fi/pub/sci/physic ... n/windows/

Same case which I solve fine in Linux is giving the following error:

Code: Select all

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0xe2e1c3eb
#1  0xe2d97034
#2  0x292e2231
#3  0x4b7e7ff7
#4  0x4d15241e
#5  0x4d1014a3
#6  0x4d150f4d
#7  0x2e3c7079
#8  0x2e3cd7f8
#9  0xe08e7fa6
#10  0xe0900d43
#11  0xe0bdbd55
#12  0xe0be4b57
#13  0x292e16ef
#14  0x292e2ac3
#15  0x292e13c0
#16  0x292e14f5
#17  0x4bfc7613
#18  0x4d1026a0
#19  0xffffffff

Files are here:
https://github.com/gforti84/ElmerFiles
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Problem with Windows solver

Post by raback »

Hi, Could you upload also std out with "max output level = 30". The error message does not really tell much here... -Peter
gforti
Posts: 77
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Re: Problem with Windows solver

Post by gforti »

Hello Peter, sorry for the delay, I was traveling.

Here is the output:

Code: Select all

Microsoft Windows [Version 10.0.19044.2728]
(c) Microsoft Corporation. All rights reserved.

C:\Users\forti\OneDrive\Área de Trabalho\Temp\Elmer>ElmerSolver case_3d_ld_h_6_nl.sif
ELMER SOLVER (v 9.0) STARTED AT: 2023/04/15 21:33:31
ParCommInit:  Initialize #PEs:            1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 9.0 (Rev: Release, Compiled: 2023-04-11)
MAIN:  Running one task without MPI parallelization.
MAIN:  Running with just one thread per task.
MAIN:  Lua interpreter linked in.
MAIN: =============================================================
OpenIncludeFile: Trying to include file: "transient_3d_lpri_extR_H.definition"
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: case_3d_ld_h_6_nl.sif
LoadInputFile: Scanning input file: case_3d_ld_h_6_nl.sif
LoadInputFile: Scanning only size info
LoadInputFile: First time visiting
LoadInputFile: Reading base load of sif file
OpenIncludeFile: Trying to include file: "transient_3d_lpri_extR_H.definition"
OpenIncludeFile: Trying to include file: BH_DL_data.dat
OpenIncludeFile: Trying to include file: BH_DL_data.dat
LoadInputFile: Loading input file: case_3d_ld_h_6_nl.sif
LoadInputFile: Reading base load of sif file
OpenIncludeFile: Trying to include file: "transient_3d_lpri_extR_H.definition"
CheckKeyword:  Unlisted keyword: [electrode area] in section: [component 1]
CheckKeyword:  Unlisted keyword: [coil use w vector] in section: [component 1]
CheckKeyword:  Unlisted keyword: [w vector variable name] in section: [component 1]
CheckKeyword:  Unlisted keyword: [normalize coil current] in section: [component 1]
CheckKeyword:  Unlisted keyword: [electrode area] in section: [component 2]
CheckKeyword:  Unlisted keyword: [coil use w vector] in section: [component 2]
CheckKeyword:  Unlisted keyword: [w vector variable name] in section: [component 2]
CheckKeyword:  Unlisted keyword: [normalize coil current] in section: [component 2]
CheckKeyword:  Unlisted keyword: [is_source re] in section: [body force 1]
CheckKeyword:  Unlisted keyword: [is_source im] in section: [body force 1]
CheckKeyword:  Unlisted keyword: [save coil set] in section: [solver 1]
CheckKeyword:  Unlisted keyword: [save coil index] in section: [solver 1]
CheckKeyword:  Unlisted keyword: [electricx conductivity] in section: [material 3]
OpenIncludeFile: Trying to include file: BH_DL_data.dat
CheckKeyword:  Unlisted keyword: [steinmetz coefficient k_loss] in section: [material 3]
CheckKeyword:  Unlisted keyword: [steinmetz power alpha_loss] in section: [material 3]
CheckKeyword:  Unlisted keyword: [electricx conductivity] in section: [material 4]
OpenIncludeFile: Trying to include file: BH_DL_data.dat
CheckKeyword:  Unlisted keyword: [steinmetz coefficient k_loss] in section: [material 4]
CheckKeyword:  Unlisted keyword: [steinmetz power alpha_loss] in section: [material 4]
CheckKeyword:  Unlisted keyword: [a re {e}] in section: [initial condition 1]
CheckKeyword:  Unlisted keyword: [a im {e}] in section: [initial condition 1]
CheckKeyword:  Unlisted keyword: [w] in section: [initial condition 1]
CheckKeyword:  Unlisted keyword: [a re {e}] in section: [boundary condition 1]
CheckKeyword:  Unlisted keyword: [a im {e}] in section: [boundary condition 1]
CheckKeyword:  Unlisted keyword: [jfix] in section: [boundary condition 1]
LoadInputFile: Number of BCs: 1
LoadInputFile: Number of Body Forces: 1
LoadInputFile: Number of Initial Conditions: 1
LoadInputFile: Number of Materials: 4
LoadInputFile: Number of Equations: 2
LoadInputFile: Number of Solvers: 6
LoadInputFile: Number of Bodies: 7
ListTagKeywords: Setting weight for keywords!
ListTagKeywords: No parameters width suffix: normalize by area
ListTagKeywords: Setting weight for keywords!
ListTagKeywords: No parameters width suffix: normalize by volume
Loading user function library: [CoilSolver]...[CoilSolver_Init0]
Loading user function library: [CircuitsAndDynamics]...[CircuitsAndDynamicsHarmonic_Init0]
Loading user function library: [MagnetoDynamics]...[WhitneyAVHarmonicSolver_Init0]
WhitneyHarmonicSolver_Init0: Setting element type to: "n:1 e:1"
Loading user function library: [MagnetoDynamics]...[MagnetoDynamicsCalcFields_Init0]
MagnetoDynamicsCalcFields_Init0: The target solver seems to be complex valued
MagnetoDynamicsCalcFields_Init0: Target Variable Solver Index: 3
Loading user function library: [CircuitsAndDynamics]...[CircuitsOutput_Init0]
Loading user function library: [SaveData]...[SaveScalars_Init0]
LoadMesh: Loading serial mesh!
ElmerAsciiMesh: Performing step: 1
ElmerAsciiMesh: Base mesh name: ./mesh_anisio
ReadHeaderFile: Reading header info from file: ./mesh_anisio/mesh.header
InitializeMesh: Number of nodes in mesh: 14638
InitializeMesh: Number of bulk elements in mesh: 85086
InitializeMesh: Number of boundary elements in mesh: 10171
InitializeMesh: Initial number of max element nodes: 4
ElmerAsciiMesh: Performing step: 2
ReadNodesFile: Reading nodes from file: ./mesh_anisio/mesh.nodes
MapCoordinates: Performing coordinate mapping
SetMeshDimension: Dimension of mesh is: 3
SetMeshDimension: Max dimension of mesh is: 3
MapCoordinates: Scaling coordinates: 1.000E+00 1.000E+00 1.000E+00
ElmerAsciiMesh: Performing step: 3
ReadElementsFile: Reading bulk elements from file: ./mesh_anisio/mesh.elements
ElmerAsciiMesh: Performing step: 4
ReadBoundaryFile: Reading boundary elements from file: ./mesh_anisio/mesh.boundary
PermuteNodeNumbering: Performing node mapping
ReadTargetNames: Reading names info from file: ./mesh_anisio/mesh.names
ReadTargetNames: > Target Bodies < already defined for Body 1
WARNING:: ReadTargetNames: Could not map name to Body nor BC: air
WARNING:: ReadTargetNames: Could not map name to Body nor BC: pricoil
WARNING:: ReadTargetNames: Could not map name to Body nor BC: seccoil
ReadTargetNames: > Target Bodies < already defined for Body 4
WARNING:: ReadTargetNames: Could not map name to Body nor BC: core_r
ReadTargetNames: > Target Bodies < already defined for Body 5
WARNING:: ReadTargetNames: Could not map name to Body nor BC: core_l
ReadTargetNames: > Target Bodies < already defined for Body 6
WARNING:: ReadTargetNames: Could not map name to Body nor BC: core_u
ReadTargetNames: > Target Bodies < already defined for Body 7
WARNING:: ReadTargetNames: Could not map name to Body nor BC: core_b
WARNING:: ReadTargetNames: Could not map name to Body nor BC: bnry9
WARNING:: ReadTargetNames: Could not map name to Body nor BC: bnry10
MapBodiesAndBCs: Remapping bodies
MapBodiesAndBCs: Minimum initial body index: 1
MapBodiesAndBCs: Maximum initial body index: 7
MapBodiesAndBCs: Remapping boundaries
MapBodiesAndBCs: Minimum initial boundary index: 1
MapBodiesAndBCs: Maximum initial boundary index: 2
ElmerAsciiMesh: Performing step: 5
ElmerAsciiMesh: Performing step: 6
LoadMesh: Loading mesh done
NonNodalElements: Requested elements require creation of edges
FindMeshEdges: Determining faces in 3D mesh
FindMeshFaces3D: Finding mesh faces in 3D mesh
FindMeshFaces3D: Allocating face table of size: 170377
FindMeshFaces3D: Number of faces found: 170377
FindMeshFaces3D: All done
FindMeshEdges: Determining edges in 3D mesh
FindMeshEdges3D: Finding mesh edges in 3D mesh
FindMeshEdges3D: Hash table allocated
FindMeshEdges3D: Allocating edge table of size: 99928
FindMeshEdges3D: Edge table allocated
FindMeshEdges3D: Number of edges found: 99928
FindMeshEdges3D: All done
NonNodalElements: Edge dofs max: 1
NonNodalElements: Element dofs max: 10
LoadMesh: Preparing mesh done
LoadMesh: Elapsed REAL time:     1.8920 (s)
MeshStabParams: Computing stabilization parameters
MeshStabParams: Elapsed REAL time:     0.0800 (s)
CompleteModelKeywords: Completing keywords for mortars and mechanics!
MAIN: -------------------------------------
AddVtuOutputSolverHack: Adding ResultOutputSolver to write VTU output in file: case_3d_t2h
AppendNewSolver: Increasing number of solvers to: 7
AddVtuOutputSolverHack: Finished appending VTU output solver
AddMeshCoordinates: Setting mesh coordinates and time
VariableAdd: Adding variable > Coordinate 1 < of size 14638
VariableAdd: Adding variable > Coordinate 2 < of size 14638
VariableAdd: Adding variable > Coordinate 3 < of size 14638
AddSolvers: Setting up 7 solvers
AddSolvers: Setting up solver 1: coilsolver
AddEquationBasics: Using procedure: CoilSolver CoilSolver
AddEquationBasics: Setting up solver: coilsolver
Loading user function library: [CoilSolver]...[CoilSolver_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [CoilSolver]...[CoilSolver_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [CoilSolver]...[CoilSolver]
AddEquationBasics: Treating variable string: -nooutput coiltmp
AddEquationBasics: Creating standard variable: coiltmp
AddEquationBasics: Computing size of permutation vector
AddEquationBasics: Maximum size of permutation vector is: 114566
AddEquationBasics: Creating solver matrix topology
CreateMatrix: Creating initial permutation
CreateMatrix: Creating inverse of initial order of size: 3365
CreateMatrix: Creating list matrix for equation: coilsolver
MakeListMatrix: Creating list matrix
OptimizeBandwidth: ---------------------------------------------------------
OptimizeBandwidth: Computing matrix structure for: coilsolver
OptimizeBandwidth: Initial bandwidth for coilsolver: 3115
OptimizeBandwidth: Optimized bandwidth for coilsolver: 185
OptimizeBandwidth: ---------------------------------------------------------
CreateMatrix: Initializing list matrix for equation
CRS_CreateMatrix: Creating CRS Matrix of size: 3365
CRS_CreateMatrix: Creating CRS Matrix with nofs: 39227
CreateMatrix: Sparse matrix created
AddEquationBasics: Number of rows in CRS matrix: 3365
AddEquationBasics: Creating solver variable
VariableAdd: Adding variable > coiltmp < of size 3365
AddEquationBasics: Creating exported variable: w
AddEquationBasics: Creating exported variable: w
VariableAdd: Adding variable > w < of size 3365
AddEquationBasics: Succesfully created variable: w
AddEquationBasics: Creating exported variable: coilpot
AddEquationBasics: Creating exported variable: coilpot
VariableAdd: Adding variable > coilpot < of size 3365
AddEquationBasics: Succesfully created variable: coilpot
AddEquationBasics: Creating exported variable: coilpotb
AddEquationBasics: Creating exported variable: coilpotb
VariableAdd: Adding variable > coilpotb < of size 3365
AddEquationBasics: Succesfully created variable: coilpotb
AddEquationBasics: Creating exported variable: potselect
AddEquationBasics: Creating exported variable: potselect
VariableAdd: Adding variable > potselect < of size 3365
AddEquationBasics: Succesfully created variable: potselect
AddEquationBasics: Creating exported variable: coilsetb
AddEquationBasics: Creating exported variable: coilsetb
VariableAdd: Adding variable > coilsetb < of size 3365
AddEquationBasics: Succesfully created variable: coilsetb
AddEquationBasics: Creating exported variable: coilset
AddEquationBasics: Creating exported variable: coilset
VariableAdd: Adding variable > coilset < of size 3365
AddEquationBasics: Succesfully created variable: coilset
AddEquationBasics: Creating exported variable: -elem coilindex e
AddEquationBasics: Creating exported variable: coilindex e
SetActiveElementsTable: Creating active element table for: coilsolver
SetActiveElementsTable: Creating inverse table for elemental variable permutation
SetActiveElementsTable: Number of active elements found : 12038
VariableAdd: Adding variable > coilindex e < of size 12038
AddEquationBasics: Succesfully created variable: coilindex e
AddEquationBasics: Creating exported variable: -dg -dofs 3 coilcurrent e
AddEquationBasics: Creating exported variable: coilcurrent e
CreateDGPerm: Creating permutation for DG variable
CreateDGPerm: Creating DG indexes for bulk elements
CreateDGPerm: Size of DgPerm table: 340344
CreateDGPerm: Created permutation for DG nodes: 48152
VariableAdd: Adding variable > coilcurrent e < of size 144456
AddEquationBasics: Succesfully created variable: coilcurrent e
VariableAdd: Adding variable > coilcurrent e 1 < of size 48152
AddEquationBasics: Succesfully created variable: coilcurrent e 1
VariableAdd: Adding variable > coilcurrent e 2 < of size 48152
AddEquationBasics: Succesfully created variable: coilcurrent e 2
VariableAdd: Adding variable > coilcurrent e 3 < of size 48152
AddEquationBasics: Succesfully created variable: coilcurrent e 3
AddEquationBasics: Creating exported variable: -dofs 3 coilcurrent
AddEquationBasics: Creating exported variable: coilcurrent
VariableAdd: Adding variable > coilcurrent < of size 10095
AddEquationBasics: Succesfully created variable: coilcurrent
VariableAdd: Adding variable > coilcurrent 1 < of size 3365
AddEquationBasics: Succesfully created variable: coilcurrent 1
VariableAdd: Adding variable > coilcurrent 2 < of size 3365
AddEquationBasics: Succesfully created variable: coilcurrent 2
VariableAdd: Adding variable > coilcurrent 3 < of size 3365
AddEquationBasics: Succesfully created variable: coilcurrent 3
VariableAdd: Adding variable > coiltmp Loads < of size 3365
AddSolvers: Setting up solver 2: circuits
AddEquationBasics: Using procedure: CircuitsAndDynamics CircuitsAndDynamicsHarmonic
AddEquationBasics: Setting up solver: circuits
Loading user function library: [CircuitsAndDynamics]...[CircuitsAndDynamicsHarmonic_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [CircuitsAndDynamics]...[CircuitsAndDynamicsHarmonic_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [CircuitsAndDynamics]...[CircuitsAndDynamicsHarmonic]
AddEquationBasics: Treating variable string: x
AddEquationBasics: Creating standard variable: x
AddEquationBasics: Computing size of permutation vector
AddEquationBasics: Maximum size of permutation vector is: 114566
AddEquationBasics: Creating solver matrix topology
CreateMatrix: Creating initial permutation
CreateMatrix: Creating inverse of initial order of size: 3365
AddEquationBasics: No matrix needed any more, freeing structures!
AddEquationBasics: Creating solver variable
VariableAdd: Adding variable > x < of size 114566
AddSolvers: Setting up solver 3: mgdynamics
AddEquationBasics: Using procedure: MagnetoDynamics WhitneyAVHarmonicSolver
AddEquationBasics: Setting up solver: mgdynamics
Loading user function library: [MagnetoDynamics]...[WhitneyAVHarmonicSolver_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [MagnetoDynamics]...[WhitneyAVHarmonicSolver_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [MagnetoDynamics]...[WhitneyAVHarmonicSolver]
AddEquationBasics: Treating variable string: a[a re:1 a im:1]
AddEquationBasics: Creating standard variable: a[a re:1 a im:1]
AddEquationBasics: Computing size of permutation vector
AddEquationBasics: Maximum size of permutation vector is: 114566
AddEquationBasics: Creating solver matrix topology
CreateMatrix: Creating initial permutation
CreateMatrix: Creating inverse of initial order of size: 114566
CreateMatrix: Creating list matrix for equation: mgdynamics
MakeListMatrix: Creating list matrix
OptimizeBandwidth: ---------------------------------------------------------
OptimizeBandwidth: Computing matrix structure for: mgdynamics
OptimizeBandwidth: Initial bandwidth for mgdynamics: 113966
OptimizeBandwidth: Optimized bandwidth for mgdynamics: 16802
OptimizeBandwidth: ---------------------------------------------------------
CreateMatrix: Initializing list matrix for equation
CRS_CreateMatrix: Creating CRS Matrix of size: 229132
CRS_CreateMatrix: Creating CRS Matrix with nofs: 13076696
CreateMatrix: Sparse matrix created
AddEquationBasics: Number of rows in CRS matrix: 229132
AddEquationBasics: Creating solver variable
VariableAdd: Adding variable > a[a re:1 a im:1] < of size 229132
VariableAdd: Adding variable > a re < of size 114566
VariableAdd: Adding variable > a im < of size 114566
AddSolvers: Setting up solver 4: mgdynamicscalc
AddEquationBasics: Using procedure: MagnetoDynamics MagnetoDynamicsCalcFields
AddEquationBasics: Setting up solver: mgdynamicscalc
Loading user function library: [MagnetoDynamics]...[MagnetoDynamicsCalcFields_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [MagnetoDynamics]...[MagnetoDynamicsCalcFields_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [MagnetoDynamics]...[MagnetoDynamicsCalcFields]
AddEquationBasics: Treating variable string: -nooutput hr_dummy
AddEquationBasics: Creating standard variable: hr_dummy
AddEquationBasics: Computing size of permutation vector
AddEquationBasics: Maximum size of permutation vector is: 114566
AddEquationBasics: Creating solver matrix topology
CreateMatrix: Creating initial permutation
CreateMatrix: Creating inverse of initial order of size: 14638
CreateMatrix: Creating list matrix for equation: mgdynamicscalc
MakeListMatrix: Creating list matrix
OptimizeBandwidth: ---------------------------------------------------------
OptimizeBandwidth: Computing matrix structure for: mgdynamicscalc
OptimizeBandwidth: Initial bandwidth for mgdynamicscalc: 14627
OptimizeBandwidth: Optimized bandwidth for mgdynamicscalc: 1508
OptimizeBandwidth: ---------------------------------------------------------
CreateMatrix: Initializing list matrix for equation
CRS_CreateMatrix: Creating CRS Matrix of size: 14638
CRS_CreateMatrix: Creating CRS Matrix with nofs: 214494
CreateMatrix: Sparse matrix created
AddEquationBasics: Number of rows in CRS matrix: 14638
AddEquationBasics: Creating solver variable
VariableAdd: Adding variable > hr_dummy < of size 14638
AddEquationBasics: Creating exported variable: magnetic flux density[magnetic flux density re:3 magnetic flux density im:3]
AddEquationBasics: Creating exported variable: magnetic flux density[magnetic flux density re:3 magnetic flux density im:3]
VariableAdd: Adding variable > magnetic flux density[magnetic flux density re:3 magnetic flux density im:3] < of size 87828
AddEquationBasics: Succesfully created variable: magnetic flux density
VariableAdd: Adding variable > magnetic flux density re 1 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic flux density re 1
VariableAdd: Adding variable > magnetic flux density re 2 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic flux density re 2
VariableAdd: Adding variable > magnetic flux density re 3 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic flux density re 3
VariableAdd: Adding variable > magnetic flux density im 1 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic flux density im 1
VariableAdd: Adding variable > magnetic flux density im 2 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic flux density im 2
VariableAdd: Adding variable > magnetic flux density im 3 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic flux density im 3
AddEquationBasics: Creating exported variable: magnetic vector potential[magnetic vector potential re:3 magnetic vector potential im:3]
AddEquationBasics: Creating exported variable: magnetic vector potential[magnetic vector potential re:3 magnetic vector potential im:3]
VariableAdd: Adding variable > magnetic vector potential[magnetic vector potential re:3 magnetic vector potential im:3] < of size 87828
AddEquationBasics: Succesfully created variable: magnetic vector potential
VariableAdd: Adding variable > magnetic vector potential re 1 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic vector potential re 1
VariableAdd: Adding variable > magnetic vector potential re 2 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic vector potential re 2
VariableAdd: Adding variable > magnetic vector potential re 3 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic vector potential re 3
VariableAdd: Adding variable > magnetic vector potential im 1 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic vector potential im 1
VariableAdd: Adding variable > magnetic vector potential im 2 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic vector potential im 2
VariableAdd: Adding variable > magnetic vector potential im 3 < of size 14638
AddEquationBasics: Succesfully created variable: magnetic vector potential im 3
AddEquationBasics: Creating exported variable: current density[current density re:3 current density im:3]
AddEquationBasics: Creating exported variable: current density[current density re:3 current density im:3]
VariableAdd: Adding variable > current density[current density re:3 current density im:3] < of size 87828
AddEquationBasics: Succesfully created variable: current density
VariableAdd: Adding variable > current density re 1 < of size 14638
AddEquationBasics: Succesfully created variable: current density re 1
VariableAdd: Adding variable > current density re 2 < of size 14638
AddEquationBasics: Succesfully created variable: current density re 2
VariableAdd: Adding variable > current density re 3 < of size 14638
AddEquationBasics: Succesfully created variable: current density re 3
VariableAdd: Adding variable > current density im 1 < of size 14638
AddEquationBasics: Succesfully created variable: current density im 1
VariableAdd: Adding variable > current density im 2 < of size 14638
AddEquationBasics: Succesfully created variable: current density im 2
VariableAdd: Adding variable > current density im 3 < of size 14638
AddEquationBasics: Succesfully created variable: current density im 3
AddEquationBasics: Creating exported variable: -dg magnetic flux density e[magnetic flux density re e:3 magnetic flux density im e:3]
AddEquationBasics: Creating exported variable: magnetic flux density e[magnetic flux density re e:3 magnetic flux density im e:3]
CreateDGPerm: Creating permutation for DG variable
CreateDGPerm: There are at least some associated DG elements
CreateDGPerm: Size of DgPerm table: 340344
CreateDGPerm: Created permutation for DG nodes: 340344
VariableAdd: Adding variable > magnetic flux density e[magnetic flux density re e:3 magnetic flux density im e:3] < of size 2042064
AddEquationBasics: Succesfully created variable: magnetic flux density e
VariableAdd: Adding variable > magnetic flux density re e 1 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic flux density re e 1
VariableAdd: Adding variable > magnetic flux density re e 2 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic flux density re e 2
VariableAdd: Adding variable > magnetic flux density re e 3 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic flux density re e 3
VariableAdd: Adding variable > magnetic flux density im e 1 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic flux density im e 1
VariableAdd: Adding variable > magnetic flux density im e 2 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic flux density im e 2
VariableAdd: Adding variable > magnetic flux density im e 3 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic flux density im e 3
AddEquationBasics: Creating exported variable: -dg magnetic vector potential e[magnetic vector potential re e:3 magnetic vector potential im e:3]
AddEquationBasics: Creating exported variable: magnetic vector potential e[magnetic vector potential re e:3 magnetic vector potential im e:3]
CreateDGPerm: Creating permutation for DG variable
CreateDGPerm: There are at least some associated DG elements
CreateDGPerm: Size of DgPerm table: 340344
CreateDGPerm: Created permutation for DG nodes: 340344
VariableAdd: Adding variable > magnetic vector potential e[magnetic vector potential re e:3 magnetic vector potential im e:3] < of size 2042064
AddEquationBasics: Succesfully created variable: magnetic vector potential e
VariableAdd: Adding variable > magnetic vector potential re e 1 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic vector potential re e 1
VariableAdd: Adding variable > magnetic vector potential re e 2 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic vector potential re e 2
VariableAdd: Adding variable > magnetic vector potential re e 3 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic vector potential re e 3
VariableAdd: Adding variable > magnetic vector potential im e 1 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic vector potential im e 1
VariableAdd: Adding variable > magnetic vector potential im e 2 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic vector potential im e 2
VariableAdd: Adding variable > magnetic vector potential im e 3 < of size 340344
AddEquationBasics: Succesfully created variable: magnetic vector potential im e 3
AddEquationBasics: Creating exported variable: -dg current density e[current density re e:3 current density im e:3]
AddEquationBasics: Creating exported variable: current density e[current density re e:3 current density im e:3]
CreateDGPerm: Creating permutation for DG variable
CreateDGPerm: There are at least some associated DG elements
CreateDGPerm: Size of DgPerm table: 340344
CreateDGPerm: Created permutation for DG nodes: 340344
VariableAdd: Adding variable > current density e[current density re e:3 current density im e:3] < of size 2042064
AddEquationBasics: Succesfully created variable: current density e
VariableAdd: Adding variable > current density re e 1 < of size 340344
AddEquationBasics: Succesfully created variable: current density re e 1
VariableAdd: Adding variable > current density re e 2 < of size 340344
AddEquationBasics: Succesfully created variable: current density re e 2
VariableAdd: Adding variable > current density re e 3 < of size 340344
AddEquationBasics: Succesfully created variable: current density re e 3
VariableAdd: Adding variable > current density im e 1 < of size 340344
AddEquationBasics: Succesfully created variable: current density im e 1
VariableAdd: Adding variable > current density im e 2 < of size 340344
AddEquationBasics: Succesfully created variable: current density im e 2
VariableAdd: Adding variable > current density im e 3 < of size 340344
AddEquationBasics: Succesfully created variable: current density im e 3
AddSolvers: Setting up solver 5: circuits output
AddEquationBasics: Using procedure: CircuitsAndDynamics CircuitsOutput
AddEquationBasics: Setting up solver: circuits output
Loading user function library: [CircuitsAndDynamics]...[CircuitsOutput_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [CircuitsAndDynamics]...[CircuitsOutput_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [CircuitsAndDynamics]...[CircuitsOutput]
AddEquationBasics: Creating null variable with no name
AddSolvers: Setting up solver 6:
AddEquationBasics: Using procedure: SaveData SaveScalars
Loading user function library: [SaveData]...[SaveScalars_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [SaveData]...[SaveScalars]
AddEquationBasics: Creating null variable with no name
AddSolvers: Setting up solver 7: internalvtuoutputsolver
AddEquationBasics: Using procedure: ResultOutputSolve ResultOutputSolver
AddEquationBasics: Setting up solver: internalvtuoutputsolver
Loading user function library: [ResultOutputSolve]...[ResultOutputSolver_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [ResultOutputSolve]...[ResultOutputSolver_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [ResultOutputSolve]...[ResultOutputSolver]
AddEquationBasics: Treating variable string: -global vtu_internal_dummy
AddEquationBasics: Creating global variable: vtu_internal_dummy
VariableAdd: Adding variable > vtu_internal_dummy < of size 1
AddSolvers: Setting up solvers done
AddTimeEtc: Setting time and other global variables
VariableAdd: Adding variable > Time < of size 1
VariableAdd: Adding variable > Timestep < of size 1
VariableAdd: Adding variable > Timestep size < of size 1
VariableAdd: Adding variable > Timestep interval < of size 1
VariableAdd: Adding variable > nonlin iter < of size 1
VariableAdd: Adding variable > coupled iter < of size 1
VariableAdd: Adding variable > Partition < of size 1
MAIN: Random seed initialized to: 314159265
SetInitialConditions: Setting up initial conditions (if any)
 InitCond mesh:mesh_anisio           3       14638
 InitCond pre range:w   0.0000000000000000        0.0000000000000000
ListInitElementKeyword: Treating keyword: w
ListInitElementKeyword: Initiated handle for: > w < of type: 4
 InitCond post range:w   0.0000000000000000        0.0000000000000000        0.0000000000000000
MAIN: Number of timesteps to be saved: 1
ListTagCount: Counting tags for keyword normalization!
SingleSolver: Attempting to call solver: 1
SingleSolver: Solver Equation string is: coilsolver
CoilSolver: --------------------------------------
CoilSolver: Solving current distribution in a coil
CoilSolver: --------------------------------------
CoilSolver: Assuming that all coils are closed!
CoilSolver: Saving elemental coil index to variable >CoilIndex e<
CoilSolver: Treating coil in Component: 1
GetNOFActive: Number of active elements: 12038
GetNOFActive: Number of active elements: 12038
CoilSolver: Coil volume:  1.6428E-05
CoilSolver: Coil center: -1.7499E-02  3.7347E-06  1.3264E-05
CoilSolver: Choosing narrow fixing nodes for set: 1
CoilSolver: Choosing narrow fixing nodes for set: 2
CoilSolver: Treating coil in Component: 2
GetNOFActive: Number of active elements: 12038
GetNOFActive: Number of active elements: 12038
CoilSolver: Coil volume:  1.6409E-05
CoilSolver: Coil center:  1.7500E-02  2.3755E-06  6.5998E-07
CoilSolver: Choosing narrow fixing nodes for set: 1
CoilSolver: Choosing narrow fixing nodes for set: 2
CoilSolver: Coil system consists of 2 coils
CoilSolver: Set1 : 67 +nodes and 66 -nodes
CoilSolver: Set2 : 71 +nodes and 69 -nodes
CoilSolver: Computing the dummy potential field
InitializeToZero: Initializing the linear system to zero
GetNOFActive: Number of active elements: 12038
DefaultFinishBulkAssembly: Saving bulk values for: coilsolver
VectorValuesRange:  [min,max,sum] for A_bulk:  -366344.58702571772        1327650.2475814777        3.5943230614066124E-009
VectorValuesRange:  [min,max,sum] for b_bulk:   0.0000000000000000        0.0000000000000000        0.0000000000000000
CutInterfaceConnections: Number of connections cut: 390
DefUtils::DefaultDirichletBCs: Setting Dirichlet boundary conditions
SetNodalLoads: Checking for nodal loads for variable: coiltmp
SetNodalLoads: Finished checking for nodal loads
SetDirichletBoundaries: Number of dofs set for coiltmp: 0
EnforceDirichletConditions: Applying Dirichlet conditions using scaled diagonal
ScaleLinearSystem: Scaling diagonal entries to unity in serial
ScaleLinearSystem: Computing > DiagScaling < vector
ScaleLinearSystem: Assuming real valued matrix while scaling
EnforceDirichletConditions: Dirichlet conditions enforced for dofs: 133
DefUtils::DefaultDirichletBCs: Dirichlet boundary conditions set
DefaultSolve: Solving linear system with default routines
GenerateConstraintMatrix: Nothing to do for now
DefaultSolve: Calling SolveSystem for linear solution
VectorValuesRange:  [min,max,sum] for A:  -366344.58702571772        1327650.2475814780        77432112.627624527
VectorValuesRange:  [min,max,sum] for b:   0.0000000000000000        1327650.2475814780        39078352.284156665
SolveSystem: Solving linear system
SolveSystem: Solving linear system without constraint matrix
SolveLinearSystem: Assuming real valued linear system
SolveLinearSystem: Assuming serial linear system
ScaleLinearSystem: Scaling diagonal entries to unity in serial
ScaleLinearSystem: Computing > DiagScaling < vector
ScaleLinearSystem: Assuming real valued matrix while scaling
ScaleLinearSystem: Scaling matrix values
ScaleLinearSystem: Scaling Rhs vector
SolveLinearSystem: Linear System Preconditioning: ilu1
VectorValuesRange:  [min,max,sum] for A: -0.47036451654615086        1.0000000000000004        259.17418588074889
VectorValuesRange:  [min,max,sum] for b:   0.0000000000000000       0.18432053341198260        8.0178484228675142
SolveLinearSystem: Serial linear System Solver: iterative
IterSolver: Using iterative method: cg
IterSolver: Matrix is real valued
CRS_IncompleteLU: ILU(1) (Real), Performing Factorization:
CRS_IncompleteLU: Number of nonzeros: 70901
CRS_IncompleteLU: Updated nonzero elements
CRS_IncompleteLU: Allocated LU matrix of size: 64635
CRS_IncompleteLU: Performing incomplete LU
 ILU range: -0.51956403894925307        2.0479865381851323       -1.0402250015633859E-002  0.13086846181707934
CRS_IncompleteLU: ILU(1) (Real), NOF nonzeros:     64636
CRS_IncompleteLU: ILU(1) (Real), filling (%) :       164
CRS_IncompleteLU: ILU(1) (Real), Factorization ready at (s):     0.02
      22 0.8753E-06
VectorValuesRange:  [min,max,sum] for x:   0.0000000000000000       0.18432056293263871        190.85161500947169
BackScaleLinearSystem: Scaling back to original scale
SolveLinearSystem: Calculating nodal loads
ComputeNorm: Computing norm of solution
ComputeChange: NS (ITER=1) (NRM,RELC): ( 0.60561390      2.0000000     ) :: coilsolver
UpdateDependentObjects: Updating objects depending on primary field in nonlinear system
SolveSystem: System solved
SolveSystem: Finished solving the system
VectorValuesRange:  [min,max,sum] for x:   0.0000000000000000        1.0000001601593467        1767.4329891587472
CoilSolver: Positive coil currents:    30  1.1762E+05
CoilSolver: Negative coil currents:    26 -1.1761E+05
CoilSolver: Discrepancy of start and end coil currents:   3.3311E-05
CoilSolver: Initial coil current for coil 1:  1.1762E+05
CoilSolver: Coil potential multiplier:  8.5022E-06

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x8f7ac3eb
#1  0x8f727034
#2  0xf2e92231
#3  0xff067ff7
#4  0x109241e
#5  0x10414a3
#6  0x1090f4d
#7  0x8e8d7079
#8  0x8e8dd7f8
#9  0x8f0e7fa6
#10  0x8f100d43
#11  0x8f3dbd55
#12  0x8f3e4b57
#13  0xf2e916ef
#14  0xf2e92ac3
#15  0xf2e913c0
#16  0xf2e914f5
#17  0x1f7613
#18  0x10426a0
#19  0xffffffff

C:\Users\forti\OneDrive\Área de Trabalho\Temp\Elmer>
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Problem with Windows solver

Post by raback »

Hi,

There seems to be some difference between Linux vs Windows. This seems to happen for when normalizing the currents for the 2nd coil. Attached is my output vs. yours.

Just to confirm: do you use the nightly Windows build that was just a few days old?

-Peter
Attachments
DebugCompare.PNG
(108.02 KiB) Not downloaded yet
gforti
Posts: 77
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Re: Problem with Windows solver

Post by gforti »

I usually run Elmer on Linux, but I also have a notebook with Windows. The problem that occurs on Windows does not happen on Linux.

I tried installing the version from the site:
https://www.nic.funet.fi/pub/sci/physic ... n/windows/

Its currently the following build:
Version: 9.0 (Rev: Release, Compiled: 2023-04-11)

- Gabriel
aevanch
Posts: 7
Joined: 07 Mar 2024, 00:03
Antispam: Yes

Re: Problem with Windows solver

Post by aevanch »

Hello,

I was wondering if you all had a moment to look at this error I am running into.

It is about the _bulk file not being found.

ELMER SOLVER (v 9.0) STARTED AT: 2024/03/06 15:33:26
--------------------------------------------------------------------------
The library attempted to open the following supporting CUDA libraries,
but each of them failed. CUDA-aware support is disabled.
libcuda.so.1: cannot open shared object file: No such file or directory
libcuda.dylib: cannot open shared object file: No such file or directory
/usr/lib64/libcuda.so.1: cannot open shared object file: No such file or directory
/usr/lib64/libcuda.dylib: cannot open shared object file: No such file or directory
If you are not interested in CUDA-aware support, then run with
--mca opal_warn_on_missing_libcuda 0 to suppress this message. If you are interested
in CUDA-aware support, then try setting LD_LIBRARY_PATH to the location
of libcuda.so.1 to get passed this issue.
--------------------------------------------------------------------------
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 9.0 (Rev: 416941d5, Compiled: 2022-05-11)
MAIN: Running one task without MPI parallelization.
MAIN: Running in parallel with 2 threads per task.
MAIN: =============================================================
LoadInputFile: Trying to read "Run Control" section only
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: case.sif
LoadInputFile: Scanning input file: case.sif
LoadInputFile: Scanning only size info
LoadInputFile: First time visiting
LoadInputFile: Reading base load of sif file
LoadInputFile: Loading input file: case.sif
LoadInputFile: Reading base load of sif file
LoadInputFile: Number of BCs: 2
LoadInputFile: Number of Body Forces: 0
LoadInputFile: Number of Initial Conditions: 1
LoadInputFile: Number of Materials: 3
LoadInputFile: Number of Equations: 1
LoadInputFile: Number of Solvers: 4
LoadInputFile: Number of Bodies: 3
ListTagKeywords: Setting weight for keywords!
ListTagKeywords: No parameters width suffix: normalize by area
ListTagKeywords: Setting weight for keywords!
ListTagKeywords: No parameters width suffix: normalize by volume
ElmerAsciiMesh: Base mesh name: ./.
MAIN: -------------------------------------
OptimizeBandwidth: ---------------------------------------------------------
OptimizeBandwidth: Computing matrix structure for: statcurrentsolver...done.
OptimizeBandwidth: Half bandwidth without optimization: 24
OptimizeBandwidth:
OptimizeBandwidth: Bandwidth Optimization ...done.
OptimizeBandwidth: Half bandwidth after optimization: 16
OptimizeBandwidth: ---------------------------------------------------------
[color=#FF8000]_bulk: cannot open shared object file: No such file or directory
_bulk.so: cannot open shared object file: No such file or directory
./_bulk: cannot open shared object file: No such file or directory
./_bulk.so: cannot open shared object file: No such file or directory
/home/aevanch/scilib/share/elmersolver/lib/_bulk: cannot open shared object file: No such file or directory
/home/aevanch/scilib/share/elmersolver/lib/_bulk.so: cannot open shared object file: No such file or directory
[/color]


Thank you,
Anna
kevinarden
Posts: 2317
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Problem with Windows solver

Post by kevinarden »

CUDA is a GPU accelerated solver library which you apparently do not have installed on your system, and most people do not. Something in your sif file is asking for the CUDA solver but you do not have it installed.
Post Reply