Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 180 kB / 17.01 MB, free: 5.125 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.932/1.932, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009004/0.0009004, allocations: 96.08 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003033, allocations: 4 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.339, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8444/1.184, allocations: 323.9 MB / 0.6833 GB, free: 106.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/1.184, allocations: 90.17 kB / 0.6834 GB, free: 106.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6461/1.83, allocations: 192.9 MB / 0.8717 GB, free: 96.83 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.876e-06/1.83, allocations: 2.906 kB / 0.8717 GB, free: 96.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001338/1.83, allocations: 30.42 kB / 0.8718 GB, free: 96.82 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004636/1.835, allocations: 1.408 MB / 0.8732 GB, free: 95.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/1.835, allocations: 8.875 kB / 0.8732 GB, free: 95.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006989/1.836, allocations: 114.3 kB / 0.8733 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002043/1.838, allocations: 0.7433 MB / 0.874 GB, free: 95.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.964e-05/1.838, allocations: 54.22 kB / 0.874 GB, free: 95.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/1.838, allocations: 61 kB / 0.8741 GB, free: 95.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/1.84, allocations: 1.054 MB / 0.8751 GB, free: 94.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/1.84, allocations: 0 / 0.8751 GB, free: 94.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/1.84, allocations: 32.56 kB / 0.8752 GB, free: 94.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.17e-05/1.84, allocations: 60.59 kB / 0.8752 GB, free: 94.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/1.842, allocations: 1.023 MB / 0.8762 GB, free: 94.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006686/1.848, allocations: 4.39 MB / 0.8805 GB, free: 90.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009052/1.849, allocations: 0.5789 MB / 0.8811 GB, free: 90.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00252/1.852, allocations: 1.979 MB / 0.883 GB, free: 88.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/1.852, allocations: 46.62 kB / 0.8831 GB, free: 88.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.255e-06/1.852, allocations: 3.938 kB / 0.8831 GB, free: 88.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.004727/1.857, allocations: 1.936 MB / 0.8849 GB, free: 87.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/1.857, allocations: 165.4 kB / 0.8851 GB, free: 86.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/1.858, allocations: 0.8182 MB / 0.8859 GB, free: 86.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.315e-05/1.858, allocations: 40.97 kB / 0.8859 GB, free: 86.44 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/1.859, allocations: 478.3 kB / 0.8864 GB, free: 86.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/1.859, allocations: 164.5 kB / 0.8866 GB, free: 85.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/1.859, allocations: 19.66 kB / 0.8866 GB, free: 85.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.76e-05/1.859, allocations: 341.2 kB / 0.8869 GB, free: 85.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005082/1.859, allocations: 312.9 kB / 0.8872 GB, free: 85.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007111/1.86, allocations: 0.5945 MB / 0.8878 GB, free: 84.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005879/1.861, allocations: 390.5 kB / 0.8881 GB, free: 84.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/1.861, allocations: 3 kB / 0.8882 GB, free: 84.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001821/1.863, allocations: 1.079 MB / 0.8892 GB, free: 83.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00094/1.864, allocations: 3.32 MB / 0.8924 GB, free: 80.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/1.864, allocations: 8 kB / 0.8925 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00213/1.866, allocations: 319.6 kB / 0.8928 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/1.866, allocations: 171.7 kB / 0.8929 GB, free: 79.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/1.867, allocations: 1.357 MB / 0.8942 GB, free: 78.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/1.869, allocations: 59 kB / 0.8943 GB, free: 78.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/1.869, allocations: 43.98 kB / 0.8943 GB, free: 78.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/1.869, allocations: 4 kB / 0.8944 GB, free: 78.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001549/1.87, allocations: 0.9524 MB / 0.8953 GB, free: 77.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/1.87, allocations: 8 kB / 0.8953 GB, free: 77.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/1.872, allocations: 295.8 kB / 0.8956 GB, free: 77.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006071/1.873, allocations: 175.7 kB / 0.8957 GB, free: 76.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008364/1.874, allocations: 1.307 MB / 0.897 GB, free: 75.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009308/1.874, allocations: 58.81 kB / 0.8971 GB, free: 75.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.099e-05/1.875, allocations: 47.55 kB / 0.8971 GB, free: 75.51 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006168/1.875, allocations: 363.7 kB / 0.8975 GB, free: 75.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/1.875, allocations: 94.88 kB / 0.8976 GB, free: 75.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/1.877, allocations: 0.7883 MB / 0.8983 GB, free: 74.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.617e-06/1.877, allocations: 8 kB / 0.8983 GB, free: 74.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/1.877, allocations: 3.953 kB / 0.8983 GB, free: 74.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/1.877, allocations: 3.984 kB / 0.8983 GB, free: 74.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/1.88, allocations: 1.589 MB / 0.8999 GB, free: 72.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/1.88, allocations: 11.17 kB / 0.8999 GB, free: 72.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/1.88, allocations: 79.89 kB / 0.9 GB, free: 72.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/1.882, allocations: 281 kB / 0.9002 GB, free: 72.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/1.882, allocations: 12 kB / 0.9003 GB, free: 72.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008535/1.883, allocations: 1.315 MB / 0.9015 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.883, allocations: 0 / 0.9015 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/1.884, allocations: 1.104 MB / 0.9026 GB, free: 69.72 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004265/1.885, allocations: 198.8 kB / 0.9028 GB, free: 69.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/1.885, allocations: 19.98 kB / 0.9028 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006848/1.886, allocations: 38.62 kB / 0.9029 GB, free: 69.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/1.886, allocations: 44.38 kB / 0.9029 GB, free: 69.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.974e-05/1.886, allocations: 27.97 kB / 0.9029 GB, free: 69.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008595/1.887, allocations: 0.6442 MB / 0.9036 GB, free: 68.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.887, allocations: 3.938 kB / 0.9036 GB, free: 68.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003028/1.89, allocations: 0.8273 MB / 0.9044 GB, free: 67.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002837/1.893, allocations: 0.823 MB / 0.9052 GB, free: 67.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/1.895, allocations: 1.229 MB / 0.9064 GB, free: 65.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.895, allocations: 0 / 0.9064 GB, free: 65.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007866/1.896, allocations: 351.9 kB / 0.9067 GB, free: 65.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/1.898, allocations: 380.3 kB / 0.9071 GB, free: 65.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/1.901, allocations: 1.995 MB / 0.909 GB, free: 63.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/1.901, allocations: 1.057 MB / 0.9101 GB, free: 62.15 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001334/1.903, allocations: 359.1 kB / 0.9104 GB, free: 61.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/1.903, allocations: 83.41 kB / 0.9105 GB, free: 61.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/1.903, allocations: 0 / 0.9105 GB, free: 61.73 MB / 426.7 MB Notification: Performance of Templates: time 0.03707/1.94, allocations: 24.26 MB / 0.9342 GB, free: 37.63 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_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/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches