Opened 8 years ago

Closed 8 years ago

#4184 closed defect (duplicate)

Display unit "deg" converted wrong on windows

Reported by: dma@… Owned by: Lennart Ochel
Priority: critical Milestone: 1.12.0
Component: Run-time Version: v1.12.0
Keywords: Cc: Adeel Asghar, Adrian Pop, Martin Sjölund, Lennart Ochel

Description

I am getting an incorrect simulation result from recent nightly builds of OpenModelica-64bit.

File Motor1Da-v1.11.0-dev-93-gaadd604.png shows what I believe is a correct result. The file Motor1Da-JModelica.png shows the result of simulating the same system using JModelica, with results that agree with the OM v1.11.0-dev-93 result.

File Motor1Da-v1.12.0-dev-54-gc3e6c1b.png, however, shows a different result and one that does not make any sense. The relevant equation from the inertial element is, w = der(phi);, which is directly contradicted by the result which has phi as negative and w as positive.

I have also attached the source file used for all of these simulation, Motor1Da.mo.

Attachments (4)

Motor1Da-v1.11.0-dev-93-gaadd604.png (8.6 KB ) - added by anonymous 8 years ago.
Motor1Da-JModelica.png (30.7 KB ) - added by dma@… 8 years ago.
Motor1Da-v1.12.0-dev-54-gc3e6c1b.png (9.9 KB ) - added by dma@… 8 years ago.
Motor1Da.mo (2.2 KB ) - added by dma@… 8 years ago.

Download all attachments as: .zip

Change History (9)

by anonymous, 8 years ago

by dma@…, 8 years ago

Attachment: Motor1Da-JModelica.png added

by dma@…, 8 years ago

Attachment: Motor1Da.mo added

comment:1 by Adeel Asghar, 8 years ago

Cc: Adrian Pop Martin Sjölund Lennart Ochel added
Component: *unknown*Run-time
Owner: changed from somebody to Willi Braun
Priority: highcritical
Status: newassigned

comment:2 by Willi Braun, 8 years ago

This model works for me as expected. Can anybody run it on windows?

comment:3 by Willi Braun, 8 years ago

Owner: changed from Willi Braun to Lennart Ochel
Summary: Incorrect simulation resultDisplay unit "deg" converted wrong on windows

Okay, the simulation results are correct even on windows. This is an issue of display unit "deg" on windows, it seems to work correct on a linux machine.

comment:4 by Adeel Asghar, 8 years ago

Seems like a duplicate of #4125.

comment:5 by Adeel Asghar, 8 years ago

Milestone: Future1.12.0
Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.