Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001379/0.001379, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 180.3 kB / 16.92 MB, free: 6.652 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.486/1.486, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.29/3.29, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003619, allocations: 13.22 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3143, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03173/0.3461, allocations: 27.75 MB / 1.086 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01198/0.3581, allocations: 7.877 MB / 1.094 GB, free: 1.234 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.3596, allocations: 27.81 kB / 1.094 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.3608, allocations: 330.1 kB / 1.094 GB, free: 0.8828 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0028/0.3637, allocations: 0.937 MB / 1.095 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002647/0.3663, allocations: 0.9373 MB / 1.096 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006292/0.3726, allocations: 6.081 MB / 1.102 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002441/0.3751, allocations: 1.79 MB / 1.104 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.3777, allocations: 1.322 MB / 1.105 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002041/0.3798, allocations: 1.303 MB / 1.107 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002401/0.38, allocations: 76 kB / 1.107 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002436/0.3825, allocations: 1.139 MB / 1.108 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004092/0.3829, allocations: 374.4 kB / 1.108 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.3842, allocations: 0.9733 MB / 1.109 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003029/0.3872, allocations: 2.852 MB / 1.112 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3873, allocations: 4 kB / 1.112 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.254e-06/0.3873, allocations: 0 / 1.112 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.358e-05/0.3873, allocations: 0 / 1.112 GB, free: 15.02 MB / 0.8731 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.004343/0.3917, allocations: 2.141 MB / 1.114 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3917, allocations: 11.97 kB / 1.114 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007248/0.3925, allocations: 238.4 kB / 1.114 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.3952, allocations: 1.765 MB / 1.116 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.859e-05/0.3953, allocations: 114.7 kB / 1.116 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002503/0.3956, allocations: 148 kB / 1.116 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003119/0.3987, allocations: 2.005 MB / 1.118 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/0.3987, allocations: 3.906 kB / 1.118 GB, free: 8.43 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.3989, allocations: 56 kB / 1.118 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-05/0.399, allocations: 44 kB / 1.118 GB, free: 8.332 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00271/0.4017, allocations: 1.802 MB / 1.12 GB, free: 6.523 MB / 0.8731 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.01087/0.4126, allocations: 7.621 MB / 1.127 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/0.4144, allocations: 1.448 MB / 1.129 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008845/0.4153, allocations: 0.6658 MB / 1.129 GB, free: 12.45 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006114/0.4214, allocations: 3.843 MB / 1.133 GB, free: 8.293 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.4215, allocations: 43.56 kB / 1.133 GB, free: 8.242 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=88): time 5.57e-06/0.4215, allocations: 4 kB / 1.133 GB, free: 8.238 MB / 0.8887 GB Notification: Performance of matching and sorting (n=88): time 0.002393/0.4239, allocations: 1.517 MB / 1.135 GB, free: 6.719 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.424, allocations: 64.39 kB / 1.135 GB, free: 6.641 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.4261, allocations: 1.602 MB / 1.136 GB, free: 5.027 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 9.593e-05/0.4262, allocations: 49.7 kB / 1.136 GB, free: 4.973 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006274/0.4268, allocations: 0.7497 MB / 1.137 GB, free: 4.215 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/0.4271, allocations: 319.4 kB / 1.137 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.4273, allocations: 129.6 kB / 1.138 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4275, allocations: 365.9 kB / 1.138 GB, free: 3.402 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.4286, allocations: 0.6909 MB / 1.139 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.4299, allocations: 1.016 MB / 1.14 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.4322, allocations: 1.62 MB / 1.141 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.4322, allocations: 3.938 kB / 1.141 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003238/0.4354, allocations: 1.944 MB / 1.143 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002735/0.4357, allocations: 364.8 kB / 1.143 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.4357, allocations: 8 kB / 1.143 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.4358, allocations: 16 kB / 1.143 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.437, allocations: 331.5 kB / 1.144 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.599e-05/0.437, allocations: 23.92 kB / 1.144 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.4384, allocations: 218.1 kB / 1.144 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.4385, allocations: 63.98 kB / 1.144 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.4385, allocations: 8.875 kB / 1.144 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002641/0.4412, allocations: 1.787 MB / 1.146 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.4412, allocations: 15.92 kB / 1.146 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.4412, allocations: 16.06 kB / 1.146 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.4424, allocations: 335.5 kB / 1.146 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.083e-05/0.4424, allocations: 24.61 kB / 1.146 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.4436, allocations: 190.5 kB / 1.146 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4438, allocations: 55.98 kB / 1.146 GB, free: 10.31 MB / 0.9044 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.001088/0.4449, allocations: 0.7542 MB / 1.147 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.4452, allocations: 154.1 kB / 1.147 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/0.4472, allocations: 1.286 MB / 1.149 GB, free: 8.09 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.4473, allocations: 12 kB / 1.149 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.4473, allocations: 0 / 1.149 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00149/0.4488, allocations: 1.288 MB / 1.15 GB, free: 6.707 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004225/0.453, allocations: 2.935 MB / 1.153 GB, free: 3.695 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.453, allocations: 0 / 1.153 GB, free: 3.695 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007889/0.4538, allocations: 187.9 kB / 1.153 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/0.4538, allocations: 4 kB / 1.153 GB, free: 3.508 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/0.4539, allocations: 23.98 kB / 1.153 GB, free: 3.484 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.549e-05/0.4539, allocations: 11.94 kB / 1.153 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4539, allocations: 0 / 1.153 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/0.4566, allocations: 1.913 MB / 1.155 GB, free: 1.527 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007696/0.4573, allocations: 426.8 kB / 1.155 GB, free: 1.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.4576, allocations: 19.94 kB / 1.155 GB, free: 1.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008795/0.4584, allocations: 84.38 kB / 1.155 GB, free: 0.9922 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4586, allocations: 56.86 kB / 1.155 GB, free: 0.9336 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-05/0.4586, allocations: 35.98 kB / 1.155 GB, free: 0.8984 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001666/0.4603, allocations: 1.207 MB / 1.157 GB, free: 15.7 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4603, allocations: 0 / 1.157 GB, free: 15.7 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002338/0.4627, allocations: 0.9123 MB / 1.157 GB, free: 14.78 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008311/0.4635, allocations: 366.8 kB / 1.158 GB, free: 14.42 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003477/0.467, allocations: 2.317 MB / 1.16 GB, free: 12.11 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.467, allocations: 3.938 kB / 1.16 GB, free: 12.11 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0007152/0.4677, allocations: 0.517 MB / 1.161 GB, free: 11.59 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004203/0.472, allocations: 0.8671 MB / 1.161 GB, free: 10.73 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006127/0.4781, allocations: 4.392 MB / 1.166 GB, free: 6.293 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.4794, allocations: 1.634 MB / 1.167 GB, free: 4.625 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006488/0.48, allocations: 139.4 kB / 1.167 GB, free: 4.488 MB / 0.92 GB Notification: Performance of SimCode: time 1.212e-06/0.4801, allocations: 0 / 1.167 GB, free: 4.488 MB / 0.92 GB Notification: Performance of Templates: time 0.04772/0.5278, allocations: 32.07 MB / 1.199 GB, free: 4.621 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches