Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001235/0.001235, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001274/0.001274, allocations: 189.1 kB / 22.22 MB, free: 5.102 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.31/1.31, allocations: 225.6 MB / 251 MB, free: 13.02 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.1719/0.1719, allocations: 29.23 MB / 335.5 MB, free: 11.32 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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3")
translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 75.88 kB / 470.4 MB, free: 6.797 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2642, allocations: 59.61 MB / 0.5176 GB, free: 10.03 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003608/0.2678, allocations: 3.681 MB / 0.5212 GB, free: 7.328 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001089/0.2688, allocations: 0.6771 MB / 0.5219 GB, free: 6.828 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002713/0.2691, allocations: 18.09 kB / 0.5219 GB, free: 6.824 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.2695, allocations: 175.6 kB / 0.522 GB, free: 6.719 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.2697, allocations: 137.7 kB / 0.5222 GB, free: 6.633 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006187/0.2704, allocations: 365.6 kB / 0.5225 GB, free: 6.438 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006628/0.271, allocations: 0.8429 MB / 0.5233 GB, free: 6.051 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005807/0.2716, allocations: 0.4997 MB / 0.5238 GB, free: 5.727 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.2718, allocations: 346.2 kB / 0.5242 GB, free: 5.535 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.2721, allocations: 439.9 kB / 0.5246 GB, free: 5.27 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.2722, allocations: 85.22 kB / 0.5247 GB, free: 5.27 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.2724, allocations: 119.8 kB / 0.5248 GB, free: 5.258 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002952/0.2727, allocations: 445.9 kB / 0.5252 GB, free: 5.051 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002821/0.273, allocations: 0.6127 MB / 0.5258 GB, free: 4.574 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001026/0.274, allocations: 1.269 MB / 0.527 GB, free: 3.902 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.274, allocations: 0.5625 kB / 0.527 GB, free: 3.902 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.031e-06/0.274, allocations: 0 / 0.527 GB, free: 3.902 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 2.371e-05/0.274, allocations: 0 / 0.527 GB, free: 3.902 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: 263
 * Number of variables: 263
