Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009994/0.0009994, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.5 MB / 229.6 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009586/0.0009586, allocations: 95.36 kB / 280.5 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1519/0.1519, allocations: 28.83 MB / 360.1 MB, free: 2.211 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.399e-05/1.401e-05, allocations: 7.984 kB / 423.8 MB, free: 32.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09789, allocations: 57.49 MB / 481.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3705/0.4684, allocations: 79.55 MB / 0.5477 GB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000153/0.4686, allocations: 63.36 kB / 0.5477 GB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02607/0.4947, allocations: 12.21 MB / 0.5597 GB, free: 7.312 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4947, allocations: 0 / 0.5597 GB, free: 7.312 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.4948, allocations: 27.03 kB / 0.5597 GB, free: 7.312 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001613/0.4964, allocations: 1.356 MB / 0.561 GB, free: 6.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4964, allocations: 11.58 kB / 0.561 GB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.4967, allocations: 194.3 kB / 0.5612 GB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.4971, allocations: 0.503 MB / 0.5617 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.4972, allocations: 33.62 kB / 0.5617 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.4973, allocations: 53.22 kB / 0.5618 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00155/0.4989, allocations: 1.27 MB / 0.563 GB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.5002, allocations: 0.9918 MB / 0.564 GB, free: 5.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.5002, allocations: 3.938 kB / 0.564 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.508e-05/0.5003, allocations: 0 / 0.564 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.517e-05/0.5003, allocations: 55.22 kB / 0.564 GB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003589/0.5039, allocations: 2.859 MB / 0.5668 GB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.505, allocations: 1.079 MB / 0.5679 GB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005008/0.5056, allocations: 0.5253 MB / 0.5684 GB, free: 3.789 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.4e-05/0.5057, allocations: 34.73 kB / 0.5684 GB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.5057, allocations: 33.81 kB / 0.5685 GB, free: 3.742 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.264e-06/0.5057, allocations: 7.906 kB / 0.5685 GB, free: 3.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.001578/0.5073, allocations: 1.23 MB / 0.5697 GB, free: 3.402 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.5073, allocations: 59.66 kB / 0.5697 GB, free: 3.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009338/0.5082, allocations: 0.9832 MB / 0.5707 GB, free: 3.066 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.5083, allocations: 25.7 kB / 0.5707 GB, free: 3.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003623/0.5087, allocations: 0.7675 MB / 0.5715 GB, free: 2.609 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.5088, allocations: 219 kB / 0.5717 GB, free: 2.418 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.5089, allocations: 0.75 kB / 0.5717 GB, free: 2.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.734e-05/0.5089, allocations: 348 kB / 0.572 GB, free: 2.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005039/0.5094, allocations: 0.4895 MB / 0.5725 GB, free: 1.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.51, allocations: 0.6716 MB / 0.5731 GB, free: 1.117 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.5109, allocations: 0.587 MB / 0.5737 GB, free: 0.668 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5109, allocations: 4 kB / 0.5737 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001843/0.5128, allocations: 1.394 MB / 0.5751 GB, free: 15.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.5128, allocations: 8 kB / 0.5751 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.5128, allocations: 11.94 kB / 0.5751 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.5129, allocations: 8 kB / 0.5751 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.5136, allocations: 215.7 kB / 0.5753 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.5136, allocations: 11.94 kB / 0.5753 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003427/0.5139, allocations: 67.27 kB / 0.5754 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.5141, allocations: 90.39 kB / 0.5755 GB, free: 15.12 MB / 378.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002113/0.5143, allocations: 141.8 kB / 0.5756 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.5144, allocations: 138.2 kB / 0.5757 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002617/0.5171, allocations: 1.559 MB / 0.5773 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.5171, allocations: 8 kB / 0.5773 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5171, allocations: 0 / 0.5773 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.5171, allocations: 3.984 kB / 0.5773 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.5202, allocations: 2.353 MB / 0.5796 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.5202, allocations: 0 / 0.5796 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006254/0.5208, allocations: 155.2 kB / 0.5797 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.5209, allocations: 4 kB / 0.5797 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.107e-05/0.5209, allocations: 23.23 kB / 0.5797 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.5209, allocations: 0 / 0.5797 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.5209, allocations: 0 / 0.5797 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.5236, allocations: 2.157 MB / 0.5818 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.5238, allocations: 187.3 kB / 0.582 GB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.5239, allocations: 0 / 0.582 GB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.5242, allocations: 23.97 kB / 0.582 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.5243, allocations: 59.75 kB / 0.5821 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.5244, allocations: 74.66 kB / 0.5822 GB, free: 9.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008348/0.5253, allocations: 0.7614 MB / 0.5829 GB, free: 8.984 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5253, allocations: 0 / 0.5829 GB, free: 8.984 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006215/0.5259, allocations: 194.9 kB / 0.5831 GB, free: 8.793 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001766/0.5261, allocations: 107.1 kB / 0.5832 GB, free: 8.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.5271, allocations: 0.9821 MB / 0.5842 GB, free: 7.891 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5272, allocations: 4 kB / 0.5842 GB, free: 7.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00048/0.5276, allocations: 0.4894 MB / 0.5846 GB, free: 7.488 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.528, allocations: 51.81 kB / 0.5847 GB, free: 7.465 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.531, allocations: 2.102 MB / 0.5868 GB, free: 5.535 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008855/0.5319, allocations: 1.324 MB / 0.588 GB, free: 4.227 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003829/0.5322, allocations: 120.3 kB / 0.5882 GB, free: 4.109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.5324, allocations: 51.38 kB / 0.5882 GB, free: 4.062 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5324, allocations: 0 / 0.5882 GB, free: 4.062 MB / 378.7 MB Notification: Performance of Templates: time 0.01012/0.5425, allocations: 4.313 MB / 0.5924 GB, free: 15.79 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)