FR 2514 then FR 9602 at Madrid
Bucharest → Madrid → Rome
Timetable, Madrid time
15:00FR 2514 from Bucharest at the gate
14:15FR 9602 to Rome leaves the gate
23 h 15 apart on the timetable, overnight
FR 9602 leaves 23 h 15 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.