Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 180.9 kB / 16.38 MB, free: 5.766 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.397/1.397, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001225/0.001225, allocations: 94.12 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002675, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2306, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7448/0.9755, allocations: 324.8 MB / 0.7093 GB, free: 121.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.9758, allocations: 96.08 kB / 0.7094 GB, free: 121.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7711/1.747, allocations: 288.3 MB / 0.9909 GB, free: 43.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.747, allocations: 0 / 0.9909 GB, free: 43.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001118/1.747, allocations: 39.91 kB / 0.9909 GB, free: 43.57 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004717/1.752, allocations: 1.956 MB / 0.9929 GB, free: 41.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/1.752, allocations: 12.03 kB / 0.9929 GB, free: 41.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006383/1.752, allocations: 172.3 kB / 0.993 GB, free: 41.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002105/1.755, allocations: 1.038 MB / 0.994 GB, free: 40.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.961e-05/1.755, allocations: 87.48 kB / 0.9941 GB, free: 40.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/1.755, allocations: 96.52 kB / 0.9942 GB, free: 40.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/1.757, allocations: 1.624 MB / 0.9958 GB, free: 38.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/1.757, allocations: 0 / 0.9958 GB, free: 38.48 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/1.757, allocations: 47.58 kB / 0.9959 GB, free: 38.44 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/1.757, allocations: 105.9 kB / 0.996 GB, free: 38.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002186/1.76, allocations: 1.612 MB / 0.9975 GB, free: 36.72 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008683/1.768, allocations: 6.53 MB / 1.004 GB, free: 29.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/1.77, allocations: 0.925 MB / 1.005 GB, free: 28.97 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003628/1.773, allocations: 2.83 MB / 1.008 GB, free: 25.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/1.773, allocations: 51.16 kB / 1.008 GB, free: 25.86 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.976e-06/1.773, allocations: 3.984 kB / 1.008 GB, free: 25.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.007867/1.781, allocations: 3.712 MB / 1.011 GB, free: 22.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/1.781, allocations: 188.9 kB / 1.011 GB, free: 21.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/1.783, allocations: 1.147 MB / 1.013 GB, free: 20.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/1.783, allocations: 49.7 kB / 1.013 GB, free: 20.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/1.783, allocations: 0.6461 MB / 1.013 GB, free: 19.94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/1.784, allocations: 316.7 kB / 1.014 GB, free: 19.63 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/1.784, allocations: 36 kB / 1.014 GB, free: 19.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.522e-05/1.784, allocations: 361.9 kB / 1.014 GB, free: 19.24 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008038/1.785, allocations: 0.5583 MB / 1.014 GB, free: 18.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009391/1.785, allocations: 0.9629 MB / 1.015 GB, free: 17.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/1.786, allocations: 0.6627 MB / 1.016 GB, free: 16.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/1.786, allocations: 4 kB / 1.016 GB, free: 16.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002656/1.789, allocations: 1.838 MB / 1.018 GB, free: 15.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007579/1.79, allocations: 4.39 MB / 1.022 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/1.79, allocations: 12 kB / 1.022 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003608/1.793, allocations: 0.6619 MB / 1.023 GB, free: 9.645 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/1.794, allocations: 275.5 kB / 1.023 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/1.796, allocations: 2.164 MB / 1.025 GB, free: 7.133 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/1.798, allocations: 99.97 kB / 1.025 GB, free: 7.035 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/1.798, allocations: 63.98 kB / 1.025 GB, free: 6.973 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/1.798, allocations: 6.344 kB / 1.025 GB, free: 6.969 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00228/1.8, allocations: 1.627 MB / 1.027 GB, free: 5.332 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/1.8, allocations: 12 kB / 1.027 GB, free: 5.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/1.803, allocations: 0.506 MB / 1.027 GB, free: 4.805 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009341/1.804, allocations: 287.5 kB / 1.028 GB, free: 4.523 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/1.805, allocations: 2.016 MB / 1.03 GB, free: 2.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/1.806, allocations: 107.8 kB / 1.03 GB, free: 2.324 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/1.806, allocations: 63.97 kB / 1.03 GB, free: 2.262 MB / 458.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.0007224/1.807, allocations: 464.6 kB / 1.03 GB, free: 1.797 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/1.807, allocations: 150.3 kB / 1.03 GB, free: 1.648 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/1.81, allocations: 1.512 MB / 1.032 GB, free: 128 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/1.81, allocations: 15.98 kB / 1.032 GB, free: 112 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.81, allocations: 4 kB / 1.032 GB, free: 108 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/1.81, allocations: 3.984 kB / 1.032 GB, free: 104 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2434/2.053, allocations: 2.823 MB / 1.035 GB, free: 72.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/2.053, allocations: 3.281 kB / 1.035 GB, free: 72.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006681/2.054, allocations: 153.5 kB / 1.035 GB, free: 72.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/2.057, allocations: 0.6135 MB / 1.035 GB, free: 72.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/2.057, allocations: 30.33 kB / 1.035 GB, free: 72.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/2.058, allocations: 2.113 MB / 1.038 GB, free: 71.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/2.058, allocations: 7.656 kB / 1.038 GB, free: 71.07 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/2.062, allocations: 2.15 MB / 1.04 GB, free: 70.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005923/2.062, allocations: 250.2 kB / 1.04 GB, free: 70.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/2.062, allocations: 28.09 kB / 1.04 GB, free: 70.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009364/2.063, allocations: 67.3 kB / 1.04 GB, free: 70.69 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/2.064, allocations: 108.8 kB / 1.04 GB, free: 70.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-05/2.064, allocations: 39.84 kB / 1.04 GB, free: 70.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001314/2.065, allocations: 0.8926 MB / 1.041 GB, free: 70.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.065, allocations: 0 / 1.041 GB, free: 70.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004854/2.07, allocations: 1.216 MB / 1.042 GB, free: 70.57 MB / 458.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.003588/2.073, allocations: 1.104 MB / 1.043 GB, free: 70.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004397/2.078, allocations: 2.186 MB / 1.045 GB, free: 70.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/2.078, allocations: 3.781 kB / 1.045 GB, free: 70.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/2.079, allocations: 0.7034 MB / 1.046 GB, free: 70.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002903/2.082, allocations: 0.5781 MB / 1.047 GB, free: 70.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/2.087, allocations: 3.153 MB / 1.05 GB, free: 69.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007423/2.087, allocations: 1.283 MB / 1.051 GB, free: 68.51 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002034/2.089, allocations: 0.5605 MB / 1.051 GB, free: 68.49 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/2.09, allocations: 114.8 kB / 1.052 GB, free: 68.48 MB / 458.7 MB Notification: Performance of SimCode: time 1.283e-06/2.09, allocations: 0 / 1.052 GB, free: 68.48 MB / 458.7 MB Notification: Performance of Templates: time 0.05526/2.145, allocations: 38.21 MB / 1.089 GB, free: 66.8 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches