FR 10 then TP 1017 at Madrid
Dublin → Madrid → Lisbon
Timetable, Madrid time
22:35FR 10 from Dublin at the gate
18:00TP 1017 to Lisbon leaves the gate
19 h 25 apart on the timetable, overnight
TP 1017 leaves 19 h 25 after FR 10 arrives on the timetable: more than half a day, so not a connection we count.