Did you run the lap with TC/ABS/etc. on? (F5 toggles them) The AI will never go faster than that allows. It also uses the car's automatic shift settings so if those are wrong it can lose acceleration, or even get locked out of higher gears if it never meets the conditions to upshift.