Skip to content

ModelicaSystem deprecated, but ModelicaSystemOMC not a replacement #477

Description

@cbu-hw

When instantiating a ModelicaSystem, I get a deprecation warning to "Please use class ModelicaSystemOMC instead!".

OK, I do that an replace the ModelicaSystem call by ModelicaSystemOMC, only to find out that the API is not compatible at all! The user guide
still advises to use ModelicaSystem. This is quite confusing!

  1. Why the deprecation?
  2. Please extend the deprecation warning text to offer migration guidance for existing usage (actually, that's valid for all deprecation warnings in general)
  3. Please update the user guide appropriately
  4. btw, there's typos, this is called "deprecation warning", not "depreciation warning".

I noticed this in the context of trying to find out why loading a package+model with several lmodel values does not work with ModelicaSystem (exit status 3221225781, that should be "dll not found"), but works when run via sendExpression -- I'll try to get an MWE together and report separately. (edit: #478)

Version and OS

  • Python Version 3.13.15
  • OMPython Version 4.1.0
  • OpenModelica Version 1.28.0-dev.836+gca0c61d2c7.cmake
  • OS: Windows 11

cc @syntron and @adeas31 who added this in #450

Activity

  1. adeas31 commented on Sep 22, 2026

    @adeas31
    Member

    @syntron can you take a look at it.

    I think we should also update the users guide now as well. Time to proceed with #374 and OpenModelica/OpenModelica#14639

  2. syntron commented on Sep 23, 2026

    @syntron
    Contributor

    I'm currently trying to handle real life and thus any time for computer related stuff is limited; however, I will try to get the changes I have locally into a good shape ...

  3. adeas31 commented on Sep 23, 2026

    @adeas31
    Member

    I'm currently trying to handle real life and thus any time for computer related stuff is limited; however, I will try to get the changes I have locally into a good shape ...

    Sure. Take your time. I will take care of it.

  4. self-assigned this
    on Oct 2, 2026
  5. added this to the 4.2.0 milestone on Oct 2, 2026
  6. adeas31 commented on Oct 2, 2026

    @adeas31
    Member

    The users guide is updated in OpenModelica/OpenModelica#16984 and it has example on how to use the new interfaces.
    The misspelled deprecated is fixed in PR #485.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions