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.001295/0.001295, allocations: 173 kB / 14.1 MB, free: 1.223 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.505/1.505, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009286/0.0009286, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2e-05/2.015e-05, allocations: 0 / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08759/0.08762, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7382/0.8259, allocations: 326.7 MB / 0.6804 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.8262, allocations: 90.56 kB / 0.6805 GB, free: 13.78 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.076/1.902, allocations: 325 MB / 0.9979 GB, free: 28.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.082e-06/1.902, allocations: 0 / 0.9979 GB, free: 28.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001201/1.902, allocations: 52.14 kB / 0.998 GB, free: 28.86 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.004654/1.907, allocations: 2.042 MB / 1 GB, free: 26.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/1.907, allocations: 8.031 kB / 1 GB, free: 26.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006723/1.907, allocations: 205.8 kB / 1 GB, free: 26.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/1.91, allocations: 1.188 MB / 1.001 GB, free: 25.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.553e-05/1.91, allocations: 102.2 kB / 1.001 GB, free: 25.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/1.91, allocations: 124 kB / 1.002 GB, free: 25.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002541/1.912, allocations: 1.916 MB / 1.003 GB, free: 23.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/1.912, allocations: 7.938 kB / 1.003 GB, free: 23.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/1.913, allocations: 63.91 kB / 1.003 GB, free: 23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/1.913, allocations: 114.3 kB / 1.004 GB, free: 22.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00243/1.915, allocations: 1.918 MB / 1.005 GB, free: 20.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009475/1.925, allocations: 7.674 MB / 1.013 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/1.926, allocations: 1.151 MB / 1.014 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008211/1.927, allocations: 0.7314 MB / 1.015 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004024/1.931, allocations: 3.469 MB / 1.018 GB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/1.931, allocations: 51.56 kB / 1.018 GB, free: 7.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.978e-06/1.931, allocations: 3.984 kB / 1.018 GB, free: 7.176 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.007769/1.939, allocations: 4.132 MB / 1.022 GB, free: 2.992 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/1.939, allocations: 171.5 kB / 1.022 GB, free: 2.789 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/1.94, allocations: 1.235 MB / 1.024 GB, free: 1.547 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/1.94, allocations: 57.7 kB / 1.024 GB, free: 1.484 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004253/1.941, allocations: 0.7074 MB / 1.024 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/1.941, allocations: 469.4 kB / 1.025 GB, free: 312 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.926e-05/1.941, allocations: 32 kB / 1.025 GB, free: 280 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.2305/2.172, allocations: 378.5 kB / 1.025 GB, free: 49.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002045/2.174, allocations: 0.7325 MB / 1.026 GB, free: 49.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/2.175, allocations: 1.141 MB / 1.027 GB, free: 49.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/2.177, allocations: 0.8628 MB / 1.028 GB, free: 49.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/2.177, allocations: 3.5 kB / 1.028 GB, free: 49.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.005024/2.182, allocations: 2.356 MB / 1.03 GB, free: 49.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008835/2.183, allocations: 4.341 MB / 1.034 GB, free: 44.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/2.183, allocations: 13 kB / 1.034 GB, free: 44.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005692/2.189, allocations: 0.9324 MB / 1.035 GB, free: 44.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/2.19, allocations: 352.4 kB / 1.036 GB, free: 44.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002281/2.193, allocations: 2.894 MB / 1.039 GB, free: 42.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/2.195, allocations: 130.4 kB / 1.039 GB, free: 42.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/2.195, allocations: 81.66 kB / 1.039 GB, free: 42.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/2.195, allocations: 2.25 kB / 1.039 GB, free: 42.85 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004163/2.199, allocations: 2.067 MB / 1.041 GB, free: 42.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/2.199, allocations: 11.38 kB / 1.041 GB, free: 42.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004222/2.204, allocations: 0.6804 MB / 1.041 GB, free: 42.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/2.205, allocations: 357.2 kB / 1.042 GB, free: 42.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/2.207, allocations: 2.648 MB / 1.044 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/2.209, allocations: 130.5 kB / 1.044 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/2.209, allocations: 77.84 kB / 1.045 GB, free: 40.67 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 () * 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.0005839/2.21, allocations: 224.6 kB / 1.045 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005348/2.21, allocations: 173.5 kB / 1.045 GB, free: 40.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004973/2.215, allocations: 2.325 MB / 1.047 GB, free: 40.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/2.215, allocations: 16 kB / 1.047 GB, free: 40.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/2.215, allocations: 1.906 kB / 1.047 GB, free: 40.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/2.215, allocations: 10.69 kB / 1.047 GB, free: 40.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008095/2.224, allocations: 3.984 MB / 1.051 GB, free: 39.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/2.224, allocations: 2.031 kB / 1.051 GB, free: 39.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/2.225, allocations: 242.1 kB / 1.051 GB, free: 39.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003856/2.229, allocations: 0.8733 MB / 1.052 GB, free: 39.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002311/2.229, allocations: 42.75 kB / 1.052 GB, free: 39.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/2.231, allocations: 2.839 MB / 1.055 GB, free: 37.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/2.231, allocations: 7.312 kB / 1.055 GB, free: 37.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/2.236, allocations: 3.197 MB / 1.058 GB, free: 37.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006479/2.236, allocations: 282.3 kB / 1.058 GB, free: 37.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/2.236, allocations: 46.17 kB / 1.058 GB, free: 37.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/2.238, allocations: 107.5 kB / 1.059 GB, free: 37.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002556/2.238, allocations: 151.9 kB / 1.059 GB, free: 37.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/2.238, allocations: 62.31 kB / 1.059 GB, free: 37.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001199/2.239, allocations: 0.9539 MB / 1.06 GB, free: 37.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/2.239, allocations: 0 / 1.06 GB, free: 37.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003764/2.243, allocations: 1.387 MB / 1.061 GB, free: 37.05 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]) * 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.002749/2.246, allocations: 1.224 MB / 1.062 GB, free: 36.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005011/2.251, allocations: 3.029 MB / 1.065 GB, free: 36.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/2.251, allocations: 2.062 kB / 1.065 GB, free: 36.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001749/2.252, allocations: 1.051 MB / 1.066 GB, free: 36.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003674/2.256, allocations: 0.736 MB / 1.067 GB, free: 36.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/2.261, allocations: 2.82 MB / 1.07 GB, free: 36.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007573/2.262, allocations: 1.437 MB / 1.071 GB, free: 35.51 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00279/2.264, allocations: 0.8346 MB / 1.072 GB, free: 35.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003794/2.265, allocations: 134.2 kB / 1.072 GB, free: 35.47 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/2.265, allocations: 0 / 1.072 GB, free: 35.47 MB / 426.7 MB Notification: Performance of Templates: time 0.07018/2.335, allocations: 50.5 MB / 1.121 GB, free: 32.08 MB / 426.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