Very possible the "heat element" or the "heat upwater" is not working...this can cause -l o n g- cycles and and poor drying. Have you checked the water temp inside the d/w? 120ºF min and the closer to 140 is better.
What happens is that you start it and when it goes from cycle to cycle, it stops and the lights blink, wash cycle light and then the three stage lights. It does this at each cycle until it finally finishes. The green "clean" light does not come on anymore either. The model is 665.17772