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.003722/0.003722, allocations: 169.5 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.137/1.137, allocations: 223.2 MB / 239.1 MB, free: 1.789 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.0008222/0.0008223, allocations: 105.1 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1311/0.1311, allocations: 28.85 MB / 370.2 MB, free: 13.94 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002659, allocations: 8 kB / 438.1 MB, free: 70.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06971/0.06999, allocations: 57.48 MB / 495.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2357/0.3057, allocations: 80.84 MB / 0.5629 GB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001476/0.3059, allocations: 62.66 kB / 0.563 GB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02727/0.3332, allocations: 14.35 MB / 0.577 GB, free: 14.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3332, allocations: 0 / 0.577 GB, free: 14.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.569e-05/0.3333, allocations: 28 kB / 0.577 GB, free: 14.83 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001703/0.335, allocations: 1.611 MB / 0.5786 GB, free: 13.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.335, allocations: 12.03 kB / 0.5786 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001997/0.3352, allocations: 201.4 kB / 0.5788 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009592/0.3362, allocations: 0.761 MB / 0.5796 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.3363, allocations: 77.14 kB / 0.5796 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.3364, allocations: 110.3 kB / 0.5797 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.338, allocations: 1.275 MB / 0.581 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.338, allocations: 0 / 0.581 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.166e-05/0.3381, allocations: 40.94 kB / 0.581 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.3381, allocations: 28 kB / 0.581 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.3398, allocations: 1.257 MB / 0.5823 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004364/0.3441, allocations: 3.853 MB / 0.586 GB, free: 6.957 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.346, allocations: 1.59 MB / 0.5876 GB, free: 5.758 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.906e-05/0.3461, allocations: 32.56 kB / 0.5876 GB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.3461, allocations: 38.62 kB / 0.5877 GB, free: 5.688 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 1.743e-06/0.3461, allocations: 0 / 0.5877 GB, free: 5.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=68): time 0.002129/0.3482, allocations: 1.79 MB / 0.5894 GB, free: 4.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.3483, allocations: 63.97 kB / 0.5895 GB, free: 4.219 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009998/0.3493, allocations: 1.101 MB / 0.5905 GB, free: 3.344 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.249e-05/0.3494, allocations: 35.14 kB / 0.5906 GB, free: 3.312 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.3498, allocations: 0.7595 MB / 0.5913 GB, free: 2.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.3499, allocations: 244 kB / 0.5915 GB, free: 2.691 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.35, allocations: 12.81 kB / 0.5916 GB, free: 2.691 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.962e-05/0.3501, allocations: 332.1 kB / 0.5919 GB, free: 2.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006287/0.3507, allocations: 0.5108 MB / 0.5924 GB, free: 1.988 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006717/0.3514, allocations: 0.6076 MB / 0.593 GB, free: 1.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000664/0.3521, allocations: 0.5482 MB / 0.5935 GB, free: 1.098 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3521, allocations: 0 / 0.5935 GB, free: 1.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001599/0.3537, allocations: 1.381 MB / 0.5948 GB, free: 12 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.3537, allocations: 7.984 kB / 0.5949 GB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3537, allocations: 4 kB / 0.5949 GB, free: 0 / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.3537, allocations: 4.047 kB / 0.5949 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004972/0.3542, allocations: 155 kB / 0.595 GB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.3543, allocations: 11.98 kB / 0.595 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3545, allocations: 46.03 kB / 0.5951 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.329e-05/0.3546, allocations: 78.14 kB / 0.5951 GB, free: 15.73 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 (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.0004088/0.355, allocations: 378.6 kB / 0.5955 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.3552, allocations: 146.1 kB / 0.5956 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002176/0.3574, allocations: 1.601 MB / 0.5972 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3574, allocations: 8 kB / 0.5972 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3574, allocations: 7.984 kB / 0.5972 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3574, allocations: 0 / 0.5972 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.3601, allocations: 2.561 MB / 0.5997 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3602, allocations: 8 kB / 0.5997 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/0.3607, allocations: 138.9 kB / 0.5999 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.3607, allocations: 4 kB / 0.5999 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.585e-05/0.3607, allocations: 26.17 kB / 0.5999 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.3607, allocations: 4 kB / 0.5999 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3607, allocations: 4 kB / 0.5999 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.3631, allocations: 2.211 MB / 0.6021 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.3633, allocations: 211 kB / 0.6023 GB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.949e-05/0.3634, allocations: 14.81 kB / 0.6023 GB, free: 9.965 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3637, allocations: 13.81 kB / 0.6023 GB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.3638, allocations: 60.05 kB / 0.6023 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-05/0.3639, allocations: 67.17 kB / 0.6024 GB, free: 9.844 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008058/0.3647, allocations: 0.879 MB / 0.6033 GB, free: 9.168 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3647, allocations: 0 / 0.6033 GB, free: 9.168 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004545/0.3651, allocations: 211.7 kB / 0.6035 GB, free: 8.98 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 (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.0001476/0.3653, allocations: 119.6 kB / 0.6036 GB, free: 8.863 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009807/0.3663, allocations: 0.9919 MB / 0.6046 GB, free: 8.066 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3663, allocations: 0 / 0.6046 GB, free: 8.066 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004668/0.3668, allocations: 0.5096 MB / 0.605 GB, free: 7.656 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/0.3672, allocations: 72.33 kB / 0.6051 GB, free: 7.625 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.3703, allocations: 3.206 MB / 0.6082 GB, free: 4.613 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007493/0.3711, allocations: 1.34 MB / 0.6096 GB, free: 3.281 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002074/0.3713, allocations: 76.38 kB / 0.6096 GB, free: 3.203 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.3714, allocations: 47.36 kB / 0.6097 GB, free: 3.16 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3714, allocations: 0 / 0.6097 GB, free: 3.16 MB / 394.7 MB Notification: Performance of Templates: time 0.009595/0.381, allocations: 4.665 MB / 0.6142 GB, free: 14.53 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)