Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,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.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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001618, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.346/1.346, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0008595/0.0008596, allocations: 103.3 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003146, allocations: 11.94 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2193, allocations: 50.4 MB / 402.8 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6497/0.869, allocations: 324.6 MB / 0.7103 GB, free: 159 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.8693, allocations: 102.6 kB / 0.7104 GB, free: 159 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5968/1.466, allocations: 195.4 MB / 0.9013 GB, free: 100.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.466, allocations: 0 / 0.9013 GB, free: 100.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001089/1.466, allocations: 26.84 kB / 0.9013 GB, free: 100.3 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003866/1.47, allocations: 1.395 MB / 0.9026 GB, free: 99.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/1.47, allocations: 11.44 kB / 0.9027 GB, free: 99.62 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006207/1.471, allocations: 117.5 kB / 0.9028 GB, free: 99.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001699/1.472, allocations: 0.7573 MB / 0.9035 GB, free: 99.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.055e-05/1.473, allocations: 51.89 kB / 0.9036 GB, free: 99.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002283/1.473, allocations: 62.62 kB / 0.9036 GB, free: 99.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/1.475, allocations: 1.067 MB / 0.9047 GB, free: 99.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/1.475, allocations: 0 / 0.9047 GB, free: 99.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/1.475, allocations: 29.25 kB / 0.9047 GB, free: 99.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.174e-05/1.475, allocations: 67.55 kB / 0.9048 GB, free: 99.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/1.476, allocations: 1.009 MB / 0.9057 GB, free: 99.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005874/1.482, allocations: 4.35 MB / 0.91 GB, free: 96.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008493/1.483, allocations: 0.5667 MB / 0.9105 GB, free: 96.93 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004132/1.483, allocations: 315.7 kB / 0.9108 GB, free: 96.93 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002181/1.486, allocations: 1.97 MB / 0.9128 GB, free: 95.68 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/1.486, allocations: 44.17 kB / 0.9128 GB, free: 95.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 2.595e-06/1.486, allocations: 0 / 0.9128 GB, free: 95.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.004213/1.49, allocations: 1.958 MB / 0.9147 GB, free: 95.01 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/1.49, allocations: 164.6 kB / 0.9149 GB, free: 94.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/1.491, allocations: 0.9187 MB / 0.9158 GB, free: 94.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.812e-05/1.491, allocations: 41.02 kB / 0.9158 GB, free: 94.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/1.492, allocations: 482.4 kB / 0.9163 GB, free: 94.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/1.492, allocations: 160.4 kB / 0.9164 GB, free: 94.31 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/1.492, allocations: 18.19 kB / 0.9164 GB, free: 94.31 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/1.492, allocations: 343.4 kB / 0.9168 GB, free: 94.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/1.493, allocations: 309.5 kB / 0.9171 GB, free: 94.01 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/1.493, allocations: 0.598 MB / 0.9176 GB, free: 93.67 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00099/1.494, allocations: 0.8437 MB / 0.9185 GB, free: 93.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/1.494, allocations: 6.281 kB / 0.9185 GB, free: 93.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001575/1.496, allocations: 1.087 MB / 0.9195 GB, free: 93.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000167/1.496, allocations: 342.3 kB / 0.9199 GB, free: 92.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/1.496, allocations: 8.969 kB / 0.9199 GB, free: 92.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001798/1.498, allocations: 318.8 kB / 0.9202 GB, free: 92.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006/1.498, allocations: 173.9 kB / 0.9203 GB, free: 92.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008708/1.499, allocations: 1.356 MB / 0.9217 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000822/1.5, allocations: 66.12 kB / 0.9217 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.996e-05/1.5, allocations: 42.48 kB / 0.9218 GB, free: 91.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/1.5, allocations: 5.031 kB / 0.9218 GB, free: 91.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001405/1.502, allocations: 0.9571 MB / 0.9227 GB, free: 91.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/1.502, allocations: 7.469 kB / 0.9227 GB, free: 91.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/1.503, allocations: 292.9 kB / 0.923 GB, free: 91.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/1.504, allocations: 176 kB / 0.9232 GB, free: 91.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007419/1.505, allocations: 1.309 MB / 0.9244 GB, free: 90.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007315/1.505, allocations: 57.14 kB / 0.9245 GB, free: 90.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-05/1.505, allocations: 40.16 kB / 0.9245 GB, free: 90.71 MB / 458.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.0004984/1.506, allocations: 375.3 kB / 0.9249 GB, free: 90.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/1.506, allocations: 92.44 kB / 0.925 GB, free: 90.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/1.507, allocations: 0.7901 MB / 0.9258 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/1.508, allocations: 7.344 kB / 0.9258 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/1.508, allocations: 0 / 0.9258 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/1.508, allocations: 2.531 kB / 0.9258 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/1.51, allocations: 1.588 MB / 0.9273 GB, free: 90.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.51, allocations: 0 / 0.9273 GB, free: 90.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/1.51, allocations: 80.94 kB / 0.9274 GB, free: 90.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/1.512, allocations: 281.1 kB / 0.9277 GB, free: 90.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/1.512, allocations: 15.28 kB / 0.9277 GB, free: 90.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007573/1.512, allocations: 1.316 MB / 0.929 GB, free: 88.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.512, allocations: 0 / 0.929 GB, free: 88.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/1.514, allocations: 1.079 MB / 0.93 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002838/1.514, allocations: 190.2 kB / 0.9302 GB, free: 88.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/1.514, allocations: 16.78 kB / 0.9302 GB, free: 88.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005946/1.515, allocations: 47.59 kB / 0.9303 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/1.515, allocations: 47.36 kB / 0.9303 GB, free: 88.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-05/1.515, allocations: 29.23 kB / 0.9303 GB, free: 88.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008071/1.516, allocations: 0.6446 MB / 0.931 GB, free: 87.86 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.516, allocations: 0 / 0.931 GB, free: 87.86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002481/1.518, allocations: 0.8285 MB / 0.9318 GB, free: 87.66 MB / 458.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.002331/1.521, allocations: 0.8093 MB / 0.9326 GB, free: 87.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002285/1.523, allocations: 1.234 MB / 0.9338 GB, free: 87 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/1.523, allocations: 0 / 0.9338 GB, free: 87 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007686/1.524, allocations: 353.5 kB / 0.9341 GB, free: 86.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/1.526, allocations: 375.3 kB / 0.9345 GB, free: 86.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/1.529, allocations: 2.01 MB / 0.9364 GB, free: 85.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005456/1.529, allocations: 1.036 MB / 0.9374 GB, free: 85.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001204/1.53, allocations: 364 kB / 0.9378 GB, free: 85.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/1.531, allocations: 75.91 kB / 0.9379 GB, free: 85.09 MB / 458.7 MB Notification: Performance of SimCode: time 5.61e-07/1.531, allocations: 0 / 0.9379 GB, free: 85.09 MB / 458.7 MB Notification: Performance of Templates: time 0.03675/1.567, allocations: 24.99 MB / 0.9623 GB, free: 79.68 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches