Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008927/0.0008932, allocations: 86.64 kB / 292.1 MB, free: 6.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.897e-05/2.9e-05, allocations: 4.219 kB / 350.5 MB, free: 2.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.09936, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8121/0.9115, allocations: 325.6 MB / 0.7105 GB, free: 23.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.9117, allocations: 89.44 kB / 0.7106 GB, free: 23.48 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.124/2.036, allocations: 286.5 MB / 0.9904 GB, free: 60.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.794e-06/2.036, allocations: 0 / 0.9904 GB, free: 60.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002191/2.036, allocations: 39.78 kB / 0.9904 GB, free: 60.79 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006848/2.043, allocations: 1.79 MB / 0.9922 GB, free: 59.94 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/2.043, allocations: 11.44 kB / 0.9922 GB, free: 59.94 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/2.044, allocations: 167.3 kB / 0.9923 GB, free: 59.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003196/2.048, allocations: 1.035 MB / 0.9933 GB, free: 59.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/2.048, allocations: 81.16 kB / 0.9934 GB, free: 59.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005339/2.048, allocations: 97.41 kB / 0.9935 GB, free: 59.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002885/2.051, allocations: 1.605 MB / 0.9951 GB, free: 59.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/2.051, allocations: 11.44 kB / 0.9951 GB, free: 59.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/2.051, allocations: 44 kB / 0.9951 GB, free: 59.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/2.052, allocations: 103.8 kB / 0.9952 GB, free: 59.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/2.054, allocations: 1.581 MB / 0.9968 GB, free: 59.26 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009324/2.063, allocations: 6.535 MB / 1.003 GB, free: 56.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/2.064, allocations: 0.9091 MB / 1.004 GB, free: 56.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007327/2.065, allocations: 0.5448 MB / 1.005 GB, free: 56.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00366/2.069, allocations: 2.917 MB / 1.007 GB, free: 54.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/2.069, allocations: 45.09 kB / 1.007 GB, free: 54.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.816e-06/2.069, allocations: 0 / 1.007 GB, free: 54.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.005578/2.074, allocations: 2.824 MB / 1.01 GB, free: 54.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/2.075, allocations: 191.6 kB / 1.01 GB, free: 53.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/2.076, allocations: 1.126 MB / 1.012 GB, free: 53.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/2.076, allocations: 54.27 kB / 1.012 GB, free: 53.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/2.077, allocations: 0.6484 MB / 1.012 GB, free: 53.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/2.077, allocations: 325.8 kB / 1.013 GB, free: 53.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-05/2.077, allocations: 25.03 kB / 1.013 GB, free: 53.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/2.077, allocations: 359.3 kB / 1.013 GB, free: 52.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007548/2.078, allocations: 0.545 MB / 1.013 GB, free: 52.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009077/2.079, allocations: 0.9404 MB / 1.014 GB, free: 52.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008656/2.079, allocations: 0.6618 MB / 1.015 GB, free: 52.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/2.079, allocations: 3.906 kB / 1.015 GB, free: 52.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002756/2.082, allocations: 1.813 MB / 1.017 GB, free: 52.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008444/2.083, allocations: 4.39 MB / 1.021 GB, free: 47.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/2.083, allocations: 11.72 kB / 1.021 GB, free: 47.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003685/2.087, allocations: 0.6501 MB / 1.022 GB, free: 47.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/2.088, allocations: 277.9 kB / 1.022 GB, free: 47.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/2.09, allocations: 2.163 MB / 1.024 GB, free: 46.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/2.091, allocations: 115.1 kB / 1.024 GB, free: 46.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/2.091, allocations: 63.98 kB / 1.024 GB, free: 46.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/2.091, allocations: 7.844 kB / 1.024 GB, free: 46.16 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002418/2.094, allocations: 1.598 MB / 1.026 GB, free: 46.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/2.094, allocations: 11.12 kB / 1.026 GB, free: 46.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002957/2.097, allocations: 0.5033 MB / 1.026 GB, free: 46.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/2.098, allocations: 286 kB / 1.027 GB, free: 46.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/2.099, allocations: 2.005 MB / 1.029 GB, free: 44.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/2.1, allocations: 102.9 kB / 1.029 GB, free: 44.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/2.1, allocations: 60.38 kB / 1.029 GB, free: 44.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003853/2.101, allocations: 203.5 kB / 1.029 GB, free: 44.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/2.101, allocations: 140.2 kB / 1.029 GB, free: 44.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002703/2.104, allocations: 1.504 MB / 1.03 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/2.104, allocations: 11.84 kB / 1.03 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/2.104, allocations: 3.5 kB / 1.03 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/2.104, allocations: 6.797 kB / 1.03 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00383/2.108, allocations: 2.809 MB / 1.033 GB, free: 43.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/2.108, allocations: 0 / 1.033 GB, free: 43.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006487/2.108, allocations: 149.4 kB / 1.033 GB, free: 43.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002677/2.111, allocations: 0.5993 MB / 1.034 GB, free: 43.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-05/2.111, allocations: 27.47 kB / 1.034 GB, free: 43.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/2.112, allocations: 2.115 MB / 1.036 GB, free: 41.78 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/2.112, allocations: 7.781 kB / 1.036 GB, free: 41.78 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/2.115, allocations: 2.118 MB / 1.038 GB, free: 40.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/2.116, allocations: 247.8 kB / 1.038 GB, free: 40.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/2.116, allocations: 26.38 kB / 1.038 GB, free: 40.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008904/2.117, allocations: 70.91 kB / 1.038 GB, free: 40.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/2.117, allocations: 101.6 kB / 1.039 GB, free: 40.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-05/2.117, allocations: 42.16 kB / 1.039 GB, free: 40.52 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001087/2.118, allocations: 0.8802 MB / 1.039 GB, free: 40.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/2.118, allocations: 0 / 1.039 GB, free: 40.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003403/2.121, allocations: 1.23 MB / 1.041 GB, free: 39.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002647/2.124, allocations: 1.113 MB / 1.042 GB, free: 39.49 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003504/2.128, allocations: 2.211 MB / 1.044 GB, free: 38.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/2.128, allocations: 0 / 1.044 GB, free: 38.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/2.129, allocations: 0.6888 MB / 1.045 GB, free: 38.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002723/2.132, allocations: 0.5857 MB / 1.045 GB, free: 38.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/2.135, allocations: 2.128 MB / 1.047 GB, free: 37.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/2.136, allocations: 1.286 MB / 1.048 GB, free: 36.85 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002134/2.138, allocations: 0.6539 MB / 1.049 GB, free: 36.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/2.138, allocations: 99.56 kB / 1.049 GB, free: 36.82 MB / 458.7 MB Notification: Performance of SimCode: time 1.183e-06/2.138, allocations: 0 / 1.049 GB, free: 36.82 MB / 458.7 MB Notification: Performance of Templates: time 0.05133/2.189, allocations: 40.58 MB / 1.089 GB, free: 14.84 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches