Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 192.3 kB / 22.23 MB, free: 5.156 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 179]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1725/0.1725, allocations: 29.23 MB / 335.5 MB, free: 11.29 MB / 270.1 MB
"
[Timeout remaining time 180]
Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4")
translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 63.89 kB / 470.4 MB, free: 6.762 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2676, allocations: 59.62 MB / 0.5176 GB, free: 10.08 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003837/0.2715, allocations: 3.69 MB / 0.5212 GB, free: 7.383 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001606/0.2731, allocations: 0.6864 MB / 0.5219 GB, free: 6.875 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0006198/0.2737, allocations: 19.16 kB / 0.5219 GB, free: 6.871 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004679/0.2741, allocations: 177.3 kB / 0.5221 GB, free: 6.766 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004562/0.2746, allocations: 145.2 kB / 0.5222 GB, free: 6.676 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.2753, allocations: 358.3 kB / 0.5226 GB, free: 6.488 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0007116/0.276, allocations: 0.8642 MB / 0.5234 GB, free: 6.086 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005767/0.2766, allocations: 0.5038 MB / 0.5239 GB, free: 5.758 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.2768, allocations: 349.1 kB / 0.5242 GB, free: 5.566 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/0.2771, allocations: 439.4 kB / 0.5246 GB, free: 5.305 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.2773, allocations: 85.25 kB / 0.5247 GB, free: 5.305 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.2774, allocations: 121.1 kB / 0.5248 GB, free: 5.293 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0003006/0.2777, allocations: 459.2 kB / 0.5253 GB, free: 5.082 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.278, allocations: 0.6335 MB / 0.5259 GB, free: 4.59 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001059/0.2791, allocations: 1.294 MB / 0.5272 GB, free: 3.91 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2791, allocations: 0 / 0.5272 GB, free: 3.91 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.162e-06/0.2791, allocations: 0 / 0.5272 GB, free: 3.91 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 2.18e-05/0.2791, allocations: 0 / 0.5272 GB, free: 3.91 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 290
 * Number of variables: 290
