On the link between energy performance of building and thermal comfort