FR 4584 then FR 1786 at Barcelona
Porto → Barcelona → Vilnius
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
11:05FR 1786 to Vilnius leaves the gate
16 h 30 apart on the timetable, overnight
FR 1786 leaves 16 h 30 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.