AA 8574 then EW 9511 at Madrid
Porto → Madrid → Düsseldorf
Timetable, Madrid time
14:45AA 8574 from Porto at the gate
13:10EW 9511 to Düsseldorf leaves the gate
22 h 25 apart on the timetable, overnight
EW 9511 leaves 22 h 25 after AA 8574 arrives on the timetable: more than half a day, so not a connection we count.