Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.00167, allocations: 180.5 kB / 17.01 MB, free: 5.121 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.974/1.974, allocations: 205.4 MB / 223.1 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.001016/0.001016, allocations: 96.97 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003087/0.0003088, allocations: 7.984 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2881, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8807/1.169, allocations: 326.8 MB / 0.6862 GB, free: 105.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/1.169, allocations: 98.89 kB / 0.6863 GB, free: 105.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.259/2.429, allocations: 326.1 MB / 1.005 GB, free: 51.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/2.429, allocations: 0 / 1.005 GB, free: 51.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002685/2.429, allocations: 49.69 kB / 1.005 GB, free: 51.06 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.0101/2.439, allocations: 2.243 MB / 1.007 GB, free: 50.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/2.439, allocations: 7.438 kB / 1.007 GB, free: 50.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001826/2.441, allocations: 210.4 kB / 1.007 GB, free: 50.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005338/2.446, allocations: 1.192 MB / 1.008 GB, free: 49.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/2.447, allocations: 99.69 kB / 1.008 GB, free: 49.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000799/2.447, allocations: 125.4 kB / 1.009 GB, free: 49.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006569/2.454, allocations: 1.95 MB / 1.01 GB, free: 49.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.706e-05/2.454, allocations: 5 kB / 1.01 GB, free: 49.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004893/2.455, allocations: 54.95 kB / 1.01 GB, free: 49.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002265/2.455, allocations: 114.9 kB / 1.011 GB, free: 49.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005314/2.46, allocations: 1.965 MB / 1.013 GB, free: 49.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01767/2.478, allocations: 7.67 MB / 1.02 GB, free: 45.97 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002709/2.481, allocations: 1.165 MB / 1.021 GB, free: 45.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007393/2.488, allocations: 3.43 MB / 1.025 GB, free: 44.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/2.488, allocations: 53.55 kB / 1.025 GB, free: 44.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.501e-06/2.488, allocations: 7.062 kB / 1.025 GB, free: 44.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.02032/2.508, allocations: 5.418 MB / 1.03 GB, free: 43.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/2.509, allocations: 173.4 kB / 1.03 GB, free: 43.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002644/2.511, allocations: 1.253 MB / 1.031 GB, free: 42.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002852/2.512, allocations: 61.67 kB / 1.031 GB, free: 42.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007061/2.512, allocations: 0.7024 MB / 1.032 GB, free: 42.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000577/2.513, allocations: 473.2 kB / 1.032 GB, free: 42.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/2.513, allocations: 32.47 kB / 1.032 GB, free: 42.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/2.513, allocations: 379.5 kB / 1.033 GB, free: 42.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/2.515, allocations: 0.7509 MB / 1.034 GB, free: 42.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/2.517, allocations: 1.155 MB / 1.035 GB, free: 41.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/2.52, allocations: 0.8658 MB / 1.036 GB, free: 41.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/2.52, allocations: 0 / 1.036 GB, free: 41.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006392/2.526, allocations: 2.392 MB / 1.038 GB, free: 41.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001038/2.527, allocations: 4.347 MB / 1.042 GB, free: 36.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.399e-05/2.527, allocations: 15.66 kB / 1.042 GB, free: 36.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009036/2.536, allocations: 0.9564 MB / 1.043 GB, free: 36.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002783/2.539, allocations: 347.6 kB / 1.043 GB, free: 36.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/2.543, allocations: 2.892 MB / 1.046 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003185/2.547, allocations: 135.2 kB / 1.046 GB, free: 34.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005279/2.547, allocations: 82.97 kB / 1.046 GB, free: 34.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/2.547, allocations: 0 / 1.046 GB, free: 34.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006698/2.554, allocations: 2.106 MB / 1.048 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.404e-05/2.554, allocations: 7.438 kB / 1.048 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007101/2.561, allocations: 0.6864 MB / 1.049 GB, free: 34.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/2.564, allocations: 351.4 kB / 1.049 GB, free: 34.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/2.566, allocations: 2.658 MB / 1.052 GB, free: 32.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002798/2.569, allocations: 125.6 kB / 1.052 GB, free: 32.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000473/2.57, allocations: 81.86 kB / 1.052 GB, free: 32.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001596/2.571, allocations: 0.5137 MB / 1.053 GB, free: 32.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006736/2.572, allocations: 168.9 kB / 1.053 GB, free: 32.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007525/2.58, allocations: 2.366 MB / 1.055 GB, free: 32.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/2.58, allocations: 15.47 kB / 1.055 GB, free: 32.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/2.58, allocations: 5.781 kB / 1.055 GB, free: 32.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/2.58, allocations: 11.66 kB / 1.055 GB, free: 32.13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/2.591, allocations: 4.017 MB / 1.059 GB, free: 31.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/2.591, allocations: 0 / 1.059 GB, free: 31.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/2.593, allocations: 245 kB / 1.059 GB, free: 31.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006548/2.599, allocations: 0.8813 MB / 1.06 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003688/2.6, allocations: 46.33 kB / 1.06 GB, free: 31.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003034/2.603, allocations: 2.855 MB / 1.063 GB, free: 29.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/2.603, allocations: 0 / 1.063 GB, free: 29.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008122/2.611, allocations: 3.245 MB / 1.066 GB, free: 29.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/2.612, allocations: 282.7 kB / 1.067 GB, free: 28.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000684/2.613, allocations: 38.05 kB / 1.067 GB, free: 28.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002492/2.615, allocations: 109.5 kB / 1.067 GB, free: 28.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000438/2.616, allocations: 149 kB / 1.067 GB, free: 28.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002745/2.616, allocations: 60.53 kB / 1.067 GB, free: 28.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002649/2.619, allocations: 0.9792 MB / 1.068 GB, free: 28.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.974e-06/2.619, allocations: 0 / 1.068 GB, free: 28.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007196/2.626, allocations: 1.387 MB / 1.069 GB, free: 28.53 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004724/2.631, allocations: 1.229 MB / 1.07 GB, free: 28.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008856/2.64, allocations: 3.018 MB / 1.073 GB, free: 27.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/2.64, allocations: 5.594 kB / 1.073 GB, free: 27.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003068/2.643, allocations: 1.064 MB / 1.074 GB, free: 27.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006187/2.649, allocations: 0.747 MB / 1.075 GB, free: 27.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007479/2.656, allocations: 4.075 MB / 1.079 GB, free: 25.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008621/2.657, allocations: 1.439 MB / 1.081 GB, free: 24.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00317/2.661, allocations: 0.7291 MB / 1.081 GB, free: 24.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005313/2.661, allocations: 142.8 kB / 1.081 GB, free: 24.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/2.661, allocations: 3.172 kB / 1.081 GB, free: 24.39 MB / 426.7 MB Notification: Performance of Templates: time 0.0683/2.729, allocations: 47.63 MB / 1.128 GB, free: 10.91 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches