I had been driving for about 20 minutes at approximately 50-55 MPH when the check engine light came on. Seconds later, the red hybrid malfunction message displayed and I lost the ability to accelerate. I was able to pull over and I saw grayish smoke and flames coming from under the hood on the right side. I exited the vehicle and called 911. It took moments from the start to being completely engulfed in flames. Several loud pops or explosions happened during this period. The police and fire department arrived and extinguished it.