Opened 9 years ago
Closed 3 years ago
#3516 closed defect (fixed)
flattening fail with parameter fixed=false and redeclare
Reported by: | vitalij | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | perost, adrpo, sjoelund.se |
Description (last modified by vitalij)
checkModel fail for the following Example:
package pSetPara model base parameter Real p1; end base; model repM replaceable model model1 = pSetPara.base; protected model1 model1Instance; end repM; model updatePara parameter Real unknow(fixed = false); repM M(redeclare model model1 = pSetPara.base(p1 = unknow)); initial equation unknow = -1; end updatePara; end pSetPara;
with Error occurred while flattening model pSetPara.updatePara
checkModel for updatePara return "unknow" is unknow.
If we replace parameter Real unknow(fixed = false); with
parameter Real unknow(fixed = true, start = -1); then checkModel is successfully.
probably connect to #3476
Change History (6)
comment:1 Changed 9 years ago by vitalij
- Cc perost added
comment:2 Changed 9 years ago by vitalij
- Description modified (diff)
comment:3 Changed 9 years ago by vitalij
comment:4 Changed 9 years ago by vitalij
- Cc adrpo sjoelund.se added
comment:5 Changed 8 years ago by vitalij
- Description modified (diff)
comment:6 Changed 3 years ago by perost
- Component changed from Frontend to New Instantiation
- Milestone changed from Future to 1.16.0
- Resolution set to fixed
- Status changed from new to closed
Works fine in the new frontend.
remove the lines
in repM, change the result for checkModel, too.