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.0009727/0.0009726, allocations: 171.3 kB / 14.1 MB, free: 1.223 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.4/1.4, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008557/0.0008557, allocations: 82.67 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.336e-05/2.338e-05, allocations: 0 / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09148, allocations: 47.58 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6993/0.7909, allocations: 323.8 MB / 0.6776 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.7912, allocations: 89.39 kB / 0.6776 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8645/1.656, allocations: 192.2 MB / 0.8654 GB, free: 76.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.656, allocations: 0 / 0.8654 GB, free: 76.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001453/1.656, allocations: 23.95 kB / 0.8654 GB, free: 76.21 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.003764/1.66, allocations: 1.295 MB / 0.8667 GB, free: 75.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/1.66, allocations: 12.7 kB / 0.8667 GB, free: 75.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005646/1.66, allocations: 113.1 kB / 0.8668 GB, free: 75.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/1.662, allocations: 0.7295 MB / 0.8675 GB, free: 75.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/1.662, allocations: 49.61 kB / 0.8675 GB, free: 75.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/1.662, allocations: 63.55 kB / 0.8676 GB, free: 75.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/1.664, allocations: 1.047 MB / 0.8686 GB, free: 75.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/1.664, allocations: 3.469 kB / 0.8686 GB, free: 75.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.446e-05/1.664, allocations: 27 kB / 0.8687 GB, free: 75.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/1.664, allocations: 69.19 kB / 0.8687 GB, free: 75.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/1.666, allocations: 1.002 MB / 0.8697 GB, free: 75.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006658/1.673, allocations: 4.394 MB / 0.874 GB, free: 73.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009584/1.674, allocations: 0.5616 MB / 0.8745 GB, free: 73.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/1.674, allocations: 310.8 kB / 0.8748 GB, free: 73.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002376/1.677, allocations: 2.079 MB / 0.8769 GB, free: 71.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/1.677, allocations: 41.08 kB / 0.8769 GB, free: 71.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.063e-06/1.677, allocations: 3.781 kB / 0.8769 GB, free: 71.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.003007/1.68, allocations: 1.501 MB / 0.8784 GB, free: 71.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/1.68, allocations: 160.8 kB / 0.8785 GB, free: 71.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009039/1.681, allocations: 0.8075 MB / 0.8793 GB, free: 71.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/1.681, allocations: 39.48 kB / 0.8794 GB, free: 71.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/1.681, allocations: 481.8 kB / 0.8798 GB, free: 70.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/1.681, allocations: 161.4 kB / 0.88 GB, free: 70.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/1.681, allocations: 15.19 kB / 0.88 GB, free: 70.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.959e-05/1.681, allocations: 344.8 kB / 0.8803 GB, free: 70.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004546/1.682, allocations: 304.1 kB / 0.8806 GB, free: 70.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005784/1.682, allocations: 0.591 MB / 0.8812 GB, free: 70.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006134/1.683, allocations: 390.3 kB / 0.8816 GB, free: 70.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.683, allocations: 3.812 kB / 0.8816 GB, free: 70.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001898/1.685, allocations: 1.068 MB / 0.8826 GB, free: 70.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000572/1.685, allocations: 3.311 MB / 0.8858 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/1.685, allocations: 8.438 kB / 0.8858 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002022/1.688, allocations: 319.4 kB / 0.8861 GB, free: 66.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006689/1.688, allocations: 175.6 kB / 0.8863 GB, free: 66.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009774/1.689, allocations: 1.349 MB / 0.8876 GB, free: 65.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009052/1.69, allocations: 60.66 kB / 0.8877 GB, free: 65.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-05/1.69, allocations: 43.58 kB / 0.8877 GB, free: 65.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/1.69, allocations: 4.375 kB / 0.8877 GB, free: 65.55 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001608/1.692, allocations: 0.9455 MB / 0.8887 GB, free: 65.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/1.692, allocations: 11.41 kB / 0.8887 GB, free: 65.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/1.694, allocations: 290.5 kB / 0.8889 GB, free: 65.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000605/1.694, allocations: 176.5 kB / 0.8891 GB, free: 65.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008597/1.695, allocations: 1.31 MB / 0.8904 GB, free: 64.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008281/1.696, allocations: 56.59 kB / 0.8904 GB, free: 64.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.39e-05/1.696, allocations: 41.33 kB / 0.8905 GB, free: 64.46 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 () * 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.0002696/1.696, allocations: 168 kB / 0.8906 GB, free: 64.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/1.696, allocations: 96.03 kB / 0.8907 GB, free: 64.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/1.698, allocations: 0.7742 MB / 0.8915 GB, free: 64.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/1.698, allocations: 6.234 kB / 0.8915 GB, free: 64.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/1.698, allocations: 0 / 0.8915 GB, free: 64.22 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/1.698, allocations: 7.484 kB / 0.8915 GB, free: 64.22 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/1.701, allocations: 1.589 MB / 0.8931 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/1.701, allocations: 1.062 kB / 0.8931 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/1.701, allocations: 78.22 kB / 0.8931 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001422/1.703, allocations: 285.8 kB / 0.8934 GB, free: 63.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.411e-05/1.703, allocations: 18.64 kB / 0.8934 GB, free: 63.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007284/1.703, allocations: 1.306 MB / 0.8947 GB, free: 62.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.703, allocations: 3.656 kB / 0.8947 GB, free: 62.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/1.705, allocations: 1.091 MB / 0.8958 GB, free: 62.56 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/1.705, allocations: 190.3 kB / 0.896 GB, free: 62.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/1.705, allocations: 21.61 kB / 0.896 GB, free: 62.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005608/1.706, allocations: 39.16 kB / 0.896 GB, free: 62.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/1.706, allocations: 49.67 kB / 0.8961 GB, free: 62.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.966e-05/1.706, allocations: 29.23 kB / 0.8961 GB, free: 62.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007789/1.707, allocations: 0.6338 MB / 0.8967 GB, free: 62.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.253e-06/1.707, allocations: 0 / 0.8967 GB, free: 62.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002459/1.709, allocations: 0.8349 MB / 0.8975 GB, free: 62.27 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]) * 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.001608/1.711, allocations: 0.8096 MB / 0.8983 GB, free: 62.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002136/1.713, allocations: 1.232 MB / 0.8995 GB, free: 62.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/1.713, allocations: 4.625 kB / 0.8995 GB, free: 62.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/1.714, allocations: 346.9 kB / 0.8998 GB, free: 62.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/1.715, allocations: 376.6 kB / 0.9002 GB, free: 62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/1.717, allocations: 1.273 MB / 0.9014 GB, free: 61.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/1.718, allocations: 1.056 MB / 0.9025 GB, free: 60.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001245/1.719, allocations: 423 kB / 0.9029 GB, free: 60.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/1.719, allocations: 66.86 kB / 0.9029 GB, free: 60.96 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/1.719, allocations: 0 / 0.9029 GB, free: 60.96 MB / 426.7 MB Notification: Performance of Templates: time 0.03348/1.753, allocations: 25.93 MB / 0.9283 GB, free: 59.93 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/jenkins/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