Opened 13 years ago

Closed 5 years ago

#1752 closed defect (fixed)

A Space in the installation path name prevents simulation in OMShell

Reported by: Pittiplatsch Owned by: Adrian Pop
Priority: blocker Milestone: 1.14.0
Component: Installation program Version:
Keywords: windows-specific Cc: Pittiplatsch, Adeel Asghar

Description (last modified by Martin Sjölund)

I installed OpenModelica 1.81 (r11643) in this path: {{{
"C:/Program Files (x86)/OpenModelica1.8.1/"
}}}

In OMShell I issued the following three commands:


>> loadModel(Modelica)
true
>> loadFile("C:/Program Files (x86)/OpenModelica1.8.1/share/doc/omc/testmodels/dcmotor.mo")
true
>> simulate(dcmotor,startTime=0.0,stopTime=10.0)
record SimulationResult
       resultFile = "",
       simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'dcmotor', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
       messages = "Simulation failed for model: dcmotor",
       timeFrontend = 0.0,
       timeBackend = 0.0,
       timeSimCode = 0.0,
       timeTemplates = 0.0,
       timeCompile = 0.0,
       timeSimulation = 0.0,
       timeTotal = 0.0
   end SimulationResult;


This simulation fail does not happen if there are no spaces in the path name.


Please allow spaces in the path name or - if infeasible - document more obviously that spaces are not allowed and/or hamper the user from installing in 'wrong' directories.



  • UPDATE': I repeated the installation and only now I've seen the message "Please do not install OpenModelica in a directory that contains spaces (...)". Maybe this bug is obsolete. But can't you allow spaces.... please, please!!! :-)

Attachments (1)

Compile.c (1.3 KB ) - added by Martin Sjölund 12 years ago.
Compile.bat replacement

Download all attachments as: .zip

Change History (10)

comment:1 by Martin Sjölund, 13 years ago

We do allow spaces in path names for every single OS other than Windows (because bat/cmd scripting is crippled if I understand the Windows developers correctly).

by Martin Sjölund, 12 years ago

Attachment: Compile.c added

Compile.bat replacement

comment:2 by Martin Sjölund, 12 years ago

Description: modified (diff)
Owner: changed from Pittiplatsch to Adrian Pop
Status: newassigned

comment:3 by Martin Sjölund, 12 years ago

Keywords: windows-specific added

comment:4 by Dietmar Winkler, 9 years ago

Milestone: Future

comment:5 by Francesco Casella, 7 years ago

See #4504

comment:6 by Francesco Casella, 7 years ago

Milestone: Future1.13.0

comment:7 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:8 by Francesco Casella, 6 years ago

Milestone: 1.14.02.0.0
Priority: highblocker

comment:9 by Adeel Asghar, 5 years ago

Milestone: 2.0.01.14.0
Resolution: fixed
Status: assignedclosed

Is already fixed. See #4504.

Note: See TracTickets for help on using tickets.