Opened 13 years ago
Last modified 5 years ago
#1752 closed defect
A Space in the installation path name prevents simulation in OMShell — at Initial Version
Reported by: | Pittiplatsch | Owned by: | Pittiplatsch |
---|---|---|---|
Priority: | blocker | Milestone: | 1.14.0 |
Component: | Installation program | Version: | |
Keywords: | windows-specific | Cc: | Pittiplatsch, Adeel Asghar |
Description
I installed OpenModelica 1.81 (r11643) in this path: %%(font-family: 'Courier New'; font-size: 11pt) "C:/Program Files (x86)/OpenModelica1.8.1/"%%
In OMShell I issued the following three commands:
%%(font-family: 'Courier New'; font-size: 11pt) >> loadModel(Modelica)%%
%%(font-family: 'Courier New'; font-size: 11pt) true%%
%%(font-family: 'Courier New'; font-size: 11pt) loadFile("C:/Program Files (x86)/OpenModelica1.8.1/share/doc/omc/testmodels/dcmotor.mo")%%
%%(font-family: 'Courier New'; font-size: 11pt) true%%
%%(font-family: 'Courier New'; font-size: 11pt) >> simulate(dcmotor,startTime=0.0,stopTime=10.0)%%%%(font-family: 'Courier New'; font-size: 11pt) record SimulationResult%%
%%(font-family: 'Courier New'; font-size: 11pt) resultFile = "",%%
%%(font-family: 'Courier New'; font-size: 11pt) 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 = ",%%
%%(font-family: 'Courier New'; font-size: 11pt) messages = "Simulation failed for model: dcmotor%%
%%(font-family: 'Courier New'; font-size: 11pt) ",%%
%%(font-family: 'Courier New'; font-size: 11pt) timeFrontend = 0.0,%%
%%(font-family: 'Courier New'; font-size: 11pt) timeBackend = 0.0,%%
%%(font-family: 'Courier New'; font-size: 11pt) timeSimCode = 0.0,%%
%%(font-family: 'Courier New'; font-size: 11pt) timeTemplates = 0.0,%%
%%(font-family: 'Courier New'; font-size: 11pt) timeCompile = 0.0,%%
%%(font-family: 'Courier New'; font-size: 11pt) timeSimulation = 0.0,%%
%%(font-family: 'Courier New'; font-size: 11pt) timeTotal = 0.0%%
%%(font-family: 'Courier New'; font-size: 11pt) 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!!! :-)