Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00249/0.00249, allocations: 199.4 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.992/2.992, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001383/0.001383, allocations: 106.1 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006001/0.0006007, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6289/0.6295, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.762/2.391, allocations: 327.7 MB / 0.7191 GB, free: 143.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004186/2.392, allocations: 92.42 kB / 0.7192 GB, free: 143.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.17/3.562, allocations: 145.5 MB / 0.8613 GB, free: 103.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 6.673e-06/3.562, allocations: 0 / 0.8613 GB, free: 103.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001848/3.562, allocations: 24.91 kB / 0.8613 GB, free: 103.4 MB / 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.006221/3.568, allocations: 1.166 MB / 0.8625 GB, free: 102.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.642e-05/3.568, allocations: 7.562 kB / 0.8625 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/3.569, allocations: 108.6 kB / 0.8626 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/3.572, allocations: 0.63 MB / 0.8632 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/3.572, allocations: 95.36 kB / 0.8633 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/3.572, allocations: 48.66 kB / 0.8633 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004086/3.576, allocations: 0.8276 MB / 0.8641 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/3.577, allocations: 0 / 0.8641 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/3.577, allocations: 27.41 kB / 0.8642 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/3.577, allocations: 43.73 kB / 0.8642 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002596/3.579, allocations: 0.6848 MB / 0.8649 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0132/3.593, allocations: 3.379 MB / 0.8682 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/3.594, allocations: 421 kB / 0.8686 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007024/3.595, allocations: 268.7 kB / 0.8688 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00348/3.599, allocations: 1.367 MB / 0.8702 GB, free: 99.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001207/3.6, allocations: 372.2 kB / 0.8705 GB, free: 99.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 1.266e-05/3.6, allocations: 0 / 0.8705 GB, free: 99.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.00946/3.609, allocations: 1.892 MB / 0.8724 GB, free: 98.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001827/3.61, allocations: 264.8 kB / 0.8726 GB, free: 98.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/3.613, allocations: 0.7727 MB / 0.8734 GB, free: 98.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003726/3.614, allocations: 41.73 kB / 0.8734 GB, free: 98.44 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008333/3.615, allocations: 401.4 kB / 0.8738 GB, free: 98.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/3.615, allocations: 132 kB / 0.8739 GB, free: 98.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/3.615, allocations: 14.22 kB / 0.8739 GB, free: 98.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003707/3.616, allocations: 395.4 kB / 0.8743 GB, free: 97.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/3.617, allocations: 259.9 kB / 0.8746 GB, free: 97.88 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/3.618, allocations: 0.5076 MB / 0.8751 GB, free: 97.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01505/3.633, allocations: 1.823 MB / 0.8768 GB, free: 97.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/3.633, allocations: 3.312 kB / 0.8768 GB, free: 97.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003979/3.637, allocations: 0.9917 MB / 0.8778 GB, free: 97.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003534/3.638, allocations: 300 kB / 0.8781 GB, free: 96.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-05/3.638, allocations: 7.781 kB / 0.8781 GB, free: 96.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009636/3.639, allocations: 127.6 kB / 0.8782 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008317/3.64, allocations: 140.8 kB / 0.8784 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009612/3.641, allocations: 0.6915 MB / 0.879 GB, free: 96.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/3.642, allocations: 48.91 kB / 0.8791 GB, free: 96.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/3.642, allocations: 34.53 kB / 0.8791 GB, free: 96.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/3.642, allocations: 7.438 kB / 0.8791 GB, free: 96.25 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003059/3.645, allocations: 0.9246 MB / 0.88 GB, free: 96.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/3.645, allocations: 13.81 kB / 0.88 GB, free: 96.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007652/3.646, allocations: 115.6 kB / 0.8801 GB, free: 96.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008047/3.647, allocations: 137.2 kB / 0.8803 GB, free: 96.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008974/3.648, allocations: 0.6579 MB / 0.8809 GB, free: 95.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/3.65, allocations: 55.08 kB / 0.881 GB, free: 95.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/3.65, allocations: 32.88 kB / 0.881 GB, free: 95.66 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 ($PRE.tank.aboveLevel[1],$whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[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.001455/3.651, allocations: 401.1 kB / 0.8814 GB, free: 95.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004498/3.652, allocations: 82.84 kB / 0.8815 GB, free: 95.39 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/3.654, allocations: 0.7379 MB / 0.8822 GB, free: 95.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/3.654, allocations: 6.781 kB / 0.8822 GB, free: 95.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/3.654, allocations: 0 / 0.8822 GB, free: 95.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/3.654, allocations: 3.891 kB / 0.8822 GB, free: 95.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00398/3.658, allocations: 1.472 MB / 0.8836 GB, free: 94.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/3.658, allocations: 2.938 kB / 0.8836 GB, free: 94.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004089/3.659, allocations: 62.5 kB / 0.8837 GB, free: 94.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000728/3.659, allocations: 121.7 kB / 0.8838 GB, free: 94.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/3.66, allocations: 23.27 kB / 0.8838 GB, free: 94.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007613/3.66, allocations: 0.667 MB / 0.8845 GB, free: 94.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/3.66, allocations: 6.391 kB / 0.8845 GB, free: 94.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/3.663, allocations: 1.095 MB / 0.8856 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007305/3.664, allocations: 159.1 kB / 0.8857 GB, free: 94.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/3.664, allocations: 11.59 kB / 0.8857 GB, free: 94.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/3.666, allocations: 38.61 kB / 0.8858 GB, free: 94.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/3.666, allocations: 38.58 kB / 0.8858 GB, free: 94.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/3.666, allocations: 24.73 kB / 0.8858 GB, free: 94.03 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001369/3.667, allocations: 0.5319 MB / 0.8863 GB, free: 93.94 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/3.667, allocations: 0 / 0.8863 GB, free: 93.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004176/3.671, allocations: 0.5962 MB / 0.8869 GB, free: 93.85 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.003652/3.675, allocations: 0.6017 MB / 0.8875 GB, free: 93.67 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003932/3.679, allocations: 1.171 MB / 0.8887 GB, free: 93.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/3.679, allocations: 3.219 kB / 0.8887 GB, free: 93.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009382/3.68, allocations: 351.7 kB / 0.889 GB, free: 93.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003362/3.684, allocations: 315.4 kB / 0.8893 GB, free: 93.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005606/3.689, allocations: 1.749 MB / 0.891 GB, free: 92.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001563/3.691, allocations: 0.9589 MB / 0.8919 GB, free: 92.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000542/3.691, allocations: 69.11 kB / 0.892 GB, free: 92.04 MB / 458.7 MB Notification: Performance of SimCode: time 4.268e-06/3.691, allocations: 0 / 0.892 GB, free: 92.04 MB / 458.7 MB Notification: Performance of Templates: time 0.05964/3.751, allocations: 17.88 MB / 0.9095 GB, free: 91.12 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,tank.level,tank.medium.T,tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent Variables in the result:tank.aboveLevel[1],tank.level,tank.medium.T,tank.ports_m_flow_out[1],time,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent