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.001319/0.001319, allocations: 183.8 kB / 18.04 MB, free: 3.781 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.411/1.411, allocations: 205.4 MB / 224.2 MB, free: 9.023 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.0007143/0.000714, allocations: 88.98 kB / 272.5 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.00036, allocations: 8 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2361, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6194/0.8555, allocations: 327 MB / 0.6875 GB, free: 137.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.8559, allocations: 97.81 kB / 0.6876 GB, free: 137.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9955/1.851, allocations: 324 MB / 1.004 GB, free: 46.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.412e-06/1.851, allocations: 3.125 kB / 1.004 GB, free: 46.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001974/1.852, allocations: 53.52 kB / 1.004 GB, free: 46.51 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.00806/1.86, allocations: 2.225 MB / 1.006 GB, free: 45.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/1.86, allocations: 11.12 kB / 1.006 GB, free: 45.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001323/1.861, allocations: 207 kB / 1.006 GB, free: 45.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004321/1.865, allocations: 1.232 MB / 1.008 GB, free: 45.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/1.866, allocations: 102.1 kB / 1.008 GB, free: 45.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004584/1.866, allocations: 117.8 kB / 1.008 GB, free: 45.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005742/1.872, allocations: 1.961 MB / 1.01 GB, free: 44.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.389e-05/1.872, allocations: 7.312 kB / 1.01 GB, free: 44.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004159/1.872, allocations: 54.59 kB / 1.01 GB, free: 44.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002649/1.873, allocations: 118.5 kB / 1.01 GB, free: 44.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005526/1.878, allocations: 1.955 MB / 1.012 GB, free: 44.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01902/1.897, allocations: 7.631 MB / 1.019 GB, free: 41.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003422/1.901, allocations: 1.171 MB / 1.02 GB, free: 41.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/1.903, allocations: 0.7469 MB / 1.021 GB, free: 41.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00789/1.911, allocations: 3.399 MB / 1.025 GB, free: 39.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/1.911, allocations: 53.91 kB / 1.025 GB, free: 39.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 6.402e-06/1.911, allocations: 0 / 1.025 GB, free: 39.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01542/1.926, allocations: 5.436 MB / 1.03 GB, free: 38.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/1.926, allocations: 169.9 kB / 1.03 GB, free: 38.53 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/1.928, allocations: 1.419 MB / 1.031 GB, free: 38.35 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/1.929, allocations: 59.2 kB / 1.031 GB, free: 38.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004803/1.929, allocations: 0.7012 MB / 1.032 GB, free: 38.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003117/1.929, allocations: 477.4 kB / 1.033 GB, free: 37.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.362e-05/1.93, allocations: 36.44 kB / 1.033 GB, free: 37.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.263e-05/1.93, allocations: 369.6 kB / 1.033 GB, free: 37.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/1.931, allocations: 0.7491 MB / 1.034 GB, free: 37.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/1.932, allocations: 1.165 MB / 1.035 GB, free: 37.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/1.934, allocations: 1.823 MB / 1.037 GB, free: 36.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.383e-05/1.934, allocations: 7.906 kB / 1.037 GB, free: 36.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003663/1.938, allocations: 2.385 MB / 1.039 GB, free: 36.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002026/1.938, allocations: 418.3 kB / 1.039 GB, free: 35.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/1.938, allocations: 11.19 kB / 1.039 GB, free: 35.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005062/1.943, allocations: 0.9555 MB / 1.04 GB, free: 35.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/1.945, allocations: 350.1 kB / 1.041 GB, free: 35.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/1.947, allocations: 2.905 MB / 1.043 GB, free: 33.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/1.949, allocations: 137.2 kB / 1.044 GB, free: 33.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000303/1.949, allocations: 77.44 kB / 1.044 GB, free: 33.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/1.949, allocations: 5.781 kB / 1.044 GB, free: 33.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003667/1.953, allocations: 2.099 MB / 1.046 GB, free: 33.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/1.953, allocations: 11.72 kB / 1.046 GB, free: 33.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003891/1.957, allocations: 0.6825 MB / 1.046 GB, free: 33.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/1.958, allocations: 358.3 kB / 1.047 GB, free: 33.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/1.96, allocations: 2.647 MB / 1.049 GB, free: 31.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/1.961, allocations: 136.1 kB / 1.049 GB, free: 31.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/1.962, allocations: 78.55 kB / 1.05 GB, free: 31.59 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 () * Number of clocked 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.001017/1.963, allocations: 0.5152 MB / 1.05 GB, free: 31.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004258/1.963, allocations: 172.7 kB / 1.05 GB, free: 31.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004584/1.968, allocations: 2.348 MB / 1.053 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/1.968, allocations: 13.59 kB / 1.053 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/1.968, allocations: 6.219 kB / 1.053 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/1.968, allocations: 8.062 kB / 1.053 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006979/1.975, allocations: 4.003 MB / 1.056 GB, free: 30.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/1.975, allocations: 6.406 kB / 1.056 GB, free: 30.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009612/1.976, allocations: 241.3 kB / 1.057 GB, free: 30.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003679/1.979, allocations: 0.8836 MB / 1.058 GB, free: 30.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/1.98, allocations: 41.83 kB / 1.058 GB, free: 30.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/1.981, allocations: 2.85 MB / 1.06 GB, free: 28.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/1.981, allocations: 2.375 kB / 1.06 GB, free: 28.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/1.986, allocations: 3.167 MB / 1.063 GB, free: 28.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006303/1.987, allocations: 278.3 kB / 1.064 GB, free: 27.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000396/1.987, allocations: 38.2 kB / 1.064 GB, free: 27.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/1.988, allocations: 104.3 kB / 1.064 GB, free: 27.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/1.989, allocations: 154.9 kB / 1.064 GB, free: 27.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/1.989, allocations: 60.69 kB / 1.064 GB, free: 27.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001419/1.99, allocations: 0.9756 MB / 1.065 GB, free: 27.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.99, allocations: 0 / 1.065 GB, free: 27.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004/1.994, allocations: 1.379 MB / 1.066 GB, free: 27.66 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]) * Number of clocked states: 0 () * 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.003059/1.997, allocations: 1.24 MB / 1.068 GB, free: 27.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005167/2.002, allocations: 3.026 MB / 1.071 GB, free: 27.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/2.003, allocations: 1.312 kB / 1.071 GB, free: 27.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001738/2.004, allocations: 1.073 MB / 1.072 GB, free: 27.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/2.008, allocations: 0.7546 MB / 1.072 GB, free: 27.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005543/2.014, allocations: 4.089 MB / 1.076 GB, free: 25.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009541/2.015, allocations: 1.402 MB / 1.078 GB, free: 24.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002623/2.017, allocations: 0.7141 MB / 1.078 GB, free: 24.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004666/2.018, allocations: 153 kB / 1.079 GB, free: 24.9 MB / 426.7 MB Notification: Performance of SimCode: time 6.21e-07/2.018, allocations: 0 / 1.079 GB, free: 24.9 MB / 426.7 MB Notification: Performance of Templates: time 0.0668/2.085, allocations: 48.72 MB / 1.126 GB, free: 5.586 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/jenkins1/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