This code piece is terribly wrong here - I can see that you were trying to work around not being able to start 'fmu' and your driver in parallel, but this is the wrong way (code duplication, software aging) way to attack this.