Modelling for efficiency in energy management of the building life