Dani Pedrosa's last-gasp effort ensured he ended the opening practice session ahead of the 2012 German Grand Prix on top.