Opened 10 years ago
Last modified 9 years ago
#3045 assigned defect
Erroneous Nominal min and max for swArc component — at Version 5
Reported by: | anonymous | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Backend | Version: | trunk |
Keywords: | indexReduction | Cc: |
Description (last modified by )
The enclosed component "sparkGeneration", when run with r23772 creates the error message shown below.
It seems there is an error in the translation of component Modelica.Electrical.Analog.Ideal.CloserWithArc.
ERROR MESSAGE "C:\OpenModelica\\MinGW\bin\mingw32-make.exe" -j4 -f sparkGeneration.makefile gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o sparkGeneration.o sparkGeneration.c gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o sparkGeneration_functions.o sparkGeneration_functions.c gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o sparkGeneration_records.o sparkGeneration_records.c gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o sparkGeneration_01exo.o sparkGeneration_01exo.c gcc -falign-functions -msse2 -mfpmath=sse -I"C:/OpenModelica//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o sparkGeneration_02nls.o sparkGeneration_02nls.c sparkGeneration.c: In function 'sparkGeneration_eqFunction_48': sparkGeneration.c:154: error: 'BOOLEAN_ATTRIBUTE' has no member named 'min' sparkGeneration.c:154: error: 'BOOLEAN_ATTRIBUTE' has no member named 'max' mingw32-make: *** [sparkGeneration.o] Error 1 mingw32-make: *** Waiting for unfinished jobs.... sparkGeneration_02nls.c: In function 'initializeStaticNLSData23': sparkGeneration_02nls.c:77: error: 'BOOLEAN_ATTRIBUTE' has no member named 'nominal' sparkGeneration_02nls.c:78: error: 'BOOLEAN_ATTRIBUTE' has no member named 'min' sparkGeneration_02nls.c:79: error: 'BOOLEAN_ATTRIBUTE' has no member named 'max' sparkGeneration_02nls.c: In function 'initializeStaticNLSData48': sparkGeneration_02nls.c:178: error: 'BOOLEAN_ATTRIBUTE' has no member named 'nominal' sparkGeneration_02nls.c:179: error: 'BOOLEAN_ATTRIBUTE' has no member named 'min' sparkGeneration_02nls.c:180: error: 'BOOLEAN_ATTRIBUTE' has no member named 'max' mingw32-make: *** [sparkGeneration_02nls.o] Error 1 Compilation process exited with code 2
Change History (6)
by , 10 years ago
Attachment: | sparkGeneration.mo added |
---|
follow-up: 3 comment:1 by , 10 years ago
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:3 by , 10 years ago
Replying to lochel:
This is due to missing support of mixed systems.
Is this support planned?
If not, is it possible to implement a check saying that the problem derives from the existence of a mixed system, so that the user can create some workaround?
For instace I saw that adding a Modelica.Blocks.Logical.Pre block between greaterThreshold and swArc solves the issue.
comment:4 by , 10 years ago
Actually, OpenModelica is able to solve _some_ mixed systems. It is planned to change the current implementation to properly support mixed systems in general.
comment:5 by , 10 years ago
Description: | modified (diff) |
---|
This is due to missing support of mixed systems.