Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.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_7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 110 kB / 16.42 MB, free: 6.453 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.0012/0.0012, allocations: 185.7 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1614/0.1614, allocations: 28.79 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.91 kB / 445 MB, free: 2.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1006, allocations: 56.41 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_7): time 0.01865/0.1192, allocations: 19.12 MB / 0.5084 GB, free: 6.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2199/0.3392, allocations: 7.243 MB / 0.5154 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005019/0.3442, allocations: 106.8 kB / 0.5156 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003559/0.3478, allocations: 0.9706 MB / 0.5165 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005089/0.353, allocations: 0.8389 MB / 0.5173 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006343/0.3593, allocations: 3.628 MB / 0.5209 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008444/0.3678, allocations: 7.498 MB / 0.5282 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00546/0.3733, allocations: 4.432 MB / 0.5325 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.3761, allocations: 2.607 MB / 0.5351 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004707/0.3808, allocations: 3.047 MB / 0.538 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001606/0.3824, allocations: 0.8809 MB / 0.5389 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.3837, allocations: 0.9185 MB / 0.5398 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001819/0.3855, allocations: 2.39 MB / 0.5421 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003064/0.3886, allocations: 4.04 MB / 0.5461 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009246/0.3978, allocations: 10.18 MB / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3979, allocations: 2.625 kB / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3979, allocations: 0 / 0.556 GB, free: 4.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003343/0.3982, allocations: 1.062 kB / 0.556 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.01636/0.4146, allocations: 8.489 MB / 0.5643 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.4146, allocations: 12.52 kB / 0.5643 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001672/0.4163, allocations: 0.9908 MB / 0.5653 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005936/0.4223, allocations: 4.314 MB / 0.5695 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004355/0.4227, allocations: 0.524 MB / 0.57 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006185/0.4233, allocations: 0.6511 MB / 0.5706 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/0.4342, allocations: 7.483 MB / 0.5779 GB, free: 3.609 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.4344, allocations: 10.47 kB / 0.578 GB, free: 3.605 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004112/0.4348, allocations: 276 kB / 0.5782 GB, free: 3.336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.4349, allocations: 164 kB / 0.5784 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009845/0.4447, allocations: 6.214 MB / 0.5844 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0403/0.4851, allocations: 24.29 MB / 0.6082 GB, free: 4.582 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007875/0.493, allocations: 4.793 MB / 0.6129 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003312/0.4963, allocations: 2.127 MB / 0.6149 GB, free: 13.65 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002086/0.4966, allocations: 82.38 kB / 0.615 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/0.4966, allocations: 68.59 kB / 0.6151 GB, free: 13.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 6.211e-06/0.4966, allocations: 1.078 kB / 0.6151 GB, free: 13.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.0114/0.5081, allocations: 6.835 MB / 0.6217 GB, free: 6.609 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002388/0.5083, allocations: 0.5933 MB / 0.6223 GB, free: 5.879 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01063/0.519, allocations: 5.395 MB / 0.6276 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005021/0.5195, allocations: 81.64 kB / 0.6277 GB, free: 420 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003534/0.523, allocations: 3.935 MB / 0.6315 GB, free: 12.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001227/0.5243, allocations: 0.9245 MB / 0.6324 GB, free: 11.53 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0016/0.5259, allocations: 0.5611 MB / 0.633 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.526, allocations: 301.1 kB / 0.6333 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003672/0.5297, allocations: 2.155 MB / 0.6354 GB, free: 8.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/0.534, allocations: 2.968 MB / 0.6383 GB, free: 5.215 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00805/0.542, allocations: 4.991 MB / 0.6431 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.442e-05/0.5421, allocations: 4 kB / 0.6431 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01102/0.5531, allocations: 5.713 MB / 0.6487 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.5532, allocations: 15.94 kB / 0.6487 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/0.5532, allocations: 24.12 kB / 0.6488 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.251e-05/0.5533, allocations: 32 kB / 0.6488 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002813/0.5561, allocations: 0.7098 MB / 0.6495 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.522e-05/0.5562, allocations: 51.78 kB / 0.6495 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003125/0.5593, allocations: 416.9 kB / 0.6499 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003681/0.5597, allocations: 124 kB / 0.65 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00631/0.566, allocations: 3.259 MB / 0.6532 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003613/0.5697, allocations: 2.702 MB / 0.6559 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00627/0.576, allocations: 4.562 MB / 0.6603 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.364e-05/0.576, allocations: 8 kB / 0.6603 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009006/0.585, allocations: 5.206 MB / 0.6654 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.5851, allocations: 16.06 kB / 0.6654 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.442e-05/0.5851, allocations: 23.94 kB / 0.6654 GB, free: 8.375 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.561e-05/0.5852, allocations: 35.94 kB / 0.6655 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/0.5875, allocations: 0.6201 MB / 0.6661 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.262e-05/0.5876, allocations: 43.86 kB / 0.6661 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/0.5903, allocations: 325.8 kB / 0.6664 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002715/0.5906, allocations: 120 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.0008775/0.5915, allocations: 409.9 kB / 0.6669 GB, free: 6.832 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/0.593, allocations: 0.5824 MB / 0.6675 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009298/0.6023, allocations: 5.176 MB / 0.6726 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.675e-05/0.6023, allocations: 11.95 kB / 0.6726 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.6023, allocations: 0 / 0.6726 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/0.6049, allocations: 0.9262 MB / 0.6735 GB, free: 44 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001239/0.6061, allocations: 65.28 kB / 0.6735 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/0.6085, allocations: 211.7 kB / 0.6737 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003574/0.6089, allocations: 165.9 kB / 0.6739 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009945/0.6188, allocations: 5.017 MB / 0.6788 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01335/0.6322, allocations: 8.35 MB / 0.687 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003924/0.6362, allocations: 2.31 MB / 0.6892 GB, free: 15.83 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008063/0.6443, allocations: 3.685 MB / 0.6928 GB, free: 12.16 MB / 0.545 GB Notification: Performance of Backend: time 5.91e-07/0.6443, allocations: 0 / 0.6928 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01179/0.6561, allocations: 5.357 MB / 0.698 GB, free: 6.797 MB / 0.545 GB Notification: Performance of SimCode: time 0.02368/0.6798, allocations: 13.05 MB / 0.7108 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of Templates: time 0.3185/0.9983, allocations: 62.2 MB / 0.7715 GB, free: 186.7 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_7.pipe 2>&1)