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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.000861/0.0008611, allocations: 171.8 kB / 16.11 MB, free: 5.57 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.172/1.172, allocations: 205.4 MB / 222.3 MB, free: 13.76 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.0007293/0.0007295, allocations: 94.28 kB / 270.6 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1375/0.1375, allocations: 28.84 MB / 347.7 MB, free: 9.906 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003306, allocations: 12 kB / 413 MB, free: 35.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07298/0.07333, allocations: 54.65 MB / 467.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2444/0.3178, allocations: 79.44 MB / 0.5343 GB, free: 16.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000161/0.318, allocations: 63 kB / 0.5344 GB, free: 16.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0243/0.3423, allocations: 12.33 MB / 0.5464 GB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3423, allocations: 0 / 0.5464 GB, free: 13.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.218e-05/0.3424, allocations: 30.69 kB / 0.5464 GB, free: 13.69 MB / 362.7 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.001805/0.3442, allocations: 1.543 MB / 0.5479 GB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.937e-05/0.3442, allocations: 7.875 kB / 0.5479 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.3444, allocations: 186.9 kB / 0.5481 GB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.3448, allocations: 0.568 MB / 0.5487 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.3448, allocations: 69.44 kB / 0.5487 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.345, allocations: 98.75 kB / 0.5488 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.3465, allocations: 1.204 MB / 0.55 GB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.3465, allocations: 4.172 kB / 0.55 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.934e-05/0.3466, allocations: 43.62 kB / 0.5501 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/0.3466, allocations: 55.66 kB / 0.5501 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.3483, allocations: 1.382 MB / 0.5515 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.352, allocations: 3.04 MB / 0.5544 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.3533, allocations: 1.176 MB / 0.5556 GB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006496/0.354, allocations: 0.581 MB / 0.5561 GB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.208e-05/0.3541, allocations: 38.58 kB / 0.5562 GB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.3541, allocations: 41.03 kB / 0.5562 GB, free: 9.543 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.144e-06/0.3541, allocations: 0 / 0.5562 GB, free: 9.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.002156/0.3563, allocations: 1.883 MB / 0.5581 GB, free: 9.066 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.3563, allocations: 63.59 kB / 0.5581 GB, free: 9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009456/0.3573, allocations: 1.247 MB / 0.5593 GB, free: 8.617 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.3573, allocations: 36.14 kB / 0.5594 GB, free: 8.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.3576, allocations: 0.7781 MB / 0.5601 GB, free: 8.238 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3578, allocations: 232.1 kB / 0.5603 GB, free: 8.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/0.3578, allocations: 14.66 kB / 0.5604 GB, free: 8.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.3579, allocations: 336.4 kB / 0.5607 GB, free: 7.758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006532/0.3585, allocations: 0.5543 MB / 0.5612 GB, free: 7.633 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007081/0.3592, allocations: 0.7384 MB / 0.5619 GB, free: 7.285 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003798/0.3631, allocations: 2.488 MB / 0.5644 GB, free: 6.523 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3631, allocations: 0 / 0.5644 GB, free: 6.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001704/0.3648, allocations: 1.536 MB / 0.5659 GB, free: 6.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3648, allocations: 19.78 kB / 0.5659 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3648, allocations: 7.5 kB / 0.5659 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.3648, allocations: 11.69 kB / 0.5659 GB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/0.3654, allocations: 207 kB / 0.5661 GB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3654, allocations: 19.7 kB / 0.5661 GB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.3657, allocations: 92.95 kB / 0.5662 GB, free: 6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.3658, allocations: 93 kB / 0.5663 GB, free: 5.992 MB / 362.7 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.0004437/0.3663, allocations: 383.2 kB / 0.5667 GB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3664, allocations: 139.5 kB / 0.5668 GB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.3685, allocations: 1.682 MB / 0.5684 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3685, allocations: 11.64 kB / 0.5685 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3686, allocations: 0 / 0.5685 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3686, allocations: 3.984 kB / 0.5685 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.3711, allocations: 2.583 MB / 0.571 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3711, allocations: 0 / 0.571 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.3716, allocations: 161.7 kB / 0.5711 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.3716, allocations: 0 / 0.5711 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.3717, allocations: 32.8 kB / 0.5712 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3717, allocations: 0 / 0.5712 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3717, allocations: 4 kB / 0.5712 GB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.3741, allocations: 2.31 MB / 0.5734 GB, free: 2.715 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.3742, allocations: 202.6 kB / 0.5736 GB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-05/0.3743, allocations: 11.44 kB / 0.5736 GB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.3746, allocations: 34.47 kB / 0.5737 GB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3747, allocations: 56.38 kB / 0.5737 GB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.508e-05/0.3748, allocations: 74.72 kB / 0.5738 GB, free: 2.355 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007022/0.3755, allocations: 0.8555 MB / 0.5746 GB, free: 1.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3755, allocations: 0 / 0.5746 GB, free: 1.691 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004715/0.376, allocations: 218 kB / 0.5748 GB, free: 1.5 MB / 362.7 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.0001372/0.3761, allocations: 118 kB / 0.5749 GB, free: 1.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3772, allocations: 1.114 MB / 0.576 GB, free: 480 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3772, allocations: 4 kB / 0.576 GB, free: 476 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.3778, allocations: 0.5535 MB / 0.5766 GB, free: 8 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.3782, allocations: 64.53 kB / 0.5766 GB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.3817, allocations: 3.187 MB / 0.5798 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007937/0.3825, allocations: 1.296 MB / 0.581 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004012/0.3829, allocations: 124.5 kB / 0.5811 GB, free: 11.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3831, allocations: 51.38 kB / 0.5812 GB, free: 11.53 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3831, allocations: 0 / 0.5812 GB, free: 11.53 MB / 378.7 MB Notification: Performance of Templates: time 0.009727/0.3928, allocations: 4.595 MB / 0.5857 GB, free: 6.977 MB / 378.7 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)