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 Lennart Ochel)

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)

sparkGeneration.mo (3.9 KB ) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (9)

by anonymous, 10 years ago

Attachment: sparkGeneration.mo added

comment:1 by Lennart Ochel, 10 years ago

This is due to missing support of mixed systems.

comment:2 by Lennart Ochel, 10 years ago

Owner: changed from somebody to Lennart Ochel
Status: newaccepted

in reply to:  1 comment:3 by anonymous, 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 Lennart Ochel, 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 Lennart Ochel, 10 years ago

Description: modified (diff)

comment:6 by Lennart Ochel, 10 years ago

Owner: Lennart Ochel removed
Status: acceptedassigned

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 by anonymous, 9 years ago

Owner: set to somebody

comment:8 by anonymous, 9 years ago

Keywords: indexReduction added
Note: See TracTickets for help on using tickets.