Did you see this...
https://www.reuters.com/article/us-china-germany-iran/germanys-merkel-says-china-and-germany-standing-by-iran-nuclear-deal-idUSKCN1IP0I9
Siemens is not Germany. Seimens and the other companies trading globally determined it was best to comply with the American sanction.
The companies are not the government