FR 9440 then FR 3079 at Lisbon
Madrid → Lisbon → Barcelona
Timetable, Lisbon time
21:15FR 9440 from Madrid at the gate
15:40FR 3079 to Barcelona leaves the gate
18 h 25 apart on the timetable, overnight
FR 3079 leaves 18 h 25 after FR 9440 arrives on the timetable: more than half a day, so not a connection we count.