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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.0008607/0.0008607, allocations: 175.7 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.138/1.138, allocations: 205.4 MB / 222.3 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007065/0.0007065, allocations: 97.42 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1435/0.1435, allocations: 28.83 MB / 347.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.0003159, allocations: 12 kB / 413 MB, free: 47.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06694/0.06728, allocations: 54.64 MB / 467.7 MB, free: 8.863 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2232/0.2905, allocations: 80.12 MB / 0.535 GB, free: 6.352 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001621/0.2907, allocations: 60.5 kB / 0.535 GB, free: 6.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03366/0.3244, allocations: 14.46 MB / 0.5491 GB, free: 7.793 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3244, allocations: 4 kB / 0.5491 GB, free: 7.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.538e-05/0.3245, allocations: 32 kB / 0.5492 GB, free: 7.758 MB / 378.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.001975/0.3264, allocations: 1.6 MB / 0.5507 GB, free: 6.094 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.3265, allocations: 12.03 kB / 0.5507 GB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.3267, allocations: 198.4 kB / 0.5509 GB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009528/0.3277, allocations: 0.8332 MB / 0.5517 GB, free: 5.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.764e-05/0.3278, allocations: 74.47 kB / 0.5518 GB, free: 4.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.3279, allocations: 104.4 kB / 0.5519 GB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.3297, allocations: 1.302 MB / 0.5532 GB, free: 3.457 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3297, allocations: 192 / 0.5532 GB, free: 3.457 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-05/0.3298, allocations: 43.94 kB / 0.5532 GB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.3298, allocations: 32 kB / 0.5533 GB, free: 3.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.3316, allocations: 1.265 MB / 0.5545 GB, free: 2.109 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005023/0.3367, allocations: 3.873 MB / 0.5583 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002142/0.3388, allocations: 1.599 MB / 0.5598 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007164/0.3395, allocations: 0.5609 MB / 0.5604 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.585e-05/0.3396, allocations: 32.84 kB / 0.5604 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008675/0.3405, allocations: 0.6678 MB / 0.5611 GB, free: 11.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 2.134e-06/0.3405, allocations: 0 / 0.5611 GB, free: 11.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.002414/0.3429, allocations: 1.839 MB / 0.5629 GB, free: 9.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.343, allocations: 60.06 kB / 0.5629 GB, free: 9.328 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.3443, allocations: 1.277 MB / 0.5642 GB, free: 8.043 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.924e-05/0.3444, allocations: 41.7 kB / 0.5642 GB, free: 7.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005127/0.3449, allocations: 0.7756 MB / 0.565 GB, free: 7.211 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.3451, allocations: 244.4 kB / 0.5652 GB, free: 6.969 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.3452, allocations: 12 kB / 0.5652 GB, free: 6.957 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3453, allocations: 333.9 kB / 0.5655 GB, free: 6.625 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006954/0.346, allocations: 0.5132 MB / 0.566 GB, free: 6.109 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007554/0.3467, allocations: 0.638 MB / 0.5667 GB, free: 5.434 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.3483, allocations: 1.194 MB / 0.5678 GB, free: 4.203 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3484, allocations: 7.938 kB / 0.5678 GB, free: 4.195 MB / 394.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001803/0.3502, allocations: 1.397 MB / 0.5692 GB, free: 2.789 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3502, allocations: 8 kB / 0.5692 GB, free: 2.781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3502, allocations: 4 kB / 0.5692 GB, free: 2.777 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3502, allocations: 4.344 kB / 0.5692 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.3507, allocations: 163.8 kB / 0.5694 GB, free: 2.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.3508, allocations: 19.86 kB / 0.5694 GB, free: 2.594 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.351, allocations: 55.38 kB / 0.5694 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.3511, allocations: 80.03 kB / 0.5695 GB, free: 2.461 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "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_QL,$PRE.min_dPop,min_dPop,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 () * Number of clocked 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.0004972/0.3516, allocations: 382.3 kB / 0.5699 GB, free: 2.078 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.3518, allocations: 146.1 kB / 0.57 GB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.3542, allocations: 1.644 MB / 0.5716 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.3542, allocations: 8 kB / 0.5716 GB, free: 272 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3542, allocations: 0 / 0.5716 GB, free: 272 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3542, allocations: 3.984 kB / 0.5716 GB, free: 268 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.3573, allocations: 2.619 MB / 0.5742 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3573, allocations: 4 kB / 0.5742 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004948/0.3578, allocations: 135.9 kB / 0.5743 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.3578, allocations: 4 kB / 0.5743 GB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.997e-05/0.3579, allocations: 27.98 kB / 0.5744 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3579, allocations: 0 / 0.5744 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3579, allocations: 7.938 kB / 0.5744 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.3606, allocations: 2.264 MB / 0.5766 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/0.361, allocations: 331.1 kB / 0.5769 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3611, allocations: 12 kB / 0.5769 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.3613, allocations: 12 kB / 0.5769 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.3615, allocations: 64.52 kB / 0.577 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.079e-05/0.3616, allocations: 67.92 kB / 0.577 GB, free: 10.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009225/0.3625, allocations: 0.8929 MB / 0.5779 GB, free: 9.734 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3625, allocations: 0 / 0.5779 GB, free: 9.734 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004856/0.363, allocations: 214.9 kB / 0.5781 GB, free: 9.523 MB / 410.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) * Number of clocked states: 0 () * 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.0001597/0.3631, allocations: 131.1 kB / 0.5782 GB, free: 9.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.3643, allocations: 1.017 MB / 0.5792 GB, free: 8.371 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3643, allocations: 0 / 0.5792 GB, free: 8.371 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005188/0.3648, allocations: 0.5191 MB / 0.5797 GB, free: 7.852 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.3654, allocations: 97.27 kB / 0.5798 GB, free: 7.754 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003339/0.3687, allocations: 3.256 MB / 0.583 GB, free: 4.461 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007804/0.3695, allocations: 1.307 MB / 0.5843 GB, free: 3.125 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.3697, allocations: 80.53 kB / 0.5844 GB, free: 3.043 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.3699, allocations: 43.44 kB / 0.5844 GB, free: 3 MB / 410.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3699, allocations: 0 / 0.5844 GB, free: 3 MB / 410.7 MB Notification: Performance of Templates: time 0.01003/0.3799, allocations: 4.833 MB / 0.5891 GB, free: 14.16 MB / 426.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)