Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 117.1 kB / 16.42 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 189.5 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.392/2.392, allocations: 437 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 67.89 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7443/0.7457, allocations: 151.6 MB / 1.167 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.0272/0.773, allocations: 28.6 MB / 1.195 GB, free: 7.156 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0105/0.7835, allocations: 7.897 MB / 1.203 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.7847, allocations: 39.75 kB / 1.203 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.7858, allocations: 417.2 kB / 1.203 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.7883, allocations: 1.065 MB / 1.204 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002582/0.7909, allocations: 1.085 MB / 1.205 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.004466/0.7954, allocations: 4.926 MB / 1.21 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002404/0.7978, allocations: 2.292 MB / 1.213 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003217/0.801, allocations: 1.813 MB / 1.214 GB, free: 3.566 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001879/0.8029, allocations: 1.459 MB / 1.216 GB, free: 2.102 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.8032, allocations: 228 kB / 1.216 GB, free: 1.879 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.8057, allocations: 1.318 MB / 1.217 GB, free: 0.5586 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0005041/0.8062, allocations: 0.5492 MB / 1.218 GB, free: 8 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.8075, allocations: 1.155 MB / 1.219 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003756/0.8113, allocations: 3.683 MB / 1.222 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.8113, allocations: 4 kB / 1.222 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.146e-06/0.8113, allocations: 3.984 kB / 1.222 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.343e-05/0.8113, allocations: 4 kB / 1.222 GB, free: 11.14 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004417/0.8157, allocations: 2.557 MB / 1.225 GB, free: 8.531 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.8158, allocations: 8.625 kB / 1.225 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007542/0.8166, allocations: 234.5 kB / 1.225 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/0.8196, allocations: 1.795 MB / 1.227 GB, free: 6.445 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.8197, allocations: 118.7 kB / 1.227 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.8199, allocations: 155.9 kB / 1.227 GB, free: 6.176 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002956/0.8229, allocations: 1.997 MB / 1.229 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.8229, allocations: 0 / 1.229 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.8231, allocations: 60 kB / 1.229 GB, free: 4.055 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-05/0.8231, allocations: 40 kB / 1.229 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002598/0.8257, allocations: 1.798 MB / 1.231 GB, free: 2.211 MB / 0.9512 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/0.8365, allocations: 7.602 MB / 1.238 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.8383, allocations: 1.448 MB / 1.24 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008368/0.8391, allocations: 0.6603 MB / 1.241 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006173/0.8453, allocations: 3.85 MB / 1.244 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.8453, allocations: 47.56 kB / 1.244 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=88): time 2.535e-06/0.8454, allocations: 0 / 1.244 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of matching and sorting (n=88): time 0.00234/0.8477, allocations: 1.514 MB / 1.246 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.8477, allocations: 60.41 kB / 1.246 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001964/0.8497, allocations: 1.65 MB / 1.247 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 8.749e-05/0.8498, allocations: 45.7 kB / 1.248 GB, free: 0.6367 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005709/0.8504, allocations: 0.7538 MB / 1.248 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/0.8506, allocations: 319.4 kB / 1.249 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000385/0.851, allocations: 295.4 kB / 1.249 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.8512, allocations: 361.9 kB / 1.249 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009687/0.8522, allocations: 0.6956 MB / 1.25 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.8534, allocations: 1.02 MB / 1.251 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.8553, allocations: 1.624 MB / 1.252 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.8553, allocations: 0 / 1.252 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002944/0.8583, allocations: 1.955 MB / 1.254 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.8583, allocations: 11.94 kB / 1.254 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.8584, allocations: 12 kB / 1.254 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/0.8584, allocations: 19.98 kB / 1.254 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.8596, allocations: 335.4 kB / 1.255 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.972e-05/0.8597, allocations: 23.92 kB / 1.255 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.8608, allocations: 198.5 kB / 1.255 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.861, allocations: 59.98 kB / 1.255 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001741/0.8627, allocations: 1.284 MB / 1.256 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001227/0.864, allocations: 1.02 MB / 1.257 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002027/0.866, allocations: 1.62 MB / 1.259 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.08e-06/0.866, allocations: 0 / 1.259 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.00304/0.8691, allocations: 1.948 MB / 1.261 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.8691, allocations: 12 kB / 1.261 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.8691, allocations: 8 kB / 1.261 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.8691, allocations: 16 kB / 1.261 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.8704, allocations: 339.4 kB / 1.261 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.84e-05/0.8704, allocations: 23.92 kB / 1.261 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.8715, allocations: 150.9 kB / 1.261 GB, free: 2.016 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.8717, allocations: 59.98 kB / 1.261 GB, free: 1.957 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003239/0.872, allocations: 259.8 kB / 1.262 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003882/0.8724, allocations: 154.1 kB / 1.262 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.8746, allocations: 1.28 MB / 1.263 GB, free: 264 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001562/0.8762, allocations: 1.284 MB / 1.264 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.8762, allocations: 0 / 1.264 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008185/0.877, allocations: 390.9 kB / 1.265 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/0.8773, allocations: 20 kB / 1.265 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008245/0.8781, allocations: 55.81 kB / 1.265 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.8783, allocations: 52.88 kB / 1.265 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002078/0.8803, allocations: 1.251 MB / 1.266 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002598/0.883, allocations: 2.025 MB / 1.268 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006386/0.8836, allocations: 0.5231 MB / 1.268 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001672/0.8853, allocations: 1.165 MB / 1.27 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of Backend: time 5.11e-07/0.8853, allocations: 0 / 1.27 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004617/0.8899, allocations: 2.302 MB / 1.272 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of SimCode: time 0.007429/0.8974, allocations: 4.39 MB / 1.276 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of Templates: time 0.06197/0.9593, allocations: 42.44 MB / 1.318 GB, free: 8.547 MB / 1.045 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches