11 | | I see that with the above procedure I can reproduce or not reproduce the bad behaviour in a way that looks rather random. |
12 | | I will try to find a more reliable procedure. When (and if!) this happens I will update this comment again. |
| 10 | '''NEWLY EDITED COMMENT TO ENHANCE THE ISSUE DESCRIPTION |
| 11 | '''@adeas, please tell me if you can reproduce it. |
| 12 | |
| 13 | Well, I eventually found that this comment's issue is not related to this ticket, but I think it is better to add details here. It is an issue related to plot window display. |
| 14 | |
| 15 | Software framework: |
| 16 | note that I made my tests with |
| 17 | OMEdit 1.13.0~dev-137-g0e9c2ff Connected to OpenModelica 1.13.0~dev-1195-g6d891ea |
| 18 | on Ubuntu 16.04 |
| 19 | I also used as Options.Plotting "SubWindow view" |
| 20 | |
| 21 | Steps to reproduce: |
| 22 | 0) create two models RL1 and RL2 identical to RL of this ticket's package TestOptAnn. In both of them remove StopTime from the experiment annotation. |
| 23 | 1) start OmEdit and load RL1 and RL2. |
| 24 | 2) simulate RL1, open a full-screen plot window, and look at inductor1.i: one-second plot is displayed |
| 25 | 3) open RL2 and set stopTime=2s using Simulation Setup button, click ok (with the Simulate check-box checked). |
| 26 | 4) open a new plot window, and in it look at inductor1.i (from RL2 ouput). A two-second plot is displayed |
| 27 | 5) re-simulate several times: apparently the horizontal axis of inductor.i toggles between 1s and 2s. In reality, what happens is that the output toggles between Plot:1 and Plot:2. '''So simulations are correct, what is misleading is just this unjustified plot toggle.''' |