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.001506/0.001505, allocations: 187.9 kB / 16.41 MB, free: 5.723 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.951/1.951, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001141/0.001141, allocations: 90.86 kB / 270.9 MB, free: 8.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004134/0.0004135, allocations: 8 kB / 327 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3367, allocations: 47.57 MB / 374.5 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9897/1.327, allocations: 326.3 MB / 0.6844 GB, free: 105.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/1.327, allocations: 94.92 kB / 0.6845 GB, free: 105.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7641/2.091, allocations: 143.6 MB / 0.8247 GB, free: 100.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.186e-06/2.091, allocations: 0 / 0.8247 GB, free: 100.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.831e-05/2.091, allocations: 18.59 kB / 0.8247 GB, free: 100.9 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.003818/2.095, allocations: 1.177 MB / 0.8259 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/2.095, allocations: 7.719 kB / 0.8259 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007455/2.096, allocations: 101.5 kB / 0.826 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/2.098, allocations: 0.6051 MB / 0.8266 GB, free: 99.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/2.098, allocations: 104.2 kB / 0.8267 GB, free: 99.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/2.098, allocations: 44.3 kB / 0.8267 GB, free: 99.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/2.1, allocations: 0.8246 MB / 0.8275 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/2.1, allocations: 2.688 kB / 0.8275 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/2.1, allocations: 27.98 kB / 0.8275 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-05/2.101, allocations: 35.55 kB / 0.8276 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/2.102, allocations: 0.6879 MB / 0.8282 GB, free: 99.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007275/2.11, allocations: 3.411 MB / 0.8316 GB, free: 97.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/2.111, allocations: 425 kB / 0.832 GB, free: 97.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002823/2.114, allocations: 1.367 MB / 0.8333 GB, free: 96.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007543/2.115, allocations: 369 kB / 0.8337 GB, free: 96.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 4.979e-06/2.115, allocations: 4.891 kB / 0.8337 GB, free: 96.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.006841/2.121, allocations: 1.966 MB / 0.8356 GB, free: 96.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.966e-05/2.122, allocations: 268.6 kB / 0.8358 GB, free: 95.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/2.123, allocations: 0.6807 MB / 0.8365 GB, free: 95.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/2.123, allocations: 39.61 kB / 0.8365 GB, free: 95.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003613/2.124, allocations: 413.5 kB / 0.8369 GB, free: 95.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/2.124, allocations: 138.3 kB / 0.8371 GB, free: 95.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.543e-05/2.124, allocations: 13.69 kB / 0.8371 GB, free: 95.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.028e-05/2.124, allocations: 336.2 kB / 0.8374 GB, free: 95.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007267/2.125, allocations: 261.6 kB / 0.8376 GB, free: 95.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009618/2.126, allocations: 0.5051 MB / 0.8381 GB, free: 94.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009509/2.127, allocations: 362.7 kB / 0.8385 GB, free: 94.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/2.127, allocations: 0 / 0.8385 GB, free: 94.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002902/2.13, allocations: 0.9333 MB / 0.8394 GB, free: 94.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006269/2.13, allocations: 2.47 MB / 0.8418 GB, free: 92.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/2.131, allocations: 7.688 kB / 0.8418 GB, free: 92.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/2.132, allocations: 133.5 kB / 0.8419 GB, free: 92.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/2.133, allocations: 140.5 kB / 0.8421 GB, free: 92.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009095/2.134, allocations: 0.685 MB / 0.8428 GB, free: 91.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/2.135, allocations: 60.88 kB / 0.8428 GB, free: 91.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/2.135, allocations: 35.66 kB / 0.8428 GB, free: 91.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/2.135, allocations: 3.688 kB / 0.8428 GB, free: 91.56 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002868/2.138, allocations: 0.9201 MB / 0.8437 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/2.138, allocations: 6.812 kB / 0.8438 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006049/2.139, allocations: 110 kB / 0.8439 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009797/2.14, allocations: 143.1 kB / 0.844 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007132/2.141, allocations: 0.648 MB / 0.8446 GB, free: 90.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/2.142, allocations: 50.2 kB / 0.8447 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/2.142, allocations: 38.25 kB / 0.8447 GB, free: 90.98 MB / 426.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 = tank.T_start 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: 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 () * Number of clocked 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.0009089/2.143, allocations: 388 kB / 0.8451 GB, free: 90.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/2.143, allocations: 82.28 kB / 0.8452 GB, free: 90.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/2.146, allocations: 0.7422 MB / 0.8459 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/2.146, allocations: 3.906 kB / 0.8459 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/2.146, allocations: 0 / 0.8459 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/2.146, allocations: 10.78 kB / 0.8459 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/2.15, allocations: 1.468 MB / 0.8473 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/2.15, allocations: 0 / 0.8473 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005491/2.15, allocations: 58.81 kB / 0.8474 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008198/2.151, allocations: 130.2 kB / 0.8475 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/2.151, allocations: 21.28 kB / 0.8475 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008036/2.152, allocations: 0.6616 MB / 0.8482 GB, free: 89.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/2.152, allocations: 0 / 0.8482 GB, free: 89.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/2.155, allocations: 1.109 MB / 0.8493 GB, free: 89.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004199/2.155, allocations: 161.4 kB / 0.8494 GB, free: 89.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/2.156, allocations: 17.66 kB / 0.8494 GB, free: 89.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/2.157, allocations: 37.42 kB / 0.8495 GB, free: 89.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/2.157, allocations: 32.92 kB / 0.8495 GB, free: 89.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/2.157, allocations: 23.42 kB / 0.8495 GB, free: 89.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001125/2.158, allocations: 0.5371 MB / 0.85 GB, free: 89.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.72e-07/2.158, allocations: 0 / 0.85 GB, free: 89.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002904/2.161, allocations: 0.5854 MB / 0.8506 GB, free: 89.16 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) * Number of clocked states: 0 () * 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.002008/2.163, allocations: 0.6011 MB / 0.8512 GB, free: 88.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003257/2.167, allocations: 1.152 MB / 0.8523 GB, free: 88.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/2.167, allocations: 3.375 kB / 0.8523 GB, free: 88.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/2.168, allocations: 349.2 kB / 0.8527 GB, free: 88.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/2.171, allocations: 317.8 kB / 0.853 GB, free: 88.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/2.174, allocations: 1.736 MB / 0.8547 GB, free: 88.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/2.175, allocations: 0.975 MB / 0.8556 GB, free: 87.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/2.175, allocations: 65.45 kB / 0.8557 GB, free: 87.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/2.175, allocations: 0 / 0.8557 GB, free: 87.35 MB / 426.7 MB Notification: Performance of Templates: time 0.03655/2.211, allocations: 17.79 MB / 0.873 GB, free: 86.32 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