How do I find energy leaks?
The problem was with our clocks support in TinyOS, which leaved TA1CTL with continous mode bit set and prevented to enter sleep mode lower than LPM1.

From this problem I can learn some lessons for the future:


Proper measurement is crucial in debugging such problems. Oscilloscope with a micro current meter was very helpful.
Read your datasheets carefully. Knowing what is the power consumption of every device in every mode allows you to match the measured value to the device.
Calculate, in which sleep mode you really are. You probably have a sleep mode calculation code somewhere in your program. Print its result somewhere if you can.
The rest is the process of elimination. Either negative - comment or disable parts of code and check if the power consumption changes, or positive - get a piece of example software from the chip vendor and add its code by chunks to your program to check if you didn't forgot to initialize something.