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.001704/0.001703, allocations: 171.6 kB / 14.1 MB, free: 1.219 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.816/1.816, allocations: 205.2 MB / 219.8 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009875/0.0009876, allocations: 90.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.083e-05/3.085e-05, allocations: 4 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 47.58 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8306/0.9368, allocations: 326.2 MB / 0.6799 GB, free: 14.46 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.9371, allocations: 89.2 kB / 0.68 GB, free: 14.41 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5196/1.457, allocations: 143.1 MB / 0.8197 GB, free: 46.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.664e-06/1.457, allocations: 4 kB / 0.8197 GB, free: 46.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.972e-05/1.457, allocations: 16 kB / 0.8198 GB, free: 46.96 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.002148/1.459, allocations: 1.077 MB / 0.8208 GB, free: 45.83 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/1.459, allocations: 8.031 kB / 0.8208 GB, free: 45.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003364/1.459, allocations: 98.95 kB / 0.8209 GB, free: 45.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/1.46, allocations: 0.6086 MB / 0.8215 GB, free: 45.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.297e-05/1.461, allocations: 92.39 kB / 0.8216 GB, free: 44.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-05/1.461, allocations: 47.98 kB / 0.8216 GB, free: 44.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/1.462, allocations: 0.8065 MB / 0.8224 GB, free: 44.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/1.462, allocations: 7.938 kB / 0.8224 GB, free: 44.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.834e-05/1.462, allocations: 20 kB / 0.8225 GB, free: 44.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.771e-05/1.462, allocations: 40.97 kB / 0.8225 GB, free: 43.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008583/1.463, allocations: 0.6714 MB / 0.8232 GB, free: 43.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00374/1.466, allocations: 3.415 MB / 0.8265 GB, free: 39.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005813/1.467, allocations: 427.1 kB / 0.8269 GB, free: 39.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/1.467, allocations: 261 kB / 0.8271 GB, free: 39.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001399/1.469, allocations: 1.417 MB / 0.8285 GB, free: 37.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004068/1.469, allocations: 361 kB / 0.8289 GB, free: 37.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 1.964e-06/1.469, allocations: 4 kB / 0.8289 GB, free: 37.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.002587/1.472, allocations: 1.578 MB / 0.8304 GB, free: 35.42 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/1.472, allocations: 269 kB / 0.8307 GB, free: 35.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000669/1.473, allocations: 0.6795 MB / 0.8313 GB, free: 34.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/1.473, allocations: 37.7 kB / 0.8314 GB, free: 34.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/1.473, allocations: 399.2 kB / 0.8318 GB, free: 33.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.102e-05/1.473, allocations: 138.1 kB / 0.8319 GB, free: 33.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/1.473, allocations: 12 kB / 0.8319 GB, free: 33.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.496e-05/1.473, allocations: 398.7 kB / 0.8323 GB, free: 33.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000337/1.473, allocations: 253.5 kB / 0.8325 GB, free: 33.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004397/1.474, allocations: 0.4946 MB / 0.833 GB, free: 32.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/1.474, allocations: 348.4 kB / 0.8333 GB, free: 32.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/1.474, allocations: 0 / 0.8333 GB, free: 32.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001418/1.476, allocations: 0.9763 MB / 0.8343 GB, free: 31.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004277/1.476, allocations: 2.472 MB / 0.8367 GB, free: 28.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/1.476, allocations: 4 kB / 0.8367 GB, free: 28.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005262/1.477, allocations: 132.8 kB / 0.8368 GB, free: 28.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004564/1.477, allocations: 139.8 kB / 0.837 GB, free: 28.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004532/1.478, allocations: 0.6811 MB / 0.8376 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006103/1.478, allocations: 59.88 kB / 0.8377 GB, free: 27.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-05/1.478, allocations: 35.98 kB / 0.8377 GB, free: 27.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.066e-06/1.478, allocations: 4 kB / 0.8377 GB, free: 27.49 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001459/1.48, allocations: 0.913 MB / 0.8386 GB, free: 26.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/1.48, allocations: 8 kB / 0.8386 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003599/1.48, allocations: 116.8 kB / 0.8387 GB, free: 26.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/1.481, allocations: 136 kB / 0.8389 GB, free: 26.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003738/1.481, allocations: 0.6615 MB / 0.8395 GB, free: 25.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/1.482, allocations: 51.91 kB / 0.8396 GB, free: 25.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/1.482, allocations: 40.05 kB / 0.8396 GB, free: 25.53 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.0002644/1.482, allocations: 190.9 kB / 0.8398 GB, free: 25.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/1.482, allocations: 87.05 kB / 0.8399 GB, free: 25.24 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/1.483, allocations: 0.7439 MB / 0.8406 GB, free: 24.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/1.483, allocations: 4 kB / 0.8406 GB, free: 24.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/1.483, allocations: 0 / 0.8406 GB, free: 24.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/1.483, allocations: 0 / 0.8406 GB, free: 24.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/1.485, allocations: 1.478 MB / 0.842 GB, free: 22.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/1.485, allocations: 4 kB / 0.842 GB, free: 22.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/1.486, allocations: 55.91 kB / 0.8421 GB, free: 22.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004302/1.486, allocations: 124.8 kB / 0.8422 GB, free: 22.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/1.486, allocations: 19.98 kB / 0.8422 GB, free: 22.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000383/1.486, allocations: 0.6578 MB / 0.8429 GB, free: 22.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.486, allocations: 0 / 0.8429 GB, free: 22.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/1.488, allocations: 1.091 MB / 0.8439 GB, free: 20.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/1.488, allocations: 164.2 kB / 0.8441 GB, free: 20.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/1.488, allocations: 19.98 kB / 0.8441 GB, free: 20.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/1.488, allocations: 31.89 kB / 0.8441 GB, free: 20.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.662e-05/1.489, allocations: 36 kB / 0.8442 GB, free: 20.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.671e-05/1.489, allocations: 31.94 kB / 0.8442 GB, free: 20.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005682/1.489, allocations: 0.5303 MB / 0.8447 GB, free: 20.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.489, allocations: 0 / 0.8447 GB, free: 20.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001882/1.491, allocations: 0.5855 MB / 0.8453 GB, free: 19.5 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.001343/1.492, allocations: 0.5991 MB / 0.8459 GB, free: 18.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002057/1.495, allocations: 1.17 MB / 0.847 GB, free: 17.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/1.495, allocations: 0 / 0.847 GB, free: 17.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/1.495, allocations: 344.2 kB / 0.8474 GB, free: 17.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/1.497, allocations: 307.6 kB / 0.8477 GB, free: 17.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/1.498, allocations: 1.066 MB / 0.8487 GB, free: 15.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/1.499, allocations: 0.9829 MB / 0.8497 GB, free: 14.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009647/1.5, allocations: 313.6 kB / 0.85 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/1.5, allocations: 51.42 kB / 0.85 GB, free: 14.58 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/1.5, allocations: 0 / 0.85 GB, free: 14.58 MB / 426.7 MB Notification: Performance of Templates: time 0.2221/1.722, allocations: 19.8 MB / 0.8693 GB, free: 93.54 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