The MODELICAPATH is a list of paths to search when trying to load a library. It is a string separated by colon (:) on all OSes except Windows, which uses semicolon (;).
To override the default path (OPENMODELICAHOME/lib/omlibrary/:~/.openmodelica/libraries/), set the environment variable OPENMODELICALIBRARY=...
On Windows the HOME directory '~' is replaced by %APPDATA%
function getModelicaPath output String modelicaPath; end getModelicaPath;