Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » overkligheten
  • » Profile

Posts

Posts

Mar-29-11 17:19:26
MDT how to get code completion working and run/debugging?

Ok. So there is no dubug tool, I must have got things wrong from the slide presentation.  But how do I create the connection with omc? Do I have to set some environment variables or how do I achive that? I'm runnnig  Ubuntu 10.10 right now.

Thanks a lot,
-Jonas

Great! By the way, any suggestion for a just a little bit more stable version?
-Jonas

Mar-29-11 02:50:53
MDT how to get code completion working and run/debugging?

Hi again,
I'm having some problems to set up a working environment in Eclipse. Now Eclipse identifies syntax errors but there is no code completion. And also when I try to run a .mo file a window pops up to choose an Ant build. There are two options but no matter which one I choose I get an error message telling me: Build Failed.  Reason: Unable to find Ant file to run. I'm aware that the questions aren't super specific so to say, it reflects my knowledge I guess...

I'm a total beginner in Eclipse so I have no clue at all what I'm doing wrong. I appreciate any ideas so I can get started. It would be great to get code completion and to be able to run and debug the model right in Eclips

Eclipse Version: 3.5.2e.
Modelica Development Tooling    0.7.7


Thanks guys,
-Jonas

Hi,
When I'm trying to start OMNotebook I get the following error in the terminal:

SOCKET: Server
trying to read the corba IOR file /tmp/openmodelica.jonasm.objid
trying to read the corba IOR file /tmp/openmodelica.jonasm.objid

And a window pops up saying:
In main(), exception:
OmcInteractiveEnvironment(): No connection to Omc established


Can you give me a pointer?  OMNotebook ran the other day on my 10.10 Ubuntu befor i upgraded to OM release 8386.

Can you also suggest a stable version, tried out the one in the stable repos the other day but it turned out to be 1.7 r????. Maybe the only way to get a stable version is to compile from source, which version would you suggest then?

Keep up the good work!

Cheers,
-Jonas

Mar-20-11 05:03:59
The sample() function gives random samples

Hi again, tried it out with r8226-1 and that worked better.... Now it looks as it should.
Cheers,
-Jonas

Mar-19-11 21:23:33
The sample() function gives random samples

Hi,
I tried out the sample function and it do not sample as it should. Am I doing something wrong or is it a bug? Her is the code:
-----------------------------------------
model Sampling
discrete Real r;
equation
when sample(0,0.5) then
r = pre(r)+1.0;
end when;
end Sampling;
-----------------------------------------

https://picasaweb.google.com/lh/photo/k … directlink

When I run this it does not always trigger the sample event. It is solved with:

simulate(Sampling, startTime=0, stopTime=30, numberOfIntervals=500, tolerance=1e-6, method="dassl", outputFormat="mat");

I run version 1-7.0 r8273


Great work with Open Modelica, thanks a lot!

-Jonas

<table style="width:auto;"><tr><td><a href="https://picasaweb.google.com/lh/photo/kVf3cOnAmcx6yxzdWcalSA?feat=embedwebsite"><img src="https://lh3.googleusercontent.com/_NBBs172I_oU/TYTz9E3CKDI/AAAAAAAABag/PXSqYO2i0hE/s144/stumbling_stair_sampling.png" height="57" width="144" /></a></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="https://picasaweb.google.com/jonas.malmqvist/Mar192011?feat=embedwebsite">Mar 19, 2011</a></td></tr></table>

  • Index
  • » Users
  • » overkligheten
  • » Profile
You are here: