See this forum post for more details: https://www.klayout.de/forum/discussion/1997/mosfet-4-terminal-extraction#latest The device extraction will render wrong coordinates for the first device in manifold-interaction cases.