Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002668/0.002667, allocations: 206.7 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.634/2.634, allocations: 226.5 MB / 245.4 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 92.91 kB / 297.4 MB, free: 6.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003835, allocations: 4 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6695/0.6699, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.507/2.177, allocations: 328.2 MB / 0.7196 GB, free: 143.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004206/2.177, allocations: 96.42 kB / 0.7197 GB, free: 143 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.407/4.585, allocations: 329.2 MB / 1.041 GB, free: 52.86 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.801e-06/4.585, allocations: 1.781 kB / 1.041 GB, free: 52.86 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005506/4.586, allocations: 48.11 kB / 1.041 GB, free: 52.86 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.01355/4.599, allocations: 2.236 MB / 1.043 GB, free: 51.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.48e-05/4.599, allocations: 9.844 kB / 1.043 GB, free: 51.97 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002541/4.602, allocations: 205.2 kB / 1.044 GB, free: 51.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006782/4.609, allocations: 1.235 MB / 1.045 GB, free: 51.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002973/4.609, allocations: 97.86 kB / 1.045 GB, free: 51.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00295/4.612, allocations: 122.5 kB / 1.045 GB, free: 51.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008304/4.62, allocations: 1.951 MB / 1.047 GB, free: 51.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/4.62, allocations: 8.969 kB / 1.047 GB, free: 51.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008008/4.621, allocations: 56.59 kB / 1.047 GB, free: 51.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003094/4.622, allocations: 113.5 kB / 1.047 GB, free: 51.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01076/4.632, allocations: 1.96 MB / 1.049 GB, free: 51.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02254/4.655, allocations: 7.635 MB / 1.056 GB, free: 47.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003295/4.658, allocations: 1.166 MB / 1.058 GB, free: 47.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00182/4.66, allocations: 0.7519 MB / 1.058 GB, free: 47.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008935/4.669, allocations: 3.395 MB / 1.062 GB, free: 46.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.135e-05/4.669, allocations: 47.28 kB / 1.062 GB, free: 46.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 8.536e-06/4.669, allocations: 0 / 1.062 GB, free: 46.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01984/4.689, allocations: 5.428 MB / 1.067 GB, free: 45.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/4.689, allocations: 177.9 kB / 1.067 GB, free: 44.95 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/4.693, allocations: 1.419 MB / 1.069 GB, free: 44.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006529/4.694, allocations: 61.59 kB / 1.069 GB, free: 44.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000728/4.695, allocations: 0.6963 MB / 1.069 GB, free: 44.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009836/4.696, allocations: 477 kB / 1.07 GB, free: 44.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/4.696, allocations: 34 kB / 1.07 GB, free: 44.17 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002267/4.696, allocations: 373.7 kB / 1.07 GB, free: 43.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/4.698, allocations: 0.7562 MB / 1.071 GB, free: 43.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/4.7, allocations: 1.17 MB / 1.072 GB, free: 43.42 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/4.704, allocations: 1.814 MB / 1.074 GB, free: 43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/4.704, allocations: 6.875 kB / 1.074 GB, free: 43 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006636/4.711, allocations: 2.389 MB / 1.076 GB, free: 42.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005429/4.711, allocations: 420.5 kB / 1.077 GB, free: 42.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.295e-05/4.711, allocations: 13.5 kB / 1.077 GB, free: 42.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007416/4.719, allocations: 0.9495 MB / 1.078 GB, free: 42.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002626/4.721, allocations: 340.3 kB / 1.078 GB, free: 42.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/4.726, allocations: 2.906 MB / 1.081 GB, free: 40.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003691/4.73, allocations: 138.1 kB / 1.081 GB, free: 40.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000617/4.73, allocations: 81.44 kB / 1.081 GB, free: 40.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/4.73, allocations: 3.812 kB / 1.081 GB, free: 40.2 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006625/4.737, allocations: 2.101 MB / 1.083 GB, free: 40.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-05/4.737, allocations: 14.06 kB / 1.083 GB, free: 40.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006458/4.744, allocations: 0.6775 MB / 1.084 GB, free: 40.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002437/4.746, allocations: 358.5 kB / 1.084 GB, free: 40.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/4.749, allocations: 2.654 MB / 1.087 GB, free: 38.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003597/4.752, allocations: 128.8 kB / 1.087 GB, free: 38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006002/4.753, allocations: 79.98 kB / 1.087 GB, free: 38 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.002132/4.755, allocations: 0.509 MB / 1.087 GB, free: 37.81 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007767/4.756, allocations: 173.9 kB / 1.087 GB, free: 37.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008186/4.764, allocations: 2.349 MB / 1.09 GB, free: 37.56 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.846e-05/4.764, allocations: 18.61 kB / 1.09 GB, free: 37.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/4.764, allocations: 2.531 kB / 1.09 GB, free: 37.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.112e-05/4.764, allocations: 11.7 kB / 1.09 GB, free: 37.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/4.778, allocations: 4.004 MB / 1.094 GB, free: 37.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/4.778, allocations: 5.844 kB / 1.094 GB, free: 37.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/4.78, allocations: 241.6 kB / 1.094 GB, free: 37.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006767/4.786, allocations: 0.8836 MB / 1.095 GB, free: 37.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005286/4.787, allocations: 43.84 kB / 1.095 GB, free: 37.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003565/4.791, allocations: 2.852 MB / 1.098 GB, free: 34.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/4.791, allocations: 0 / 1.098 GB, free: 34.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/4.8, allocations: 3.165 MB / 1.101 GB, free: 34.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/4.801, allocations: 277.8 kB / 1.101 GB, free: 34.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008766/4.802, allocations: 35.62 kB / 1.101 GB, free: 34.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002381/4.804, allocations: 109.2 kB / 1.101 GB, free: 34.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005202/4.805, allocations: 148.1 kB / 1.101 GB, free: 34.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002744/4.805, allocations: 64.33 kB / 1.101 GB, free: 34.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002824/4.808, allocations: 0.9713 MB / 1.102 GB, free: 34.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.043e-06/4.808, allocations: 0 / 1.102 GB, free: 34.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009429/4.817, allocations: 1.401 MB / 1.104 GB, free: 34.07 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.005678/4.823, allocations: 1.236 MB / 1.105 GB, free: 33.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009142/4.832, allocations: 3.023 MB / 1.108 GB, free: 33.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/4.832, allocations: 3.938 kB / 1.108 GB, free: 33.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003085/4.836, allocations: 1.074 MB / 1.109 GB, free: 33.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007984/4.844, allocations: 0.7535 MB / 1.11 GB, free: 33.67 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/4.854, allocations: 4.165 MB / 1.114 GB, free: 32.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/4.856, allocations: 1.396 MB / 1.115 GB, free: 31.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/4.857, allocations: 160.6 kB / 1.115 GB, free: 31.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.334e-06/4.857, allocations: 0 / 1.115 GB, free: 31.4 MB / 458.7 MB Notification: Performance of Templates: time 0.1301/4.987, allocations: 61.71 MB / 1.175 GB, free: 13.95 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches