Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 116.2 kB / 16.42 MB, free: 6.496 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.00108/0.00108, allocations: 183.9 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.406/1.406, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1973/0.1973, allocations: 28.78 MB / 320 MB, free: 1.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.91 kB / 445 MB, free: 2.559 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1352, allocations: 56.41 MB / 0.4897 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.005223/0.1404, allocations: 3.257 MB / 0.4929 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.1427, allocations: 0.5338 MB / 0.4934 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004474/0.1431, allocations: 12 kB / 0.4934 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004242/0.1436, allocations: 142.6 kB / 0.4935 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003704/0.144, allocations: 126.9 kB / 0.4937 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00071/0.1447, allocations: 283.6 kB / 0.4939 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006581/0.1454, allocations: 0.7201 MB / 0.4946 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006897/0.1461, allocations: 477.2 kB / 0.4951 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.1464, allocations: 306.5 kB / 0.4954 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.1467, allocations: 393.8 kB / 0.4958 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.1469, allocations: 76 kB / 0.4958 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002063/0.1471, allocations: 104 kB / 0.4959 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004142/0.1475, allocations: 422.5 kB / 0.4963 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004566/0.148, allocations: 0.5815 MB / 0.4969 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.1491, allocations: 1.135 MB / 0.498 GB, free: 1.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1491, allocations: 0 / 0.498 GB, free: 1.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1491, allocations: 0 / 0.498 GB, free: 1.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.1492, allocations: 0 / 0.498 GB, free: 1.508 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002195/0.1514, allocations: 1.717 MB / 0.4997 GB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1514, allocations: 8.031 kB / 0.4997 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002366/0.1517, allocations: 186.6 kB / 0.4999 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005241/0.1522, allocations: 0.5702 MB / 0.5004 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.977e-05/0.1523, allocations: 74.38 kB / 0.5005 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.1524, allocations: 100.4 kB / 0.5006 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.154, allocations: 1.075 MB / 0.5016 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.1541, allocations: 4.188 kB / 0.5016 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.786e-05/0.1542, allocations: 47.92 kB / 0.5017 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.28e-05/0.1542, allocations: 50.12 kB / 0.5017 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.156, allocations: 1.219 MB / 0.5029 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.1606, allocations: 2.835 MB / 0.5057 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.1621, allocations: 0.9944 MB / 0.5067 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.1627, allocations: 0.4905 MB / 0.5071 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.264e-05/0.1628, allocations: 36.61 kB / 0.5072 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.1629, allocations: 47.12 kB / 0.5072 GB, free: 7.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.905e-06/0.1629, allocations: 0 / 0.5072 GB, free: 7.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002142/0.165, allocations: 1.583 MB / 0.5088 GB, free: 6.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.1651, allocations: 59.91 kB / 0.5088 GB, free: 6.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.1665, allocations: 1.262 MB / 0.5101 GB, free: 4.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.1666, allocations: 37.7 kB / 0.5101 GB, free: 4.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006666/0.1673, allocations: 0.782 MB / 0.5109 GB, free: 4.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.1675, allocations: 228.7 kB / 0.5111 GB, free: 3.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.1677, allocations: 130.6 kB / 0.5112 GB, free: 3.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.1679, allocations: 334 kB / 0.5115 GB, free: 3.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006333/0.1686, allocations: 477.7 kB / 0.512 GB, free: 2.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009089/0.1695, allocations: 0.6559 MB / 0.5126 GB, free: 2.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2798/0.4493, allocations: 2.121 MB / 0.5147 GB, free: 26.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-05/0.4494, allocations: 2.531 kB / 0.5147 GB, free: 26.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002737/0.4522, allocations: 1.332 MB / 0.516 GB, free: 26.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.4522, allocations: 8.812 kB / 0.516 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.4522, allocations: 7.688 kB / 0.516 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/0.4523, allocations: 10.97 kB / 0.516 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006254/0.4529, allocations: 180.5 kB / 0.5162 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.791e-05/0.4529, allocations: 14.06 kB / 0.5162 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.4533, allocations: 82.42 kB / 0.5163 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.488e-05/0.4533, allocations: 34.62 kB / 0.5163 GB, free: 26.56 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0006978/0.454, allocations: 405.3 kB / 0.5167 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.4542, allocations: 134.7 kB / 0.5168 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.4559, allocations: 1.252 MB / 0.5181 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.456, allocations: 0 / 0.5181 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.456, allocations: 1.609 kB / 0.5181 GB, free: 26.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.4561, allocations: 199.4 kB / 0.5182 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.017e-05/0.4562, allocations: 16.38 kB / 0.5183 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.4565, allocations: 30.23 kB / 0.5183 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.732e-05/0.4566, allocations: 44.19 kB / 0.5183 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002198/0.4588, allocations: 1.244 MB / 0.5195 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002782/0.4616, allocations: 2.005 MB / 0.5215 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007338/0.4623, allocations: 0.5152 MB / 0.522 GB, free: 25.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001161/0.4635, allocations: 0.8706 MB / 0.5229 GB, free: 25.69 MB / 398.1 MB Notification: Performance of Backend: time 8.41e-07/0.4635, allocations: 0 / 0.5229 GB, free: 25.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.4651, allocations: 0.7264 MB / 0.5236 GB, free: 25.62 MB / 398.1 MB Notification: Performance of SimCode: time 0.003723/0.4688, allocations: 2.831 MB / 0.5263 GB, free: 24.17 MB / 398.1 MB Notification: Performance of Templates: time 0.019/0.4879, allocations: 7.665 MB / 0.5338 GB, free: 23.34 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)