Energy Monitoring in a Heating and Cooling System in a Building Based on the Example of the Tur ó wka Hotel

: The energy consumption of buildings is very important for both economic and environmental reasons. Newly built buildings are characterized by higher insulation and airtightness of the building envelope, and are additionally equipped with technologies that minimize energy consumption in order to meet legal requirements. In existing buildings, the modernization process should be properly planned, taking into account available technologies and implementation possibilities. Hotel buildings are characterized by a large variability of energy demand, both on a daily and a yearly basis. Monitoring systems, therefore, provide the necessary information needed for proper energy management in the building. This article presents an energy analysis of the Tur ó wka hotel located in Wieliczka (southern Poland). The historical hotel facility is being modernized as part of the project to adapt the building to the requirements of a sustainable building. The modernization proposal includes a trigeneration system with a multifunctional reverse regenerator and control module using neural algorithms. The main purpose is to improve the energy e ﬃ ciency of the building and adapt it to the requirements of low-energy buildings. The implementation of a monitoring system enables energy consumption to be reduced and improves the energy performance of the building, especially through using energy management systems and control modules. The proposed retroﬁt solution considers the high energy consumption, structure of the energy demand, and limits of retroﬁt intervention on façades.


Introduction
Ever-tightening energy efficiency regulations and the development of environmental awareness within society contribute to technological progress in energy and sanitary installations. Over the last few decades, energy consumption has clearly increased, which is associated with the requirements currently met by rooms and the increase in the amount of time people spend inside them. The Commission Recommendation (EU) of 7 June 2019 on building modernization [1] points out that buildings account for nearly 40% of the final energy consumption; therefore, the reduction in energy intensity in this regard is one of the most important measures to combat environmental change and global warming [2,3]. The continuous development of the building sector results in an increasing energy demand and, as a result, an increase in carbon dioxide emissions. Today, 50% of final energy consumption is used for heating and cooling purposes, 80% of which is related to ensuring comfortable thermal conditions in Furthermore, the position of Poland in comparison with other European Union countries in terms of energy consumption in the building sector is of interest ( Figure 2). Interestingly, unlike most of the countries mentioned below, Poland is characterized by lower demand for non-residential buildings than for residential ones. This may be due to subsidies, improving energy performance for buildings occupied and owned by public authorities, schools, and offices, but also due to high costs of improving energy performance for single-family buildings. The average energy consumption slightly exceeds the average demand set for EU countries. However, many EU countries, such as Belgium, Estonia, Finland, Lithuania, or Slovakia, are characterized by higher consumption. For comparison purposes, it is also important to mention the climate in a given region, which directly translates into energy consumption, in particular heat energy required to heat rooms.

Methods to Improve Energy Efficiency and Reduce Demand in Buildings
There are many methods to increase savings and energy efficiency. In general, the methods for improving energy efficiency may be divided into two groups: active and passive energy-saving measures. Passive solutions are understood as actions minimizing demand by reducing heat losses in a building. They include thermal insulation of the building envelope and replacement or use of window and door frames with a lower heat transfer coefficient as well as elimination of cold bridges.

Methods to Improve Energy Efficiency and Reduce Demand in Buildings
There are many methods to increase savings and energy efficiency. In general, the methods for improving energy efficiency may be divided into two groups: active and passive energy-saving measures. Passive solutions are understood as actions minimizing demand by reducing heat losses in a building. They include thermal insulation of the building envelope and replacement or use of window and door frames with a lower heat transfer coefficient as well as elimination of cold bridges. Active solutions, on the other hand, include the use of higher-efficiency heat generation and distribution systems in a building. They include heat recovery systems or the use of more efficient energy generation sources [10][11][12].
Energy consumption in buildings is largely due to the losses caused by heat exchange between the building and its surroundings. The highest heat energy loss in a building is related to the ventilation system and heat exchange through dividing structures and windows and door frames. In a paper by Charles et al. [13], the authors analyzed the improvement in energy performance of an existing two-story office building built in the late 1960s located in Vancouver, which involved replacing window frames, insulating external dividing structures (walls and roof), and installing renewable energy on an office building. The results showed that the improvement made on the building envelope allowed the reduction of 45% of the annual energy consumption. Furthermore, 83% of this saving was due to the improved insulation of the wall and to the increased airtightness of the building. The glazing replacement also has a significant impact on reducing energy demand. The research of Somasundaram et al. [14] showed that the use of solar film with retrofit double glazing can reduce the annual heating, ventilation, and air conditioning (HVAC) energy consumption by up to 20%. Additionally, using such solutions as solar film installation, retrofit double glazing, air-conditioning, and lighting controls together, the reduction of electricity demand can increase up to 30-40% per annum. Unfortunately, it is not possible to make changes to or replace frames or dividing structures in some cases. Historical buildings under preservation maintenance due to their aesthetic values cannot be modernized in terms of their form and condition. Preserving traditional techniques is crucial. This does not entirely exclude modern technologies, but limits their use considerably. Parts of systems cannot stand out in respect of historical forms of architecture [15,16]. Passive solutions also include architectural and structural solutions, such as the construction of vestibules or porches, shading devices, or natural ventilation [10]. Window location and orientation, as well as the use of shading elements, are also of considerable importance [17].
Active solutions, on the other hand, may involve replacing boilers with higher-efficiency equipment, modernizing or replacing heating and cooling systems, or any changes in ventilation systems. They may include the replacement of gravitational ventilation with mechanical ventilation and the use of heat recovery systems [10]. Furthermore, renewable energy sources, such as collectors, photovoltaic cells, or heat pumps, are increasingly used. The installation of photovoltaic panels mounted on the roofs or nearby buildings is gaining popularity among individual users; hence, many new solutions have appeared on the market, and numerous works on this subject can be found in the literature [18,19]. Similarly, heat pumps, as an increasingly common alternative to conventional heating sources for buildings, have been the subject of many studies [20]. Due to the development of technology, the efficiency of such solutions increases, and thus investments become more profitable. There are also hybrid solutions combining renewable and standard sources to enhance the reliability and efficiency of such systems [21]. The reduction in energy consumption and the resulting savings are also realized by using cogeneration and trigeneration. When implementing these solutions, running gas systems to the building is important. In many cases, the lack of gas connection may prevent the implementation of such solutions. Limited resources of renewable energy sources are increasingly being discussed. Alternative energy sources are being sought, as well as the possibilities of using existing fuel resources. Interesting solutions include the use of biofuels produced from municipal, industrial, or agricultural waste. Given the current waste production level in the EU, the generation of electricity from landfill biogas has great potential. F. Caresana et al. [22] propose a number of solutions Energies 2020, 13, 1968 5 of 20 to using biogas, including cogeneration systems. A study of a closed landfill in Mexico revealed that the use of energy from biogas obtained from a landfill is possible through monitoring the quantity and composition of the gases produced, while the generation of energy from municipal waste has higher potential compared to agricultural waste and forest residues [23]. In post-mining areas, the remaining methane resources in the rock mass may be an energy source. Once mining operations are completed, it is justified and possible to capture methane from the rock mass. Needless to say, the amount of methane captured decreases over time, but the quality of the methane fuel increases. [24].

Energy Supply Systems for Sustainable Buildings
The issue that is often faced during building operations is the partial use of the energy that can be generated and variable operating parameters of the system. Importance is also placed on still-high electricity tariffs, which limit the use of many electrically powered solutions. Considerable charges for utilities and energy transmission losses have prompted designers to look for solutions that allow the required heat or electricity to be generated directly where they are needed. Given the savings brought about by a technological combination of many systems, cogeneration and trigeneration systems are gaining popularity.
The analysis of selected sustainable buildings in Europe [25] revealed that the most frequently used energy supply system is the heat pump. Thirty-two buildings were analyzed, and some of them were heated with a gas boiler, a biomass boiler, or district heating. Individual buildings were provided with heat energy through cogeneration units using biomass or air-conditioning units with heating mode. Most of the buildings had photovoltaic panels, and almost one third of them had a ground source heat pump. An example of an nZEB with a biomass boiler is the LUCIA building in Spain, which is owned by the University of Valladolid. Apart from the boiler, the building also features gas engines and photovoltaic panels providing electricity for the building [26].
As a source of electrical power, photovoltaic panels installed on roofs or in the immediate vicinity of a building are very often used. An example may be a system used in the Power House Kjørbo office building [27], capable of producing 210,000 kWh per year, while the surplus is sold to the municipal power grid. Next to the building there are also vertical ground heat exchangers with an output of approximately 100 kWH that heat and prepare domestic hot water.
Another example from Scandinavia is the headquarters of the Norwegian Tax Administration (Skattedirektoratet), where the main source of heat is recovery from an air-to-air heat pump using an exchanger installed in the server room. Peak demand is met together with energy from the municipal network [28].
The use of heat pumps with ground heat exchangers is also an interesting solution. In their paper, Baglivo et al. [29] proposed the use of an air-cooled heat pump coupled with a horizontal air-ground heat exchanger. The air flowing through the exchanger is used to treat the stream of air upstream of the heat pump exchanger. In a warm climate, where the analysis was carried out, this solution increases system efficiency and reduces building energy consumption.

HVAC Systems for Sustainable Buildings
The ventilation systems in buildings play an important role in exchanging air and providing comfortable conditions for users. Unfortunately, they are also the main source of operating costs.
As several studies [30][31][32][33] show, energy demand associated with HVAC systems may constitute 30-60% of total energy consumption. Consequently, they are a potential source of savings, which may be obtained by improving the efficiency of individual systems [34]. The most common solution to limit ventilation-related energy consumption is the use of mechanical ventilation systems coupled with heat recovery. There are many solutions on the market offering air handling units with high-efficiency recovery. Three basic heat recovery systems are in use through regenerators, recuperators, and heat pumps. Traditional systems do not perform their function at sub-zero temperatures and require additional protection against freezing. Tests have shown that not every recuperator provides adequate Energies 2020, 13,1968 6 of 20 ventilation of a building due to the ice periodically forming on the exchanger and causing flow to be reduced or stopped completely. The solution is to use additional preheaters or a system of dampers [35]. The use of multi-stage heat recovery systems is becoming more popular. An example may be the OnyxX 3 -Experience unit by Frapol that combines passive recovery through a recuperative counterflow heat exchanger with active recovery in an inverter heat pump. Tests carried out with the use of this unit revealed that it is possible to significantly reduce electricity consumption in the building by using it [36].
The literature contains numerous interesting solutions concerning ventilation and air-conditioning systems in sustainable buildings [27,28,37,38]. One interesting example is the Power House Kjørbo building that uses demand-controlled ventilation, which measures carbon dioxide as the main parameter determining air quality and the possible need for air treatment. The length of the system was designed to be as short as possible, while parts of the building such as staircases are used, e.g., to extract exhaust air. The building uses displacement ventilation, while the system is equipped with heat exchangers with an efficiency of 85% [27]. Another example may be Skattedirektoratet (the Norwegian Tax Administration building), where, in order to reduce energy demand for the purposes of ventilation and cooling systems, heat gains from office equipment were reduced and heat recovery from exhaust air with an efficiency of 86% were used, along with flow devices such as fans and pumps with low specific fan power [28]. The SOLAR XXI building makes use of a different ventilation concept; the designers decided to use natural ventilation. Air exchange is ensured by the stack effect supported by openings in the facade and ceiling. The openings in the facade and adjustable ventilation openings in all office room doors enable cross air flow from outside and vice versa inside the building. The central room of the building features a skylight that allows air to be ventilated naturally using the stack effect. High comfort and system efficiency are ensured by the use of a number of scenarios regarding the operation of the ventilation system [37]. Another example of an office building transformed into a sustainable building is the Elithis Tower in Dijon. The energy strategy used in the building is based on photovoltaic panels and the management of energy and operation of all technical systems. Air exchange in rooms is ensured by mechanical exhaust and supply ventilation with heat recovery, which is controlled via the building energy model (BEM) system. Three ventilation operation scenarios are applied depending on the season. As in the previous example, there are also openings in the facade that allow the building to be cooled in spring and autumn when combined with low-pressure exhaust fans. The openings in the facade are important in one of the scenarios (free cooling), especially at night during the summer [38].
This article presents a comprehensive approach for the problem of historic buildings related to maintaining historical building requirements and the need to improve energy consumption through optimal retrofit solutions. The study includes an analysis of the energy consumption of heating and cooling systems based on the data from the energy monitoring system. The main purpose is to improve the energy efficiency of the building and adapt it to the requirements of low-energy buildings. The implementation of the monitoring system enables energy consumption to be reduced and improves the energy performance of the building, especially through using energy management systems and control modules, as in the proposed retrofit solution. This analysis was undertaken to investigate the energy consumption structure and assess the suitability of the trigeneration system with multifunctional reverse regenerator and control module using neural algorithms.

Methods and System Description
The Turówka hotel is a historical building entered into the register of historical monuments. It is a reconstruction of a historic salt store of 1812. The building is located in Wieliczka (southern Poland) and is a faithful reconstruction of the historical "Turówka" saltworks. Wieliczka lies in the south-central part of Poland near the Kraków. It is best known for its ancient salt mines, which are now a museum. The location of the hotel and its immediate surroundings are shown in Figure 3. The mass and dimensions of the building are the same and the building materials used and window and door frames aim to recreate the structure as faithfully as possible. The building includes four overground Energies 2020, 13, 1968 7 of 20 floors and the basement. The useful floor area of the hotel section is 5525.00 m 2 with a capacity of 19,300 m 3 . The building has 50 double rooms, a conference room for 40 people, and a restaurant for 90 people. The insulation of dividing structures complies with the minimum requirements of the 2021 Technical Standard. The building is under preservation maintenance, so changes in the building mass are difficult to make, and as a result it is impossible to improve its energy performance through insulation.
The Turówka hotel is a historical building entered into the register of historical monuments. It is a reconstruction of a historic salt store of 1812. The building is located in Wieliczka (southern Poland) and is a faithful reconstruction of the historical "Turówka" saltworks. Wieliczka lies in the south-central part of Poland near the Kraków. It is best known for its ancient salt mines, which are now a museum. The location of the hotel and its immediate surroundings are shown in Figure 3. The mass and dimensions of the building are the same and the building materials used and window and door frames aim to recreate the structure as faithfully as possible. The building includes four overground floors and the basement. The useful floor area of the hotel section is 5525.00 m 2 with a capacity of 19,300 m 3 . The building has 50 double rooms, a conference room for 40 people, and a restaurant for 90 people. The insulation of dividing structures complies with the minimum requirements of the 2021 Technical Standard. The building is under preservation maintenance, so changes in the building mass are difficult to make, and as a result it is impossible to improve its energy performance through insulation. Currently, the hotel uses a two-pipe central heating system. It is supplied from a gas boiler house and equipped with two low-temperature boilers (250 and 350 kW) with operating parameters of 80/60 Currently, the hotel uses a two-pipe central heating system. It is supplied from a gas boiler house and equipped with two low-temperature boilers (250 and 350 kW) with operating parameters of 80/60 • C. The gas boiler house also includes storage water heaters for domestic hot water, and from there water is distributed to all air heaters in air handling units. To control the temperature of the central heating feed water, a control system with weather compensation was used. Feed and return temperature control depending on the outdoor temperature is achieved by mixing the feed water with the return water using electric three-way mixing valves. The domestic hot water temperature is adjusted by heating circulation pump control. Steel panel radiators with thermostatic valves are installed in rooms. Air exchange in the building is obtained by nine supply and exhaust ventilation units with a total ventilation air stream of 44,400 m 3 /h. Systems were divided by grouping rooms for similar purposes. All air handling units providing heat recovery and proper air parameters are located in a technical room in the hotel basement. The air handling unit for kitchen air ventilation has an exchanger using glycol, while the air handling unit for the cloakroom does not have a heat recovery system. All other air handling units, on the other hand, have a rotary heat exchanger. A detailed list of modernization suggestions with descriptions of the current situation is given in Table 1.
The subject of the project by Frapol is a system that combines three basic elements: a multifunctional reverse regenerator (MRR), a trigeneration gas power generator (GAT), and a control module NEURO+ with an adaptive and predictive function and using neural algorithms. In addition, the system includes air handling units, active air regulators, and air filters. The sustainable building project is co-financed by the European Regional Development Fund and is intended to develop an integrated system that allows the microclimate to be accurately controlled in large commercial buildings. It aims to meet requirements concerning nearly zero-energy buildings. Table 1. List of equipment and systems before and after modernization.

System/Equipment Description of the Current Situation Modernization Suggestion
Central heating system Two low-temperature 250 and 350 kW gas boilers with an efficiency of less than 0.86 Two-pipe system with panel radiators and thermostatic valves Replacement of one 250 kW boiler by three trigeneration gas power generators (GATs) and introduction of centrally controlled electronic thermostatic valves 80% of the heat demand to be met from a reversible heat pump with GAT generator No. 1, while the remaining 20% from high parameters with GAT generator No. 2 District hot water system Central preparation of hot water in the gas boiler house with circulation and with heating circulation pump control Traditional fittings with washbasins having a flow rate of 6 L/min and shower fittings with a flow rate of 18 L/min Use of heat from the cooling circuit of engines and exhaust gas heat exchangers of three GAT generators with a total output of 75 kW Supply of 3 district hot water tanks with a volume of 3000 L each Timing and proximity automation and dynamic flow limiters < 2 L/min and < 6 L/min for showers Ventilation Mechanical exhaust and supply ventilation Seven air handling units with rotary exchangers Air handling unit for the kitchen with an exchanger using glycol Average seasonal temperature efficiency < 45% Air handling units with a regenerative counterflow exchanger with controlled humidity recovery Use of hoods with grease filters in the kitchen Average seasonal air handling unit temperature efficiency < 45%

Cooling
Cooling unit with a hydraulic module for cooling a 35% water solution of glycol at a temperature of 6/12 • C, Water at a temperature of 8/14 • C enters a plate heat exchanger of water air coolers located in air handling units and fan coil units Average seasonal cooling efficiency rating is estimated at approximately 2.4 Bivalent system based on three GAT gas power generators with a total cooling capacity of 150 kW is used as a cooling source Cooling unit with an air-cooled condenser with free-cooling is a supporting source of cooling during peaks The modernization plan assumes the replacement of air handling units for high-efficiency equipment with reversible and regenerative heat exchangers not requiring external energy for protection against freezing and with controlled humidity recovery. It is planned to use condensing boilers and trigeneration units. The new heating system is to be fully integrated with the cooling and domestic hot water preparation system. The entire system will be controlled by smart adaptive automation using weather forecasts (BEMS). One gas boiler will be replaced by three GAT trigeneration power generators, with their main advantage being a very high use of primary energy in the fuel. The unit has a modern gas-powered engine that ensures heat recovery through the use of additional cooling systems powered by the engine itself. The system also uses the energy of condensing water vapor contained in flue gases, which, as a result, reduces its temperature and allows the recovered energy to be used in the system. Each GAT generator has a system for power distribution between the heat pump compressor and the generator, which ensures that the gas engine operates at constant and optimal power. The source of heat for the district hot water system will be processes of cooling the trigeneration power generator and heat recovery from flue gases, with a total output of 75 kW. Should the output be insufficient, the existing gas boiler will also be used. The building is heated using radiators and heaters located in air handling units, while it is cooled using fan coil units with electronic thermostatic valves controlled by the intelligent energy management system BEMS. The control module NEURO+ ensures that the entire system operates properly. The operation of individual components will be ensured by a controller with neural algorithms, which will enable the operating parameters of individual components to be adjusted as precisely as possible. Depending on the type of component, optimization will be on a weekly or monthly basis. The system will be continuously improved with no users needed. It is planned that the system will allow losses from the non-linear character of building use to be minimized.
This paper includes an analysis of the energy performance of the building, taking into account the heat energy demand of five systems in the building: the heating system, the cooling system, the district hot water preparation system, the technological plant, and heat demand of the swimming pool section. Figure 4 shows a simplified diagram representing the energy balance of the building.  The GAT generator has been fitted with measuring devices in order to control the main parameters responsible for proper system operation. In addition, heat and cooling energy meters have been installed in main system areas, i.e., feed and return of the high and, depending on demand, low parameter of the refrigerant. Data are transmitted via a serial communications protocol -MODBUS RTU and stored in a recording system. Measurements are made using MULTICAL heat meters by Kamstrup. To ensure measurement stability, flow sensors were submitted to a type approval according to EN 1434 [40], which includes the 2400-hour measurement stability test of the flow sensors. Figure 5 shows the diagram of the GAT trigeneration power generator together with location of the measuring devices.  The GAT generator has been fitted with measuring devices in order to control the main parameters responsible for proper system operation. In addition, heat and cooling energy meters have been installed in main system areas, i.e., feed and return of the high and, depending on demand, low parameter of the refrigerant. Data are transmitted via a serial communications protocol -MODBUS RTU and stored in a recording system. Measurements are made using MULTICAL heat meters by Kamstrup. To ensure measurement stability, flow sensors were submitted to a type approval according to EN 1434 [40], which includes the 2400-hour measurement stability test of the flow sensors. Figure 5 shows the diagram of the GAT trigeneration power generator together with location of the measuring devices.  The GAT generator has been fitted with measuring devices in order to control the main parameters responsible for proper system operation. In addition, heat and cooling energy meters have been installed in main system areas, i.e., feed and return of the high and, depending on demand, low parameter of the refrigerant. Data are transmitted via a serial communications protocol -MODBUS RTU and stored in a recording system. Measurements are made using MULTICAL heat meters by Kamstrup. To ensure measurement stability, flow sensors were submitted to a type approval according to EN 1434 [40], which includes the 2400-hour measurement stability test of the flow sensors. Figure 5 shows the diagram of the GAT trigeneration power generator together with location of the measuring devices.   The operation of the trigeneration system designed is based on three GAT power generators that are the main component of power supply. Figure 6 shows the installation diagram of the GAT trigeneration power generators.
Energies 2020, 13, x FOR PEER REVIEW 11 of 21 The operation of the trigeneration system designed is based on three GAT power generators that are the main component of power supply. Figure 6 shows the installation diagram of the GAT trigeneration power generators. When the heat pump works as a cooling unit, the cooling energy is supplied to the existing chilled water system through the system given in Figure 7. In addition, the functionality is extended by a 2000-liter cooling buffer. When the heat pump works as a heating unit, the heat energy is supplied to secondary heaters installed in the air handling units. A diagram of the system is given in Figure 8. When the heat pump works as a cooling unit, the cooling energy is supplied to the existing chilled water system through the system given in Figure 7. In addition, the functionality is extended by a 2000-liter cooling buffer. The operation of the trigeneration system designed is based on three GAT power generators that are the main component of power supply. Figure 6 shows the installation diagram of the GAT trigeneration power generators. When the heat pump works as a cooling unit, the cooling energy is supplied to the existing chilled water system through the system given in Figure 7. In addition, the functionality is extended by a 2000-liter cooling buffer. When the heat pump works as a heating unit, the heat energy is supplied to secondary heaters installed in the air handling units. A diagram of the system is given in Figure 8. When the heat pump works as a heating unit, the heat energy is supplied to secondary heaters installed in the air handling units. A diagram of the system is given in Figure 8.
The heat energy from the cooling system for engines of two trigeneration generators and the heat energy recovered from flue gases generated by these devices will be supplied to the district hot water system of the building (Figure 9). On the other hand, the systems for cooling and heat recovery from flue gases generated by the engine of the third generator provide heat for the central heating Energies 2020, 13,1968 11 of 20 of the building. Thanks to an additional buffer and an additional circulation system, it is possible to superheat the water stored in the existing tanks. The heat energy from the cooling system for engines of two trigeneration generators and the heat energy recovered from flue gases generated by these devices will be supplied to the district hot water system of the building (Figure 9). On the other hand, the systems for cooling and heat recovery from flue gases generated by the engine of the third generator provide heat for the central heating of the building. Thanks to an additional buffer and an additional circulation system, it is possible to superheat the water stored in the existing tanks.   The heat energy from the cooling system for engines of two trigeneration generators and the heat energy recovered from flue gases generated by these devices will be supplied to the district hot water system of the building (Figure 9). On the other hand, the systems for cooling and heat recovery from flue gases generated by the engine of the third generator provide heat for the central heating of the building. Thanks to an additional buffer and an additional circulation system, it is possible to superheat the water stored in the existing tanks. Figure 9. Diagram of the designed district hot water system. Figure 9. Diagram of the designed district hot water system.
All chilled water and heating systems have Kamstrup Multical 403 ultrasonic heat meters with digital communication modules.

Results
In this section, a measurement week during the heating season and one during the cooling season are considered. Based on the data collected, the weeks in which the highest or lowest temperatures were observed were selected during the research period. Heat energy demand was considered in four categories: heating/cooling energy for maintaining the desired indoor temperature, energy for district hot water heating, energy for the swimming pool, and the energy for the technological plant. The data collected were analyzed based on hours and days and using second sampling readings. Measurements were taken of the system before modernization and aimed to create an energy consumption profile in order to help optimize the planned energy performance improvement. Hourly data for selected days are given in Table 2. On the basis of the data collected, daily demand in the building in the analyzed period was determined. The results for both heating and cooling seasons are listed in Table 3. Table 3. Energy balance for reference weeks during heating and cooling seasons.

Heating Season
The period of 12-18 April was analyzed in the heating season. At the beginning, the focus was on heat demand by hour, taking into account the outdoor temperature. It was found that energy demand for domestic hot water heating was highly variable both on a daily and a weekly basis. There was noticeable repeatability between 23:00 and 03:00 when the demand was very low. On the other hand, the energy used for swimming pool purposes was characterized by variation, resembling oscillation regardless of the outdoor temperature and time. The energy used for technological purposes and the heat energy needed to heat the entire building make up the vast majority of the total heat demand of the building, while their changes by hour are similar. An example of changes by hour and a structure of daily heat demand is given in Figure 10. The analysis was then carried out on a weekly basis, comparing heat demand for each of the analyzed systems in Figure 11. Figure 11 also shows the occupancy level. It can be seen that the demand for heat energy for preparing district hot water was strictly dependent on the hotel occupancy. The demand for heat energy needed to heat the building and the demand for heat energy for swimming pool purposes were similar, and clearly dominate over the other values. The analysis was then carried out on a weekly basis, comparing heat demand for each of the analyzed systems in Figure 11. Figure 11 also shows the occupancy level. It can be seen that the demand for heat energy for preparing district hot water was strictly dependent on the hotel occupancy. The demand for heat energy needed to heat the building and the demand for heat energy for swimming pool purposes were similar, and clearly dominate over the other values.
Another step was to examine the relationship between heat energy demand and the outdoor temperature in the analyzed period. The data were ordered and divided into groups in specified temperature ranges. Having removed outliers and extremes, linear relationships were plotted in the form of box plots. Graphs for each analyzed system are shown in Figure 12. The analysis was then carried out on a weekly basis, comparing heat demand for each of the analyzed systems in Figure 11. Figure 11 also shows the occupancy level. It can be seen that the demand for heat energy for preparing district hot water was strictly dependent on the hotel occupancy. The demand for heat energy needed to heat the building and the demand for heat energy for swimming pool purposes were similar, and clearly dominate over the other values. Figure 11. Heat energy demand between 12 and 18 April including hotel occupancy.
Another step was to examine the relationship between heat energy demand and the outdoor temperature in the analyzed period. The data were ordered and divided into groups in specified temperature ranges. Having removed outliers and extremes, linear relationships were plotted in the form of box plots. Graphs for each analyzed system are shown in Figure 12. Dominant trends were observed in the demand for the energy needed to heat the building and for the energy for technological purposes. Consequently, these data were analyzed in more detail, which led to the plotting of a curve with a given equation and correlation coefficient. These graphs are shown in Figure 13. Dominant trends were observed in the demand for the energy needed to heat the building and for the energy for technological purposes. Consequently, these data were analyzed in more detail, which led to the plotting of a curve with a given equation and correlation coefficient. These graphs are shown in Figure 13.
(c) (d) Figure 12. Graphs of heat energy demand depending on the outdoor air temperature: (a) demand for energy needed to heat district hot water; (b) energy for swimming pool purposes; (c) energy for heating purposes; (d) energy for technological purposes.
Dominant trends were observed in the demand for the energy needed to heat the building and for the energy for technological purposes. Consequently, these data were analyzed in more detail, which led to the plotting of a curve with a given equation and correlation coefficient. These graphs are shown in Figure 13.

