Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000878/0.000878, allocations: 96.05 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003165/0.0003168, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.804/1.097, allocations: 326.9 MB / 0.7113 GB, free: 120.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003288/1.097, allocations: 94.19 kB / 0.7114 GB, free: 120.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3139/1.411, allocations: 146.6 MB / 0.8546 GB, free: 356 kB / 458.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.411, allocations: 0 / 0.8546 GB, free: 356 kB / 458.7 MB Notification: Performance of Transformations before backend: time 9.277e-05/1.411, allocations: 19.98 kB / 0.8546 GB, free: 336 kB / 458.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.2825/1.693, allocations: 1.178 MB / 0.8557 GB, free: 110.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/1.694, allocations: 9.156 kB / 0.8557 GB, free: 110.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009047/1.694, allocations: 100.4 kB / 0.8558 GB, free: 110.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/1.697, allocations: 0.6065 MB / 0.8564 GB, free: 109.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/1.697, allocations: 95.42 kB / 0.8565 GB, free: 109.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002792/1.697, allocations: 49.94 kB / 0.8566 GB, free: 109.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/1.699, allocations: 0.8165 MB / 0.8574 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/1.699, allocations: 6.844 kB / 0.8574 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/1.699, allocations: 25.59 kB / 0.8574 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.608e-05/1.699, allocations: 41.53 kB / 0.8574 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/1.701, allocations: 0.6807 MB / 0.8581 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006153/1.707, allocations: 3.41 MB / 0.8614 GB, free: 107.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008103/1.708, allocations: 427.4 kB / 0.8618 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002522/1.71, allocations: 1.378 MB / 0.8632 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006241/1.711, allocations: 369 kB / 0.8635 GB, free: 106.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 2.945e-06/1.711, allocations: 3.094 kB / 0.8635 GB, free: 106.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.004848/1.716, allocations: 1.969 MB / 0.8655 GB, free: 106.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/1.716, allocations: 272.4 kB / 0.8657 GB, free: 105.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/1.717, allocations: 0.679 MB / 0.8664 GB, free: 105.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.224e-05/1.717, allocations: 38.55 kB / 0.8664 GB, free: 105.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002961/1.718, allocations: 401 kB / 0.8668 GB, free: 105.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/1.718, allocations: 144.5 kB / 0.8669 GB, free: 105.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/1.718, allocations: 11.44 kB / 0.8669 GB, free: 105.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/1.718, allocations: 384.6 kB / 0.8673 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000408/1.718, allocations: 264.3 kB / 0.8676 GB, free: 105.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000571/1.719, allocations: 0.5047 MB / 0.8681 GB, free: 104.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005256/1.719, allocations: 351.2 kB / 0.8684 GB, free: 104.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/1.719, allocations: 0 / 0.8684 GB, free: 104.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001769/1.721, allocations: 0.9821 MB / 0.8693 GB, free: 104.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007608/1.722, allocations: 2.475 MB / 0.8718 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/1.722, allocations: 13.25 kB / 0.8718 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000653/1.723, allocations: 134.4 kB / 0.8719 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/1.723, allocations: 141 kB / 0.872 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005909/1.724, allocations: 0.676 MB / 0.8727 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008313/1.725, allocations: 47.17 kB / 0.8727 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.314e-05/1.725, allocations: 40.08 kB / 0.8728 GB, free: 101.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/1.725, allocations: 2.469 kB / 0.8728 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001622/1.726, allocations: 0.9231 MB / 0.8737 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/1.726, allocations: 8.562 kB / 0.8737 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/1.727, allocations: 122.9 kB / 0.8738 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/1.727, allocations: 135.8 kB / 0.8739 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005003/1.728, allocations: 0.6616 MB / 0.8746 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007163/1.729, allocations: 51.78 kB / 0.8746 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.562e-05/1.729, allocations: 33.19 kB / 0.8747 GB, free: 101 MB / 458.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.0005876/1.729, allocations: 397.6 kB / 0.875 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/1.729, allocations: 82.72 kB / 0.8751 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/1.731, allocations: 0.7378 MB / 0.8758 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/1.731, allocations: 4.75 kB / 0.8759 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.731, allocations: 2.812 kB / 0.8759 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/1.731, allocations: 3.75 kB / 0.8759 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/1.733, allocations: 1.471 MB / 0.8773 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.733, allocations: 1.688 kB / 0.8773 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/1.734, allocations: 63.38 kB / 0.8774 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004954/1.734, allocations: 128.1 kB / 0.8775 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.723e-05/1.734, allocations: 17.05 kB / 0.8775 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004652/1.735, allocations: 0.6655 MB / 0.8781 GB, free: 99.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.735, allocations: 3.438 kB / 0.8781 GB, free: 99.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/1.736, allocations: 1.103 MB / 0.8792 GB, free: 99.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/1.736, allocations: 159.7 kB / 0.8794 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/1.737, allocations: 17.72 kB / 0.8794 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005401/1.737, allocations: 44.09 kB / 0.8794 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/1.737, allocations: 35.14 kB / 0.8795 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.308e-05/1.737, allocations: 21.92 kB / 0.8795 GB, free: 99.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000675/1.738, allocations: 0.536 MB / 0.88 GB, free: 99.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.738, allocations: 3.719 kB / 0.88 GB, free: 99.23 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00211/1.74, allocations: 0.5909 MB / 0.8806 GB, free: 99.23 MB / 458.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.001913/1.742, allocations: 0.6002 MB / 0.8812 GB, free: 99.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002216/1.744, allocations: 1.165 MB / 0.8823 GB, free: 99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/1.744, allocations: 3.844 kB / 0.8823 GB, free: 99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000596/1.745, allocations: 350.3 kB / 0.8827 GB, free: 98.93 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/1.746, allocations: 305.5 kB / 0.8829 GB, free: 98.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/1.749, allocations: 1.699 MB / 0.8846 GB, free: 98.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006499/1.75, allocations: 0.9824 MB / 0.8856 GB, free: 97.55 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001037/1.751, allocations: 234.3 kB / 0.8858 GB, free: 97.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/1.751, allocations: 57.72 kB / 0.8858 GB, free: 97.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.333e-06/1.751, allocations: 0 / 0.8858 GB, free: 97.54 MB / 458.7 MB Notification: Performance of Templates: time 0.03005/1.781, allocations: 18.3 MB / 0.9037 GB, free: 97.02 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches