Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.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_8,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_8,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 114.9 kB / 16.42 MB, free: 6.012 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.001266/0.001266, allocations: 182.2 kB / 17.35 MB, free: 5.629 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.409/1.409, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1729/0.1729, allocations: 28.78 MB / 320 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.89 kB / 445 MB, free: 2.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1242, allocations: 56.43 MB / 0.4897 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_8): time 0.02174/0.146, allocations: 19.11 MB / 0.5084 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2826/0.4286, allocations: 7.249 MB / 0.5155 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007555/0.4362, allocations: 107.6 kB / 0.5156 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003708/0.44, allocations: 0.969 MB / 0.5165 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006329/0.4464, allocations: 0.9184 MB / 0.5174 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00848/0.4549, allocations: 3.623 MB / 0.5209 GB, free: 6.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01409/0.469, allocations: 7.516 MB / 0.5283 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01108/0.4801, allocations: 4.434 MB / 0.5326 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005379/0.4855, allocations: 2.601 MB / 0.5351 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007299/0.4928, allocations: 3.062 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004189/0.497, allocations: 0.881 MB / 0.539 GB, free: 16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005149/0.5022, allocations: 0.9328 MB / 0.5399 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004871/0.5071, allocations: 2.384 MB / 0.5422 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008364/0.5155, allocations: 4.035 MB / 0.5462 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0202/0.5357, allocations: 10.18 MB / 0.5561 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.238e-06/0.5358, allocations: 0 / 0.5561 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5358, allocations: 1.094 kB / 0.5561 GB, free: 4.348 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007213/0.5365, allocations: 0 / 0.5561 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.02766/0.5642, allocations: 8.487 MB / 0.5644 GB, free: 14.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.5643, allocations: 8.594 kB / 0.5644 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00369/0.568, allocations: 0.9957 MB / 0.5654 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.5786, allocations: 4.307 MB / 0.5696 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007513/0.5794, allocations: 0.5231 MB / 0.5701 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001818/0.5812, allocations: 0.6508 MB / 0.5707 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02094/0.6022, allocations: 7.479 MB / 0.578 GB, free: 3.559 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002162/0.6024, allocations: 13.19 kB / 0.5781 GB, free: 3.555 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00152/0.604, allocations: 280 kB / 0.5783 GB, free: 3.281 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000217/0.6042, allocations: 164 kB / 0.5785 GB, free: 3.121 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01695/0.6212, allocations: 6.213 MB / 0.5845 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04713/0.6683, allocations: 24.3 MB / 0.6083 GB, free: 4.523 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009588/0.678, allocations: 4.799 MB / 0.613 GB, free: 15.72 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004383/0.6824, allocations: 2.123 MB / 0.615 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003739/0.6828, allocations: 82.55 kB / 0.6151 GB, free: 13.52 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.241e-05/0.6829, allocations: 72.58 kB / 0.6152 GB, free: 13.44 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 8.035e-06/0.6829, allocations: 0 / 0.6152 GB, free: 13.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01468/0.6976, allocations: 6.835 MB / 0.6219 GB, free: 6.543 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003192/0.698, allocations: 0.5855 MB / 0.6224 GB, free: 5.82 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0121/0.7101, allocations: 5.399 MB / 0.6277 GB, free: 444 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006892/0.7108, allocations: 77.7 kB / 0.6278 GB, free: 360 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00402/0.7148, allocations: 3.937 MB / 0.6316 GB, free: 12.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/0.7163, allocations: 0.9295 MB / 0.6325 GB, free: 11.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001935/0.7183, allocations: 0.5611 MB / 0.6331 GB, free: 10.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.7184, allocations: 305.1 kB / 0.6334 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004332/0.7228, allocations: 2.151 MB / 0.6355 GB, free: 8.438 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004818/0.7276, allocations: 2.975 MB / 0.6384 GB, free: 5.145 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008321/0.7359, allocations: 4.983 MB / 0.6432 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.938e-05/0.736, allocations: 11.94 kB / 0.6433 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01133/0.7473, allocations: 5.705 MB / 0.6488 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.7474, allocations: 23.88 kB / 0.6488 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.008e-05/0.7474, allocations: 16 kB / 0.6489 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.584e-05/0.7475, allocations: 32 kB / 0.6489 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/0.7504, allocations: 0.7141 MB / 0.6496 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000124/0.7505, allocations: 47.86 kB / 0.6496 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/0.7548, allocations: 412.9 kB / 0.65 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004146/0.7552, allocations: 128 kB / 0.6501 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00733/0.7625, allocations: 3.251 MB / 0.6533 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00385/0.7664, allocations: 2.71 MB / 0.656 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00658/0.773, allocations: 4.558 MB / 0.6604 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.387e-05/0.773, allocations: 4 kB / 0.6604 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009944/0.783, allocations: 5.217 MB / 0.6655 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.783, allocations: 16 kB / 0.6655 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.289e-05/0.7831, allocations: 19.94 kB / 0.6656 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.935e-05/0.7831, allocations: 32 kB / 0.6656 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/0.7854, allocations: 0.6246 MB / 0.6662 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.669e-05/0.7855, allocations: 47.86 kB / 0.6662 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/0.7885, allocations: 321.8 kB / 0.6665 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.7888, allocations: 124 kB / 0.6667 GB, free: 7.172 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.0009496/0.7897, allocations: 414.1 kB / 0.6671 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/0.7914, allocations: 0.5746 MB / 0.6676 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/0.8016, allocations: 5.169 MB / 0.6727 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.939e-05/0.8017, allocations: 15.94 kB / 0.6727 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.8017, allocations: 0 / 0.6727 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002619/0.8043, allocations: 0.9263 MB / 0.6736 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/0.8056, allocations: 63.98 kB / 0.6737 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002357/0.808, allocations: 203.8 kB / 0.6738 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003587/0.8084, allocations: 169.9 kB / 0.674 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01112/0.8195, allocations: 5.011 MB / 0.6789 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01444/0.834, allocations: 8.353 MB / 0.6871 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00371/0.8377, allocations: 2.308 MB / 0.6893 GB, free: 15.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009091/0.8468, allocations: 3.685 MB / 0.6929 GB, free: 12.1 MB / 0.545 GB Notification: Performance of Backend: time 6.11e-07/0.8468, allocations: 4 kB / 0.6929 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01215/0.859, allocations: 5.354 MB / 0.6981 GB, free: 6.734 MB / 0.545 GB Notification: Performance of SimCode: time 0.02604/0.885, allocations: 13.07 MB / 0.7109 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of Templates: time 0.3933/1.278, allocations: 62.19 MB / 0.7716 GB, free: 186.7 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_8.pipe 2>&1)