FR 5930 then FR 7157 at Madrid
Fes → Madrid → Dublin
Timetable, Madrid time
18:20FR 5930 from Fes at the gate
18:00FR 7157 to Dublin leaves the gate
23 h 40 apart on the timetable, overnight
FR 7157 leaves 23 h 40 after FR 5930 arrives on the timetable: more than half a day, so not a connection we count.