Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 111.6 kB / 16.42 MB, free: 6.512 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.001156/0.001156, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.305/1.305, allocations: 222.9 MB / 241.1 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.1623/0.1623, allocations: 28.79 MB / 320 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.89 kB / 445 MB, free: 2.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09723, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004801/0.1021, allocations: 3.65 MB / 0.4932 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.104, allocations: 0.6701 MB / 0.4939 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007476/0.1048, allocations: 23.94 kB / 0.4939 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000681/0.1055, allocations: 174.3 kB / 0.4941 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007967/0.1063, allocations: 134.8 kB / 0.4942 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.1075, allocations: 355.6 kB / 0.4946 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.109, allocations: 0.8522 MB / 0.4954 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.1103, allocations: 0.6364 MB / 0.496 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005551/0.1109, allocations: 338.4 kB / 0.4963 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000648/0.1116, allocations: 429.5 kB / 0.4967 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003793/0.112, allocations: 84 kB / 0.4968 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003836/0.1123, allocations: 112 kB / 0.4969 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005104/0.1129, allocations: 426.5 kB / 0.4973 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000597/0.1135, allocations: 0.6242 MB / 0.4979 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.115, allocations: 1.248 MB / 0.4992 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.115, allocations: 4 kB / 0.4992 GB, free: 268 kB / 382.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.115, allocations: 0 / 0.4992 GB, free: 268 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.832e-05/0.1151, allocations: 0 / 0.4992 GB, free: 268 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002304/0.1174, allocations: 1.784 MB / 0.5009 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1174, allocations: 8.031 kB / 0.5009 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.1176, allocations: 198.4 kB / 0.5011 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008522/0.1185, allocations: 0.7588 MB / 0.5019 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/0.1185, allocations: 74.45 kB / 0.5019 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.1187, allocations: 108.3 kB / 0.502 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1201, allocations: 1.162 MB / 0.5032 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.1202, allocations: 4.172 kB / 0.5032 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.147e-05/0.1202, allocations: 43.94 kB / 0.5032 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.1203, allocations: 28 kB / 0.5032 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.1217, allocations: 1.101 MB / 0.5043 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/0.1257, allocations: 3.65 MB / 0.5079 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.1273, allocations: 1.338 MB / 0.5092 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005483/0.1278, allocations: 490.3 kB / 0.5096 GB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.471e-05/0.1279, allocations: 24.53 kB / 0.5097 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.128, allocations: 43.11 kB / 0.5097 GB, free: 5.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.504e-06/0.128, allocations: 0 / 0.5097 GB, free: 5.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001808/0.1298, allocations: 1.528 MB / 0.5112 GB, free: 3.621 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.1298, allocations: 59.97 kB / 0.5113 GB, free: 3.551 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.1312, allocations: 1.288 MB / 0.5125 GB, free: 2.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.1312, allocations: 41.7 kB / 0.5126 GB, free: 2.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005594/0.1318, allocations: 0.7676 MB / 0.5133 GB, free: 1.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.1319, allocations: 228.7 kB / 0.5135 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.1321, allocations: 118.6 kB / 0.5136 GB, free: 1.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1322, allocations: 337.9 kB / 0.514 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.1328, allocations: 437.8 kB / 0.5144 GB, free: 324 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2147/0.3475, allocations: 0.5309 MB / 0.5149 GB, free: 26.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.3488, allocations: 0.9991 MB / 0.5159 GB, free: 26.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.3488, allocations: 1.156 kB / 0.5159 GB, free: 26.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00143/0.3502, allocations: 1.186 MB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.3503, allocations: 6.281 kB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3503, allocations: 2.25 kB / 0.517 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.3503, allocations: 10.25 kB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.3508, allocations: 137.5 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.3508, allocations: 6.891 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.3511, allocations: 56.05 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.3511, allocations: 23.98 kB / 0.5173 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 (83): * Single equations (assignments): 83 * 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.0005963/0.3518, allocations: 380.4 kB / 0.5176 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.3519, allocations: 138.8 kB / 0.5178 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.3533, allocations: 1.208 MB / 0.5189 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.3534, allocations: 6.938 kB / 0.5189 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3534, allocations: 4.781 kB / 0.5189 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.3535, allocations: 195.1 kB / 0.5191 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.552e-05/0.3536, allocations: 15.8 kB / 0.5192 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.3538, allocations: 19.72 kB / 0.5192 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.839e-05/0.3539, allocations: 41.03 kB / 0.5192 GB, free: 26.34 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001375/0.3553, allocations: 1.13 MB / 0.5203 GB, free: 26.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002011/0.3573, allocations: 1.97 MB / 0.5222 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005917/0.3579, allocations: 0.495 MB / 0.5227 GB, free: 25.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.3591, allocations: 0.8949 MB / 0.5236 GB, free: 25.79 MB / 398.1 MB Notification: Performance of Backend: time 7.41e-07/0.3591, allocations: 0 / 0.5236 GB, free: 25.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.3604, allocations: 0.646 MB / 0.5242 GB, free: 25.71 MB / 398.1 MB Notification: Performance of SimCode: time 0.00345/0.3639, allocations: 2.874 MB / 0.527 GB, free: 24.25 MB / 398.1 MB Notification: Performance of Templates: time 0.01641/0.3803, allocations: 7.648 MB / 0.5345 GB, free: 23.48 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)