Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009983/0.0009984, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.5 MB / 245.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009299/0.0009301, allocations: 96.09 kB / 297.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002105/0.0002106, allocations: 4 kB / 358.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2197, allocations: 51.29 MB / 409.4 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6754/0.8951, allocations: 328.2 MB / 0.7203 GB, free: 143.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.8954, allocations: 100.4 kB / 0.7204 GB, free: 143.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.067/1.963, allocations: 329.2 MB / 1.042 GB, free: 52.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.393e-06/1.963, allocations: 3.688 kB / 1.042 GB, free: 52.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001416/1.963, allocations: 45.17 kB / 1.042 GB, free: 52.66 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005403/1.968, allocations: 2.241 MB / 1.044 GB, free: 51.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/1.968, allocations: 11.38 kB / 1.044 GB, free: 51.78 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006517/1.969, allocations: 201.1 kB / 1.044 GB, free: 51.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/1.971, allocations: 1.229 MB / 1.046 GB, free: 51.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/1.971, allocations: 100.4 kB / 1.046 GB, free: 51.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/1.971, allocations: 118.4 kB / 1.046 GB, free: 51.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002918/1.974, allocations: 1.959 MB / 1.048 GB, free: 51.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.557e-05/1.974, allocations: 11.81 kB / 1.048 GB, free: 51.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/1.975, allocations: 53.41 kB / 1.048 GB, free: 51.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/1.975, allocations: 110.2 kB / 1.048 GB, free: 51.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/1.977, allocations: 1.967 MB / 1.05 GB, free: 51.03 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/1.988, allocations: 7.631 MB / 1.057 GB, free: 47.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/1.989, allocations: 1.166 MB / 1.058 GB, free: 47.61 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009176/1.99, allocations: 0.7491 MB / 1.059 GB, free: 47.6 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004153/1.994, allocations: 3.393 MB / 1.062 GB, free: 46.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/1.994, allocations: 54.72 kB / 1.062 GB, free: 45.99 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 2.736e-06/1.994, allocations: 0 / 1.062 GB, free: 45.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01088/2.005, allocations: 5.424 MB / 1.068 GB, free: 44.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/2.005, allocations: 178.4 kB / 1.068 GB, free: 44.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/2.007, allocations: 1.416 MB / 1.069 GB, free: 44.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/2.007, allocations: 59.86 kB / 1.069 GB, free: 44.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/2.007, allocations: 0.7005 MB / 1.07 GB, free: 44.28 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/2.008, allocations: 477.1 kB / 1.07 GB, free: 43.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.145e-05/2.008, allocations: 34.81 kB / 1.071 GB, free: 43.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.07e-05/2.008, allocations: 375.5 kB / 1.071 GB, free: 43.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/2.009, allocations: 0.7492 MB / 1.072 GB, free: 43.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/2.01, allocations: 1.165 MB / 1.073 GB, free: 43.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002201/2.013, allocations: 1.822 MB / 1.075 GB, free: 42.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/2.013, allocations: 10.53 kB / 1.075 GB, free: 42.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003938/2.016, allocations: 2.385 MB / 1.077 GB, free: 42.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002013/2.017, allocations: 422 kB / 1.077 GB, free: 42.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/2.017, allocations: 11.06 kB / 1.077 GB, free: 42.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004862/2.022, allocations: 0.9561 MB / 1.078 GB, free: 42.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/2.023, allocations: 342.5 kB / 1.079 GB, free: 42.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/2.025, allocations: 2.902 MB / 1.081 GB, free: 40.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/2.027, allocations: 132 kB / 1.081 GB, free: 40.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/2.028, allocations: 79.95 kB / 1.082 GB, free: 40.02 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/2.028, allocations: 6.812 kB / 1.082 GB, free: 40.02 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003061/2.031, allocations: 2.106 MB / 1.084 GB, free: 39.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/2.031, allocations: 11.31 kB / 1.084 GB, free: 39.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003852/2.034, allocations: 0.6735 MB / 1.084 GB, free: 39.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/2.036, allocations: 364.7 kB / 1.085 GB, free: 39.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/2.038, allocations: 2.64 MB / 1.087 GB, free: 37.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/2.04, allocations: 137.1 kB / 1.087 GB, free: 37.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/2.04, allocations: 74.62 kB / 1.087 GB, free: 37.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00105/2.041, allocations: 0.5193 MB / 1.088 GB, free: 37.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/2.041, allocations: 175.6 kB / 1.088 GB, free: 37.54 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/2.045, allocations: 2.352 MB / 1.09 GB, free: 37.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/2.045, allocations: 18.03 kB / 1.09 GB, free: 37.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/2.045, allocations: 2.906 kB / 1.09 GB, free: 37.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/2.045, allocations: 6.469 kB / 1.09 GB, free: 37.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006471/2.052, allocations: 4.012 MB / 1.094 GB, free: 36.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/2.052, allocations: 0 / 1.094 GB, free: 36.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/2.053, allocations: 238.7 kB / 1.095 GB, free: 36.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003583/2.057, allocations: 0.8863 MB / 1.095 GB, free: 36.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001848/2.057, allocations: 37.8 kB / 1.095 GB, free: 36.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/2.059, allocations: 2.853 MB / 1.098 GB, free: 34.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/2.059, allocations: 7.531 kB / 1.098 GB, free: 34.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004409/2.063, allocations: 3.157 MB / 1.101 GB, free: 34.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006588/2.064, allocations: 275.2 kB / 1.102 GB, free: 34.22 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/2.064, allocations: 37.94 kB / 1.102 GB, free: 34.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/2.065, allocations: 115.2 kB / 1.102 GB, free: 34.21 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/2.066, allocations: 145.6 kB / 1.102 GB, free: 34.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/2.066, allocations: 65.77 kB / 1.102 GB, free: 34.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001201/2.067, allocations: 0.9706 MB / 1.103 GB, free: 34.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/2.067, allocations: 4.125 kB / 1.103 GB, free: 34.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003801/2.071, allocations: 1.396 MB / 1.104 GB, free: 33.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002842/2.074, allocations: 1.237 MB / 1.105 GB, free: 33.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005111/2.079, allocations: 3.018 MB / 1.108 GB, free: 33.51 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/2.079, allocations: 5.562 kB / 1.108 GB, free: 33.51 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/2.08, allocations: 1.075 MB / 1.109 GB, free: 33.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003891/2.084, allocations: 0.7555 MB / 1.11 GB, free: 33.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005982/2.09, allocations: 4.092 MB / 1.114 GB, free: 31.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009146/2.091, allocations: 1.403 MB / 1.116 GB, free: 31.24 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002773/2.094, allocations: 0.7174 MB / 1.116 GB, free: 31.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/2.095, allocations: 147.5 kB / 1.116 GB, free: 31.22 MB / 458.7 MB Notification: Performance of SimCode: time 9.01e-07/2.095, allocations: 0 / 1.116 GB, free: 31.22 MB / 458.7 MB Notification: Performance of Templates: time 0.06378/2.158, allocations: 48.68 MB / 1.164 GB, free: 23.88 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe2/TanksWithEmptyingPipe2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches