Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009363/0.0009365, allocations: 176.4 kB / 17.4 MB, free: 4.301 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.442/1.442, allocations: 223.3 MB / 241.4 MB, free: 9.961 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.0007575/0.0007575, allocations: 92.41 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003518, allocations: 19.92 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2047, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7237/0.9284, allocations: 325 MB / 0.7107 GB, free: 158.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.9288, allocations: 94.06 kB / 0.7107 GB, free: 158.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7854/1.714, allocations: 286.5 MB / 0.9905 GB, free: 53.61 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.714, allocations: 8 kB / 0.9905 GB, free: 53.61 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001609/1.714, allocations: 31.91 kB / 0.9905 GB, free: 53.58 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.005531/1.72, allocations: 1.947 MB / 0.9924 GB, free: 51.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/1.72, allocations: 12.03 kB / 0.9925 GB, free: 51.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009072/1.721, allocations: 173.3 kB / 0.9926 GB, free: 51.42 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/1.723, allocations: 1.068 MB / 0.9937 GB, free: 50.33 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-05/1.723, allocations: 85.8 kB / 0.9937 GB, free: 50.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002984/1.724, allocations: 95.91 kB / 0.9938 GB, free: 50.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/1.726, allocations: 1.629 MB / 0.9954 GB, free: 48.47 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.171e-05/1.726, allocations: 7.938 kB / 0.9954 GB, free: 48.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/1.726, allocations: 43.81 kB / 0.9955 GB, free: 48.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/1.726, allocations: 105.9 kB / 0.9956 GB, free: 48.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002417/1.729, allocations: 1.616 MB / 0.9972 GB, free: 46.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009093/1.738, allocations: 6.477 MB / 1.003 GB, free: 39.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/1.739, allocations: 0.924 MB / 1.004 GB, free: 39 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007032/1.74, allocations: 0.5586 MB / 1.005 GB, free: 38.44 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003404/1.743, allocations: 2.804 MB / 1.008 GB, free: 35.41 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/1.743, allocations: 43.22 kB / 1.008 GB, free: 35.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.725e-06/1.743, allocations: 0 / 1.008 GB, free: 35.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.008652/1.752, allocations: 3.719 MB / 1.011 GB, free: 31.53 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/1.752, allocations: 196.9 kB / 1.012 GB, free: 31.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/1.754, allocations: 1.302 MB / 1.013 GB, free: 29.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/1.755, allocations: 53.7 kB / 1.013 GB, free: 29.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004276/1.755, allocations: 0.6394 MB / 1.013 GB, free: 29.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/1.755, allocations: 326.7 kB / 1.014 GB, free: 28.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.173e-05/1.755, allocations: 28 kB / 1.014 GB, free: 28.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/1.756, allocations: 365.9 kB / 1.014 GB, free: 28.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/1.757, allocations: 0.5504 MB / 1.015 GB, free: 28.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/1.758, allocations: 0.9673 MB / 1.016 GB, free: 26.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/1.76, allocations: 1.42 MB / 1.017 GB, free: 25.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/1.76, allocations: 4 kB / 1.017 GB, free: 25.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002842/1.763, allocations: 1.834 MB / 1.019 GB, free: 23.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001854/1.763, allocations: 427.7 kB / 1.019 GB, free: 22.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/1.763, allocations: 19.92 kB / 1.019 GB, free: 22.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003454/1.766, allocations: 0.658 MB / 1.02 GB, free: 22.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009424/1.767, allocations: 283.5 kB / 1.02 GB, free: 21.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/1.769, allocations: 2.157 MB / 1.022 GB, free: 19.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/1.77, allocations: 107.9 kB / 1.022 GB, free: 19.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/1.77, allocations: 67.97 kB / 1.022 GB, free: 19.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/1.77, allocations: 6.5 kB / 1.022 GB, free: 19.51 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002383/1.773, allocations: 1.627 MB / 1.024 GB, free: 17.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/1.773, allocations: 12 kB / 1.024 GB, free: 17.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/1.775, allocations: 0.5064 MB / 1.025 GB, free: 17.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009504/1.776, allocations: 287.5 kB / 1.025 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/1.778, allocations: 2.012 MB / 1.027 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/1.779, allocations: 99.97 kB / 1.027 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/1.779, allocations: 67.97 kB / 1.027 GB, free: 14.81 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.0007473/1.78, allocations: 477.1 kB / 1.027 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002824/1.78, allocations: 142.3 kB / 1.028 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/1.783, allocations: 1.504 MB / 1.029 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/1.783, allocations: 8 kB / 1.029 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.783, allocations: 0 / 1.029 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/1.783, allocations: 11.97 kB / 1.029 GB, free: 12.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004162/1.787, allocations: 2.805 MB / 1.032 GB, free: 9.793 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.787, allocations: 4.031 kB / 1.032 GB, free: 9.789 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006322/1.788, allocations: 155.8 kB / 1.032 GB, free: 9.637 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002642/1.79, allocations: 0.6073 MB / 1.033 GB, free: 9.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.184e-05/1.79, allocations: 32.05 kB / 1.033 GB, free: 8.988 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/1.792, allocations: 2.125 MB / 1.035 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.792, allocations: 0 / 1.035 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/1.795, allocations: 2.09 MB / 1.037 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/1.795, allocations: 247.2 kB / 1.037 GB, free: 4.402 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003142/1.795, allocations: 24 kB / 1.037 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/1.796, allocations: 83.78 kB / 1.037 GB, free: 4.297 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/1.797, allocations: 96.8 kB / 1.037 GB, free: 4.203 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.652e-05/1.797, allocations: 43.97 kB / 1.037 GB, free: 4.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001228/1.798, allocations: 0.8888 MB / 1.038 GB, free: 3.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.798, allocations: 4 kB / 1.038 GB, free: 3.266 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003623/1.802, allocations: 1.222 MB / 1.039 GB, free: 2.043 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.002957/1.805, allocations: 1.118 MB / 1.04 GB, free: 1.004 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.232/2.037, allocations: 2.177 MB / 1.042 GB, free: 73.24 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/2.037, allocations: 1.562 kB / 1.042 GB, free: 73.24 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/2.038, allocations: 0.705 MB / 1.043 GB, free: 73.24 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003045/2.041, allocations: 0.581 MB / 1.044 GB, free: 73.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/2.045, allocations: 3.156 MB / 1.047 GB, free: 72.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000625/2.046, allocations: 1.263 MB / 1.048 GB, free: 71.32 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001763/2.048, allocations: 0.5538 MB / 1.049 GB, free: 71.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/2.048, allocations: 115.2 kB / 1.049 GB, free: 71.29 MB / 458.7 MB Notification: Performance of SimCode: time 2.365e-05/2.048, allocations: 0 / 1.049 GB, free: 71.29 MB / 458.7 MB Notification: Performance of Templates: time 0.05675/2.105, allocations: 39.21 MB / 1.087 GB, free: 69.67 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches