The price difference between a Cervelo Soloist Team and a Trek Madone 5.9 is substantial. You could get both a decent road bike and another TT bike for about the price of the Trek alone. You did say you were on a budget.
A road bike is one thing, a TT bike is another. The Cervelo is a very good compromise between both. If you really are serious about doing both road races and TT on one bike (and I presume training as well), then consider the importance of other items which would be advantageous for these different purposes.
For example:
If I wanted just one bike for training/road race/TT at or below the cost of a Madone, I would buy the Cervelo, and use some of the remainder I'd have spent on the Madone to get a good aero road race wheelset, a rear disc wheel for TT, and perhaps other accessories to equip myself sufficiently for BOTH road and TT races.
By doing this, when it comes to crunch time, you can be doing at least as well on the roads by fitting your Cervelo with a good aero racing wheelset (e.g Corima @ 1460g) than you would with the stock semi-aero Bontrager Race X-Light (1530g) on the pricey Madone, and you'd still have the Cervelo's Velomax Circuits for training. For TT, you would be flying comfortably in a better position on the Cervelo, using your aero road racing front wheel and disc on the rear. Kind of like having your cake and eating it too for the same price, no?
So you see, it isn't just about what you spend for the bike, but it's where you stand in the end. If I were you, I'd consider the option of being better equipped for ALL tasks with the Cervelo and additional wheelsets vs. the Madone and only one set of wheels available for training/road race/TT, and nothing else.