Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.201/1.201, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009343/0.0009344, allocations: 89.28 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3006/0.3006, allocations: 28.82 MB / 365.3 MB, free: 42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.465e-05/2.468e-05, allocations: 4 kB / 430.7 MB, free: 4.426 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09812, allocations: 57.48 MB / 488.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3122/0.4103, allocations: 80.73 MB / 0.5555 GB, free: 24.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001378/0.4105, allocations: 59.17 kB / 0.5556 GB, free: 24.46 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03126/0.4418, allocations: 14.32 MB / 0.5696 GB, free: 15.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4418, allocations: 0 / 0.5696 GB, free: 15.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.935e-05/0.4419, allocations: 35.98 kB / 0.5696 GB, free: 15.7 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001837/0.4437, allocations: 1.37 MB / 0.571 GB, free: 14.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.4438, allocations: 12.97 kB / 0.571 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.4441, allocations: 201.4 kB / 0.5712 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000979/0.4451, allocations: 0.7553 MB / 0.5719 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.4452, allocations: 80.88 kB / 0.572 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.4453, allocations: 105.9 kB / 0.5721 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.4468, allocations: 1.248 MB / 0.5733 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.4469, allocations: 3.938 kB / 0.5733 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.832e-05/0.447, allocations: 40.44 kB / 0.5733 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.447, allocations: 28 kB / 0.5734 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.4484, allocations: 1.236 MB / 0.5746 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.4522, allocations: 3.848 MB / 0.5783 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.454, allocations: 1.568 MB / 0.5799 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005551/0.4545, allocations: 0.5429 MB / 0.5804 GB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.158e-05/0.4546, allocations: 32.45 kB / 0.5804 GB, free: 6.496 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.4546, allocations: 39 kB / 0.5805 GB, free: 6.453 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 2.244e-06/0.4546, allocations: 0 / 0.5805 GB, free: 6.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.001362/0.456, allocations: 1.256 MB / 0.5817 GB, free: 5.453 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.456, allocations: 67.14 kB / 0.5817 GB, free: 5.379 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009747/0.457, allocations: 1.087 MB / 0.5828 GB, free: 4.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.185e-05/0.4571, allocations: 39.14 kB / 0.5828 GB, free: 4.484 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.4574, allocations: 0.7672 MB / 0.5836 GB, free: 4.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.4576, allocations: 231.6 kB / 0.5838 GB, free: 3.871 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.304e-05/0.4576, allocations: 14.31 kB / 0.5838 GB, free: 3.867 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.813e-05/0.4577, allocations: 328.3 kB / 0.5841 GB, free: 3.551 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005477/0.4582, allocations: 0.4953 MB / 0.5846 GB, free: 3.184 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000579/0.4588, allocations: 0.6014 MB / 0.5852 GB, free: 2.691 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.4594, allocations: 0.5365 MB / 0.5857 GB, free: 2.289 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4594, allocations: 4 kB / 0.5857 GB, free: 2.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001436/0.4609, allocations: 1.357 MB / 0.5871 GB, free: 1.199 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.4609, allocations: 7.938 kB / 0.5871 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.4609, allocations: 4 kB / 0.5871 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.4609, allocations: 4 kB / 0.5871 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/0.4614, allocations: 155 kB / 0.5872 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.4615, allocations: 11.94 kB / 0.5872 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.4617, allocations: 55.12 kB / 0.5873 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.396e-05/0.4618, allocations: 74.47 kB / 0.5874 GB, free: 0.9141 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * 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.0001034/0.4619, allocations: 138.4 kB / 0.5875 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.4621, allocations: 142.2 kB / 0.5876 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.4643, allocations: 1.595 MB / 0.5892 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.4643, allocations: 14.38 kB / 0.5892 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4643, allocations: 0 / 0.5892 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4643, allocations: 3.984 kB / 0.5892 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003258/0.4676, allocations: 2.533 MB / 0.5917 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4676, allocations: 4 kB / 0.5917 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005301/0.4682, allocations: 138.6 kB / 0.5918 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.4682, allocations: 0 / 0.5918 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.726e-05/0.4683, allocations: 29.92 kB / 0.5918 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.4683, allocations: 8 kB / 0.5919 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4683, allocations: 0 / 0.5919 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.471, allocations: 2.185 MB / 0.594 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.4712, allocations: 203.1 kB / 0.5942 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4713, allocations: 13.56 kB / 0.5942 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.4715, allocations: 9.938 kB / 0.5942 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.4716, allocations: 51.25 kB / 0.5943 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.972e-05/0.4718, allocations: 75.03 kB / 0.5943 GB, free: 11.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001021/0.4728, allocations: 0.8701 MB / 0.5952 GB, free: 10.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4728, allocations: 0 / 0.5952 GB, free: 10.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005529/0.4733, allocations: 207.3 kB / 0.5954 GB, free: 10.38 MB / 410.7 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.0001714/0.4735, allocations: 123.4 kB / 0.5955 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.4746, allocations: 0.9646 MB / 0.5964 GB, free: 9.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.4746, allocations: 4.562 kB / 0.5964 GB, free: 9.477 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.4751, allocations: 0.4986 MB / 0.5969 GB, free: 9.078 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.4755, allocations: 76.34 kB / 0.597 GB, free: 9.047 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.4787, allocations: 2.156 MB / 0.5991 GB, free: 7.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009369/0.4796, allocations: 1.333 MB / 0.6004 GB, free: 5.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002961/0.4799, allocations: 76.36 kB / 0.6005 GB, free: 5.695 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.48, allocations: 43.44 kB / 0.6005 GB, free: 5.652 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.4801, allocations: 0 / 0.6005 GB, free: 5.652 MB / 410.7 MB Notification: Performance of Templates: time 0.01172/0.4918, allocations: 4.658 MB / 0.6051 GB, free: 1.047 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)