Opened 13 years ago

Last modified 5 years ago

#1752 closed defect

A Space in the installation path name prevents simulation in OMShell — at Version 2

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!!! :-)

Change History (3)

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, 13 years ago

Attachment: Compile.c added

Compile.bat replacement

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

Description: modified (diff)
Owner: changed from Pittiplatsch to Adrian Pop
Status: newassigned
Note: See TracTickets for help on using tickets.