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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001856/0.001856, allocations: 107.2 kB / 16.41 MB, free: 6.492 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.002018/0.002018, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 461.9 MB / 0.7354 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 67.91 kB / 1.055 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9305/0.932, allocations: 157.4 MB / 1.208 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03236/0.9644, allocations: 28.58 MB / 1.236 GB, free: 1.027 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01192/0.9764, allocations: 7.914 MB / 1.244 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.9779, allocations: 35.75 kB / 1.244 GB, free: 9.059 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.9794, allocations: 409.2 kB / 1.244 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003238/0.9827, allocations: 1.006 MB / 1.245 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003143/0.9859, allocations: 1.083 MB / 1.247 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.005797/0.9917, allocations: 4.922 MB / 1.251 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00312/0.9948, allocations: 2.289 MB / 1.254 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004132/0.999, allocations: 1.825 MB / 1.255 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002444/1.001, allocations: 1.455 MB / 1.257 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0007035/1.002, allocations: 228 kB / 1.257 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003355/1.006, allocations: 1.318 MB / 1.258 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001042/1.007, allocations: 0.5492 MB / 1.259 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002606/1.009, allocations: 1.163 MB / 1.26 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.005226/1.014, allocations: 3.679 MB / 1.264 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/1.014, allocations: 0 / 1.264 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.032e-06/1.014, allocations: 0 / 1.264 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001213/1.015, allocations: 7.938 kB / 1.264 GB, free: 5.074 MB / 0.9825 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.006111/1.021, allocations: 2.571 MB / 1.266 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/1.021, allocations: 12.03 kB / 1.266 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/1.022, allocations: 234.5 kB / 1.266 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003205/1.025, allocations: 1.789 MB / 1.268 GB, free: 372 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.959e-05/1.025, allocations: 114.7 kB / 1.268 GB, free: 256 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000314/1.025, allocations: 159.9 kB / 1.268 GB, free: 96 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003263/1.029, allocations: 1.994 MB / 1.27 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.223e-05/1.029, allocations: 0 / 1.27 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001643/1.029, allocations: 60 kB / 1.27 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-05/1.029, allocations: 36 kB / 1.27 GB, free: 13.94 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/1.032, allocations: 1.798 MB / 1.272 GB, free: 12.14 MB / 0.9981 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.01084/1.043, allocations: 7.606 MB / 1.28 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/1.044, allocations: 1.444 MB / 1.281 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008434/1.045, allocations: 0.6704 MB / 1.282 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005955/1.051, allocations: 3.842 MB / 1.285 GB, free: 13.92 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/1.051, allocations: 51.55 kB / 1.285 GB, free: 13.86 MB / 1.014 GB Notification: Performance of pre-optimization done (n=88): time 2.325e-06/1.051, allocations: 0 / 1.285 GB, free: 13.86 MB / 1.014 GB Notification: Performance of matching and sorting (n=88): time 0.002408/1.054, allocations: 1.518 MB / 1.287 GB, free: 12.33 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/1.054, allocations: 61.61 kB / 1.287 GB, free: 12.26 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002169/1.056, allocations: 1.645 MB / 1.289 GB, free: 10.61 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.941e-05/1.056, allocations: 45.7 kB / 1.289 GB, free: 10.55 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006172/1.057, allocations: 0.7576 MB / 1.289 GB, free: 9.789 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002833/1.057, allocations: 323.4 kB / 1.29 GB, free: 9.469 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003862/1.057, allocations: 287.4 kB / 1.29 GB, free: 9.184 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001339/1.057, allocations: 357.9 kB / 1.29 GB, free: 8.828 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009456/1.058, allocations: 0.6956 MB / 1.291 GB, free: 8.129 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/1.06, allocations: 1.02 MB / 1.292 GB, free: 6.977 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/1.062, allocations: 1.628 MB / 1.294 GB, free: 5.227 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/1.062, allocations: 7.938 kB / 1.294 GB, free: 5.219 MB / 1.014 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002952/1.065, allocations: 1.951 MB / 1.295 GB, free: 3.258 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/1.065, allocations: 8.938 kB / 1.295 GB, free: 3.25 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/1.065, allocations: 12 kB / 1.295 GB, free: 3.238 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/1.065, allocations: 16 kB / 1.295 GB, free: 3.223 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/1.066, allocations: 339.4 kB / 1.296 GB, free: 2.891 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.383e-05/1.066, allocations: 23.92 kB / 1.296 GB, free: 2.867 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/1.067, allocations: 194.1 kB / 1.296 GB, free: 2.676 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/1.067, allocations: 59.98 kB / 1.296 GB, free: 2.617 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001851/1.069, allocations: 1.284 MB / 1.297 GB, free: 1.328 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001188/1.07, allocations: 1.024 MB / 1.298 GB, free: 184 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001972/1.072, allocations: 1.624 MB / 1.3 GB, free: 14.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.552e-06/1.072, allocations: 0 / 1.3 GB, free: 14.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.002971/1.075, allocations: 1.955 MB / 1.302 GB, free: 12.47 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/1.075, allocations: 8 kB / 1.302 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/1.075, allocations: 8 kB / 1.302 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/1.075, allocations: 19.98 kB / 1.302 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.077, allocations: 331.5 kB / 1.302 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.07e-05/1.077, allocations: 19.94 kB / 1.302 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/1.078, allocations: 151.3 kB / 1.302 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/1.078, allocations: 63.98 kB / 1.302 GB, free: 11.88 MB / 1.029 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.00031/1.078, allocations: 259.8 kB / 1.303 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004227/1.079, allocations: 154.1 kB / 1.303 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/1.081, allocations: 1.282 MB / 1.304 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/1.081, allocations: 19.98 kB / 1.304 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/1.081, allocations: 0 / 1.304 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001412/1.082, allocations: 1.277 MB / 1.305 GB, free: 8.789 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004496/1.087, allocations: 2.959 MB / 1.308 GB, free: 5.754 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/1.087, allocations: 4 kB / 1.308 GB, free: 5.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007737/1.087, allocations: 187.8 kB / 1.308 GB, free: 5.566 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.215e-05/1.087, allocations: 4 kB / 1.308 GB, free: 5.562 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.406e-05/1.087, allocations: 23.98 kB / 1.308 GB, free: 5.539 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-05/1.088, allocations: 4.125 kB / 1.308 GB, free: 5.535 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.088, allocations: 11.94 kB / 1.308 GB, free: 5.523 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/1.09, allocations: 1.917 MB / 1.31 GB, free: 3.574 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007769/1.091, allocations: 398.8 kB / 1.311 GB, free: 3.164 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/1.091, allocations: 23.94 kB / 1.311 GB, free: 3.141 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008231/1.092, allocations: 51.88 kB / 1.311 GB, free: 3.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/1.092, allocations: 52.88 kB / 1.311 GB, free: 3.039 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.828e-05/1.092, allocations: 39.97 kB / 1.311 GB, free: 3 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001696/1.094, allocations: 1.242 MB / 1.312 GB, free: 1.762 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.7e-07/1.094, allocations: 0 / 1.312 GB, free: 1.762 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002372/1.096, allocations: 0.9163 MB / 1.313 GB, free: 0.8438 MB / 1.029 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.0007995/1.097, allocations: 355 kB / 1.313 GB, free: 0.4922 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003462/1.1, allocations: 2.333 MB / 1.316 GB, free: 14.16 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/1.1, allocations: 4.188 kB / 1.316 GB, free: 14.16 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006775/1.101, allocations: 0.5247 MB / 1.316 GB, free: 13.63 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0035/1.105, allocations: 0.9102 MB / 1.317 GB, free: 12.74 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005203/1.11, allocations: 3.637 MB / 1.32 GB, free: 9.059 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/1.111, allocations: 1.63 MB / 1.322 GB, free: 7.398 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004754/1.112, allocations: 147.4 kB / 1.322 GB, free: 7.254 MB / 1.045 GB Notification: Performance of SimCode: time 6.11e-07/1.112, allocations: 0 / 1.322 GB, free: 7.254 MB / 1.045 GB Notification: Performance of Templates: time 0.04477/1.156, allocations: 32.84 MB / 1.354 GB, free: 6.617 MB / 1.076 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