3O 391 then FR 2513 at Madrid
Tangier → Madrid → Bucharest
Timetable, Madrid time
12:503O 391 from Tangier at the gate
07:55FR 2513 to Bucharest leaves the gate
19 h 05 apart on the timetable, overnight
FR 2513 leaves 19 h 05 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.