FR 495 then FR 9602 at Madrid
Dublin → Madrid → Rome
Timetable, Madrid time
22:25FR 495 from Dublin at the gate
21:55FR 9602 to Rome leaves the gate
23 h 30 apart on the timetable, overnight
FR 9602 leaves 23 h 30 after FR 495 arrives on the timetable: more than half a day, so not a connection we count.