Unhook the battery, disconnect the main wire to the alternator, tape it up so it will not short out on something , reconnect the battery start up the engine, You may have an intermittent short in the alternator that only occurs once it warms up a bit.