Clustering-based Performance Assessment of Thermal Energy Management in Buildings