Building simulation in building automation systems