Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00207/0.00207, allocations: 176.8 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009959/0.0009958, allocations: 90.2 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.994e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 47.58 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6934/0.7949, allocations: 327.7 MB / 0.6746 GB, free: 2.512 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.7953, allocations: 90.14 kB / 0.6747 GB, free: 2.469 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5185/1.314, allocations: 165.3 MB / 0.8361 GB, free: 34.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.843e-06/1.314, allocations: 0 / 0.8361 GB, free: 34.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.391e-05/1.314, allocations: 20 kB / 0.8361 GB, free: 34.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.0021/1.316, allocations: 1.102 MB / 0.8372 GB, free: 32.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/1.316, allocations: 8.031 kB / 0.8372 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/1.316, allocations: 103 kB / 0.8373 GB, free: 32.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009601/1.317, allocations: 0.6285 MB / 0.8379 GB, free: 32.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/1.317, allocations: 20 kB / 0.838 GB, free: 32.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-05/1.318, allocations: 32 kB / 0.838 GB, free: 32.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009359/1.318, allocations: 0.7015 MB / 0.8387 GB, free: 31.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009676/1.319, allocations: 0.7975 MB / 0.8394 GB, free: 30.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/1.319, allocations: 0 / 0.8394 GB, free: 30.51 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/1.32, allocations: 4 kB / 0.8395 GB, free: 30.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.008e-05/1.32, allocations: 45.28 kB / 0.8395 GB, free: 30.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003878/1.324, allocations: 3.641 MB / 0.8431 GB, free: 26.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006067/1.324, allocations: 0.5005 MB / 0.8435 GB, free: 26.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/1.324, allocations: 242.1 kB / 0.8438 GB, free: 25.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001671/1.326, allocations: 1.856 MB / 0.8456 GB, free: 23.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/1.326, allocations: 38.56 kB / 0.8456 GB, free: 23.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 1.913e-06/1.326, allocations: 0 / 0.8456 GB, free: 23.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.005783/1.332, allocations: 1.824 MB / 0.8474 GB, free: 21.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/1.332, allocations: 132.5 kB / 0.8475 GB, free: 21.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006047/1.333, allocations: 0.5112 MB / 0.848 GB, free: 21.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/1.333, allocations: 29.7 kB / 0.8481 GB, free: 21.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/1.333, allocations: 415.1 kB / 0.8485 GB, free: 20.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/1.333, allocations: 157.7 kB / 0.8486 GB, free: 20.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/1.333, allocations: 0 / 0.8486 GB, free: 20.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.53e-05/1.333, allocations: 378.8 kB / 0.849 GB, free: 20.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/1.334, allocations: 237.5 kB / 0.8492 GB, free: 19.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/1.334, allocations: 484.7 kB / 0.8497 GB, free: 19.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003807/1.338, allocations: 0.923 MB / 0.8506 GB, free: 18.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/1.338, allocations: 4 kB / 0.8506 GB, free: 18.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004875/1.343, allocations: 1.428 MB / 0.852 GB, free: 17.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005014/1.343, allocations: 2.703 MB / 0.8546 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.343, allocations: 8 kB / 0.8546 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002737/1.344, allocations: 89.59 kB / 0.8547 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009016/1.344, allocations: 191.8 kB / 0.8549 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/1.346, allocations: 1.882 MB / 0.8567 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006812/1.347, allocations: 40.19 kB / 0.8567 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/1.347, allocations: 32 kB / 0.8568 GB, free: 11.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/1.347, allocations: 4 kB / 0.8568 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004445/1.351, allocations: 1.299 MB / 0.858 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/1.351, allocations: 8 kB / 0.8581 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/1.351, allocations: 94.38 kB / 0.8581 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/1.352, allocations: 179.7 kB / 0.8583 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008463/1.353, allocations: 1.233 MB / 0.8595 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006188/1.353, allocations: 47.94 kB / 0.8596 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.003e-05/1.354, allocations: 35.98 kB / 0.8596 GB, free: 8.824 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002044/1.354, allocations: 140.6 kB / 0.8597 GB, free: 8.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/1.354, allocations: 71.23 kB / 0.8598 GB, free: 8.609 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/1.356, allocations: 0.8356 MB / 0.8606 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/1.356, allocations: 8 kB / 0.8606 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/1.356, allocations: 0 / 0.8606 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/1.356, allocations: 3.984 kB / 0.8606 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/1.359, allocations: 1.525 MB / 0.8621 GB, free: 6.164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.359, allocations: 0 / 0.8621 GB, free: 6.164 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/1.359, allocations: 135.8 kB / 0.8622 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001856/1.359, allocations: 65.67 kB / 0.8623 GB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/1.359, allocations: 8 kB / 0.8623 GB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008536/1.36, allocations: 1.792 MB / 0.8641 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.36, allocations: 4.172 kB / 0.8641 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/1.362, allocations: 1.138 MB / 0.8652 GB, free: 2.891 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001879/1.362, allocations: 168.1 kB / 0.8653 GB, free: 2.707 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/1.362, allocations: 0 / 0.8653 GB, free: 2.707 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/1.363, allocations: 35.97 kB / 0.8654 GB, free: 2.672 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/1.363, allocations: 60.41 kB / 0.8654 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-05/1.363, allocations: 27.98 kB / 0.8655 GB, free: 2.586 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003879/1.363, allocations: 391.2 kB / 0.8658 GB, free: 2.207 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.363, allocations: 0 / 0.8658 GB, free: 2.207 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001688/1.365, allocations: 0.6088 MB / 0.8664 GB, free: 1.598 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001222/1.366, allocations: 0.657 MB / 0.8671 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2042/1.571, allocations: 1.061 MB / 0.8681 GB, free: 89.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/1.571, allocations: 0 / 0.8681 GB, free: 89.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009549/1.572, allocations: 354.7 kB / 0.8684 GB, free: 89.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/1.573, allocations: 281.9 kB / 0.8687 GB, free: 89.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/1.575, allocations: 1.101 MB / 0.8698 GB, free: 89.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/1.576, allocations: 1.003 MB / 0.8708 GB, free: 88.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001295/1.577, allocations: 327.8 kB / 0.8711 GB, free: 88.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/1.577, allocations: 68 kB / 0.8711 GB, free: 88.93 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/1.577, allocations: 0.875 kB / 0.8711 GB, free: 88.93 MB / 426.7 MB Notification: Performance of Templates: time 0.02921/1.607, allocations: 18.7 MB / 0.8894 GB, free: 88.36 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches