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: adeas31
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 Changed 9 years ago by bezkor <bezkor@…>

  • Component changed from OMEdit to OMNotebook
  • Summary changed from OMEdit while generating *init.xml use locale LC_NUMERIC options to OMNotebook while generating *init.xml use locale LC_NUMERIC options

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

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

Lifehack solution is execute command:

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

comment:4 Changed 9 years ago by sjoelund.se

  • Priority changed from critical to 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:5 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.5

Milestone pushed to 1.9.5

comment:6 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.5 to 1.10.0

Milestone renamed

comment:7 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.10.0 to 1.11.0

Ticket retargeted after milestone closed

comment:8 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.11.0 to 1.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 Changed 7 years ago by casella

  • Milestone changed from 1.12.0 to 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 Changed 6 years ago by adeas31

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.