Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.3 MB / 241.4 MB, free: 9.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009261/0.000926, allocations: 99.56 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003264/0.0003264, allocations: 12 kB / 352.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2383, allocations: 50.41 MB / 402.8 MB, free: 32.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.733/0.9714, allocations: 328.9 MB / 0.7145 GB, free: 155 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.9717, allocations: 102.6 kB / 0.7146 GB, free: 154.9 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.523/1.495, allocations: 169.5 MB / 0.8801 GB, free: 101.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.283e-06/1.495, allocations: 3.969 kB / 0.8801 GB, free: 101.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.814e-05/1.495, allocations: 24.33 kB / 0.8801 GB, free: 101.8 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002523/1.497, allocations: 1.196 MB / 0.8813 GB, free: 101.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/1.497, allocations: 10.78 kB / 0.8813 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/1.498, allocations: 101.6 kB / 0.8814 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/1.499, allocations: 0.6446 MB / 0.882 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/1.499, allocations: 47.52 kB / 0.8821 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/1.499, allocations: 56.31 kB / 0.8821 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/1.5, allocations: 0.893 MB / 0.883 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/1.5, allocations: 0 / 0.883 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-05/1.5, allocations: 27.14 kB / 0.883 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.714e-05/1.5, allocations: 53.86 kB / 0.8831 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/1.502, allocations: 0.7888 MB / 0.8839 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004533/1.506, allocations: 3.748 MB / 0.8875 GB, free: 98.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008131/1.507, allocations: 0.5231 MB / 0.888 GB, free: 98.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003628/1.507, allocations: 260.6 kB / 0.8883 GB, free: 98.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001874/1.509, allocations: 1.835 MB / 0.8901 GB, free: 97.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/1.509, allocations: 47.31 kB / 0.8901 GB, free: 97.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 1.913e-06/1.509, allocations: 3.281 kB / 0.8901 GB, free: 97.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.003123/1.512, allocations: 1.749 MB / 0.8918 GB, free: 96.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/1.513, allocations: 143 kB / 0.892 GB, free: 96.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007395/1.513, allocations: 0.747 MB / 0.8927 GB, free: 96.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/1.513, allocations: 36.77 kB / 0.8927 GB, free: 96.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/1.514, allocations: 392.7 kB / 0.8931 GB, free: 96.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/1.514, allocations: 173.9 kB / 0.8933 GB, free: 96.31 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/1.514, allocations: 18.03 kB / 0.8933 GB, free: 96.31 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/1.514, allocations: 386 kB / 0.8937 GB, free: 96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/1.514, allocations: 253.7 kB / 0.8939 GB, free: 96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000516/1.515, allocations: 0.4993 MB / 0.8944 GB, free: 95.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008293/1.516, allocations: 0.7136 MB / 0.8951 GB, free: 95.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.516, allocations: 0 / 0.8951 GB, free: 95.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001281/1.517, allocations: 0.8833 MB / 0.8959 GB, free: 95.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001738/1.517, allocations: 304.6 kB / 0.8962 GB, free: 95.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/1.517, allocations: 7.938 kB / 0.8962 GB, free: 95.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009695/1.518, allocations: 164 kB / 0.8964 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009343/1.519, allocations: 190.7 kB / 0.8966 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/1.52, allocations: 1.807 MB / 0.8984 GB, free: 93.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007498/1.521, allocations: 53.89 kB / 0.8984 GB, free: 93.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/1.521, allocations: 41.08 kB / 0.8984 GB, free: 93.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/1.521, allocations: 3.719 kB / 0.8984 GB, free: 93.39 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001303/1.522, allocations: 0.7798 MB / 0.8992 GB, free: 93.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/1.522, allocations: 9.906 kB / 0.8992 GB, free: 93.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008072/1.523, allocations: 171.9 kB / 0.8994 GB, free: 93.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005827/1.524, allocations: 174 kB / 0.8995 GB, free: 93.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005876/1.524, allocations: 1.182 MB / 0.9007 GB, free: 92.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006356/1.525, allocations: 63.97 kB / 0.9008 GB, free: 92.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/1.525, allocations: 37.91 kB / 0.9008 GB, free: 92.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005308/1.526, allocations: 324.5 kB / 0.9011 GB, free: 92.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/1.526, allocations: 82.58 kB / 0.9012 GB, free: 92.07 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/1.527, allocations: 0.8246 MB / 0.902 GB, free: 91.99 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/1.527, allocations: 13.19 kB / 0.902 GB, free: 91.99 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.527, allocations: 3.938 kB / 0.902 GB, free: 91.99 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/1.527, allocations: 0 / 0.902 GB, free: 91.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/1.529, allocations: 1.558 MB / 0.9035 GB, free: 91.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/1.529, allocations: 10.34 kB / 0.9035 GB, free: 91.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/1.53, allocations: 131.6 kB / 0.9037 GB, free: 91.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005199/1.53, allocations: 127.2 kB / 0.9038 GB, free: 91.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/1.531, allocations: 15.5 kB / 0.9038 GB, free: 91.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000656/1.531, allocations: 1.748 MB / 0.9055 GB, free: 89.99 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.531, allocations: 10.16 kB / 0.9055 GB, free: 89.99 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/1.532, allocations: 1.095 MB / 0.9066 GB, free: 89.75 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/1.533, allocations: 169.1 kB / 0.9067 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/1.533, allocations: 10.03 kB / 0.9068 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004724/1.533, allocations: 49.19 kB / 0.9068 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/1.533, allocations: 50.98 kB / 0.9069 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/1.533, allocations: 32.52 kB / 0.9069 GB, free: 89.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005665/1.534, allocations: 0.5162 MB / 0.9074 GB, free: 89.51 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.534, allocations: 3.938 kB / 0.9074 GB, free: 89.51 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001682/1.536, allocations: 0.6506 MB / 0.908 GB, free: 89.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001167/1.537, allocations: 0.6676 MB / 0.9087 GB, free: 89.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002269/1.539, allocations: 1.168 MB / 0.9098 GB, free: 89.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/1.539, allocations: 0 / 0.9098 GB, free: 89.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000704/1.54, allocations: 386.4 kB / 0.9102 GB, free: 89.19 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/1.542, allocations: 369.8 kB / 0.9105 GB, free: 89.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/1.544, allocations: 1.87 MB / 0.9124 GB, free: 88.42 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/1.544, allocations: 0.9883 MB / 0.9133 GB, free: 87.71 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009988/1.545, allocations: 325.6 kB / 0.9136 GB, free: 87.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/1.545, allocations: 75.55 kB / 0.9137 GB, free: 87.7 MB / 458.7 MB Notification: Performance of SimCode: time 5.51e-07/1.545, allocations: 3.828 kB / 0.9137 GB, free: 87.7 MB / 458.7 MB Notification: Performance of Templates: time 0.0292/1.574, allocations: 21.63 MB / 0.9348 GB, free: 86.78 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches