FR 4596 then IB 400 at Barcelona
Porto → Barcelona → Madrid
Timetable, Barcelona time
10:55FR 4596 from Porto at the gate
05:45IB 400 to Madrid leaves the gatealso LL 3000, AA 8722
18 h 50 apart on the timetable, overnight
IB 400 leaves 18 h 50 after FR 4596 arrives on the timetable: more than half a day, so not a connection we count.