Jonathan Castroviejo won the stage 3 time trial at the Volta Algarve, while Primoz Roglic maintained his GC lead.