QR 3717 then IB 5956 at Barcelona
Rome → Barcelona → Essaouira
Timetable, Barcelona time
19:05QR 3717 from Rome at the gatealso IB 5343, LL 5343, VY 6013
19:00IB 5956 to Essaouira leaves the gatealso LL 5956, VY 8502
23 h 55 apart on the timetable, overnight
IB 5956 leaves 23 h 55 after QR 3717 arrives on the timetable: more than half a day, so not a connection we count.