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.001221/0.001221, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 101.7 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002597, allocations: 8 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2237, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6843/0.908, allocations: 325.3 MB / 0.7175 GB, free: 113 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.9083, allocations: 94.56 kB / 0.7175 GB, free: 113 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5841/1.492, allocations: 196.1 MB / 0.909 GB, free: 108.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.492, allocations: 0 / 0.909 GB, free: 108.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001169/1.493, allocations: 35.5 kB / 0.9091 GB, free: 108.6 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.003809/1.496, allocations: 1.411 MB / 0.9105 GB, free: 107.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/1.496, allocations: 7.312 kB / 0.9105 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006023/1.497, allocations: 114.8 kB / 0.9106 GB, free: 107.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/1.499, allocations: 0.7417 MB / 0.9113 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.312e-05/1.499, allocations: 52.25 kB / 0.9113 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/1.499, allocations: 57.91 kB / 0.9114 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/1.5, allocations: 1.052 MB / 0.9124 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/1.501, allocations: 7.844 kB / 0.9124 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.68e-05/1.501, allocations: 27.06 kB / 0.9125 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.207e-05/1.501, allocations: 68.42 kB / 0.9125 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/1.502, allocations: 1.011 MB / 0.9135 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005746/1.508, allocations: 4.4 MB / 0.9178 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007948/1.509, allocations: 0.5739 MB / 0.9184 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002071/1.511, allocations: 1.995 MB / 0.9203 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/1.511, allocations: 46.03 kB / 0.9204 GB, free: 100.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 1.984e-06/1.511, allocations: 2.688 kB / 0.9204 GB, free: 100.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.003923/1.515, allocations: 1.935 MB / 0.9223 GB, free: 99.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/1.515, allocations: 163.2 kB / 0.9224 GB, free: 99.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008554/1.516, allocations: 0.8257 MB / 0.9232 GB, free: 98.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.573e-05/1.516, allocations: 45.69 kB / 0.9233 GB, free: 98.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/1.516, allocations: 470.9 kB / 0.9237 GB, free: 98.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/1.516, allocations: 165.7 kB / 0.9239 GB, free: 98.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.241e-05/1.516, allocations: 16 kB / 0.9239 GB, free: 98.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.141e-05/1.516, allocations: 344.6 kB / 0.9242 GB, free: 97.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004422/1.517, allocations: 313.8 kB / 0.9245 GB, free: 97.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/1.517, allocations: 0.5891 MB / 0.9251 GB, free: 96.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005114/1.518, allocations: 401.8 kB / 0.9255 GB, free: 96.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.518, allocations: 0 / 0.9255 GB, free: 96.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001513/1.519, allocations: 1.079 MB / 0.9265 GB, free: 95.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005276/1.52, allocations: 3.31 MB / 0.9298 GB, free: 91.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/1.52, allocations: 8 kB / 0.9298 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/1.522, allocations: 324.6 kB / 0.9301 GB, free: 91.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/1.522, allocations: 171.7 kB / 0.9302 GB, free: 91.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007895/1.523, allocations: 1.35 MB / 0.9316 GB, free: 90 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007964/1.524, allocations: 55.88 kB / 0.9316 GB, free: 89.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/1.524, allocations: 47.98 kB / 0.9317 GB, free: 89.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/1.524, allocations: 9.281 kB / 0.9317 GB, free: 89.89 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001272/1.525, allocations: 0.9512 MB / 0.9326 GB, free: 88.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/1.525, allocations: 8 kB / 0.9326 GB, free: 88.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/1.527, allocations: 293.4 kB / 0.9329 GB, free: 88.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/1.528, allocations: 179.3 kB / 0.9331 GB, free: 88.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000695/1.528, allocations: 1.311 MB / 0.9343 GB, free: 87.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006622/1.529, allocations: 63.27 kB / 0.9344 GB, free: 87.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.801e-05/1.529, allocations: 40 kB / 0.9344 GB, free: 87.02 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.0003931/1.529, allocations: 373.1 kB / 0.9348 GB, free: 86.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/1.53, allocations: 94.88 kB / 0.9349 GB, free: 86.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/1.531, allocations: 0.7856 MB / 0.9356 GB, free: 85.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.531, allocations: 7.938 kB / 0.9357 GB, free: 85.76 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/1.531, allocations: 3.953 kB / 0.9357 GB, free: 85.76 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/1.531, allocations: 7.984 kB / 0.9357 GB, free: 85.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/1.533, allocations: 1.576 MB / 0.9372 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/1.533, allocations: 6.828 kB / 0.9372 GB, free: 84.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003416/1.534, allocations: 79.89 kB / 0.9373 GB, free: 84.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/1.535, allocations: 292 kB / 0.9376 GB, free: 83.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/1.535, allocations: 12 kB / 0.9376 GB, free: 83.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006834/1.536, allocations: 1.307 MB / 0.9389 GB, free: 82.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.536, allocations: 7.969 kB / 0.9389 GB, free: 82.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/1.537, allocations: 1.104 MB / 0.9399 GB, free: 81.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/1.537, allocations: 195.7 kB / 0.9401 GB, free: 81.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/1.537, allocations: 18.36 kB / 0.9401 GB, free: 81.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005576/1.538, allocations: 43.72 kB / 0.9402 GB, free: 80.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.131e-05/1.538, allocations: 48.31 kB / 0.9402 GB, free: 80.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/1.538, allocations: 23.97 kB / 0.9403 GB, free: 80.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006432/1.539, allocations: 0.6442 MB / 0.9409 GB, free: 80.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.539, allocations: 0 / 0.9409 GB, free: 80.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002157/1.541, allocations: 0.8351 MB / 0.9417 GB, free: 79.42 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.00219/1.543, allocations: 0.8314 MB / 0.9425 GB, free: 78.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/1.545, allocations: 1.224 MB / 0.9437 GB, free: 77.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/1.545, allocations: 4 kB / 0.9437 GB, free: 77.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000723/1.546, allocations: 355.5 kB / 0.944 GB, free: 77.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/1.547, allocations: 386 kB / 0.9444 GB, free: 76.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/1.55, allocations: 1.985 MB / 0.9464 GB, free: 74.74 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/1.551, allocations: 1.053 MB / 0.9474 GB, free: 73.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001113/1.552, allocations: 358.5 kB / 0.9477 GB, free: 73.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/1.552, allocations: 83.42 kB / 0.9478 GB, free: 73.24 MB / 458.7 MB Notification: Performance of SimCode: time 4.91e-07/1.552, allocations: 0 / 0.9478 GB, free: 73.24 MB / 458.7 MB Notification: Performance of Templates: time 0.02999/1.582, allocations: 24.25 MB / 0.9715 GB, free: 49.39 MB / 458.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