Opened 10 years ago
Closed 4 years ago
#3302 closed defect (fixed)
"replaceable parameter record" and inner/outer - flattening fails when array size in record changes
Reported by: | Owned by: | Per Östlund | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.16.0 |
Component: | New Instantiation | Version: | trunk |
Keywords: | Cc: |
Description
In the attached file is a package with two testers.
In Tester_workingButWithError the model can be translated and the results are correct (see ticket #3300 ). In the second Tester_FlatteningFails the flattening fails, since the vector sizes of the records change.
Unfortunately this is an important language feature, that blocks the usage of the TIL Library ( http://www.tlk-thermo.com ) and e.g. the ClaRa Library ( http://www.claralib.com ) in OpenModelica.
Attachments (1)
Change History (7)
by , 10 years ago
Attachment: | TestRecordInConnector.mo added |
---|
comment:1 by , 10 years ago
Component: | Backend → Frontend |
---|---|
Owner: | changed from | to
Status: | new → accepted |
comment:2 by , 10 years ago
Good that you bring this up and give it some priority. The PowerSystems library suffers from this as well. See also #3183.
comment:3 by , 10 years ago
comment:4 by , 6 years ago
Component: | Frontend → New Instantiation |
---|
With -d=newInst
using script:
loadFile("TestRecordInConnector.mo"); getErrorString(); instantiateModel(TestRecordInConnector.Tester_FlatteningFails); getErrorString(); instantiateModel(TestRecordInConnector.Tester_workingButWithError); getErrorString();
we get:
adrpo33@ida-0030 MINGW64 /c/home/adrpo33/dev/OMTesting/bugs/3302 $ ~/dev/OpenModelica/build/bin/omc -d=newInst t.mos true "" "" "[C:/home/adrpo33/dev/OMTesting/bugs/3302/TestRecordInConnector.mo:5:5-5:35:writable] Error: Could not evaluate structural parameter (or constant): submodel.r.n which gives dimensions of array: x. Array dimensions must be known at compile time. " "" "[C:/home/adrpo33/dev/OMTesting/bugs/3302/TestRecordInConnector.mo:5:5-5:35:writable] Error: Could not evaluate structural parameter (or constant): submodel.r.n which gives dimensions of array: x. Array dimensions must be known at compile time.
follow-up: 6 comment:5 by , 6 years ago
Milestone: | Future → 2.0.0 |
---|---|
Owner: | changed from | to
Status: | accepted → assigned |
Probably related to #5243
comment:6 by , 4 years ago
Milestone: | 2.0.0 → 1.16.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
test package