Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004001/0.004001, allocations: 169.5 kB / 15.11 MB, free: 5.984 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.139/1.139, allocations: 223.2 MB / 239 MB, free: 1.785 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.0008321/0.0008321, allocations: 99.22 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.1281/0.1281, allocations: 28.84 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 8 kB / 438.1 MB, free: 70.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.07734, allocations: 57.48 MB / 495.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2596/0.337, allocations: 80.89 MB / 0.563 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001685/0.3372, allocations: 65.84 kB / 0.563 GB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02867/0.3659, allocations: 14.58 MB / 0.5773 GB, free: 14.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3659, allocations: 0 / 0.5773 GB, free: 14.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.312e-05/0.366, allocations: 36 kB / 0.5773 GB, free: 14.49 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002303/0.3683, allocations: 1.646 MB / 0.5789 GB, free: 12.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3683, allocations: 8.031 kB / 0.5789 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002958/0.3686, allocations: 205.3 kB / 0.5791 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.3698, allocations: 0.7743 MB / 0.5799 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.015e-05/0.3698, allocations: 76.92 kB / 0.58 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.37, allocations: 104.4 kB / 0.5801 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.3718, allocations: 1.382 MB / 0.5814 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.3719, allocations: 4 kB / 0.5814 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.681e-05/0.372, allocations: 39.75 kB / 0.5814 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.372, allocations: 55.55 kB / 0.5815 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00199/0.374, allocations: 1.37 MB / 0.5828 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004998/0.379, allocations: 4.067 MB / 0.5868 GB, free: 6.172 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/0.381, allocations: 1.598 MB / 0.5884 GB, free: 4.957 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.529e-05/0.3811, allocations: 36.75 kB / 0.5884 GB, free: 4.922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.3811, allocations: 42.88 kB / 0.5884 GB, free: 4.879 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 1.744e-06/0.3811, allocations: 0 / 0.5884 GB, free: 4.879 MB / 378.7 MB Notification: Performance of matching and sorting (n=70): time 0.002344/0.3835, allocations: 1.818 MB / 0.5902 GB, free: 3.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.3835, allocations: 89.8 kB / 0.5903 GB, free: 3.352 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.3847, allocations: 1.165 MB / 0.5914 GB, free: 2.426 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.3848, allocations: 39.2 kB / 0.5915 GB, free: 2.391 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/0.3853, allocations: 0.8482 MB / 0.5923 GB, free: 1.898 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.3854, allocations: 241.3 kB / 0.5925 GB, free: 1.691 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.593e-05/0.3855, allocations: 17.38 kB / 0.5926 GB, free: 1.688 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3856, allocations: 343.1 kB / 0.5929 GB, free: 1.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007122/0.3863, allocations: 0.5361 MB / 0.5934 GB, free: 0.957 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008314/0.3872, allocations: 0.8024 MB / 0.5942 GB, free: 204 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008228/0.388, allocations: 0.6145 MB / 0.5948 GB, free: 15.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.388, allocations: 4 kB / 0.5948 GB, free: 15.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001955/0.39, allocations: 1.575 MB / 0.5963 GB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.39, allocations: 8 kB / 0.5963 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.39, allocations: 8 kB / 0.5963 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.3901, allocations: 12 kB / 0.5964 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006/0.3907, allocations: 214.9 kB / 0.5966 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.3907, allocations: 15.94 kB / 0.5966 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.391, allocations: 84.91 kB / 0.5967 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.3911, allocations: 94.72 kB / 0.5967 GB, free: 14.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0004556/0.3916, allocations: 403.7 kB / 0.5971 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3918, allocations: 146.1 kB / 0.5973 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.3942, allocations: 1.654 MB / 0.5989 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3942, allocations: 8 kB / 0.5989 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3942, allocations: 4 kB / 0.5989 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3942, allocations: 3.984 kB / 0.5989 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003008/0.3972, allocations: 2.59 MB / 0.6014 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3972, allocations: 32 / 0.6014 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.3978, allocations: 155.1 kB / 0.6016 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3978, allocations: 4 kB / 0.6016 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.3978, allocations: 26.8 kB / 0.6016 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3978, allocations: 0 / 0.6016 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3979, allocations: 4 kB / 0.6016 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.4005, allocations: 2.334 MB / 0.6039 GB, free: 8.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.4007, allocations: 214.3 kB / 0.6041 GB, free: 8.113 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.4008, allocations: 12.81 kB / 0.6041 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.401, allocations: 13.31 kB / 0.6041 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.4012, allocations: 60.17 kB / 0.6042 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/0.4012, allocations: 70.86 kB / 0.6042 GB, free: 7.988 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009157/0.4022, allocations: 0.925 MB / 0.6052 GB, free: 7.277 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4022, allocations: 0 / 0.6052 GB, free: 7.277 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000581/0.4028, allocations: 233 kB / 0.6054 GB, free: 7.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0001467/0.4029, allocations: 122.8 kB / 0.6055 GB, free: 6.953 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.4041, allocations: 1.08 MB / 0.6065 GB, free: 6.078 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4041, allocations: 0 / 0.6065 GB, free: 6.078 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005194/0.4046, allocations: 0.5149 MB / 0.607 GB, free: 5.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.4051, allocations: 94.52 kB / 0.6071 GB, free: 5.613 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.4084, allocations: 3.333 MB / 0.6104 GB, free: 2.469 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008348/0.4093, allocations: 1.359 MB / 0.6117 GB, free: 1.121 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003756/0.4096, allocations: 128.9 kB / 0.6118 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.4098, allocations: 62.55 kB / 0.6119 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4098, allocations: 0 / 0.6119 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of Templates: time 0.0101/0.4199, allocations: 5.067 MB / 0.6169 GB, free: 11.89 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)