simpleFoam ended prematurely and may have crashed. exit code 3

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
OisinOC
Posts: 1
Joined: Thu Aug 29, 2019 2:08 pm

simpleFoam ended prematurely and may have crashed. exit code 3

Post by OisinOC »

Hi,

I haven't been able to find info on exit code 3, possibly I'm looking in the wrong places. Basically I'm trying to simulate air flowing through an inlet at 50m^3/h and exiting on a pressure outlet but I keep getting this error after the simulation has run for a number of iterations. Below is the log info, any advice is much appreciated.
  • Physics model is steady, single phase, incompressible and viscous is not checked
  • Fluid is air.
  • Initialise field is potential flow
  • I'm using gmsh with an element size of 3.

Code: Select all

Time = 90

smoothSolver:  Solving for Ux, Initial residual = 0.010304179, Final residual = 0.00034355223, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 0.010956076, Final residual = 0.00036888948, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 0.005654878, Final residual = 0.00019320845, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.094478041, Final residual = 0.00083370498, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.024328548, Final residual = 0.00012464516, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.0059862765, Final residual = 2.9413527e-005, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.0018047185, Final residual = 1.6486479e-005, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.0005642331, Final residual = 3.9485439e-006, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.00023269162, Final residual = 1.8505166e-006, No Iterations 2
time step continuity errors : sum local = 0.00028329395, global = 1.4886494e-005, cumulative = -5.9178847e-005
ExecutionTime = 177.183 s  ClockTime = 177 s

Time = 91

smoothSolver:  Solving for Ux, Initial residual = 0.0101565, Final residual = 0.00033880921, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 0.010779016, Final residual = 0.0003631706, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 0.0056363139, Final residual = 0.00019278935, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.09407865, Final residual = 0.00083164633, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.024270824, Final residual = 0.00012173625, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.0060111015, Final residual = 2.8300427e-005, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.001799381, Final residual = 1.5286119e-005, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.00055889077, Final residual = 3.5204629e-006, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.00022835256, Final residual = 1.3702759e-006, No Iterations 2
time step continuity errors : sum local = 0.00021144074, global = -2.8167604e-005, cumulative = -8.7346451e-005
ExecutionTime = 179.104 s  ClockTime = 179 s

Time = 92

smoothSolver:  Solving for Ux, Initial residual = 0.010029877, Final residual = 0.00033450722, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 0.010652597, Final residual = 0.00035797892, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 0.0056461585, Final residual = 0.00019278794, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.10624992, Final residual = 0.00076774398, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.025921037, Final residual = 0.00011446663, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.0070646085, Final residual = 5.0514041e-005, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.0021990561, Final residual = 1.1922453e-005, No Iterations 3
GAMG:  Solving for p, Initial residual = 0.00081938569, Final residual = 7.9107773e-006, No Iterations 2
Save AutoRecovery file: Needed time: 7ms
GAMG:  Solving for p, Initial residual = 0.00028030838, Final residual = 2.2480926e-006, No Iterations 3
time step continuity errors : sum local = 0.00034935124, global = -0.00016690565, cumulative = -0.00025425211
ExecutionTime = 181.019 s  ClockTime = 181 s

Time = 93

[1] Generating stack trace...
[1] 

Backtrace:
	ZN10StackTraceC1Ev [0x705c1465+0x25]
		 module: C:\FreeCAD\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
	ZN4Foam5error10printStackERNS_7OstreamE [0x1101c88+0x218]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZN4Foam6sigFpe13sigFpeHandlerEi [0x1102af3+0x33]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	(No symbol) [0x403cad]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	_C_specific_handler [0x7ffd2ab38068+0x98]
		 module: C:\Windows\System32\msvcrt.dll
	0_chkstk [0x7ffd2d4d467f+0x11f]
		 module: C:\Windows\SYSTEM32\ntdll.dll
	RtlWalkFrameChain [0x7ffd2d434bef+0x14bf]
		 module: C:\Windows\SYSTEM32\ntdll.dll
	KiUserExceptionDispatcher [0x7ffd2d4d33ee+0x2e]
		 module: C:\Windows\SYSTEM32\ntdll.dll
	ZN4Foam22symGaussSeidelSmoother6smoothERKNS_4wordERNS_5FieldIdEERKNS_9lduMatrixERKS5_RKNS_10FieldFieldIS4_dEERKNS_8UPtrListIKNS_17lduInterfaceFieldEEEhi [0xfa8b00+0x5b0]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZNK4Foam22symGaussSeidelSmoother6smoothERNS_5FieldIdEERKS2_hi [0xfa8d2f+0x3f]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZNK4Foam12smoothSolver5solveERNS_5FieldIdEERKS2_h [0xfa35ea+0x2da]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	(No symbol) [0x42b02e]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x42c235]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x42c535]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x44e045]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x4013f7]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	(No symbol) [0x40152b]
		 module: C:\FreeCAD\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simpleFoam.exe
	BaseThreadInitThunk [0x7ffd2a697e94+0x14]
		 module: C:\Windows\System32\KERNEL32.DLL
	RtlUserThreadStart [0x7ffd2d49a251+0x21]
		 module: C:\Windows\SYSTEM32\ntdll.dll

job aborted:
[ranks] message

[0] terminated

[1] process exited without calling finalize

[2-3] terminated

---- error analysis -----

[1] on GDI-BTH-L-00245
simpleFoam ended prematurely and may have crashed. exit code 3

---- error analysis -----
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: simpleFoam ended prematurely and may have crashed. exit code 3

Post by oliveroxtoby »

OisinOC wrote: Thu Aug 29, 2019 2:17 pm Hi,

I haven't been able to find info on exit code 3, possibly I'm looking in the wrong places. Basically I'm trying to simulate air flowing through an inlet at 50m^3/h and exiting on a pressure outlet but I keep getting this error after the simulation has run for a number of iterations. Below is the log info, any advice is much appreciated.
Probably the simulation diverged for some reason. Someone might be able to help if you attach your case.
Please provide all the information requested in this post before reporting problems with CfdOF.
Post Reply