New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32 bit integer overflow in CalendarTime #668
Comments
It probably is the same warning with omc 1.11? |
We should change the code so it works on 32 bit as some users may not have the option to generate 64 bit. |
We are already using Reals for representing epochs:
Possibly expressions such as Also I can't reproduce the problem since I'm not sure how to launch the 32 bit version of OM? Do you need to install it separately? We could check with OM if they can identify what equation causes the error? |
Looks like it is not easily possible to have 32 and 64 bit OMC in parallel on Linux: So I installed OpeneModelica 1.11 32bit on my Windows 10 and it was sufficient to just open the Annex60 library to reproduce the warning. |
I also opened a ticket in the OpenModelica tracker: EDIT: This is the intended behavior, it seems: |
@tatigabd reports in open-ideas/IDEAS#669 (comment) that OpenModelica (32 bit version) generates warnings when trying to use IDEAS.
This is probably caused by unix time stamps overflowing 31 bit signed integer because
2^30 = 1073741824 > 1.5e9
. We could avoid this by using aReal
instead, or advice users to use the 64 bit version, which does work.The text was updated successfully, but these errors were encountered: