I'd like to make a suggestion for the omc command-line. Right now, it's impossible to add third-party or homegrown libraries when generating a simulation program on the command line:
% omc +s +i=CLASSNAME CLASSFILE.mo ModelicaServices Modelica This is essentially equivalent to the .mos file loadModel(ModelicaServices); loadModel(Modelica); loadFile("CLASSFILE.mo"); buildModel(CLASSNAME); It would be very useful if you could add directories to the trailing list of libraries to be loaded, and have those directories presumed to be libraries: % omc +s +i=CLASSNAME CLASSFILE.mo ModelicaServices Modelica /home/janssen/Modelica/libs/GoodStuff which would be equivalent to loadModel(ModelicaServices); loadModel(Modelica); setModelicaPath(getModelicaPath() + ":" + "/home/janssen/Modelica/libs"); loadModel(GoodStuff); loadFile("CLASSFILE.mo"); buildModel(CLASSNAME); It would also be useful if the scripting support grew another command, "loadLibrary(LIBDIR)", which would be the equivalent of mp := getModelicaPath(); setModelicaPath(mp + ":" + dirname(LIBDIR)); loadModel(basename(LIBDIR)); setModelicaPath(mp); Bill