If you leave your cell phone on in the car, it has been known to trip the alarm on E39s.
Pull out your cell and see if the problem goes away.
2001 530i/5 (E39), Topaz Blue/Stone Green/Black (sold) *very rare interior/exterior color combo*
2005 545i/SMG (E60), ED Order, Titanium Grey/Grey (lease over)
2014 335i/8-spd, Mineral Grey/Black (lease take over)