WARNING: This page is about a different car, the 2010 Suzuki Kizashi. However, it is still accessible from the selected car via links, so may be relevant.
DTC DETECTING CONDITION CHART
DTC detecting condition
Trouble area
C1040: ESP® Continuous Operation Stability control is active for more than specified time.