#5850 closed defect (fixed)
The NF gives an error while checking a perfectly legal model
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | critical | Milestone: | 1.18.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce:
- load the PowerGrids library in OMEdit (https://github.com/PowerGrids)
- check
PowerGrids.Electrical.PowerFlow.SlackBus
- the check is successfully completed; however, the following error message is issued:
[3] 19:43:18 Translation Error [C:/dev/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo: 1076:9-1076:67]: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘UNom / 1.732050807568877‘
The same happens when checking the base class PowerGrids.Electrical.BaseClasses.OnePortAC
.
I understand the NF tries to evaluate some binding involving the UNom
parameter. This parameter has no default value on purpose, so that if one forgets to give it one value when instantiating the model in an actual system model, an error is issued.
However, the model per se is perfectly legitimate, so this error message should be suppressed in this case.
Note:
See TracTickets
for help on using tickets.
This seems to have been fixed at some point, it no longer gives an error when checking the model.