SIMULATION OF ENERGY MANAGEMENT SYSTEM USING MODEL PREDICTIVE CONTROL