Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.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_9,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_9,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 112.7 kB / 16.42 MB, free: 6.516 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.001771/0.001771, allocations: 190.7 kB / 17.35 MB, free: 5.734 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.319/1.319, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1676/0.1676, allocations: 28.78 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 445 MB, free: 2.496 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.106, allocations: 56.41 MB / 0.4897 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_9): time 0.01897/0.1251, allocations: 19.12 MB / 0.5084 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2314/0.3565, allocations: 7.241 MB / 0.5155 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004774/0.3613, allocations: 106 kB / 0.5156 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.3646, allocations: 0.971 MB / 0.5165 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0047/0.3694, allocations: 0.9235 MB / 0.5174 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007342/0.3767, allocations: 3.623 MB / 0.5209 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01198/0.3887, allocations: 7.511 MB / 0.5283 GB, free: 4.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007387/0.3961, allocations: 4.432 MB / 0.5326 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003586/0.3998, allocations: 2.612 MB / 0.5352 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003762/0.4035, allocations: 2.841 MB / 0.5379 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002562/0.4061, allocations: 0.8806 MB / 0.5388 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.4083, allocations: 0.9164 MB / 0.5397 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002815/0.4111, allocations: 2.389 MB / 0.542 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005041/0.4161, allocations: 4.039 MB / 0.546 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.4272, allocations: 10.17 MB / 0.5559 GB, free: 3.434 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4272, allocations: 1.031 kB / 0.5559 GB, free: 3.434 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4273, allocations: 0 / 0.5559 GB, free: 3.434 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004359/0.4277, allocations: 0 / 0.5559 GB, free: 3.434 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.01852/0.4462, allocations: 8.497 MB / 0.5642 GB, free: 13.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.4463, allocations: 7.844 kB / 0.5642 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002495/0.4488, allocations: 0.9962 MB / 0.5652 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007559/0.4564, allocations: 4.307 MB / 0.5694 GB, free: 9.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005502/0.457, allocations: 0.5259 MB / 0.5699 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/0.4584, allocations: 0.6517 MB / 0.5705 GB, free: 9.258 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01571/0.4741, allocations: 7.478 MB / 0.5778 GB, free: 2.672 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001069/0.4742, allocations: 13.38 kB / 0.5778 GB, free: 2.668 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005047/0.4747, allocations: 276 kB / 0.5781 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.4749, allocations: 164 kB / 0.5783 GB, free: 2.238 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/0.4865, allocations: 6.218 MB / 0.5843 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03702/0.5236, allocations: 24.29 MB / 0.6081 GB, free: 3.633 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008319/0.5319, allocations: 4.793 MB / 0.6127 GB, free: 14.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003456/0.5354, allocations: 2.127 MB / 0.6148 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000208/0.5356, allocations: 83.56 kB / 0.6149 GB, free: 12.63 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.423e-05/0.5357, allocations: 72.53 kB / 0.615 GB, free: 12.55 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 5.24e-06/0.5357, allocations: 0 / 0.615 GB, free: 12.55 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01171/0.5474, allocations: 6.835 MB / 0.6216 GB, free: 5.656 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002638/0.5477, allocations: 0.5894 MB / 0.6222 GB, free: 4.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007968/0.5557, allocations: 5.395 MB / 0.6275 GB, free: 15.55 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004735/0.5562, allocations: 77.7 kB / 0.6276 GB, free: 15.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002845/0.5591, allocations: 3.949 MB / 0.6314 GB, free: 11.49 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.5601, allocations: 0.9205 MB / 0.6323 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000861/0.561, allocations: 0.5611 MB / 0.6329 GB, free: 10.01 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.5611, allocations: 301.1 kB / 0.6331 GB, free: 9.711 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/0.5646, allocations: 2.155 MB / 0.6352 GB, free: 7.547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004049/0.5687, allocations: 2.971 MB / 0.6382 GB, free: 4.258 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007378/0.5761, allocations: 4.992 MB / 0.643 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.5761, allocations: 4 kB / 0.643 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.009887/0.586, allocations: 5.705 MB / 0.6486 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.5861, allocations: 16.16 kB / 0.6486 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.47e-05/0.5861, allocations: 24 kB / 0.6486 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.965e-05/0.5862, allocations: 32 kB / 0.6487 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.5889, allocations: 0.7176 MB / 0.6494 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.704e-05/0.589, allocations: 43.86 kB / 0.6494 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/0.5918, allocations: 416.9 kB / 0.6498 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002121/0.592, allocations: 120 kB / 0.6499 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005825/0.5978, allocations: 3.259 MB / 0.6531 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003309/0.6011, allocations: 2.702 MB / 0.6557 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005765/0.6069, allocations: 4.556 MB / 0.6602 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.098e-05/0.607, allocations: 4 kB / 0.6602 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.007625/0.6146, allocations: 5.222 MB / 0.6653 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.6146, allocations: 12 kB / 0.6653 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.6146, allocations: 23.94 kB / 0.6653 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.402e-05/0.6147, allocations: 32.7 kB / 0.6654 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/0.6168, allocations: 0.6201 MB / 0.666 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.749e-05/0.6169, allocations: 43.86 kB / 0.666 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.6193, allocations: 329.9 kB / 0.6663 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/0.6194, allocations: 116 kB / 0.6664 GB, free: 6.297 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.0006638/0.6201, allocations: 424.6 kB / 0.6668 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008339/0.6209, allocations: 0.5785 MB / 0.6674 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008378/0.6293, allocations: 5.165 MB / 0.6724 GB, free: 64 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/0.6294, allocations: 11.95 kB / 0.6725 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.6294, allocations: 5.078 kB / 0.6725 GB, free: 48 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/0.631, allocations: 0.9223 MB / 0.6734 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/0.6315, allocations: 64 kB / 0.6734 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.633, allocations: 203.8 kB / 0.6736 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003112/0.6333, allocations: 173.9 kB / 0.6738 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008896/0.6422, allocations: 5.027 MB / 0.6787 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01306/0.6553, allocations: 8.338 MB / 0.6868 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003602/0.659, allocations: 2.316 MB / 0.6891 GB, free: 14.87 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005931/0.6649, allocations: 3.681 MB / 0.6927 GB, free: 11.21 MB / 0.545 GB Notification: Performance of Backend: time 9.32e-07/0.6649, allocations: 0 / 0.6927 GB, free: 11.21 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009768/0.6747, allocations: 5.363 MB / 0.6979 GB, free: 5.84 MB / 0.545 GB Notification: Performance of SimCode: time 0.02046/0.6952, allocations: 13.06 MB / 0.7107 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of Templates: time 0.3468/1.042, allocations: 62.21 MB / 0.7714 GB, free: 186.5 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_9.pipe 2>&1)