Thermal Simulations of Buildings and HVAC Systems with Variable Time Steps