Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Usage of unit attributes changes number of variables

Usage of unit attributes changes number of variables

Dear people,

I have a model which contains 9 variables. 3 of them have unit attributes set. The model makes use of some self-written functions.

While trying to make it work, I ran into two problems: 1.) It looks like the usage of unit attributes reduces the number of variables in the flattened class. 2.) If the number of equations matches the number of variables, the simulator executeable cannot be built.

These are the variants I played and the errors which occured:

Code:


                       | 6 equations          | 9 equations
-----------------------+----------------------+---------------------
with 3 unit attributes | err: g++ not found   | unbalanced: 9eq/6var
w/o 3 unit attributes  | unbalanced: 6eq/9var | err: g++ not found

Using 1.5 RC3 in Win7/64 here. The flattened models for all 4 variants can be found here.

Any hints?

Regards,
Hannes

Re: Usage of unit attributes changes number of variables

No response for 5 days. Anything unclear / missing in my posting?

Cheers
Hannes

Re: Usage of unit attributes changes number of variables

The code generation might have problems with the use of quoted identifiers.
What happens if you use normal identifiers instead?

Cheers,
Adrian Pop/

There are 0 guests and 0 other users also viewing this topic
You are here: