Checking Safety Proprieties through Simulation and Heuristic Search