Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,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.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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001267/0.001266, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.854/1.854, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.001084/0.001084, allocations: 100.1 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.000324, allocations: 8 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3278, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8575/1.185, allocations: 328.2 MB / 0.6875 GB, free: 136.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/1.186, allocations: 90.58 kB / 0.6876 GB, free: 136.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5891/1.775, allocations: 167 MB / 0.8507 GB, free: 90.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.775, allocations: 0 / 0.8507 GB, free: 90.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.899e-05/1.775, allocations: 26.23 kB / 0.8507 GB, free: 90.42 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002901/1.778, allocations: 1.198 MB / 0.8519 GB, free: 89.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.778, allocations: 11.06 kB / 0.8519 GB, free: 89.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003385/1.778, allocations: 108.3 kB / 0.852 GB, free: 89.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/1.779, allocations: 0.6254 MB / 0.8526 GB, free: 89.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/1.78, allocations: 51.27 kB / 0.8527 GB, free: 89.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.983e-05/1.78, allocations: 57.36 kB / 0.8527 GB, free: 89.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/1.781, allocations: 0.8979 MB / 0.8536 GB, free: 89.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/1.781, allocations: 0.75 kB / 0.8536 GB, free: 89.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.896e-05/1.781, allocations: 23.17 kB / 0.8536 GB, free: 89.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.275e-05/1.781, allocations: 45.98 kB / 0.8537 GB, free: 89.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/1.782, allocations: 0.7922 MB / 0.8544 GB, free: 89.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004387/1.787, allocations: 3.784 MB / 0.8581 GB, free: 87.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/1.787, allocations: 0.5174 MB / 0.8586 GB, free: 87.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001775/1.789, allocations: 1.847 MB / 0.8604 GB, free: 86.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/1.789, allocations: 38.12 kB / 0.8605 GB, free: 85.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.084e-06/1.789, allocations: 0 / 0.8605 GB, free: 85.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.002996/1.792, allocations: 1.757 MB / 0.8622 GB, free: 85.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/1.792, allocations: 134.5 kB / 0.8623 GB, free: 85.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006872/1.793, allocations: 0.6624 MB / 0.863 GB, free: 85.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.07e-05/1.793, allocations: 38.86 kB / 0.863 GB, free: 85.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/1.793, allocations: 398.2 kB / 0.8634 GB, free: 84.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/1.793, allocations: 163.5 kB / 0.8635 GB, free: 84.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/1.793, allocations: 19.06 kB / 0.8635 GB, free: 84.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/1.794, allocations: 387.5 kB / 0.8639 GB, free: 84.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/1.794, allocations: 259.5 kB / 0.8642 GB, free: 84.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/1.794, allocations: 0.4925 MB / 0.8646 GB, free: 84.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/1.795, allocations: 318 kB / 0.8649 GB, free: 84.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/1.795, allocations: 5.797 kB / 0.865 GB, free: 84.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001195/1.796, allocations: 0.8872 MB / 0.8658 GB, free: 84.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005109/1.797, allocations: 2.701 MB / 0.8685 GB, free: 81.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/1.797, allocations: 13.86 kB / 0.8685 GB, free: 81.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009397/1.797, allocations: 161.7 kB / 0.8686 GB, free: 81.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009229/1.798, allocations: 189.9 kB / 0.8688 GB, free: 81.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008793/1.799, allocations: 1.82 MB / 0.8706 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006099/1.8, allocations: 58.62 kB / 0.8706 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/1.8, allocations: 30.91 kB / 0.8707 GB, free: 79.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/1.8, allocations: 3.812 kB / 0.8707 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001103/1.801, allocations: 0.7875 MB / 0.8714 GB, free: 79.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/1.801, allocations: 3.969 kB / 0.8714 GB, free: 79.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008221/1.802, allocations: 165.8 kB / 0.8716 GB, free: 79.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000609/1.803, allocations: 176.9 kB / 0.8718 GB, free: 79.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005274/1.803, allocations: 1.185 MB / 0.8729 GB, free: 78.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005269/1.804, allocations: 58.36 kB / 0.873 GB, free: 78.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.615e-05/1.804, allocations: 34.72 kB / 0.873 GB, free: 78.51 MB / 426.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.0004133/1.804, allocations: 337.8 kB / 0.8733 GB, free: 78.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/1.804, allocations: 86.3 kB / 0.8734 GB, free: 78.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001381/1.806, allocations: 0.8153 MB / 0.8742 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/1.806, allocations: 3.875 kB / 0.8742 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/1.806, allocations: 0 / 0.8742 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/1.806, allocations: 6.094 kB / 0.8742 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/1.808, allocations: 1.57 MB / 0.8758 GB, free: 77.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/1.808, allocations: 0 / 0.8758 GB, free: 77.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/1.809, allocations: 144 kB / 0.8759 GB, free: 77.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006073/1.809, allocations: 131.1 kB / 0.876 GB, free: 77.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/1.809, allocations: 10.47 kB / 0.876 GB, free: 77.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000747/1.81, allocations: 1.757 MB / 0.8778 GB, free: 76.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.81, allocations: 0 / 0.8778 GB, free: 76.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/1.812, allocations: 1.127 MB / 0.8789 GB, free: 75.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/1.812, allocations: 177 kB / 0.879 GB, free: 75.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/1.812, allocations: 15.39 kB / 0.879 GB, free: 75.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000531/1.813, allocations: 40.27 kB / 0.8791 GB, free: 75.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/1.813, allocations: 54.62 kB / 0.8791 GB, free: 75.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-05/1.813, allocations: 26.97 kB / 0.8792 GB, free: 75.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007188/1.814, allocations: 0.5195 MB / 0.8797 GB, free: 75.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.814, allocations: 0 / 0.8797 GB, free: 75.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00202/1.816, allocations: 0.6575 MB / 0.8803 GB, free: 75.55 MB / 426.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.001368/1.817, allocations: 0.6736 MB / 0.881 GB, free: 75.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002401/1.82, allocations: 1.16 MB / 0.8821 GB, free: 75.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.82, allocations: 0 / 0.8821 GB, free: 75.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007293/1.82, allocations: 387.6 kB / 0.8825 GB, free: 75.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/1.822, allocations: 372.9 kB / 0.8828 GB, free: 75.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/1.824, allocations: 1.855 MB / 0.8846 GB, free: 74.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/1.825, allocations: 1.006 MB / 0.8856 GB, free: 73.62 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009909/1.826, allocations: 322.1 kB / 0.8859 GB, free: 73.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/1.826, allocations: 76.81 kB / 0.886 GB, free: 73.59 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/1.826, allocations: 2.531 kB / 0.886 GB, free: 73.59 MB / 426.7 MB Notification: Performance of Templates: time 0.02926/1.855, allocations: 21.03 MB / 0.9065 GB, free: 72.18 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_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/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches