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: | Rüdiger Franke | Owned by: | Per Östlund |
---|---|---|---|
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 by , 4 years ago
Component: | OMEdit → New Instantiation |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 4 years ago
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 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → 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.