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.001437/0.001437, allocations: 178.4 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.546/1.546, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0008091/0.0008091, allocations: 82.73 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.974e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 47.58 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7683/0.8699, allocations: 323.7 MB / 0.6707 GB, free: 6.242 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.8702, allocations: 93.94 kB / 0.6708 GB, free: 6.195 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024/1.894, allocations: 280.4 MB / 0.9446 GB, free: 74 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.312e-06/1.894, allocations: 0 / 0.9446 GB, free: 74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001574/1.895, allocations: 39.91 kB / 0.9446 GB, free: 73.99 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.004968/1.9, allocations: 1.788 MB / 0.9464 GB, free: 73.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/1.9, allocations: 9.969 kB / 0.9464 GB, free: 73.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000908/1.9, allocations: 166.7 kB / 0.9465 GB, free: 72.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003102/1.904, allocations: 1.028 MB / 0.9475 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/1.904, allocations: 41.66 kB / 0.9476 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005082/1.904, allocations: 59.73 kB / 0.9476 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003126/1.907, allocations: 1.43 MB / 0.949 GB, free: 72.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002793/1.91, allocations: 1.469 MB / 0.9505 GB, free: 71.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/1.91, allocations: 7.781 kB / 0.9505 GB, free: 71.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001933/1.91, allocations: 3.5 kB / 0.9505 GB, free: 71.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/1.911, allocations: 99.03 kB / 0.9506 GB, free: 71.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009901/1.92, allocations: 6.306 MB / 0.9567 GB, free: 67.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/1.922, allocations: 0.8757 MB / 0.9576 GB, free: 66.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006544/1.922, allocations: 0.53 MB / 0.9581 GB, free: 66.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003804/1.926, allocations: 2.832 MB / 0.9609 GB, free: 64.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/1.926, allocations: 53.52 kB / 0.9609 GB, free: 64.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 3.096e-06/1.926, allocations: 0 / 0.9609 GB, free: 64.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.00898/1.935, allocations: 3.123 MB / 0.964 GB, free: 63.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/1.935, allocations: 192.2 kB / 0.9642 GB, free: 63.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/1.936, allocations: 0.8743 MB / 0.965 GB, free: 62.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.744e-05/1.937, allocations: 33.2 kB / 0.965 GB, free: 62.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/1.937, allocations: 0.6602 MB / 0.9657 GB, free: 62.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/1.937, allocations: 306 kB / 0.966 GB, free: 62.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/1.937, allocations: 0 / 0.966 GB, free: 62.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/1.937, allocations: 363.5 kB / 0.9663 GB, free: 61.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000708/1.938, allocations: 0.5239 MB / 0.9668 GB, free: 61.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008034/1.939, allocations: 0.9244 MB / 0.9677 GB, free: 60.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008609/1.948, allocations: 2.162 MB / 0.9699 GB, free: 60.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.73e-05/1.948, allocations: 0 / 0.9699 GB, free: 60.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.01125/1.959, allocations: 3.222 MB / 0.973 GB, free: 57.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007663/1.96, allocations: 4.359 MB / 0.9773 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/1.96, allocations: 12 kB / 0.9773 GB, free: 53.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009352/1.961, allocations: 330.9 kB / 0.9776 GB, free: 52.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/1.962, allocations: 283.5 kB / 0.9779 GB, free: 52.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/1.965, allocations: 2.46 MB / 0.9803 GB, free: 49.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/1.966, allocations: 63.41 kB / 0.9803 GB, free: 49.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/1.966, allocations: 70.84 kB / 0.9804 GB, free: 49.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/1.966, allocations: 11.39 kB / 0.9804 GB, free: 49.86 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01054/1.977, allocations: 2.923 MB / 0.9833 GB, free: 46.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/1.977, allocations: 12 kB / 0.9833 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008426/1.978, allocations: 269.3 kB / 0.9835 GB, free: 46.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009938/1.979, allocations: 291.5 kB / 0.9838 GB, free: 46.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/1.981, allocations: 2.213 MB / 0.986 GB, free: 44.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/1.982, allocations: 76.66 kB / 0.986 GB, free: 44.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/1.982, allocations: 63.98 kB / 0.9861 GB, free: 44 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 () * 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.0003443/1.983, allocations: 153.5 kB / 0.9862 GB, free: 43.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/1.983, allocations: 133.4 kB / 0.9864 GB, free: 43.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/1.986, allocations: 1.512 MB / 0.9878 GB, free: 42.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/1.986, allocations: 15.95 kB / 0.9879 GB, free: 42.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.986, allocations: 0 / 0.9879 GB, free: 42.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/1.986, allocations: 7.969 kB / 0.9879 GB, free: 42.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004458/1.991, allocations: 2.727 MB / 0.9905 GB, free: 39.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/1.991, allocations: 0 / 0.9905 GB, free: 39.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006413/1.991, allocations: 158.5 kB / 0.9907 GB, free: 39.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009153/1.992, allocations: 317.3 kB / 0.991 GB, free: 38.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/1.992, allocations: 7.984 kB / 0.991 GB, free: 38.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/1.995, allocations: 2.277 MB / 0.9932 GB, free: 36.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.995, allocations: 0 / 0.9932 GB, free: 36.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/1.998, allocations: 2.139 MB / 0.9953 GB, free: 34.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004979/1.999, allocations: 231.4 kB / 0.9955 GB, free: 34.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/1.999, allocations: 4 kB / 0.9955 GB, free: 34.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008835/2, allocations: 55.69 kB / 0.9956 GB, free: 34.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/2, allocations: 93.17 kB / 0.9957 GB, free: 34.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.721e-05/2, allocations: 51.28 kB / 0.9957 GB, free: 33.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008516/2.001, allocations: 0.6569 MB / 0.9964 GB, free: 33.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.001, allocations: 0 / 0.9964 GB, free: 33.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00323/2.004, allocations: 1.139 MB / 0.9975 GB, free: 32.17 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]) * 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.002253/2.006, allocations: 1.103 MB / 0.9985 GB, free: 31.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003042/2.009, allocations: 2.094 MB / 1.001 GB, free: 29.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/2.009, allocations: 0 / 1.001 GB, free: 29.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009647/2.01, allocations: 0.6447 MB / 1.001 GB, free: 28.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/2.013, allocations: 484.3 kB / 1.002 GB, free: 27.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003084/2.016, allocations: 2.022 MB / 1.004 GB, free: 25.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005631/2.016, allocations: 1.288 MB / 1.005 GB, free: 24.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001885/2.018, allocations: 0.5793 MB / 1.005 GB, free: 24.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/2.018, allocations: 95.41 kB / 1.006 GB, free: 23.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/2.018, allocations: 0 / 1.006 GB, free: 23.94 MB / 426.7 MB Notification: Performance of Templates: time 0.2982/2.317, allocations: 34.91 MB / 1.04 GB, free: 67.86 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/jenkins/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