Gasly crossed the line third but was demoted to seventh place after receiving two five-second time penalties for speeding in the pit lane.