Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009576/0.0009576, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008882/0.0008882, allocations: 104 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.828e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1, allocations: 50.41 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7926/0.8927, allocations: 326.6 MB / 0.6974 GB, free: 2.281 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.893, allocations: 86.2 kB / 0.6975 GB, free: 2.238 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.175/2.068, allocations: 329.2 MB / 1.019 GB, free: 42.51 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.603e-06/2.068, allocations: 0 / 1.019 GB, free: 42.51 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001209/2.069, allocations: 49.66 kB / 1.019 GB, free: 42.47 MB / 442.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.005055/2.074, allocations: 2.037 MB / 1.021 GB, free: 40.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/2.074, allocations: 8.031 kB / 1.021 GB, free: 40.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007261/2.074, allocations: 198.7 kB / 1.021 GB, free: 40.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/2.077, allocations: 1.194 MB / 1.022 GB, free: 38.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.379e-05/2.077, allocations: 44 kB / 1.022 GB, free: 38.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/2.077, allocations: 68 kB / 1.022 GB, free: 38.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002344/2.079, allocations: 1.75 MB / 1.024 GB, free: 37.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002258/2.081, allocations: 1.763 MB / 1.026 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/2.081, allocations: 4 kB / 1.026 GB, free: 35.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/2.082, allocations: 4 kB / 1.026 GB, free: 35.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/2.082, allocations: 118.3 kB / 1.026 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009321/2.091, allocations: 7.404 MB / 1.033 GB, free: 27.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/2.092, allocations: 1.112 MB / 1.034 GB, free: 26.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007533/2.093, allocations: 0.7052 MB / 1.035 GB, free: 25.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004112/2.097, allocations: 3.366 MB / 1.038 GB, free: 21.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/2.097, allocations: 51.88 kB / 1.038 GB, free: 21.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.878e-06/2.097, allocations: 4 kB / 1.038 GB, free: 21.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.0146/2.112, allocations: 4.678 MB / 1.043 GB, free: 17.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/2.112, allocations: 175.5 kB / 1.043 GB, free: 16.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/2.113, allocations: 0.9406 MB / 1.044 GB, free: 16.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001668/2.114, allocations: 37.7 kB / 1.044 GB, free: 15.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005127/2.114, allocations: 0.7205 MB / 1.045 GB, free: 15.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003443/2.114, allocations: 453.3 kB / 1.045 GB, free: 14.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/2.115, allocations: 3.938 kB / 1.045 GB, free: 14.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/2.115, allocations: 373.9 kB / 1.046 GB, free: 14.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008748/2.116, allocations: 0.7146 MB / 1.046 GB, free: 13.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/2.117, allocations: 1.107 MB / 1.047 GB, free: 12.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004694/2.121, allocations: 1.563 MB / 1.049 GB, free: 10.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/2.121, allocations: 4 kB / 1.049 GB, free: 10.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007184/2.128, allocations: 2.924 MB / 1.052 GB, free: 7.941 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008315/2.129, allocations: 4.281 MB / 1.056 GB, free: 3.336 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/2.129, allocations: 12 kB / 1.056 GB, free: 3.324 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/2.131, allocations: 458.6 kB / 1.056 GB, free: 2.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/2.132, allocations: 343.5 kB / 1.057 GB, free: 2.531 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2727/2.405, allocations: 3.286 MB / 1.06 GB, free: 54.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002396/2.407, allocations: 101.7 kB / 1.06 GB, free: 54.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003192/2.407, allocations: 79.56 kB / 1.06 GB, free: 54.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/2.407, allocations: 3.031 kB / 1.06 GB, free: 54.95 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008429/2.416, allocations: 2.561 MB / 1.063 GB, free: 54.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.803e-05/2.416, allocations: 10.81 kB / 1.063 GB, free: 54.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/2.417, allocations: 332.1 kB / 1.063 GB, free: 54.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/2.419, allocations: 366.2 kB / 1.063 GB, free: 54.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003639/2.422, allocations: 2.955 MB / 1.066 GB, free: 52.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/2.424, allocations: 99.06 kB / 1.066 GB, free: 52.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/2.424, allocations: 78.5 kB / 1.066 GB, free: 52.8 MB / 442.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 () * 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.0005832/2.425, allocations: 158.8 kB / 1.066 GB, free: 52.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003145/2.425, allocations: 157.8 kB / 1.067 GB, free: 52.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005815/2.431, allocations: 2.32 MB / 1.069 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.704e-05/2.431, allocations: 17.31 kB / 1.069 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/2.431, allocations: 3.094 kB / 1.069 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/2.431, allocations: 7.922 kB / 1.069 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009842/2.441, allocations: 3.887 MB / 1.073 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/2.441, allocations: 2.875 kB / 1.073 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/2.442, allocations: 244 kB / 1.073 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/2.444, allocations: 452.3 kB / 1.073 GB, free: 52.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/2.444, allocations: 25.7 kB / 1.073 GB, free: 52.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003567/2.447, allocations: 3.053 MB / 1.076 GB, free: 50.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/2.447, allocations: 11.48 kB / 1.076 GB, free: 50.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006716/2.454, allocations: 3.215 MB / 1.08 GB, free: 49.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007427/2.455, allocations: 252.9 kB / 1.08 GB, free: 49.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002426/2.455, allocations: 13.17 kB / 1.08 GB, free: 49.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/2.456, allocations: 79.3 kB / 1.08 GB, free: 49.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/2.457, allocations: 148.1 kB / 1.08 GB, free: 49.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/2.457, allocations: 62.91 kB / 1.08 GB, free: 49.51 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001141/2.458, allocations: 0.7095 MB / 1.081 GB, free: 49.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/2.458, allocations: 0 / 1.081 GB, free: 49.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004639/2.463, allocations: 1.277 MB / 1.082 GB, free: 49.4 MB / 442.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]) * 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.003656/2.466, allocations: 1.224 MB / 1.083 GB, free: 49.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005643/2.472, allocations: 2.884 MB / 1.086 GB, free: 49.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/2.472, allocations: 0 / 1.086 GB, free: 49.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/2.474, allocations: 1.021 MB / 1.087 GB, free: 49.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003586/2.477, allocations: 0.6148 MB / 1.088 GB, free: 49.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/2.482, allocations: 2.695 MB / 1.09 GB, free: 48.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007649/2.483, allocations: 1.432 MB / 1.092 GB, free: 47.91 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002802/2.486, allocations: 0.7393 MB / 1.092 GB, free: 47.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003901/2.486, allocations: 123.3 kB / 1.092 GB, free: 47.88 MB / 442.7 MB Notification: Performance of SimCode: time 8.82e-07/2.486, allocations: 0 / 1.092 GB, free: 47.88 MB / 442.7 MB Notification: Performance of Templates: time 0.05766/2.544, allocations: 43.97 MB / 1.135 GB, free: 45.31 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches