Traveling at 50mph when warning lights started, AWD malfunction, auto idle malfunction, gear shift malfunction, then warning says shift to N and power shut down, coasted to a stop. Once stopped smoke coming from engine, unable to open hood (to hot). Within 2 min flames were coming around hood fire extinguishers not helpful to stop flames. Fire department arrived within 15 min to extinguish.