The fact that your Honda Accord's clock resets every time the ignition turns off is a very important piece of information. Your Honda might have had electrical work done improperly. Your Honda's clock should at all time be wired to power; and not dependent of the car's ignition. If in fact the clock is resetting every time the ignition is turned off it is possible the same current being supplied to the clock is being supplied to the engine control unit (which also needs constant power and which stores emissions self test data).
If this is the case, you'll need to have a smog check repair station investigate this fault and perform necessary repairs. Once the fault is fixed you can then perform 2-3 drive cycles.