Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001525/0.001525, allocations: 171.9 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.576/1.576, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008906/0.0008907, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.974e-05, allocations: 4 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 47.58 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7459/0.8587, allocations: 324.1 MB / 0.6779 GB, free: 408 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.8589, allocations: 94.05 kB / 0.678 GB, free: 356 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064/1.923, allocations: 282.1 MB / 0.9535 GB, free: 69.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.273e-06/1.923, allocations: 3.938 kB / 0.9535 GB, free: 69.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.538e-05/1.923, allocations: 40.08 kB / 0.9535 GB, free: 69.13 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003586/1.927, allocations: 1.789 MB / 0.9553 GB, free: 68.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/1.927, allocations: 7.531 kB / 0.9553 GB, free: 68.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000499/1.928, allocations: 173.3 kB / 0.9555 GB, free: 67.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/1.929, allocations: 1.031 MB / 0.9565 GB, free: 67.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/1.93, allocations: 79.06 kB / 0.9565 GB, free: 67.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/1.93, allocations: 102.7 kB / 0.9566 GB, free: 67.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/1.932, allocations: 1.61 MB / 0.9582 GB, free: 66.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/1.932, allocations: 0 / 0.9582 GB, free: 66.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/1.932, allocations: 47.84 kB / 0.9583 GB, free: 66.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/1.932, allocations: 99 kB / 0.9584 GB, free: 66.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/1.934, allocations: 1.588 MB / 0.9599 GB, free: 65.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007899/1.942, allocations: 6.533 MB / 0.9663 GB, free: 59.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/1.944, allocations: 0.9092 MB / 0.9672 GB, free: 58.26 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/1.944, allocations: 0.5495 MB / 0.9677 GB, free: 57.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00361/1.948, allocations: 2.908 MB / 0.9706 GB, free: 54.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/1.948, allocations: 47.34 kB / 0.9706 GB, free: 54.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.184e-06/1.948, allocations: 2.219 kB / 0.9706 GB, free: 54.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.005007/1.953, allocations: 2.826 MB / 0.9734 GB, free: 51.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/1.953, allocations: 188.7 kB / 0.9735 GB, free: 51.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/1.954, allocations: 1.134 MB / 0.9746 GB, free: 50.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.344e-05/1.954, allocations: 57.62 kB / 0.9747 GB, free: 50.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003219/1.955, allocations: 0.6395 MB / 0.9753 GB, free: 49.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/1.955, allocations: 317.2 kB / 0.9756 GB, free: 49.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-05/1.955, allocations: 34.5 kB / 0.9757 GB, free: 49.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/1.955, allocations: 353.9 kB / 0.976 GB, free: 48.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007239/1.956, allocations: 0.5467 MB / 0.9765 GB, free: 48.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008536/1.957, allocations: 0.9389 MB / 0.9775 GB, free: 47.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008111/1.958, allocations: 0.6689 MB / 0.9781 GB, free: 46.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/1.958, allocations: 4 kB / 0.9781 GB, free: 46.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00245/1.96, allocations: 1.811 MB / 0.9799 GB, free: 44.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006792/1.961, allocations: 4.389 MB / 0.9842 GB, free: 40.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/1.961, allocations: 12 kB / 0.9842 GB, free: 40.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003606/1.964, allocations: 0.6449 MB / 0.9848 GB, free: 39.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/1.965, allocations: 283.5 kB / 0.9851 GB, free: 39.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/1.967, allocations: 2.165 MB / 0.9872 GB, free: 36.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/1.968, allocations: 106.8 kB / 0.9873 GB, free: 36.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/1.968, allocations: 63.98 kB / 0.9874 GB, free: 36.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/1.968, allocations: 4 kB / 0.9874 GB, free: 36.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002181/1.97, allocations: 1.603 MB / 0.9889 GB, free: 35.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/1.97, allocations: 8 kB / 0.9889 GB, free: 35.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002832/1.973, allocations: 0.5048 MB / 0.9894 GB, free: 34.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009854/1.974, allocations: 283.5 kB / 0.9897 GB, free: 34.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/1.975, allocations: 2.015 MB / 0.9917 GB, free: 32.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/1.977, allocations: 97.78 kB / 0.9918 GB, free: 32.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/1.977, allocations: 63.98 kB / 0.9918 GB, free: 32.16 MB / 426.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 () * 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.0003156/1.977, allocations: 198.7 kB / 0.992 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/1.977, allocations: 142.4 kB / 0.9921 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002534/1.98, allocations: 1.505 MB / 0.9936 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/1.98, allocations: 12 kB / 0.9936 GB, free: 30.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/1.98, allocations: 5.562 kB / 0.9936 GB, free: 30.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/1.98, allocations: 3.984 kB / 0.9936 GB, free: 30.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/1.984, allocations: 2.798 MB / 0.9964 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.984, allocations: 4 kB / 0.9964 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006226/1.984, allocations: 155.8 kB / 0.9965 GB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002605/1.987, allocations: 0.6035 MB / 0.9971 GB, free: 26.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.87e-05/1.987, allocations: 27.92 kB / 0.9971 GB, free: 26.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/1.988, allocations: 2.109 MB / 0.9992 GB, free: 24.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.988, allocations: 4.031 kB / 0.9992 GB, free: 24.47 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00256/1.991, allocations: 2.113 MB / 1.001 GB, free: 22.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/1.991, allocations: 255.1 kB / 1.002 GB, free: 22.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/1.991, allocations: 24 kB / 1.002 GB, free: 21.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008927/1.992, allocations: 75.94 kB / 1.002 GB, free: 21.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/1.992, allocations: 96.8 kB / 1.002 GB, free: 21.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8e-05/1.993, allocations: 47.92 kB / 1.002 GB, free: 21.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009951/1.994, allocations: 0.8753 MB / 1.003 GB, free: 20.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.994, allocations: 0 / 1.003 GB, free: 20.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003154/1.997, allocations: 1.225 MB / 1.004 GB, free: 19.68 MB / 426.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]) * 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.00263/1.999, allocations: 1.108 MB / 1.005 GB, free: 18.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003569/2.003, allocations: 2.197 MB / 1.007 GB, free: 16.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/2.003, allocations: 0 / 1.007 GB, free: 16.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/2.004, allocations: 0.6926 MB / 1.008 GB, free: 15.78 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/2.007, allocations: 0.5815 MB / 1.008 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/2.011, allocations: 2.11 MB / 1.01 GB, free: 13.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007391/2.012, allocations: 1.293 MB / 1.012 GB, free: 11.75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002468/2.014, allocations: 0.6583 MB / 1.012 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/2.015, allocations: 99.41 kB / 1.012 GB, free: 11.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/2.015, allocations: 0 / 1.012 GB, free: 11.02 MB / 426.7 MB Notification: Performance of Templates: time 0.2706/2.285, allocations: 40.64 MB / 1.052 GB, free: 63.92 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_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/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches