Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.001535/0.001535, 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.001578/0.001578, allocations: 191.7 kB / 22.23 MB, free: 5.105 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.311/1.311, 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.1799/0.1799, allocations: 29.23 MB / 335.5 MB, free: 11.34 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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 67.89 kB / 470.4 MB, free: 6.797 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2703, allocations: 59.62 MB / 0.5176 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003681/0.274, allocations: 3.699 MB / 0.5212 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.2752, allocations: 0.7715 MB / 0.522 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002808/0.2755, allocations: 22.44 kB / 0.522 GB, free: 6.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003547/0.2759, allocations: 177.4 kB / 0.5222 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002723/0.2761, allocations: 141.8 kB / 0.5223 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006519/0.2768, allocations: 381 kB / 0.5227 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000718/0.2775, allocations: 0.8663 MB / 0.5235 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005731/0.2781, allocations: 0.5001 MB / 0.524 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/0.2783, allocations: 356.9 kB / 0.5243 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.2786, allocations: 459 kB / 0.5248 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.2788, allocations: 85.91 kB / 0.5249 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.2789, allocations: 117.1 kB / 0.525 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002979/0.2792, allocations: 442.6 kB / 0.5254 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002954/0.2795, allocations: 0.6257 MB / 0.526 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.2806, allocations: 1.273 MB / 0.5273 GB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2806, allocations: 0 / 0.5273 GB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2806, allocations: 0 / 0.5273 GB, free: 3.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.2806, allocations: 3.938 kB / 0.5273 GB, free: 3.812 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001882/0.2825, allocations: 1.788 MB / 0.529 GB, free: 2.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.2825, allocations: 9.406 kB / 0.529 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002391/0.2828, allocations: 214.4 kB / 0.5292 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007506/0.2835, allocations: 0.7226 MB / 0.5299 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.214e-05/0.2836, allocations: 76.44 kB / 0.53 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.2837, allocations: 108.9 kB / 0.5301 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.2853, allocations: 1.171 MB / 0.5312 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.2853, allocations: 192 / 0.5312 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.2853, allocations: 46.3 kB / 0.5313 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.2854, allocations: 25.97 kB / 0.5313 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.2868, allocations: 1.108 MB / 0.5324 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.291, allocations: 3.601 MB / 0.5359 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.2926, allocations: 1.329 MB / 0.5372 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005503/0.2931, allocations: 478.9 kB / 0.5377 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.078e-05/0.2932, allocations: 31.36 kB / 0.5377 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007132/0.2939, allocations: 0.546 MB / 0.5382 GB, free: 14.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 1.943e-06/0.2939, allocations: 0 / 0.5382 GB, free: 14.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.001914/0.2958, allocations: 1.572 MB / 0.5398 GB, free: 14.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.2959, allocations: 60.19 kB / 0.5398 GB, free: 13.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/0.2974, allocations: 1.307 MB / 0.5411 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.2974, allocations: 37.27 kB / 0.5411 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00061/0.298, allocations: 0.7792 MB / 0.5419 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.2982, allocations: 250.3 kB / 0.5421 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.2984, allocations: 124.6 kB / 0.5423 GB, free: 12.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2986, allocations: 336.8 kB / 0.5426 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005209/0.2991, allocations: 451.8 kB / 0.543 GB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.2997, allocations: 0.5521 MB / 0.5435 GB, free: 11.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.3009, allocations: 1.05 MB / 0.5446 GB, free: 11.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3009, allocations: 1.156 kB / 0.5446 GB, free: 11.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001466/0.3024, allocations: 1.226 MB / 0.5458 GB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3024, allocations: 11.22 kB / 0.5458 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3024, allocations: 2.531 kB / 0.5458 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.3024, allocations: 6.875 kB / 0.5458 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004413/0.3029, allocations: 139 kB / 0.5459 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3029, allocations: 5.5 kB / 0.5459 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.3032, allocations: 57.31 kB / 0.546 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.3032, allocations: 24.62 kB / 0.546 GB, free: 10.47 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005218/0.3037, allocations: 394.1 kB / 0.5464 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.3039, allocations: 148.6 kB / 0.5465 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.3054, allocations: 1.236 MB / 0.5477 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.3054, allocations: 6.906 kB / 0.5477 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3054, allocations: 0 / 0.5477 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3054, allocations: 9.328 kB / 0.5477 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.3082, allocations: 2.39 MB / 0.5501 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3082, allocations: 4 kB / 0.5501 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004475/0.3086, allocations: 115.8 kB / 0.5502 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3086, allocations: 4 kB / 0.5502 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.3086, allocations: 16 kB / 0.5502 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3086, allocations: 0 / 0.5502 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3087, allocations: 3.938 kB / 0.5502 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.3108, allocations: 1.937 MB / 0.5521 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.3111, allocations: 194.8 kB / 0.5523 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/0.3112, allocations: 8 kB / 0.5523 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.3114, allocations: 12.12 kB / 0.5523 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.3115, allocations: 52.5 kB / 0.5524 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.561e-05/0.3115, allocations: 24 kB / 0.5524 GB, free: 5.441 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.3126, allocations: 0.8969 MB / 0.5533 GB, free: 4.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3126, allocations: 4 kB / 0.5533 GB, free: 4.543 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005433/0.3131, allocations: 211.3 kB / 0.5535 GB, free: 4.336 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001754/0.3133, allocations: 131 kB / 0.5536 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.3145, allocations: 0.9893 MB / 0.5546 GB, free: 3.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3145, allocations: 0 / 0.5546 GB, free: 3.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005813/0.3151, allocations: 0.5073 MB / 0.555 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005796/0.3157, allocations: 89.39 kB / 0.5551 GB, free: 2.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/0.3192, allocations: 2.846 MB / 0.5579 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009119/0.3202, allocations: 1.307 MB / 0.5592 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002145/0.3204, allocations: 80.66 kB / 0.5593 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.3205, allocations: 47.44 kB / 0.5593 GB, free: 14.27 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3205, allocations: 0 / 0.5593 GB, free: 14.27 MB / 414.1 MB Notification: Performance of Templates: time 0.01244/0.3329, allocations: 5.854 MB / 0.565 GB, free: 8.418 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.510554027743638] Failed to read output from testmodel.py, exit status != 0: 0.34063507337123156 0.35389109100000005 0.07044940000000001 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f3606e8d7b0>