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
  • Index
  • » Users
  • » Knot83
  • » Profile

Posts

Posts

Any help? Shall I open an issue?

Thanks

Hello,
I'm trying to use OMOptim v1.11.0-dev.beta4-9 (64bit) installed in the OM v1.14.1 (64bit) package.

I'm following this guide https://openmodelica.org/doc/OpenModeli … g-omoptim.

The first problem I see is that the guide pictures are not in line with the latest OMOptim release.

Moreover, I Added  my model  (*.mo) but right clicking on it there isn't any option to 'Read variable' (attached My_case.png) differently from how it's explained in the guide (attached Guide.png).Therefore I don't know how to load the list of variables in the appropriate section (Model variables).

Is it an OMOptim bug?

My_case.png https://photos.app.goo.gl/UrJPuUi3Ar31ak5W7
Guide.png https://photos.app.goo.gl/tvsHVQxkkZVQdP458

Thanks

Jan-18-21 11:59:47
Category: Programming

sjoelund.se wrote:


Try to resample the mat-file using:

https://openmodelica.org/doc/OpenModeli … ionresults

Is there any option to resample from the OMEdit graphical interface? I don't know exactly how to use the scripting commands. It would be nice to have an option to resample the plot file at a specific sample time directly from the GUI.

Thanks

Lluc wrote:


Hi,

In the MSL you have the Pspice3 library. Also, in the PowerSystems library, you can find some power devices. Otherwise, Modelon has some commercial Modelica libraries.

Thanks Lluc! I'm going to verify the M_NMOS with its own ModelcardMOS from the Pspice3 lib.

Good Morning!

Do you know of any available Power Semiconductors library models (either free or commercial). Unfortunately as far as I see there isn't any model in Open Modelica library for Power devices like for example Power Mosfets, IGBTs, Power Diodes.

The only reference I found googling online is: https://ep.liu.se/ecp/096/036/ecp14096036.pdf but I'm wondering if there's something ready-to-use.

Thanks!

adrpo wrote:


Sorry. This happens sometimes as unfortunately we are not modelers and you seem to have an issue with modeling.

You might get some answers about the modeling issues if you ask the question on:
https://stackoverflow.com/questions/tagged/modelica
or Discord:
https://discord.gg/yVPckG5N

Your description of the problem is rather vague. You seem to also have some FMUs in your model.
Are you simulating with OMSimulator? With OpenModelica? What version? I guess your OS is Windows but I'm not sure.

Can you send us your model so we can debug with it? If is not public you can send it to us via email at OpenModelica@ida.liu.se.

Thanks for your suggestions. I'm using OMEdit 1.16.1 (64bit). Unfortunately there're IPs in the model that prevent me to share it externally. Anyway I wrote a behavioral model which provide an average voltage to the DC Motors and since there aren't switching effects the simulation goes faster and has less interruptions. Of course this is just a temporary workaround.

I've written in several forums in my life and never had the same experience like in this. Written here 3 posts never got an answer. Is there any filter you apply to which posts are important and which not? I'm trying to take confidence with OpenModelica and perhaps to spread out my knowledge within my Company but without a reliable support this is becoming very difficult.
OM, moreover report in its Trac page that End-user feedback are very important to improve OM. This is what I'm trying to do.

I'd appreciate your feedback mainly to understand if I'm doing something wrong in the way to write my posts. Perhaps for you to manage efficiently so many posts would be easier to provide a template to simply fill-in a post.

Regards.

In some way things are going better with OM 64bit, although I get the following warning:

Chattering detected around time 1.00000000014e-010..0.0253192442373 (100 state events in a row with a total time delta less than the step size 1). This can be a performance bottleneck. Use -lv LOG_EVENTS for more information. The zero-crossing was: hBridge_CM.leg2.diode_n_leg1.s < 0.0

Is there any simulator option to avoid it?

Good morning.
I'm simulating a 'Valve Control System' including two valves (electro-mechanical) and their Hbridges both switching @ 1kHz (I'm using the library model). Moreover there're two FMUs of the control algorithm and the thermo-hydraulic feedback of the thermal-cooling loop.

If I simulate 1 second I got correct results. If I go above (e.g. 1.2s) the simulation crashes providing the following error:

Process crashed
Simulation process failed. Exited with code -1073741819.


I noticed that changing the Integration method I got some errors related to the Hbridge model. Therefore, I tried to provide a constant voltage to the motors instead of the PWM coming from the Hbridge and in this case the simulation go ahead without problems.

So, I tried to also to tweak the Simulation Interval and Integration Tolerance but I get the same error.

Do you have any suggestion in order to avoid this convergence problem? Is there any possibility it is related to the number of variables? What's curious is that I'm able only to simulate 1 second.

Do you have any other possible 'Simulation setup' I can try with this type of system?

I'm open to provide you any info in order to debug this issue.

I really appreciate your help!

I'm trying to set an initial angle position in the OM Inertia model using the phi.start parameter (see the picture https://photos.app.goo.gl/9prn9jZNuCWivdMR8).

If I enter a position of 2.31deg and I switch the selector to rad it change the value to -2.16421 rad.
I'd expect that the rad value should come from the simple formula 2.31deg * pi /180 = 0.040rad

Where this difference come from? Maybe a position reference?

Thanks

Is there anyway in OpenModelica 'Plotting' section to add measurement markers? Like for example a measurement at 2s.

I see there's a way to see the value getting closer to the waveform but not to add a fixed point marker.

Another good option could be to add more detailed Measurement Tools like e.g. Maximum, Minimum, Delta among two points etc..

Appreciate your answers.

Thanks

adrpo wrote:


Hi,

Well, as a workaround you can trick OMC to think your library is part of the Modelica library.
Add your library (directory or just Library.mo) to:
c:\OpenModelica1.6.0\lib\omc\omlibrary\msl31\Modelica
Also, add in the your library top package:
within Modelica;
package YourLibrary
end YourLibrary;


Cheers,
Adrian Pop/

Hi Adrian,
I'm following your procedure to add SpiceLib in OM. (https://github.com/modelica-3rdparty/SPICELib).

In my case there was not msl31 folder under C:\OpenModelica1.14.1-64bit\lib\omc, therefore I've created it as well as Modelica folder inside. So now I've:

C:\OpenModelica1.14.1-64bit\lib\omc\msl31\Modelica\SPICELib 1.1

Now, I don't know how to go on. I tried to open the Modelica Library in text view on OM but I cannot edit it because it's read only? Can you please help me to understand which file shall I edit to add the following lines?

within Modelica;
package SPICELib 1.1
end SPICELib 1.1;

Thanks!

  • Index
  • » Users
  • » Knot83
  • » Profile
You are here: