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.001364/0.001364, allocations: 104 kB / 16.41 MB, free: 6.016 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.001494/0.001494, allocations: 192.3 kB / 17.34 MB, free: 5.609 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.65/2.65, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 59.91 kB / 1.055 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8949/0.8963, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02695/0.9233, allocations: 28.58 MB / 1.236 GB, free: 0.9375 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01093/0.9343, allocations: 7.92 MB / 1.244 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.9356, allocations: 35.81 kB / 1.244 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.9369, allocations: 409.2 kB / 1.244 GB, free: 8.559 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002774/0.9396, allocations: 1.01 MB / 1.245 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002685/0.9423, allocations: 1.085 MB / 1.247 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.004705/0.9471, allocations: 4.905 MB / 1.251 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002649/0.9497, allocations: 2.296 MB / 1.254 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003639/0.9534, allocations: 1.819 MB / 1.255 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.9554, allocations: 1.455 MB / 1.257 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004083/0.9558, allocations: 232 kB / 1.257 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.9584, allocations: 1.307 MB / 1.258 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005178/0.9589, allocations: 0.5608 MB / 1.259 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.9603, allocations: 1.155 MB / 1.26 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004129/0.9644, allocations: 3.683 MB / 1.264 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.9644, allocations: 0 / 1.264 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.565e-06/0.9644, allocations: 0 / 1.264 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.463e-05/0.9645, allocations: 0 / 1.264 GB, free: 4.992 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.004673/0.9692, allocations: 2.569 MB / 1.266 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.9692, allocations: 16.03 kB / 1.266 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007757/0.97, allocations: 226.5 kB / 1.266 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/0.9727, allocations: 1.798 MB / 1.268 GB, free: 284 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.237e-05/0.9728, allocations: 118.7 kB / 1.268 GB, free: 164 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.973, allocations: 148 kB / 1.268 GB, free: 16 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002953/0.976, allocations: 1.997 MB / 1.27 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.976, allocations: 0 / 1.27 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.9762, allocations: 56 kB / 1.27 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.545e-05/0.9762, allocations: 47.97 kB / 1.27 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/0.9788, allocations: 1.794 MB / 1.272 GB, free: 12.05 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.01079/0.9896, allocations: 7.606 MB / 1.28 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.9914, allocations: 1.448 MB / 1.281 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008703/0.9922, allocations: 0.668 MB / 1.282 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006079/0.9983, allocations: 3.85 MB / 1.285 GB, free: 13.82 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.9984, allocations: 43.56 kB / 1.285 GB, free: 13.77 MB / 1.014 GB Notification: Performance of pre-optimization done (n=88): time 2.865e-06/0.9984, allocations: 0 / 1.285 GB, free: 13.77 MB / 1.014 GB Notification: Performance of matching and sorting (n=88): time 0.00231/1.001, allocations: 1.511 MB / 1.287 GB, free: 12.25 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/1.001, allocations: 64.34 kB / 1.287 GB, free: 12.18 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002116/1.003, allocations: 1.649 MB / 1.289 GB, free: 10.52 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.003, allocations: 49.7 kB / 1.289 GB, free: 10.46 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006138/1.004, allocations: 0.7576 MB / 1.289 GB, free: 9.695 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002676/1.004, allocations: 319.4 kB / 1.29 GB, free: 9.379 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003838/1.004, allocations: 291.4 kB / 1.29 GB, free: 9.09 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001345/1.004, allocations: 361.9 kB / 1.29 GB, free: 8.73 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009387/1.005, allocations: 0.6878 MB / 1.291 GB, free: 8.039 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/1.007, allocations: 1.028 MB / 1.292 GB, free: 6.879 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00191/1.008, allocations: 1.62 MB / 1.293 GB, free: 5.137 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/1.008, allocations: 11.88 kB / 1.294 GB, free: 5.125 MB / 1.014 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002977/1.011, allocations: 1.952 MB / 1.295 GB, free: 3.164 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/1.011, allocations: 8 kB / 1.295 GB, free: 3.156 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/1.012, allocations: 8 kB / 1.295 GB, free: 3.148 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.707e-05/1.012, allocations: 20.03 kB / 1.295 GB, free: 3.129 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/1.013, allocations: 331.5 kB / 1.296 GB, free: 2.805 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.462e-05/1.013, allocations: 19.94 kB / 1.296 GB, free: 2.785 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/1.014, allocations: 202.1 kB / 1.296 GB, free: 2.586 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.014, allocations: 59.98 kB / 1.296 GB, free: 2.527 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001764/1.016, allocations: 1.28 MB / 1.297 GB, free: 1.242 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001139/1.017, allocations: 1.032 MB / 1.298 GB, free: 88 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001898/1.019, allocations: 1.616 MB / 1.3 GB, free: 14.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.134e-06/1.019, allocations: 4 kB / 1.3 GB, free: 14.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003007/1.022, allocations: 1.955 MB / 1.302 GB, free: 12.38 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/1.022, allocations: 8 kB / 1.302 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/1.022, allocations: 8 kB / 1.302 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/1.022, allocations: 16 kB / 1.302 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/1.023, allocations: 331.5 kB / 1.302 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/1.023, allocations: 24.48 kB / 1.302 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/1.024, allocations: 151 kB / 1.302 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/1.025, allocations: 67.92 kB / 1.302 GB, free: 11.79 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.0003327/1.025, allocations: 255.8 kB / 1.303 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/1.025, allocations: 150.1 kB / 1.303 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/1.027, allocations: 1.282 MB / 1.304 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/1.027, allocations: 8 kB / 1.304 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/1.027, allocations: 0 / 1.304 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001386/1.029, allocations: 1.292 MB / 1.305 GB, free: 8.699 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004283/1.033, allocations: 2.951 MB / 1.308 GB, free: 5.672 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/1.033, allocations: 0 / 1.308 GB, free: 5.672 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007838/1.034, allocations: 183.9 kB / 1.308 GB, free: 5.492 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.415e-05/1.034, allocations: 11.98 kB / 1.308 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.925e-05/1.034, allocations: 24 kB / 1.308 GB, free: 5.457 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/1.034, allocations: 4 kB / 1.308 GB, free: 5.453 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.289e-06/1.034, allocations: 3.938 kB / 1.308 GB, free: 5.449 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002894/1.037, allocations: 1.913 MB / 1.31 GB, free: 3.504 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008134/1.038, allocations: 406.8 kB / 1.311 GB, free: 3.086 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/1.038, allocations: 35.8 kB / 1.311 GB, free: 3.051 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007869/1.039, allocations: 43.95 kB / 1.311 GB, free: 3.008 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/1.039, allocations: 60.8 kB / 1.311 GB, free: 2.949 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.516e-05/1.039, allocations: 35.98 kB / 1.311 GB, free: 2.914 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001846/1.041, allocations: 1.242 MB / 1.312 GB, free: 1.676 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.91e-07/1.041, allocations: 0 / 1.312 GB, free: 1.676 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002602/1.043, allocations: 0.9124 MB / 1.313 GB, free: 0.7617 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.0009232/1.044, allocations: 372.3 kB / 1.313 GB, free: 404 kB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003872/1.048, allocations: 2.325 MB / 1.316 GB, free: 14.07 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.048, allocations: 4.125 kB / 1.316 GB, free: 14.07 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0007991/1.049, allocations: 0.5209 MB / 1.316 GB, free: 13.55 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004263/1.053, allocations: 0.9204 MB / 1.317 GB, free: 12.65 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005792/1.059, allocations: 3.633 MB / 1.32 GB, free: 8.969 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/1.061, allocations: 1.634 MB / 1.322 GB, free: 7.305 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006717/1.061, allocations: 147.4 kB / 1.322 GB, free: 7.16 MB / 1.045 GB Notification: Performance of SimCode: time 8.21e-07/1.061, allocations: 0 / 1.322 GB, free: 7.16 MB / 1.045 GB Notification: Performance of Templates: time 0.05048/1.112, allocations: 32.83 MB / 1.354 GB, free: 6.531 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