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-06,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-06,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.001104/0.001104, allocations: 197.4 kB / 18.11 MB, free: 3.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008934/0.0008933, allocations: 103.2 kB / 297.5 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002318/0.0002321, allocations: 8 kB / 358.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2387, allocations: 51.28 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7542/0.9929, allocations: 329.6 MB / 0.7217 GB, free: 141.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.9932, allocations: 91.95 kB / 0.7218 GB, free: 141.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6596/1.653, allocations: 169.3 MB / 0.8871 GB, free: 101.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.653, allocations: 0 / 0.8871 GB, free: 101.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.308e-05/1.653, allocations: 21.69 kB / 0.8871 GB, free: 101.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.003051/1.656, allocations: 1.21 MB / 0.8883 GB, free: 101 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/1.656, allocations: 10.78 kB / 0.8883 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005167/1.657, allocations: 95.91 kB / 0.8884 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/1.658, allocations: 0.6517 MB / 0.889 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/1.658, allocations: 42.14 kB / 0.889 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/1.658, allocations: 54.38 kB / 0.8891 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/1.66, allocations: 0.899 MB / 0.89 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/1.66, allocations: 6.156 kB / 0.89 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.851e-05/1.66, allocations: 25.41 kB / 0.89 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.398e-05/1.66, allocations: 44.91 kB / 0.89 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/1.661, allocations: 0.7908 MB / 0.8908 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004863/1.666, allocations: 3.746 MB / 0.8945 GB, free: 98.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/1.667, allocations: 0.531 MB / 0.895 GB, free: 98.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003899/1.667, allocations: 267.4 kB / 0.8953 GB, free: 98.49 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002001/1.669, allocations: 1.822 MB / 0.897 GB, free: 97.24 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/1.669, allocations: 40.95 kB / 0.8971 GB, free: 97.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 2.906e-06/1.669, allocations: 0 / 0.8971 GB, free: 97.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.003597/1.673, allocations: 1.757 MB / 0.8988 GB, free: 96.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/1.673, allocations: 142.3 kB / 0.8989 GB, free: 96.42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/1.674, allocations: 0.7451 MB / 0.8996 GB, free: 96.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.121e-05/1.674, allocations: 40.16 kB / 0.8997 GB, free: 96.24 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003476/1.674, allocations: 390.5 kB / 0.9001 GB, free: 96.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/1.675, allocations: 166.3 kB / 0.9002 GB, free: 95.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/1.675, allocations: 11.03 kB / 0.9002 GB, free: 95.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/1.675, allocations: 392 kB / 0.9006 GB, free: 95.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/1.675, allocations: 255.5 kB / 0.9008 GB, free: 95.65 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/1.676, allocations: 0.4954 MB / 0.9013 GB, free: 95.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008221/1.677, allocations: 0.7136 MB / 0.902 GB, free: 95.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/1.677, allocations: 3.875 kB / 0.902 GB, free: 95.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001444/1.678, allocations: 0.8873 MB / 0.9029 GB, free: 95.02 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/1.678, allocations: 298.7 kB / 0.9032 GB, free: 94.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/1.678, allocations: 11.02 kB / 0.9032 GB, free: 94.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009497/1.679, allocations: 163.8 kB / 0.9033 GB, free: 94.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008921/1.68, allocations: 197.9 kB / 0.9035 GB, free: 94.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008896/1.681, allocations: 1.801 MB / 0.9053 GB, free: 93.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007162/1.682, allocations: 58.84 kB / 0.9054 GB, free: 93.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.567e-05/1.682, allocations: 38.09 kB / 0.9054 GB, free: 93.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/1.682, allocations: 5.938 kB / 0.9054 GB, free: 93.04 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001196/1.683, allocations: 0.786 MB / 0.9062 GB, free: 93.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/1.683, allocations: 10.88 kB / 0.9062 GB, free: 93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009696/1.684, allocations: 161.3 kB / 0.9063 GB, free: 92.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/1.685, allocations: 178 kB / 0.9065 GB, free: 92.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006459/1.685, allocations: 1.187 MB / 0.9077 GB, free: 91.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007175/1.686, allocations: 51.95 kB / 0.9077 GB, free: 91.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.811e-05/1.686, allocations: 37.16 kB / 0.9077 GB, free: 91.95 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.000429/1.687, allocations: 331.1 kB / 0.9081 GB, free: 91.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/1.687, allocations: 80.81 kB / 0.9081 GB, free: 91.72 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/1.688, allocations: 0.8215 MB / 0.9089 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/1.688, allocations: 7.594 kB / 0.9089 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/1.688, allocations: 0 / 0.9089 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/1.688, allocations: 6.609 kB / 0.9089 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/1.69, allocations: 1.557 MB / 0.9105 GB, free: 91.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.69, allocations: 0 / 0.9105 GB, free: 91.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006387/1.691, allocations: 145.4 kB / 0.9106 GB, free: 91.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005393/1.692, allocations: 122.8 kB / 0.9107 GB, free: 91.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/1.692, allocations: 19.48 kB / 0.9107 GB, free: 91.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006861/1.692, allocations: 1.744 MB / 0.9124 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.692, allocations: 1.594 kB / 0.9124 GB, free: 89.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/1.694, allocations: 1.097 MB / 0.9135 GB, free: 89.38 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/1.694, allocations: 170.2 kB / 0.9137 GB, free: 89.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/1.694, allocations: 13.38 kB / 0.9137 GB, free: 89.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005314/1.695, allocations: 50.78 kB / 0.9137 GB, free: 89.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/1.695, allocations: 59.72 kB / 0.9138 GB, free: 89.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.794e-05/1.695, allocations: 31.69 kB / 0.9138 GB, free: 89.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006288/1.695, allocations: 0.5139 MB / 0.9143 GB, free: 89.13 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.695, allocations: 0 / 0.9143 GB, free: 89.13 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001916/1.697, allocations: 0.6682 MB / 0.915 GB, free: 89.03 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.001725/1.699, allocations: 0.6737 MB / 0.9156 GB, free: 88.83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002473/1.702, allocations: 1.166 MB / 0.9168 GB, free: 88.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.702, allocations: 3.938 kB / 0.9168 GB, free: 88.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/1.702, allocations: 384.3 kB / 0.9172 GB, free: 88.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/1.704, allocations: 369.8 kB / 0.9175 GB, free: 88.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/1.707, allocations: 1.865 MB / 0.9193 GB, free: 88.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000485/1.707, allocations: 0.9846 MB / 0.9203 GB, free: 87.32 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001225/1.708, allocations: 324.8 kB / 0.9206 GB, free: 87.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/1.709, allocations: 82.47 kB / 0.9207 GB, free: 87.29 MB / 458.7 MB Notification: Performance of SimCode: time 6.41e-07/1.709, allocations: 0 / 0.9207 GB, free: 87.29 MB / 458.7 MB Notification: Performance of Templates: time 0.03082/1.739, allocations: 21.66 MB / 0.9418 GB, free: 86.1 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/jenkins1/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