Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001549/0.001549, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008157/0.0008158, allocations: 99.39 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.471e-05, allocations: 4 kB / 343.7 MB, free: 8.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1165, allocations: 51.48 MB / 395.2 MB, free: 4.723 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7505/0.8671, allocations: 324.5 MB / 0.7028 GB, free: 32.82 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.8673, allocations: 98.86 kB / 0.7029 GB, free: 32.77 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.662/1.529, allocations: 194.2 MB / 0.8926 GB, free: 17.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.529, allocations: 0 / 0.8926 GB, free: 17.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001192/1.53, allocations: 27.84 kB / 0.8926 GB, free: 17.16 MB / 442.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.0045/1.534, allocations: 1.295 MB / 0.8939 GB, free: 15.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/1.534, allocations: 12.03 kB / 0.8939 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009261/1.535, allocations: 110.5 kB / 0.894 GB, free: 15.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/1.537, allocations: 0.7448 MB / 0.8947 GB, free: 14.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/1.537, allocations: 23.98 kB / 0.8947 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002374/1.538, allocations: 36 kB / 0.8948 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001711/1.539, allocations: 0.8928 MB / 0.8956 GB, free: 13.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/1.541, allocations: 0.9517 MB / 0.8966 GB, free: 12.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/1.541, allocations: 7.953 kB / 0.8966 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.89e-05/1.541, allocations: 0 / 0.8966 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.367e-05/1.541, allocations: 69.27 kB / 0.8966 GB, free: 12.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/1.546, allocations: 4.238 MB / 0.9008 GB, free: 8.461 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000706/1.547, allocations: 0.5431 MB / 0.9013 GB, free: 7.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003381/1.547, allocations: 306 kB / 0.9016 GB, free: 7.605 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002093/1.549, allocations: 2.016 MB / 0.9036 GB, free: 5.387 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/1.549, allocations: 46.81 kB / 0.9036 GB, free: 5.332 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.154e-06/1.549, allocations: 0 / 0.9036 GB, free: 5.332 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.004799/1.554, allocations: 1.737 MB / 0.9053 GB, free: 3.535 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/1.554, allocations: 162.2 kB / 0.9055 GB, free: 3.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007104/1.555, allocations: 0.6287 MB / 0.9061 GB, free: 2.707 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/1.555, allocations: 33.7 kB / 0.9061 GB, free: 2.668 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/1.555, allocations: 486.2 kB / 0.9066 GB, free: 2.184 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.929e-05/1.555, allocations: 157.8 kB / 0.9067 GB, free: 2.031 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/1.555, allocations: 0 / 0.9067 GB, free: 2.031 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/1.555, allocations: 390.7 kB / 0.9071 GB, free: 1.641 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/1.556, allocations: 298.5 kB / 0.9074 GB, free: 1.352 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/1.556, allocations: 0.5732 MB / 0.9079 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3794/1.936, allocations: 0.8214 MB / 0.9087 GB, free: 63.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.81e-05/1.936, allocations: 2.844 kB / 0.9087 GB, free: 63.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005802/1.942, allocations: 1.442 MB / 0.9101 GB, free: 63.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005682/1.942, allocations: 3.312 MB / 0.9134 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/1.942, allocations: 9.094 kB / 0.9134 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005732/1.943, allocations: 161.5 kB / 0.9135 GB, free: 60.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007171/1.943, allocations: 184 kB / 0.9137 GB, free: 60.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/1.945, allocations: 1.502 MB / 0.9152 GB, free: 59.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008471/1.946, allocations: 46.17 kB / 0.9152 GB, free: 59.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.445e-05/1.946, allocations: 42.72 kB / 0.9153 GB, free: 59.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/1.946, allocations: 2.594 kB / 0.9153 GB, free: 59.37 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003242/1.949, allocations: 1.265 MB / 0.9165 GB, free: 59.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/1.949, allocations: 6.062 kB / 0.9165 GB, free: 59.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005124/1.95, allocations: 162.8 kB / 0.9167 GB, free: 59.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005716/1.95, allocations: 178.2 kB / 0.9168 GB, free: 59.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/1.952, allocations: 1.409 MB / 0.9182 GB, free: 58.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007395/1.953, allocations: 44.91 kB / 0.9183 GB, free: 58.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/1.953, allocations: 40.72 kB / 0.9183 GB, free: 58.29 MB / 442.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.0002504/1.953, allocations: 137.3 kB / 0.9184 GB, free: 58.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/1.953, allocations: 80.08 kB / 0.9185 GB, free: 58.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/1.955, allocations: 0.7954 MB / 0.9193 GB, free: 58.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/1.955, allocations: 6.406 kB / 0.9193 GB, free: 58.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/1.955, allocations: 6.422 kB / 0.9193 GB, free: 58.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/1.955, allocations: 3.375 kB / 0.9193 GB, free: 58.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/1.957, allocations: 1.533 MB / 0.9208 GB, free: 57.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.957, allocations: 6.641 kB / 0.9208 GB, free: 57.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/1.958, allocations: 78.72 kB / 0.9209 GB, free: 57.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005135/1.958, allocations: 151.4 kB / 0.921 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/1.958, allocations: 6.625 kB / 0.921 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/1.96, allocations: 1.397 MB / 0.9224 GB, free: 56.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.96, allocations: 3.75 kB / 0.9224 GB, free: 56.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/1.961, allocations: 1.106 MB / 0.9235 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/1.961, allocations: 172.5 kB / 0.9236 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/1.962, allocations: 2.938 kB / 0.9236 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/1.962, allocations: 43.97 kB / 0.9237 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/1.962, allocations: 45.03 kB / 0.9237 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-05/1.962, allocations: 24.98 kB / 0.9237 GB, free: 56.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000519/1.963, allocations: 492.4 kB / 0.9242 GB, free: 56.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.963, allocations: 0 / 0.9242 GB, free: 56.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002463/1.965, allocations: 0.7944 MB / 0.925 GB, free: 56.27 MB / 442.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.001908/1.967, allocations: 0.8189 MB / 0.9258 GB, free: 56.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001872/1.969, allocations: 1.147 MB / 0.9269 GB, free: 56.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/1.969, allocations: 0 / 0.9269 GB, free: 56.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004339/1.969, allocations: 296.6 kB / 0.9272 GB, free: 56.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/1.971, allocations: 303.6 kB / 0.9275 GB, free: 56.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/1.973, allocations: 1.2 MB / 0.9287 GB, free: 55.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/1.973, allocations: 1.06 MB / 0.9297 GB, free: 55.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001146/1.974, allocations: 368.7 kB / 0.93 GB, free: 55.13 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/1.975, allocations: 58.77 kB / 0.9301 GB, free: 55.12 MB / 442.7 MB Notification: Performance of SimCode: time 8.61e-07/1.975, allocations: 0 / 0.9301 GB, free: 55.12 MB / 442.7 MB Notification: Performance of Templates: time 0.03488/2.009, allocations: 21.95 MB / 0.9515 GB, free: 54.29 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches