Basti and Jouvet (1988) describe a suicide attempt using 4500 mg of modafinil; the suicidee survived with no long-term effects but temporary nervousness, nausea, and insomnia.
That's 45 doses of modafinil and she was fine afterwards. 45 times the typical dose of caffeine would be lethal. Sure, you can argue from ignorance about potential long-term effects, but that argument works for anything that wasn't invented before you were born. Based on the evidence we have now, modafinil appears quite safe.
Edit: You are the first reply that didn't start with "because." You broke the pattern! >:(
That is, if an acute overdose of modafinil is not lethal, then it is more likely that the drug is safe for long term use. An equivalent acute overdose of caffeine would cause ventricular fibrillation and death. Yet few people are concerned about caffeine's long-term safety.
Also, notice the side effects of modafinil overdose: nausea, nervousness, and insomnia. Side effects of caffeine overdose include hallucinations, psychosis, and rapid muscle breakdown leading to kidney failure.
Although modafinil's mechanism of action isn't well-understood, evidence points to it having a neuroprotective effect. See http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2654794/ . So if anything, it's probably beneficial in the long-term.
A good example might be fructose, which you'd have to try very hard indeed to overdose on, but seems to be a long-term chronic toxin with many unpleasant effects, the high LD50 and the advisability of taking it at all being quite unrelated, indeed opposing.
What I've found in the literature says that longer term studies on the effects of modafinil are needed http://www.ccjm.org/content/74/8/561.full.pdf (2007)
While the WSJ ran an article, http://online.wsj.com/article/SB1000142405274870327860457462... , pretty much saying that black coffee is at worst a wash health wise (though I do note that they said caffeine has a pro-obesity effect and Modafinil an antagonistic effect (it's wiki article says as much)).
My point is that, from what I know, coffee isn't that bad. What information do you have that counters my notion or that modafinil is worth the unknown risks? Preferably with citations, please and thanks. I'm very curious about this topic for obvious reasons.
I think it's somewhat telling that the best success seems to be at high-pressure environments with fairly prescribed tasks, like law school.