Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 110.2 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.001385/0.001385, 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1867/0.1867, allocations: 28.79 MB / 320 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.89 kB / 445 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1053, allocations: 56.44 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_6): time 0.01915/0.1245, allocations: 19.11 MB / 0.5084 GB, free: 6.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2382/0.3627, allocations: 7.251 MB / 0.5155 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007879/0.3707, allocations: 108.1 kB / 0.5156 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005117/0.3758, allocations: 0.9611 MB / 0.5165 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008537/0.3844, allocations: 0.9164 MB / 0.5174 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.3952, allocations: 3.624 MB / 0.5209 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01594/0.4112, allocations: 7.513 MB / 0.5283 GB, free: 4.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01442/0.4256, allocations: 4.44 MB / 0.5326 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005823/0.4315, allocations: 2.607 MB / 0.5352 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006493/0.438, allocations: 3.053 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00434/0.4424, allocations: 0.88 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003562/0.446, allocations: 0.9234 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004504/0.4505, allocations: 2.398 MB / 0.5422 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006915/0.4574, allocations: 4.029 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01764/0.4751, allocations: 10.18 MB / 0.5561 GB, free: 4.355 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4751, allocations: 0 / 0.5561 GB, free: 4.355 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4752, allocations: 1.062 kB / 0.5561 GB, free: 4.355 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008508/0.476, allocations: 0 / 0.5561 GB, free: 4.355 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.02668/0.5027, allocations: 8.49 MB / 0.5644 GB, free: 14.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.5028, allocations: 9.562 kB / 0.5644 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002818/0.5056, allocations: 0.9874 MB / 0.5654 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008388/0.514, allocations: 4.319 MB / 0.5696 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000601/0.5146, allocations: 0.5217 MB / 0.5701 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/0.516, allocations: 0.6497 MB / 0.5707 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/0.5336, allocations: 7.483 MB / 0.5781 GB, free: 3.574 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/0.5338, allocations: 10.47 kB / 0.5781 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009445/0.5347, allocations: 276 kB / 0.5783 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.5349, allocations: 163.9 kB / 0.5785 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.5494, allocations: 6.222 MB / 0.5846 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04165/0.5911, allocations: 24.28 MB / 0.6083 GB, free: 4.547 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008675/0.5999, allocations: 4.796 MB / 0.613 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003884/0.6038, allocations: 2.127 MB / 0.615 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002678/0.6041, allocations: 82.39 kB / 0.6151 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.538e-05/0.6042, allocations: 76.53 kB / 0.6152 GB, free: 13.46 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 5.791e-06/0.6042, allocations: 0 / 0.6152 GB, free: 13.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01317/0.6173, allocations: 6.831 MB / 0.6219 GB, free: 6.566 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002618/0.6176, allocations: 0.5894 MB / 0.6224 GB, free: 5.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/0.6294, allocations: 5.399 MB / 0.6277 GB, free: 464 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000559/0.63, allocations: 77.7 kB / 0.6278 GB, free: 380 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003519/0.6336, allocations: 3.939 MB / 0.6316 GB, free: 12.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.6348, allocations: 0.9181 MB / 0.6325 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/0.6362, allocations: 0.565 MB / 0.6331 GB, free: 10.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.6363, allocations: 305.1 kB / 0.6334 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/0.6402, allocations: 2.151 MB / 0.6355 GB, free: 8.461 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004922/0.6452, allocations: 2.971 MB / 0.6384 GB, free: 5.172 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008409/0.6536, allocations: 4.992 MB / 0.6432 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-05/0.6537, allocations: 8 kB / 0.6432 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01139/0.6651, allocations: 5.712 MB / 0.6488 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/0.6651, allocations: 15.94 kB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.322e-05/0.6652, allocations: 23.94 kB / 0.6489 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.625e-05/0.6652, allocations: 32 kB / 0.6489 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/0.6682, allocations: 0.71 MB / 0.6496 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.019e-05/0.6683, allocations: 43.86 kB / 0.6496 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/0.6716, allocations: 416.9 kB / 0.65 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003541/0.672, allocations: 120 kB / 0.6501 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006727/0.6787, allocations: 3.259 MB / 0.6533 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003742/0.6825, allocations: 2.71 MB / 0.656 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006719/0.6892, allocations: 4.558 MB / 0.6604 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.431e-05/0.6893, allocations: 4 kB / 0.6604 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009118/0.6984, allocations: 5.217 MB / 0.6655 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.6985, allocations: 14.5 kB / 0.6655 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.6985, allocations: 23.94 kB / 0.6656 GB, free: 8.336 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.32e-05/0.6986, allocations: 32 kB / 0.6656 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/0.7011, allocations: 0.6204 MB / 0.6662 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.641e-05/0.7012, allocations: 47.86 kB / 0.6662 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003082/0.7043, allocations: 321.8 kB / 0.6665 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/0.7046, allocations: 120 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.0009167/0.7056, allocations: 420 kB / 0.6671 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001602/0.7072, allocations: 0.5785 MB / 0.6676 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/0.7175, allocations: 5.165 MB / 0.6727 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.785e-05/0.7175, allocations: 15.94 kB / 0.6727 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.7176, allocations: 4 kB / 0.6727 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002758/0.7203, allocations: 0.9223 MB / 0.6736 GB, free: 8 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/0.7217, allocations: 63.98 kB / 0.6737 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002596/0.7243, allocations: 203.8 kB / 0.6738 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004069/0.7247, allocations: 173.9 kB / 0.674 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01128/0.736, allocations: 5.019 MB / 0.6789 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01501/0.751, allocations: 8.342 MB / 0.6871 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004056/0.7551, allocations: 2.312 MB / 0.6893 GB, free: 15.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007308/0.7625, allocations: 3.681 MB / 0.6929 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Backend: time 6.71e-07/0.7625, allocations: 4 kB / 0.6929 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01138/0.7739, allocations: 5.355 MB / 0.6981 GB, free: 6.762 MB / 0.545 GB Notification: Performance of SimCode: time 0.02438/0.7983, allocations: 13.07 MB / 0.7109 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of Templates: time 0.3656/1.164, allocations: 62.19 MB / 0.7716 GB, free: 186.7 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_6.pipe 2>&1)