Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009459/0.000946, allocations: 99.5 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.651e-05/1.662e-05, allocations: 0 / 343.7 MB, free: 8.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 51.48 MB / 395.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8025/0.9073, allocations: 327.4 MB / 0.7057 GB, free: 29.97 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.9077, allocations: 90.52 kB / 0.7058 GB, free: 29.92 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.203/2.111, allocations: 328.4 MB / 1.026 GB, free: 43.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/2.111, allocations: 0 / 1.026 GB, free: 43.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001794/2.111, allocations: 48.78 kB / 1.027 GB, free: 43.31 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.006589/2.118, allocations: 2.047 MB / 1.029 GB, free: 41.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/2.118, allocations: 10.66 kB / 1.029 GB, free: 41.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/2.119, allocations: 201.7 kB / 1.029 GB, free: 41.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/2.122, allocations: 1.194 MB / 1.03 GB, free: 40.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.433e-05/2.122, allocations: 39.72 kB / 1.03 GB, free: 40.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004479/2.122, allocations: 74.78 kB / 1.03 GB, free: 40.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002905/2.125, allocations: 1.751 MB / 1.032 GB, free: 39.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002854/2.128, allocations: 1.762 MB / 1.033 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/2.128, allocations: 0 / 1.033 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/2.128, allocations: 4 kB / 1.033 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/2.128, allocations: 114.3 kB / 1.034 GB, free: 37.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009832/2.138, allocations: 7.397 MB / 1.041 GB, free: 30.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/2.14, allocations: 1.108 MB / 1.042 GB, free: 29.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008009/2.14, allocations: 0.7108 MB / 1.043 GB, free: 28.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004058/2.145, allocations: 3.383 MB / 1.046 GB, free: 24.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/2.145, allocations: 51.81 kB / 1.046 GB, free: 24.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 2.465e-06/2.145, allocations: 0 / 1.046 GB, free: 24.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.0151/2.16, allocations: 4.673 MB / 1.05 GB, free: 19.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/2.16, allocations: 167.5 kB / 1.051 GB, free: 19.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/2.161, allocations: 0.9522 MB / 1.052 GB, free: 18.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/2.161, allocations: 33.7 kB / 1.052 GB, free: 18.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004585/2.162, allocations: 0.7097 MB / 1.052 GB, free: 18.07 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003141/2.162, allocations: 452.9 kB / 1.053 GB, free: 17.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/2.162, allocations: 0 / 1.053 GB, free: 17.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/2.162, allocations: 373.9 kB / 1.053 GB, free: 17.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000926/2.163, allocations: 0.7185 MB / 1.054 GB, free: 16.53 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/2.164, allocations: 1.098 MB / 1.055 GB, free: 15.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005714/2.17, allocations: 1.715 MB / 1.056 GB, free: 13.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/2.17, allocations: 4 kB / 1.056 GB, free: 13.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007826/2.178, allocations: 3.091 MB / 1.06 GB, free: 10.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007031/2.179, allocations: 4.278 MB / 1.064 GB, free: 5.836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/2.179, allocations: 8 kB / 1.064 GB, free: 5.828 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/2.18, allocations: 466.7 kB / 1.064 GB, free: 5.363 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/2.181, allocations: 343.5 kB / 1.064 GB, free: 5.027 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003943/2.185, allocations: 3.301 MB / 1.068 GB, free: 1.625 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/2.187, allocations: 103.9 kB / 1.068 GB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/2.187, allocations: 79.91 kB / 1.068 GB, free: 1.445 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/2.187, allocations: 4 kB / 1.068 GB, free: 1.441 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00754/2.194, allocations: 2.717 MB / 1.071 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/2.195, allocations: 12 kB / 1.071 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/2.196, allocations: 334.2 kB / 1.071 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/2.197, allocations: 359.4 kB / 1.071 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004363/2.201, allocations: 2.955 MB / 1.074 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/2.203, allocations: 99.89 kB / 1.074 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002387/2.203, allocations: 75.97 kB / 1.074 GB, free: 10.78 MB / 458.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.0005246/2.204, allocations: 161.8 kB / 1.074 GB, free: 10.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/2.204, allocations: 150.2 kB / 1.075 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00602/2.21, allocations: 2.338 MB / 1.077 GB, free: 8.137 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/2.21, allocations: 19.94 kB / 1.077 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/2.21, allocations: 0 / 1.077 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/2.211, allocations: 7.969 kB / 1.077 GB, free: 8.109 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008337/2.219, allocations: 3.889 MB / 1.081 GB, free: 4.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/2.219, allocations: 3.984 kB / 1.081 GB, free: 4.176 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/2.22, allocations: 243.6 kB / 1.081 GB, free: 3.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/2.221, allocations: 443.3 kB / 1.081 GB, free: 3.492 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/2.221, allocations: 23.97 kB / 1.081 GB, free: 3.469 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/2.225, allocations: 3.057 MB / 1.084 GB, free: 324 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/2.225, allocations: 4.031 kB / 1.084 GB, free: 320 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3026/2.528, allocations: 3.216 MB / 1.087 GB, free: 62.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008899/2.529, allocations: 248.7 kB / 1.088 GB, free: 62.47 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006083/2.529, allocations: 11.47 kB / 1.088 GB, free: 62.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/2.531, allocations: 77.55 kB / 1.088 GB, free: 62.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003839/2.532, allocations: 152.4 kB / 1.088 GB, free: 62.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002578/2.532, allocations: 64.31 kB / 1.088 GB, free: 62.47 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001542/2.534, allocations: 0.7108 MB / 1.089 GB, free: 62.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.534, allocations: 0 / 1.089 GB, free: 62.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006327/2.54, allocations: 1.286 MB / 1.09 GB, free: 62.36 MB / 458.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.004657/2.545, allocations: 1.221 MB / 1.091 GB, free: 62.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008184/2.553, allocations: 2.874 MB / 1.094 GB, free: 62.22 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/2.553, allocations: 6.812 kB / 1.094 GB, free: 62.22 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/2.556, allocations: 1.025 MB / 1.095 GB, free: 62.22 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005647/2.561, allocations: 0.6298 MB / 1.096 GB, free: 62.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008044/2.569, allocations: 2.685 MB / 1.098 GB, free: 61.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/2.571, allocations: 1.44 MB / 1.1 GB, free: 60.89 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005283/2.576, allocations: 0.7439 MB / 1.1 GB, free: 60.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007466/2.577, allocations: 123.1 kB / 1.1 GB, free: 60.87 MB / 458.7 MB Notification: Performance of SimCode: time 1.783e-06/2.577, allocations: 2.188 kB / 1.1 GB, free: 60.87 MB / 458.7 MB Notification: Performance of Templates: time 0.0894/2.666, allocations: 43.92 MB / 1.143 GB, free: 58.49 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches