Glenn Irwin gave himself work to do but put in an electric performance from 14th on the grid to take second place in the first race at Oulton Park.