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.001853/0.001853, allocations: 177.3 kB / 17.41 MB, free: 4.418 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.73/1.73, allocations: 205.4 MB / 223.6 MB, free: 9.039 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.000772/0.000772, allocations: 89.42 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003575, allocations: 12 kB / 328.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2608, allocations: 47.57 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7426/1.003, allocations: 326.4 MB / 0.6857 GB, free: 138.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/1.004, allocations: 98.75 kB / 0.6858 GB, free: 138.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5195/1.523, allocations: 142.7 MB / 0.8251 GB, free: 92 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.523, allocations: 3.938 kB / 0.8251 GB, free: 92 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.266e-05/1.523, allocations: 18.28 kB / 0.8252 GB, free: 92 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.00305/1.527, allocations: 1.169 MB / 0.8263 GB, free: 91.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/1.527, allocations: 7.344 kB / 0.8263 GB, free: 91.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003815/1.527, allocations: 98.34 kB / 0.8264 GB, free: 91.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/1.528, allocations: 0.6344 MB / 0.827 GB, free: 91.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-05/1.528, allocations: 93.28 kB / 0.8271 GB, free: 91.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.698e-05/1.528, allocations: 53.56 kB / 0.8272 GB, free: 91.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/1.529, allocations: 0.8264 MB / 0.828 GB, free: 90.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/1.529, allocations: 3.797 kB / 0.828 GB, free: 90.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/1.53, allocations: 19.09 kB / 0.828 GB, free: 90.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.142e-05/1.53, allocations: 37.81 kB / 0.828 GB, free: 90.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/1.531, allocations: 0.6866 MB / 0.8287 GB, free: 90.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004206/1.535, allocations: 3.384 MB / 0.832 GB, free: 89.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/1.536, allocations: 431.2 kB / 0.8324 GB, free: 89.01 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003632/1.536, allocations: 262.7 kB / 0.8327 GB, free: 89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001829/1.538, allocations: 1.356 MB / 0.834 GB, free: 88.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005803/1.538, allocations: 381.6 kB / 0.8344 GB, free: 88.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.216e-06/1.538, allocations: 2.438 kB / 0.8344 GB, free: 88.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.003883/1.542, allocations: 1.888 MB / 0.8362 GB, free: 87.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/1.542, allocations: 271.6 kB / 0.8365 GB, free: 87.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/1.543, allocations: 0.7675 MB / 0.8372 GB, free: 87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.453e-05/1.544, allocations: 32.61 kB / 0.8372 GB, free: 86.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000329/1.544, allocations: 403.7 kB / 0.8376 GB, free: 86.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/1.544, allocations: 146.6 kB / 0.8378 GB, free: 86.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/1.544, allocations: 12.12 kB / 0.8378 GB, free: 86.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/1.544, allocations: 392.4 kB / 0.8381 GB, free: 86.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006527/1.545, allocations: 263.7 kB / 0.8384 GB, free: 86.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008151/1.546, allocations: 0.5035 MB / 0.8389 GB, free: 86.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3899/1.936, allocations: 65.7 MB / 0.9031 GB, free: 67.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/1.936, allocations: 4 kB / 0.9031 GB, free: 67.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001704/1.937, allocations: 0.9811 MB / 0.904 GB, free: 67.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/1.938, allocations: 306.4 kB / 0.9043 GB, free: 66.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/1.938, allocations: 15.05 kB / 0.9043 GB, free: 66.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005467/1.938, allocations: 129.3 kB / 0.9044 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/1.939, allocations: 130.5 kB / 0.9046 GB, free: 66.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005042/1.939, allocations: 0.6892 MB / 0.9052 GB, free: 66.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000739/1.94, allocations: 48.36 kB / 0.9053 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.458e-05/1.94, allocations: 38.94 kB / 0.9053 GB, free: 66.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.154e-06/1.94, allocations: 0 / 0.9053 GB, free: 66.05 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001516/1.942, allocations: 0.925 MB / 0.9062 GB, free: 65.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/1.942, allocations: 11.94 kB / 0.9062 GB, free: 65.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003755/1.942, allocations: 115.7 kB / 0.9063 GB, free: 65.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004091/1.942, allocations: 142.5 kB / 0.9065 GB, free: 65.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000402/1.943, allocations: 0.6598 MB / 0.9071 GB, free: 64.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/1.943, allocations: 56.95 kB / 0.9072 GB, free: 64.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/1.943, allocations: 35.19 kB / 0.9072 GB, free: 64.67 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 ($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.0005462/1.944, allocations: 387.9 kB / 0.9076 GB, free: 64.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/1.944, allocations: 83.06 kB / 0.9077 GB, free: 64.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/1.945, allocations: 0.7468 MB / 0.9084 GB, free: 63.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/1.945, allocations: 4 kB / 0.9084 GB, free: 63.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.945, allocations: 7.281 kB / 0.9084 GB, free: 63.83 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/1.945, allocations: 0 / 0.9084 GB, free: 63.83 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/1.947, allocations: 1.472 MB / 0.9098 GB, free: 62.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.947, allocations: 3.688 kB / 0.9098 GB, free: 62.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/1.948, allocations: 64.69 kB / 0.9099 GB, free: 62.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004874/1.948, allocations: 124.1 kB / 0.91 GB, free: 62.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.381e-05/1.948, allocations: 20.86 kB / 0.91 GB, free: 62.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004577/1.949, allocations: 0.6633 MB / 0.9107 GB, free: 61.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/1.949, allocations: 64 / 0.9107 GB, free: 61.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/1.95, allocations: 1.106 MB / 0.9118 GB, free: 61.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/1.95, allocations: 154.7 kB / 0.9119 GB, free: 60.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/1.95, allocations: 18.05 kB / 0.9119 GB, free: 60.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000457/1.951, allocations: 35.48 kB / 0.912 GB, free: 60.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/1.951, allocations: 38.38 kB / 0.912 GB, free: 60.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/1.951, allocations: 23.05 kB / 0.912 GB, free: 60.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006137/1.952, allocations: 0.5338 MB / 0.9126 GB, free: 60.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.952, allocations: 0 / 0.9126 GB, free: 60.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001723/1.953, allocations: 0.5836 MB / 0.9131 GB, free: 59.89 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.001183/1.955, allocations: 0.5911 MB / 0.9137 GB, free: 59.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001987/1.957, allocations: 1.178 MB / 0.9149 GB, free: 58.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/1.957, allocations: 3.609 kB / 0.9149 GB, free: 58.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/1.957, allocations: 348.5 kB / 0.9152 GB, free: 58.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/1.959, allocations: 325.4 kB / 0.9155 GB, free: 58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/1.961, allocations: 1.738 MB / 0.9172 GB, free: 56.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/1.961, allocations: 0.9626 MB / 0.9181 GB, free: 55.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/1.961, allocations: 66.55 kB / 0.9182 GB, free: 55.35 MB / 426.7 MB Notification: Performance of SimCode: time 3.41e-07/1.961, allocations: 0 / 0.9182 GB, free: 55.35 MB / 426.7 MB Notification: Performance of Templates: time 0.01967/1.981, allocations: 17.73 MB / 0.9355 GB, free: 38.17 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) "" 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