Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.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_11,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_11,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 113.5 kB / 16.42 MB, free: 6.492 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.001542/0.001542, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.272/1.272, 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.1667/0.1667, allocations: 28.78 MB / 320 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.91 kB / 445 MB, free: 2.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.1008, allocations: 56.42 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_11): time 0.01992/0.1208, allocations: 19.12 MB / 0.5084 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.231/0.3518, allocations: 7.247 MB / 0.5155 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004718/0.3566, allocations: 109.2 kB / 0.5156 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002063/0.3586, allocations: 0.9635 MB / 0.5165 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.3612, allocations: 0.8403 MB / 0.5173 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005182/0.3664, allocations: 3.629 MB / 0.5209 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008068/0.3745, allocations: 7.497 MB / 0.5282 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005581/0.3801, allocations: 4.432 MB / 0.5325 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00304/0.3832, allocations: 2.611 MB / 0.5351 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004115/0.3873, allocations: 2.976 MB / 0.538 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.3888, allocations: 0.8808 MB / 0.5388 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.3901, allocations: 0.9203 MB / 0.5397 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.3921, allocations: 2.394 MB / 0.5421 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003271/0.3954, allocations: 4.032 MB / 0.546 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01132/0.4067, allocations: 10.18 MB / 0.5559 GB, free: 4.305 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4068, allocations: 1.25 kB / 0.5559 GB, free: 4.305 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4068, allocations: 0 / 0.5559 GB, free: 4.305 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005299/0.4073, allocations: 0 / 0.5559 GB, free: 4.305 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.01773/0.425, allocations: 8.489 MB / 0.5642 GB, free: 14.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.4251, allocations: 9.156 kB / 0.5642 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.4269, allocations: 0.9863 MB / 0.5652 GB, free: 13.67 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006601/0.4335, allocations: 4.321 MB / 0.5694 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005507/0.4341, allocations: 0.522 MB / 0.5699 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000776/0.4349, allocations: 0.647 MB / 0.5706 GB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/0.4465, allocations: 7.478 MB / 0.5779 GB, free: 3.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/0.4466, allocations: 21.31 kB / 0.5779 GB, free: 3.488 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000424/0.4471, allocations: 276 kB / 0.5782 GB, free: 3.219 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.4472, allocations: 160 kB / 0.5783 GB, free: 3.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009747/0.4569, allocations: 6.218 MB / 0.5844 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03204/0.489, allocations: 24.29 MB / 0.6081 GB, free: 4.457 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007431/0.4965, allocations: 4.794 MB / 0.6128 GB, free: 15.66 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003129/0.4996, allocations: 2.127 MB / 0.6149 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001685/0.4998, allocations: 83.17 kB / 0.6149 GB, free: 13.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.04e-05/0.4999, allocations: 76.53 kB / 0.615 GB, free: 13.37 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 4.588e-06/0.4999, allocations: 0 / 0.615 GB, free: 13.37 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01101/0.5109, allocations: 6.835 MB / 0.6217 GB, free: 6.477 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002529/0.5112, allocations: 0.5855 MB / 0.6223 GB, free: 5.754 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007586/0.5188, allocations: 5.403 MB / 0.6275 GB, free: 372 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004139/0.5192, allocations: 77.7 kB / 0.6276 GB, free: 288 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002813/0.522, allocations: 3.94 MB / 0.6315 GB, free: 12.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009114/0.523, allocations: 0.9183 MB / 0.6324 GB, free: 11.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000838/0.5238, allocations: 0.5611 MB / 0.6329 GB, free: 10.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.657e-05/0.5239, allocations: 305.1 kB / 0.6332 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003352/0.5273, allocations: 2.155 MB / 0.6353 GB, free: 8.371 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003911/0.5312, allocations: 2.972 MB / 0.6382 GB, free: 5.082 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007144/0.5383, allocations: 4.995 MB / 0.6431 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.5384, allocations: 4 kB / 0.6431 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.009207/0.5476, allocations: 5.705 MB / 0.6487 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.5476, allocations: 15.94 kB / 0.6487 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.5477, allocations: 20 kB / 0.6487 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.929e-05/0.5477, allocations: 32 kB / 0.6487 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/0.5503, allocations: 0.7138 MB / 0.6494 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.968e-05/0.5504, allocations: 43.86 kB / 0.6495 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/0.5529, allocations: 416.9 kB / 0.6499 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.5531, allocations: 120 kB / 0.65 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00536/0.5584, allocations: 3.259 MB / 0.6531 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003117/0.5616, allocations: 2.706 MB / 0.6558 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005575/0.5672, allocations: 4.559 MB / 0.6602 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.147e-06/0.5672, allocations: 4 kB / 0.6602 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.007449/0.5746, allocations: 5.217 MB / 0.6653 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5747, allocations: 12 kB / 0.6654 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/0.5747, allocations: 23.94 kB / 0.6654 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.5747, allocations: 32 kB / 0.6654 GB, free: 8.223 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/0.5769, allocations: 0.6204 MB / 0.666 GB, free: 7.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.578e-05/0.5769, allocations: 47.86 kB / 0.6661 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.579, allocations: 321.8 kB / 0.6664 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/0.5792, allocations: 121.4 kB / 0.6665 GB, free: 7.121 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.000617/0.5798, allocations: 422.8 kB / 0.6669 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007393/0.5805, allocations: 0.5785 MB / 0.6674 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008227/0.5888, allocations: 5.165 MB / 0.6725 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.479e-05/0.5888, allocations: 11.95 kB / 0.6725 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.5888, allocations: 7.984 kB / 0.6725 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00178/0.5906, allocations: 0.9255 MB / 0.6734 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004543/0.5911, allocations: 60 kB / 0.6735 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.5927, allocations: 203.8 kB / 0.6737 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003148/0.593, allocations: 177.9 kB / 0.6738 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00885/0.6019, allocations: 5.017 MB / 0.6787 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01192/0.6138, allocations: 8.346 MB / 0.6869 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003262/0.6171, allocations: 2.312 MB / 0.6891 GB, free: 15.71 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005524/0.6226, allocations: 3.689 MB / 0.6927 GB, free: 12.04 MB / 0.545 GB Notification: Performance of Backend: time 6.61e-07/0.6226, allocations: 0 / 0.6927 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009092/0.6317, allocations: 5.353 MB / 0.698 GB, free: 6.676 MB / 0.545 GB Notification: Performance of SimCode: time 0.01866/0.6504, allocations: 13.07 MB / 0.7107 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of Templates: time 0.2999/0.9503, allocations: 62.2 MB / 0.7715 GB, free: 187.2 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_11.pipe 2>&1)