EC 3749 then IB 5186 at Barcelona
Milan → Barcelona → Málaga
Timetable, Barcelona time
21:30EC 3749 from Milan at the gate
12:50IB 5186 to Málaga leaves the gate
15 h 20 apart on the timetable, overnight
IB 5186 leaves 15 h 20 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.