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) 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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 107.7 kB / 16.41 MB, free: 6.457 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.00127/0.00127, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1998/0.1998, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 445 MB, free: 2.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1347, allocations: 56.42 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005896/0.1406, allocations: 3.685 MB / 0.4933 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003229/0.1439, allocations: 0.7752 MB / 0.494 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008296/0.1448, allocations: 15.94 kB / 0.4941 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005748/0.1453, allocations: 178.3 kB / 0.4942 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003638/0.1458, allocations: 138.8 kB / 0.4944 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009186/0.1467, allocations: 375.5 kB / 0.4947 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008753/0.1476, allocations: 0.8601 MB / 0.4956 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008332/0.1484, allocations: 0.6443 MB / 0.4962 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003542/0.1488, allocations: 346.4 kB / 0.4965 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005478/0.1493, allocations: 433.5 kB / 0.4969 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.1495, allocations: 88 kB / 0.497 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002228/0.1497, allocations: 112 kB / 0.4971 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000399/0.1501, allocations: 442.5 kB / 0.4975 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004998/0.1506, allocations: 0.628 MB / 0.4982 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.152, allocations: 1.268 MB / 0.4994 GB, free: 52 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.152, allocations: 4 kB / 0.4994 GB, free: 48 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1521, allocations: 0 / 0.4994 GB, free: 48 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.1521, allocations: 0 / 0.4994 GB, free: 48 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002487/0.1546, allocations: 1.799 MB / 0.5012 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.1546, allocations: 8.031 kB / 0.5012 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.1549, allocations: 198.4 kB / 0.5013 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1559, allocations: 0.7668 MB / 0.5021 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.799e-05/0.156, allocations: 82.45 kB / 0.5022 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002108/0.1562, allocations: 104.3 kB / 0.5023 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.158, allocations: 1.174 MB / 0.5034 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.1581, allocations: 8.109 kB / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.442e-05/0.1581, allocations: 47.94 kB / 0.5035 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.205e-05/0.1582, allocations: 28 kB / 0.5035 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.1597, allocations: 1.105 MB / 0.5046 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004648/0.1643, allocations: 3.658 MB / 0.5082 GB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.1661, allocations: 1.369 MB / 0.5095 GB, free: 5.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006269/0.1667, allocations: 494.6 kB / 0.51 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.675e-05/0.1668, allocations: 24.86 kB / 0.51 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007759/0.1676, allocations: 0.551 MB / 0.5105 GB, free: 4.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.527e-06/0.1676, allocations: 0 / 0.5105 GB, free: 4.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002126/0.1698, allocations: 1.574 MB / 0.5121 GB, free: 2.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.1698, allocations: 60.06 kB / 0.5121 GB, free: 2.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.1716, allocations: 1.301 MB / 0.5134 GB, free: 1.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/0.1716, allocations: 37.7 kB / 0.5134 GB, free: 1.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005867/0.1722, allocations: 0.7639 MB / 0.5142 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.1724, allocations: 248.4 kB / 0.5144 GB, free: 308 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.1726, allocations: 122.6 kB / 0.5145 GB, free: 180 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.2876/0.4602, allocations: 333.7 kB / 0.5148 GB, free: 27.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.4613, allocations: 445.8 kB / 0.5153 GB, free: 27.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008175/0.4621, allocations: 0.5518 MB / 0.5158 GB, free: 27.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.4635, allocations: 1.044 MB / 0.5168 GB, free: 27.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.4636, allocations: 0.5625 kB / 0.5168 GB, free: 27.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001981/0.4655, allocations: 1.223 MB / 0.518 GB, free: 27.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.4656, allocations: 7.875 kB / 0.518 GB, free: 27.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.4656, allocations: 3.719 kB / 0.518 GB, free: 27.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.136e-05/0.4656, allocations: 6.625 kB / 0.518 GB, free: 27.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005311/0.4662, allocations: 139.5 kB / 0.5182 GB, free: 27.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.484e-05/0.4662, allocations: 11.17 kB / 0.5182 GB, free: 27.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.4666, allocations: 54.83 kB / 0.5182 GB, free: 27.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.4667, allocations: 30.16 kB / 0.5183 GB, free: 27.35 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.0008231/0.4675, allocations: 391.2 kB / 0.5186 GB, free: 27.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.4677, allocations: 143.3 kB / 0.5188 GB, free: 27.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/0.4693, allocations: 1.235 MB / 0.52 GB, free: 27.15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.4694, allocations: 3.938 kB / 0.52 GB, free: 27.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4694, allocations: 4.562 kB / 0.52 GB, free: 27.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002654/0.4697, allocations: 253.4 kB / 0.5202 GB, free: 27.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.928e-05/0.4697, allocations: 18.34 kB / 0.5202 GB, free: 27.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.47, allocations: 15.72 kB / 0.5203 GB, free: 27.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.4701, allocations: 38.3 kB / 0.5203 GB, free: 27.02 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00176/0.4718, allocations: 1.163 MB / 0.5214 GB, free: 26.9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002956/0.4748, allocations: 2.015 MB / 0.5234 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008607/0.4757, allocations: 0.5021 MB / 0.5239 GB, free: 26.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001765/0.4774, allocations: 0.9012 MB / 0.5248 GB, free: 26.47 MB / 398.1 MB Notification: Performance of Backend: time 8.72e-07/0.4774, allocations: 0 / 0.5248 GB, free: 26.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.4794, allocations: 0.67 MB / 0.5254 GB, free: 26.3 MB / 398.1 MB Notification: Performance of SimCode: time 0.005567/0.485, allocations: 2.902 MB / 0.5283 GB, free: 24.64 MB / 398.1 MB Notification: Performance of Templates: time 0.02644/0.5114, allocations: 7.876 MB / 0.536 GB, free: 23.48 MB / 398.1 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)