Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009586/0.0009586, allocations: 180.9 kB / 7.651 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.294/1.294, 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.0009864/0.0009864, allocations: 98.91 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1512/0.1512, allocations: 28.84 MB / 360.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.274e-05/1.276e-05, allocations: 4 kB / 423.8 MB, free: 32.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 57.48 MB / 481.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.4638, allocations: 80.19 MB / 0.5483 GB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.464, allocations: 62.98 kB / 0.5483 GB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03102/0.495, allocations: 14.33 MB / 0.5623 GB, free: 6.246 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4951, allocations: 0 / 0.5623 GB, free: 6.246 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.836e-05/0.4952, allocations: 38 kB / 0.5624 GB, free: 6.242 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002092/0.4973, allocations: 1.391 MB / 0.5637 GB, free: 5.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.4973, allocations: 15.17 kB / 0.5637 GB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003625/0.4977, allocations: 197 kB / 0.5639 GB, free: 5.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.4987, allocations: 0.7645 MB / 0.5647 GB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/0.4988, allocations: 34.44 kB / 0.5647 GB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.4989, allocations: 60.41 kB / 0.5648 GB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001583/0.5005, allocations: 1.181 MB / 0.5659 GB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.5021, allocations: 1.121 MB / 0.567 GB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.5021, allocations: 0 / 0.567 GB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.5022, allocations: 0 / 0.567 GB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.5022, allocations: 30.78 kB / 0.567 GB, free: 4.047 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004591/0.5068, allocations: 3.683 MB / 0.5706 GB, free: 2.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/0.5085, allocations: 1.553 MB / 0.5722 GB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005662/0.5091, allocations: 0.5386 MB / 0.5727 GB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.602e-05/0.5092, allocations: 31.41 kB / 0.5727 GB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007297/0.51, allocations: 0.6382 MB / 0.5733 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 2.855e-06/0.51, allocations: 0 / 0.5733 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.00181/0.5118, allocations: 1.29 MB / 0.5746 GB, free: 15.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.5119, allocations: 60.19 kB / 0.5747 GB, free: 15.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.5133, allocations: 1.007 MB / 0.5756 GB, free: 15.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.1e-05/0.5134, allocations: 25.7 kB / 0.5757 GB, free: 15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005735/0.5139, allocations: 0.7567 MB / 0.5764 GB, free: 14.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.5142, allocations: 240.2 kB / 0.5766 GB, free: 14.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.5142, allocations: 0 / 0.5766 GB, free: 14.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.5144, allocations: 328.9 kB / 0.5769 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006341/0.515, allocations: 0.4952 MB / 0.5774 GB, free: 13.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/0.5157, allocations: 0.6094 MB / 0.578 GB, free: 13.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009829/0.5167, allocations: 0.551 MB / 0.5786 GB, free: 12.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5167, allocations: 0 / 0.5786 GB, free: 12.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002038/0.5187, allocations: 1.361 MB / 0.5799 GB, free: 11.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.5188, allocations: 11.95 kB / 0.5799 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.5188, allocations: 0 / 0.5799 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/0.5188, allocations: 8 kB / 0.5799 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006178/0.5195, allocations: 159 kB / 0.5801 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.5195, allocations: 11.94 kB / 0.5801 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.5198, allocations: 35.44 kB / 0.5801 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.52, allocations: 86.75 kB / 0.5802 GB, free: 11.39 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 89 * 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.0002471/0.5202, allocations: 125.7 kB / 0.5803 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.5205, allocations: 138.2 kB / 0.5804 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002905/0.5234, allocations: 1.611 MB / 0.582 GB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.5234, allocations: 12 kB / 0.582 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5234, allocations: 0 / 0.582 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5234, allocations: 3.984 kB / 0.582 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.5272, allocations: 2.433 MB / 0.5844 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.5272, allocations: 4 kB / 0.5844 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005696/0.5278, allocations: 143.7 kB / 0.5846 GB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.53e-05/0.5278, allocations: 3.953 kB / 0.5846 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.172e-05/0.5279, allocations: 22.86 kB / 0.5846 GB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.5279, allocations: 4 kB / 0.5846 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5279, allocations: 4 kB / 0.5846 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003007/0.5309, allocations: 2.216 MB / 0.5867 GB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004789/0.5314, allocations: 333.6 kB / 0.5871 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.5316, allocations: 7.953 kB / 0.5871 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.5318, allocations: 0 / 0.5871 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.532, allocations: 52.47 kB / 0.5871 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5321, allocations: 72.41 kB / 0.5872 GB, free: 5.641 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.5331, allocations: 0.7881 MB / 0.588 GB, free: 5.051 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5331, allocations: 0 / 0.588 GB, free: 5.051 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000636/0.5338, allocations: 194.5 kB / 0.5881 GB, free: 4.863 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * Number of discrete variables: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001984/0.534, allocations: 120 kB / 0.5883 GB, free: 4.742 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.5351, allocations: 0.9626 MB / 0.5892 GB, free: 3.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5351, allocations: 0 / 0.5892 GB, free: 3.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004817/0.5356, allocations: 0.5014 MB / 0.5897 GB, free: 3.578 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.536, allocations: 72.19 kB / 0.5898 GB, free: 3.535 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.5391, allocations: 2.126 MB / 0.5918 GB, free: 1.594 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009206/0.5401, allocations: 1.345 MB / 0.5932 GB, free: 264 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.5403, allocations: 72.41 kB / 0.5932 GB, free: 192 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.5404, allocations: 50.73 kB / 0.5933 GB, free: 144 kB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5404, allocations: 0 / 0.5933 GB, free: 144 kB / 378.7 MB Notification: Performance of Templates: time 0.01056/0.551, allocations: 4.491 MB / 0.5977 GB, free: 11.69 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)