Opened 11 years ago

Closed 10 years ago

#2495 closed defect (fixed)

Looking for a function ... but found a RECORD

Reported by: jan.kokert Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc: Adrian Pop

Description

Hi!

I'd like to run the examles from the Modelica_EnergyStorages Library.
The battery parameters are given in a separate file (Modelica_EnergyStorages.CellRecords.StaticResistance.Test1Parameters)
When I run the example I get the error message:

"Translation 13:22:37 0:0-0:0 Looking for a function Modelica_EnergyStorages.CellRecords.StaticResistance.Test1Parameters but found a RECORD."

This seems to be a specific problem with open modelica (in dymola it works fine)
I'm currently using r18345

Kind Regards
Jan

Change History (3)

comment:1 by Martin Sjölund, 11 years ago

I believe the first error is the relevant one:

[Modelica_EnergyStorages 3.2.1.mo:3541:9-3543:59:writable] Error: Array constructor may not be empty.
[Modelica_EnergyStorages 3.2.1.mo:3445:11-3447:80:writable] Error: Looking for a function Modelica_EnergyStorages.CellRecords.Components.SOCOCV but found a record.

An OpenModelica bug in this case anyway. fill(0,0,2) should work...

comment:2 by Martin Sjölund, 11 years ago

Cc: Adrian Pop added
Owner: changed from probably noone to Martin Sjölund
Status: newassigned

This should now work in r18680, but I am unhappy with the patch. Record constructors are done in an odd way...

comment:3 by Martin Sjölund, 10 years ago

Component: BackendFrontend
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.