-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctest dont pass all test #477
Comments
You may have different set of reasons for this. For example, I suspect that you cannot run with 6 or 8 MPI tasks and all such tests seem to fail (with suffix _np6 and _np8). I suggest that you pick representative tests and check the log. For example for "radiation" you have the files: what is the content here? Often it makes it easier to locate the issue when you raise the "Max Output Level" in the *.sif file to 20 or so to make the solver more verbose. The reason why "radiation" fails is probably the same for all tests 868-885. -Peter |
I extended the "Max Output Level" to 30, reran "ctest -j4" from my build directory which is ~/User/elmer/elmerfem/build2 test-stderr_1.log is empty,
It seems something is missing? |
Could you try running the "ViewFactors" executable by hand, while in the same folder ?
From: "ghostforest" ***@***.***>
To: "ElmerCSC" ***@***.***>
Cc: "Subscribed" ***@***.***>
Sent: Thursday, 20 June, 2024 15:43:57
Subject: Re: [ElmerCSC/elmerfem] Ctest dont pass all test (Issue #477)
I extended the "Max Output Level" to 30, reran "ctest -j4" from my build directory which is ~/User/elmer/elmerfem/build2
test-stderr_1.log is empty,
and this is the log from "test-stdout_1.log":
ELMER SOLVER (v 9.0) STARTED AT: 2024/06/20 14:15:05
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 | http://www.csc.fi/elmer ] , Email [ ***@***.*** | ***@***.*** ]
MAIN: Version: 9.0 (Rev: [ 879006d | 879006d ] , Compiled: 2024-06-15)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: =============================================================
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: radiation.sif
LoadInputFile: Scanning input file: radiation.sif
LoadInputFile: Scanning only size info
LoadInputFile: First time visiting
LoadInputFile: Reading base load of sif file
LoadInputFile: Loading input file: radiation.sif
LoadInputFile: Reading base load of sif file
LoadInputFile: Number of BCs: 3
LoadInputFile: Number of Body Forces: 1
LoadInputFile: Number of Initial Conditions: 1
LoadInputFile: Number of Materials: 2
LoadInputFile: Number of Equations: 1
LoadInputFile: Number of Solvers: 1
LoadInputFile: Number of Bodies: 2
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: [HeatSolve]...[HeatSolver_Init0]
LoadMesh: Loading serial mesh!
ElmerAsciiMesh: Performing step: 1
ElmerAsciiMesh: Base mesh name: ./radiation
ReadHeaderFile: Reading header info from file: ./radiation/mesh.header
InitializeMesh: Number of nodes in mesh: 148
InitializeMesh: Number of bulk elements in mesh: 105
InitializeMesh: Number of boundary elements in mesh: 76
InitializeMesh: Initial number of max element nodes: 4
ElmerAsciiMesh: Performing step: 2
ReadNodesFile: Reading nodes from file: ./radiation/mesh.nodes
SetMeshDimension: Dimension of mesh is: 2
SetMeshDimension: Max dimension of mesh is: 2
ElmerAsciiMesh: Performing step: 3
ReadElementsFile: Reading bulk elements from file: ./radiation/mesh.elements
ElmerAsciiMesh: Performing step: 4
ReadBoundaryFile: Reading boundary elements from file: ./radiation/mesh.boundary
PermuteNodeNumbering: Performing node mapping
MapBodiesAndBCs: Skipping remapping of bodies
MapBodiesAndBCs: Remapping boundaries
MapBodiesAndBCs: Minimum initial boundary index: 1
MapBodiesAndBCs: Maximum initial boundary index: 3
ElmerAsciiMesh: Performing step: 5
ElmerAsciiMesh: Performing step: 6
LoadMesh: Loading mesh done
NonNodalElements: Element dofs max: 4
LoadMesh: Preparing mesh done
LoadMesh: Elapsed REAL time: 0.0017 (s)
MeshStabParams: Computing stabilization parameters
MeshStabParams: Elapsed REAL time: 0.0003 (s)
LoadModel: Defined radition solver by Equation name "heat equation"
CompleteModelKeywords: Completing keywords for mortars and mechanics!
MAIN: -------------------------------------
AddMeshCoordinates: Setting mesh coordinates and time
VariableAdd: Adding variable > Coordinate 1 < of size 148
VariableAdd: Adding variable > Coordinate 2 < of size 148
VariableAdd: Adding variable > Coordinate 3 < of size 148
AddSolvers: Setting up 1 solvers
AddSolvers: Setting up solver 1: heat equation
AddEquationBasics: Setting up keywords internally for legacy solver: heat equation
AddEquationBasics: Using procedure: HeatSolve HeatSolver
AddEquationBasics: Setting up solver: heat equation
Loading user function library: [HeatSolve]...[HeatSolver_Init]
AddEquationBasics: Checking for _init solver
Loading user function library: [HeatSolve]...[HeatSolver_bulk]
AddEquationBasics: Checking for _bulk solver
Loading user function library: [HeatSolve]...[HeatSolver]
AddEquationBasics: Treating variable string: temperature
AddEquationBasics: Creating standard variable: temperature
AddEquationBasics: Computing size of permutation vector
RadiationFactors: ----------------------------------------------------
RadiationFactors: Computing radiation factors for heat transfer
RadiationFactors: ----------------------------------------------------
RadiationFactors: Using sparse matrix format for factor computations.
RadiationFactors: Using direct solver for radiation factors
RadiationFactors: Total number of Radiation Surfaces 39 out of 76
RadiationFactors: Temporarily updating the mesh.nodes file!
ERROR:: systemc: Command exit status was 6
RadiationFactors: Computing area info for set 1
RadiationFactors: Loading view factors!
WARNING:: RadiationFactors: View Factors File does NOT exist: ./radiation/ViewFactors.dat
RadiationFactors: All done time (s) 1.2359E-01
RadiationFactors: ----------------------------------------------------
AddEquationBasics: Maximum size of permutation vector is: 148
AddEquationBasics: Creating solver matrix topology
CreateMatrix: Creating initial permutation
CreateMatrix: Creating inverse of initial order of size: 148
CreateMatrix: Creating list matrix for equation: heat equation
MakeListMatrix: Creating list matrix
MakeListMatrix: Adding radiation matrix
MakeListMatrix: Done Adding radiation matrix
OptimizeBandwidth: ---------------------------------------------------------
OptimizeBandwidth: Computing matrix structure for: heat equation
OptimizeBandwidth: Initial bandwidth for heat equation: 15
OptimizeBandwidth: Optimized bandwidth for heat equation: 12
OptimizeBandwidth: ---------------------------------------------------------
CreateMatrix: Initializing list matrix for equation
CRS_CreateMatrix: Creating CRS Matrix of size: 148
CRS_CreateMatrix: Creating CRS Matrix with nofs: 1070
CreateMatrix: Sparse matrix created
AddEquationBasics: Number of rows in CRS matrix: 148
AddEquationBasics: Creating solver variable
VariableAdd: Adding variable > temperature < of size 148
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: Initial conditions for 2D mesh:radiation
VectorValuesRange: [min,max,sum] for PreInit: temperature: 0.0000000000000000 0.0000000000000000 0.0000000000000000
InitCond: Trying to initialize variable: coordinate 1
InitCond: Trying to initialize variable: coordinate 2
InitCond: Trying to initialize variable: coordinate 3
InitCond: Trying to initialize variable: temperature
InitCond: Trying to initialize variable: time
InitCond: Trying to initialize variable: timestep
InitCond: Trying to initialize variable: timestep size
InitCond: Trying to initialize variable: timestep interval
InitCond: Trying to initialize variable: nonlin iter
InitCond: Trying to initialize variable: coupled iter
InitCond: Trying to initialize variable: partition
ListInitElementKeyword: Treating keyword: temperature
ListInitElementKeyword: Initiated handle for: > temperature < of type: 4
VectorValuesRange: [min,max,sum] for PostInit: temperature: 250.00000000000000 250.00000000000000 37000.000000000000
MAIN: Number of timesteps to be saved: 1
MAIN:
MAIN: -------------------------------------
MAIN: Steady state iteration: 1
MAIN: -------------------------------------
MAIN:
SolveEquations: Solvers before timestep
SolveEquations: Solvers in main iteration loop
SolveEquations: Performing set of solvers in sequence
ListTagCount: Counting tags for keyword normalization!
SetActiveElementsTable: Creating active element table for: heat equation
SetActiveElementsTable: Number of active elements found : 105
SingleSolver: Attempting to call solver: 1
SingleSolver: Solver Equation string is: heat equation
HeatSolver: -------------------------------------------
HeatSolver: Solving the energy equation for temperature
DefaultStart: Starting solver: heat equation
HeatSolve:
HeatSolve:
HeatSolve: -------------------------------------
HeatSolve: TEMPERATURE ITERATION 1
HeatSolve: -------------------------------------
HeatSolve:
HeatSolve: Starting Assembly...
InitializeToZero: Initializing the linear system to zero
HeatSolve: Assembly:
GetNOFActive: Number of active elements: 105
VectorValuesRange: [min,max,sum] for A_bulk: -2.6111111111326677 13.555555555550669 2.3869795029440866E-015
VectorValuesRange: [min,max,sum] for b_bulk: 0.0000000000000000 41.666666666750018 400.00000000000011
ERROR:: ComputeRadiationLoad: Gebhart factors not calculated for boundary!
—
Reply to this email directly, [ #477 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ACTOMSTVIVBQA3JLPFXXRNDZILFA3AVCNFSM6AAAAABJTYXVVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGU3TONRSHA | unsubscribe ] .
You are receiving this because you are subscribed to this thread. Message ID: ***@***.***>
|
Yes some dynamic library file seems to be missing. Why is that, I had multiple problems with files being at the wrong places. Should I simply copy that file to /usr/local/bin/ ? Thank you so much for your help! |
Yes, I've also had this type troubles recently ... Maybe time for us to do something about it...
Try copying it to "elmer_install_dir/lib/elmersolver" - folder ?
From: "ghostforest" ***@***.***>
To: "ElmerCSC" ***@***.***>
Cc: "juharu" ***@***.***>, "Comment" ***@***.***>
Sent: Thursday, 20 June, 2024 16:05:50
Subject: Re: [ElmerCSC/elmerfem] Ctest dont pass all test (Issue #477)
***@***.*** build2 % ViewFactors
dyld[15337]: Library not loaded: ***@***.***/libmpi_stubs.dylib'
Referenced from: '/usr/local/bin/ViewFactors'
Reason: tried: '/usr/local/bin/libmpi_stubs.dylib' (no such file), '/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current/gcc/x86_64-apple-darwin21/14/libmpi_stubs.dylib' (no such file), '/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current/gcc/libmpi_stubs.dylib' (no such file), '/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current/libmpi_stubs.dylib' (no such file), '/usr/local/bin/../lib/elmersolver/libmpi_stubs.dylib' (no such file), '/usr/local/bin/libmpi_stubs.dylib' (no such file), '/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current/gcc/x86_64-apple-darwin21/14/libmpi_stubs.dylib' (no such file), '/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current/gcc/libmpi_stubs.dylib' (no such file), '/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current/libmpi_stubs.dylib' (no such file), '/usr/local/bin/../lib/elmersolver/libmpi_stubs.dylib' (no such file), '/usr/local/lib/libmpi_stubs.dylib' (no such file), '/usr/lib/libmpi_stubs.dylib' (no such file)
zsh: abort ViewFactors
Yes some dynamic library file seems to be missing.
A quick search told me it exists at ~/User/elmer/elmerfem/build2/fem/src
Why is that, I had multiple problems with files being at the wrong places. Should I simply copy that file to /usr/local/bin/ ?
Thank you so much for your help!
—
Reply to this email directly, [ #477 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ACTOMSWHS4JBBORKDNSWKALZILHS5AVCNFSM6AAAAABJTYXVVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGYZTIOJZGY | unsubscribe ] .
You are receiving this because you commented. Message ID: ***@***.***>
|
I copied the file to "elmer_install_dir/lib/elmersolver", and into /usr/local/bin This did something, before: "87% tests passed, 115 tests failed out of 918" Looking at those tests:
I recognize that the "test_stdout_6.log" files are all empty. No idea. This was my cmake command, maybe I set stuff wrong up, but I had to add all those flags bc it wouldnt compile otherwise.
as of now radiation seems to be solved with adding libmpi_stubs.dylib to the correct directory. |
I looked into "85 - ContactFrictionHeating (Failed)"
The only explanation I could think of for this, if this test is only failing for me, that I compiled elmer with some wrongly linked library that works but produces mathematical errors or just handles stuff differently. I dont know what to do from here. |
Any updates on this? I need to get this to work sadly.... |
The "ContactFrictionHeating"- test fails for me too, one of the known failures, CurvedBoundaryCylH_np3 (Failed) *_np6 tests are running with 6 mpi tasks, for example. Maybe you could post the log from some other test/tests so |
How about the test_stderr_6.log ? Anyway, might it be the case, that you can't run parallel jobs with 6 or more tasks ? |
As an observation the largest group of cases that seem to fail besides the parallel cases are the complex valued cases, |
I added a keyword to alternate the order how nodal loads are computed vs. set in conjunction with "apply limiter" turned on. The problem is that sometimes you need to use the loads before determining the limiter, and sometimes the opposite. The updated test case "ContactFrictionHeating" in devel work now. |
Quad core but threaded so 8? Id suppose, my bad if this is not the case. |
If you have a quad-core it might be that the MPI implementation by default doesn't allow you runs exceeding that number (i.e., 4) - one can limit MPI tests by setting cmake variable |
Hi, I managed to compile elmer, however about 130 tests of ctest fail to pass. The following tests dont pass.
How do I solve this issue?
The text was updated successfully, but these errors were encountered: