Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000991/0.0009909, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.461/1.461, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.001237/0.001236, allocations: 90.27 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003362, allocations: 15.94 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2354, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6731/0.9085, allocations: 327.4 MB / 0.7118 GB, free: 156.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.9089, allocations: 95.33 kB / 0.7119 GB, free: 156.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8942/1.803, allocations: 332.2 MB / 1.036 GB, free: 6.715 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.323e-06/1.803, allocations: 0 / 1.036 GB, free: 6.715 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002084/1.803, allocations: 40 kB / 1.036 GB, free: 6.676 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.00844/1.812, allocations: 2.246 MB / 1.039 GB, free: 4.375 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.354e-05/1.812, allocations: 12.03 kB / 1.039 GB, free: 4.363 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00159/1.814, allocations: 197.8 kB / 1.039 GB, free: 4.168 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003897/1.817, allocations: 1.195 MB / 1.04 GB, free: 2.914 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/1.818, allocations: 98.27 kB / 1.04 GB, free: 2.816 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000589/1.818, allocations: 124 kB / 1.04 GB, free: 2.695 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004178/1.822, allocations: 1.943 MB / 1.042 GB, free: 0.6445 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.071e-05/1.822, allocations: 4 kB / 1.042 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002886/1.823, allocations: 59.91 kB / 1.042 GB, free: 0.582 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/1.823, allocations: 110.3 kB / 1.042 GB, free: 484 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3049/2.128, allocations: 1.958 MB / 1.044 GB, free: 54.21 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/2.14, allocations: 7.678 MB / 1.052 GB, free: 50.92 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/2.142, allocations: 1.173 MB / 1.053 GB, free: 50.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005/2.147, allocations: 3.427 MB / 1.056 GB, free: 49.36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/2.147, allocations: 50.44 kB / 1.056 GB, free: 49.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.476e-06/2.147, allocations: 0 / 1.056 GB, free: 49.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01244/2.159, allocations: 5.421 MB / 1.061 GB, free: 48.33 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.307e-05/2.159, allocations: 170.6 kB / 1.062 GB, free: 48.14 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/2.161, allocations: 1.26 MB / 1.063 GB, free: 47.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/2.162, allocations: 60.22 kB / 1.063 GB, free: 47.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005069/2.162, allocations: 0.7062 MB / 1.064 GB, free: 47.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004591/2.163, allocations: 465.4 kB / 1.064 GB, free: 47.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/2.163, allocations: 37.66 kB / 1.064 GB, free: 47.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/2.163, allocations: 377.2 kB / 1.064 GB, free: 47.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/2.164, allocations: 0.7548 MB / 1.065 GB, free: 47.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/2.166, allocations: 1.154 MB / 1.066 GB, free: 46.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/2.167, allocations: 0.8706 MB / 1.067 GB, free: 46.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/2.167, allocations: 6.75 kB / 1.067 GB, free: 46.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004169/2.171, allocations: 2.389 MB / 1.069 GB, free: 46.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001065/2.172, allocations: 4.34 MB / 1.074 GB, free: 42.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.201e-05/2.172, allocations: 11.03 kB / 1.074 GB, free: 42.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00546/2.178, allocations: 0.9527 MB / 1.075 GB, free: 42.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/2.18, allocations: 349 kB / 1.075 GB, free: 42.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002448/2.182, allocations: 2.891 MB / 1.078 GB, free: 39.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/2.184, allocations: 137.6 kB / 1.078 GB, free: 39.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/2.185, allocations: 83.55 kB / 1.078 GB, free: 39.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/2.185, allocations: 7.797 kB / 1.078 GB, free: 39.96 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00346/2.188, allocations: 2.104 MB / 1.08 GB, free: 39.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/2.188, allocations: 10.28 kB / 1.08 GB, free: 39.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004174/2.192, allocations: 0.6813 MB / 1.081 GB, free: 39.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/2.194, allocations: 357.6 kB / 1.081 GB, free: 39.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/2.196, allocations: 2.643 MB / 1.084 GB, free: 37.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/2.198, allocations: 137.8 kB / 1.084 GB, free: 37.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/2.198, allocations: 75.12 kB / 1.084 GB, free: 37.77 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 () * Number of clocked 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.001487/2.199, allocations: 0.5212 MB / 1.084 GB, free: 37.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006742/2.2, allocations: 171.2 kB / 1.085 GB, free: 37.49 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006079/2.206, allocations: 2.36 MB / 1.087 GB, free: 37.33 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.693e-05/2.206, allocations: 18.33 kB / 1.087 GB, free: 37.33 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/2.206, allocations: 0 / 1.087 GB, free: 37.33 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/2.206, allocations: 11.25 kB / 1.087 GB, free: 37.33 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007784/2.214, allocations: 4.012 MB / 1.091 GB, free: 36.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/2.214, allocations: 2.953 kB / 1.091 GB, free: 36.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/2.215, allocations: 241.3 kB / 1.091 GB, free: 36.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003981/2.219, allocations: 0.8929 MB / 1.092 GB, free: 36.85 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000227/2.219, allocations: 37.48 kB / 1.092 GB, free: 36.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/2.222, allocations: 2.853 MB / 1.095 GB, free: 34.76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/2.222, allocations: 8.719 kB / 1.095 GB, free: 34.76 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005177/2.227, allocations: 3.247 MB / 1.098 GB, free: 34.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008915/2.228, allocations: 283.4 kB / 1.098 GB, free: 34.08 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006255/2.228, allocations: 34.72 kB / 1.098 GB, free: 34.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/2.23, allocations: 108.1 kB / 1.098 GB, free: 34.08 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002855/2.23, allocations: 146.7 kB / 1.098 GB, free: 34.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/2.231, allocations: 62.11 kB / 1.098 GB, free: 34.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001867/2.232, allocations: 0.9726 MB / 1.099 GB, free: 33.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.233, allocations: 0 / 1.099 GB, free: 33.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005945/2.238, allocations: 1.382 MB / 1.101 GB, free: 33.96 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]) * Number of clocked states: 0 () * 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.00435/2.243, allocations: 1.232 MB / 1.102 GB, free: 33.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007438/2.25, allocations: 3.023 MB / 1.105 GB, free: 33.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/2.25, allocations: 0 / 1.105 GB, free: 33.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00227/2.253, allocations: 1.069 MB / 1.106 GB, free: 33.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004422/2.257, allocations: 0.7357 MB / 1.107 GB, free: 33.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/2.265, allocations: 4.087 MB / 1.111 GB, free: 32.26 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/2.266, allocations: 1.433 MB / 1.112 GB, free: 31.54 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003404/2.27, allocations: 0.7193 MB / 1.113 GB, free: 31.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006764/2.27, allocations: 147.9 kB / 1.113 GB, free: 31.51 MB / 458.7 MB Notification: Performance of SimCode: time 1.403e-06/2.27, allocations: 0 / 1.113 GB, free: 31.51 MB / 458.7 MB Notification: Performance of Templates: time 0.08095/2.351, allocations: 47.63 MB / 1.159 GB, free: 29 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches