Simple example with ToSpacePhasor does not work

4 posts / 0 new
Last post
christiankral
Offline
Joined: 2011-10-14
Simple example with ToSpacePhasor does not work

Please consider the following example:

model ToSpacePhasorExample
Modelica.Electrical.QuasiStationary.MultiPhase.Blocks.ToSpacePhasor toSpacePhasorInner(final m=3)
annotation (Placement(transformation(extent={{40,30},{60,50}})));
Modelica.ComplexBlocks.Sources.ComplexConstant const[3](k={Complex(1, 0),Complex(1, 0),Complex(1, 0)}) annotation (Placement(transformation(extent={{-20,30},{0,50}})));
equation
connect(const.y, toSpacePhasorInner.u) annotation (Line(points={{1,40},{19.5,40},{38,40}}, color={85,170,255}));
end ToSpacePhasorExample;

When I try to run this example in JModelica using

from pyfmi import load_fmu
from pymodelica import compile_fmu
from pylab import *
fmu = compile_fmu("ToSpacePhasorExample")

an error is triggered: Unknown program error, java.lang.UnsupportedOperationException ...

 

This issue refers to

SVN trunk revsion r9549
OS Linux Mint 18.1 64 bit

Thanks for your support,
Christian
 

hubertus
Offline
Joined: 2009-04-24
Space phasor example

We looked at this and found a bug. An internal ticket has been created. Thanks for reporting!

hubertus
Offline
Joined: 2009-04-24
Fixed

Hi Christian, 

This has been fixed in a recent commit: http://trac.jmodelica.org/changeset/9705, the example compiles now. 

/Hubertus

christiankral
Offline
Joined: 2011-10-14
Confirmed

Hi Hubertus,

Thanks a lot for your support. I also tested the model and it works fine now.

Best regards,
Christian

Login or register to post comments