Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009587/0.0009587, allocations: 89.97 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.986e-05, allocations: 7.984 kB / 350.6 MB, free: 2.555 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09892, allocations: 51.48 MB / 402 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7543/0.8533, allocations: 329.5 MB / 0.7144 GB, free: 19.67 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.8536, allocations: 89.83 kB / 0.7145 GB, free: 19.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5723/1.426, allocations: 169.8 MB / 0.8802 GB, free: 56.24 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.426, allocations: 0 / 0.8802 GB, free: 56.24 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.863e-05/1.426, allocations: 23.94 kB / 0.8803 GB, free: 56.22 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002197/1.428, allocations: 1.112 MB / 0.8813 GB, free: 55.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/1.428, allocations: 12.03 kB / 0.8814 GB, free: 55.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003383/1.429, allocations: 103.8 kB / 0.8815 GB, free: 54.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/1.43, allocations: 0.6241 MB / 0.8821 GB, free: 54.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/1.43, allocations: 41.31 kB / 0.8821 GB, free: 54.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.038e-05/1.43, allocations: 63.98 kB / 0.8822 GB, free: 54.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/1.431, allocations: 0.8737 MB / 0.883 GB, free: 53.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/1.431, allocations: 0 / 0.883 GB, free: 53.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/1.431, allocations: 28 kB / 0.883 GB, free: 53.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-05/1.431, allocations: 45.28 kB / 0.8831 GB, free: 53.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000995/1.432, allocations: 0.782 MB / 0.8839 GB, free: 52.39 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/1.436, allocations: 3.782 MB / 0.8875 GB, free: 48.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007291/1.437, allocations: 0.5177 MB / 0.8881 GB, free: 47.87 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/1.437, allocations: 262.1 kB / 0.8883 GB, free: 47.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001734/1.439, allocations: 1.891 MB / 0.8901 GB, free: 45.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/1.439, allocations: 42.56 kB / 0.8902 GB, free: 45.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 1.884e-06/1.439, allocations: 0 / 0.8902 GB, free: 45.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.002327/1.441, allocations: 1.369 MB / 0.8915 GB, free: 44.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/1.441, allocations: 140.5 kB / 0.8917 GB, free: 43.86 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006478/1.442, allocations: 0.6599 MB / 0.8923 GB, free: 43.19 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/1.442, allocations: 37.7 kB / 0.8923 GB, free: 43.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/1.442, allocations: 391.1 kB / 0.8927 GB, free: 42.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.28e-05/1.442, allocations: 173.7 kB / 0.8929 GB, free: 42.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/1.442, allocations: 12 kB / 0.8929 GB, free: 42.58 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.872e-05/1.443, allocations: 386.8 kB / 0.8933 GB, free: 42.19 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/1.443, allocations: 249.5 kB / 0.8935 GB, free: 41.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/1.443, allocations: 498.8 kB / 0.894 GB, free: 41.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/1.444, allocations: 318 kB / 0.8943 GB, free: 41.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/1.444, allocations: 0 / 0.8943 GB, free: 41.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001172/1.445, allocations: 0.8745 MB / 0.8951 GB, free: 40.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004082/1.445, allocations: 2.708 MB / 0.8978 GB, free: 37.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.445, allocations: 8 kB / 0.8978 GB, free: 37.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009119/1.446, allocations: 165.5 kB / 0.8979 GB, free: 37.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008995/1.447, allocations: 195.7 kB / 0.8981 GB, free: 36.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008478/1.448, allocations: 1.804 MB / 0.8999 GB, free: 34.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/1.449, allocations: 51.88 kB / 0.8999 GB, free: 34.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-05/1.449, allocations: 39.98 kB / 0.9 GB, free: 34.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.437e-06/1.449, allocations: 4 kB / 0.9 GB, free: 34.9 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001062/1.45, allocations: 0.7684 MB / 0.9007 GB, free: 34.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/1.45, allocations: 8 kB / 0.9007 GB, free: 34.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007991/1.451, allocations: 169.8 kB / 0.9009 GB, free: 33.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005795/1.451, allocations: 171.9 kB / 0.9011 GB, free: 33.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004869/1.452, allocations: 1.183 MB / 0.9022 GB, free: 32.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/1.452, allocations: 55.84 kB / 0.9023 GB, free: 32.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.17e-05/1.452, allocations: 43.94 kB / 0.9023 GB, free: 32.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001911/1.453, allocations: 156.2 kB / 0.9025 GB, free: 32.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/1.453, allocations: 79.06 kB / 0.9025 GB, free: 32.21 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/1.454, allocations: 0.8127 MB / 0.9033 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/1.454, allocations: 8 kB / 0.9033 GB, free: 31.37 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/1.454, allocations: 0 / 0.9033 GB, free: 31.37 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/1.454, allocations: 7.938 kB / 0.9033 GB, free: 31.36 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/1.456, allocations: 1.548 MB / 0.9049 GB, free: 29.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/1.456, allocations: 4 kB / 0.9049 GB, free: 29.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006152/1.457, allocations: 136 kB / 0.905 GB, free: 29.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005586/1.457, allocations: 125.5 kB / 0.9051 GB, free: 29.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.753e-05/1.458, allocations: 23.98 kB / 0.9051 GB, free: 29.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006715/1.458, allocations: 1.749 MB / 0.9068 GB, free: 27.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.458, allocations: 0 / 0.9068 GB, free: 27.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/1.46, allocations: 1.114 MB / 0.9079 GB, free: 26.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/1.46, allocations: 172 kB / 0.9081 GB, free: 26.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/1.46, allocations: 12 kB / 0.9081 GB, free: 26.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/1.46, allocations: 39.88 kB / 0.9081 GB, free: 26.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/1.461, allocations: 60.73 kB / 0.9082 GB, free: 26.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.957e-05/1.461, allocations: 31.91 kB / 0.9082 GB, free: 26.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005887/1.461, allocations: 0.5108 MB / 0.9087 GB, free: 25.63 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.61e-07/1.461, allocations: 0 / 0.9087 GB, free: 25.63 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002049/1.463, allocations: 0.6674 MB / 0.9094 GB, free: 24.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00214/1.465, allocations: 0.6808 MB / 0.91 GB, free: 24.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/1.468, allocations: 1.168 MB / 0.9112 GB, free: 23.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/1.468, allocations: 4 kB / 0.9112 GB, free: 23.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007471/1.469, allocations: 376.2 kB / 0.9116 GB, free: 22.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/1.47, allocations: 365 kB / 0.9119 GB, free: 22.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/1.472, allocations: 1.144 MB / 0.913 GB, free: 21.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004225/1.473, allocations: 1.008 MB / 0.914 GB, free: 20.18 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001234/1.474, allocations: 369.7 kB / 0.9144 GB, free: 19.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/1.474, allocations: 71.41 kB / 0.9144 GB, free: 19.75 MB / 458.7 MB Notification: Performance of SimCode: time 1.232e-06/1.474, allocations: 0 / 0.9144 GB, free: 19.75 MB / 458.7 MB Notification: Performance of Templates: time 0.299/1.773, allocations: 22.5 MB / 0.9364 GB, free: 86.55 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches