Skip to content

Problems with tolerance tubes at the end of the transient when the simulation result is longer than the reference one #77

@casella

Description

@casella

The MSL contains some model with chaotic motion. The experiment annotation has a StopTime that allows to actually observe it, which is perfectly fine. However, it is of course futile to try to compare such simulation with a reference trajectory of the same length, since any small numerical error can cause an arbitrarily large drift between the two trajectories, given enough time.

For the time being, we decided to avoid regression errors in these cases by deliberately providing a reference CSV file with a reduced time span, which is short enough to ensure that the trajectory divergence is small, when using different tools or different integration algorithms.

For example, the Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D has StopTime = 1, but we limited the reference CSV file to a time span of 0.4 seconds. The idea is that the comparison should only take place in the time interval that is in common between the reference result and the simulation result.

Unfortunately, in some cases as, e.g., BevelGear1D, something goes wrong with the comparison: the shape of the tubes at the end of the shorter CSV reference file is kind of warped, causing a comparison failure right at the end of the reference file time interval:

Image

Note that the error takes place at 0.402 seconds, which is supposedly beyond the CSV file reporting interval, which spans from 0 to 0.4.

@beutlich could you please have a look? Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions