Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,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.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00145/0.001451, 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.531/1.531, 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.001055/0.001055, allocations: 86.7 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.349e-05/1.35e-05, allocations: 0 / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08721, allocations: 47.59 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6752/0.7625, allocations: 323.4 MB / 0.6704 GB, free: 6.676 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.7628, allocations: 94.08 kB / 0.6704 GB, free: 6.629 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.586/1.349, allocations: 191 MB / 0.8569 GB, free: 12.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.442e-06/1.349, allocations: 0 / 0.8569 GB, free: 12.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001064/1.349, allocations: 24 kB / 0.857 GB, free: 12.06 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003528/1.352, allocations: 1.301 MB / 0.8582 GB, free: 10.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/1.353, allocations: 8.031 kB / 0.8582 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006318/1.353, allocations: 114.8 kB / 0.8584 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/1.355, allocations: 0.7336 MB / 0.8591 GB, free: 9.809 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.549e-05/1.355, allocations: 20 kB / 0.8591 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/1.355, allocations: 43.92 kB / 0.8591 GB, free: 9.746 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001404/1.356, allocations: 0.8889 MB / 0.86 GB, free: 8.859 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/1.358, allocations: 0.9576 MB / 0.8609 GB, free: 7.844 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/1.358, allocations: 3.938 kB / 0.8609 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/1.358, allocations: 11.95 kB / 0.861 GB, free: 7.828 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-05/1.358, allocations: 65.27 kB / 0.861 GB, free: 7.766 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005628/1.364, allocations: 4.225 MB / 0.8651 GB, free: 3.301 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007751/1.365, allocations: 0.5431 MB / 0.8657 GB, free: 2.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003726/1.365, allocations: 306 kB / 0.866 GB, free: 2.449 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002225/1.367, allocations: 2.032 MB / 0.8679 GB, free: 208 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/1.367, allocations: 38.89 kB / 0.868 GB, free: 160 kB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.224e-06/1.367, allocations: 4 kB / 0.868 GB, free: 156 kB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.2051/1.572, allocations: 1.738 MB / 0.8697 GB, free: 80.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/1.573, allocations: 161.9 kB / 0.8698 GB, free: 80.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009252/1.573, allocations: 0.6281 MB / 0.8705 GB, free: 80.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.364e-05/1.574, allocations: 27.83 kB / 0.8705 GB, free: 80.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/1.574, allocations: 495.2 kB / 0.871 GB, free: 79.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/1.574, allocations: 152.7 kB / 0.8711 GB, free: 79.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/1.574, allocations: 0 / 0.8711 GB, free: 79.83 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/1.574, allocations: 389.7 kB / 0.8715 GB, free: 79.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/1.575, allocations: 295.2 kB / 0.8717 GB, free: 79.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006041/1.575, allocations: 0.5726 MB / 0.8723 GB, free: 79.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006292/1.582, allocations: 1.365 MB / 0.8736 GB, free: 79.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/1.582, allocations: 1.969 kB / 0.8736 GB, free: 79.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.007605/1.589, allocations: 1.984 MB / 0.8756 GB, free: 79.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000638/1.59, allocations: 3.312 MB / 0.8788 GB, free: 75.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/1.59, allocations: 8.75 kB / 0.8788 GB, free: 75.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005643/1.591, allocations: 166.5 kB / 0.879 GB, free: 75.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006795/1.591, allocations: 176.1 kB / 0.8792 GB, free: 75.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/1.593, allocations: 1.499 MB / 0.8806 GB, free: 74.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009077/1.594, allocations: 42.02 kB / 0.8807 GB, free: 74.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/1.594, allocations: 44.27 kB / 0.8807 GB, free: 74.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/1.594, allocations: 6.281 kB / 0.8807 GB, free: 74.58 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00994/1.604, allocations: 1.799 MB / 0.8825 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/1.604, allocations: 10.17 kB / 0.8825 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008165/1.605, allocations: 163 kB / 0.8826 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009573/1.606, allocations: 170.5 kB / 0.8828 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/1.608, allocations: 1.417 MB / 0.8842 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/1.61, allocations: 46.52 kB / 0.8842 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/1.61, allocations: 42.45 kB / 0.8843 GB, free: 73.49 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005109/1.61, allocations: 136.3 kB / 0.8844 GB, free: 73.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/1.611, allocations: 79.97 kB / 0.8845 GB, free: 73.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003323/1.614, allocations: 0.7884 MB / 0.8852 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/1.614, allocations: 9.719 kB / 0.8852 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.614, allocations: 2.812 kB / 0.8852 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/1.614, allocations: 12.8 kB / 0.8853 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004205/1.618, allocations: 1.536 MB / 0.8868 GB, free: 72.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/1.618, allocations: 1.125 kB / 0.8868 GB, free: 72.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/1.619, allocations: 79.73 kB / 0.8868 GB, free: 72.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007865/1.62, allocations: 162.8 kB / 0.887 GB, free: 72.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.75e-05/1.62, allocations: 3.062 kB / 0.887 GB, free: 72.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001796/1.622, allocations: 1.388 MB / 0.8883 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.622, allocations: 3.953 kB / 0.8883 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/1.624, allocations: 1.106 MB / 0.8894 GB, free: 71.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003261/1.625, allocations: 180.3 kB / 0.8896 GB, free: 71.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/1.625, allocations: 3.688 kB / 0.8896 GB, free: 71.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007947/1.626, allocations: 39.08 kB / 0.8896 GB, free: 71.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/1.626, allocations: 48.16 kB / 0.8897 GB, free: 71.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.041e-05/1.626, allocations: 25.59 kB / 0.8897 GB, free: 71.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007737/1.627, allocations: 489.8 kB / 0.8902 GB, free: 71.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.627, allocations: 2.719 kB / 0.8902 GB, free: 71.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003117/1.63, allocations: 0.7834 MB / 0.8909 GB, free: 71.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002237/1.632, allocations: 0.8127 MB / 0.8917 GB, free: 71.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00307/1.635, allocations: 1.145 MB / 0.8929 GB, free: 71.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/1.635, allocations: 2.875 kB / 0.8929 GB, free: 71.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007384/1.636, allocations: 292 kB / 0.8931 GB, free: 71.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/1.638, allocations: 305.4 kB / 0.8934 GB, free: 71.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/1.641, allocations: 1.204 MB / 0.8946 GB, free: 70.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005676/1.642, allocations: 1.055 MB / 0.8956 GB, free: 70.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001923/1.644, allocations: 374.4 kB / 0.896 GB, free: 70.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/1.644, allocations: 59.2 kB / 0.8961 GB, free: 70.23 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/1.644, allocations: 0 / 0.8961 GB, free: 70.23 MB / 426.7 MB Notification: Performance of Templates: time 0.04563/1.689, allocations: 21.97 MB / 0.9175 GB, free: 69.2 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_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/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches