Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001346/0.001345, allocations: 183.8 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.4 MB / 224.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007423/0.0007423, allocations: 89.05 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003371/0.0003372, allocations: 12 kB / 329.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2248, allocations: 47.57 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.694/0.9188, allocations: 324.4 MB / 0.685 GB, free: 140.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.9191, allocations: 94.56 kB / 0.6851 GB, free: 140.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7428/1.662, allocations: 281.3 MB / 0.9597 GB, free: 24.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.662, allocations: 0 / 0.9597 GB, free: 24.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001303/1.662, allocations: 39.98 kB / 0.9598 GB, free: 24.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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004997/1.667, allocations: 1.945 MB / 0.9617 GB, free: 22.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/1.667, allocations: 8.031 kB / 0.9617 GB, free: 22.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008096/1.668, allocations: 173.2 kB / 0.9618 GB, free: 21.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/1.67, allocations: 1.08 MB / 0.9629 GB, free: 20.76 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.055e-05/1.67, allocations: 73.98 kB / 0.963 GB, free: 20.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/1.671, allocations: 95.97 kB / 0.9631 GB, free: 20.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/1.673, allocations: 1.635 MB / 0.9647 GB, free: 18.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/1.673, allocations: 7.938 kB / 0.9647 GB, free: 18.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001574/1.673, allocations: 39.98 kB / 0.9647 GB, free: 18.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/1.673, allocations: 101.9 kB / 0.9648 GB, free: 18.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002411/1.676, allocations: 1.616 MB / 0.9664 GB, free: 17.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008577/1.684, allocations: 6.479 MB / 0.9727 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/1.686, allocations: 0.9309 MB / 0.9736 GB, free: 9.332 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007156/1.686, allocations: 0.5529 MB / 0.9741 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003754/1.69, allocations: 2.805 MB / 0.9769 GB, free: 5.727 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/1.69, allocations: 43.22 kB / 0.9769 GB, free: 5.672 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.775e-06/1.69, allocations: 4 kB / 0.9769 GB, free: 5.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.007594/1.698, allocations: 3.731 MB / 0.9806 GB, free: 1.824 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/1.698, allocations: 188.9 kB / 0.9808 GB, free: 1.594 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/1.7, allocations: 1.295 MB / 0.982 GB, free: 288 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/1.7, allocations: 49.7 kB / 0.9821 GB, free: 232 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1929/1.893, allocations: 0.6391 MB / 0.9827 GB, free: 56.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005209/1.893, allocations: 323.1 kB / 0.983 GB, free: 56.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/1.893, allocations: 28.78 kB / 0.983 GB, free: 56.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.901e-05/1.893, allocations: 362.1 kB / 0.9834 GB, free: 56.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000876/1.894, allocations: 0.5605 MB / 0.9839 GB, free: 56.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009327/1.895, allocations: 0.9616 MB / 0.9849 GB, free: 55.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/1.897, allocations: 1.415 MB / 0.9862 GB, free: 55.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/1.897, allocations: 6.781 kB / 0.9862 GB, free: 55.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002643/1.9, allocations: 1.847 MB / 0.9881 GB, free: 55.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/1.9, allocations: 420.4 kB / 0.9885 GB, free: 54.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/1.9, allocations: 14.95 kB / 0.9885 GB, free: 54.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003502/1.903, allocations: 0.6652 MB / 0.9891 GB, free: 54.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.904, allocations: 274.2 kB / 0.9894 GB, free: 54.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/1.906, allocations: 2.167 MB / 0.9915 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/1.907, allocations: 100.9 kB / 0.9916 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/1.907, allocations: 66.14 kB / 0.9917 GB, free: 53.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/1.907, allocations: 3.531 kB / 0.9917 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002355/1.91, allocations: 1.629 MB / 0.9932 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/1.91, allocations: 12.56 kB / 0.9933 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002927/1.913, allocations: 0.5014 MB / 0.9937 GB, free: 52.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/1.914, allocations: 289.5 kB / 0.994 GB, free: 52.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/1.915, allocations: 2.012 MB / 0.996 GB, free: 51.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/1.916, allocations: 97.56 kB / 0.9961 GB, free: 51.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/1.917, allocations: 69.47 kB / 0.9961 GB, free: 51.39 MB / 426.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 () * Number of clocked 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.0007454/1.917, allocations: 472.4 kB / 0.9966 GB, free: 51.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/1.918, allocations: 144.7 kB / 0.9967 GB, free: 51.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0026/1.92, allocations: 1.514 MB / 0.9982 GB, free: 51.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/1.92, allocations: 9.469 kB / 0.9982 GB, free: 51.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/1.92, allocations: 3.938 kB / 0.9982 GB, free: 51.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/1.92, allocations: 7.359 kB / 0.9982 GB, free: 51.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/1.924, allocations: 2.809 MB / 1.001 GB, free: 50.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/1.924, allocations: 1.688 kB / 1.001 GB, free: 50.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006266/1.925, allocations: 151.2 kB / 1.001 GB, free: 50.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002576/1.928, allocations: 0.6131 MB / 1.002 GB, free: 50.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.588e-05/1.928, allocations: 27.66 kB / 1.002 GB, free: 50.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/1.929, allocations: 2.122 MB / 1.004 GB, free: 49.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.929, allocations: 3.875 kB / 1.004 GB, free: 49.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002943/1.932, allocations: 2.086 MB / 1.006 GB, free: 48.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005853/1.933, allocations: 245.1 kB / 1.006 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003809/1.933, allocations: 27.73 kB / 1.006 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.934, allocations: 77.89 kB / 1.006 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/1.935, allocations: 96.27 kB / 1.006 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/1.935, allocations: 49.2 kB / 1.006 GB, free: 48.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001374/1.936, allocations: 0.8909 MB / 1.007 GB, free: 48.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.936, allocations: 0 / 1.007 GB, free: 48.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003867/1.94, allocations: 1.219 MB / 1.008 GB, free: 48.44 MB / 426.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]) * Number of clocked states: 0 () * 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.002794/1.943, allocations: 1.109 MB / 1.009 GB, free: 48.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004414/1.947, allocations: 2.186 MB / 1.012 GB, free: 48.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/1.947, allocations: 5.062 kB / 1.012 GB, free: 48.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/1.949, allocations: 0.7061 MB / 1.012 GB, free: 48.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/1.952, allocations: 0.5786 MB / 1.013 GB, free: 48.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00479/1.957, allocations: 3.165 MB / 1.016 GB, free: 47.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009397/1.958, allocations: 1.255 MB / 1.017 GB, free: 46.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002119/1.96, allocations: 0.5625 MB / 1.018 GB, free: 46.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004201/1.96, allocations: 117.1 kB / 1.018 GB, free: 46.32 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/1.96, allocations: 0 / 1.018 GB, free: 46.32 MB / 426.7 MB Notification: Performance of Templates: time 0.05231/2.013, allocations: 39.19 MB / 1.056 GB, free: 44.11 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches