Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00416/0.004159, allocations: 170 kB / 15.11 MB, free: 5.977 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.135/1.135, allocations: 223.2 MB / 239 MB, free: 1.77 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.0008396/0.0008395, allocations: 103.7 kB / 290.2 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1461/0.1461, allocations: 28.83 MB / 370.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002655/0.0002655, allocations: 12 kB / 438.1 MB, free: 70.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07248/0.07276, allocations: 57.47 MB / 495.6 MB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.306, allocations: 80.28 MB / 0.5624 GB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001509/0.3062, allocations: 62.91 kB / 0.5624 GB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02359/0.3298, allocations: 12.33 MB / 0.5745 GB, free: 1.027 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3299, allocations: 0 / 0.5745 GB, free: 1.027 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.2e-05/0.3299, allocations: 28 kB / 0.5745 GB, free: 1 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001501/0.3314, allocations: 1.563 MB / 0.576 GB, free: 15.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.3314, allocations: 8.031 kB / 0.576 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.3316, allocations: 189.6 kB / 0.5762 GB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.3321, allocations: 0.5071 MB / 0.5767 GB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.314e-05/0.3322, allocations: 77.69 kB / 0.5768 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.3323, allocations: 95.3 kB / 0.5769 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001644/0.334, allocations: 1.195 MB / 0.578 GB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.334, allocations: 3.984 kB / 0.578 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-05/0.3341, allocations: 38.44 kB / 0.5781 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.163e-05/0.3341, allocations: 61.23 kB / 0.5781 GB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.336, allocations: 1.377 MB / 0.5795 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004303/0.3403, allocations: 3.035 MB / 0.5824 GB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.3418, allocations: 1.173 MB / 0.5836 GB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.679e-05/0.3419, allocations: 24.53 kB / 0.5836 GB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.3419, allocations: 46 kB / 0.5837 GB, free: 9.152 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 1.673e-06/0.3419, allocations: 0 / 0.5837 GB, free: 9.152 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002467/0.3444, allocations: 1.889 MB / 0.5855 GB, free: 7.652 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.3444, allocations: 59.92 kB / 0.5856 GB, free: 7.582 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.3455, allocations: 1.088 MB / 0.5866 GB, free: 6.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/0.3455, allocations: 33.33 kB / 0.5867 GB, free: 6.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/0.3459, allocations: 0.7742 MB / 0.5874 GB, free: 6.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.3461, allocations: 235.6 kB / 0.5876 GB, free: 6.027 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.32e-05/0.3461, allocations: 16.12 kB / 0.5877 GB, free: 6.023 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3463, allocations: 335.3 kB / 0.588 GB, free: 5.703 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007489/0.347, allocations: 0.557 MB / 0.5885 GB, free: 5.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008493/0.3479, allocations: 0.7369 MB / 0.5892 GB, free: 4.605 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008133/0.3487, allocations: 0.622 MB / 0.5898 GB, free: 4.141 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3487, allocations: 0 / 0.5898 GB, free: 4.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001968/0.3507, allocations: 1.533 MB / 0.5913 GB, free: 2.906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.3507, allocations: 8.75 kB / 0.5914 GB, free: 2.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3507, allocations: 8 kB / 0.5914 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3507, allocations: 12 kB / 0.5914 GB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005993/0.3513, allocations: 214.7 kB / 0.5916 GB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3514, allocations: 11.98 kB / 0.5916 GB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.3517, allocations: 97.03 kB / 0.5917 GB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3518, allocations: 90.91 kB / 0.5918 GB, free: 2.5 MB / 378.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0004562/0.3523, allocations: 386.1 kB / 0.5921 GB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.3524, allocations: 134.2 kB / 0.5923 GB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.3549, allocations: 1.692 MB / 0.5939 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3549, allocations: 8 kB / 0.5939 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3549, allocations: 0 / 0.5939 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3549, allocations: 3.984 kB / 0.5939 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002955/0.3579, allocations: 2.584 MB / 0.5964 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3579, allocations: 0 / 0.5964 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.3584, allocations: 158.4 kB / 0.5966 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3584, allocations: 0 / 0.5966 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.534e-05/0.3585, allocations: 26.36 kB / 0.5966 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.3585, allocations: 4.781 kB / 0.5966 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3585, allocations: 7.984 kB / 0.5966 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.3612, allocations: 2.318 MB / 0.5989 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.3614, allocations: 195.1 kB / 0.5991 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.719e-05/0.3615, allocations: 17.31 kB / 0.5991 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.3617, allocations: 33.09 kB / 0.5991 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.3619, allocations: 52 kB / 0.5992 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/0.3619, allocations: 80.59 kB / 0.5993 GB, free: 12.32 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008211/0.3628, allocations: 0.8603 MB / 0.6001 GB, free: 11.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3628, allocations: 0 / 0.6001 GB, free: 11.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005213/0.3633, allocations: 216 kB / 0.6003 GB, free: 11.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0001608/0.3635, allocations: 122.4 kB / 0.6004 GB, free: 11.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3647, allocations: 1.11 MB / 0.6015 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3647, allocations: 0 / 0.6015 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005886/0.3653, allocations: 0.5618 MB / 0.6021 GB, free: 9.969 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.3656, allocations: 53.39 kB / 0.6021 GB, free: 9.953 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.3689, allocations: 3.175 MB / 0.6052 GB, free: 6.949 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007872/0.3697, allocations: 1.331 MB / 0.6065 GB, free: 5.637 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000347/0.3701, allocations: 128.5 kB / 0.6066 GB, free: 5.512 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.3702, allocations: 43.44 kB / 0.6067 GB, free: 5.469 MB / 394.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3702, allocations: 0 / 0.6067 GB, free: 5.469 MB / 394.7 MB Notification: Performance of Templates: time 0.009246/0.3795, allocations: 4.594 MB / 0.6112 GB, free: 0.9062 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)