[modelica mode] more cleanup

- remove unused code fragments