Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001121/0.001121, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.293/1.293, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1642/0.1642, allocations: 28.78 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.89 kB / 445 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09748, allocations: 56.42 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_3): time 0.0187/0.1162, allocations: 19.11 MB / 0.5084 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2259/0.3422, allocations: 7.247 MB / 0.5154 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005005/0.3472, allocations: 108.5 kB / 0.5156 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003383/0.3506, allocations: 0.9704 MB / 0.5165 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00446/0.3552, allocations: 0.839 MB / 0.5173 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007217/0.3624, allocations: 3.626 MB / 0.5209 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.3732, allocations: 7.501 MB / 0.5282 GB, free: 4.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008349/0.3816, allocations: 4.438 MB / 0.5325 GB, free: 2.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003974/0.3856, allocations: 2.609 MB / 0.5351 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005731/0.3913, allocations: 3.045 MB / 0.538 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003077/0.3944, allocations: 0.8806 MB / 0.5389 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.3969, allocations: 0.9202 MB / 0.5398 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003289/0.4002, allocations: 2.39 MB / 0.5421 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005672/0.4059, allocations: 4.036 MB / 0.5461 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.4189, allocations: 10.17 MB / 0.556 GB, free: 4.371 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4189, allocations: 5.031 kB / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4189, allocations: 0 / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004423/0.4194, allocations: 0 / 0.556 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.01787/0.4373, allocations: 8.49 MB / 0.5643 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.4373, allocations: 12.98 kB / 0.5643 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00202/0.4394, allocations: 0.9878 MB / 0.5653 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007071/0.4464, allocations: 4.314 MB / 0.5695 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005104/0.447, allocations: 0.5213 MB / 0.57 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009059/0.4479, allocations: 0.6483 MB / 0.5706 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.4614, allocations: 7.485 MB / 0.5779 GB, free: 3.629 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001383/0.4616, allocations: 14.09 kB / 0.578 GB, free: 3.621 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007399/0.4623, allocations: 276 kB / 0.5782 GB, free: 3.352 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/0.4625, allocations: 160 kB / 0.5784 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.4744, allocations: 6.219 MB / 0.5844 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03794/0.5124, allocations: 24.3 MB / 0.6082 GB, free: 4.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007719/0.5201, allocations: 4.794 MB / 0.6129 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003359/0.5235, allocations: 2.123 MB / 0.6149 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000244/0.5238, allocations: 87.86 kB / 0.615 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.077e-05/0.5239, allocations: 68.59 kB / 0.6151 GB, free: 13.51 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 8.757e-06/0.5239, allocations: 0 / 0.6151 GB, free: 13.51 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01201/0.5359, allocations: 6.832 MB / 0.6217 GB, free: 6.617 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000289/0.5363, allocations: 0.5855 MB / 0.6223 GB, free: 5.895 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/0.5468, allocations: 5.407 MB / 0.6276 GB, free: 0.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005037/0.5473, allocations: 73.7 kB / 0.6277 GB, free: 432 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003261/0.5506, allocations: 3.942 MB / 0.6315 GB, free: 12.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/0.5518, allocations: 0.9252 MB / 0.6324 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.5531, allocations: 0.5611 MB / 0.633 GB, free: 10.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.016e-05/0.5532, allocations: 301.1 kB / 0.6333 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003482/0.5567, allocations: 2.155 MB / 0.6354 GB, free: 8.508 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004199/0.5609, allocations: 2.967 MB / 0.6383 GB, free: 5.223 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007617/0.5686, allocations: 4.992 MB / 0.6431 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-05/0.5686, allocations: 7.938 kB / 0.6431 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01049/0.5791, allocations: 5.705 MB / 0.6487 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.5792, allocations: 15.94 kB / 0.6487 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.5792, allocations: 20.91 kB / 0.6487 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.519e-05/0.5793, allocations: 32 kB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/0.5821, allocations: 0.7176 MB / 0.6495 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.84e-05/0.5821, allocations: 47.84 kB / 0.6495 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/0.5851, allocations: 420.9 kB / 0.6499 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003039/0.5855, allocations: 120 kB / 0.65 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005883/0.5914, allocations: 3.255 MB / 0.6532 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003655/0.595, allocations: 2.706 MB / 0.6559 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006057/0.6011, allocations: 4.555 MB / 0.6603 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.445e-05/0.6012, allocations: 8 kB / 0.6603 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.008585/0.6097, allocations: 5.214 MB / 0.6654 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.6098, allocations: 14.66 kB / 0.6654 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-05/0.6098, allocations: 28.06 kB / 0.6654 GB, free: 8.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/0.6099, allocations: 32 kB / 0.6655 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002214/0.6121, allocations: 0.6201 MB / 0.6661 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.083e-05/0.6122, allocations: 43.86 kB / 0.6661 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/0.6148, allocations: 325.8 kB / 0.6664 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002265/0.6151, allocations: 120 kB / 0.6666 GB, free: 7.254 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.0007984/0.6159, allocations: 417.1 kB / 0.667 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001411/0.6173, allocations: 0.5785 MB / 0.6675 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009467/0.6268, allocations: 5.173 MB / 0.6726 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.239e-05/0.6268, allocations: 11.95 kB / 0.6726 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6269, allocations: 0 / 0.6726 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/0.6292, allocations: 0.9262 MB / 0.6735 GB, free: 60 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/0.6303, allocations: 60 kB / 0.6735 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002359/0.6327, allocations: 207.8 kB / 0.6737 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003995/0.6331, allocations: 173.9 kB / 0.6739 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009961/0.6431, allocations: 5.023 MB / 0.6788 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01341/0.6565, allocations: 8.346 MB / 0.687 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003712/0.6603, allocations: 2.315 MB / 0.6892 GB, free: 15.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007168/0.6675, allocations: 3.685 MB / 0.6928 GB, free: 12.17 MB / 0.545 GB Notification: Performance of Backend: time 8.81e-07/0.6675, allocations: 0 / 0.6928 GB, free: 12.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01121/0.6787, allocations: 5.356 MB / 0.698 GB, free: 6.812 MB / 0.545 GB Notification: Performance of SimCode: time 0.02407/0.7028, allocations: 13.06 MB / 0.7108 GB, free: 9.734 MB / 0.5606 GB Notification: Performance of Templates: time 0.3237/1.027, allocations: 62.2 MB / 0.7715 GB, free: 186.6 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe 2>&1)