FR 163 then FR 10 at Dublin
Rabat → Dublin → Madrid
Timetable, Dublin time
17:30FR 163 from Rabat at the gate
10:00FR 10 to Madrid leaves the gate
16 h 30 apart on the timetable, overnight
FR 10 leaves 16 h 30 after FR 163 arrives on the timetable: more than half a day, so not a connection we count.