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.001277/0.001277, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001064/0.001064, allocations: 105.2 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002326/0.0002325, allocations: 4 kB / 357.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2181, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6524/0.8706, allocations: 325.6 MB / 0.7178 GB, free: 113 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.8708, allocations: 96.5 kB / 0.7179 GB, free: 113 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7226/1.593, allocations: 287.4 MB / 0.9986 GB, free: 24.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.734e-06/1.593, allocations: 0 / 0.9986 GB, free: 24.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001328/1.594, allocations: 43.92 kB / 0.9986 GB, free: 24.01 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.004802/1.598, allocations: 1.952 MB / 1.001 GB, free: 22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/1.598, allocations: 12.03 kB / 1.001 GB, free: 21.99 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008845/1.599, allocations: 170.2 kB / 1.001 GB, free: 21.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002569/1.602, allocations: 1.046 MB / 1.002 GB, free: 20.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.031e-05/1.602, allocations: 81.97 kB / 1.002 GB, free: 20.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002942/1.602, allocations: 95.97 kB / 1.002 GB, free: 20.56 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/1.605, allocations: 1.629 MB / 1.003 GB, free: 18.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/1.605, allocations: 0 / 1.003 GB, free: 18.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/1.605, allocations: 43.98 kB / 1.004 GB, free: 18.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/1.605, allocations: 105.9 kB / 1.004 GB, free: 18.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/1.607, allocations: 1.616 MB / 1.005 GB, free: 17.07 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00812/1.615, allocations: 6.529 MB / 1.012 GB, free: 10.19 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/1.617, allocations: 0.9263 MB / 1.012 GB, free: 9.254 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003279/1.62, allocations: 2.832 MB / 1.015 GB, free: 6.172 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/1.62, allocations: 47.22 kB / 1.015 GB, free: 6.113 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.094e-06/1.62, allocations: 4 kB / 1.015 GB, free: 6.109 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.007119/1.627, allocations: 3.709 MB / 1.019 GB, free: 2.289 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/1.627, allocations: 188.9 kB / 1.019 GB, free: 2.062 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/1.628, allocations: 1.151 MB / 1.02 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.709e-05/1.628, allocations: 49.7 kB / 1.02 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003447/1.629, allocations: 0.6434 MB / 1.021 GB, free: 196 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2263/1.855, allocations: 317.4 kB / 1.021 GB, free: 66.88 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003152/1.856, allocations: 29.09 kB / 1.021 GB, free: 66.88 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/1.856, allocations: 361.1 kB / 1.022 GB, free: 66.58 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/1.857, allocations: 0.5576 MB / 1.022 GB, free: 66.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/1.859, allocations: 0.9536 MB / 1.023 GB, free: 66.13 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/1.86, allocations: 0.6678 MB / 1.024 GB, free: 66.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-05/1.86, allocations: 3.781 kB / 1.024 GB, free: 66.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003434/1.864, allocations: 1.835 MB / 1.025 GB, free: 66.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008737/1.865, allocations: 4.397 MB / 1.03 GB, free: 61.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-05/1.865, allocations: 11.44 kB / 1.03 GB, free: 61.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003874/1.868, allocations: 0.6609 MB / 1.03 GB, free: 61.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/1.87, allocations: 281.5 kB / 1.031 GB, free: 61.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/1.871, allocations: 2.161 MB / 1.033 GB, free: 59.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/1.873, allocations: 109.3 kB / 1.033 GB, free: 59.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/1.873, allocations: 63.64 kB / 1.033 GB, free: 59.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/1.873, allocations: 3.938 kB / 1.033 GB, free: 59.96 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002731/1.876, allocations: 1.629 MB / 1.035 GB, free: 59.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.698e-05/1.876, allocations: 11.12 kB / 1.035 GB, free: 59.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003391/1.879, allocations: 0.5051 MB / 1.035 GB, free: 59.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/1.88, allocations: 283.1 kB / 1.035 GB, free: 59.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/1.882, allocations: 2.013 MB / 1.037 GB, free: 58.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/1.883, allocations: 103.6 kB / 1.037 GB, free: 58.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/1.883, allocations: 64.64 kB / 1.037 GB, free: 58.34 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.0007333/1.884, allocations: 464.3 kB / 1.038 GB, free: 58.15 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003341/1.884, allocations: 143.8 kB / 1.038 GB, free: 58.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/1.887, allocations: 1.519 MB / 1.04 GB, free: 58.01 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.887, allocations: 19.66 kB / 1.04 GB, free: 58.01 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/1.887, allocations: 0 / 1.04 GB, free: 58.01 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/1.887, allocations: 12.52 kB / 1.04 GB, free: 58.01 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004184/1.891, allocations: 2.814 MB / 1.042 GB, free: 57.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/1.891, allocations: 6.688 kB / 1.042 GB, free: 57.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006471/1.892, allocations: 154.3 kB / 1.042 GB, free: 57.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002685/1.895, allocations: 0.6145 MB / 1.043 GB, free: 57.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-05/1.895, allocations: 30.52 kB / 1.043 GB, free: 57.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/1.896, allocations: 2.122 MB / 1.045 GB, free: 56.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.896, allocations: 3.844 kB / 1.045 GB, free: 56.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002925/1.899, allocations: 2.131 MB / 1.047 GB, free: 55.63 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005487/1.9, allocations: 251.5 kB / 1.048 GB, free: 55.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003062/1.9, allocations: 31.73 kB / 1.048 GB, free: 55.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/1.901, allocations: 85.42 kB / 1.048 GB, free: 55.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/1.901, allocations: 94.27 kB / 1.048 GB, free: 55.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/1.901, allocations: 45.03 kB / 1.048 GB, free: 55.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001074/1.903, allocations: 0.8932 MB / 1.049 GB, free: 55.34 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.903, allocations: 0 / 1.049 GB, free: 55.34 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003205/1.906, allocations: 1.231 MB / 1.05 GB, free: 55.34 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.002701/1.909, allocations: 1.121 MB / 1.051 GB, free: 55.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003409/1.912, allocations: 2.186 MB / 1.053 GB, free: 55.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.912, allocations: 0 / 1.053 GB, free: 55.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/1.913, allocations: 0.7 MB / 1.054 GB, free: 55.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/1.915, allocations: 0.5893 MB / 1.054 GB, free: 55.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/1.919, allocations: 3.141 MB / 1.057 GB, free: 53.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/1.92, allocations: 1.285 MB / 1.059 GB, free: 53.27 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00172/1.921, allocations: 0.5604 MB / 1.059 GB, free: 53.25 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/1.922, allocations: 113.8 kB / 1.059 GB, free: 53.24 MB / 458.7 MB Notification: Performance of SimCode: time 3.71e-07/1.922, allocations: 0 / 1.059 GB, free: 53.24 MB / 458.7 MB Notification: Performance of Templates: time 0.04797/1.97, allocations: 38.15 MB / 1.097 GB, free: 51.34 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/jenkins/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