Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 114.9 kB / 16.42 MB, free: 6.012 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.001293/0.001293, allocations: 183.2 kB / 17.35 MB, free: 5.629 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.502/1.502, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2089/0.2089, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 59.91 kB / 445 MB, free: 2.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1221, allocations: 56.42 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_2): time 0.01953/0.1417, allocations: 19.13 MB / 0.5084 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2798/0.4215, allocations: 7.245 MB / 0.5155 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005283/0.4268, allocations: 111.9 kB / 0.5156 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003686/0.4305, allocations: 0.9653 MB / 0.5165 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005386/0.436, allocations: 0.9145 MB / 0.5174 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009159/0.4451, allocations: 3.629 MB / 0.5209 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01713/0.4623, allocations: 7.515 MB / 0.5283 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01186/0.4742, allocations: 4.435 MB / 0.5326 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004685/0.4789, allocations: 2.606 MB / 0.5352 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006489/0.4854, allocations: 3.058 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003895/0.4894, allocations: 0.8798 MB / 0.539 GB, free: 16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.493, allocations: 0.9238 MB / 0.5399 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005316/0.4984, allocations: 2.387 MB / 0.5422 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007613/0.506, allocations: 4.036 MB / 0.5462 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01752/0.5235, allocations: 10.18 MB / 0.5561 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.5236, allocations: 0 / 0.5561 GB, free: 4.348 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.5236, allocations: 0.8438 kB / 0.5561 GB, free: 4.348 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007616/0.5244, allocations: 0 / 0.5561 GB, free: 4.348 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.02496/0.5494, allocations: 8.493 MB / 0.5644 GB, free: 14.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5494, allocations: 8.812 kB / 0.5644 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002658/0.5521, allocations: 0.9926 MB / 0.5654 GB, free: 13.71 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009302/0.5614, allocations: 4.307 MB / 0.5696 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00101/0.5625, allocations: 0.5178 MB / 0.5701 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001763/0.5642, allocations: 0.6528 MB / 0.5707 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01794/0.5822, allocations: 7.48 MB / 0.578 GB, free: 3.574 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000183/0.5824, allocations: 14.09 kB / 0.5781 GB, free: 3.566 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001146/0.5836, allocations: 279.2 kB / 0.5783 GB, free: 3.297 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/0.5837, allocations: 160 kB / 0.5785 GB, free: 3.141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01544/0.5992, allocations: 6.223 MB / 0.5846 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04792/0.6471, allocations: 24.28 MB / 0.6083 GB, free: 4.539 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009099/0.6563, allocations: 4.797 MB / 0.613 GB, free: 15.74 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003946/0.6603, allocations: 2.127 MB / 0.615 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002728/0.6606, allocations: 83.95 kB / 0.6151 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.186e-05/0.6607, allocations: 72.59 kB / 0.6152 GB, free: 13.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 6.482e-06/0.6607, allocations: 0 / 0.6152 GB, free: 13.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01404/0.6747, allocations: 6.831 MB / 0.6219 GB, free: 6.562 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002619/0.675, allocations: 0.5894 MB / 0.6224 GB, free: 5.836 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01166/0.6867, allocations: 5.399 MB / 0.6277 GB, free: 460 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006171/0.6873, allocations: 77.7 kB / 0.6278 GB, free: 376 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003808/0.6912, allocations: 3.943 MB / 0.6316 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001472/0.6927, allocations: 0.9213 MB / 0.6325 GB, free: 11.49 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001877/0.6945, allocations: 0.5611 MB / 0.6331 GB, free: 10.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.694e-05/0.6947, allocations: 305.1 kB / 0.6334 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004078/0.6988, allocations: 2.155 MB / 0.6355 GB, free: 8.453 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004984/0.7038, allocations: 2.967 MB / 0.6384 GB, free: 5.168 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008696/0.7125, allocations: 4.996 MB / 0.6432 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.613e-05/0.7125, allocations: 4 kB / 0.6433 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01138/0.7239, allocations: 5.706 MB / 0.6488 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.724, allocations: 16.91 kB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/0.724, allocations: 16 kB / 0.6489 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.163e-05/0.7241, allocations: 40 kB / 0.6489 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/0.7271, allocations: 0.7176 MB / 0.6496 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.475e-05/0.7271, allocations: 43.86 kB / 0.6496 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/0.7305, allocations: 412.9 kB / 0.65 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003814/0.7309, allocations: 120 kB / 0.6501 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007168/0.738, allocations: 3.255 MB / 0.6533 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003891/0.742, allocations: 2.709 MB / 0.656 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006849/0.7488, allocations: 4.556 MB / 0.6604 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.691e-05/0.7489, 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.0109/0.7598, allocations: 5.214 MB / 0.6655 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/0.7599, allocations: 12 kB / 0.6655 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.053e-05/0.7599, allocations: 24.09 kB / 0.6655 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.315e-05/0.76, allocations: 36 kB / 0.6656 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/0.7625, allocations: 0.6201 MB / 0.6662 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.966e-05/0.7625, allocations: 43.86 kB / 0.6662 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003264/0.7658, allocations: 329.8 kB / 0.6665 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003061/0.7661, allocations: 119.9 kB / 0.6667 GB, free: 7.203 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.001008/0.7671, allocations: 413.2 kB / 0.6671 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002044/0.7692, allocations: 0.5824 MB / 0.6676 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/0.7803, allocations: 5.173 MB / 0.6727 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.62e-05/0.7804, allocations: 11.95 kB / 0.6727 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.7804, allocations: 0 / 0.6727 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002756/0.7832, allocations: 0.9301 MB / 0.6736 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/0.7846, allocations: 61.05 kB / 0.6737 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002574/0.7872, allocations: 203.7 kB / 0.6738 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003849/0.7876, allocations: 173.9 kB / 0.674 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01057/0.7981, allocations: 5.021 MB / 0.6789 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0147/0.8129, allocations: 8.35 MB / 0.6871 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00411/0.817, allocations: 2.304 MB / 0.6893 GB, free: 15.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01016/0.8272, allocations: 3.685 MB / 0.6929 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Backend: time 1.452e-06/0.8273, allocations: 0 / 0.6929 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01435/0.8416, allocations: 5.365 MB / 0.6982 GB, free: 6.75 MB / 0.545 GB Notification: Performance of SimCode: time 0.0287/0.8704, allocations: 13.05 MB / 0.7109 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of Templates: time 0.3832/1.254, allocations: 62.21 MB / 0.7716 GB, free: 186.6 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_2.pipe 2>&1)