Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00247/0.00247, allocations: 178.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.139/2.139, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 83.11 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.198e-05/2.19e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3406, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.97/1.311, allocations: 321 MB / 0.6673 GB, free: 118.3 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/1.311, allocations: 91.19 kB / 0.6674 GB, free: 118.3 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4612/1.772, allocations: 136.5 MB / 0.8007 GB, free: 27.59 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.303e-06/1.772, allocations: 0 / 0.8007 GB, free: 27.59 MB / 427.1 MB Notification: Performance of Transformations before backend: time 6.807e-05/1.772, allocations: 16 kB / 0.8008 GB, free: 27.57 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002641/1.775, allocations: 1.033 MB / 0.8018 GB, free: 26.49 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/1.775, allocations: 8.031 kB / 0.8018 GB, free: 26.48 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003799/1.775, allocations: 91 kB / 0.8019 GB, free: 26.39 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/1.777, allocations: 0.5817 MB / 0.8024 GB, free: 25.77 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/1.777, allocations: 20 kB / 0.8025 GB, free: 25.75 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/1.777, allocations: 35.91 kB / 0.8025 GB, free: 25.71 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001367/1.778, allocations: 0.6078 MB / 0.8031 GB, free: 25.1 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/1.78, allocations: 0.6582 MB / 0.8037 GB, free: 24.41 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/1.78, allocations: 0 / 0.8037 GB, free: 24.41 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.462e-05/1.78, allocations: 0 / 0.8037 GB, free: 24.41 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.41e-05/1.78, allocations: 45.28 kB / 0.8038 GB, free: 24.37 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005376/1.785, allocations: 2.743 MB / 0.8064 GB, free: 21.45 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000849/1.786, allocations: 435.8 kB / 0.8069 GB, free: 21.02 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004593/1.787, allocations: 238.1 kB / 0.8071 GB, free: 20.78 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002839/1.787, allocations: 353.2 kB / 0.8074 GB, free: 20.36 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/1.787, allocations: 43 kB / 0.8075 GB, free: 20.31 MB / 427.1 MB Notification: Performance of pre-optimization done (n=48): time 2.945e-06/1.787, allocations: 0 / 0.8075 GB, free: 20.31 MB / 427.1 MB Notification: Performance of matching and sorting (n=58): time 0.007344/1.795, allocations: 1.807 MB / 0.8092 GB, free: 18.45 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/1.795, allocations: 85.62 kB / 0.8093 GB, free: 18.35 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007014/1.795, allocations: 450.1 kB / 0.8097 GB, free: 17.9 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 6.843e-05/1.795, allocations: 29.7 kB / 0.8098 GB, free: 17.87 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/1.796, allocations: 358.6 kB / 0.8101 GB, free: 17.52 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/1.796, allocations: 197.1 kB / 0.8103 GB, free: 17.32 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/1.796, allocations: 3.938 kB / 0.8103 GB, free: 17.32 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 8.024e-05/1.796, allocations: 346.8 kB / 0.8106 GB, free: 16.97 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/1.797, allocations: 269.5 kB / 0.8109 GB, free: 16.7 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006579/1.797, allocations: 425.5 kB / 0.8113 GB, free: 16.23 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006124/1.803, allocations: 0.8356 MB / 0.8121 GB, free: 15.39 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/1.803, allocations: 4 kB / 0.8121 GB, free: 15.39 MB / 427.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.007237/1.811, allocations: 1.344 MB / 0.8134 GB, free: 14.03 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003503/1.811, allocations: 1.75 MB / 0.8151 GB, free: 12.15 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.811, allocations: 7.938 kB / 0.8151 GB, free: 12.14 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007713/1.812, allocations: 160.7 kB / 0.8153 GB, free: 11.98 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/1.813, allocations: 151.7 kB / 0.8154 GB, free: 11.83 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/1.815, allocations: 0.9387 MB / 0.8164 GB, free: 10.87 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009323/1.816, allocations: 39.94 kB / 0.8164 GB, free: 10.83 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.712e-05/1.816, allocations: 31.98 kB / 0.8164 GB, free: 10.8 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/1.816, allocations: 4 kB / 0.8164 GB, free: 10.79 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007001/1.823, allocations: 1.217 MB / 0.8176 GB, free: 9.57 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/1.823, allocations: 4 kB / 0.8176 GB, free: 9.566 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005281/1.824, allocations: 101.4 kB / 0.8177 GB, free: 9.465 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/1.825, allocations: 159.7 kB / 0.8179 GB, free: 9.309 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/1.826, allocations: 0.7788 MB / 0.8186 GB, free: 8.504 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006807/1.827, allocations: 43.81 kB / 0.8187 GB, free: 8.461 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/1.827, allocations: 35.98 kB / 0.8187 GB, free: 8.426 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002501/1.828, allocations: 120.8 kB / 0.8188 GB, free: 8.301 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/1.828, allocations: 67.25 kB / 0.8189 GB, free: 8.234 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/1.83, allocations: 0.8188 MB / 0.8197 GB, free: 7.402 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/1.83, allocations: 8 kB / 0.8197 GB, free: 7.395 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/1.83, allocations: 0 / 0.8197 GB, free: 7.395 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/1.83, allocations: 3.984 kB / 0.8197 GB, free: 7.391 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/1.835, allocations: 1.564 MB / 0.8212 GB, free: 5.77 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/1.835, allocations: 3.938 kB / 0.8212 GB, free: 5.766 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009557/1.836, allocations: 111.9 kB / 0.8213 GB, free: 5.656 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000778/1.837, allocations: 164.8 kB / 0.8215 GB, free: 5.492 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.148e-05/1.837, allocations: 11.98 kB / 0.8215 GB, free: 5.48 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/1.838, allocations: 0.8645 MB / 0.8224 GB, free: 4.59 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.838, allocations: 7.969 kB / 0.8224 GB, free: 4.582 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003278/1.842, allocations: 1.236 MB / 0.8236 GB, free: 3.309 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/1.842, allocations: 148.3 kB / 0.8237 GB, free: 3.145 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/1.842, allocations: 8.031 kB / 0.8237 GB, free: 3.137 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007871/1.843, allocations: 27.91 kB / 0.8237 GB, free: 3.109 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/1.843, allocations: 56.42 kB / 0.8238 GB, free: 3.055 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.947e-05/1.843, allocations: 31.98 kB / 0.8238 GB, free: 3.023 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.000543/1.844, allocations: 342.9 kB / 0.8242 GB, free: 2.691 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.844, allocations: 0 / 0.8242 GB, free: 2.691 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.00211/1.846, allocations: 0.5502 MB / 0.8247 GB, free: 2.141 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001483/1.847, allocations: 0.5771 MB / 0.8253 GB, free: 1.551 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.002652/1.85, allocations: 1.041 MB / 0.8263 GB, free: 0.5156 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/1.85, allocations: 0.8125 kB / 0.8263 GB, free: 0.5156 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008215/1.851, allocations: 358 kB / 0.8266 GB, free: 168 kB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2705/2.121, allocations: 303.4 kB / 0.8269 GB, free: 92.88 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/2.124, allocations: 1.18 MB / 0.8281 GB, free: 92.57 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/2.125, allocations: 0.9756 MB / 0.829 GB, free: 91.88 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004411/2.125, allocations: 71.75 kB / 0.8291 GB, free: 91.87 MB / 427.1 MB Notification: Performance of SimCode: time 1.433e-06/2.125, allocations: 0 / 0.8291 GB, free: 91.87 MB / 427.1 MB Notification: Performance of Templates: time 0.03559/2.161, allocations: 17.44 MB / 0.8461 GB, free: 91.35 MB / 427.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches