Conditions for Setting the DTC
WARNING: This page is about a different car, the 2011 Cadillac DTS. However, it is still accessible from the selected car via links, so may be relevant.
DTC P0412 or P0418
The ECM detects that the commanded state of the driver and the actual state of the control circuit do not match for greater than 2 seconds.