- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Compiling error with "if" statements...
Compiling error with "if" statements in parameter declaration.
Compiling error with "if" statements in parameter declaration.
Hello,
I'm getting an error when compiling a simple model in which a parameter is defined conditionally depending on a boolean variable. The model is checked successfully and instantiated, but when I try to simulate it, it is not compiled.
I'm not sure if this kind of parameter definition is supposed to be done in Modelica, but I think it should work.
The simple code is the following:
model MyModel
parameter Boolean bool = true;
parameter Real var0 = 10;
parameter Real var1 = if bool then var0 else var0/var2;
parameter Real var2 = if bool then var0/var1 else var0;
end MyModel;
model MyModelTest
annotation(experiment(StartTime = 0.0, StopTime = 1.0, NumberOfIntervals=100, Tolerance = 1e-06));
MyModel myModel(var0=1);
end MyModelTest;
This code is in a .mo file called OMTestModel.mo
When I try to simulate MyModelTest in OMEdit, it takes forever to compile the model and no error message is thrown. When I try to simulate it in OMC, I get a very long error output from the compiler that I don't understand (I have copied it bellow).
I would appreciate if someone could tell my if there is an error in my code o if it is a OpenModelica error.
I thank you in advance,
Javier,
*******************************************************************
I run the following .mos file with OMC:
loadFile("OMTestModel.mo");
checkModel(MyModelTest);
instantiateModel(MyModelTest);
simulate(MyModelTest);
And I get the following output:
true
"Check of MyModelTest completed successfully.
Class MyModelTest has 0 equation(s) and 0 variable(s).
0 of these are trivial equation(s).
"
"class MyModelTest
parameter Boolean myModel.bool = true;
parameter Real myModel.var0 = 1.0;
parameter Real myModel.var1 = if myModel.bool then myModel.var0 else myModel.var0 / myModel.var2;
parameter Real myModel.var2 = if myModel.bool then myModel.var0 / myModel.var1 else myModel.var0;
end MyModelTest;"
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC867
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC842
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC841
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC867
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC842
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC867
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC842
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC841
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC867
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_getVar4_SC207
BackendVariable.getVar3
BackendVariable.getVar2_ExitCall_getVar3_SC206
BackendVariable.vararrayNth
BackendVariable.vararrayNth_ExitCall_array_get_SC325
BackendVariable.getVar2_ExitCall_vararrayNth_SC205
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Debug.bcallret2
Expression.subscriptEqual
ComponentReference.crefEqualNoStringCompare2_ExitCall_Debug__bcallret3_SC53
Debug.bcallret2
Expression.subscriptEqual
BackendVariable.getVar2_ExitCall_ComponentReference__crefEqualNoStringCompare_SC204
BackendDAEUtil.replaceCrefsWithValues_ExitCall_BackendVariable__getVar_SC792
Expression.traverseExp
BackendDAEUtil.replaceCrefsWithValues
BackendDAEUtil.replaceCrefsWithValues_label16445
BackendDAEUtil.replaceCrefsWithValues_ExitCall_Expression__traverseExp_SC791
Expression.traverseExp_ExitCall_traverseExp_SC842
Expression.traverseExp
Expression.traverseExp
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC936
Expression.traverseExpCref
Expression.traverseExpSubs
Expression.traverseExpCref_ExitCall_traverseExpSubs_SC930
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC928
Expression.traverseExpCref_ExitCall_traverseExpCref_SC935
Util.if_
Expression.traverseExpCref_ExitCall_Util__if__SC931
Expression.traverseExp_ExitCall_traverseExpCref_SC875
Util.if_
Expression.traverseExp_ExitCall_Util__if__SC873
BackendDAEUtil.replaceCrefsWithValues
BackendVariable.getVar
HashTable2.hashFunc
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_RTOpts__modelicaOutput_SC222
ComponentReference.printComponentRef2Str
ComponentReference.printComponentRefStr_ExitCall_printComponentRef2Str_SC218
ComponentReference.printComponentRefStr
ComponentReference.printComponentRefStr_ExitCall_printComponentRefStr_SC217
HashTable2.hashFunc_ExitCall_ComponentReference__printComponentRefStr_SC5
BackendVariable.getVar2_ExitCall_HashTable2__hashFunc_SC210
BackendVariable.getVar2_ExitCall_array_get_SC208
BackendVariable.getVar4
ComponentReference.crefEqualNoStringCompare
ComponentReference.crefEqualNoStringCompare2
ComponentReference.crefEqualNoStringCompare2_NextCase_FC24
Debug.bcallret3
ComponentReference.crefEqualNoStringCompare2
Stack overflow! Failing the current function stack chain until the stack overflow signal is caught!
Re: Compiling error with "if" statements in parameter declaration.
Hi,
It seems that our back-end enters an infinite loop and stack-overflows (that's why you see that large trace).
I reported this as a bug for the back-end here: https://openmodelica.org:8443/cb/issue/1651 so we can
have a look at it.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
Re: Compiling error with "if" statements in parameter declaration.
is fixed in r10543.
so long.
Willi
- wbraun
- 75 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Compiling error with "if" statements...