Opened 10 years ago
Last modified 9 years ago
#3045 assigned defect
Erroneous Nominal min and max for swArc component
Reported by: | anonymous | Owned by: | somebody |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Backend | Version: | trunk |
Keywords: | indexReduction | Cc: |
Description (last modified by lochel)
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
Attachments (1)
Change History (9)
Changed 10 years ago by anonymous
comment:1 follow-up: ↓ 3 Changed 10 years ago by lochel
comment:2 Changed 10 years ago by lochel
- Owner changed from somebody to lochel
- Status changed from new to accepted
comment:3 in reply to: ↑ 1 Changed 10 years ago by anonymous
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 Changed 10 years ago by lochel
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 Changed 10 years ago by lochel
- Description modified (diff)
comment:6 Changed 10 years ago by lochel
- Owner lochel deleted
- Status changed from accepted to assigned
The output is now different (r24254):
[Modelica 3.2.1/Electrical/Analog/Interfaces.mo:46:3-84:18:writable] Error: Found equation without time-dependent variables: n.i = 0.0 Error: Internal error pre-optimization module removeSimpleEquations failed. Error: Too many equations, over-determined system. The model has 11 equation(s) and 9 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!
comment:7 Changed 9 years ago by anonymous
- Owner set to somebody
comment:8 Changed 9 years ago by anonymous
- Keywords indexReduction added
This is due to missing support of mixed systems.