-
Notifications
You must be signed in to change notification settings - Fork 168
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
MSL 4.1.0 Reference results Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad #4363
Comments
To answer this question. It is marked as
|
That sounds serious enough to warrant red coloring, if the reference result doesn't even contain the variables one expects to test... |
Well, it is neither red nor green, but inclonclusive indicating that the comparison test could not be completed with the data available. There is yellow color also in other places used, e.g., if simulation time exceeds some threshold, I guess. |
Well, csv-compare writes a failed marker filer indeed: compare_failed.log whereas the report marks it as UNTESTED: |
We are only counting failed comparison. We can introduce a yellow instead of a gray field for this, if this makes you happy ... |
That sounds better than gray. It is a serious issue with the test or regression result that needs solving, so it would be nice if the report can clearly mark it so it stands out. |
Fixed via reference update See also discussion in in /issues/4333 |
The test of Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad on the LTX server now shows green. |
While checking MSL 4.1.0 regressions in OMC, I noticed that Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad was passing the verification testing successfully in MSL 4.0.0, while it doesn't in MSL 4.1.0, due to a mismatch in toPolar.y[2] I checked the new reference file. The value of toPolar.y[2] at time = 0.015 is 3.1415927 (i.e. pi), so the mismatch is probably due to the fact that the value at time = 0.015 can either be -pi or pi depending on small numerical rounding errors. In any case, the new reference file stops at time = 0.039999999, despite the model having StopTime = 0.32. |
@MatthiasBSchaefer, @GallLeo why these settings were changed in modelica/MAP-LIB_ReferenceResults@7d62e18?
|
They were not, it is just whitespace and comment changes? |
@casella The StopTime was changed in 01c3f90, but never used for new reference files, which is unfortunately a bit complicated in our tooling: |
The example has been changed from 4.0.0 to 4.1.0 (01c3f90): 4.1.0 the machine is driven by a speed ramp, stop time is 0.32. However, the diagram shown by @casella is obtained from 4.1.0. |
I couldn't agree more. I actually made a proposal to address this issue with suitable annotations, see modelica/ModelicaSpecification#3473. Unfortunately, this generated a lot of controversy and at some point I moved on to other things and nobody else seemed to care any longer. Maybe we should refocus on it, once MSL 4.1.0 is released 😃 In the meantime, we should get this fixed. |
OK, so we should edit creation.txt accordingly, changing the two values of stopTime that show up in there, then have LTX re-generate the reference results and upload them to the 4.1.0 branch of the reference results repo.
Sure. So, it should last 0.32 s, not 0.04 as currently shown.
It isn't, precisely because of the noEvent. We would see a step if there was a (recorded) event, so there would be two values a the same time point, one before the event and one after. But there are no events here, so we get the literal result. Which is not well defined whenever the angle is @AHaumer I think comparing angles when stuff rotates more than one turn is always going to give us problems, because of the discontinuous output. I would suggest to change the reference signals and use toSpacePhasor.y instead of toPolar.y. The information is basically the same, but the output of toSpacePhasor.y is continuous and always well-defined, so it won't give us problems. Do you agree? |
@casella I agree: For now let us change the comparison signals, I'll prepare a PR - see #4560 In this case, the mechanical angle is not the problem, it is a problem of conversion from rectangular representation of a phasor to polar representation. Enclosed you find a small test example with an alternative formulation of ToPolar (you may switch between original implementation noEvent(... atan2) and an alternative without noEvent using acos (hopefully no division by zero). |
After #4031 the reference signals for
Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad
changed, so we need new reference results.I also question why the test is not marked red in the report: https://www.ltx.de/download/MA/Compare_MSL_v4.1.0/Compare/Modelica/testrun_report.html
The text was updated successfully, but these errors were encountered: