Hi,

These problems have nothing to do with OMShell.

We should change in the documentation that:
>> system("cat bubblesort.mo")
returns a number and you should use:
>> readFile("bubblesort.mo")
"function bubblesort
  input Real[:] x;
 ..."

For dcmotor problem, are you sure you loaded the
Modelica library before loading dcmotor.mo?
loadModel(Modelica);
loadFile("dcmotor.mo");
...
Also make sure that OPENMODELICALIBRARY points
to the directory containing Modelica standard library.

To test what the problem might be:
$ cd OpenModelica/Examples
$ ../build/bin/omc sim_dcmotor.mos
Now look for problems in all the *.log files generated.

Cheers,
Adrian Pop/

Federico Zenith wrote:
Hello,
I finally managed to get OpenModelica compiled with CORBA support and OMShell and OMNotebook along with it (and I'm very happy about that).

Now I'm following the tutorials in OpenModelicaUsersGuide.pdf, in particular at page 14, where there is a simulation of the dcmotor model.

My problem now is that OMShell reports me that the simulation fails, even though a dcmotor_res.plt is actually been generated (I would not really know, though, whether that contains correct results).

-----------------------
simulate(dcmotor, startTime=0.0, stopTime=10.0)
record
    resultFile = "Simulation failed.
"
end record
-----------------------

Also, system("cat bubblesort.mo") does not work "as advertised" on page 13: I only get a number ("256") instead of the listing.

I compiled on an Intel Core2 machine, though I'm working on amd64 as well, but that's another story.

Cheers,
-Federico

Reply via email to