Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.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_9,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_9,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 115.1 kB / 16.42 MB, free: 6.5 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.001411/0.001411, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1773/0.1773, allocations: 28.79 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1153, allocations: 56.43 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_9): time 0.02043/0.1358, allocations: 19.12 MB / 0.5084 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.301/0.4369, allocations: 7.248 MB / 0.5155 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005916/0.4429, allocations: 110.4 kB / 0.5156 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.4458, allocations: 0.9636 MB / 0.5165 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005006/0.4509, allocations: 0.9202 MB / 0.5174 GB, free: 6.051 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00756/0.4585, allocations: 3.618 MB / 0.5209 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01479/0.4733, allocations: 7.516 MB / 0.5283 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007439/0.4807, allocations: 4.436 MB / 0.5326 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003833/0.4846, allocations: 2.608 MB / 0.5352 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005951/0.4906, allocations: 3.056 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002477/0.4931, allocations: 0.8813 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.495, allocations: 0.9223 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002391/0.4974, allocations: 2.392 MB / 0.5422 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004345/0.5017, allocations: 4.037 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.5135, allocations: 10.18 MB / 0.5561 GB, free: 4.371 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.5136, allocations: 4.688 kB / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5136, allocations: 0 / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004138/0.514, allocations: 0 / 0.5561 GB, free: 4.367 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.01711/0.5311, allocations: 8.49 MB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.5312, allocations: 9.281 kB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00238/0.5336, allocations: 0.9874 MB / 0.5654 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007724/0.5413, allocations: 4.315 MB / 0.5696 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005594/0.5419, allocations: 0.5235 MB / 0.5701 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009745/0.5429, allocations: 0.6458 MB / 0.5707 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.5569, allocations: 7.484 MB / 0.578 GB, free: 3.582 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.5571, allocations: 13.47 kB / 0.5781 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000574/0.5577, allocations: 276 kB / 0.5783 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001173/0.5578, allocations: 168 kB / 0.5785 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/0.5701, allocations: 6.219 MB / 0.5846 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04322/0.6133, allocations: 24.29 MB / 0.6083 GB, free: 4.551 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008593/0.622, allocations: 4.799 MB / 0.613 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003943/0.6259, allocations: 2.123 MB / 0.615 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002751/0.6262, allocations: 78.7 kB / 0.6151 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.178e-05/0.6263, allocations: 64.59 kB / 0.6152 GB, free: 13.48 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 6.111e-06/0.6263, allocations: 0 / 0.6152 GB, free: 13.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01269/0.639, allocations: 6.839 MB / 0.6219 GB, free: 6.582 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003086/0.6394, allocations: 0.5894 MB / 0.6224 GB, free: 5.855 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/0.6516, allocations: 5.399 MB / 0.6277 GB, free: 476 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000362/0.6519, allocations: 81.7 kB / 0.6278 GB, free: 388 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003764/0.6557, allocations: 3.938 MB / 0.6316 GB, free: 12.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001113/0.6569, allocations: 0.9228 MB / 0.6325 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/0.6582, allocations: 0.5572 MB / 0.6331 GB, free: 10.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.6583, allocations: 301.1 kB / 0.6334 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003884/0.6622, allocations: 2.155 MB / 0.6355 GB, free: 8.473 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00448/0.6667, allocations: 2.967 MB / 0.6384 GB, free: 5.188 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007968/0.6746, allocations: 4.999 MB / 0.6432 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.719e-05/0.6747, allocations: 8 kB / 0.6433 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01062/0.6853, allocations: 5.701 MB / 0.6488 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.6854, allocations: 15.94 kB / 0.6488 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.178e-05/0.6854, allocations: 20.91 kB / 0.6489 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.318e-05/0.6855, allocations: 32 kB / 0.6489 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/0.6882, allocations: 0.7177 MB / 0.6496 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.579e-05/0.6883, allocations: 47.86 kB / 0.6496 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003617/0.6919, allocations: 412.9 kB / 0.65 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003122/0.6922, allocations: 128 kB / 0.6501 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006101/0.6984, allocations: 3.255 MB / 0.6533 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003502/0.7019, allocations: 2.712 MB / 0.656 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006457/0.7083, allocations: 4.554 MB / 0.6604 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.931e-05/0.7084, allocations: 8 kB / 0.6604 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009366/0.7178, allocations: 5.206 MB / 0.6655 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.7178, allocations: 19.94 kB / 0.6655 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.7178, allocations: 28 kB / 0.6656 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.624e-05/0.7179, allocations: 32 kB / 0.6656 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/0.7204, allocations: 0.6201 MB / 0.6662 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001166/0.7205, allocations: 47.86 kB / 0.6662 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004533/0.725, allocations: 325.8 kB / 0.6666 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003079/0.7254, allocations: 120 kB / 0.6667 GB, free: 7.207 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.001098/0.7265, allocations: 410.6 kB / 0.6671 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002024/0.7285, allocations: 0.5746 MB / 0.6676 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/0.7395, allocations: 5.177 MB / 0.6727 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.634e-05/0.7396, allocations: 15.94 kB / 0.6727 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.7396, allocations: 0 / 0.6727 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002946/0.7426, allocations: 0.9223 MB / 0.6736 GB, free: 16 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001589/0.7442, allocations: 67.98 kB / 0.6737 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002633/0.7468, allocations: 203.8 kB / 0.6738 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003758/0.7472, allocations: 169.9 kB / 0.674 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01063/0.7578, allocations: 5.013 MB / 0.6789 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01419/0.7721, allocations: 8.357 MB / 0.6871 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003892/0.776, allocations: 2.305 MB / 0.6893 GB, free: 15.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008699/0.7847, allocations: 3.685 MB / 0.6929 GB, free: 12.13 MB / 0.545 GB Notification: Performance of Backend: time 6.82e-07/0.7847, allocations: 0 / 0.6929 GB, free: 12.13 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01433/0.7991, allocations: 5.357 MB / 0.6981 GB, free: 6.766 MB / 0.545 GB Notification: Performance of SimCode: time 0.03/0.8291, allocations: 13.06 MB / 0.7109 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of Templates: time 0.3699/1.199, allocations: 62.19 MB / 0.7716 GB, free: 186.6 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe 2>&1)