Cooling Season
An analogous procedure was used for the cooling season, in the case of which the demand for cooling energy, the demand for energy for preparing district hot water, and the demand for energy for heating the swimming pool were considered. Hourly analysis was performed first. For district hot water, there was a high variability in its consumption. The lowest values were observed at night. In the case of cooling energy, its distribution depended on the outdoor temperature. At night, these values were very low-as much as 10 times lower than in the afternoon when they were the highest. An example of daily heat and cooling energy consumption is given in Figure 14a. As Figure 14b shows, the energy used for cooling purposes formed the majority of the total energy consumption. The analysis was then carried out on a weekly basis, comparing heat demand for each of the analyzed systems in Figure 11. Figure 11 also shows the occupancy level. It can be seen that the demand for heat energy for preparing district hot water was strictly dependent on the hotel occupancy. The demand for heat energy needed to heat the building and the demand for heat energy for swimming pool purposes were similar, and clearly dominate over the other values. As with the heating period, there was a clear relationship between the hotel occupancy and district hot water consumption. Figure 15, representing energy demand for the period analyzed, reveals the clear dominance of cooling energy in the summer. For heating the swimming pool, the amount of the utility required to maintain comfortable conditions was relatively constant. As with the heating period, there was a clear relationship between the hotel occupancy and district hot water consumption. Figure 15, representing energy demand for the period analyzed, reveals the clear dominance of cooling energy in the summer. For heating the swimming pool, the amount of the utility required to maintain comfortable conditions was relatively constant.  Due to the temperature dependence observed, further analysis was carried out only for cooling energy in the cooling season. Box plots and regression graphs with histograms presenting the relationship, together with a regression equation and correlation coefficient, were plotted ( Figure 16).
Energies 2020, 13, x FOR PEER REVIEW 18 of 21 Due to the temperature dependence observed, further analysis was carried out only for cooling energy in the cooling season. Box plots and regression graphs with histograms presenting the relationship, together with a regression equation and correlation coefficient, were plotted ( Figure 16).

