Opened 15 years ago
Last modified 15 years ago
#1187 closed defect (fixed)
Instantiation of CombiTable1Ds gives faulty error message
Reported by: | Peter Aronsson | Owned by: | Peter Aronsson |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Instantiation | Version: | |
Keywords: | Cc: | Peter Aronsson, Per Östlund |
Description
Instantiation of Modelica_Blocks_Tables_CombiTable1Ds gives error message:
"Error: Illegal subscript [1,columns[i]] for dimensions 0,2 Error: Variable table[1,columns[i]] not found in scope Modelica.Blocks.Tables.CombiTable1Ds.$for loop scope$.$for loop scope$ Error: Illegal subscript [1,columns[i]] for dimensions 0,2 Error: Variable table[1,columns[i]] not found in scope Modelica_Blocks_Tables_CombiTable1Ds.$for loop scope$.$for loop scope$ Error: assert triggered during translation: "tableOnFile = false and parameter table is an empty matrix
Some of these are because values have to be given when using the model. But a checkModel() or instantiateModel should not give error messages for these, instead it should give some kind of default values, so the model can be checked.
The error message "Variable table[1,columns[i]] not found in scope"
also appears in models that use this, like for instance BondLib.Examples.Biosphere.Biosphere
Note:
See TracTickets
for help on using tickets.
Fixed formatting of error messages.