Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.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_11,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_11,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 116.2 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.001183/0.001183, allocations: 183.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.362/1.362, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1848/0.1848, allocations: 28.78 MB / 320 MB, free: 1.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 67.91 kB / 445 MB, free: 2.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.126, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_11): time 0.02147/0.1475, allocations: 19.12 MB / 0.5084 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3003/0.4479, allocations: 7.247 MB / 0.5155 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007276/0.4552, allocations: 106.7 kB / 0.5156 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004356/0.4597, allocations: 0.9659 MB / 0.5165 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006912/0.4666, allocations: 0.9216 MB / 0.5174 GB, free: 6.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0097/0.4763, allocations: 3.621 MB / 0.5209 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01564/0.492, allocations: 7.515 MB / 0.5283 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01224/0.5043, allocations: 4.437 MB / 0.5326 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00568/0.51, allocations: 2.604 MB / 0.5352 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007019/0.517, allocations: 3.057 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004179/0.5213, allocations: 0.8808 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003797/0.5251, allocations: 0.9197 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004934/0.5301, allocations: 2.398 MB / 0.5422 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007175/0.5373, allocations: 4.033 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01656/0.5539, allocations: 10.18 MB / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.5539, allocations: 0 / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5539, allocations: 1.125 kB / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005864/0.5545, 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.02052/0.5751, allocations: 8.487 MB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.632e-05/0.5751, allocations: 9.031 kB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002597/0.5778, allocations: 0.9919 MB / 0.5654 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007139/0.5849, allocations: 4.318 MB / 0.5696 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004672/0.5854, allocations: 0.5229 MB / 0.5701 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007841/0.5862, allocations: 0.6468 MB / 0.5707 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.5996, allocations: 7.485 MB / 0.578 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-05/0.5997, allocations: 10.28 kB / 0.5781 GB, free: 3.574 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004803/0.6002, allocations: 276 kB / 0.5783 GB, free: 3.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/0.6003, allocations: 164 kB / 0.5785 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/0.612, allocations: 6.215 MB / 0.5845 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04365/0.6557, allocations: 24.29 MB / 0.6083 GB, free: 4.555 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008887/0.6646, allocations: 4.796 MB / 0.6129 GB, free: 15.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003816/0.6684, allocations: 2.127 MB / 0.615 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000265/0.6687, allocations: 78.94 kB / 0.6151 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.815e-05/0.6688, allocations: 76.59 kB / 0.6152 GB, free: 13.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 5.22e-06/0.6688, allocations: 0 / 0.6152 GB, free: 13.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01309/0.6819, allocations: 6.839 MB / 0.6219 GB, free: 6.57 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002789/0.6822, allocations: 0.5894 MB / 0.6224 GB, free: 5.844 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/0.6935, allocations: 5.395 MB / 0.6277 GB, free: 472 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005756/0.6941, allocations: 81.64 kB / 0.6278 GB, free: 384 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003847/0.698, allocations: 3.937 MB / 0.6316 GB, free: 12.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001347/0.6994, allocations: 0.9233 MB / 0.6325 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001696/0.7011, allocations: 0.5611 MB / 0.6331 GB, free: 10.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.7012, allocations: 305.1 kB / 0.6334 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004267/0.7055, allocations: 2.147 MB / 0.6355 GB, free: 8.469 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004702/0.7102, allocations: 2.976 MB / 0.6384 GB, free: 5.176 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008259/0.7185, allocations: 4.987 MB / 0.6432 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/0.7185, allocations: 7.938 kB / 0.6432 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.0108/0.7293, allocations: 5.71 MB / 0.6488 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.7294, allocations: 15.94 kB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.7294, allocations: 20 kB / 0.6489 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.476e-05/0.7295, allocations: 32 kB / 0.6489 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/0.7323, allocations: 0.7138 MB / 0.6496 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.238e-05/0.7324, allocations: 43.86 kB / 0.6496 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00312/0.7356, allocations: 412.9 kB / 0.65 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/0.7359, allocations: 124 kB / 0.6501 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00628/0.7421, allocations: 3.263 MB / 0.6533 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00367/0.7458, allocations: 2.701 MB / 0.656 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006523/0.7524, allocations: 4.558 MB / 0.6604 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.813e-05/0.7524, 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.009379/0.7618, allocations: 5.214 MB / 0.6655 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.7618, allocations: 12 kB / 0.6655 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.608e-05/0.7619, allocations: 23.94 kB / 0.6655 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.699e-05/0.7619, allocations: 35.94 kB / 0.6656 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002395/0.7643, allocations: 0.6204 MB / 0.6662 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.849e-05/0.7644, allocations: 47.86 kB / 0.6662 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003258/0.7677, allocations: 321.8 kB / 0.6665 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002525/0.7679, allocations: 124 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.00104/0.769, allocations: 409 kB / 0.667 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/0.7707, allocations: 0.5785 MB / 0.6676 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/0.7817, allocations: 5.173 MB / 0.6727 GB, free: 0.9844 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/0.7818, allocations: 11.95 kB / 0.6727 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.7818, allocations: 7.984 kB / 0.6727 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00258/0.7844, allocations: 0.9184 MB / 0.6736 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001133/0.7855, allocations: 64.05 kB / 0.6736 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/0.7878, allocations: 207.7 kB / 0.6738 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/0.7882, allocations: 170 kB / 0.674 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0103/0.7985, allocations: 5.026 MB / 0.6789 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01362/0.8121, allocations: 8.346 MB / 0.6871 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003721/0.8159, allocations: 2.312 MB / 0.6893 GB, free: 15.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007993/0.8239, allocations: 3.685 MB / 0.6929 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Backend: time 7.21e-07/0.8239, allocations: 0 / 0.6929 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01332/0.8372, allocations: 5.361 MB / 0.6981 GB, free: 6.758 MB / 0.545 GB Notification: Performance of SimCode: time 0.02713/0.8644, allocations: 13.06 MB / 0.7109 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of Templates: time 0.3405/1.205, allocations: 62.19 MB / 0.7716 GB, free: 186.6 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe 2>&1)