Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001065/0.001065, allocations: 97.59 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.000233, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2014, allocations: 51.28 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6885/0.89, allocations: 325.7 MB / 0.7178 GB, free: 145.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.8902, allocations: 98.83 kB / 0.7179 GB, free: 145.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7551/1.645, allocations: 285.6 MB / 0.9968 GB, free: 37.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.645, allocations: 0 / 0.9968 GB, free: 37.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001026/1.645, allocations: 43.45 kB / 0.9968 GB, free: 37.73 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004706/1.65, allocations: 1.958 MB / 0.9987 GB, free: 35.75 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/1.65, allocations: 8.031 kB / 0.9988 GB, free: 35.74 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006491/1.651, allocations: 169.2 kB / 0.9989 GB, free: 35.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001877/1.653, allocations: 1.071 MB / 1 GB, free: 34.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-05/1.653, allocations: 80.17 kB / 1 GB, free: 34.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/1.653, allocations: 93.7 kB / 1 GB, free: 34.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/1.655, allocations: 1.644 MB / 1.002 GB, free: 32.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/1.655, allocations: 3.938 kB / 1.002 GB, free: 32.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/1.655, allocations: 44.05 kB / 1.002 GB, free: 32.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/1.656, allocations: 101.9 kB / 1.002 GB, free: 32.47 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002174/1.658, allocations: 1.612 MB / 1.003 GB, free: 30.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008312/1.666, allocations: 6.474 MB / 1.01 GB, free: 24.08 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/1.667, allocations: 0.9257 MB / 1.011 GB, free: 23.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006691/1.668, allocations: 0.5504 MB / 1.011 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003236/1.671, allocations: 2.811 MB / 1.014 GB, free: 19.56 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/1.671, allocations: 43.22 kB / 1.014 GB, free: 19.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.826e-06/1.671, allocations: 4 kB / 1.014 GB, free: 19.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.007541/1.679, allocations: 3.721 MB / 1.018 GB, free: 15.67 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/1.679, allocations: 200.9 kB / 1.018 GB, free: 15.43 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/1.681, allocations: 1.292 MB / 1.019 GB, free: 14.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/1.681, allocations: 53.64 kB / 1.019 GB, free: 14.06 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/1.681, allocations: 0.6417 MB / 1.02 GB, free: 13.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/1.681, allocations: 318.9 kB / 1.02 GB, free: 13.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.264e-05/1.682, allocations: 28 kB / 1.02 GB, free: 13.08 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.411e-05/1.682, allocations: 361.9 kB / 1.02 GB, free: 12.72 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008614/1.682, allocations: 0.5504 MB / 1.021 GB, free: 12.17 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009575/1.683, allocations: 0.9707 MB / 1.022 GB, free: 11.03 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/1.685, allocations: 1.414 MB / 1.023 GB, free: 9.469 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/1.685, allocations: 4 kB / 1.023 GB, free: 9.465 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002768/1.688, allocations: 1.846 MB / 1.025 GB, free: 7.598 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/1.688, allocations: 423.6 kB / 1.026 GB, free: 7.031 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/1.688, allocations: 12 kB / 1.026 GB, free: 7.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003439/1.691, allocations: 0.658 MB / 1.026 GB, free: 6.352 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009804/1.692, allocations: 279.6 kB / 1.026 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/1.694, allocations: 2.166 MB / 1.029 GB, free: 3.836 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/1.695, allocations: 103.8 kB / 1.029 GB, free: 3.734 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/1.696, allocations: 75.91 kB / 1.029 GB, free: 3.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.907e-06/1.696, allocations: 4 kB / 1.029 GB, free: 3.656 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0024/1.698, allocations: 1.623 MB / 1.03 GB, free: 2.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.723e-05/1.698, allocations: 12 kB / 1.03 GB, free: 2.008 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/1.701, allocations: 0.5066 MB / 1.031 GB, free: 1.492 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009586/1.702, allocations: 291.5 kB / 1.031 GB, free: 1.207 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2297/1.932, allocations: 2.007 MB / 1.033 GB, free: 65.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/1.933, allocations: 97.53 kB / 1.033 GB, free: 65.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/1.933, allocations: 67.97 kB / 1.033 GB, free: 65.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009498/1.934, allocations: 471.8 kB / 1.034 GB, free: 65.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/1.935, allocations: 140.8 kB / 1.034 GB, free: 65.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/1.938, allocations: 1.511 MB / 1.035 GB, free: 65.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/1.938, allocations: 11.69 kB / 1.035 GB, free: 65.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/1.938, allocations: 0 / 1.035 GB, free: 65.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/1.938, allocations: 7.875 kB / 1.035 GB, free: 65.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004399/1.942, allocations: 2.812 MB / 1.038 GB, free: 64.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/1.942, allocations: 3.844 kB / 1.038 GB, free: 64.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006277/1.943, allocations: 151.7 kB / 1.038 GB, free: 64.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002741/1.946, allocations: 0.6073 MB / 1.039 GB, free: 64.73 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/1.946, allocations: 29.86 kB / 1.039 GB, free: 64.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/1.948, allocations: 2.123 MB / 1.041 GB, free: 63.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.948, allocations: 1 kB / 1.041 GB, free: 63.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003072/1.951, allocations: 2.089 MB / 1.043 GB, free: 62.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005163/1.951, allocations: 244.3 kB / 1.043 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/1.951, allocations: 28.67 kB / 1.043 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/1.952, allocations: 72.69 kB / 1.043 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/1.952, allocations: 98.09 kB / 1.043 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.36e-05/1.953, allocations: 45.56 kB / 1.043 GB, free: 62.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001133/1.954, allocations: 0.8958 MB / 1.044 GB, free: 62.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.954, allocations: 0 / 1.044 GB, free: 62.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003541/1.957, allocations: 1.23 MB / 1.045 GB, free: 62.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002473/1.96, allocations: 1.128 MB / 1.047 GB, free: 62.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004024/1.964, allocations: 2.183 MB / 1.049 GB, free: 62.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.964, allocations: 1.219 kB / 1.049 GB, free: 62.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/1.965, allocations: 0.706 MB / 1.049 GB, free: 62.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002991/1.968, allocations: 0.5833 MB / 1.05 GB, free: 62.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003902/1.972, allocations: 3.158 MB / 1.053 GB, free: 61.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006158/1.973, allocations: 1.259 MB / 1.054 GB, free: 60.65 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001887/1.975, allocations: 0.5632 MB / 1.055 GB, free: 60.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/1.975, allocations: 108.1 kB / 1.055 GB, free: 60.63 MB / 458.7 MB Notification: Performance of SimCode: time 6.41e-07/1.975, allocations: 0 / 1.055 GB, free: 60.63 MB / 458.7 MB Notification: Performance of Templates: time 0.05232/2.027, allocations: 39.14 MB / 1.093 GB, free: 58.8 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches