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.001173/0.001174, allocations: 100 kB / 15.05 MB, free: 1.105 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.001492/0.001492, allocations: 177.3 kB / 15.95 MB, free: 216 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.474/1.474, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3189/0.3189, allocations: 28.84 MB / 319.8 MB, free: 6.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003527, allocations: 11.98 kB / 387.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3553, allocations: 57.49 MB / 445.3 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003483/0.3588, allocations: 2.968 MB / 448.2 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.3606, allocations: 0.7574 MB / 449 MB, free: 30 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004051/0.3611, allocations: 15.75 kB / 449 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002103/0.3613, allocations: 85.08 kB / 449.1 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.3616, allocations: 105.6 kB / 449.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006187/0.3622, allocations: 276.7 kB / 449.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005587/0.3628, allocations: 0.5237 MB / 450 MB, free: 29.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005727/0.3634, allocations: 496.4 kB / 450.5 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.3636, allocations: 251.8 kB / 450.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.3638, allocations: 319.7 kB / 451 MB, free: 29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.802e-05/0.3639, allocations: 19.91 kB / 451 MB, free: 29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.364, allocations: 45.47 kB / 451.1 MB, free: 29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002433/0.3643, allocations: 343.1 kB / 451.4 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.3644, allocations: 235.2 kB / 451.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006266/0.3651, allocations: 0.7976 MB / 452.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3651, allocations: 0 / 452.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3651, allocations: 0 / 452.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.3651, allocations: 0 / 452.4 MB, free: 28.47 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.002104/0.3672, allocations: 1.539 MB / 454 MB, free: 27.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3673, allocations: 8.844 kB / 454 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.3676, allocations: 211.4 kB / 454.2 MB, free: 27.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008119/0.3684, allocations: 0.694 MB / 454.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.3685, allocations: 78.72 kB / 455 MB, free: 26.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3686, allocations: 104.2 kB / 455.1 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.3701, allocations: 1.156 MB / 456.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.3701, allocations: 0 / 456.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.087e-05/0.3702, allocations: 44.75 kB / 456.3 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.3702, allocations: 25.94 kB / 456.3 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.3716, allocations: 1.101 MB / 457.4 MB, free: 25.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005067/0.3767, allocations: 3.708 MB / 461.1 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001824/0.3786, allocations: 1.358 MB / 462.5 MB, free: 23.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.392e-05/0.3787, allocations: 31.95 kB / 462.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008669/0.3795, allocations: 0.542 MB / 463 MB, free: 23.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.527e-06/0.3796, allocations: 0 / 463 MB, free: 23.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002436/0.382, allocations: 1.567 MB / 464.6 MB, free: 22.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.3821, allocations: 64.41 kB / 464.7 MB, free: 22.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/0.3839, allocations: 1.286 MB / 466 MB, free: 22.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.384, allocations: 37.05 kB / 466 MB, free: 22.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006124/0.3846, allocations: 0.7685 MB / 466.8 MB, free: 21.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.3848, allocations: 241.5 kB / 467 MB, free: 21.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.3849, allocations: 16.12 kB / 467 MB, free: 21.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.376e-05/0.385, allocations: 331.9 kB / 467.3 MB, free: 21.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/0.3856, allocations: 438.7 kB / 467.8 MB, free: 21.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006752/0.3863, allocations: 0.5473 MB / 468.3 MB, free: 20.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006337/0.3869, allocations: 488.4 kB / 468.8 MB, free: 20.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/0.3869, allocations: 1.469 kB / 468.8 MB, free: 20.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001737/0.3887, allocations: 1.219 MB / 470 MB, free: 20.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3887, allocations: 6.062 kB / 470 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3887, allocations: 2.75 kB / 470 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3887, allocations: 6.688 kB / 470 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005108/0.3893, allocations: 138.8 kB / 470.2 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.3893, allocations: 7.062 kB / 470.2 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.3896, allocations: 58.5 kB / 470.2 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3897, allocations: 25.3 kB / 470.2 MB, free: 20.34 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.0007652/0.3904, allocations: 386.8 kB / 470.6 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.3906, allocations: 143.2 kB / 470.8 MB, free: 20.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3923, allocations: 1.235 MB / 472 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3923, allocations: 12.23 kB / 472 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3923, allocations: 0 / 472 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.3923, allocations: 3.422 kB / 472 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00327/0.3956, allocations: 2.424 MB / 474.4 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3956, allocations: 5.031 kB / 474.4 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.3961, allocations: 114.7 kB / 474.6 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.3961, allocations: 3.094 kB / 474.6 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.3962, allocations: 19.7 kB / 474.6 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3962, allocations: 6.156 kB / 474.6 MB, free: 18.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3962, allocations: 9.172 kB / 474.6 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.3985, allocations: 1.919 MB / 476.5 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.3988, allocations: 251.1 kB / 476.8 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.919e-05/0.3989, allocations: 16.78 kB / 476.8 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.3991, allocations: 11.34 kB / 476.8 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3992, allocations: 41.05 kB / 476.8 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/0.3993, allocations: 24.16 kB / 476.9 MB, free: 17.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001255/0.4006, allocations: 0.8848 MB / 477.7 MB, free: 17.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4006, allocations: 0 / 477.7 MB, free: 17.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006272/0.4012, allocations: 219.6 kB / 477.9 MB, free: 17.16 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.0001757/0.4014, allocations: 120.9 kB / 478.1 MB, free: 17.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.4025, allocations: 1.01 MB / 479.1 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4025, allocations: 4.188 kB / 479.1 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004896/0.403, allocations: 0.5274 MB / 479.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.4035, allocations: 78.39 kB / 479.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.4071, allocations: 3.247 MB / 482.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008903/0.408, allocations: 1.339 MB / 484.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002607/0.4083, allocations: 80.67 kB / 484.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.4084, allocations: 50.25 kB / 484.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4084, allocations: 0 / 484.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Templates: time 0.01017/0.4186, allocations: 4.829 MB / 489.2 MB, free: 6.867 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: