Optimising the building management system in smart passive buildings