reads a message from the 'position' of the queue
function readEvent input Integer queue; input Integer position = 1; output stdEvent e; output Integer out; end readEvent;