Gotta look at a Bosch SGS5318GB/12 dishwasher that is going on for hours.
I suspect not heating, from memory these are a bitch to work at with the tub having to come off to get acess to heater.
Customer has cleaned filters & spray arms on my advise as i know that poor water pressure/flow will prevent heater coming on.
Is there a cut-out in circuit with heater?
Are there any test sequences available?
90{e5d1b7155a01ef1f3b9c9968eaba33524ee81600d00d4be2b4d93ac2e58cec2d} of the time its a blown track around one of the heater relay pins, easy to spot and easy to repair, I reinforce the repair with a few strands of wire and resolder the other pins on the relay.