Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#5850 closed defect (fixed)

The NF gives an error while checking a perfectly legal model

Reported by: casella Owned by: perost
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.

Change History (2)

comment:1 Changed 3 years ago by perost

  • Resolution set to fixed
  • Status changed from new to closed

This seems to have been fixed at some point, it no longer gives an error when checking the model.

comment:2 Changed 3 years ago by casella

  • Milestone changed from 2.0.0 to 1.18.0

Indeed, thanks!

Note: See TracTickets for help on using tickets.