If you are getting strange error messages when trying to run OMShell or other parts of the stuff that gets installed when you install OpenModelica from the Mac OS X .dmg, try using the .command files instead of the application files. This is discussed in the README.osx file.
The error you will see is
basic_string::_S_construct NULL not valid