Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009035/0.0009036, allocations: 175.5 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.3 MB / 241.4 MB, free: 9.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006713/0.0006714, allocations: 97.19 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003069/0.000307, allocations: 11.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.213, allocations: 50.4 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6677/0.8808, allocations: 327.5 MB / 0.7132 GB, free: 156.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.8811, allocations: 95.36 kB / 0.7133 GB, free: 156.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8647/1.746, allocations: 330.1 MB / 1.036 GB, free: 8.105 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.746, allocations: 0 / 1.036 GB, free: 8.105 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002078/1.746, allocations: 43.94 kB / 1.036 GB, free: 8.062 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.006746/1.753, allocations: 2.23 MB / 1.038 GB, free: 5.777 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/1.753, allocations: 8.031 kB / 1.038 GB, free: 5.77 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/1.754, allocations: 202.8 kB / 1.038 GB, free: 5.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003096/1.757, allocations: 1.228 MB / 1.039 GB, free: 4.285 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/1.757, allocations: 106.2 kB / 1.039 GB, free: 4.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000527/1.758, allocations: 119.9 kB / 1.039 GB, free: 4.062 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003721/1.762, allocations: 1.963 MB / 1.041 GB, free: 1.992 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/1.762, allocations: 0 / 1.041 GB, free: 1.992 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002459/1.762, allocations: 51.98 kB / 1.041 GB, free: 1.941 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/1.762, allocations: 114.3 kB / 1.042 GB, free: 1.828 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2545/2.017, allocations: 1.956 MB / 1.043 GB, free: 54.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/2.028, allocations: 7.641 MB / 1.051 GB, free: 51.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/2.03, allocations: 1.169 MB / 1.052 GB, free: 51.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009396/2.031, allocations: 0.7486 MB / 1.053 GB, free: 51.42 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004103/2.035, allocations: 3.398 MB / 1.056 GB, free: 49.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/2.035, allocations: 50.19 kB / 1.056 GB, free: 49.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.226e-06/2.035, allocations: 0 / 1.056 GB, free: 49.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01124/2.046, allocations: 5.429 MB / 1.061 GB, free: 48.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/2.046, allocations: 168.9 kB / 1.062 GB, free: 48.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/2.048, allocations: 1.413 MB / 1.063 GB, free: 48.49 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002056/2.048, allocations: 65.34 kB / 1.063 GB, free: 48.46 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004962/2.049, allocations: 0.6985 MB / 1.064 GB, free: 48.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004147/2.049, allocations: 477.9 kB / 1.064 GB, free: 48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.723e-05/2.049, allocations: 36.66 kB / 1.064 GB, free: 48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.939e-05/2.049, allocations: 373.5 kB / 1.065 GB, free: 47.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/2.051, allocations: 0.7575 MB / 1.065 GB, free: 47.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/2.052, allocations: 1.161 MB / 1.066 GB, free: 47.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002278/2.054, allocations: 1.82 MB / 1.068 GB, free: 46.85 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/2.054, allocations: 1.781 kB / 1.068 GB, free: 46.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003614/2.058, allocations: 2.394 MB / 1.071 GB, free: 46.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000195/2.058, allocations: 418.4 kB / 1.071 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/2.058, allocations: 9.188 kB / 1.071 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005132/2.063, allocations: 0.956 MB / 1.072 GB, free: 46.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/2.065, allocations: 348.1 kB / 1.072 GB, free: 46.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/2.067, allocations: 2.91 MB / 1.075 GB, free: 44.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/2.07, allocations: 131.3 kB / 1.075 GB, free: 44.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/2.07, allocations: 80.73 kB / 1.075 GB, free: 44.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/2.07, allocations: 3.594 kB / 1.075 GB, free: 44.05 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003166/2.073, allocations: 2.107 MB / 1.077 GB, free: 43.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/2.073, allocations: 12.62 kB / 1.077 GB, free: 43.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003811/2.077, allocations: 0.6854 MB / 1.078 GB, free: 43.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/2.078, allocations: 360.9 kB / 1.078 GB, free: 43.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001571/2.08, allocations: 2.647 MB / 1.081 GB, free: 41.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/2.081, allocations: 129.2 kB / 1.081 GB, free: 41.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/2.081, allocations: 76.89 kB / 1.081 GB, free: 41.86 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.0009713/2.082, allocations: 0.5221 MB / 1.082 GB, free: 41.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/2.083, allocations: 173.2 kB / 1.082 GB, free: 41.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/2.087, allocations: 2.342 MB / 1.084 GB, free: 41.42 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/2.087, allocations: 15.56 kB / 1.084 GB, free: 41.42 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/2.087, allocations: 8.859 kB / 1.084 GB, free: 41.42 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/2.087, allocations: 6.188 kB / 1.084 GB, free: 41.42 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005656/2.092, allocations: 4.008 MB / 1.088 GB, free: 40.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/2.092, allocations: 0 / 1.088 GB, free: 40.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009204/2.093, allocations: 237.3 kB / 1.088 GB, free: 40.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00348/2.097, allocations: 0.883 MB / 1.089 GB, free: 40.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/2.097, allocations: 43.69 kB / 1.089 GB, free: 40.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001782/2.099, allocations: 2.851 MB / 1.092 GB, free: 38.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/2.099, allocations: 3.75 kB / 1.092 GB, free: 38.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004346/2.103, allocations: 3.164 MB / 1.095 GB, free: 38.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000615/2.104, allocations: 282.4 kB / 1.095 GB, free: 38.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002359/2.104, allocations: 39.06 kB / 1.095 GB, free: 38.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/2.105, allocations: 110.4 kB / 1.095 GB, free: 38.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/2.105, allocations: 149.8 kB / 1.096 GB, free: 38.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/2.105, allocations: 61.16 kB / 1.096 GB, free: 38.28 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00124/2.107, allocations: 0.9728 MB / 1.097 GB, free: 38.17 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.61e-07/2.107, allocations: 0 / 1.097 GB, free: 38.17 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004035/2.111, allocations: 1.385 MB / 1.098 GB, free: 38.17 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.002724/2.113, allocations: 1.215 MB / 1.099 GB, free: 38.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004991/2.118, allocations: 3.02 MB / 1.102 GB, free: 38.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/2.118, allocations: 9.25 kB / 1.102 GB, free: 38.01 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00169/2.12, allocations: 1.068 MB / 1.103 GB, free: 37.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004087/2.124, allocations: 0.7626 MB / 1.104 GB, free: 37.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005273/2.13, allocations: 4.086 MB / 1.108 GB, free: 36.47 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000745/2.13, allocations: 1.404 MB / 1.109 GB, free: 35.75 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002346/2.133, allocations: 0.7171 MB / 1.11 GB, free: 35.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004053/2.133, allocations: 148.3 kB / 1.11 GB, free: 35.72 MB / 458.7 MB Notification: Performance of SimCode: time 1.001e-06/2.133, allocations: 0 / 1.11 GB, free: 35.72 MB / 458.7 MB Notification: Performance of Templates: time 0.06523/2.198, allocations: 48.73 MB / 1.158 GB, free: 33.21 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches