Just use the "Simulate memory warning" command in the Hardware menu of the Simulator.
If you want to do that by code you could use the following code (note that this is private, so you have to remove it for AppStore releases, it is just useful during debug)
[[UIApplication sharedApplication] _performMemoryWarning];
Both of this procedures replicate what happens when a device is in a low memory situation, so the didReceiveMemoryWarning methods will be fired.