optimal simulation of intermittently heated buildings: part I-modeling