Opened 4 years ago
Closed 4 years ago
#6134 closed defect (fixed)
OMEdit fails to simulate a model that should run according to library coverage
Reported by: | rfranke | Owned by: | perost |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | New Instantiation | Version: | v1.16.0-dev |
Keywords: | Cc: |
Description
The model PowerSystems.Examples.Introductory.SimulationFixedInitial runs with Cpp according to the library coverage, see:
https://libraries.openmodelica.org/branches/master/PowerSystems_cpp/PowerSystems_cpp.html
A simulation in OMEdit fails though with the error:
[12] 11:37:22 Übersetzung Fehler
[CodegenCppOld.tpl: 4348:14-4348:14]: Template Fehler: Unsupported external language: BUILTIN.
Change History (3)
comment:1 Changed 4 years ago by adrpo
- Component changed from OMEdit to New Instantiation
- Owner changed from adeas31 to perost
- Status changed from new to assigned
comment:2 Changed 4 years ago by perost
Should be fixed in PR 6758. The PowerSystems model used a function atan2 = Modelica.Math.atan2 definition which the NF failed to detect as an external "builtin" function.
It worked with the C runtime since it handles external "builtin" functions while the Cpp runtime does not. But I don't know in what situation that would actually be needed other than to work around bugs like this.
comment:3 Changed 4 years ago by rfranke
- Resolution set to fixed
- Status changed from assigned to closed
Thank you for the fix! It works with today's nightly build :)
OMEdit has the new front-end on by default.
For the newInst results you should check this link:
https://libraries.openmodelica.org/branches/newInst/PowerSystems_cpp/PowerSystems_cpp.html
Which for your model gives the same error.