Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.0009285/0.0009286, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.535/1.535, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0007029/0.000703, allocations: 81.44 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004949/0.000495, allocations: 8 kB / 328.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2336, allocations: 47.57 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6432/0.8769, allocations: 327 MB / 0.6862 GB, free: 138 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.8772, allocations: 102.5 kB / 0.6863 GB, free: 138 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.093/1.97, allocations: 324 MB / 1.003 GB, free: 46.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.97, allocations: 0 / 1.003 GB, free: 46.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001293/1.971, allocations: 43.08 kB / 1.003 GB, free: 46.17 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.005863/1.976, allocations: 2.23 MB / 1.005 GB, free: 45.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.977, allocations: 11.73 kB / 1.005 GB, free: 45.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007469/1.977, allocations: 208.5 kB / 1.005 GB, free: 45.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002404/1.98, allocations: 1.227 MB / 1.006 GB, free: 44.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/1.98, allocations: 102.9 kB / 1.006 GB, free: 44.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/1.98, allocations: 117.9 kB / 1.007 GB, free: 44.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00303/1.983, allocations: 1.961 MB / 1.009 GB, free: 44.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/1.983, allocations: 9.953 kB / 1.009 GB, free: 44.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/1.983, allocations: 54.28 kB / 1.009 GB, free: 44.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/1.984, allocations: 120 kB / 1.009 GB, free: 44.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002916/1.987, allocations: 1.958 MB / 1.011 GB, free: 44.51 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/1.998, allocations: 7.631 MB / 1.018 GB, free: 41.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/2, allocations: 1.172 MB / 1.019 GB, free: 41.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/2.001, allocations: 0.7402 MB / 1.02 GB, free: 41.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005015/2.006, allocations: 3.397 MB / 1.023 GB, free: 39.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/2.006, allocations: 61.7 kB / 1.023 GB, free: 39.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.216e-06/2.006, allocations: 0 / 1.023 GB, free: 39.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01211/2.018, allocations: 5.434 MB / 1.029 GB, free: 38.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/2.018, allocations: 169.3 kB / 1.029 GB, free: 38.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/2.02, allocations: 1.422 MB / 1.03 GB, free: 38.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/2.02, allocations: 60.62 kB / 1.03 GB, free: 37.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/2.021, allocations: 0.6978 MB / 1.031 GB, free: 37.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/2.021, allocations: 476.1 kB / 1.031 GB, free: 37.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/2.021, allocations: 37.59 kB / 1.031 GB, free: 37.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/2.021, allocations: 374.5 kB / 1.032 GB, free: 37.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/2.023, allocations: 0.7525 MB / 1.032 GB, free: 37.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/2.024, allocations: 1.163 MB / 1.034 GB, free: 36.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002171/2.026, allocations: 1.816 MB / 1.035 GB, free: 36.26 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/2.026, allocations: 7.594 kB / 1.035 GB, free: 36.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003701/2.03, allocations: 2.389 MB / 1.038 GB, free: 36.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002164/2.03, allocations: 422.1 kB / 1.038 GB, free: 35.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/2.03, allocations: 9.781 kB / 1.038 GB, free: 35.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005012/2.035, allocations: 0.9577 MB / 1.039 GB, free: 35.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/2.037, allocations: 338.9 kB / 1.039 GB, free: 35.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/2.039, allocations: 2.906 MB / 1.042 GB, free: 33.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/2.041, allocations: 132.7 kB / 1.042 GB, free: 33.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/2.041, allocations: 81.73 kB / 1.042 GB, free: 33.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/2.041, allocations: 5.031 kB / 1.042 GB, free: 33.46 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003313/2.044, allocations: 2.103 MB / 1.044 GB, free: 33.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/2.044, allocations: 14.62 kB / 1.044 GB, free: 33.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003938/2.048, allocations: 0.6768 MB / 1.045 GB, free: 33.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/2.05, allocations: 362.1 kB / 1.046 GB, free: 33.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/2.052, allocations: 2.649 MB / 1.048 GB, free: 31.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/2.053, allocations: 130.6 kB / 1.048 GB, free: 31.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/2.054, allocations: 79.8 kB / 1.048 GB, free: 31.26 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.001088/2.055, allocations: 0.5162 MB / 1.049 GB, free: 31.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004214/2.055, allocations: 166.5 kB / 1.049 GB, free: 30.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004411/2.059, allocations: 2.349 MB / 1.051 GB, free: 30.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/2.059, allocations: 17.97 kB / 1.051 GB, free: 30.81 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/2.06, allocations: 2.906 kB / 1.051 GB, free: 30.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/2.06, allocations: 9.062 kB / 1.051 GB, free: 30.81 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00731/2.067, allocations: 4.006 MB / 1.055 GB, free: 30.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/2.067, allocations: 2.938 kB / 1.055 GB, free: 30.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/2.068, allocations: 242 kB / 1.055 GB, free: 30.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003661/2.072, allocations: 0.8812 MB / 1.056 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002065/2.072, allocations: 46.08 kB / 1.056 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001963/2.074, allocations: 2.861 MB / 1.059 GB, free: 28.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/2.074, allocations: 0 / 1.059 GB, free: 28.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004648/2.078, allocations: 3.163 MB / 1.062 GB, free: 27.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007683/2.079, allocations: 277 kB / 1.062 GB, free: 27.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002568/2.08, allocations: 37.95 kB / 1.063 GB, free: 27.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/2.081, allocations: 105.8 kB / 1.063 GB, free: 27.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002787/2.081, allocations: 153.1 kB / 1.063 GB, free: 27.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/2.081, allocations: 64.19 kB / 1.063 GB, free: 27.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001596/2.083, allocations: 0.969 MB / 1.064 GB, free: 27.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/2.083, allocations: 0 / 1.064 GB, free: 27.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004328/2.087, allocations: 1.388 MB / 1.065 GB, free: 27.32 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.003176/2.09, allocations: 1.23 MB / 1.066 GB, free: 26.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005539/2.096, allocations: 3.026 MB / 1.069 GB, free: 26.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/2.096, allocations: 0 / 1.069 GB, free: 26.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/2.098, allocations: 1.066 MB / 1.07 GB, free: 26.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004209/2.102, allocations: 0.7572 MB / 1.071 GB, free: 26.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/2.108, allocations: 4.163 MB / 1.075 GB, free: 25.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008117/2.108, allocations: 1.389 MB / 1.076 GB, free: 24.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007379/2.109, allocations: 165.3 kB / 1.077 GB, free: 24.61 MB / 426.7 MB Notification: Performance of SimCode: time 9.61e-07/2.109, allocations: 0 / 1.077 GB, free: 24.61 MB / 426.7 MB Notification: Performance of Templates: time 0.07019/2.179, allocations: 61.43 MB / 1.137 GB, free: 9.645 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches