Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0011/0.0011, allocations: 179.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.164/1.164, allocations: 194.5 MB / 211.6 MB, free: 3.035 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001685/0.001685, allocations: 111.7 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.000288, allocations: 11.98 kB / 310.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07733/0.07764, allocations: 44.5 MB / 355.1 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5861/0.6637, allocations: 321.5 MB / 0.6607 GB, free: 13.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.6641, allocations: 97.53 kB / 0.6608 GB, free: 13.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.409/1.073, allocations: 141.9 MB / 0.7994 GB, free: 45.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.023e-06/1.073, allocations: 0 / 0.7994 GB, free: 45.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5e-05/1.073, allocations: 19.94 kB / 0.7994 GB, free: 45.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002083/1.075, allocations: 1.176 MB / 0.8006 GB, free: 43.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/1.075, allocations: 8.031 kB / 0.8006 GB, free: 43.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002991/1.076, allocations: 98.92 kB / 0.8007 GB, free: 43.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/1.077, allocations: 0.6397 MB / 0.8013 GB, free: 43.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.846e-05/1.077, allocations: 96.39 kB / 0.8014 GB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.041e-05/1.077, allocations: 51.84 kB / 0.8015 GB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009768/1.078, allocations: 0.8055 MB / 0.8022 GB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/1.078, allocations: 0 / 0.8022 GB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/1.078, allocations: 27.98 kB / 0.8023 GB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.703e-05/1.078, allocations: 40.92 kB / 0.8023 GB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008447/1.079, allocations: 0.6752 MB / 0.803 GB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/1.083, allocations: 3.416 MB / 0.8063 GB, free: 37.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004994/1.083, allocations: 403.2 kB / 0.8067 GB, free: 37.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001267/1.084, allocations: 1.304 MB / 0.808 GB, free: 35.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003449/1.085, allocations: 300.8 kB / 0.8082 GB, free: 35.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 1.753e-06/1.085, allocations: 0 / 0.8082 GB, free: 35.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.003044/1.088, allocations: 1.802 MB / 0.81 GB, free: 33.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/1.088, allocations: 158.5 kB / 0.8102 GB, free: 33.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005475/1.088, allocations: 0.6205 MB / 0.8108 GB, free: 32.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/1.089, allocations: 37.7 kB / 0.8108 GB, free: 32.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/1.089, allocations: 414.6 kB / 0.8112 GB, free: 32.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.825e-05/1.089, allocations: 142.1 kB / 0.8113 GB, free: 32.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/1.089, allocations: 16 kB / 0.8113 GB, free: 32.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.192e-05/1.089, allocations: 390.7 kB / 0.8117 GB, free: 31.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/1.089, allocations: 249.9 kB / 0.812 GB, free: 31.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/1.09, allocations: 0.5303 MB / 0.8125 GB, free: 30.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003892/1.09, allocations: 352.1 kB / 0.8128 GB, free: 30.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/1.09, allocations: 4 kB / 0.8128 GB, free: 30.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001273/1.091, allocations: 0.9389 MB / 0.8137 GB, free: 29.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000506/1.092, allocations: 3.519 MB / 0.8172 GB, free: 25.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/1.092, allocations: 8 kB / 0.8172 GB, free: 25.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005457/1.092, allocations: 132.8 kB / 0.8173 GB, free: 25.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/1.093, allocations: 151.7 kB / 0.8174 GB, free: 25.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004339/1.093, allocations: 0.6693 MB / 0.8181 GB, free: 24.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/1.094, allocations: 55.94 kB / 0.8182 GB, free: 24.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.028e-05/1.094, allocations: 43.98 kB / 0.8182 GB, free: 24.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/1.094, allocations: 4 kB / 0.8182 GB, free: 24.79 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001326/1.095, allocations: 0.8755 MB / 0.8191 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/1.095, allocations: 11.94 kB / 0.8191 GB, free: 23.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/1.096, allocations: 121.2 kB / 0.8192 GB, free: 23.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/1.096, allocations: 151.7 kB / 0.8193 GB, free: 23.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003518/1.096, allocations: 0.6538 MB / 0.82 GB, free: 22.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/1.097, allocations: 59.97 kB / 0.82 GB, free: 22.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/1.097, allocations: 36 kB / 0.8201 GB, free: 22.85 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004321/1.097, allocations: 391.9 kB / 0.8204 GB, free: 22.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/1.098, allocations: 75.06 kB / 0.8205 GB, free: 22.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/1.099, allocations: 0.6646 MB / 0.8212 GB, free: 21.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/1.099, allocations: 7.938 kB / 0.8212 GB, free: 21.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.099, allocations: 4 kB / 0.8212 GB, free: 21.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/1.099, allocations: 3.984 kB / 0.8212 GB, free: 21.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/1.1, allocations: 1.339 MB / 0.8225 GB, free: 20.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/1.1, allocations: 0 / 0.8225 GB, free: 20.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/1.101, allocations: 63.91 kB / 0.8225 GB, free: 20.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004435/1.101, allocations: 124.8 kB / 0.8227 GB, free: 20.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/1.101, allocations: 12 kB / 0.8227 GB, free: 20.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003815/1.102, allocations: 0.6616 MB / 0.8233 GB, free: 19.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.102, allocations: 3.938 kB / 0.8233 GB, free: 19.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/1.103, allocations: 1.013 MB / 0.8243 GB, free: 18.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/1.103, allocations: 144.2 kB / 0.8244 GB, free: 18.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.384e-05/1.103, allocations: 15.98 kB / 0.8245 GB, free: 18.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000374/1.103, allocations: 36.11 kB / 0.8245 GB, free: 18.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.709e-05/1.103, allocations: 39.89 kB / 0.8245 GB, free: 18.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/1.103, allocations: 16 kB / 0.8245 GB, free: 18.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000444/1.104, allocations: 479 kB / 0.825 GB, free: 17.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.104, allocations: 0 / 0.825 GB, free: 17.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001562/1.105, allocations: 0.5659 MB / 0.8256 GB, free: 17.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001052/1.107, allocations: 0.5736 MB / 0.8261 GB, free: 16.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001708/1.108, allocations: 1.19 MB / 0.8273 GB, free: 15.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/1.108, allocations: 0 / 0.8273 GB, free: 15.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004864/1.109, allocations: 351.1 kB / 0.8276 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/1.11, allocations: 248.7 kB / 0.8278 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/1.112, allocations: 1.751 MB / 0.8296 GB, free: 12.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/1.112, allocations: 0.9811 MB / 0.8305 GB, free: 11.85 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006685/1.113, allocations: 229.7 kB / 0.8307 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/1.113, allocations: 59.42 kB / 0.8308 GB, free: 11.57 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/1.113, allocations: 4 kB / 0.8308 GB, free: 11.56 MB / 410.7 MB Notification: Performance of Templates: time 0.1654/1.278, allocations: 15.33 MB / 0.8458 GB, free: 90.38 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)