Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002062/0.002062, allocations: 197.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.358/1.358, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009533/0.0009532, allocations: 98.11 kB / 292.1 MB, free: 6.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.441e-05/5.508e-05, allocations: 11.94 kB / 350.5 MB, free: 2.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 51.49 MB / 402 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7736/0.8772, allocations: 328.1 MB / 0.713 GB, free: 20.93 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.8775, allocations: 90.25 kB / 0.7131 GB, free: 20.89 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.164/2.041, allocations: 330.3 MB / 1.036 GB, free: 57.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.262e-06/2.041, allocations: 0 / 1.036 GB, free: 57.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001213/2.041, allocations: 40.66 kB / 1.036 GB, free: 57.69 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00499/2.046, allocations: 2.052 MB / 1.038 GB, free: 56.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/2.046, allocations: 11.03 kB / 1.038 GB, free: 56.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007171/2.047, allocations: 199.3 kB / 1.038 GB, free: 56.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/2.049, allocations: 1.19 MB / 1.039 GB, free: 55.82 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-05/2.049, allocations: 100.8 kB / 1.039 GB, free: 55.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001981/2.05, allocations: 120.5 kB / 1.039 GB, free: 55.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002743/2.052, allocations: 1.924 MB / 1.041 GB, free: 54.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/2.052, allocations: 11.03 kB / 1.041 GB, free: 54.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/2.052, allocations: 52.8 kB / 1.041 GB, free: 54.85 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/2.053, allocations: 111 kB / 1.041 GB, free: 54.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/2.055, allocations: 1.926 MB / 1.043 GB, free: 54.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009653/2.065, allocations: 7.674 MB / 1.051 GB, free: 49.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/2.066, allocations: 1.151 MB / 1.052 GB, free: 48.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008505/2.067, allocations: 0.7272 MB / 1.053 GB, free: 48.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004192/2.071, allocations: 3.484 MB / 1.056 GB, free: 46.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/2.072, allocations: 46.53 kB / 1.056 GB, free: 46.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 2.936e-06/2.072, allocations: 0 / 1.056 GB, free: 46.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.007963/2.079, allocations: 4.12 MB / 1.06 GB, free: 44.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/2.08, allocations: 173 kB / 1.06 GB, free: 43.87 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/2.081, allocations: 1.241 MB / 1.061 GB, free: 43.26 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/2.081, allocations: 61.27 kB / 1.061 GB, free: 43.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000409/2.082, allocations: 0.7013 MB / 1.062 GB, free: 42.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002873/2.082, allocations: 473.9 kB / 1.063 GB, free: 42.19 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/2.082, allocations: 35.25 kB / 1.063 GB, free: 42.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.108e-05/2.082, allocations: 375.2 kB / 1.063 GB, free: 41.81 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/2.083, allocations: 0.7361 MB / 1.064 GB, free: 41.47 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/2.084, allocations: 1.136 MB / 1.065 GB, free: 40.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/2.085, allocations: 0.8641 MB / 1.066 GB, free: 40.17 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/2.085, allocations: 0 / 1.066 GB, free: 40.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.0033/2.089, allocations: 2.363 MB / 1.068 GB, free: 37.79 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008768/2.09, allocations: 4.343 MB / 1.072 GB, free: 33.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/2.09, allocations: 8 kB / 1.072 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004991/2.095, allocations: 0.947 MB / 1.073 GB, free: 32.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/2.096, allocations: 339.5 kB / 1.073 GB, free: 31.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/2.098, allocations: 2.892 MB / 1.076 GB, free: 28.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/2.1, allocations: 139.9 kB / 1.076 GB, free: 28.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/2.1, allocations: 75.97 kB / 1.076 GB, free: 28.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/2.1, allocations: 5.562 kB / 1.076 GB, free: 28.74 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002944/2.103, allocations: 2.076 MB / 1.078 GB, free: 26.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/2.103, allocations: 8.781 kB / 1.078 GB, free: 26.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00386/2.107, allocations: 0.6745 MB / 1.079 GB, free: 25.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/2.108, allocations: 359.4 kB / 1.079 GB, free: 25.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/2.11, allocations: 2.648 MB / 1.082 GB, free: 22.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/2.112, allocations: 132 kB / 1.082 GB, free: 22.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001527/2.112, allocations: 75.97 kB / 1.082 GB, free: 22.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004756/2.112, allocations: 221.6 kB / 1.082 GB, free: 22.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002944/2.112, allocations: 169.9 kB / 1.083 GB, free: 22.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00406/2.117, allocations: 2.327 MB / 1.085 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-05/2.117, allocations: 19.98 kB / 1.085 GB, free: 19.91 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/2.117, allocations: 0 / 1.085 GB, free: 19.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/2.117, allocations: 11.97 kB / 1.085 GB, free: 19.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005714/2.122, allocations: 3.98 MB / 1.089 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/2.122, allocations: 8.188 kB / 1.089 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009527/2.123, allocations: 251.6 kB / 1.089 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003461/2.127, allocations: 0.8576 MB / 1.09 GB, free: 14.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/2.127, allocations: 43.97 kB / 1.09 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/2.129, allocations: 2.844 MB / 1.093 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/2.129, allocations: 0 / 1.093 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004018/2.133, allocations: 3.205 MB / 1.096 GB, free: 8.469 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006351/2.133, allocations: 282.8 kB / 1.096 GB, free: 8.176 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/2.134, allocations: 39.98 kB / 1.096 GB, free: 8.137 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/2.135, allocations: 115.7 kB / 1.096 GB, free: 8.023 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/2.135, allocations: 145.1 kB / 1.096 GB, free: 7.879 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/2.135, allocations: 59.97 kB / 1.096 GB, free: 7.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001124/2.136, allocations: 0.9618 MB / 1.097 GB, free: 6.859 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/2.136, allocations: 0 / 1.097 GB, free: 6.859 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003654/2.14, allocations: 1.389 MB / 1.099 GB, free: 5.469 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002553/2.143, allocations: 1.247 MB / 1.1 GB, free: 4.355 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00456/2.147, allocations: 3.029 MB / 1.103 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/2.147, allocations: 2.062 kB / 1.103 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/2.149, allocations: 1.054 MB / 1.104 GB, free: 292 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2496/2.398, allocations: 0.723 MB / 1.105 GB, free: 56.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/2.403, allocations: 2.824 MB / 1.107 GB, free: 55.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/2.403, allocations: 1.436 MB / 1.109 GB, free: 54.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00277/2.406, allocations: 0.831 MB / 1.11 GB, free: 54.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003585/2.407, allocations: 132.9 kB / 1.11 GB, free: 54.77 MB / 458.7 MB Notification: Performance of SimCode: time 8.72e-07/2.407, allocations: 0 / 1.11 GB, free: 54.77 MB / 458.7 MB Notification: Performance of Templates: time 0.07425/2.481, allocations: 50.47 MB / 1.159 GB, free: 52.36 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches