FR 3181 then IB 412 at Barcelona
Rome → Barcelona → Madrid
Timetable, Barcelona time
13:40FR 3181 from Rome at the gate
13:35IB 412 to Madrid leaves the gatealso LA 1524, LA 1577, CX 1926, LL 3012, VY 5060, AV 6172, BA 7081, QR 8004, AA 8776
23 h 55 apart on the timetable, overnight
IB 412 leaves 23 h 55 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.