Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 174.9 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.18/1.18, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0008306/0.0008306, allocations: 93.23 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3009/0.3009, allocations: 28.82 MB / 365.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.701e-05/2.719e-05, allocations: 4 kB / 430.7 MB, free: 4.434 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09211, allocations: 57.47 MB / 488.1 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3113/0.4035, allocations: 80.77 MB / 0.5556 GB, free: 24.33 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000156/0.4037, allocations: 67.17 kB / 0.5556 GB, free: 24.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03254/0.4362, allocations: 14.35 MB / 0.5696 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4363, allocations: 0 / 0.5696 GB, free: 15.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.724e-05/0.4363, allocations: 28 kB / 0.5697 GB, free: 15.55 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001434/0.4378, allocations: 1.377 MB / 0.571 GB, free: 14.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.4378, allocations: 13.16 kB / 0.571 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.438, allocations: 201.4 kB / 0.5712 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008977/0.4389, allocations: 0.752 MB / 0.5719 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.627e-05/0.439, allocations: 82.52 kB / 0.572 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.4391, allocations: 109 kB / 0.5721 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.4407, allocations: 1.253 MB / 0.5734 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.4407, allocations: 0 / 0.5734 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.991e-05/0.4408, allocations: 47.88 kB / 0.5734 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.4408, allocations: 28 kB / 0.5734 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.4423, allocations: 1.234 MB / 0.5746 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/0.4465, allocations: 3.853 MB / 0.5784 GB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.4483, allocations: 1.556 MB / 0.5799 GB, free: 6.777 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005743/0.4489, allocations: 0.55 MB / 0.5805 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.047e-05/0.4489, allocations: 31.5 kB / 0.5805 GB, free: 6.344 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.449, allocations: 38.38 kB / 0.5805 GB, free: 6.301 MB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 2.605e-06/0.449, allocations: 0 / 0.5805 GB, free: 6.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=68): time 0.001476/0.4505, allocations: 1.257 MB / 0.5817 GB, free: 5.301 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.4505, allocations: 67.66 kB / 0.5818 GB, free: 5.227 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.4515, allocations: 1.087 MB / 0.5829 GB, free: 4.363 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.4516, allocations: 40.58 kB / 0.5829 GB, free: 4.328 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003533/0.4519, allocations: 0.7614 MB / 0.5837 GB, free: 3.918 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.4521, allocations: 234.4 kB / 0.5839 GB, free: 3.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.4521, allocations: 16 kB / 0.5839 GB, free: 3.711 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.546e-05/0.4522, allocations: 327.4 kB / 0.5842 GB, free: 3.395 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.4528, allocations: 0.5028 MB / 0.5847 GB, free: 3.023 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.4534, allocations: 0.6039 MB / 0.5853 GB, free: 2.527 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00061/0.454, allocations: 0.5363 MB / 0.5858 GB, free: 2.125 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.454, allocations: 0 / 0.5858 GB, free: 2.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001504/0.4555, allocations: 1.366 MB / 0.5871 GB, free: 1.031 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.4555, allocations: 4 kB / 0.5871 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4556, allocations: 11.5 kB / 0.5872 GB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.4556, allocations: 4 kB / 0.5872 GB, free: 1.016 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005076/0.4561, allocations: 159.5 kB / 0.5873 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.4561, allocations: 11.94 kB / 0.5873 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.4564, allocations: 42.53 kB / 0.5874 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.966e-05/0.4565, allocations: 78.41 kB / 0.5874 GB, free: 0.7539 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 (83): * Single equations (assignments): 83 * 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.0001119/0.4566, allocations: 140.7 kB / 0.5876 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.4567, allocations: 146.1 kB / 0.5877 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002365/0.4591, allocations: 1.589 MB / 0.5893 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.4591, allocations: 11.94 kB / 0.5893 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4592, allocations: 0 / 0.5893 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.4592, allocations: 7.969 kB / 0.5893 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.4622, allocations: 2.549 MB / 0.5918 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4623, allocations: 0 / 0.5918 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005581/0.4628, allocations: 135.2 kB / 0.5919 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.4628, allocations: 4 kB / 0.5919 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.135e-05/0.4629, allocations: 30.48 kB / 0.5919 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.4629, allocations: 0 / 0.5919 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4629, allocations: 0 / 0.5919 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.4655, allocations: 2.201 MB / 0.5941 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.4657, allocations: 203.1 kB / 0.5943 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.4658, allocations: 14.25 kB / 0.5943 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.4661, allocations: 15.17 kB / 0.5943 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4662, allocations: 51.06 kB / 0.5944 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-05/0.4663, allocations: 67.17 kB / 0.5944 GB, free: 11.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001027/0.4673, allocations: 0.8701 MB / 0.5953 GB, free: 10.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4673, allocations: 0 / 0.5953 GB, free: 10.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005464/0.4679, allocations: 211 kB / 0.5955 GB, free: 10.2 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 (68): * Single equations (assignments): 68 * 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.0001841/0.4681, allocations: 129.5 kB / 0.5956 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.4691, allocations: 0.975 MB / 0.5965 GB, free: 9.285 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4691, allocations: 0 / 0.5965 GB, free: 9.285 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004707/0.4696, allocations: 0.5031 MB / 0.597 GB, free: 8.883 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.47, allocations: 67.84 kB / 0.5971 GB, free: 8.855 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.4729, allocations: 2.149 MB / 0.5992 GB, free: 6.906 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008288/0.4737, allocations: 1.338 MB / 0.6005 GB, free: 5.582 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002495/0.474, allocations: 76.39 kB / 0.6006 GB, free: 5.504 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.4741, allocations: 43.42 kB / 0.6006 GB, free: 5.461 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4741, allocations: 0 / 0.6006 GB, free: 5.461 MB / 410.7 MB Notification: Performance of Templates: time 0.01072/0.4848, allocations: 4.674 MB / 0.6052 GB, free: 0.8398 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)