#5377 closed defect (fixed)
OMEdit sometimes does not refresh result file and/or plots after successful simulation
Reported by: | RSchiemann | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.14.0 |
Component: | Run-time | Version: | v1.13.2 |
Keywords: | Cc: | Adrian Pop |
Description
I am using OMEdit with OpenModelica 13.0.2.
I believe there are two issues to be distinguished, both of which might happen at the same time actually:
- There seems to be an issue that at some point OMEdit does not refresh the result file loaded. I recognized this when I added a component to the model, ran a new simulation and tried to explore the results for the new component: It was not existent in the shown result file. Hence I think the result file has not been refreshed.
- The issue might be related to 1. When OMEdit is in a state where it fails to refresh the result file, the already created plots of existing variables do not get refreshed either. To make them refresh, variable needs to be removed from the plot and added again. It is obvious that this is a critical issue for the end user because he can never be sure what results he is actually looking at.
Unfortunately, I have not yet found a way of reliably reproducing these issues. I have a feeling that they start occuring once a simulation run with the same model was unsuccessful (or maybe crashed?).
In my organization, I work quite a lot with OMEdit with a lot of simulation trials. Right now, since I can not really trust the correct results being loaded/shown, I switched to Matlab to import the generated result file (.mat) and read it (which has its problems as well).
Hence, if possible, I would kindly request this be fixed for the next release.
Thank you.
Attachments (1)
Change History (34)
comment:1 by , 6 years ago
follow-ups: 3 5 comment:2 by , 6 years ago
I might add to this ticket because i think its related. But sometimes after the simulation is finished, the window didn't switch to plotting perspective either. Although the setting under Tools/Option/Simulation is set to swtich. This might happend when i deleted the simulation result from variable browser (marked as active) and run the simulation once again. I too can't consistently reproduce this issue
follow-up: 4 comment:3 by , 6 years ago
Replying to anonymous:
I might add to this ticket because i think its related. But sometimes after the simulation is finished, the window didn't switch to plotting perspective either.
Maybe this happens when the simulation is unsuccessful? If it is this, this is on purpose.
comment:4 by , 6 years ago
Replying to anonymous:
Maybe this happens when the simulation is unsuccessful? If it is this, this is on purpose.
Not necessarily. I had two basic resistors(each w/their own ground) in parallel with a constant voltage source. I simulated it once,deleted the result from variable browser, delete the connection between source and one of the resistor (but keeping the resistor in the model) and re-ran the simulation. The first re-run didn't move the view to plotting window and no result in variable browser (although the simulation run succesfully). The 2nd and next re-runs(slternating between connecting and disconnecting the resistor and deleting result before every re-run) works just perfectly (i.e. switch to plotting view and the results are there)
i don't know what happend :D
comment:5 by , 6 years ago
Replying to anonymous:
I might add to this ticket because i think its related. But sometimes after the simulation is finished, the window didn't switch to plotting perspective either. Although the setting under Tools/Option/Simulation is set to swtich. This might happend when i deleted the simulation result from variable browser (marked as active) and run the simulation once again. I too can't consistently reproduce this issue
That is a behavior I have observed a couple of times as well, it might be related.
comment:6 by , 6 years ago
Component: | *unknown* → OMEdit |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Version: | v1.13.0 → v1.13.2 |
comment:7 by , 6 years ago
I also observed this behaviour a few times, though I'm unable to reproduce it with certainty.
comment:9 by , 6 years ago
@adeas31: could be, do you use the same functionality resultFileInfo.lastModified()?
That's why I actually added some notification message in #5251, but you didn't like it.
Because the functionality you get is very weird, you press simulate, everything builds
fine but then nothing happens.
follow-ups: 11 12 comment:10 by , 6 years ago
RSchiemann and casella, can you tell me on which operating systems do you get these errors?
#5251 was only an issue on Ubuntu 16.04 LTS but this might actually depend on the file system,
if it records modification time with milliseconds or not.
comment:11 by , 6 years ago
Replying to adrpo:
RSchiemann and casella, can you tell me on which operating systems do you get these errors?
Windows 10 pro 64 bit.
comment:12 by , 6 years ago
Replying to adrpo:
RSchiemann and casella, can you tell me on which operating systems do you get these errors?
#5251 was only an issue on Ubuntu 16.04 LTS but this might actually depend on the file system,
if it records modification time with milliseconds or not.
I was using W7 64Bit. Might it be related to having admin privileges on your user account? Thought so since I used my work notebook with limited rights.
follow-up: 19 comment:13 by , 6 years ago
Priority: | high → blocker |
---|
I'm currently using 1.13.2 for a lab activity at TU Delft. I had at least 3 students complaining about this issue, specifically: you run a simulation, it terminates successfully, but then nothing is shown in the plot window.
The good news is that the problem was "solved" by quitting OMEdit and restarting the session. The bad news is, I thus have no way to reproduce the problem. That said, it's really annoying, and it conveys an impression of sloppiness of the whole tool.
We should try hard to identify which chain of events trigger it and fix it for 1.14.0, so I'll make this a blocker.
follow-ups: 15 16 comment:14 by , 6 years ago
I remember that there is somewhere a log file that has the command history and can help reproduce issues.
Can you please remember me where it is located? So in case this issue shows also to me I can store and send that log file.
comment:15 by , 6 years ago
Replying to anonymous:
I remember that there is somewhere a log file that has the command history and can help reproduce issues.
Can you please remember me where it is located? So in case this issue shows also to me I can store and send that log file.
%TEMP%/OpenModelica/OMEdit
follow-up: 17 comment:16 by , 6 years ago
Replying to anonymous:
I remember that there is somewhere a log file that has the command history and can help reproduce issues.
Can you please remember me where it is located? So in case this issue shows also to me I can store and send that log file.
You can also use the Tools|Open Working Directory command
comment:17 by , 6 years ago
Replying to casella:
Replying to anonymous:
I remember that there is somewhere a log file that has the command history and can help reproduce issues.
Can you please remember me where it is located? So in case this issue shows also to me I can store and send that log file.
You can also use the Tools|Open Working Directory command
A don't see any log file in the working directory. Is it that the log file is produced only upon a crash? this would jeopardise trying to solve this ticket's issue through the log file.
comment:18 by , 6 years ago
The backtrace log file is of course only produced on the crash but other log files should be there.
comment:19 by , 6 years ago
Replying to casella:
I'm currently using 1.13.2 for a lab activity at TU Delft. I had at least 3 students complaining about this issue, specifically: you run a simulation, it terminates successfully, but then nothing is shown in the plot window.
The good news is that the problem was "solved" by quitting OMEdit and restarting the session. The bad news is, I thus have no way to reproduce the problem. That said, it's really annoying, and it conveys an impression of sloppiness of the whole tool.
We should try hard to identify which chain of events trigger it and fix it for 1.14.0, so I'll make this a blocker.
In #5412 someone posted steps to reproduce this bug. maybe it will help you
follow-ups: 21 22 23 comment:20 by , 6 years ago
@RSchiemann I believe this is the same issue as it was in #5412. Please try the new nightly build tomorrow and let us know if the problem is still there.
comment:21 by , 6 years ago
comment:22 by , 6 years ago
comment:23 by , 6 years ago
comment:24 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:25 by , 6 years ago
Indeed the issues seems to be still there.
steps to reproduce:
1)Load TestUpdate and open FullFlux
2) run FullFlux and plot variable IdRef.y
3) change from the Plotting perspective Idref.height setting it to -50
4) re-simulate => the plot is not updated!
Checked with today's night build for windows, 64 bit.
comment:26 by , 6 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
by , 6 years ago
Attachment: | TestUpdate.mo added |
---|
follow-up: 28 comment:27 by , 6 years ago
Uncheck Evaluate all parameters at compile time
and should work fine.
I think the problem here is that even if you have Evaluate all parameters at compile time
set you are still allowed to modify the values which is bad. I think isValueChangeable
should be false
when the -d=evaluateAllParameters
is set.
comment:28 by , 6 years ago
Replying to adeas31:
Uncheck
Evaluate all parameters at compile time
and should work fine.
I think the problem here is that even if you have
Evaluate all parameters at compile time
set you are still allowed to modify the values which is bad. I thinkisValueChangeable
should befalse
when the-d=evaluateAllParameters
is set.
Yes. I confirm that evaluate all parameters at compile time
was set.
This solves the problem for me, but to avoid other people to meet similar issues, as you mentioned, hopefully when this option is set parameters are made unmodifiable.
comment:29 by , 6 years ago
Ehm...
Every time I reopen OMEdit I find "Evaluate all parameters at compile time" checked, with any model whatever state I leave upon closing OMEdit.
Also with the model enclosed in this ticket, that I believe does not have any annotation asking this inside.
How should I set the default of this checkbox?
If the default of this setting is not under the user control is not good. Should I open a new ticket on this?
follow-ups: 32 33 comment:31 by , 6 years ago
Component: | OMEdit → Run-time |
---|---|
Owner: | changed from | to
Status: | reopened → assigned |
I talked with Adrian and he said he can make the parameters unmodifiable.
comment:32 by , 6 years ago
Replying to adeas31:
I talked with Adrian and he said he can make the parameters unmodifiable.
OK, thanks!
comment:33 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Sorry, mistyped the version number. I am using OpenModelica 1.13.2 (64bit).