Any way to show the full initialisation system when using compile_fmu?

3 posts / 0 new
Last post
MidnightRambler
Offline
Joined: 2017-03-12
Any way to show the full initialisation system when using compile_fmu?

Hi all,

 

I'm trying to get a simulation to work in JModelica but I keep getting errors like these in compilation:

Error in flattened model:

  The DAE initialization system has 9 equations and 7 free variables.
Error in flattened model:
  The initialization system is structurally singular. The following equation(s) could not be matched to any variable:
    LOAD.V = LOAD.V_init
    LOAD.theta = LOAD.theta_init

 

In other words, I'm setting more constraints than I have free variables. I'm struggling to find out exactly how I've "overdetermined" the initialisation system, however. Is there a way to show the whole initialisation system as JModelica sees it (so all 9 equations and 7 variables, not just the two it can't match)? I'm sure it would help me identify the problem.

 

Thanks in advance!

fredrik
Online
Joined: 2011-08-26
compile_fmu(...,

compile_fmu(..., compiler_log_level='d')

This may give you more than you bargained for, but it should contain the full initialization system.

MidnightRambler
Offline
Joined: 2017-03-12
I tried it, and the extra

I tried it, and the extra diagnostics definitely give me more insight in what's going wrong "under the hood". Thanks a lot!

Login or register to post comments