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
  • » PHG
  • » Profile

Posts

Posts

Thank you very much for your fast and helpful reply.
I am now using your suggestion of passing time variable as a workaround

I wasn't aware that using constants in a function results in it being evaluated at compile-time only.

Hi,

during development I like to use print() statements inside functions to display variables and parameters in order to help with debugging.
However, after moving from Openmodelica 1.17.x to 1.18.0 print() statements in functions seem to be ignored as there is no output written. Writing to stdout or files does not make a difference.

From inside models it is working fine.
Please find attached a small sample showing the issue.

I am running the current stable release 64bit on Windows 10.
Is this a problem with 1.18.0? What am I doing wrong?

--Philipp

test.mo

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