To paraphrase Hunter S Thompson, "I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me." With that in mind....
I do a number of shoots every years that have a similar functional requirement: Shoot around sunset, process or drive several hours, shoot some late night stuff when there are no people/cars/lights, shoot until just a bit after sunrise, sleep, wake up in the late afternoon/early evening, repeat. Transitioning to being a nocturnal creature is a serious pain in the ass, but I've found a way that works for me. Your milage may vary.
Not for everyone, numerous caveats apply, know your self, know your limits, act accordingly etc. If your knee is jerking just downvote and move along. If not, here is my process:
I have found that for me (200 lbs adult male, non-drinker) the combination of .5mg xanax and 5 mg ambien will give me a solid night's sleep shortly after whenever I take it. Hotel, certainly, but rest stop, large festival, whatever, I sleep for seven hours and awake feeling well-rested without the need for an alarm clock. People who are smaller or more sensitive have reported having a similar experience at .25 mg xanax and 2.5 mg ambien.
As for staying up, I don't find caffeine useful as it is usually delivered in the company of a major diuretic, ie, coffee, which will dehydrate you (perhaps resulting in that headache?) and then fade away when you really need it the most. Plus, there is a general lack of bathrooms in the middle of nowhere.
Also, I'd recommend avoiding the pantheon of stimulants that are generally available to school kids, college students, shift workers, engineers and truckers all the world over. They'll make you all twitchy and weird and overprone to yammer endlessly to anyone/thing in the vicinity. Not good.
The better option is Modafinil, AKA Provigil, which isn't exactly a stimulant in that it doesn't amp you up or make you feel high, and doesn't affect your ability to go to sleep when you are done shooting. It is what pilots use on long flights in the military. You are just awake, and OK with that, until it's time to sleep, and then you do, and that's about it.
You will need to talk to your doctor to acquire these items if you are in the United States. I only need to do this once to invert my sleep cycle. Make sure that you tell your doctor that you aren't looking for 30 of each pill so they don't think you are some kind of degenerate freak.
This protocol was something that I developed with my doctor, who already knew of and liked my work. Again, certainly not for everybody, YMMV, this does not constitute actionable advice, consult a physician, blah