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.003846/0.003846, allocations: 170.8 kB / 15.11 MB, free: 5.973 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.15/1.15, allocations: 223.2 MB / 239 MB, free: 1.797 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008018/0.0008018, allocations: 93.86 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1368/0.1368, allocations: 28.85 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002574, allocations: 8 kB / 438.1 MB, free: 70.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07397/0.07425, allocations: 57.47 MB / 495.6 MB, free: 13.3 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2383/0.3126, allocations: 80.81 MB / 0.5629 GB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001495/0.3127, allocations: 64.09 kB / 0.5629 GB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02668/0.3394, allocations: 14.34 MB / 0.5769 GB, free: 14.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3394, allocations: 0 / 0.5769 GB, free: 14.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.652e-05/0.3395, allocations: 35.98 kB / 0.577 GB, free: 14.86 MB / 378.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.001706/0.3412, allocations: 1.603 MB / 0.5785 GB, free: 13.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.3413, allocations: 8.031 kB / 0.5786 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.3415, allocations: 201.4 kB / 0.5787 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009749/0.3425, allocations: 0.7694 MB / 0.5795 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.795e-05/0.3425, allocations: 75.94 kB / 0.5796 GB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.3426, allocations: 102.3 kB / 0.5797 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.3443, allocations: 1.263 MB / 0.5809 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3443, allocations: 3.984 kB / 0.5809 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-05/0.3444, allocations: 46 kB / 0.581 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.3444, allocations: 24 kB / 0.581 GB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3462, allocations: 1.252 MB / 0.5822 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004529/0.3507, allocations: 3.856 MB / 0.586 GB, free: 7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001927/0.3526, allocations: 1.579 MB / 0.5875 GB, free: 5.809 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.391e-05/0.3527, allocations: 24.77 kB / 0.5875 GB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.3527, allocations: 42.94 kB / 0.5876 GB, free: 5.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 1.673e-06/0.3527, allocations: 0 / 0.5876 GB, free: 5.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.00221/0.355, allocations: 1.78 MB / 0.5893 GB, free: 4.355 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.355, allocations: 59.97 kB / 0.5894 GB, free: 4.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.3561, allocations: 1.108 MB / 0.5904 GB, free: 3.406 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.094e-05/0.3562, allocations: 39.58 kB / 0.5905 GB, free: 3.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/0.3566, allocations: 0.761 MB / 0.5912 GB, free: 2.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.3568, allocations: 236 kB / 0.5915 GB, free: 2.758 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/0.3568, allocations: 14.38 kB / 0.5915 GB, free: 2.754 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3569, allocations: 335.7 kB / 0.5918 GB, free: 2.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/0.3576, allocations: 0.5027 MB / 0.5923 GB, free: 2.055 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007208/0.3583, allocations: 0.6059 MB / 0.5929 GB, free: 1.555 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007142/0.359, allocations: 0.5412 MB / 0.5934 GB, free: 1.172 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3591, allocations: 0 / 0.5934 GB, free: 1.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001699/0.3608, allocations: 1.368 MB / 0.5947 GB, free: 100 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3608, allocations: 12.31 kB / 0.5947 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3608, allocations: 0 / 0.5947 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3608, allocations: 8 kB / 0.5948 GB, free: 80 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004915/0.3613, allocations: 150.4 kB / 0.5949 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3613, allocations: 8 kB / 0.5949 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.3616, allocations: 55.81 kB / 0.595 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.865e-05/0.3617, allocations: 78.66 kB / 0.595 GB, free: 15.81 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 () * Number of clocked 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.000414/0.3621, allocations: 364.2 kB / 0.5954 GB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.3623, allocations: 142.2 kB / 0.5955 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/0.3645, allocations: 1.609 MB / 0.5971 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3645, allocations: 8 kB / 0.5971 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3645, allocations: 0 / 0.5971 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3646, allocations: 3.984 kB / 0.5971 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/0.3674, allocations: 2.555 MB / 0.5996 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3674, allocations: 7.953 kB / 0.5996 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.3679, allocations: 130.2 kB / 0.5997 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3679, allocations: 4 kB / 0.5997 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.368, allocations: 25.67 kB / 0.5998 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.368, allocations: 4 kB / 0.5998 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.368, allocations: 3.938 kB / 0.5998 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002512/0.3705, allocations: 2.206 MB / 0.6019 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.3707, allocations: 206.5 kB / 0.6021 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.243e-05/0.3708, allocations: 12.5 kB / 0.6021 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.3711, allocations: 10.12 kB / 0.6021 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-05/0.3712, allocations: 55.56 kB / 0.6022 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.488e-05/0.3712, allocations: 71.47 kB / 0.6023 GB, free: 9.961 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008905/0.3721, allocations: 0.8808 MB / 0.6031 GB, free: 9.285 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3721, allocations: 0 / 0.6031 GB, free: 9.285 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004314/0.3726, allocations: 209.1 kB / 0.6033 GB, free: 9.098 MB / 394.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 () * Number of clocked 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.0001458/0.3727, allocations: 129.4 kB / 0.6034 GB, free: 8.973 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.3738, allocations: 0.9779 MB / 0.6044 GB, free: 8.195 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3738, allocations: 4 kB / 0.6044 GB, free: 8.191 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.3743, allocations: 0.5036 MB / 0.6049 GB, free: 7.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.3746, allocations: 82.47 kB / 0.605 GB, free: 7.746 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/0.3779, allocations: 3.208 MB / 0.6081 GB, free: 4.734 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007884/0.3787, allocations: 1.34 MB / 0.6094 GB, free: 3.402 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.3789, allocations: 68.36 kB / 0.6095 GB, free: 3.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.379, allocations: 42.75 kB / 0.6095 GB, free: 3.297 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.379, allocations: 4 kB / 0.6095 GB, free: 3.293 MB / 394.7 MB Notification: Performance of Templates: time 0.009527/0.3886, allocations: 4.654 MB / 0.6141 GB, free: 14.67 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)