Make sure Dymola compiles in 64 bit, which can be done by setting the flag
Advanced.CompileWith64 = 2
Otherwise, you may get an error such as
/usr/bin/ld: cannot find -lfmilib_shared collect2: error: ld returned 1 exit status