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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001406/0.001406, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2974/0.2974, allocations: 28.83 MB / 319.9 MB, free: 6.273 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004969/0.0004969, allocations: 8 kB / 387.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3302, allocations: 57.48 MB / 445.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002486/0.3328, allocations: 2.931 MB / 448.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.3341, allocations: 0.7572 MB / 449 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.3344, allocations: 14.44 kB / 449.1 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.3347, allocations: 127.7 kB / 449.2 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.3349, allocations: 94.77 kB / 449.3 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00055/0.3355, allocations: 269.2 kB / 449.5 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005413/0.3361, allocations: 0.7866 MB / 450.3 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005402/0.3366, allocations: 491.5 kB / 450.8 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.3368, allocations: 248.9 kB / 451 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.337, allocations: 318.9 kB / 451.4 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.3371, allocations: 23.5 kB / 451.4 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.3372, allocations: 42.45 kB / 451.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3374, allocations: 350.2 kB / 451.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.3375, allocations: 229.9 kB / 452 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.338, allocations: 0.8038 MB / 452.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.338, allocations: 0 / 452.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.338, allocations: 0 / 452.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.3381, allocations: 0 / 452.8 MB, free: 28.41 MB / 350.1 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.001446/0.3395, allocations: 1.546 MB / 454.3 MB, free: 27.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3396, allocations: 8.219 kB / 454.3 MB, free: 27.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.3397, allocations: 201.5 kB / 454.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.3403, allocations: 0.6935 MB / 455.2 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.3404, allocations: 79.78 kB / 455.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.575e-05/0.3405, allocations: 100.8 kB / 455.4 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.3419, allocations: 1.169 MB / 456.6 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3419, allocations: 6.562 kB / 456.6 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/0.3419, allocations: 46.97 kB / 456.6 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.342, allocations: 26.25 kB / 456.7 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.3433, allocations: 1.095 MB / 457.8 MB, free: 25.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004863/0.3481, allocations: 3.709 MB / 461.5 MB, free: 23.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.35, allocations: 1.36 MB / 462.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005982/0.3506, allocations: 493.9 kB / 463.3 MB, free: 23.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.111e-05/0.3507, allocations: 25.83 kB / 463.3 MB, free: 23.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006841/0.3514, allocations: 0.5419 MB / 463.9 MB, free: 23.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.745e-06/0.3514, allocations: 0 / 463.9 MB, free: 23.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.00202/0.3534, allocations: 1.567 MB / 465.4 MB, free: 22.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.3535, allocations: 68.58 kB / 465.5 MB, free: 22.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/0.3552, allocations: 1.28 MB / 466.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.3553, allocations: 41.83 kB / 466.8 MB, free: 22.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000548/0.3558, allocations: 0.7594 MB / 467.6 MB, free: 21.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.356, allocations: 246.5 kB / 467.8 MB, free: 21.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/0.356, allocations: 10.75 kB / 467.8 MB, free: 21.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.317e-05/0.3561, allocations: 340.4 kB / 468.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005336/0.3566, allocations: 443.6 kB / 468.6 MB, free: 20.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006192/0.3573, allocations: 0.5446 MB / 469.2 MB, free: 20.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006053/0.3579, allocations: 485.6 kB / 469.6 MB, free: 20.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.3579, allocations: 1.5 kB / 469.6 MB, free: 20.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001484/0.3594, allocations: 1.217 MB / 470.8 MB, free: 20.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3594, allocations: 3.203 kB / 470.8 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3594, allocations: 3.75 kB / 470.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.3595, allocations: 6.219 kB / 470.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.3599, allocations: 143.3 kB / 471 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.36, allocations: 11.2 kB / 471 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.3603, allocations: 57.31 kB / 471.1 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.3603, allocations: 29.31 kB / 471.1 MB, free: 20.14 MB / 350.1 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_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 () * 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.0006521/0.361, allocations: 388.1 kB / 471.5 MB, free: 19.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.3611, allocations: 141.7 kB / 471.6 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.3628, allocations: 1.239 MB / 472.8 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.3628, allocations: 7.094 kB / 472.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3629, allocations: 0 / 472.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.3629, allocations: 5.109 kB / 472.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.3657, allocations: 2.415 MB / 475.3 MB, free: 18.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3657, allocations: 2.109 kB / 475.3 MB, free: 18.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.3662, allocations: 118.6 kB / 475.4 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.3662, allocations: 6.312 kB / 475.4 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.3663, allocations: 15.27 kB / 475.4 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.3663, allocations: 3.906 kB / 475.4 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3663, allocations: 0 / 475.4 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002108/0.3684, allocations: 1.926 MB / 477.3 MB, free: 17.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/0.3686, allocations: 247.8 kB / 477.6 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.17e-05/0.3687, allocations: 17.03 kB / 477.6 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.3689, allocations: 12.98 kB / 477.6 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.693e-05/0.369, allocations: 43.94 kB / 477.7 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.3691, allocations: 21.31 kB / 477.7 MB, free: 17.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001011/0.3701, allocations: 0.8843 MB / 478.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.3701, allocations: 0 / 478.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005565/0.3707, allocations: 218.8 kB / 478.8 MB, free: 16.5 MB / 350.1 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.0001491/0.3708, allocations: 113.6 kB / 478.9 MB, free: 16.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3719, allocations: 1.021 MB / 479.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3719, allocations: 0 / 479.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005042/0.3724, allocations: 0.5238 MB / 480.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005698/0.373, allocations: 95.44 kB / 480.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.3765, allocations: 3.255 MB / 483.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007253/0.3773, allocations: 1.319 MB / 485.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002527/0.3776, allocations: 69.39 kB / 485.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.3777, allocations: 45.17 kB / 485.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3777, allocations: 4 kB / 485.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of Templates: time 0.009721/0.3874, allocations: 4.853 MB / 490.1 MB, free: 6.094 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: