first ever Stack Overflow Post!
I am working in Dymola 2021x, and I am trying to run a model that a colleague provided me with. The package.mo files of one of the components is loading some files with
```fileName=ModelicaServices.ExternalReferences.loadResource("modelica://Master_Branch/components.../filename.mos")```
Now, as far as I understood, what should happen is that "modelica://" in that path is the working directory, so that the recources can be found no matter where I place the project folder. However, what does happen is the following:
When I try to simulate the component, I get messages during translation that all the files referenced with "modelica://..." can't be found. I get errors like the following:
Not possible to open file "C:/Program Files/Dymola 2021x/Modelica/Master_Branch/modelica:/Master_Branch/.../filename.mos" for reading:
Invalid argument
Now I think what happens is that the program does not recognise that modelica:// is supposed to be the working directory, and instead tries to find the directory modelica:// INSIDE the working directory.
My colleague does not get this error. We are both not super well-versed in Dymola, and so I was wondering if there is something basic that I might be missing? For reference, the libraries that I am using are:
MSL3.2.3
ModelicaServices 3.2.3
AixLib 0.10.7
BuildingSystems 2.0.0-Beta
Modelica_Synchronous 0.92.2
NCDataReader2 2.5
SDF 0.41
Modelica_DeviceDrivers 1.7.0
ExternData 2.5.0
I tried looking at the modelica documentation at https://specification.modelica.org/v3.4/Ch13.html (13.2.3 External resources) but didn't get much out of it, as well as the documentation for the load.Resource() command at https://doc.modelica.org/om/Modelica.Utilities.Files.loadResource.html
Any help or suggestions would be welcome! Cheers and thanks, Thies