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.001187/0.001187, allocations: 111.9 kB / 16.42 MB, free: 6.453 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.001157/0.001157, allocations: 192.3 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.299/1.299, 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.1701/0.1701, allocations: 28.79 MB / 320 MB, free: 1.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 55.91 kB / 445 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1069, 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.004756/0.1117, allocations: 3.658 MB / 0.4933 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.1132, allocations: 0.6818 MB / 0.4939 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003991/0.1136, allocations: 19.94 kB / 0.4939 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004377/0.1141, allocations: 174.3 kB / 0.4941 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003306/0.1144, allocations: 142.8 kB / 0.4942 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007514/0.1152, allocations: 363.5 kB / 0.4946 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007764/0.116, allocations: 0.8601 MB / 0.4954 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008083/0.1168, allocations: 0.6403 MB / 0.4961 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002922/0.1171, allocations: 338.5 kB / 0.4964 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003422/0.1174, allocations: 421.6 kB / 0.4968 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.1176, allocations: 92 kB / 0.4969 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.1178, allocations: 115.9 kB / 0.497 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003437/0.1181, allocations: 446.4 kB / 0.4974 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004385/0.1186, allocations: 0.6319 MB / 0.498 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.1198, allocations: 1.295 MB / 0.4993 GB, free: 148 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1198, allocations: 4 kB / 0.4993 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1198, allocations: 0 / 0.4993 GB, free: 144 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.1198, allocations: 0 / 0.4993 GB, free: 144 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.002182/0.122, allocations: 1.823 MB / 0.5011 GB, free: 14.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1221, allocations: 8.031 kB / 0.5011 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.1223, allocations: 206.3 kB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000942/0.1232, allocations: 0.7626 MB / 0.502 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.316e-05/0.1233, allocations: 82.47 kB / 0.5021 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.1234, allocations: 104.4 kB / 0.5022 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.1251, allocations: 1.274 MB / 0.5034 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.1251, allocations: 8.062 kB / 0.5035 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.1252, allocations: 47.94 kB / 0.5035 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.385e-05/0.1252, allocations: 47.98 kB / 0.5035 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.1268, allocations: 1.226 MB / 0.5047 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004414/0.1312, allocations: 3.885 MB / 0.5085 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.1328, allocations: 1.366 MB / 0.5099 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005481/0.1334, allocations: 0.4914 MB / 0.5103 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.818e-05/0.1334, allocations: 32.53 kB / 0.5104 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.1335, allocations: 39.06 kB / 0.5104 GB, free: 4.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 3.016e-06/0.1335, allocations: 8 kB / 0.5104 GB, free: 4.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.001855/0.1353, allocations: 1.548 MB / 0.5119 GB, free: 2.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.1354, allocations: 89.61 kB / 0.512 GB, free: 2.734 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.1368, allocations: 1.366 MB / 0.5134 GB, free: 1.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.1368, allocations: 33.7 kB / 0.5134 GB, free: 1.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006021/0.1375, allocations: 0.845 MB / 0.5142 GB, free: 476 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.1377, allocations: 252.4 kB / 0.5145 GB, free: 220 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.1379, allocations: 154.6 kB / 0.5146 GB, free: 60 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.2307/0.3686, allocations: 338 kB / 0.5149 GB, free: 26.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000839/0.3695, allocations: 471.7 kB / 0.5154 GB, free: 26.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007355/0.3702, allocations: 0.7141 MB / 0.5161 GB, free: 26.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.3714, allocations: 1.237 MB / 0.5173 GB, free: 26.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.3714, allocations: 3.125 kB / 0.5173 GB, free: 26.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001728/0.3731, allocations: 1.39 MB / 0.5186 GB, free: 26.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3731, allocations: 12.06 kB / 0.5186 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.3732, allocations: 8.906 kB / 0.5187 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.317e-05/0.3732, allocations: 12.56 kB / 0.5187 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005712/0.3738, allocations: 181.2 kB / 0.5188 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.237e-05/0.3738, allocations: 20.91 kB / 0.5189 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.3742, allocations: 81.12 kB / 0.5189 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.453e-05/0.3743, allocations: 46.2 kB / 0.519 GB, free: 26.04 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.0005739/0.3748, allocations: 409.2 kB / 0.5194 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.375, allocations: 148.2 kB / 0.5195 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.3767, allocations: 1.246 MB / 0.5207 GB, free: 25.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.3767, allocations: 5.953 kB / 0.5207 GB, free: 25.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3767, allocations: 5.062 kB / 0.5207 GB, free: 25.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.3769, allocations: 209.5 kB / 0.5209 GB, free: 25.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.157e-05/0.377, allocations: 11.38 kB / 0.521 GB, free: 25.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.3773, allocations: 21.53 kB / 0.521 GB, free: 25.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.282e-05/0.3774, allocations: 45.28 kB / 0.521 GB, free: 25.71 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001582/0.379, allocations: 1.244 MB / 0.5222 GB, free: 25.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0022/0.3812, allocations: 2.074 MB / 0.5243 GB, free: 25.12 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006317/0.3818, allocations: 0.5019 MB / 0.5247 GB, free: 25.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.3831, allocations: 0.9375 MB / 0.5257 GB, free: 25 MB / 398.1 MB Notification: Performance of Backend: time 6.31e-07/0.3831, allocations: 0 / 0.5257 GB, free: 25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.3846, allocations: 0.7371 MB / 0.5264 GB, free: 24.91 MB / 398.1 MB Notification: Performance of SimCode: time 0.003876/0.3885, allocations: 2.992 MB / 0.5293 GB, free: 23.4 MB / 398.1 MB Notification: Performance of Templates: time 0.01774/0.4063, allocations: 8.197 MB / 0.5373 GB, free: 22.09 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)