Hybrid systems - initial values not taken

2 posts / 0 new
Last post
janpeter
Offline
Joined: 2010-09-11
Hybrid systems - initial values not taken

Hi

I use JModelica 2.0 and run it on Windows 10 pro 64-bit (in VBox 5.1.30 on Mac OS 10.12.6). 

I have a hybrid system which show a somwehat strange initial transient for the discrete subysystem.

When I look closer I see that the initial values given to the discrete sub-system is not exactly taken.

X0 = 1.002529 but should be 1.0

mu0 = 0.276421 but should be 0.30

Both variables are declared with start value as a parameter and given the above values and also with fixed=true, as usual

This type of error reminds me of a conversation about five years back, see  http://www.jmodelica.org/5290

--

Can you see in your logs if that error five yeras back is fixed?

To send over code I need to simplify and I need then to come back later.

Thought it might be eaysier to track down what was done to the former bug. 

-

One aspect is perhaps that the connectors to the discrete time sub-system block is a mixture of MSL RealInput and my own type of connector.    

Another aspect is that I have checked the time discrete systems first four steps and calculations make sense. Thus only the initial value is wrongly set.   

Jan Peter

janpeter
Offline
Joined: 2010-09-11
HiI have simplified the

Hi

I use JModelica 2.0 and made a standard binary Windows-installation of JModelica and Python and run it on Windows 10 pro 64-bit (in VBox 5.1.30 on Mac OS 10.12.6). 

I have simplified the problem and enclose a mo- and python-file that show the problem.

Note that the Python script generate an output to the screen that shows the problem.

Jan Peter

AttachmentSize
test.mo 210 bytes
test1.py.txt 634 bytes
Login or register to post comments