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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 113.3 kB / 16.42 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 186.5 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1863/0.1863, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001294, allocations: 56.05 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.135, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005457/0.1405, allocations: 3.666 MB / 0.4933 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.1425, allocations: 0.6896 MB / 0.4939 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007291/0.1432, allocations: 15.94 kB / 0.494 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006053/0.1439, allocations: 174.3 kB / 0.4941 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006604/0.1446, allocations: 138.8 kB / 0.4943 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009526/0.1455, allocations: 371.5 kB / 0.4946 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.1467, allocations: 0.8562 MB / 0.4954 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009077/0.1476, allocations: 0.6364 MB / 0.4961 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.1479, allocations: 346.4 kB / 0.4964 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004212/0.1484, allocations: 417.6 kB / 0.4968 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.1485, allocations: 88 kB / 0.4969 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000243/0.1488, allocations: 116 kB / 0.497 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003829/0.1492, allocations: 454.3 kB / 0.4974 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005914/0.1498, allocations: 0.6358 MB / 0.498 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.151, allocations: 1.287 MB / 0.4993 GB, free: 132 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.151, allocations: 0 / 0.4993 GB, free: 132 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.151, allocations: 0 / 0.4993 GB, free: 132 kB / 382.1 MB Notification: Performance of Transformations before backend: time 4.653e-05/0.1511, allocations: 0 / 0.4993 GB, free: 132 kB / 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.002416/0.1535, allocations: 1.815 MB / 0.5011 GB, free: 14.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.1536, allocations: 12.03 kB / 0.5011 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002929/0.1539, allocations: 210.3 kB / 0.5013 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009431/0.1548, allocations: 0.7625 MB / 0.502 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.254e-05/0.1549, allocations: 78.48 kB / 0.5021 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.155, allocations: 108.4 kB / 0.5022 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.1568, allocations: 1.274 MB / 0.5035 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.1568, allocations: 8.125 kB / 0.5035 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.895e-05/0.1569, allocations: 47.94 kB / 0.5035 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.733e-05/0.1569, allocations: 47.98 kB / 0.5036 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.1587, allocations: 1.226 MB / 0.5047 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004952/0.1636, allocations: 3.885 MB / 0.5085 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.1652, allocations: 1.369 MB / 0.5099 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005858/0.1658, allocations: 491.3 kB / 0.5103 GB, free: 4.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.986e-05/0.1659, allocations: 36.75 kB / 0.5104 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.166, allocations: 43.12 kB / 0.5104 GB, free: 4.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.214e-06/0.166, allocations: 3.938 kB / 0.5104 GB, free: 4.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.00199/0.168, allocations: 1.551 MB / 0.5119 GB, free: 2.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.168, allocations: 85.67 kB / 0.512 GB, free: 2.727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.1696, allocations: 1.374 MB / 0.5134 GB, free: 1.344 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.327e-05/0.1697, allocations: 37.7 kB / 0.5134 GB, free: 1.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006322/0.1703, allocations: 0.837 MB / 0.5142 GB, free: 464 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.1705, allocations: 248.4 kB / 0.5145 GB, free: 212 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.1707, allocations: 150.6 kB / 0.5146 GB, free: 56 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.3057/0.4764, allocations: 342 kB / 0.5149 GB, free: 26.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.4775, allocations: 473.4 kB / 0.5154 GB, free: 26.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009055/0.4784, allocations: 0.7161 MB / 0.5161 GB, free: 26.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.4797, allocations: 1.239 MB / 0.5173 GB, free: 26.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.4798, allocations: 1.938 kB / 0.5173 GB, free: 26.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002053/0.4818, allocations: 1.384 MB / 0.5186 GB, free: 26.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.4819, allocations: 7.25 kB / 0.5186 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.4819, allocations: 10.22 kB / 0.5187 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.4819, allocations: 14.19 kB / 0.5187 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.4825, allocations: 189.5 kB / 0.5189 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.365e-05/0.4826, allocations: 16.91 kB / 0.5189 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.483, allocations: 88.86 kB / 0.519 GB, free: 26.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.4831, allocations: 39.22 kB / 0.519 GB, free: 26.05 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.000644/0.4837, allocations: 409.4 kB / 0.5194 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.4839, allocations: 146.6 kB / 0.5195 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.4856, allocations: 1.245 MB / 0.5207 GB, free: 25.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4856, allocations: 3.938 kB / 0.5207 GB, free: 25.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.4857, allocations: 3.938 kB / 0.5207 GB, free: 25.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.4859, allocations: 213.4 kB / 0.5209 GB, free: 25.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.524e-05/0.486, allocations: 11.78 kB / 0.521 GB, free: 25.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002763/0.4863, allocations: 18.34 kB / 0.521 GB, free: 25.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.434e-05/0.4864, allocations: 41.95 kB / 0.521 GB, free: 25.73 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001743/0.4881, allocations: 1.246 MB / 0.5222 GB, free: 25.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002325/0.4905, allocations: 2.073 MB / 0.5243 GB, free: 25.14 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006613/0.4911, allocations: 0.5098 MB / 0.5248 GB, free: 25.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001335/0.4925, allocations: 0.9318 MB / 0.5257 GB, free: 25.02 MB / 398.1 MB Notification: Performance of Backend: time 6.61e-07/0.4925, allocations: 0 / 0.5257 GB, free: 25.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.4941, allocations: 0.7378 MB / 0.5264 GB, free: 24.91 MB / 398.1 MB Notification: Performance of SimCode: time 0.004021/0.4981, allocations: 2.987 MB / 0.5293 GB, free: 23.41 MB / 398.1 MB Notification: Performance of Templates: time 0.021/0.5191, allocations: 8.201 MB / 0.5373 GB, free: 22.07 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (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)