Opened 8 years ago

Last modified 8 years ago

#3989 new defect

Noise system library examples fail

Reported by: h.j.van.weers@… Owned by: somebody
Priority: high Milestone: Future
Component: Frontend Version:
Keywords: Cc:

Description

The noise system library examples such as "UniformNoise" all fail with the attached message displayed in the compilation tab.

Samples are run on a Windows 7 64bit machine, using standard Windows intaller (OMEdit v1.9.5-dev-20-g6cc344e connected to OpenModelica v1.9.6). I am not very familiar with OpenModelica, but can give additional info if required.

Attachments (3)

error_message.txt (8.4 KB ) - added by h.j.van.weers@… 8 years ago.
Text dump of compilation
error_message_OpenModelica1.10.0-dev-64bit.txt (9.5 KB ) - added by h.j.van.weers@… 8 years ago.
Error message from latest nightly build
UniformNoise.png (101.2 KB ) - added by Adrian Pop 8 years ago.

Download all attachments as: .zip

Change History (8)

by h.j.van.weers@…, 8 years ago

Attachment: error_message.txt added

Text dump of compilation

comment:1 by Adrian Pop, 8 years ago

I suggest you try with the latest nightly build with MSL 3.2.2:
https://build.openmodelica.org/omc/builds/windows/nightly-builds/

comment:2 by anonymous, 8 years ago

I have installed the version "https://build.openmodelica.org/omc/builds/windows/nightly-builds/64bit/OpenModelica-v1.11.0-dev-12-g3d60086-64bit.exe" and runned the same example "UniformNoise". The problem persists see attached new error message. You mention MSL 3.2.2, I assume that this acronym (I don't know where it exactly stands for, sorry) is incorporated in this nightly build itself or do I need to install/take actions separately? I currently just run the example right after opening OMEdit the first time without any changes in settings/options etc. Other examples from the standard libraries (as far as I tested them) all do work.

by h.j.van.weers@…, 8 years ago

Error message from latest nightly build

comment:3 by Adrian Pop, 8 years ago

Yes, MSL 3.2.2 is Modelica Standard Library version 3.2.2 which has the Modelica_Noise library included. Have a look at what Modelica library you are using: OMEdit->Tools->Options->Libraries.
If is not already there you can select version 3.2.2 and restart OMEdit.
Then you have the latest Noise library which works inside Modelica. For example: Modelica.Blocks.Examples.NoiseExamples.UniformNoise works fine in MSL 3.2.2 (see attached).

by Adrian Pop, 8 years ago

Attachment: UniformNoise.png added

comment:4 by anonymous, 8 years ago

With the latest nightly build I can indeed use Modelica library 3.2.2 (I changed the setting in the ...Tools->Options->Libraries from "default" to "3.2.2") and this solution works, the noise samples then all run ok. For the latest released windows version I can not load Modelica library 3.2.2 I assume this has been the cause. Can I keep working with this nightly build or is there a way to use the released windows version with Modelica library 3.2.2? Other than this last question please consider this issue closed. Thank you for the prompt support!

comment:5 by Adrian Pop, 8 years ago

Component: *unknown*Frontend

You can continue using the nightly build as we will anyway make a release out of it soon.
I'll keep this ticket open anyway as the Modelica_Noise library should work so there is still an issue. As far as I can tell the issue is with some package constant that is not evaluated properly and ends up in the generated code. Hopefully the new front-end we're working on will fix this.

Note: See TracTickets for help on using tickets.