I had a new optima that had a short internally and it acted the same way.
Do the test recommended by halftanked and if everything checks out take the battery back and have it checked or check it yourself if you have a charger with diagnostics. I've fond that the optimas aren't all that friendly when they loose a charge. You will never get them to recover from just the alternater.