Notification: Performance of Generate backend data structure: time 0.001838/0.281, allocations: 1.816 MB / 0.5289 GB, free: 2.656 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.281, allocations: 9.125 kB / 0.5289 GB, free: 2.656 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.2812, allocations: 216.8 kB / 0.5292 GB, free: 2.535 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007583/0.2819, allocations: 0.7187 MB / 0.5299 GB, free: 2.023 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.315e-05/0.282, allocations: 77.08 kB / 0.5299 GB, free: 1.988 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2821, allocations: 109.5 kB / 0.53 GB, free: 1.949 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.2838, allocations: 1.275 MB / 0.5313 GB, free: 1.43 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.2838, allocations: 9.344 kB / 0.5313 GB, free: 1.422 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/0.2838, allocations: 49.3 kB / 0.5313 GB, free: 1.383 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.938e-05/0.2839, allocations: 47.44 kB / 0.5314 GB, free: 1.383 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.2854, allocations: 1.223 MB / 0.5326 GB, free: 1.09 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.2898, allocations: 3.802 MB / 0.5363 GB, free: 14.96 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.2914, allocations: 1.334 MB / 0.5376 GB, free: 14.61 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005586/0.292, allocations: 478.2 kB / 0.538 GB, free: 14.49 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.73e-05/0.292, allocations: 37.64 kB / 0.5381 GB, free: 14.48 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.2921, allocations: 42.53 kB / 0.5381 GB, free: 14.43 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=70): time 2.224e-06/0.2921, allocations: 1.344 kB / 0.5381 GB, free: 14.43 MB / 398.1 MB
Notification: Performance of matching and sorting (n=70): time 0.001957/0.294, allocations: 1.566 MB / 0.5396 GB, free: 13.98 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.2941, allocations: 89.8 kB / 0.5397 GB, free: 13.88 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.2956, allocations: 1.37 MB / 0.5411 GB, free: 13.17 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.374e-05/0.2956, allocations: 36.11 kB / 0.5411 GB, free: 13.13 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0006467/0.2963, allocations: 0.8574 MB / 0.5419 GB, free: 12.38 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.2965, allocations: 254.9 kB / 0.5422 GB, free: 12.16 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.2967, allocations: 160.7 kB / 0.5423 GB, free: 12.06 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001497/0.2968, allocations: 333.6 kB / 0.5427 GB, free: 11.73 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005845/0.2974, allocations: 478.4 kB / 0.5431 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007702/0.2982, allocations: 0.7214 MB / 0.5438 GB, free: 11.08 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.2996, allocations: 1.242 MB / 0.545 GB, free: 10.38 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.2996, allocations: 6.781 kB / 0.545 GB, free: 10.38 MB / 398.1 MB
Notification: Performance of matching and sorting (n=109) (initialization): time 0.001732/0.3013, allocations: 1.395 MB / 0.5464 GB, free: 9.805 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3014, allocations: 8.219 kB / 0.5464 GB, free: 9.805 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3014, allocations: 8.156 kB / 0.5464 GB, free: 9.805 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.3014, allocations: 16.36 kB / 0.5464 GB, free: 9.801 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.3019, allocations: 182.7 kB / 0.5466 GB, free: 9.762 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.881e-05/0.302, allocations: 16.31 kB / 0.5466 GB, free: 9.758 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003694/0.3023, allocations: 92.44 kB / 0.5467 GB, free: 9.691 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.528e-05/0.3024, allocations: 46.38 kB / 0.5468 GB, free: 9.68 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 36
 * Number of states: 0 ()
 * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (109):
 * Single equations (assignments): 109
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0004787/0.3029, allocations: 398.2 kB / 0.5471 GB, free: 9.414 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.303, allocations: 161 kB / 0.5473 GB, free: 9.32 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.3047, allocations: 1.238 MB / 0.5485 GB, free: 8.793 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.3047, allocations: 10.41 kB / 0.5485 GB, free: 8.789 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3047, allocations: 1.375 kB / 0.5485 GB, free: 8.789 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3047, allocations: 11.95 kB / 0.5485 GB, free: 8.777 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.3076, allocations: 2.37 MB / 0.5508 GB, free: 6.812 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3076, allocations: 0 / 0.5508 GB, free: 6.812 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/0.3081, allocations: 123.8 kB / 0.551 GB, free: 6.691 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3081, allocations: 4 kB / 0.551 GB, free: 6.688 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.3081, allocations: 15.94 kB / 0.551 GB, free: 6.672 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.3081, allocations: 7.984 kB / 0.551 GB, free: 6.664 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3081, allocations: 4 kB / 0.551 GB, free: 6.66 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.3104, allocations: 1.992 MB / 0.5529 GB, free: 4.652 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.3106, allocations: 138.8 kB / 0.5531 GB, free: 4.516 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.042e-05/0.3106, allocations: 20.06 kB / 0.5531 GB, free: 4.496 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.3109, allocations: 20 kB / 0.5531 GB, free: 4.477 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.311, allocations: 48.56 kB / 0.5531 GB, free: 4.426 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.984e-05/0.3111, allocations: 20 kB / 0.5532 GB, free: 4.406 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.001082/0.3121, allocations: 0.9375 MB / 0.5541 GB, free: 3.473 MB / 398.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.3121, allocations: 0 / 0.5541 GB, free: 3.473 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0006511/0.3128, allocations: 223.2 kB / 0.5543 GB, free: 3.254 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (70):
 * Single equations (assignments): 70
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001666/0.313, allocations: 119.1 kB / 0.5544 GB, free: 3.129 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001395/0.3144, allocations: 1.053 MB / 0.5554 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3144, allocations: 3.938 kB / 0.5554 GB, free: 2.074 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006298/0.315, allocations: 0.5116 MB / 0.5559 GB, free: 1.562 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006846/0.3157, allocations: 101.5 kB / 0.556 GB, free: 1.461 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.3195, allocations: 2.921 MB / 0.5589 GB, free: 14.5 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000998/0.3205, allocations: 1.334 MB / 0.5602 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0003631/0.3209, allocations: 132.9 kB / 0.5603 GB, free: 13.01 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.321, allocations: 59.42 kB / 0.5604 GB, free: 12.95 MB / 414.1 MB
Notification: Performance of SimCode: time 3.61e-07/0.321, allocations: 4 kB / 0.5604 GB, free: 12.95 MB / 414.1 MB
Notification: Performance of Templates: time 0.01357/0.3346, allocations: 6.223 MB / 0.5665 GB, free: 6.73 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile [Timeout 660]
(rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4  -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.46276549436152]
Failed to read output from testmodel.py, exit status != 0:
0.34257894195616245 0.35596579100000003 0.07403234900000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f48c0fe17b0>