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.001444/0.001444, 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.001541/0.001541, 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2228/0.2228, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 63.89 kB / 445 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1121, allocations: 56.43 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_7): time 0.02007/0.1322, allocations: 19.12 MB / 0.5084 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2521/0.3843, allocations: 7.241 MB / 0.5155 GB, free: 5.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004648/0.389, allocations: 111.7 kB / 0.5156 GB, free: 5.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004812/0.3938, allocations: 0.9677 MB / 0.5165 GB, free: 5.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006119/0.4, allocations: 0.9238 MB / 0.5174 GB, free: 5.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0091/0.4091, allocations: 3.622 MB / 0.5209 GB, free: 5.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0144/0.4235, allocations: 7.513 MB / 0.5283 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01047/0.4341, allocations: 4.433 MB / 0.5326 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00513/0.4392, allocations: 2.609 MB / 0.5352 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006712/0.446, allocations: 3.054 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003364/0.4493, allocations: 0.8814 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002683/0.452, allocations: 0.9246 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002899/0.455, allocations: 2.391 MB / 0.5422 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004107/0.4591, allocations: 4.034 MB / 0.5462 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01169/0.4708, allocations: 10.18 MB / 0.5561 GB, free: 4.332 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4708, allocations: 0 / 0.5561 GB, free: 4.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4708, allocations: 0.9375 kB / 0.5561 GB, free: 4.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005043/0.4714, allocations: 0 / 0.5561 GB, free: 4.332 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.01799/0.4893, allocations: 8.494 MB / 0.5644 GB, free: 14.21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4894, allocations: 8.719 kB / 0.5644 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001994/0.4914, allocations: 0.9859 MB / 0.5654 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00694/0.4984, allocations: 4.313 MB / 0.5696 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005038/0.4989, allocations: 0.5257 MB / 0.5701 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008434/0.4997, allocations: 0.6469 MB / 0.5707 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01611/0.5159, allocations: 7.487 MB / 0.5781 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002125/0.5161, allocations: 14.09 kB / 0.5781 GB, free: 3.543 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009418/0.5171, allocations: 272 kB / 0.5783 GB, free: 3.277 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.5172, allocations: 164 kB / 0.5785 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/0.5293, allocations: 6.218 MB / 0.5846 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04118/0.5705, allocations: 24.29 MB / 0.6083 GB, free: 4.527 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008833/0.5794, allocations: 4.804 MB / 0.613 GB, free: 15.72 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00405/0.5835, allocations: 2.127 MB / 0.615 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003346/0.5839, allocations: 79.41 kB / 0.6151 GB, free: 13.52 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/0.584, allocations: 64.59 kB / 0.6152 GB, free: 13.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 9.217e-06/0.584, allocations: 8 kB / 0.6152 GB, free: 13.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01296/0.597, allocations: 6.831 MB / 0.6219 GB, free: 6.547 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002659/0.5973, allocations: 0.5894 MB / 0.6224 GB, free: 5.82 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01269/0.61, allocations: 5.399 MB / 0.6277 GB, free: 444 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007442/0.6107, allocations: 77.7 kB / 0.6278 GB, free: 360 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004041/0.6148, allocations: 3.935 MB / 0.6316 GB, free: 12.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001633/0.6165, allocations: 0.9246 MB / 0.6325 GB, free: 11.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001975/0.6184, allocations: 0.5572 MB / 0.6331 GB, free: 10.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.6186, allocations: 309.1 kB / 0.6334 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004098/0.6227, allocations: 2.155 MB / 0.6355 GB, free: 8.438 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00468/0.6274, allocations: 2.967 MB / 0.6384 GB, free: 5.152 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008343/0.6357, allocations: 4.992 MB / 0.6432 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.211e-05/0.6358, allocations: 8 kB / 0.6433 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01136/0.6472, allocations: 5.705 MB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/0.6472, allocations: 19.94 kB / 0.6488 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/0.6473, allocations: 20 kB / 0.6489 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.84e-05/0.6474, allocations: 36 kB / 0.6489 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002848/0.6502, allocations: 0.7099 MB / 0.6496 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.007e-05/0.6503, allocations: 43.86 kB / 0.6496 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003275/0.6536, allocations: 412.9 kB / 0.65 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002989/0.6539, allocations: 124 kB / 0.6501 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006433/0.6603, allocations: 3.259 MB / 0.6533 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003734/0.6641, allocations: 2.71 MB / 0.656 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006368/0.6705, allocations: 4.555 MB / 0.6604 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.959e-05/0.6705, allocations: 4 kB / 0.6604 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009436/0.68, allocations: 5.214 MB / 0.6655 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.68, allocations: 18.5 kB / 0.6655 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/0.6801, allocations: 27.86 kB / 0.6656 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.597e-05/0.6801, allocations: 36 kB / 0.6656 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002468/0.6826, allocations: 0.6162 MB / 0.6662 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.826e-05/0.6827, allocations: 52.08 kB / 0.6662 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/0.6858, allocations: 321.8 kB / 0.6666 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/0.6861, allocations: 120 kB / 0.6667 GB, free: 7.18 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.001041/0.6871, allocations: 417.4 kB / 0.6671 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001763/0.6889, allocations: 0.5746 MB / 0.6676 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/0.6993, allocations: 5.169 MB / 0.6727 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.441e-05/0.6994, allocations: 15.94 kB / 0.6727 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.6994, allocations: 0 / 0.6727 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002799/0.7022, allocations: 0.9271 MB / 0.6736 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/0.7035, allocations: 63.94 kB / 0.6737 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002563/0.7061, allocations: 203.8 kB / 0.6738 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/0.7065, allocations: 173.9 kB / 0.674 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0111/0.7176, allocations: 5.017 MB / 0.6789 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01519/0.7328, allocations: 8.35 MB / 0.6871 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004444/0.7373, allocations: 2.304 MB / 0.6893 GB, free: 15.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009064/0.7464, allocations: 3.685 MB / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of Backend: time 9.32e-07/0.7464, allocations: 0 / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01407/0.7605, allocations: 5.357 MB / 0.6981 GB, free: 6.742 MB / 0.545 GB Notification: Performance of SimCode: time 0.02744/0.788, allocations: 13.06 MB / 0.7109 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of Templates: time 0.3842/1.172, allocations: 62.2 MB / 0.7716 GB, free: 186.6 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)