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.00119/0.00119, allocations: 110.7 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.001124/0.001124, 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.44/1.44, 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.2208/0.2208, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 55.91 kB / 445 MB, free: 2.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1273, allocations: 56.42 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Scenario_1): time 0.02367/0.151, allocations: 19.13 MB / 0.5084 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3221/0.4731, allocations: 7.241 MB / 0.5155 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005576/0.4788, allocations: 106.2 kB / 0.5156 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004012/0.4828, allocations: 0.9702 MB / 0.5165 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006669/0.4895, allocations: 0.9201 MB / 0.5174 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01035/0.4999, allocations: 3.624 MB / 0.5209 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01989/0.5198, allocations: 7.519 MB / 0.5283 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01014/0.53, allocations: 4.428 MB / 0.5326 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005598/0.5357, allocations: 2.607 MB / 0.5352 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009263/0.545, allocations: 3.053 MB / 0.5381 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005887/0.5509, allocations: 0.881 MB / 0.539 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003998/0.555, allocations: 0.9235 MB / 0.5399 GB, free: 0 / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004295/0.5593, allocations: 2.392 MB / 0.5422 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005143/0.5645, allocations: 4.031 MB / 0.5462 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.5783, allocations: 10.18 MB / 0.5561 GB, free: 4.363 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.5784, allocations: 0 / 0.5561 GB, free: 4.363 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5784, allocations: 0 / 0.5561 GB, free: 4.363 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005089/0.5789, allocations: 1.281 kB / 0.5561 GB, free: 4.363 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.01993/0.5989, allocations: 8.491 MB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.5989, allocations: 8.812 kB / 0.5644 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002081/0.601, allocations: 0.9951 MB / 0.5654 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006583/0.6076, allocations: 4.307 MB / 0.5696 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/0.6081, allocations: 0.5185 MB / 0.5701 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007552/0.6089, allocations: 0.6508 MB / 0.5707 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/0.6231, allocations: 7.483 MB / 0.578 GB, free: 3.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.324e-05/0.6232, allocations: 10.19 kB / 0.5781 GB, free: 3.586 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005458/0.6238, allocations: 276 kB / 0.5783 GB, free: 3.316 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.6239, allocations: 166.4 kB / 0.5785 GB, free: 3.156 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/0.6359, allocations: 6.226 MB / 0.5846 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04483/0.6808, allocations: 24.28 MB / 0.6083 GB, free: 4.539 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009218/0.69, allocations: 4.794 MB / 0.613 GB, free: 15.74 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/0.6938, allocations: 2.127 MB / 0.615 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002357/0.6941, allocations: 78.55 kB / 0.6151 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.189e-05/0.6942, allocations: 68.59 kB / 0.6152 GB, free: 13.46 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 5.891e-06/0.6942, allocations: 0 / 0.6152 GB, free: 13.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.01399/0.7082, allocations: 6.835 MB / 0.6218 GB, free: 6.566 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003709/0.7086, allocations: 0.5933 MB / 0.6224 GB, free: 5.836 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01479/0.7234, allocations: 5.395 MB / 0.6277 GB, free: 464 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008855/0.7243, allocations: 85.64 kB / 0.6278 GB, free: 372 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004334/0.7287, allocations: 3.938 MB / 0.6316 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001823/0.7306, allocations: 0.9244 MB / 0.6325 GB, free: 11.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001071/0.7316, allocations: 0.5572 MB / 0.6331 GB, free: 10.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.7318, allocations: 301.1 kB / 0.6334 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003749/0.7355, allocations: 2.155 MB / 0.6355 GB, free: 8.457 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004408/0.7399, allocations: 2.968 MB / 0.6384 GB, free: 5.172 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007787/0.7477, allocations: 4.999 MB / 0.6432 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/0.7478, allocations: 8 kB / 0.6433 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=388) (initialization): time 0.01044/0.7582, allocations: 5.701 MB / 0.6488 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.7583, allocations: 16.94 kB / 0.6488 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.7583, allocations: 20 kB / 0.6489 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.198e-05/0.7584, allocations: 36 kB / 0.6489 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/0.7612, allocations: 0.7176 MB / 0.6496 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.111e-05/0.7613, allocations: 47.86 kB / 0.6496 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.7645, allocations: 408.9 kB / 0.65 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002888/0.7648, allocations: 128 kB / 0.6501 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006225/0.7711, allocations: 3.255 MB / 0.6533 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003571/0.7747, allocations: 2.702 MB / 0.656 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006585/0.7813, allocations: 4.558 MB / 0.6604 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.515e-05/0.7813, allocations: 8 kB / 0.6604 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=388) (initialization_lambda0): time 0.01027/0.7916, allocations: 5.214 MB / 0.6655 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.7917, allocations: 12.19 kB / 0.6655 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.964e-05/0.7917, allocations: 31.92 kB / 0.6656 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.034e-05/0.7918, allocations: 32 kB / 0.6656 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/0.7944, allocations: 0.6201 MB / 0.6662 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001003/0.7945, allocations: 47.86 kB / 0.6662 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003881/0.7984, allocations: 329.8 kB / 0.6666 GB, free: 7.305 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003363/0.7987, allocations: 116 kB / 0.6667 GB, free: 7.191 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.001007/0.7998, allocations: 409.9 kB / 0.6671 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002339/0.8021, allocations: 0.5784 MB / 0.6676 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/0.813, allocations: 5.176 MB / 0.6727 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-05/0.813, allocations: 11.95 kB / 0.6727 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.8131, allocations: 0 / 0.6727 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002886/0.8159, allocations: 0.9223 MB / 0.6736 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/0.8172, allocations: 64.05 kB / 0.6736 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002116/0.8193, allocations: 207.7 kB / 0.6738 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.8196, allocations: 169.9 kB / 0.674 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00962/0.8293, allocations: 5.015 MB / 0.6789 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01368/0.843, allocations: 8.35 MB / 0.6871 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003835/0.8468, allocations: 2.308 MB / 0.6893 GB, free: 15.78 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009005/0.8559, allocations: 3.685 MB / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of Backend: time 8.42e-07/0.8559, allocations: 0 / 0.6929 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01336/0.8693, allocations: 5.36 MB / 0.6981 GB, free: 6.75 MB / 0.545 GB Notification: Performance of SimCode: time 0.02307/0.8924, allocations: 13.06 MB / 0.7109 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of Templates: time 0.4242/1.317, allocations: 62.19 MB / 0.7716 GB, free: 186.7 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)