Vehicle stalled earlier in the day and displayed Service AT. Symptoms included loss of power, fluctuating service lights, but no DTC codes. Shortly after powering off and starting vehicle functioned as intended with slight smoke when activating ac. Vehicle stalled again later within the day, experiencing immediate loss of power with smoke emitting from the engine bay sides. Electrical system began to flash indicating malfunctioning with darker smoke indicating flame intensity. Vehicle was coasted to a safe location away from personal property and other vehicles to ensure safety of surrounding area. Fire Department was contacted as soon as possible after exiting the vehicle and removing as many personal belongings as possible. Truck was engulfed in flames and was unable to be salvaged. Total loss.