Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002088/0.002094, allocations: 174.4 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.3 MB / 213.4 MB, free: 13.78 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.001099, allocations: 88.27 kB / 261.4 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.235/0.235, allocations: 28.84 MB / 338.2 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.879e-05/1.88e-05, allocations: 0 / 399 MB, free: 56.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09399/0.09404, allocations: 54.65 MB / 453.7 MB, free: 2.121 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.451/0.5451, allocations: 79.34 MB / 0.5205 GB, free: 108 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.5454, allocations: 63.91 kB / 0.5206 GB, free: 80 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0592/0.6046, allocations: 14.29 MB / 0.5346 GB, free: 2.773 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6047, allocations: 0 / 0.5346 GB, free: 2.773 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001239/0.6048, allocations: 36 kB / 0.5346 GB, free: 2.738 MB / 362.7 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.003227/0.6081, allocations: 1.396 MB / 0.5359 GB, free: 1.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.6081, allocations: 12.03 kB / 0.536 GB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005126/0.6087, allocations: 193.6 kB / 0.5361 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.6105, allocations: 0.7631 MB / 0.5369 GB, free: 280 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.213e-05/0.6106, allocations: 32 kB / 0.5369 GB, free: 248 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002222/0.6108, allocations: 60 kB / 0.537 GB, free: 188 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003214/0.6141, allocations: 1.183 MB / 0.5381 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002875/0.617, allocations: 1.124 MB / 0.5392 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.66e-05/0.6171, allocations: 3.938 kB / 0.5392 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.6172, allocations: 0 / 0.5392 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.618e-05/0.6172, allocations: 28 kB / 0.5393 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009289/0.6265, allocations: 3.683 MB / 0.5429 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003959/0.6306, allocations: 1.558 MB / 0.5444 GB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.6319, allocations: 0.534 MB / 0.5449 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.632, allocations: 32.92 kB / 0.5449 GB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001509/0.6335, allocations: 0.633 MB / 0.5456 GB, free: 7.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 3.497e-06/0.6336, allocations: 0 / 0.5456 GB, free: 7.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.003636/0.6372, allocations: 1.295 MB / 0.5468 GB, free: 5.922 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.6373, allocations: 60.19 kB / 0.5469 GB, free: 5.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/0.6394, allocations: 1.011 MB / 0.5479 GB, free: 4.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002156/0.6396, allocations: 25.7 kB / 0.5479 GB, free: 4.805 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009571/0.6406, allocations: 0.7598 MB / 0.5486 GB, free: 4.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003961/0.641, allocations: 236.4 kB / 0.5489 GB, free: 3.801 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.6411, allocations: 0 / 0.5489 GB, free: 3.801 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.6413, allocations: 333.9 kB / 0.5492 GB, free: 3.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.6425, allocations: 0.4934 MB / 0.5497 GB, free: 2.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/0.6438, allocations: 0.5994 MB / 0.5502 GB, free: 2.336 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.6456, allocations: 0.5587 MB / 0.5508 GB, free: 1.781 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.6456, allocations: 4 kB / 0.5508 GB, free: 1.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003673/0.6493, allocations: 1.349 MB / 0.5521 GB, free: 424 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.6494, allocations: 11.98 kB / 0.5521 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.6494, allocations: 4 kB / 0.5521 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.6495, allocations: 4 kB / 0.5521 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.6506, allocations: 159.8 kB / 0.5523 GB, free: 244 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.838e-05/0.6507, allocations: 11.98 kB / 0.5523 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.6512, allocations: 35.44 kB / 0.5523 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/0.6514, allocations: 75.98 kB / 0.5524 GB, free: 120 kB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "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_dPop,min_dPop,$PRE.min_QL,min_QL,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003129/0.6517, allocations: 139.9 kB / 0.5525 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.652, allocations: 138.2 kB / 0.5527 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005004/0.657, allocations: 1.6 MB / 0.5542 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.6571, allocations: 8 kB / 0.5542 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.6571, allocations: 0 / 0.5542 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.6571, allocations: 7.984 kB / 0.5542 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006225/0.6634, allocations: 2.448 MB / 0.5566 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.6634, allocations: 0 / 0.5566 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.6646, allocations: 139.8 kB / 0.5568 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.508e-05/0.6646, allocations: 4 kB / 0.5568 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.6647, allocations: 19.98 kB / 0.5568 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.6647, allocations: 4 kB / 0.5568 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.6648, allocations: 0 / 0.5568 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005394/0.6702, allocations: 2.225 MB / 0.559 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000852/0.6711, allocations: 331.1 kB / 0.5593 GB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.6713, allocations: 0 / 0.5593 GB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.6717, allocations: 3.984 kB / 0.5593 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.6719, allocations: 56.66 kB / 0.5593 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/0.6721, allocations: 71.97 kB / 0.5594 GB, free: 8.832 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001686/0.6738, allocations: 0.787 MB / 0.5602 GB, free: 8.047 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.6738, allocations: 0 / 0.5602 GB, free: 8.047 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009915/0.6748, allocations: 198.9 kB / 0.5604 GB, free: 7.852 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002526/0.6751, allocations: 119.2 kB / 0.5605 GB, free: 7.727 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.677, allocations: 0.9695 MB / 0.5614 GB, free: 6.758 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.677, allocations: 0 / 0.5614 GB, free: 6.758 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008964/0.678, allocations: 0.4988 MB / 0.5619 GB, free: 6.258 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.6787, allocations: 65.22 kB / 0.562 GB, free: 6.191 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005311/0.684, allocations: 2.127 MB / 0.564 GB, free: 4.027 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001429/0.6855, allocations: 1.351 MB / 0.5654 GB, free: 2.648 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004909/0.686, allocations: 76.53 kB / 0.5654 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.6862, allocations: 47.38 kB / 0.5655 GB, free: 2.527 MB / 394.7 MB Notification: Performance of SimCode: time 4.368e-06/0.6863, allocations: 0 / 0.5655 GB, free: 2.527 MB / 394.7 MB Notification: Performance of Templates: time 0.02037/0.7066, allocations: 4.488 MB / 0.5699 GB, free: 14.03 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (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)