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