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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001701, allocations: 193 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3475/0.3475, allocations: 28.8 MB / 319.2 MB, free: 5.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 59.91 kB / 386.6 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3189, allocations: 56.41 MB / 443 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003632/0.3226, allocations: 3.242 MB / 446.3 MB, free: 37.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.3238, allocations: 0.5347 MB / 446.8 MB, free: 37.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002694/0.3241, allocations: 11.75 kB / 446.8 MB, free: 37.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000291/0.3244, allocations: 140.6 kB / 447 MB, free: 37.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002812/0.3247, allocations: 129 kB / 447.1 MB, free: 37.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005191/0.3252, allocations: 281.7 kB / 447.4 MB, free: 37.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004792/0.3257, allocations: 0.721 MB / 448.1 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005138/0.3262, allocations: 480.2 kB / 448.5 MB, free: 37.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.3264, allocations: 302.3 kB / 448.8 MB, free: 36.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.3266, allocations: 392.8 kB / 449.2 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.3267, allocations: 75.25 kB / 449.3 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.3269, allocations: 102.1 kB / 449.4 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002596/0.3272, allocations: 428.6 kB / 449.8 MB, free: 36.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002858/0.3275, allocations: 0.5844 MB / 450.4 MB, free: 36.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006482/0.3281, allocations: 1.066 MB / 451.5 MB, free: 35.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3281, allocations: 0 / 451.5 MB, free: 35.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3281, allocations: 0 / 451.5 MB, free: 35.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.793e-05/0.3282, allocations: 0 / 451.5 MB, free: 35.68 MB / 366.1 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.001572/0.3298, allocations: 1.715 MB / 453.2 MB, free: 34.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3298, allocations: 8.219 kB / 453.2 MB, free: 34.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.33, allocations: 188.2 kB / 453.4 MB, free: 34.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.3303, allocations: 0.5642 MB / 453.9 MB, free: 33.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.378e-05/0.3304, allocations: 86.36 kB / 454 MB, free: 33.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.518e-05/0.3305, allocations: 95.41 kB / 454.1 MB, free: 33.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.3318, allocations: 1.079 MB / 455.2 MB, free: 33.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.3318, allocations: 192 / 455.2 MB, free: 33.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.108e-05/0.3318, allocations: 40.38 kB / 455.2 MB, free: 33.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.057e-05/0.3319, allocations: 57 kB / 455.3 MB, free: 33.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.3332, allocations: 1.219 MB / 456.5 MB, free: 33.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.3365, allocations: 2.868 MB / 459.4 MB, free: 31.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3376, allocations: 0.9954 MB / 460.4 MB, free: 31.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005493/0.3382, allocations: 0.4969 MB / 460.9 MB, free: 31.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.559e-05/0.3383, allocations: 31.45 kB / 460.9 MB, free: 31.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.3383, allocations: 38 kB / 460.9 MB, free: 31.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 4.037e-06/0.3383, allocations: 0 / 460.9 MB, free: 31.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.002063/0.3404, allocations: 1.588 MB / 462.5 MB, free: 31.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3404, allocations: 59.16 kB / 462.6 MB, free: 31.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/0.3418, allocations: 1.261 MB / 463.8 MB, free: 30.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.01e-05/0.3418, allocations: 36.36 kB / 463.9 MB, free: 30.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004393/0.3423, allocations: 0.7836 MB / 464.7 MB, free: 30 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.3424, allocations: 232.2 kB / 464.9 MB, free: 29.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.3426, allocations: 133.3 kB / 465 MB, free: 29.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.291e-05/0.3427, allocations: 334 kB / 465.3 MB, free: 29.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005726/0.3433, allocations: 473.2 kB / 465.8 MB, free: 29.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/0.3439, allocations: 0.659 MB / 466.5 MB, free: 29.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003705/0.3477, allocations: 2.13 MB / 468.6 MB, free: 28.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.3477, allocations: 6.25 kB / 468.6 MB, free: 28.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001905/0.3496, allocations: 1.33 MB / 469.9 MB, free: 27.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.3496, allocations: 14.58 kB / 469.9 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3497, allocations: 6.312 kB / 470 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.3497, allocations: 13 kB / 470 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005557/0.3502, allocations: 173.5 kB / 470.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-05/0.3503, allocations: 17.38 kB / 470.2 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/0.3507, allocations: 80.72 kB / 470.2 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.667e-05/0.3508, allocations: 48.73 kB / 470.3 MB, free: 27.87 MB / 366.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006771/0.3514, allocations: 388.9 kB / 470.7 MB, free: 27.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.3516, allocations: 142.8 kB / 470.8 MB, free: 27.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.3534, allocations: 1.252 MB / 472 MB, free: 27.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.3534, allocations: 6.875 kB / 472.1 MB, free: 27.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3535, allocations: 0 / 472.1 MB, free: 27.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.3535, allocations: 3.281 kB / 472.1 MB, free: 27.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.3564, allocations: 2.37 MB / 474.4 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3564, allocations: 1.094 kB / 474.4 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.3569, allocations: 120.4 kB / 474.5 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.3569, allocations: 3.812 kB / 474.6 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.357, allocations: 24.5 kB / 474.6 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.357, allocations: 3.188 kB / 474.6 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.357, allocations: 0 / 474.6 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.3591, allocations: 1.942 MB / 476.5 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.3592, allocations: 201.1 kB / 476.7 MB, free: 25.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.572e-05/0.3593, allocations: 10.28 kB / 476.7 MB, free: 25.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.3596, allocations: 26.67 kB / 476.8 MB, free: 25.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3597, allocations: 49.72 kB / 476.8 MB, free: 25.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.3597, allocations: 20.44 kB / 476.8 MB, free: 25.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001013/0.3607, allocations: 0.8696 MB / 477.7 MB, free: 25.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.3607, allocations: 1.156 kB / 477.7 MB, free: 25.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006398/0.3614, allocations: 212.8 kB / 477.9 MB, free: 25.15 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001538/0.3616, allocations: 120.8 kB / 478 MB, free: 25.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3632, allocations: 1.123 MB / 479.1 MB, free: 24.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3632, allocations: 1.062 kB / 479.1 MB, free: 24.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007134/0.364, allocations: 0.5409 MB / 479.7 MB, free: 24.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.3645, allocations: 67.59 kB / 479.7 MB, free: 24.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003986/0.3685, allocations: 2.775 MB / 482.5 MB, free: 23.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007097/0.3692, allocations: 1.298 MB / 483.8 MB, free: 22.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000373/0.3696, allocations: 124.6 kB / 483.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3697, allocations: 53.91 kB / 484 MB, free: 22.54 MB / 366.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3698, allocations: 0 / 484 MB, free: 22.54 MB / 366.1 MB Notification: Performance of Templates: time 0.01437/0.3841, allocations: 5.257 MB / 489.3 MB, free: 21.98 MB / 366.1 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)