Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.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.World3.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 114.6 kB / 16.42 MB, free: 6.02 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.001863/0.001863, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.43/1.43, allocations: 222.9 MB / 241 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.1899/0.1899, allocations: 28.79 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 59.91 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1182, allocations: 56.43 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_4): time 0.01965/0.1378, allocations: 19.12 MB / 0.5084 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2988/0.4367, allocations: 7.245 MB / 0.5155 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008112/0.4449, allocations: 112.8 kB / 0.5156 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004087/0.449, allocations: 0.9651 MB / 0.5165 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007459/0.4565, allocations: 0.9197 MB / 0.5174 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01021/0.4668, allocations: 3.625 MB / 0.5209 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01316/0.48, allocations: 7.508 MB / 0.5283 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01101/0.491, allocations: 4.444 MB / 0.5326 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005296/0.4963, allocations: 2.604 MB / 0.5352 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006877/0.5032, allocations: 3.061 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004245/0.5075, allocations: 0.8814 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003477/0.511, allocations: 0.9222 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004204/0.5152, allocations: 2.392 MB / 0.5422 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00649/0.5217, allocations: 4.035 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.5358, allocations: 10.18 MB / 0.5561 GB, free: 4.355 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/0.5358, allocations: 0 / 0.5561 GB, free: 4.355 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5359, allocations: 1.25 kB / 0.5561 GB, free: 4.355 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005435/0.5364, allocations: 0 / 0.5561 GB, free: 4.355 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.02592/0.5623, allocations: 8.489 MB / 0.5644 GB, free: 14.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.3e-05/0.5624, allocations: 8.812 kB / 0.5644 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003252/0.5657, allocations: 0.9882 MB / 0.5654 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00788/0.5736, allocations: 4.31 MB / 0.5696 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007054/0.5743, allocations: 0.531 MB / 0.5701 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/0.5758, allocations: 0.6453 MB / 0.5707 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/0.5908, allocations: 7.479 MB / 0.5781 GB, free: 3.559 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.113e-05/0.5909, allocations: 17.28 kB / 0.5781 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004727/0.5914, allocations: 272 kB / 0.5783 GB, free: 3.285 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/0.5915, allocations: 164 kB / 0.5785 GB, free: 3.125 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/0.603, allocations: 6.219 MB / 0.5846 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03882/0.6418, allocations: 24.29 MB / 0.6083 GB, free: 4.527 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007969/0.6498, allocations: 4.805 MB / 0.613 GB, free: 15.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003296/0.6532, allocations: 2.127 MB / 0.615 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001859/0.6534, allocations: 80.83 kB / 0.6151 GB, free: 13.52 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.862e-05/0.6534, allocations: 72.58 kB / 0.6152 GB, free: 13.44 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 4.168e-06/0.6534, allocations: 0 / 0.6152 GB, free: 13.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01198/0.6654, allocations: 6.827 MB / 0.6219 GB, free: 6.551 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002666/0.6657, allocations: 0.5894 MB / 0.6224 GB, free: 5.824 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008979/0.6747, allocations: 5.399 MB / 0.6277 GB, free: 448 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006832/0.6754, allocations: 81.64 kB / 0.6278 GB, free: 360 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00359/0.679, allocations: 3.941 MB / 0.6316 GB, free: 12.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001548/0.6806, allocations: 0.9203 MB / 0.6325 GB, free: 11.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009964/0.6816, allocations: 0.5611 MB / 0.6331 GB, free: 10.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.6818, allocations: 305.1 kB / 0.6334 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/0.6857, allocations: 2.159 MB / 0.6355 GB, free: 8.434 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004644/0.6903, allocations: 2.964 MB / 0.6384 GB, free: 5.152 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009102/0.6995, allocations: 4.996 MB / 0.6433 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.092e-05/0.6995, allocations: 4 kB / 0.6433 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01066/0.7102, allocations: 5.705 MB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.7103, allocations: 20.16 kB / 0.6488 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.7103, allocations: 16 kB / 0.6489 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-05/0.7103, allocations: 36 kB / 0.6489 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002742/0.7131, allocations: 0.7098 MB / 0.6496 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.307e-05/0.7132, allocations: 43.86 kB / 0.6496 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00307/0.7162, allocations: 412.9 kB / 0.65 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.7165, allocations: 128 kB / 0.6501 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00624/0.7227, allocations: 3.255 MB / 0.6533 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003681/0.7264, allocations: 2.709 MB / 0.656 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006448/0.7329, allocations: 4.555 MB / 0.6604 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.098e-05/0.7329, allocations: 4 kB / 0.6604 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.008652/0.7416, allocations: 5.218 MB / 0.6655 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.7416, allocations: 15.94 kB / 0.6655 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/0.7417, allocations: 19.94 kB / 0.6656 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.047e-05/0.7417, allocations: 36 kB / 0.6656 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/0.7441, allocations: 0.624 MB / 0.6662 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.196e-05/0.7441, allocations: 43.86 kB / 0.6662 GB, free: 7.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003023/0.7472, allocations: 321.9 kB / 0.6665 GB, free: 7.305 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.7474, allocations: 120 kB / 0.6667 GB, free: 7.188 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.0007651/0.7482, allocations: 424 kB / 0.6671 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/0.7494, allocations: 0.5746 MB / 0.6676 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009458/0.7588, allocations: 5.165 MB / 0.6727 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.212e-05/0.7589, allocations: 15.94 kB / 0.6727 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.7589, allocations: 0 / 0.6727 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003356/0.7623, allocations: 0.9279 MB / 0.6736 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001094/0.7634, allocations: 67.94 kB / 0.6737 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002265/0.7657, allocations: 203.8 kB / 0.6738 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000367/0.7661, allocations: 169.9 kB / 0.674 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01103/0.7771, allocations: 5.017 MB / 0.6789 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01427/0.7914, allocations: 8.35 MB / 0.6871 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004038/0.7955, allocations: 2.307 MB / 0.6893 GB, free: 15.78 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007905/0.8034, allocations: 3.685 MB / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of Backend: time 2.845e-06/0.8034, allocations: 0 / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01296/0.8164, allocations: 5.361 MB / 0.6981 GB, free: 6.742 MB / 0.545 GB Notification: Performance of SimCode: time 0.02691/0.8434, allocations: 13.06 MB / 0.7109 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of Templates: time 0.376/1.219, allocations: 62.19 MB / 0.7716 GB, free: 186.5 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_4.pipe 2>&1)