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.001053/0.001053, allocations: 99.86 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.001022/0.001022, 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.418/1.418, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3227/0.3227, allocations: 28.84 MB / 319.8 MB, free: 6.297 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.000337, allocations: 8 kB / 387.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3498, allocations: 57.48 MB / 445.3 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002538/0.3524, allocations: 2.6 MB / 447.9 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.3535, allocations: 0.5357 MB / 448.4 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002589/0.3538, allocations: 8.75 kB / 448.4 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001896/0.354, allocations: 73.66 kB / 448.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002478/0.3542, allocations: 91.67 kB / 448.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004784/0.3547, allocations: 215.4 kB / 448.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004212/0.3551, allocations: 441 kB / 449.2 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004357/0.3556, allocations: 390.9 kB / 449.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.3557, allocations: 236.4 kB / 449.8 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.356, allocations: 310.7 kB / 450.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.89e-05/0.356, allocations: 23.59 kB / 450.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.3562, allocations: 53.08 kB / 450.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002349/0.3564, allocations: 353.5 kB / 450.5 MB, free: 29.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.3565, allocations: 216.4 kB / 450.8 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004835/0.357, allocations: 0.7122 MB / 451.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.357, allocations: 0 / 451.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.357, allocations: 0 / 451.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.3571, allocations: 0 / 451.5 MB, free: 29.24 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001602/0.3587, allocations: 1.495 MB / 453 MB, free: 28.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3587, allocations: 11.44 kB / 453 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.3589, allocations: 199.3 kB / 453.2 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.3594, allocations: 0.51 MB / 453.7 MB, free: 27.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.286e-05/0.3594, allocations: 71.22 kB / 453.7 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.3595, allocations: 94.88 kB / 453.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.3609, allocations: 1.077 MB / 454.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.3609, allocations: 3.328 kB / 454.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-05/0.361, allocations: 35.88 kB / 455 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.818e-05/0.3611, allocations: 56.86 kB / 455 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.3625, allocations: 1.224 MB / 456.2 MB, free: 26.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003731/0.3662, allocations: 2.881 MB / 459.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.3677, allocations: 1.01 MB / 460.1 MB, free: 25.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.793e-05/0.3678, allocations: 31.27 kB / 460.2 MB, free: 25.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.3679, allocations: 37.28 kB / 460.2 MB, free: 25.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.545e-06/0.3679, allocations: 0.9375 kB / 460.2 MB, free: 25.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.002287/0.3702, allocations: 1.625 MB / 461.8 MB, free: 25.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.3702, allocations: 61.88 kB / 461.9 MB, free: 24.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/0.3716, allocations: 1.246 MB / 463.1 MB, free: 24.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.3716, allocations: 37.48 kB / 463.2 MB, free: 24.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004382/0.3721, allocations: 0.7813 MB / 463.9 MB, free: 23.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.3722, allocations: 230 kB / 464.2 MB, free: 23.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.3722, allocations: 15.12 kB / 464.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.891e-05/0.3723, allocations: 334.7 kB / 464.5 MB, free: 23.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006983/0.373, allocations: 485.5 kB / 465 MB, free: 23.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008557/0.3739, allocations: 0.6574 MB / 465.6 MB, free: 22.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008434/0.3747, allocations: 0.5423 MB / 466.2 MB, free: 22.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3747, allocations: 1.188 kB / 466.2 MB, free: 22.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002019/0.3768, allocations: 1.35 MB / 467.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3768, allocations: 9.5 kB / 467.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3768, allocations: 5.781 kB / 467.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.3768, allocations: 13.5 kB / 467.6 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/0.3775, allocations: 186.7 kB / 467.7 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/0.3775, allocations: 18.38 kB / 467.8 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003852/0.3779, allocations: 89.03 kB / 467.8 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.378, allocations: 33.66 kB / 467.9 MB, free: 22.33 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007408/0.3788, allocations: 399 kB / 468.3 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.3789, allocations: 142.2 kB / 468.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002103/0.381, allocations: 1.272 MB / 469.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.381, allocations: 6.344 kB / 469.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3811, allocations: 1.312 kB / 469.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.3811, allocations: 7.562 kB / 469.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.3846, allocations: 2.396 MB / 472.1 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3847, allocations: 0.6094 kB / 472.1 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005182/0.3852, allocations: 131.8 kB / 472.2 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.3852, allocations: 2.125 kB / 472.2 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.3852, allocations: 15.05 kB / 472.2 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.3853, allocations: 7.344 kB / 472.2 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3853, allocations: 5.312 kB / 472.3 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/0.3881, allocations: 1.967 MB / 474.2 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/0.3883, allocations: 192.2 kB / 474.4 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.265e-05/0.3884, allocations: 11.5 kB / 474.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.3887, allocations: 34.27 kB / 474.4 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.3888, allocations: 50.33 kB / 474.5 MB, free: 19.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.3888, allocations: 26.42 kB / 474.5 MB, free: 19.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001248/0.3901, allocations: 0.8642 MB / 475.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3901, allocations: 0 / 475.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006483/0.3907, allocations: 210.9 kB / 475.6 MB, free: 19.42 MB / 350.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 (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.0001721/0.3909, allocations: 117.4 kB / 475.7 MB, free: 19.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.3925, allocations: 1.115 MB / 476.8 MB, free: 18.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3925, allocations: 0 / 476.8 MB, free: 18.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000671/0.3932, allocations: 0.5607 MB / 477.4 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.3936, allocations: 47.55 kB / 477.4 MB, free: 17.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/0.398, allocations: 3.184 MB / 480.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009373/0.399, allocations: 1.324 MB / 481.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003859/0.3994, allocations: 122.3 kB / 482.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.3995, allocations: 45.64 kB / 482.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3995, allocations: 0 / 482.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Templates: time 0.01053/0.4101, allocations: 4.607 MB / 486.7 MB, free: 9.418 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: