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.00837/0.00837, allocations: 101 kB / 15.73 MB, free: 5.586 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.001818/0.001818, allocations: 189.1 kB / 16.67 MB, free: 5.523 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.702/2.702, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 63.91 kB / 1.054 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.041/1.043, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02912/1.072, allocations: 28.59 MB / 1.236 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01446/1.086, allocations: 7.909 MB / 1.243 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002833/1.089, allocations: 39.75 kB / 1.243 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002583/1.092, allocations: 421.2 kB / 1.244 GB, free: 8.57 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005493/1.097, allocations: 1.057 MB / 1.245 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00487/1.102, allocations: 1.075 MB / 1.246 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0075/1.11, allocations: 4.929 MB / 1.251 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003927/1.114, allocations: 2.292 MB / 1.253 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005178/1.119, allocations: 1.829 MB / 1.255 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003135/1.122, allocations: 1.463 MB / 1.256 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001005/1.123, allocations: 232 kB / 1.256 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003935/1.127, allocations: 1.311 MB / 1.258 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001189/1.128, allocations: 0.5492 MB / 1.258 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003163/1.132, allocations: 1.159 MB / 1.259 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.007065/1.139, allocations: 3.679 MB / 1.263 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/1.139, allocations: 0 / 1.263 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.853e-06/1.139, allocations: 4 kB / 1.263 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001433/1.139, allocations: 0 / 1.263 GB, free: 4.934 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.007862/1.147, allocations: 2.569 MB / 1.265 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/1.147, allocations: 12.03 kB / 1.265 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/1.148, allocations: 230.5 kB / 1.266 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00425/1.153, allocations: 1.797 MB / 1.267 GB, free: 224 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/1.153, allocations: 114.7 kB / 1.268 GB, free: 108 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005659/1.153, allocations: 148 kB / 1.268 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004135/1.157, allocations: 2.001 MB / 1.27 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.247e-05/1.157, allocations: 0 / 1.27 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/1.158, allocations: 56 kB / 1.27 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.281e-05/1.158, allocations: 44 kB / 1.27 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/1.16, allocations: 1.798 MB / 1.271 GB, free: 11.99 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.01201/1.172, allocations: 7.609 MB / 1.279 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/1.174, allocations: 1.436 MB / 1.28 GB, free: 2.609 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008282/1.175, allocations: 0.668 MB / 1.281 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00668/1.182, allocations: 3.851 MB / 1.285 GB, free: 13.77 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/1.182, allocations: 47.56 kB / 1.285 GB, free: 13.71 MB / 1.014 GB Notification: Performance of pre-optimization done (n=88): time 3.978e-06/1.182, allocations: 0 / 1.285 GB, free: 13.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=88): time 0.002617/1.185, allocations: 1.517 MB / 1.286 GB, free: 12.19 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/1.185, allocations: 60.41 kB / 1.286 GB, free: 12.12 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002301/1.187, allocations: 1.645 MB / 1.288 GB, free: 10.46 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001106/1.187, allocations: 49.7 kB / 1.288 GB, free: 10.41 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006585/1.188, allocations: 0.7537 MB / 1.289 GB, free: 9.645 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003782/1.188, allocations: 323.4 kB / 1.289 GB, free: 9.324 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004978/1.189, allocations: 295.4 kB / 1.289 GB, free: 9.031 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001623/1.189, allocations: 365.9 kB / 1.29 GB, free: 8.668 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/1.19, allocations: 0.6917 MB / 1.29 GB, free: 7.973 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/1.192, allocations: 1.024 MB / 1.291 GB, free: 6.816 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/1.194, allocations: 1.62 MB / 1.293 GB, free: 5.074 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.995e-05/1.194, allocations: 7.938 kB / 1.293 GB, free: 5.066 MB / 1.014 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003575/1.197, allocations: 1.951 MB / 1.295 GB, free: 3.105 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/1.198, allocations: 9.875 kB / 1.295 GB, free: 3.098 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/1.198, allocations: 8 kB / 1.295 GB, free: 3.09 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.159e-05/1.198, allocations: 16 kB / 1.295 GB, free: 3.074 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/1.199, allocations: 335.4 kB / 1.295 GB, free: 2.746 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.243e-05/1.199, allocations: 19.98 kB / 1.295 GB, free: 2.727 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/1.201, allocations: 210.5 kB / 1.295 GB, free: 2.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/1.201, allocations: 59.98 kB / 1.295 GB, free: 2.461 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002053/1.203, allocations: 1.28 MB / 1.297 GB, free: 1.176 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001333/1.204, allocations: 1.028 MB / 1.298 GB, free: 24 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002221/1.206, allocations: 1.612 MB / 1.299 GB, free: 14.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.144e-05/1.206, allocations: 4 kB / 1.299 GB, free: 14.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003406/1.21, allocations: 1.956 MB / 1.301 GB, free: 12.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/1.21, allocations: 8 kB / 1.301 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/1.21, allocations: 8 kB / 1.301 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/1.21, allocations: 16.12 kB / 1.301 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/1.211, allocations: 339.5 kB / 1.302 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.387e-05/1.211, allocations: 23.92 kB / 1.302 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/1.213, allocations: 142.9 kB / 1.302 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/1.213, allocations: 63.98 kB / 1.302 GB, free: 11.73 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.0004002/1.213, allocations: 259.9 kB / 1.302 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006373/1.214, allocations: 150.1 kB / 1.302 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002304/1.216, allocations: 1.286 MB / 1.303 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/1.216, allocations: 8 kB / 1.303 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.216, allocations: 0 / 1.303 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001523/1.218, allocations: 1.284 MB / 1.305 GB, free: 8.645 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005191/1.223, allocations: 2.959 MB / 1.308 GB, free: 5.609 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/1.223, allocations: 0 / 1.308 GB, free: 5.609 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008199/1.224, allocations: 187.7 kB / 1.308 GB, free: 5.426 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.628e-05/1.224, allocations: 4 kB / 1.308 GB, free: 5.422 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.791e-05/1.224, allocations: 27.98 kB / 1.308 GB, free: 5.395 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.144e-05/1.224, allocations: 4.125 kB / 1.308 GB, free: 5.391 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/1.224, allocations: 11.88 kB / 1.308 GB, free: 5.379 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/1.227, allocations: 1.909 MB / 1.31 GB, free: 3.438 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.228, allocations: 402.8 kB / 1.31 GB, free: 3.023 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004706/1.228, allocations: 27.94 kB / 1.31 GB, free: 2.996 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.229, allocations: 47.94 kB / 1.31 GB, free: 2.949 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/1.23, allocations: 56.86 kB / 1.31 GB, free: 2.895 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/1.23, allocations: 35.98 kB / 1.31 GB, free: 2.859 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.00236/1.232, allocations: 1.234 MB / 1.311 GB, free: 1.629 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.5e-07/1.232, allocations: 0 / 1.311 GB, free: 1.629 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003577/1.236, allocations: 0.9163 MB / 1.312 GB, free: 0.7109 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.001079/1.237, allocations: 371.6 kB / 1.313 GB, free: 356 kB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.004264/1.241, allocations: 2.333 MB / 1.315 GB, free: 14.02 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.241, allocations: 3.938 kB / 1.315 GB, free: 14.02 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0008386/1.242, allocations: 0.5214 MB / 1.315 GB, free: 13.49 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00495/1.247, allocations: 0.9179 MB / 1.316 GB, free: 12.6 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007057/1.254, allocations: 3.651 MB / 1.32 GB, free: 8.902 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/1.256, allocations: 1.69 MB / 1.322 GB, free: 7.18 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.003157/1.259, allocations: 0.9271 MB / 1.322 GB, free: 6.27 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006475/1.26, allocations: 127.4 kB / 1.323 GB, free: 6.145 MB / 1.045 GB Notification: Performance of SimCode: time 8.91e-07/1.26, allocations: 0 / 1.323 GB, free: 6.145 MB / 1.045 GB Notification: Performance of Templates: time 0.06369/1.323, allocations: 36.12 MB / 1.358 GB, free: 2.398 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/jenkins/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