Developing a priority-based energy allocation strategy for buildings using distributed model predictive control.