Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001528/0.001528, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.2 MB / 219.4 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.001869/0.001868, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.838e-05/2.84e-05, allocations: 3.984 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09095, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9784/1.069, allocations: 326.2 MB / 0.679 GB, free: 14.69 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/1.07, allocations: 89.56 kB / 0.6791 GB, free: 14.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7534/1.823, allocations: 143.1 MB / 0.8188 GB, free: 47.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.773e-06/1.823, allocations: 3.938 kB / 0.8188 GB, free: 47.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.766e-05/1.823, allocations: 20 kB / 0.8188 GB, free: 47.35 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.002706/1.826, allocations: 1.073 MB / 0.8199 GB, free: 46.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/1.826, allocations: 8.031 kB / 0.8199 GB, free: 46.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004876/1.827, allocations: 98.95 kB / 0.82 GB, free: 46.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00159/1.828, allocations: 0.6009 MB / 0.8206 GB, free: 45.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.492e-05/1.828, allocations: 104.3 kB / 0.8207 GB, free: 45.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/1.828, allocations: 51.98 kB / 0.8207 GB, free: 45.31 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/1.83, allocations: 0.8064 MB / 0.8215 GB, free: 44.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/1.83, allocations: 4 kB / 0.8215 GB, free: 44.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/1.83, allocations: 23.98 kB / 0.8215 GB, free: 44.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.304e-05/1.83, allocations: 40.97 kB / 0.8216 GB, free: 44.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/1.832, allocations: 0.6675 MB / 0.8222 GB, free: 43.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006437/1.838, allocations: 3.423 MB / 0.8256 GB, free: 40.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000968/1.839, allocations: 427.1 kB / 0.826 GB, free: 39.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005405/1.84, allocations: 261.1 kB / 0.8262 GB, free: 39.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002418/1.842, allocations: 1.405 MB / 0.8276 GB, free: 37.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/1.843, allocations: 369.2 kB / 0.828 GB, free: 37.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.555e-06/1.843, allocations: 0 / 0.828 GB, free: 37.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.004405/1.848, allocations: 1.582 MB / 0.8295 GB, free: 35.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/1.848, allocations: 269 kB / 0.8298 GB, free: 35.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/1.849, allocations: 0.6756 MB / 0.8304 GB, free: 34.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/1.849, allocations: 45.64 kB / 0.8305 GB, free: 34.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002781/1.849, allocations: 409.6 kB / 0.8309 GB, free: 34.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/1.849, allocations: 138.1 kB / 0.831 GB, free: 34.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/1.849, allocations: 16 kB / 0.831 GB, free: 34.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.302e-05/1.85, allocations: 342.8 kB / 0.8313 GB, free: 33.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006111/1.85, allocations: 253.5 kB / 0.8316 GB, free: 33.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007633/1.851, allocations: 0.5023 MB / 0.8321 GB, free: 32.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007392/1.852, allocations: 348.7 kB / 0.8324 GB, free: 32.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/1.852, allocations: 0 / 0.8324 GB, free: 32.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002414/1.854, allocations: 0.926 MB / 0.8333 GB, free: 31.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004873/1.855, allocations: 2.476 MB / 0.8357 GB, free: 29.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/1.855, allocations: 8 kB / 0.8357 GB, free: 29.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008141/1.856, allocations: 124.8 kB / 0.8358 GB, free: 28.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000945/1.856, allocations: 135.8 kB / 0.836 GB, free: 28.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007171/1.857, allocations: 0.685 MB / 0.8366 GB, free: 28.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/1.858, allocations: 51.88 kB / 0.8367 GB, free: 28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/1.859, allocations: 43.92 kB / 0.8367 GB, free: 27.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/1.859, allocations: 0 / 0.8367 GB, free: 27.96 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002525/1.861, allocations: 0.9051 MB / 0.8376 GB, free: 27.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/1.861, allocations: 8 kB / 0.8376 GB, free: 27.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005489/1.862, allocations: 113.2 kB / 0.8377 GB, free: 26.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008666/1.863, allocations: 135.8 kB / 0.8379 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000599/1.863, allocations: 0.6577 MB / 0.8385 GB, free: 26.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008213/1.864, allocations: 47.94 kB / 0.8386 GB, free: 26.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.973e-05/1.864, allocations: 43.98 kB / 0.8386 GB, free: 26.01 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.0003467/1.864, allocations: 190.8 kB / 0.8388 GB, free: 25.81 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/1.865, allocations: 87.05 kB / 0.8389 GB, free: 25.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/1.867, allocations: 0.7324 MB / 0.8396 GB, free: 24.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/1.867, allocations: 4 kB / 0.8396 GB, free: 24.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.867, allocations: 0 / 0.8396 GB, free: 24.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/1.867, allocations: 0 / 0.8396 GB, free: 24.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/1.87, allocations: 1.478 MB / 0.841 GB, free: 23.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.87, allocations: 0 / 0.841 GB, free: 23.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005319/1.871, allocations: 59.97 kB / 0.8411 GB, free: 23.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007379/1.871, allocations: 124.8 kB / 0.8412 GB, free: 23.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.532e-05/1.871, allocations: 15.92 kB / 0.8412 GB, free: 23.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006311/1.872, allocations: 0.6655 MB / 0.8419 GB, free: 22.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.872, allocations: 0 / 0.8419 GB, free: 22.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/1.874, allocations: 1.099 MB / 0.8429 GB, free: 21.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/1.875, allocations: 152.2 kB / 0.8431 GB, free: 21.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/1.875, allocations: 19.98 kB / 0.8431 GB, free: 21.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008819/1.876, allocations: 32.05 kB / 0.8431 GB, free: 21.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/1.876, allocations: 39.94 kB / 0.8432 GB, free: 21.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.148e-05/1.876, allocations: 27.94 kB / 0.8432 GB, free: 21.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009355/1.877, allocations: 0.5226 MB / 0.8437 GB, free: 20.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.877, allocations: 0 / 0.8437 GB, free: 20.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002251/1.879, allocations: 0.5855 MB / 0.8443 GB, free: 20 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.001646/1.881, allocations: 0.6029 MB / 0.8449 GB, free: 19.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002911/1.884, allocations: 1.131 MB / 0.846 GB, free: 18.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.884, allocations: 0 / 0.846 GB, free: 18.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000906/1.885, allocations: 348.1 kB / 0.8463 GB, free: 17.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/1.887, allocations: 320 kB / 0.8466 GB, free: 17.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/1.89, allocations: 1.087 MB / 0.8477 GB, free: 16.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/1.89, allocations: 0.9776 MB / 0.8486 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/1.89, allocations: 59.42 kB / 0.8487 GB, free: 15.39 MB / 426.7 MB Notification: Performance of SimCode: time 9.71e-07/1.89, allocations: 0 / 0.8487 GB, free: 15.39 MB / 426.7 MB Notification: Performance of Templates: time 0.3904/2.281, allocations: 17.73 MB / 0.866 GB, free: 93.36 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches