Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.961/0.961, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002219/0.002219, allocations: 147.4 kB / 149.1 MB, free: 0.9531 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.957e-05, allocations: 4 kB / 180.2 MB, free: 17.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06074/0.06079, allocations: 25.18 MB / 205.4 MB, free: 8.418 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7425/0.8033, allocations: 238.3 MB / 443.7 MB, free: 63.29 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.8036, allocations: 72.66 kB / 443.7 MB, free: 63.29 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7139/1.518, allocations: 177 MB / 0.6062 GB, free: 37.24 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.263e-06/1.518, allocations: 0 / 0.6062 GB, free: 37.24 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.289e-05/1.518, allocations: 27.53 kB / 0.6062 GB, free: 37.24 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.002901/1.521, allocations: 1.225 MB / 0.6074 GB, free: 36.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/1.521, allocations: 14.66 kB / 0.6074 GB, free: 36.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/1.521, allocations: 101.3 kB / 0.6075 GB, free: 36.63 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/1.522, allocations: 0.7386 MB / 0.6082 GB, free: 36.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/1.522, allocations: 43.69 kB / 0.6083 GB, free: 36.38 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.833e-05/1.522, allocations: 64.48 kB / 0.6083 GB, free: 36.38 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/1.524, allocations: 0.9754 MB / 0.6093 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/1.524, allocations: 0 / 0.6093 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.953e-05/1.524, allocations: 29.16 kB / 0.6093 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/1.524, allocations: 65.28 kB / 0.6094 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/1.526, allocations: 0.9039 MB / 0.6102 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00547/1.532, allocations: 4.383 MB / 0.6145 GB, free: 33.71 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006922/1.532, allocations: 0.5219 MB / 0.615 GB, free: 33.69 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/1.533, allocations: 295.1 kB / 0.6153 GB, free: 33.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001952/1.535, allocations: 2.015 MB / 0.6173 GB, free: 32.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/1.535, allocations: 41.05 kB / 0.6173 GB, free: 32.3 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/1.535, allocations: 3.969 kB / 0.6173 GB, free: 32.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=44): time 0.002736/1.537, allocations: 1.397 MB / 0.6187 GB, free: 31.88 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/1.537, allocations: 158.2 kB / 0.6188 GB, free: 31.7 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007904/1.538, allocations: 0.6889 MB / 0.6195 GB, free: 31.55 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/1.538, allocations: 39.27 kB / 0.6196 GB, free: 31.52 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/1.539, allocations: 489.9 kB / 0.62 GB, free: 31.29 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/1.539, allocations: 161.3 kB / 0.6202 GB, free: 31.2 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/1.539, allocations: 20.44 kB / 0.6202 GB, free: 31.2 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/1.539, allocations: 391.2 kB / 0.6206 GB, free: 30.88 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000363/1.539, allocations: 270.8 kB / 0.6208 GB, free: 30.88 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005046/1.54, allocations: 0.6218 MB / 0.6214 GB, free: 30.44 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/1.54, allocations: 373 kB / 0.6218 GB, free: 30.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.54, allocations: 6.219 kB / 0.6218 GB, free: 30.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001379/1.542, allocations: 1.027 MB / 0.6228 GB, free: 30.32 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/1.542, allocations: 8.312 kB / 0.6228 GB, free: 30.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/1.542, allocations: 14.59 kB / 0.6228 GB, free: 30.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/1.544, allocations: 308.1 kB / 0.6231 GB, free: 30.3 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005476/1.544, allocations: 180.2 kB / 0.6233 GB, free: 30.3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008197/1.545, allocations: 1.303 MB / 0.6246 GB, free: 29.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007239/1.546, allocations: 65.73 kB / 0.6246 GB, free: 29.26 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.495e-05/1.546, allocations: 46.08 kB / 0.6247 GB, free: 29.26 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.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" 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: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002445/1.546, allocations: 181.3 kB / 0.6248 GB, free: 29.14 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/1.546, allocations: 83.56 kB / 0.6249 GB, free: 29.1 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/1.548, allocations: 0.769 MB / 0.6257 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/1.548, allocations: 5.594 kB / 0.6257 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.548, allocations: 2.312 kB / 0.6257 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/1.548, allocations: 3.656 kB / 0.6257 GB, free: 29.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/1.55, allocations: 1.495 MB / 0.6271 GB, free: 28.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/1.55, allocations: 0 / 0.6271 GB, free: 28.67 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003334/1.55, allocations: 75.66 kB / 0.6272 GB, free: 28.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/1.551, allocations: 273.9 kB / 0.6275 GB, free: 28.65 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/1.551, allocations: 16.44 kB / 0.6275 GB, free: 28.65 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007075/1.552, allocations: 1.293 MB / 0.6287 GB, free: 27.61 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/1.552, allocations: 0 / 0.6287 GB, free: 27.61 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/1.553, allocations: 1.056 MB / 0.6298 GB, free: 27.36 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/1.554, allocations: 169.8 kB / 0.6299 GB, free: 27.21 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/1.554, allocations: 16.41 kB / 0.63 GB, free: 27.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004328/1.554, allocations: 38.22 kB / 0.63 GB, free: 27.21 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/1.554, allocations: 58.23 kB / 0.6301 GB, free: 27.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/1.554, allocations: 17.16 kB / 0.6301 GB, free: 27.21 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0005506/1.555, allocations: 0.5219 MB / 0.6306 GB, free: 27.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.555, allocations: 0 / 0.6306 GB, free: 27.11 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001656/1.557, allocations: 0.5268 MB / 0.6311 GB, free: 27.01 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001417/1.558, allocations: 0.6884 MB / 0.6318 GB, free: 26.8 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/1.559, allocations: 0.6954 MB / 0.6324 GB, free: 26.79 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.559, allocations: 0 / 0.6324 GB, free: 26.79 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004606/1.56, allocations: 302.7 kB / 0.6327 GB, free: 26.79 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/1.561, allocations: 351.2 kB / 0.6331 GB, free: 26.78 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/1.563, allocations: 1.284 MB / 0.6343 GB, free: 26.45 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/1.564, allocations: 1.046 MB / 0.6353 GB, free: 25.74 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0007064/1.564, allocations: 241.1 kB / 0.6356 GB, free: 25.73 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/1.565, allocations: 70.62 kB / 0.6356 GB, free: 25.72 MB / 250.7 MB Notification: Performance of SimCode: time 4.91e-07/1.565, allocations: 2.156 kB / 0.6356 GB, free: 25.72 MB / 250.7 MB Notification: Performance of Templates: time 0.02821/1.593, allocations: 19.74 MB / 0.6549 GB, free: 24.41 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)