Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.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_10,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_10,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 113.5 kB / 16.42 MB, free: 6.484 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.001772/0.001772, allocations: 185.4 kB / 17.35 MB, free: 5.727 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.494/1.494, allocations: 222.9 MB / 241.1 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.189/0.189, allocations: 28.77 MB / 320 MB, free: 1.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 55.91 kB / 445 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.138, allocations: 56.42 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_10): time 0.02132/0.1594, allocations: 19.12 MB / 0.5084 GB, free: 6.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3012/0.4607, allocations: 7.245 MB / 0.5155 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006181/0.467, allocations: 108.7 kB / 0.5156 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003241/0.4702, allocations: 0.9646 MB / 0.5165 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005119/0.4754, allocations: 0.9178 MB / 0.5174 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007716/0.4831, allocations: 3.626 MB / 0.5209 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01394/0.4971, allocations: 7.513 MB / 0.5283 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01029/0.5074, allocations: 4.433 MB / 0.5326 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004453/0.5119, allocations: 2.61 MB / 0.5352 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006729/0.5187, allocations: 3.057 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003441/0.5221, allocations: 0.8797 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.5244, allocations: 0.9227 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002835/0.5273, allocations: 2.39 MB / 0.5422 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006085/0.5334, allocations: 4.03 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0171/0.5505, allocations: 10.19 MB / 0.5561 GB, free: 4.359 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.5505, allocations: 0 / 0.5561 GB, free: 4.359 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5506, allocations: 0 / 0.5561 GB, free: 4.359 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000646/0.5512, allocations: 0 / 0.5561 GB, free: 4.359 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.02527/0.5765, allocations: 8.489 MB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.5766, allocations: 11.73 kB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002803/0.5794, allocations: 0.9922 MB / 0.5654 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00853/0.5879, allocations: 4.31 MB / 0.5696 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006481/0.5886, allocations: 0.5186 MB / 0.5701 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001349/0.59, allocations: 0.6557 MB / 0.5707 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01537/0.6053, allocations: 7.475 MB / 0.578 GB, free: 3.586 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.836e-05/0.6055, allocations: 17.28 kB / 0.5781 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004982/0.606, allocations: 281.1 kB / 0.5783 GB, free: 3.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.6061, allocations: 160 kB / 0.5785 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.6181, allocations: 6.216 MB / 0.5846 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04226/0.6604, allocations: 24.3 MB / 0.6083 GB, free: 4.555 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008331/0.6688, allocations: 4.793 MB / 0.613 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003431/0.6722, allocations: 2.127 MB / 0.615 GB, free: 13.63 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001784/0.6724, allocations: 80.44 kB / 0.6151 GB, free: 13.56 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.543e-05/0.6725, allocations: 68.59 kB / 0.6152 GB, free: 13.48 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 4.819e-06/0.6725, allocations: 0 / 0.6152 GB, free: 13.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01188/0.6844, allocations: 6.835 MB / 0.6219 GB, free: 6.586 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002782/0.6847, allocations: 0.5855 MB / 0.6224 GB, free: 5.863 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008737/0.6934, allocations: 5.399 MB / 0.6277 GB, free: 488 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006217/0.6941, allocations: 81.64 kB / 0.6278 GB, free: 400 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002973/0.6971, allocations: 3.944 MB / 0.6316 GB, free: 12.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001763/0.6988, allocations: 0.9227 MB / 0.6325 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/0.6999, allocations: 0.5572 MB / 0.6331 GB, free: 10.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.7001, allocations: 305.1 kB / 0.6334 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/0.7039, allocations: 2.155 MB / 0.6355 GB, free: 8.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004646/0.7086, allocations: 2.971 MB / 0.6384 GB, free: 5.188 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007987/0.7166, allocations: 4.995 MB / 0.6432 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.7166, allocations: 4 kB / 0.6433 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01064/0.7272, allocations: 5.702 MB / 0.6488 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.7273, allocations: 15.94 kB / 0.6488 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/0.7274, allocations: 16.09 kB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.401e-05/0.7274, allocations: 40 kB / 0.6489 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/0.7302, allocations: 0.7176 MB / 0.6496 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.326e-05/0.7303, allocations: 43.86 kB / 0.6496 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/0.7334, allocations: 412.9 kB / 0.65 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.7337, allocations: 124 kB / 0.6501 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006084/0.7398, allocations: 3.259 MB / 0.6533 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003701/0.7435, allocations: 2.706 MB / 0.656 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006372/0.7499, allocations: 4.554 MB / 0.6604 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.788e-05/0.7499, allocations: 4 kB / 0.6604 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.008353/0.7583, allocations: 5.218 MB / 0.6655 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.7584, allocations: 16.03 kB / 0.6655 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/0.7584, allocations: 23.88 kB / 0.6656 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.7584, allocations: 37.08 kB / 0.6656 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002238/0.7607, allocations: 0.6201 MB / 0.6662 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.941e-05/0.7607, allocations: 43.86 kB / 0.6662 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002526/0.7632, allocations: 325.8 kB / 0.6665 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.7634, allocations: 120 kB / 0.6667 GB, free: 7.219 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.0007581/0.7642, allocations: 417.3 kB / 0.6671 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009835/0.7652, allocations: 0.5824 MB / 0.6676 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009047/0.7743, allocations: 5.161 MB / 0.6727 GB, free: 0.9922 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.864e-05/0.7743, allocations: 11.95 kB / 0.6727 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.7743, allocations: 0 / 0.6727 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/0.7764, allocations: 0.9301 MB / 0.6736 GB, free: 24 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000651/0.777, allocations: 64.05 kB / 0.6736 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/0.7788, allocations: 207.7 kB / 0.6738 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003765/0.7792, allocations: 173.9 kB / 0.674 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009607/0.7889, allocations: 5.016 MB / 0.6789 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01331/0.8022, allocations: 8.35 MB / 0.6871 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003745/0.806, allocations: 2.304 MB / 0.6893 GB, free: 15.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006344/0.8123, allocations: 3.685 MB / 0.6929 GB, free: 12.14 MB / 0.545 GB Notification: Performance of Backend: time 1.162e-06/0.8124, allocations: 4 kB / 0.6929 GB, free: 12.13 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0111/0.8235, allocations: 5.359 MB / 0.6982 GB, free: 6.77 MB / 0.545 GB Notification: Performance of SimCode: time 0.02503/0.8485, allocations: 13.05 MB / 0.7109 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of Templates: time 0.3521/1.201, allocations: 62.21 MB / 0.7716 GB, free: 186.5 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_10.pipe 2>&1)