Discussion
The analysis of the energy performance for the Turówka hotel was carried out based on days and hours, and performed separately for the heating and cooling seasons. The study considered the energy demand of the building, broken down by systems in the building. The results reveal that heat and cooling energy consumption during the year is highly variable and dependent on numerous factors. The structure of demand in the analyzed periods shows that cooling energy is a clearly dominant load in the cooling season ( Figure 14). Trigeneration systems also include combined generation of cooling, which is an incontrovertible advantage of the proposed solution, given the high energy consumption. In the summer, the main building operating costs are, in fact, related to maintaining the right temperature in a room to ensure thermal comfort for users. In addition, a relationship between the cooling load and hotel occupancy was observed (Figure 15), which was associated with being able to control fan coil units in rooms individually. This relationship may be

Discussion
The analysis of the energy performance for the Turówka hotel was carried out based on days and hours, and performed separately for the heating and cooling seasons. The study considered the energy demand of the building, broken down by systems in the building. The results reveal that heat and cooling energy consumption during the year is highly variable and dependent on numerous factors. The structure of demand in the analyzed periods shows that cooling energy is a clearly dominant load in the cooling season ( Figure 14). Trigeneration systems also include combined generation of cooling, which is an incontrovertible advantage of the proposed solution, given the high energy consumption. In the summer, the main building operating costs are, in fact, related to maintaining the right temperature in a room to ensure thermal comfort for users. In addition, a relationship between the cooling load and hotel occupancy was observed (Figure 15), which was associated with being able to control fan coil units in rooms individually. This relationship may be an important assumption when forecasting loads and controlling the entire system. In the heating season, the hotel occupancy is also important, but the prevailing factor is the outdoor temperature, because the demand for heat energy and the demand for the heat energy for swimming pool purposes constitute the majority of the energy demand. For a daily outdoor temperature of 1-6 • C, the energy required for the heating system to work properly is between 25 and 60 kWh (Figure 10). For a daily maximum outdoor temperature of 28.1 • C (variation in the range of 13.8 and 28.1 • C), however, the cooling system causes consumption to be in the range of 20 to 100 kWh ( Figure 14).
The analysis revealed that hotel occupancy, time of day, and outdoor temperature have significant impacts on the energy needs of the building. Furthermore, a considerable number of other aspects that have not been considered at this stage of the study may be identified.

Conclusions
An in-depth energy analysis of a building is an essential part of improving its energy performance and adapting it to the requirements for low-energy buildings. As this study showed, the energy needed to heat or cool the building is predominant in the case of the building analyzed, which may point to the main advantages of the system described in this paper. The energy demand of the building analyzed depends to a large extent on the occupancy of the hotel. It is very important in terms of introducing modernization in the scope of individual regulation of indoor air parameters, as well as variable airflow supplied to hotel rooms. Monitoring the energy consumption of the building system can help to optimize energy consumption. The neural algorithms used in the control module will allow energy consumption to be determined precisely because, as the relationships show, reliable estimates cannot be made through analysis only based on the outdoor air temperature.
Apart from replacing the current systems with higher-efficiency systems, the proposed solution includes the replacement of both heat energy and electricity source by using a trigeneration system. As a result, it is possible to reduce losses associated with the conversion of the fuel used and to use waste heat, which is returned to the environment in traditional systems, lowering the efficiency of the entire system. In addition to the use of high-efficiency heat recovery and trigeneration gas power generators, the control module is an important part of the entire system. The proposed system is an interesting solution, enabling and ensuring comfortable conditions, while reducing energy consumption in the case of historical buildings. The system described can be used in cases where the objects cannot be subjected to reconstruction and architectural changes, such as objects of great historical and cultural significance. Funding: This research was funded by the European Regional Development Fund, Intelligent Development Program, grant number POIR.01.01.01-00-0720/16.

Conflicts of Interest:
The authors declare no conflict of interest.

PE
Primary energy factor, kWh/(m 2 ·yr) ∆PE H+W Partial volume of the PE factor for the purposes of heating, ventilation, and district hot water preparation, kWh/(m 2 ·yr) ∆PE C Partial volume of the PE factor for the purposes of cooling, kWh/(m 2 ·yr) ∆PE L Partial volume of the PE factor for the purposes of lighting, kWh/(m 2 ·yr)