Opened 10 years ago
Closed 9 years ago
#3291 closed defect (fixed)
OMEdit: Simulation of Media.Examples.R134a produces Error
Reported by: | anonymous | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.3 |
Component: | Frontend | Version: | trunk |
Keywords: | OMEdit; Media, R134a | Cc: |
Description
When trying to compile and simulate the examples for the R134a lib in OMEdit, I get the following error (Ubuntu Linux 14.04, 64 Bit)
" Model error: Argument of log(adelta) was nan should be >0 "
I have tried to find the problem in the sources (R134a.mo), and it looks like the calculation of the absolute value of variable "delta" is not calculated correctly (abs()-function not working?)
Change History (3)
comment:1 by , 9 years ago
Component: | Unknown → Frontend |
---|---|
Priority: | high → blocker |
comment:2 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
Note:
See TracTickets
for help on using tickets.
The same error shows up in the nightly tests. One reason is that records are not constructed appropriately in functions. See the following example:
Saving it to RecordConstructor.mo and calling omc with:
gives
This is a blocker because many Modelica models use data records and the consequences on the simulation are arbitrary.