Use utilities version of function
Update gpsim unit test code to work with latest gpsim.

Now we no longer need a custom version of gpsim but can work directly
from the gpsim svn repo with a simple patch.  Setting this up will
be documented on the wiki.