|
[Sponsors] |
October 18, 2013, 04:13 |
OpenFOAM on cluster (ubuntu 12.04 LTS x64)
|
#1 |
Member
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 70
Rep Power: 13 |
Dear FOAMers.
It has been a while since I started to use openfoam on cluster. As always, there are problems with openfoam that magically appear and disappear. This thread shall serve as a summary of problems and solutions (hopefully) to them that are connected to cluster computing. Best Regards Martin |
|
October 18, 2013, 06:45 |
|
#2 |
Member
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 70
Rep Power: 13 |
Dear all,
It does not taken so long for first error to appear. I am observing that the choice of the number of cpus is not completely free. Sometimes for a certain number of processors this error appears. Code:
r17:~/OpenFOAM/novakm-2.2.x/myCases/pE/pE_2p2_300>mpirun -np 8 myColdEngineFoam -parallel /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.x-54a7f72f9b3e Exec : myColdEngineFoam -parallel Date : Oct 18 2013 Time : 10:54:40 Host : "r17" PID : 20138 Case : /srv/groot/novakm/OpenFOAM/novakm-2.2.x/myCases/pE/pE_2p2_300 nProcs : 8 Slaves : 7 ( "r17.20139" "r17.20140" "r17.20141" "r17.20142" "r17.20143" "r17.20144" "r17.20145" ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create engine time Create mesh for time = 300 Selecting dynamicFvMesh dynamicTopoFvMesh Selecting metric Knupp Selecting motion solver: mesquiteMotionSolver Selecting quality metric: InverseMeanRatio Selecting objective function: LPtoP Selecting optimization algorithm: FeasibleNewton Outer termination criterion (tcOuter) was not found. Using default values. Reading thermophysical properties Selecting thermodynamics package { type hePsiThermo; mixture pureMixture; transport polynomial; thermo janaf; equationOfState perfectGas; specie specie; energy sensibleEnthalpy; } Reading field U Reading/calculating face flux field phi Creating turbulence model Selecting turbulence model type RASModel Selecting RAS turbulence model kEpsilon kEpsilonCoeffs { Cmu 0.09; C1 1.44; C2 1.92; C3 -0.33; sigmak 1; sigmaEps 1.3; Prt 1; } Creating field dpdt Creating field kinetic energy K Creating fintite volume options from fvOptions Selecting finite volume options model type temperatureLimitsConstraint Source: source1 - applying source for all time - selecting all cells - selected 1560932 cell(s) with volume 0.000839220537 Courant Number mean: 0.0557076891 max: 2.43731091 velocity magnitude: 42.8669571 Total cylinder mass: 0.000636838361 PIMPLE: max iterations = 5 field p : relTol -1, tolerance 0.001 field U : relTol -1, tolerance 0.001 field h : relTol -1, tolerance 0.001 Starting time loop Courant Number mean: 0.0557076891 max: 2.43731091 velocity magnitude: 42.8669571 Crank angle = 300.1 CA-deg [r17:20140] *** An error occurred in MPI_Recv [r17:20140] *** on communicator MPI_COMM_WORLD [r17:20140] *** MPI_ERR_TRUNCATE: message truncated [r17:20140] *** MPI_ERRORS_ARE_FATAL: your MPI job will now abort -------------------------------------------------------------------------- mpirun has exited due to process rank 2 with PID 20140 on node r17 exiting improperly. There are two reasons this could occur: 1. this process did not call "init" before exiting, but others in the job did. This can cause a job to hang indefinitely while it waits for all processes to call "init". By rule, if one process calls "init", then ALL processes must call "init" prior to termination. 2. this process called "init", but exited without calling "finalize". By rule, all processes that call "init" MUST call "finalize" prior to exiting or it will be considered an "abnormal termination" This may have caused other processes in the application to be terminated by signals sent by mpirun (as reported here). -------------------------------------------------------------------------- Does anybody know, where possibly might the problem be? Best Regards Martin Last edited by novakm; October 18, 2013 at 10:24. |
|
October 19, 2013, 05:39 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Martin,
Given that you've been having issues getting the MPI toolbox working with OpenFOAM on your cluster (http://www.openfoam.org/mantisbt/view.php?id=1052), then I suggest that you first do some communication tests. From my blog post Notes about running OpenFOAM in parallel: Quote:
Then related should be the memory limits and later on to confirm if the problem is related to the solver+libraries being used. Best regards, Bruno
__________________
|
||
October 19, 2013, 06:42 |
|
#4 | |
Member
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 70
Rep Power: 13 |
Quote:
Great, I ll look on it. The problem is that the case is runable for 1-7 cpus on 8 cpus node, however, sometimes when I want to run on 8 cpus on the same 8 cpus node, the above crash appears. The instalation of OF 2.2.x is the default (OF mpicc 1.6.3 is used from thirdparty). The bug http://www.openfoam.org/mantisbt/view.php?id=1052 was connected with my effort to use the system default mpi (1.6.5), to test, if the problem is not hidden in mpi library. Best regards Martin |
||
October 19, 2013, 07:21 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Martin,
Quote:
Bruno
__________________
|
||
October 19, 2013, 07:38 |
|
#6 | |
Member
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 70
Rep Power: 13 |
Quote:
M |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation on Ubuntu 12.04 LTS | samiam1000 | OpenFOAM Installation | 11 | May 26, 2012 06:54 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
OpenFOAM on Ubuntu 10.04 LTS | chinc | OpenFOAM | 6 | June 2, 2010 15:38 |