Notification: Performance of Generate backend data structure: time 0.001777/0.2758, allocations: 1.769 MB / 0.5288 GB, free: 2.676 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2758, allocations: 12.38 kB / 0.5288 GB, free: 2.676 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002154/0.2761, allocations: 207.8 kB / 0.529 GB, free: 2.562 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007547/0.2768, allocations: 0.7124 MB / 0.5297 GB, free: 2.055 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.724e-05/0.2769, allocations: 76.89 kB / 0.5298 GB, free: 2.02 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.277, allocations: 103.6 kB / 0.5298 GB, free: 1.984 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.2786, allocations: 1.164 MB / 0.531 GB, free: 1.5 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.2786, allocations: 4.188 kB / 0.531 GB, free: 1.496 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.2786, allocations: 49.81 kB / 0.531 GB, free: 1.457 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.2787, allocations: 25.69 kB / 0.5311 GB, free: 1.457 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.28, allocations: 1.098 MB / 0.5321 GB, free: 1.195 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003911/0.2839, allocations: 3.583 MB / 0.5356 GB, free: 15.2 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.2854, allocations: 1.305 MB / 0.5369 GB, free: 14.88 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005501/0.2859, allocations: 468.3 kB / 0.5374 GB, free: 14.77 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.764e-05/0.286, allocations: 26.64 kB / 0.5374 GB, free: 14.76 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.286, allocations: 37.72 kB / 0.5374 GB, free: 14.72 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=68): time 1.954e-06/0.286, allocations: 0 / 0.5374 GB, free: 14.72 MB / 398.1 MB
Notification: Performance of matching and sorting (n=68): time 0.001777/0.2878, allocations: 1.547 MB / 0.5389 GB, free: 14.29 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.2879, allocations: 59.22 kB / 0.539 GB, free: 14.22 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/0.2893, allocations: 1.284 MB / 0.5402 GB, free: 13.73 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.2893, allocations: 39.98 kB / 0.5403 GB, free: 13.69 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0005856/0.2899, allocations: 0.7744 MB / 0.541 GB, free: 13.01 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.2901, allocations: 245 kB / 0.5413 GB, free: 12.79 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.2902, allocations: 122.5 kB / 0.5414 GB, free: 12.71 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001373/0.2904, allocations: 335.3 kB / 0.5417 GB, free: 12.39 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.2909, allocations: 436.9 kB / 0.5421 GB, free: 12.25 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005807/0.2915, allocations: 0.5386 MB / 0.5426 GB, free: 11.98 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.2926, allocations: 1 MB / 0.5436 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2926, allocations: 1.125 kB / 0.5436 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of matching and sorting (n=83) (initialization): time 0.001394/0.294, allocations: 1.198 MB / 0.5448 GB, free: 11.07 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.294, allocations: 10.08 kB / 0.5448 GB, free: 11.06 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.294, allocations: 2.312 kB / 0.5448 GB, free: 11.06 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.294, allocations: 5.75 kB / 0.5448 GB, free: 11.06 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000445/0.2945, allocations: 127.1 kB / 0.5449 GB, free: 11.04 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.2945, allocations: 9.953 kB / 0.5449 GB, free: 11.04 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.2947, allocations: 56.42 kB / 0.545 GB, free: 10.99 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.2948, allocations: 34.55 kB / 0.545 GB, free: 10.98 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 11
 * 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 (83):
 * Single equations (assignments): 83
 * 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.0004315/0.2952, allocations: 387.9 kB / 0.5454 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.2953, allocations: 146.2 kB / 0.5455 GB, free: 10.63 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.2968, allocations: 1.195 MB / 0.5467 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.2968, allocations: 6.906 kB / 0.5467 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2968, allocations: 3.984 kB / 0.5467 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2968, allocations: 3.938 kB / 0.5467 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.2994, allocations: 2.353 MB / 0.549 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2994, allocations: 0 / 0.549 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/0.2999, allocations: 119 kB / 0.5491 GB, free: 8.809 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2999, allocations: 0 / 0.5491 GB, free: 8.809 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/0.2999, allocations: 19.98 kB / 0.5491 GB, free: 8.789 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2999, allocations: 0 / 0.5491 GB, free: 8.789 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.2999, allocations: 7.938 kB / 0.5492 GB, free: 8.781 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.302, allocations: 1.883 MB / 0.551 GB, free: 6.883 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.3022, allocations: 134.9 kB / 0.5511 GB, free: 6.75 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.834e-05/0.3023, allocations: 12 kB / 0.5511 GB, free: 6.738 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.3025, allocations: 12 kB / 0.5511 GB, free: 6.727 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.926e-05/0.3026, allocations: 48.5 kB / 0.5512 GB, free: 6.676 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.3027, allocations: 23.98 kB / 0.5512 GB, free: 6.652 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.001004/0.3037, allocations: 0.8887 MB / 0.5521 GB, free: 5.766 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3037, allocations: 4 kB / 0.5521 GB, free: 5.762 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0005063/0.3042, allocations: 215.2 kB / 0.5523 GB, free: 5.551 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * 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 (68):
 * Single equations (assignments): 68
 * 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.0001536/0.3043, allocations: 115.1 kB / 0.5524 GB, free: 5.43 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001235/0.3056, allocations: 0.9698 MB / 0.5533 GB, free: 4.461 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3056, allocations: 4.625 kB / 0.5534 GB, free: 4.457 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005883/0.3061, allocations: 0.4917 MB / 0.5538 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005705/0.3067, allocations: 89.27 kB / 0.5539 GB, free: 3.879 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.3102, allocations: 2.81 MB / 0.5567 GB, free: 1.031 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009276/0.3112, allocations: 1.319 MB / 0.5579 GB, free: 15.69 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.000212/0.3114, allocations: 72.39 kB / 0.558 GB, free: 15.62 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.3115, allocations: 47.44 kB / 0.5581 GB, free: 15.57 MB / 414.1 MB
Notification: Performance of SimCode: time 3.4e-07/0.3115, allocations: 0 / 0.5581 GB, free: 15.57 MB / 414.1 MB
Notification: Performance of Templates: time 0.01225/0.3237, allocations: 5.658 MB / 0.5636 GB, free: 9.914 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile [Timeout 660]
(rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3  -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.392490951344371]
Failed to read output from testmodel.py, exit status != 0:
0.33111842069774866 0.34410120199999994 0.06733112200000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f1246ff57b0>