IB 652 then VY 1009 at Madrid
Rome → Madrid → Barcelona
Timetable, Madrid time
18:55IB 652 from Rome at the gatealso LA 1640, VY 5825, QR 8017
18:30VY 1009 to Barcelona leaves the gatealso QR 3538, QR 5530, IB 5993, LL 5993
23 h 35 apart on the timetable, overnight
VY 1009 leaves 23 h 35 after IB 652 arrives on the timetable: more than half a day, so not a connection we count.