EC 7154 then FR 3080 at Barcelona
Milan → Barcelona → Málaga
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
20:55FR 3080 to Málaga leaves the gate
21 h 40 apart on the timetable, overnight
FR 3080 leaves 21 h 40 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.