Gresini Racing?s Enea Bastianini endured a rollercoaster opening day at Le Mans before setting an all-new MotoGP lap record in FP2.