Building Energy Modeling And Control Methods For Optimization And Renewables Integration