Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001556, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.001718/0.001718, allocations: 183.9 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.305/1.305, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.165/0.165, allocations: 28.78 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001409, allocations: 67.89 kB / 445 MB, free: 2.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09883, allocations: 56.41 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_1): time 0.01818/0.117, allocations: 19.12 MB / 0.5084 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2308/0.3479, allocations: 7.241 MB / 0.5155 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005596/0.3535, allocations: 111.7 kB / 0.5156 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003276/0.3568, allocations: 0.9692 MB / 0.5165 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005024/0.3619, allocations: 0.8433 MB / 0.5173 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00666/0.3686, allocations: 3.619 MB / 0.5209 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.3791, allocations: 7.502 MB / 0.5282 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006985/0.3861, allocations: 4.431 MB / 0.5325 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003123/0.3893, allocations: 2.608 MB / 0.5351 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004809/0.3941, allocations: 3.042 MB / 0.538 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001765/0.3959, allocations: 0.8809 MB / 0.5389 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001393/0.3973, allocations: 0.9188 MB / 0.5398 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002083/0.3994, allocations: 2.391 MB / 0.5421 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004528/0.4039, allocations: 4.031 MB / 0.5461 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.4155, allocations: 10.18 MB / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4155, allocations: 0 / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4155, allocations: 5.188 kB / 0.556 GB, free: 4.363 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004094/0.4159, allocations: 3.938 kB / 0.556 GB, free: 4.359 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.01705/0.433, allocations: 8.491 MB / 0.5643 GB, free: 14.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.4331, allocations: 8.688 kB / 0.5643 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.4348, allocations: 0.989 MB / 0.5653 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006541/0.4413, allocations: 4.316 MB / 0.5695 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004478/0.4418, allocations: 0.5171 MB / 0.57 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008902/0.4427, allocations: 0.653 MB / 0.5706 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.4548, allocations: 7.48 MB / 0.5779 GB, free: 3.629 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.4549, allocations: 13.47 kB / 0.578 GB, free: 3.625 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004474/0.4554, allocations: 276 kB / 0.5782 GB, free: 3.355 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001197/0.4555, allocations: 164 kB / 0.5784 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01078/0.4663, allocations: 6.223 MB / 0.5845 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03348/0.4998, allocations: 24.29 MB / 0.6082 GB, free: 4.582 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007232/0.5071, allocations: 4.798 MB / 0.6129 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003076/0.5102, allocations: 2.127 MB / 0.6149 GB, free: 13.65 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001726/0.5103, allocations: 75.73 kB / 0.615 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.5104, allocations: 68.59 kB / 0.6151 GB, free: 13.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 4.609e-06/0.5104, allocations: 0 / 0.6151 GB, free: 13.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01073/0.5211, allocations: 6.839 MB / 0.6218 GB, free: 6.605 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000259/0.5214, allocations: 0.5816 MB / 0.6223 GB, free: 5.887 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007162/0.5286, allocations: 5.403 MB / 0.6276 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002357/0.5288, allocations: 77.7 kB / 0.6277 GB, free: 424 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002917/0.5318, allocations: 3.942 MB / 0.6315 GB, free: 12.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008231/0.5326, allocations: 0.9249 MB / 0.6324 GB, free: 11.53 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008492/0.5334, allocations: 0.5572 MB / 0.633 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5336, allocations: 301.1 kB / 0.6333 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003393/0.537, allocations: 2.151 MB / 0.6354 GB, free: 8.508 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004112/0.5411, allocations: 2.972 MB / 0.6383 GB, free: 5.219 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007335/0.5484, allocations: 4.995 MB / 0.6431 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.387e-05/0.5484, allocations: 8 kB / 0.6431 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.009931/0.5584, allocations: 5.701 MB / 0.6487 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.5584, allocations: 19.88 kB / 0.6487 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.5585, allocations: 20 kB / 0.6487 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.136e-05/0.5585, allocations: 32.78 kB / 0.6488 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/0.5613, allocations: 0.7176 MB / 0.6495 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.84e-05/0.5614, allocations: 51.86 kB / 0.6495 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002749/0.5641, allocations: 412.9 kB / 0.6499 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.5643, allocations: 125.1 kB / 0.65 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005493/0.5698, allocations: 3.263 MB / 0.6532 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003323/0.5732, allocations: 2.694 MB / 0.6559 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005852/0.579, allocations: 4.558 MB / 0.6603 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.186e-05/0.5791, allocations: 4 kB / 0.6603 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.008826/0.5879, allocations: 5.217 MB / 0.6654 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.5879, allocations: 13 kB / 0.6654 GB, free: 8.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.588, allocations: 27.88 kB / 0.6654 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/0.588, allocations: 36 kB / 0.6655 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/0.5902, allocations: 0.6201 MB / 0.6661 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.488e-05/0.5902, allocations: 47.86 kB / 0.6661 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002503/0.5927, allocations: 329.8 kB / 0.6664 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/0.5929, allocations: 116 kB / 0.6666 GB, free: 7.238 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.0006685/0.5936, allocations: 409.2 kB / 0.6669 GB, free: 6.832 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007132/0.5943, allocations: 0.5823 MB / 0.6675 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008383/0.6027, allocations: 5.173 MB / 0.6726 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.501e-05/0.6027, allocations: 11.95 kB / 0.6726 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.6028, allocations: 4 kB / 0.6726 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.6043, allocations: 0.9223 MB / 0.6735 GB, free: 48 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004199/0.6047, allocations: 64.05 kB / 0.6735 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.6063, allocations: 203.7 kB / 0.6737 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/0.6066, allocations: 169.9 kB / 0.6739 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008696/0.6153, allocations: 5.02 MB / 0.6788 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01177/0.6271, allocations: 8.35 MB / 0.687 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003261/0.6304, allocations: 2.312 MB / 0.6892 GB, free: 15.83 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005275/0.6357, allocations: 3.685 MB / 0.6928 GB, free: 12.16 MB / 0.545 GB Notification: Performance of Backend: time 5.11e-07/0.6357, allocations: 0 / 0.6928 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008953/0.6447, allocations: 5.353 MB / 0.698 GB, free: 6.805 MB / 0.545 GB Notification: Performance of SimCode: time 0.02045/0.6651, allocations: 13.06 MB / 0.7108 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of Templates: time 0.2902/0.9554, allocations: 62.2 MB / 0.7715 GB, free: 186.6 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_1.pipe 2>&1)