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.001032/0.001032, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.2 MB / 245 MB, free: 7.566 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009241/0.000924, allocations: 99.09 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003061, allocations: 8 kB / 357.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2245, allocations: 51.48 MB / 409.4 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6845/0.909, allocations: 329.6 MB / 0.7217 GB, free: 111.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.9093, allocations: 94.12 kB / 0.7217 GB, free: 111.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5249/1.434, allocations: 170.3 MB / 0.8881 GB, free: 110.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.434, allocations: 0 / 0.8881 GB, free: 110.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.947e-05/1.434, allocations: 25.08 kB / 0.8881 GB, free: 110.7 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.003128/1.437, allocations: 1.206 MB / 0.8893 GB, free: 110.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/1.437, allocations: 7.594 kB / 0.8893 GB, free: 110.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/1.438, allocations: 103.1 kB / 0.8894 GB, free: 110 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/1.44, allocations: 0.6301 MB / 0.89 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.014e-05/1.44, allocations: 52.12 kB / 0.8901 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/1.44, allocations: 53.28 kB / 0.8901 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/1.441, allocations: 0.8912 MB / 0.891 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/1.441, allocations: 7.094 kB / 0.891 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.509e-05/1.441, allocations: 21.75 kB / 0.891 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.234e-05/1.441, allocations: 46.41 kB / 0.8911 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/1.443, allocations: 0.7918 MB / 0.8918 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004659/1.447, allocations: 3.779 MB / 0.8955 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/1.448, allocations: 0.5293 MB / 0.896 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001926/1.45, allocations: 1.848 MB / 0.8978 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/1.45, allocations: 40.41 kB / 0.8979 GB, free: 106.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 1.733e-06/1.45, allocations: 0 / 0.8979 GB, free: 106.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.003103/1.453, allocations: 1.76 MB / 0.8996 GB, free: 105.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/1.453, allocations: 132.4 kB / 0.8997 GB, free: 105.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000751/1.454, allocations: 0.6635 MB / 0.9004 GB, free: 105.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.074e-05/1.454, allocations: 37.27 kB / 0.9004 GB, free: 105.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/1.454, allocations: 395.4 kB / 0.9008 GB, free: 105.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/1.454, allocations: 164.6 kB / 0.9009 GB, free: 105 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/1.454, allocations: 17.12 kB / 0.901 GB, free: 105 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/1.455, allocations: 394.3 kB / 0.9013 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/1.455, allocations: 261.1 kB / 0.9016 GB, free: 104.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/1.455, allocations: 498.7 kB / 0.9021 GB, free: 104.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004884/1.456, allocations: 326 kB / 0.9024 GB, free: 104.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/1.456, allocations: 0 / 0.9024 GB, free: 104.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001327/1.457, allocations: 0.8831 MB / 0.9032 GB, free: 103.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004908/1.458, allocations: 2.704 MB / 0.9059 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/1.458, allocations: 10.2 kB / 0.9059 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009357/1.459, allocations: 170.5 kB / 0.906 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/1.46, allocations: 193.8 kB / 0.9062 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009559/1.461, allocations: 1.802 MB / 0.908 GB, free: 99.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007037/1.461, allocations: 56.7 kB / 0.908 GB, free: 99.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.52e-05/1.461, allocations: 38.78 kB / 0.9081 GB, free: 99.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.375e-06/1.461, allocations: 3.969 kB / 0.9081 GB, free: 99.12 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001129/1.463, allocations: 0.782 MB / 0.9088 GB, free: 98.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/1.463, allocations: 6.812 kB / 0.9089 GB, free: 98.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008556/1.463, allocations: 173.5 kB / 0.909 GB, free: 98.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006335/1.464, allocations: 176.5 kB / 0.9092 GB, free: 98.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005741/1.465, allocations: 1.185 MB / 0.9103 GB, free: 97.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006021/1.465, allocations: 56.56 kB / 0.9104 GB, free: 97.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.471e-05/1.465, allocations: 35.56 kB / 0.9104 GB, free: 97.63 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 () * Number of clocked 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.0004819/1.466, allocations: 332.8 kB / 0.9108 GB, free: 97.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/1.466, allocations: 86.52 kB / 0.9108 GB, free: 97.33 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/1.467, allocations: 0.8273 MB / 0.9116 GB, free: 96.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/1.468, allocations: 11.53 kB / 0.9117 GB, free: 96.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/1.468, allocations: 0 / 0.9117 GB, free: 96.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/1.468, allocations: 0 / 0.9117 GB, free: 96.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/1.47, allocations: 1.564 MB / 0.9132 GB, free: 96.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/1.47, allocations: 0 / 0.9132 GB, free: 96.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006101/1.471, allocations: 140.9 kB / 0.9133 GB, free: 96.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/1.471, allocations: 128.4 kB / 0.9134 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.295e-05/1.471, allocations: 15.17 kB / 0.9135 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007346/1.472, allocations: 1.744 MB / 0.9152 GB, free: 94.47 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.472, allocations: 3.875 kB / 0.9152 GB, free: 94.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/1.473, allocations: 1.129 MB / 0.9163 GB, free: 93.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/1.474, allocations: 173.5 kB / 0.9164 GB, free: 93.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/1.474, allocations: 11.91 kB / 0.9164 GB, free: 93.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005028/1.474, allocations: 45.47 kB / 0.9165 GB, free: 93.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/1.474, allocations: 55.52 kB / 0.9165 GB, free: 93.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.185e-05/1.474, allocations: 29.98 kB / 0.9166 GB, free: 93.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005422/1.475, allocations: 0.5129 MB / 0.9171 GB, free: 93.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.475, allocations: 3.812 kB / 0.9171 GB, free: 93.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001924/1.477, allocations: 0.6779 MB / 0.9177 GB, free: 93.3 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]) * Number of clocked states: 0 () * 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.001864/1.479, allocations: 0.67 MB / 0.9184 GB, free: 93.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/1.481, allocations: 1.163 MB / 0.9195 GB, free: 92.72 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.481, allocations: 3.938 kB / 0.9195 GB, free: 92.72 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000712/1.482, allocations: 383.5 kB / 0.9199 GB, free: 92.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/1.483, allocations: 368.2 kB / 0.9202 GB, free: 92.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/1.486, allocations: 1.855 MB / 0.9221 GB, free: 91.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/1.486, allocations: 1.005 MB / 0.923 GB, free: 90.88 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001027/1.487, allocations: 330.3 kB / 0.9233 GB, free: 90.85 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/1.487, allocations: 77.84 kB / 0.9234 GB, free: 90.84 MB / 458.7 MB Notification: Performance of SimCode: time 2.51e-07/1.487, allocations: 2.812 kB / 0.9234 GB, free: 90.84 MB / 458.7 MB Notification: Performance of Templates: time 0.02862/1.516, allocations: 21.05 MB / 0.944 GB, free: 77.29 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