Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World3.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 109.6 kB / 16.42 MB, free: 6.461 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.001678/0.001678, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.455/1.455, allocations: 222.9 MB / 241 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.1967/0.1967, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 59.91 kB / 445 MB, free: 2.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1214, allocations: 56.42 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_3): time 0.02089/0.1423, allocations: 19.13 MB / 0.5084 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2806/0.423, allocations: 7.242 MB / 0.5155 GB, free: 6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006555/0.4296, allocations: 109.2 kB / 0.5156 GB, free: 6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003621/0.4332, allocations: 0.964 MB / 0.5165 GB, free: 6 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006237/0.4395, allocations: 0.9203 MB / 0.5174 GB, free: 6 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006822/0.4464, allocations: 3.628 MB / 0.5209 GB, free: 5.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01254/0.4589, allocations: 7.509 MB / 0.5283 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007131/0.4661, allocations: 4.439 MB / 0.5326 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004054/0.4702, allocations: 2.605 MB / 0.5352 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006838/0.477, allocations: 3.056 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004877/0.482, allocations: 0.8813 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004691/0.4867, allocations: 0.9194 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004817/0.4915, allocations: 2.396 MB / 0.5422 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006182/0.4977, allocations: 4.038 MB / 0.5462 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01354/0.5113, allocations: 10.17 MB / 0.5561 GB, free: 4.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.5113, allocations: 1.25 kB / 0.5561 GB, free: 4.375 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5113, allocations: 0 / 0.5561 GB, free: 4.375 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005574/0.5119, allocations: 0 / 0.5561 GB, free: 4.375 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.01924/0.5312, allocations: 8.497 MB / 0.5644 GB, free: 14.26 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.5312, allocations: 8.969 kB / 0.5644 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001806/0.533, allocations: 0.9951 MB / 0.5654 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006658/0.5397, allocations: 4.308 MB / 0.5696 GB, free: 10.69 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004391/0.5402, allocations: 0.5177 MB / 0.5701 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008852/0.5411, allocations: 0.657 MB / 0.5707 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01501/0.5561, allocations: 7.479 MB / 0.5781 GB, free: 3.602 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.5562, allocations: 10.38 kB / 0.5781 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005492/0.5568, allocations: 277.7 kB / 0.5783 GB, free: 3.328 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.5569, allocations: 164 kB / 0.5785 GB, free: 3.168 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/0.5696, allocations: 6.218 MB / 0.5846 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.6117, allocations: 24.29 MB / 0.6083 GB, free: 4.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008077/0.6198, allocations: 4.799 MB / 0.613 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003468/0.6233, allocations: 2.127 MB / 0.615 GB, free: 13.64 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001911/0.6235, allocations: 82.38 kB / 0.6151 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.298e-05/0.6236, allocations: 64.59 kB / 0.6152 GB, free: 13.49 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 4.829e-06/0.6236, allocations: 0 / 0.6152 GB, free: 13.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01285/0.6364, allocations: 6.835 MB / 0.6219 GB, free: 6.598 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003529/0.6368, allocations: 0.5933 MB / 0.6224 GB, free: 5.867 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009997/0.6468, allocations: 5.395 MB / 0.6277 GB, free: 496 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000587/0.6474, allocations: 77.7 kB / 0.6278 GB, free: 412 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00311/0.6506, allocations: 3.945 MB / 0.6316 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001221/0.6518, allocations: 0.9215 MB / 0.6325 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009585/0.6528, allocations: 0.5611 MB / 0.6331 GB, free: 10.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.6529, allocations: 301.1 kB / 0.6334 GB, free: 10.65 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003664/0.6565, allocations: 2.159 MB / 0.6355 GB, free: 8.484 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004337/0.6609, allocations: 2.967 MB / 0.6384 GB, free: 5.199 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007983/0.6689, allocations: 4.991 MB / 0.6432 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.669e-05/0.6689, allocations: 7.938 kB / 0.6433 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01016/0.6791, allocations: 5.702 MB / 0.6488 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.6791, allocations: 15.94 kB / 0.6488 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.625e-05/0.6792, allocations: 20.09 kB / 0.6489 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-05/0.6792, allocations: 36 kB / 0.6489 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/0.6819, allocations: 0.7137 MB / 0.6496 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.958e-05/0.682, allocations: 43.86 kB / 0.6496 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002971/0.685, allocations: 416.9 kB / 0.65 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002029/0.6852, allocations: 124 kB / 0.6501 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005687/0.6909, allocations: 3.255 MB / 0.6533 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00348/0.6944, allocations: 2.709 MB / 0.656 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006398/0.7008, allocations: 4.56 MB / 0.6604 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.343e-05/0.7008, allocations: 8 kB / 0.6604 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.009287/0.7101, allocations: 5.21 MB / 0.6655 GB, free: 8.41 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.7102, allocations: 16.03 kB / 0.6655 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/0.7102, allocations: 23.94 kB / 0.6656 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.197e-05/0.7103, allocations: 32 kB / 0.6656 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/0.7126, allocations: 0.6201 MB / 0.6662 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-05/0.7126, allocations: 43.86 kB / 0.6662 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003122/0.7157, allocations: 325.8 kB / 0.6665 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002192/0.716, allocations: 120 kB / 0.6667 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.0008768/0.7169, allocations: 419.1 kB / 0.6671 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001692/0.7186, allocations: 0.5824 MB / 0.6676 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009482/0.728, allocations: 5.169 MB / 0.6727 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.138e-05/0.7281, allocations: 15.95 kB / 0.6727 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.7281, allocations: 0 / 0.6727 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003791/0.7319, allocations: 0.9223 MB / 0.6736 GB, free: 40 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/0.7336, allocations: 62.66 kB / 0.6737 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003226/0.7368, allocations: 207.7 kB / 0.6738 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005863/0.7374, allocations: 177.8 kB / 0.674 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01172/0.7491, allocations: 5.016 MB / 0.6789 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01427/0.7635, allocations: 8.35 MB / 0.6871 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004015/0.7675, allocations: 2.308 MB / 0.6893 GB, free: 15.83 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008826/0.7764, allocations: 3.685 MB / 0.6929 GB, free: 12.16 MB / 0.545 GB Notification: Performance of Backend: time 8.62e-07/0.7764, allocations: 0 / 0.6929 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0137/0.7901, allocations: 5.359 MB / 0.6982 GB, free: 6.797 MB / 0.545 GB Notification: Performance of SimCode: time 0.02672/0.8169, allocations: 13.06 MB / 0.7109 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of Templates: time 0.3677/1.185, allocations: 62.19 MB / 0.7716 GB, free: 186.6 MB / 0.5762 GB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Scenario_3.pipe 2>&1)