FR 3994 then FR 7156 at Dublin
Agadir → Dublin → Madrid
Timetable, Dublin time
18:15FR 3994 from Agadir at the gate
17:05FR 7156 to Madrid leaves the gate
22 h 50 apart on the timetable, overnight
FR 7156 leaves 22 h 50 after FR 3994 arrives on the timetable: more than half a day, so not a connection we count.