Opened 9 years ago
Closed 6 years ago
#3559 closed defect (fixed)
OMNotebook while generating *init.xml use locale LC_NUMERIC options
Reported by: | bezkor | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | OMNotebook | Version: | |
Keywords: | locale stepSize init.xml decimal separator LC_NUMERIC | Cc: |
Description
I use a Cyrillic locale, where decimal delimiter is "coma".
If i try evaluate command "simulate(...)" have a error
stdout | warning | The step-size 0 is too small. Adjust the step-size to 1e-12.
and very big .mat file after looong time.
Problem is in file ModelName_init.xml in section
<!-- startTime, stopTime, tolerance are FMI specific, all others are OMC specific -->
<DefaultExperiment
startTime = "0.0"
stopTime = "4.0"
stepSize = "0,008"
tolerance = "1e-06"
solver = "dassl"
outputFormat = "mat"
variableFilter = ".*" />
<!-- variables in the model -->
<ModelVariables>
Maybe for generating variable stepSize using a LC_NUMERIC and in some locales delimiter is a coma.
Change History (10)
comment:1 by , 9 years ago
Component: | OMEdit → OMNotebook |
---|---|
Summary: | OMEdit while generating *init.xml use locale LC_NUMERIC options → OMNotebook while generating *init.xml use locale LC_NUMERIC options |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Lifehack solution is execute command:
export LC_NUMERIC='en_US.UTF-8'; OMNotebook
comment:4 by , 9 years ago
Priority: | critical → high |
---|
I suppose this could happen if OMNotebook changes the locale (omc itself only sets locale for LC_CTYPE and LC_MESSAGES).
Can you confirm if OMNotebook works after https://github.com/OpenModelica/OMCompiler/pull/408 ? (Tomorrow morning)
comment:8 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:9 by , 7 years ago
Milestone: | 1.12.0 → Future |
---|
The milestone of this ticket has been reassigned to "Future".
If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.
If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".
In both cases, a short informative comment would be welcome.
comment:10 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closing this ticket assuming the issue was fixed and no feedback was given.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Linux indigo 3.19.0-33-generic #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:49 UTC 2015 i686 i686 i686 GNU/Linux
OpenModelica 1.9.4~dev-357-gc9d33ec