the trip tank is located at the mud pits, near the shale shakers, it is used when the drill pipe is pulled out of the wellbore, because the drill pipe ocupies a volume inside the hole, and that volume needs to be replaced so the well is always filled with mud to mantain pressure as you said previously
as far as I know, that pump only operates during that operation cause you need to know the mud volume entering into the well