Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.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.World3.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 111 kB / 16.41 MB, free: 6.449 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.001182/0.001183, allocations: 188.3 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.298/1.298, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1653/0.1653, allocations: 28.78 MB / 320 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 55.91 kB / 445 MB, free: 2.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09148, allocations: 56.42 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_2): time 0.01876/0.1103, allocations: 19.12 MB / 0.5084 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2134/0.3237, allocations: 7.243 MB / 0.5154 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00456/0.3283, allocations: 109.1 kB / 0.5156 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00304/0.3314, allocations: 0.9654 MB / 0.5165 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003964/0.3354, allocations: 0.8493 MB / 0.5173 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006412/0.3418, allocations: 3.626 MB / 0.5209 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.3527, allocations: 7.492 MB / 0.5282 GB, free: 4.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00775/0.3605, allocations: 4.438 MB / 0.5325 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004288/0.3648, allocations: 2.608 MB / 0.5351 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006292/0.3711, allocations: 3.044 MB / 0.538 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003148/0.3743, allocations: 0.881 MB / 0.5389 GB, free: 16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002844/0.3772, allocations: 0.9243 MB / 0.5398 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003486/0.3807, allocations: 2.39 MB / 0.5421 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004572/0.3853, allocations: 4.038 MB / 0.5461 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.397, allocations: 10.18 MB / 0.556 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.397, allocations: 1.125 kB / 0.556 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.397, allocations: 0 / 0.556 GB, free: 4.348 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004574/0.3975, allocations: 0 / 0.556 GB, free: 4.348 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1685 * Number of variables: 1685 Notification: Performance of Generate backend data structure: time 0.02056/0.4181, allocations: 8.493 MB / 0.5643 GB, free: 14.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.4181, allocations: 8.156 kB / 0.5643 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00246/0.4206, allocations: 0.9882 MB / 0.5653 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008145/0.4287, allocations: 4.311 MB / 0.5695 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006333/0.4294, allocations: 0.5258 MB / 0.57 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.4309, allocations: 0.6488 MB / 0.5706 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01731/0.4483, allocations: 7.484 MB / 0.5779 GB, free: 3.609 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000201/0.4485, allocations: 10.19 kB / 0.578 GB, free: 3.605 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.4496, allocations: 276 kB / 0.5782 GB, free: 3.336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.4497, allocations: 164 kB / 0.5784 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/0.4636, allocations: 6.218 MB / 0.5844 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04262/0.5063, allocations: 24.29 MB / 0.6082 GB, free: 4.582 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008716/0.515, allocations: 4.796 MB / 0.6128 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003662/0.5187, allocations: 2.135 MB / 0.6149 GB, free: 13.64 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002366/0.519, allocations: 76.83 kB / 0.615 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/0.5191, allocations: 68.59 kB / 0.6151 GB, free: 13.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 5.3e-06/0.5191, allocations: 4 kB / 0.6151 GB, free: 13.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.0127/0.5318, allocations: 6.839 MB / 0.6218 GB, free: 6.598 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002808/0.5321, allocations: 0.5855 MB / 0.6223 GB, free: 5.875 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01041/0.5425, allocations: 5.399 MB / 0.6276 GB, free: 500 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005982/0.5431, allocations: 77.7 kB / 0.6277 GB, free: 416 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003571/0.5467, allocations: 3.94 MB / 0.6315 GB, free: 12.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/0.5481, allocations: 0.9167 MB / 0.6324 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001428/0.5495, allocations: 0.565 MB / 0.633 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.5496, allocations: 309.1 kB / 0.6333 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003819/0.5535, allocations: 2.151 MB / 0.6354 GB, free: 8.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004703/0.5582, allocations: 2.971 MB / 0.6383 GB, free: 5.207 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008597/0.5668, allocations: 4.992 MB / 0.6431 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.721e-05/0.5669, allocations: 4 kB / 0.6431 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01241/0.5793, allocations: 5.709 MB / 0.6487 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/0.5794, allocations: 15.94 kB / 0.6487 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/0.5794, allocations: 20 kB / 0.6488 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.416e-05/0.5795, allocations: 32 kB / 0.6488 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/0.5825, allocations: 0.7137 MB / 0.6495 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-05/0.5826, allocations: 43.86 kB / 0.6495 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/0.5859, allocations: 418 kB / 0.6499 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004731/0.5864, allocations: 124 kB / 0.65 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006397/0.5928, allocations: 3.255 MB / 0.6532 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003741/0.5966, allocations: 2.706 MB / 0.6559 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006655/0.6033, allocations: 4.558 MB / 0.6603 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.832e-05/0.6033, allocations: 8 kB / 0.6603 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009062/0.6124, allocations: 5.214 MB / 0.6654 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.6125, allocations: 12 kB / 0.6654 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.6125, allocations: 23.94 kB / 0.6654 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.773e-05/0.6125, allocations: 32 kB / 0.6655 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/0.615, allocations: 0.6201 MB / 0.6661 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-05/0.615, allocations: 48.08 kB / 0.6661 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/0.6179, allocations: 321.8 kB / 0.6664 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003446/0.6182, allocations: 120 kB / 0.6665 GB, free: 7.246 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 41 (Service_Sector_Investment1.Service_Capital.Integrator1.local_reset,NR_Resource_Utilization1.Res_Tech_NRTD.Integrator1.local_reset,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth3.Integrator1.local_reset,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth2.Integrator1.local_reset,NR_Resource_Utilization1.P_Nr_Res_Use_Fact_2.Smooth1.Integrator1.local_reset,NR_Resource_Utilization1.NR_Resources.Integrator1.local_reset,Life_Expectancy1.Eff_Hlth_Serv_PC.Smooth_of_Input.Integrator1.local_reset,Land_Fertility1.Yield_Tech_LYTD.Integrator1.local_reset,Land_Fertility1.Land_Fertility.Integrator1.local_reset,Labor_Utilization1.Labor_Util_Fr_Del.Integrator1.local_reset,Industrial_Investment1.Industrial_Capital.Integrator1.local_reset,Human_Fertility1.Fert_Cont_Facil_PC.Smooth3.Integrator1.local_reset,Human_Fertility1.Fert_Cont_Facil_PC.Smooth2.Integrator1.local_reset,Human_Fertility1.Fert_Cont_Facil_PC.Smooth1.Integrator1.local_reset,Human_Fertility1.Perc_Life_Expectancy.Smooth3.Integrator1.local_reset,Human_Fertility1.Perc_Life_Expectancy.Smooth2.Integrator1.local_reset,Human_Fertility1.Perc_Life_Expectancy.Smooth1.Integrator1.local_reset,Human_Fertility1.Del_Ind_Out_PC.Smooth3.Integrator1.local_reset,Human_Fertility1.Del_Ind_Out_PC.Smooth2.Integrator1.local_reset,Human_Fertility1.Del_Ind_Out_PC.Smooth1.Integrator1.local_reset,Human_Fertility1.Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.local_reset,Food_Production1.P_Land_Yield_Fact_2.Smooth3.Integrator1.local_reset,Food_Production1.P_Land_Yield_Fact_2.Smooth2.Integrator1.local_reset,Food_Production1.P_Land_Yield_Fact_2.Smooth1.Integrator1.local_reset,Food_Production1.Perc_Food_Ratio.Integrator1.local_reset,Food_Production1.Agr_Inp.Integrator1.local_reset,Arable_Land_Dynamics1.Urban_Ind_Land.Integrator1.local_reset,Arable_Land_Dynamics1.Pot_Arable_Land.Integrator1.local_reset,Arable_Land_Dynamics1.Arable_Land.Integrator1.local_reset,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth3.Integrator1.local_reset,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth2.Integrator1.local_reset,Pollution_Dynamics1.P_PPoll_Gen_Fact_2.Smooth1.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Tech_PTD.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth3.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth2.Integrator1.local_reset,Pollution_Dynamics1.PPoll_Appear_Rate.Smooth1.Integrator1.local_reset,Pollution_Dynamics1.Pers_Pollution.Integrator1.local_reset,Population_Dynamics1.Pop_65plus.Integrator1.local_reset,Population_Dynamics1.Pop_45_64.Integrator1.local_reset,Population_Dynamics1.Pop_15_44.Integrator1.local_reset,Population_Dynamics1.Pop_0_14.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (388): * Single equations (assignments): 388 * 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.001068/0.6193, allocations: 423.9 kB / 0.667 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002028/0.6213, allocations: 0.5796 MB / 0.6675 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/0.634, allocations: 5.165 MB / 0.6726 GB, free: 1.016 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-05/0.6341, allocations: 15.95 kB / 0.6726 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6341, allocations: 0 / 0.6726 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00274/0.6368, allocations: 0.9301 MB / 0.6735 GB, free: 44 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001385/0.6382, allocations: 60.11 kB / 0.6735 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002777/0.641, allocations: 199.7 kB / 0.6737 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005071/0.6416, allocations: 177.9 kB / 0.6739 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01072/0.6523, allocations: 5.015 MB / 0.6788 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01409/0.6664, allocations: 8.349 MB / 0.687 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003882/0.6704, allocations: 2.311 MB / 0.6892 GB, free: 15.83 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007492/0.6779, allocations: 3.685 MB / 0.6928 GB, free: 12.16 MB / 0.545 GB Notification: Performance of Backend: time 1.162e-06/0.6779, allocations: 0 / 0.6928 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0131/0.691, allocations: 5.357 MB / 0.698 GB, free: 6.801 MB / 0.545 GB Notification: Performance of SimCode: time 0.02421/0.7153, allocations: 13.06 MB / 0.7108 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of Templates: time 0.3345/1.05, allocations: 62.2 MB / 0.7715 GB, free: 186.7 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe 2>&1)