KL 1580 then U2 6002 at Schiphol
Lisbon → Amsterdam → Marrakesh
Timetable, Amsterdam time
15:30KL 1580 from Lisbon at the gate
12:05U2 6002 to Marrakesh leaves the gate
20 h 35 apart on the timetable, overnight
U2 6002 leaves 20 h 35 after KL 1580 arrives on the timetable: more than half a day, so not a connection we count.