Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 113.5 kB / 16.42 MB, free: 6.473 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.001817/0.001818, allocations: 186.6 kB / 17.35 MB, free: 5.75 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1995/0.1995, allocations: 28.79 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 55.91 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1314, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005778/0.1372, allocations: 3.639 MB / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.1396, allocations: 0.6779 MB / 0.4939 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1406, allocations: 19.94 kB / 0.4939 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007845/0.1414, allocations: 174.3 kB / 0.4941 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009361/0.1425, allocations: 138.8 kB / 0.4942 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.1436, allocations: 355.5 kB / 0.4946 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.1447, allocations: 0.8483 MB / 0.4954 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008429/0.1455, allocations: 0.652 MB / 0.496 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.1458, allocations: 326.4 kB / 0.4963 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.1462, allocations: 421.6 kB / 0.4967 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1463, allocations: 84 kB / 0.4968 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.1465, allocations: 112 kB / 0.4969 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003788/0.1469, allocations: 438.4 kB / 0.4973 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004379/0.1474, allocations: 0.6203 MB / 0.4979 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1485, allocations: 1.248 MB / 0.4992 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1486, allocations: 0 / 0.4992 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1486, allocations: 0 / 0.4992 GB, free: 272 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.1486, allocations: 0 / 0.4992 GB, free: 272 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002169/0.1508, allocations: 1.776 MB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.1508, allocations: 12.03 kB / 0.5009 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002313/0.1511, allocations: 198.5 kB / 0.5011 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1521, allocations: 0.7589 MB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.062e-05/0.1522, allocations: 74.44 kB / 0.5019 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.1523, allocations: 104.4 kB / 0.502 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.1539, allocations: 1.154 MB / 0.5031 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.154, allocations: 4.188 kB / 0.5031 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.176e-05/0.154, allocations: 47.88 kB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.1541, allocations: 28 kB / 0.5032 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.1556, allocations: 1.093 MB / 0.5043 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004483/0.16, allocations: 3.646 MB / 0.5078 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.1616, allocations: 1.33 MB / 0.5091 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005041/0.1621, allocations: 482.3 kB / 0.5096 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.898e-05/0.1622, allocations: 28.75 kB / 0.5096 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.1622, allocations: 47.06 kB / 0.5097 GB, free: 5.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.535e-06/0.1622, allocations: 0 / 0.5097 GB, free: 5.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001803/0.164, allocations: 1.512 MB / 0.5112 GB, free: 3.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.1641, allocations: 63.97 kB / 0.5112 GB, free: 3.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.1655, allocations: 1.289 MB / 0.5125 GB, free: 2.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.1656, allocations: 33.7 kB / 0.5125 GB, free: 2.262 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006064/0.1662, allocations: 0.7715 MB / 0.5133 GB, free: 1.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.1664, allocations: 228.6 kB / 0.5135 GB, free: 1.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1666, allocations: 114.2 kB / 0.5136 GB, free: 1.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1667, allocations: 337.9 kB / 0.5139 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.1672, allocations: 433.1 kB / 0.5143 GB, free: 388 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3016/0.4688, allocations: 0.5331 MB / 0.5148 GB, free: 26.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.4702, allocations: 0.9908 MB / 0.5158 GB, free: 26.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4702, allocations: 0 / 0.5158 GB, free: 26.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001381/0.4716, allocations: 1.181 MB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.4716, allocations: 6.969 kB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.4717, allocations: 5.984 kB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.4717, allocations: 5.625 kB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004517/0.4721, allocations: 125.3 kB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.4722, allocations: 11.3 kB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.4724, allocations: 54.78 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.4725, allocations: 25.2 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (82): * Single equations (assignments): 82 * 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.0005185/0.473, allocations: 382.1 kB / 0.5175 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.4732, allocations: 143.7 kB / 0.5177 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.4747, allocations: 1.19 MB / 0.5188 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.4747, allocations: 8.562 kB / 0.5189 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4747, allocations: 0 / 0.5189 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.4749, allocations: 206.9 kB / 0.5191 GB, free: 26.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.635e-05/0.475, allocations: 13.72 kB / 0.5191 GB, free: 26.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.4753, allocations: 11.19 kB / 0.5191 GB, free: 26.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.613e-05/0.4753, allocations: 42.78 kB / 0.5191 GB, free: 26.33 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001462/0.4768, allocations: 1.12 MB / 0.5202 GB, free: 26.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002247/0.4791, allocations: 1.947 MB / 0.5221 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006104/0.4797, allocations: 0.4937 MB / 0.5226 GB, free: 25.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.4809, allocations: 0.8961 MB / 0.5235 GB, free: 25.78 MB / 398.1 MB Notification: Performance of Backend: time 5.41e-07/0.4809, allocations: 3.438 kB / 0.5235 GB, free: 25.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.4822, allocations: 0.6419 MB / 0.5241 GB, free: 25.71 MB / 398.1 MB Notification: Performance of SimCode: time 0.003812/0.4861, allocations: 2.885 MB / 0.5269 GB, free: 24.24 MB / 398.1 MB Notification: Performance of Templates: time 0.01983/0.5059, allocations: 7.611 MB / 0.5343 GB, free: 23.54 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)