W4 6013 then FR 9430 at Madrid
Rome → Madrid → Marrakesh
Timetable, Madrid time
19:55W4 6013 from Rome at the gate
13:10FR 9430 to Marrakesh leaves the gate
17 h 15 apart on the timetable, overnight
FR 9430 leaves 17 h 15 after W4 6013 arrives on the timetable: more than half a day, so not a connection we count.