Model predictive control for building active demand response systems