BMW says that its Chennai plant has rolled out the 40,000th locally assembled car.