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 bezkor <bezkor@…>, 9 years ago

Component: OMEditOMNotebook
Summary: OMEdit while generating *init.xml use locale LC_NUMERIC optionsOMNotebook while generating *init.xml use locale LC_NUMERIC options

comment:2 by bezkor <bezkor@…>, 9 years ago

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

uname -a

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

omc --version

OpenModelica 1.9.4~dev-357-gc9d33ec

comment:3 by bezkor <bezkor@…>, 9 years ago

Lifehack solution is execute command:

export LC_NUMERIC='en_US.UTF-8'; OMNotebook

comment:4 by Martin Sjölund, 9 years ago

Priority: criticalhigh

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:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:7 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:8 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 by Francesco Casella, 7 years ago

Milestone: 1.12.0Future

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 Adeel Asghar, 6 years ago

Resolution: fixed
Status: newclosed

Closing this ticket assuming the issue was fixed and no feedback was given.

Note: See TracTickets for help on using tickets.