Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001101/0.001101, allocations: 182 kB / 17.41 MB, free: 4.406 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.526/1.526, allocations: 205.4 MB / 223.6 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.0007701/0.0007701, allocations: 93.92 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003213, allocations: 11.98 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2168, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6498/0.8667, allocations: 324 MB / 0.6834 GB, free: 141 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.8669, allocations: 92.27 kB / 0.6835 GB, free: 140.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5734/1.44, allocations: 191.7 MB / 0.8706 GB, free: 88.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.44, allocations: 3.562 kB / 0.8706 GB, free: 88.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.756e-05/1.44, allocations: 29.39 kB / 0.8707 GB, free: 88.11 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.003049/1.443, allocations: 1.398 MB / 0.872 GB, free: 87.33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.444, allocations: 7.438 kB / 0.872 GB, free: 87.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003741/1.444, allocations: 117 kB / 0.8721 GB, free: 87.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/1.445, allocations: 0.7586 MB / 0.8729 GB, free: 86.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.886e-05/1.445, allocations: 50.2 kB / 0.8729 GB, free: 86.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/1.445, allocations: 63.3 kB / 0.873 GB, free: 86.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/1.447, allocations: 1.057 MB / 0.874 GB, free: 86.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/1.447, allocations: 2.812 kB / 0.874 GB, free: 86.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.389e-05/1.447, allocations: 34.81 kB / 0.8741 GB, free: 86.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.753e-05/1.447, allocations: 64.11 kB / 0.8741 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/1.449, allocations: 1.018 MB / 0.8751 GB, free: 86.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005489/1.454, allocations: 4.344 MB / 0.8794 GB, free: 84.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008313/1.455, allocations: 0.5666 MB / 0.8799 GB, free: 84.58 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004262/1.456, allocations: 321.2 kB / 0.8802 GB, free: 84.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002023/1.458, allocations: 1.979 MB / 0.8821 GB, free: 82.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/1.458, allocations: 38.77 kB / 0.8822 GB, free: 82.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/1.458, allocations: 0 / 0.8822 GB, free: 82.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.00395/1.462, allocations: 1.954 MB / 0.8841 GB, free: 81.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/1.462, allocations: 165.4 kB / 0.8843 GB, free: 81.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/1.463, allocations: 0.918 MB / 0.8851 GB, free: 81.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/1.463, allocations: 37.61 kB / 0.8852 GB, free: 81.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/1.463, allocations: 482.2 kB / 0.8856 GB, free: 80.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/1.463, allocations: 162.3 kB / 0.8858 GB, free: 80.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.852e-05/1.463, allocations: 19.88 kB / 0.8858 GB, free: 80.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.522e-05/1.463, allocations: 341.1 kB / 0.8861 GB, free: 80.33 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004566/1.464, allocations: 311.8 kB / 0.8864 GB, free: 80.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000559/1.464, allocations: 0.6005 MB / 0.887 GB, free: 79.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009459/1.465, allocations: 0.8448 MB / 0.8879 GB, free: 79.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/1.465, allocations: 3.938 kB / 0.8879 GB, free: 79.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001503/1.467, allocations: 1.081 MB / 0.8889 GB, free: 78.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001387/1.467, allocations: 350.5 kB / 0.8892 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/1.467, allocations: 7.812 kB / 0.8893 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/1.469, allocations: 313.4 kB / 0.8896 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/1.469, allocations: 179.7 kB / 0.8897 GB, free: 78.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008647/1.47, allocations: 1.347 MB / 0.891 GB, free: 77.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008152/1.471, allocations: 59.55 kB / 0.8911 GB, free: 77.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.847e-05/1.471, allocations: 47.73 kB / 0.8911 GB, free: 77.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.879e-06/1.471, allocations: 2.562 kB / 0.8911 GB, free: 77.09 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001368/1.473, allocations: 0.9558 MB / 0.8921 GB, free: 76.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/1.473, allocations: 11.53 kB / 0.8921 GB, free: 76.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/1.474, allocations: 288.2 kB / 0.8924 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005531/1.475, allocations: 184.4 kB / 0.8925 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007431/1.476, allocations: 1.305 MB / 0.8938 GB, free: 75.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007281/1.476, allocations: 60.03 kB / 0.8939 GB, free: 75.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.038e-05/1.476, allocations: 54.06 kB / 0.8939 GB, free: 75.45 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 () * Number of clocked 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.0005097/1.477, allocations: 368.5 kB / 0.8943 GB, free: 75.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/1.477, allocations: 93.16 kB / 0.8944 GB, free: 75.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/1.478, allocations: 0.7878 MB / 0.8951 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/1.478, allocations: 3.969 kB / 0.8951 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/1.478, allocations: 0 / 0.8951 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/1.479, allocations: 3.938 kB / 0.8951 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/1.481, allocations: 1.585 MB / 0.8967 GB, free: 74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/1.481, allocations: 6.656 kB / 0.8967 GB, free: 74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/1.481, allocations: 69.53 kB / 0.8968 GB, free: 73.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/1.482, allocations: 285.3 kB / 0.897 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.059e-05/1.482, allocations: 15.5 kB / 0.897 GB, free: 73.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007516/1.483, allocations: 1.314 MB / 0.8983 GB, free: 72.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.483, allocations: 7 kB / 0.8983 GB, free: 72.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/1.485, allocations: 1.079 MB / 0.8994 GB, free: 72.24 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/1.485, allocations: 192.5 kB / 0.8996 GB, free: 72.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/1.485, allocations: 19.66 kB / 0.8996 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005438/1.486, allocations: 38.42 kB / 0.8996 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/1.486, allocations: 50.81 kB / 0.8997 GB, free: 72.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/1.486, allocations: 23.53 kB / 0.8997 GB, free: 72.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009258/1.487, allocations: 0.6396 MB / 0.9003 GB, free: 71.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.487, allocations: 0 / 0.9003 GB, free: 71.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003095/1.49, allocations: 0.8348 MB / 0.9011 GB, free: 71.56 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]) * Number of clocked states: 0 () * 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.003132/1.493, allocations: 0.8087 MB / 0.9019 GB, free: 71.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002752/1.496, allocations: 1.229 MB / 0.9031 GB, free: 70.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/1.496, allocations: 3.938 kB / 0.9031 GB, free: 70.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008722/1.497, allocations: 364.2 kB / 0.9035 GB, free: 70.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/1.499, allocations: 392.4 kB / 0.9039 GB, free: 70.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/1.502, allocations: 2.047 MB / 0.9059 GB, free: 69.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/1.503, allocations: 1.025 MB / 0.9069 GB, free: 68.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/1.503, allocations: 83.14 kB / 0.9069 GB, free: 68.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.843e-06/1.503, allocations: 0 / 0.9069 GB, free: 68.94 MB / 426.7 MB Notification: Performance of Templates: time 0.03474/1.538, allocations: 26.52 MB / 0.9328 GB, free: 47.54 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_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/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches