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.001243/0.001243, allocations: 182.6 kB / 18.04 MB, free: 3.789 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.441/1.441, allocations: 205.4 MB / 224.2 MB, free: 9.047 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.0007985/0.0007986, allocations: 81.69 kB / 272.5 MB, free: 8.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.00032, allocations: 12 kB / 329.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2267, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6546/0.8814, allocations: 324 MB / 0.6846 GB, free: 140.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.8817, allocations: 94.39 kB / 0.6847 GB, free: 140.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5432/1.425, allocations: 191.7 MB / 0.8719 GB, free: 88.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.425, allocations: 0 / 0.8719 GB, free: 88.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.811e-05/1.425, allocations: 26.97 kB / 0.8719 GB, free: 88.31 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.003666/1.429, allocations: 1.403 MB / 0.8733 GB, free: 87.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/1.429, allocations: 9.75 kB / 0.8733 GB, free: 87.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005824/1.429, allocations: 115.5 kB / 0.8734 GB, free: 87.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/1.431, allocations: 0.7539 MB / 0.8742 GB, free: 87.17 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.505e-05/1.431, allocations: 54.42 kB / 0.8742 GB, free: 87.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/1.431, allocations: 66.48 kB / 0.8743 GB, free: 87.17 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/1.433, allocations: 1.053 MB / 0.8753 GB, free: 86.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/1.433, allocations: 3.969 kB / 0.8753 GB, free: 86.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/1.433, allocations: 32.91 kB / 0.8753 GB, free: 86.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.566e-05/1.433, allocations: 65.31 kB / 0.8754 GB, free: 86.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/1.435, allocations: 1.01 MB / 0.8764 GB, free: 86.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006088/1.441, allocations: 4.354 MB / 0.8806 GB, free: 84.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/1.442, allocations: 0.5704 MB / 0.8812 GB, free: 84.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004151/1.443, allocations: 316.5 kB / 0.8815 GB, free: 84.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002169/1.445, allocations: 1.979 MB / 0.8834 GB, free: 82.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/1.445, allocations: 38.86 kB / 0.8835 GB, free: 82.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.614e-06/1.445, allocations: 0 / 0.8835 GB, free: 82.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.003991/1.449, allocations: 1.955 MB / 0.8854 GB, free: 81.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/1.449, allocations: 162.1 kB / 0.8855 GB, free: 81.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/1.45, allocations: 0.9151 MB / 0.8864 GB, free: 81.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-05/1.45, allocations: 43.17 kB / 0.8865 GB, free: 81.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/1.451, allocations: 482.9 kB / 0.8869 GB, free: 80.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/1.451, allocations: 162.8 kB / 0.8871 GB, free: 80.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/1.451, allocations: 19.94 kB / 0.8871 GB, free: 80.69 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.357e-05/1.451, allocations: 337.1 kB / 0.8874 GB, free: 80.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/1.451, allocations: 308.9 kB / 0.8877 GB, free: 80.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000601/1.452, allocations: 0.6052 MB / 0.8883 GB, free: 79.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/1.453, allocations: 0.8432 MB / 0.8891 GB, free: 79.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/1.453, allocations: 7.75 kB / 0.8891 GB, free: 79.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001851/1.455, allocations: 1.081 MB / 0.8902 GB, free: 78.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001471/1.455, allocations: 341.4 kB / 0.8905 GB, free: 78.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/1.455, allocations: 10.94 kB / 0.8905 GB, free: 78.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/1.457, allocations: 320.7 kB / 0.8908 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006/1.458, allocations: 177.7 kB / 0.891 GB, free: 78.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00087/1.459, allocations: 1.344 MB / 0.8923 GB, free: 77.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008758/1.459, allocations: 60.8 kB / 0.8924 GB, free: 77.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.389e-05/1.459, allocations: 45.47 kB / 0.8924 GB, free: 77.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/1.46, allocations: 4.688 kB / 0.8924 GB, free: 77.14 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001389/1.461, allocations: 0.9527 MB / 0.8934 GB, free: 76.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/1.461, allocations: 11.31 kB / 0.8934 GB, free: 76.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/1.462, allocations: 292.6 kB / 0.8936 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/1.463, allocations: 184.1 kB / 0.8938 GB, free: 76.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007481/1.464, allocations: 1.307 MB / 0.8951 GB, free: 75.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007982/1.465, allocations: 60.42 kB / 0.8952 GB, free: 75.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.348e-05/1.465, allocations: 54.55 kB / 0.8952 GB, free: 75.5 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.00053/1.465, allocations: 361.6 kB / 0.8955 GB, free: 75.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/1.465, allocations: 89.53 kB / 0.8956 GB, free: 75.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/1.467, allocations: 0.7842 MB / 0.8964 GB, free: 74.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/1.467, allocations: 7.812 kB / 0.8964 GB, free: 74.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.467, allocations: 0 / 0.8964 GB, free: 74.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/1.467, allocations: 0 / 0.8964 GB, free: 74.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/1.47, allocations: 1.59 MB / 0.898 GB, free: 74.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/1.47, allocations: 3.938 kB / 0.898 GB, free: 74.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003531/1.47, allocations: 80.28 kB / 0.898 GB, free: 74.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00136/1.471, allocations: 284.6 kB / 0.8983 GB, free: 73.99 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/1.471, allocations: 11.5 kB / 0.8983 GB, free: 73.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008973/1.472, allocations: 1.317 MB / 0.8996 GB, free: 72.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.472, allocations: 0 / 0.8996 GB, free: 72.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/1.474, allocations: 1.082 MB / 0.9007 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/1.474, allocations: 188.2 kB / 0.9008 GB, free: 72.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001937/1.474, allocations: 14.62 kB / 0.9009 GB, free: 72.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/1.475, allocations: 43 kB / 0.9009 GB, free: 72.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/1.475, allocations: 51.89 kB / 0.9009 GB, free: 72.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.38e-05/1.475, allocations: 26.52 kB / 0.901 GB, free: 72.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009249/1.476, allocations: 0.643 MB / 0.9016 GB, free: 71.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.476, allocations: 0 / 0.9016 GB, free: 71.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002696/1.479, allocations: 0.8335 MB / 0.9024 GB, free: 71.61 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.002207/1.481, allocations: 0.8098 MB / 0.9032 GB, free: 71.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002335/1.483, allocations: 1.227 MB / 0.9044 GB, free: 70.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.483, allocations: 7.625 kB / 0.9044 GB, free: 70.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007756/1.484, allocations: 358.9 kB / 0.9048 GB, free: 70.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/1.486, allocations: 390.4 kB / 0.9051 GB, free: 70.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/1.489, allocations: 1.986 MB / 0.9071 GB, free: 69.78 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/1.49, allocations: 1.031 MB / 0.9081 GB, free: 69.05 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00125/1.491, allocations: 368.3 kB / 0.9084 GB, free: 69.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/1.491, allocations: 76.92 kB / 0.9085 GB, free: 69 MB / 426.7 MB Notification: Performance of SimCode: time 6.01e-07/1.491, allocations: 3.938 kB / 0.9085 GB, free: 69 MB / 426.7 MB Notification: Performance of Templates: time 0.03655/1.528, allocations: 24.99 MB / 0.9329 GB, free: 48.67 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/jenkins1/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