Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.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_5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 108.1 kB / 16.41 MB, free: 6.504 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.001329/0.001328, allocations: 188.3 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.34/1.34, allocations: 222.9 MB / 241.1 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.1721/0.1721, allocations: 28.78 MB / 320 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.91 kB / 445 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1105, allocations: 56.42 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_5): time 0.02016/0.1307, allocations: 19.12 MB / 0.5084 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2451/0.3759, allocations: 7.245 MB / 0.5155 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005775/0.3817, allocations: 105.8 kB / 0.5156 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003867/0.3856, allocations: 0.9697 MB / 0.5165 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005375/0.391, allocations: 0.9187 MB / 0.5174 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007441/0.3985, allocations: 3.624 MB / 0.5209 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01179/0.4103, allocations: 7.509 MB / 0.5283 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00776/0.4181, allocations: 4.441 MB / 0.5326 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003935/0.4221, allocations: 2.606 MB / 0.5352 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006084/0.4282, allocations: 3.055 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003267/0.4315, allocations: 0.8812 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/0.4346, allocations: 0.9221 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004178/0.4388, allocations: 2.399 MB / 0.5422 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006/0.4449, allocations: 4.028 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01387/0.4588, allocations: 10.18 MB / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.4588, allocations: 1.125 kB / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4588, allocations: 0 / 0.5561 GB, free: 4.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007089/0.4595, 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.02071/0.4803, allocations: 8.492 MB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.4803, allocations: 9.031 kB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002564/0.4829, allocations: 0.9875 MB / 0.5654 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008004/0.4909, allocations: 4.316 MB / 0.5696 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000515/0.4915, allocations: 0.5248 MB / 0.5701 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.4927, allocations: 0.6479 MB / 0.5707 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/0.5082, allocations: 7.483 MB / 0.5781 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000159/0.5084, allocations: 10.47 kB / 0.5781 GB, free: 3.574 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/0.5094, allocations: 276 kB / 0.5783 GB, free: 3.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.5096, allocations: 164 kB / 0.5785 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01328/0.5228, allocations: 6.222 MB / 0.5846 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04357/0.5665, allocations: 24.29 MB / 0.6083 GB, free: 4.531 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008108/0.5746, allocations: 4.807 MB / 0.613 GB, free: 15.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003556/0.5782, allocations: 2.123 MB / 0.615 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002349/0.5784, allocations: 76.28 kB / 0.6151 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.5785, allocations: 68.59 kB / 0.6152 GB, free: 13.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 4.899e-06/0.5785, allocations: 0 / 0.6152 GB, free: 13.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01265/0.5912, allocations: 6.839 MB / 0.6219 GB, free: 6.551 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002679/0.5915, allocations: 0.5894 MB / 0.6224 GB, free: 5.824 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01063/0.6021, allocations: 5.395 MB / 0.6277 GB, free: 452 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006104/0.6027, allocations: 77.7 kB / 0.6278 GB, free: 368 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00394/0.6067, allocations: 3.942 MB / 0.6316 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/0.6082, allocations: 0.9242 MB / 0.6325 GB, free: 11.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001447/0.6096, allocations: 0.5572 MB / 0.6331 GB, free: 10.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.6097, allocations: 309.1 kB / 0.6334 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003799/0.6136, allocations: 2.151 MB / 0.6355 GB, free: 8.449 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004348/0.6179, allocations: 2.967 MB / 0.6384 GB, free: 5.164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007872/0.6258, allocations: 4.996 MB / 0.6432 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.417e-05/0.6258, allocations: 4 kB / 0.6432 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01038/0.6362, allocations: 5.709 MB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.6363, allocations: 15.94 kB / 0.6488 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.6363, allocations: 21.03 kB / 0.6489 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.09e-05/0.6364, allocations: 32 kB / 0.6489 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/0.6391, allocations: 0.7138 MB / 0.6496 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.953e-05/0.6391, allocations: 43.86 kB / 0.6496 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/0.6419, allocations: 412.9 kB / 0.65 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002462/0.6422, allocations: 124 kB / 0.6501 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00545/0.6476, allocations: 3.259 MB / 0.6533 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003238/0.6509, allocations: 2.702 MB / 0.656 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005823/0.6567, allocations: 4.558 MB / 0.6604 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.133e-05/0.6567, allocations: 11.94 kB / 0.6604 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.007913/0.6647, allocations: 5.217 MB / 0.6655 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.6647, allocations: 12 kB / 0.6655 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.6647, allocations: 23.94 kB / 0.6656 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/0.6647, allocations: 32 kB / 0.6656 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002165/0.6669, allocations: 0.6204 MB / 0.6662 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.833e-05/0.667, allocations: 47.86 kB / 0.6662 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/0.6695, allocations: 317.8 kB / 0.6665 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/0.6697, allocations: 124 kB / 0.6667 GB, free: 7.195 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.0007003/0.6704, allocations: 420.9 kB / 0.6671 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/0.6717, allocations: 0.5785 MB / 0.6676 GB, free: 6.191 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008619/0.6803, allocations: 5.165 MB / 0.6727 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.448e-05/0.6803, allocations: 15.94 kB / 0.6727 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.6804, allocations: 4 kB / 0.6727 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/0.6821, allocations: 0.9224 MB / 0.6736 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006835/0.6828, allocations: 67.94 kB / 0.6737 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001756/0.6846, allocations: 203.8 kB / 0.6738 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.6849, allocations: 168.6 kB / 0.674 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009011/0.6939, allocations: 5.019 MB / 0.6789 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01185/0.7058, allocations: 8.346 MB / 0.6871 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003356/0.7091, allocations: 2.308 MB / 0.6893 GB, free: 15.78 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006428/0.7156, allocations: 3.689 MB / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of Backend: time 4.21e-07/0.7156, allocations: 0 / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009735/0.7253, allocations: 5.358 MB / 0.6981 GB, free: 6.746 MB / 0.545 GB Notification: Performance of SimCode: time 0.02183/0.7472, allocations: 13.07 MB / 0.7109 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of Templates: time 0.34/1.087, allocations: 62.19 MB / 0.7716 GB, free: 186.7 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_5.pipe 2>&1)