Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001596/0.001596, allocations: 177.9 kB / 8.696 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008785/0.0008787, allocations: 82.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.045e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 47.59 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8491/0.9653, allocations: 325.8 MB / 0.6727 GB, free: 4.355 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.9656, allocations: 93.97 kB / 0.6728 GB, free: 4.309 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5578/1.523, allocations: 142.1 MB / 0.8116 GB, free: 59.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.523, allocations: 0 / 0.8116 GB, free: 59.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.254e-05/1.524, allocations: 20 kB / 0.8116 GB, free: 59.19 MB / 426.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.00251/1.526, allocations: 1.073 MB / 0.8126 GB, free: 58.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/1.526, allocations: 8.031 kB / 0.8126 GB, free: 58.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003673/1.527, allocations: 103 kB / 0.8127 GB, free: 57.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/1.528, allocations: 0.6128 MB / 0.8133 GB, free: 57.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.332e-05/1.528, allocations: 80.7 kB / 0.8134 GB, free: 57.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.317e-05/1.528, allocations: 31.94 kB / 0.8135 GB, free: 57.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000797/1.529, allocations: 0.5921 MB / 0.814 GB, free: 56.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009097/1.529, allocations: 0.746 MB / 0.8148 GB, free: 55.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/1.53, allocations: 4 kB / 0.8148 GB, free: 55.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/1.53, allocations: 0 / 0.8148 GB, free: 55.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.042e-05/1.53, allocations: 49.28 kB / 0.8148 GB, free: 55.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/1.533, allocations: 3.29 MB / 0.818 GB, free: 52.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/1.534, allocations: 407.2 kB / 0.8184 GB, free: 51.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/1.534, allocations: 253.1 kB / 0.8187 GB, free: 51.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001354/1.535, allocations: 1.382 MB / 0.82 GB, free: 50.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003755/1.536, allocations: 360.8 kB / 0.8203 GB, free: 49.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 1.463e-06/1.536, allocations: 4 kB / 0.8203 GB, free: 49.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.002808/1.539, allocations: 1.428 MB / 0.8217 GB, free: 48.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/1.539, allocations: 268.9 kB / 0.822 GB, free: 47.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005648/1.539, allocations: 0.5386 MB / 0.8225 GB, free: 47.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.701e-05/1.539, allocations: 25.7 kB / 0.8225 GB, free: 47.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/1.54, allocations: 415.2 kB / 0.8229 GB, free: 46.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.01e-05/1.54, allocations: 130.1 kB / 0.8231 GB, free: 46.76 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/1.54, allocations: 8 kB / 0.8231 GB, free: 46.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/1.54, allocations: 378.8 kB / 0.8234 GB, free: 46.37 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003088/1.54, allocations: 245.5 kB / 0.8237 GB, free: 46.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/1.541, allocations: 498.3 kB / 0.8241 GB, free: 45.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/1.543, allocations: 0.756 MB / 0.8249 GB, free: 44.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.543, allocations: 0 / 0.8249 GB, free: 44.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003682/1.547, allocations: 1.337 MB / 0.8262 GB, free: 43.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004951/1.548, allocations: 2.477 MB / 0.8286 GB, free: 40.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/1.548, allocations: 4 kB / 0.8286 GB, free: 40.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003656/1.548, allocations: 120.7 kB / 0.8287 GB, free: 40.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/1.548, allocations: 131.8 kB / 0.8289 GB, free: 40.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005945/1.549, allocations: 0.7123 MB / 0.8296 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006736/1.55, allocations: 36.03 kB / 0.8296 GB, free: 39.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/1.55, allocations: 39.98 kB / 0.8296 GB, free: 39.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/1.55, allocations: 11.89 kB / 0.8296 GB, free: 39.68 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003599/1.553, allocations: 1.231 MB / 0.8308 GB, free: 38.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.554, allocations: 8 kB / 0.8308 GB, free: 38.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003108/1.554, allocations: 113.4 kB / 0.831 GB, free: 38.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004226/1.554, allocations: 135.8 kB / 0.8311 GB, free: 38.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003975/1.555, allocations: 0.6655 MB / 0.8317 GB, free: 37.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000634/1.555, allocations: 43.89 kB / 0.8318 GB, free: 37.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.906e-05/1.555, allocations: 35.98 kB / 0.8318 GB, free: 37.42 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" 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 = tank.T_start 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: 28 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * 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.0002833/1.556, allocations: 183.3 kB / 0.832 GB, free: 37.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/1.556, allocations: 71.16 kB / 0.8321 GB, free: 37.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/1.557, allocations: 0.672 MB / 0.8327 GB, free: 36.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/1.557, allocations: 8 kB / 0.8327 GB, free: 36.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/1.557, allocations: 3.953 kB / 0.8327 GB, free: 36.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.557, allocations: 0 / 0.8327 GB, free: 36.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/1.559, allocations: 1.356 MB / 0.834 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.559, allocations: 0 / 0.834 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/1.559, allocations: 64 kB / 0.8341 GB, free: 34.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002956/1.56, allocations: 108.8 kB / 0.8342 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/1.56, allocations: 7.953 kB / 0.8342 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004691/1.56, allocations: 0.685 MB / 0.8349 GB, free: 34.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.56, allocations: 0 / 0.8349 GB, free: 34.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/1.561, allocations: 1.031 MB / 0.8359 GB, free: 33.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001482/1.562, allocations: 156.4 kB / 0.836 GB, free: 32.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/1.562, allocations: 4 kB / 0.836 GB, free: 32.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/1.562, allocations: 31.88 kB / 0.8361 GB, free: 32.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.256e-05/1.562, allocations: 39.88 kB / 0.8361 GB, free: 32.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/1.562, allocations: 23.98 kB / 0.8361 GB, free: 32.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004008/1.563, allocations: 427.1 kB / 0.8365 GB, free: 32.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-05/1.563, allocations: 0 / 0.8365 GB, free: 32.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001784/1.565, allocations: 0.5464 MB / 0.8371 GB, free: 31.88 MB / 426.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.001134/1.566, allocations: 0.5927 MB / 0.8377 GB, free: 31.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00149/1.567, allocations: 1.072 MB / 0.8387 GB, free: 30.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.567, allocations: 0 / 0.8387 GB, free: 30.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/1.568, allocations: 313.8 kB / 0.839 GB, free: 29.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/1.569, allocations: 235.6 kB / 0.8392 GB, free: 29.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/1.57, allocations: 1.016 MB / 0.8402 GB, free: 28.58 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/1.571, allocations: 0.9819 MB / 0.8412 GB, free: 27.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008531/1.571, allocations: 273 kB / 0.8414 GB, free: 27.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/1.572, allocations: 43.44 kB / 0.8415 GB, free: 27.25 MB / 426.7 MB Notification: Performance of SimCode: time 3.51e-07/1.572, allocations: 0 / 0.8415 GB, free: 27.25 MB / 426.7 MB Notification: Performance of Templates: time 0.02349/1.595, allocations: 16.58 MB / 0.8577 GB, free: 10.64 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches