-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OMJulia simulate command returns error #52
Comments
@cubakija I hope the simulation works in OMEdit ? |
Yes, "The simulation finished successfully." |
@cubakija Can you add the following paths to your
|
👍 Yes, it works OK that way in REPL, but not in Jupyter where I've got an error. |
@cubakija Great it worked, but i guess you are still not using the current master of OMJulia, because when executing the simulation executable in your case
Also regarding Jupyter notebook, please post the error message you are getting |
Yes, I've done the way you shown above.
The error Jupyter throws after simulate(RLC) is:
|
@cubakija can you go to this location |
Attached OMJulia.jl |
@cubakija you are using the master version of OMJulia, so this is correct, go to this location |
Nothing happens when I execute RLC.exe, but when I execute it as administrator, command prompt appears and disappears for a moment. 😲 |
@arun3688 we need to set the paths when running simulate, see my commit on this for OMPython. |
In 1.17 we compile the executable dynamically so we need to set the paths when running simulate or the executable. In 1.18 there is a setting to compile the executable statically, one could use that to escape setting the paths to the dlls. |
@adrpo We already did this for OMJulia, here is the commit 980eba4, the simulation works in |
@cubakija , when you clicked the executable and if nothing happened means it worked, so i guess there is problem with jupyter notebook, can you also the run the jupyter notebook as administrator and test it and see if that works |
How do you start the jupyter notebook? |
I run Jupiter notebook 6.3.0 from Start Menu > Programs> Jupyter Notebook (anaconda3) /`(as adminsrtrator). Simulate command still give the error. I rememeber then previosly I could run Jupiter notebook from the Anaconda, but it does not work for a while.
|
@cubakija, I tested the model in jupyter notebook and it worked fine for me, see the attached screenshot |
We fixed the version and dependecies issues of OMJulia. |
Closing this issue do to inactivity. If the issue is not solved feel free to reopen this. |
Hi everyone,
I've got an error message when execute simulate command. When I go to the directory that error point out, and run RLC exe, following message pop up:
I am using win-10, OpenModelica1.17.0-64bit, Julia-1.6.1 and OMJulia v0.1.0
https://github.com/OpenModelica/OMJulia.jl#master
Attached openmodelica file and julia script.
RLC_OM.txt
RLC_OMJulia.txt
Below is the error the message I've got when I try to simulate my RLC model:
The text was updated successfully, but these errors were encountered: