Analysis of energy demand in a residential building using TRNSYS