Opened 12 years ago

Last modified 12 years ago

#2194 closed defect

New OMEdit almost not working on Linux — at Version 1

Reported by: ekofman@… Owned by: Adeel Asghar
Priority: high Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc:

Description (last modified by Martin Sjölund)

When I open simple text models xxx.mo created with a text editor (Kate), OMEdit produces a Segmentation Fault. The same error occurs if I create a new model with OMEdit and I copy the text (Ctrl+C) when I try to save the model.

I am working on Kubuntu 12.04, and I haven't experienced that problem on previous OMEdit versions.

I copy below a model that provokes the problem I mention:

model boost
  parameter Real C = 1e-4, L = 1e-4, R = 10, U = 24, T = 1e-4, DC = 0.5, ROn = 1e-5, ROff = 1e5;
  discrete Real Rd(start=1e5), Rs(start=1e5), nextT(start=T),lastT,diodeon;
  Real uC,iL,iD;
  
   equation
    iD=(Rs*iL-uC)/(Rd+Rs);
    der(uC) = (iD - uC/R)/C;
    der(iL) =  (U-Rs*(iL-iD))/L;
    
  algorithm
  when time > nextT then
    lastT:=nextT;
    nextT:=nextT+T;
    Rs := ROn;
  end when;

  when time - lastT-DC*T>0 then
      Rs := ROff;
      Rd := ROn;
    diodeon:=1;
  end when;

  when (Rs*iL-uC)/(Rd+Rs)*diodeon<0 then
      Rd := ROff;
    diodeon:=0;
  end when;
end boost;

Change History (1)

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

Description: modified (diff)

I cannot reproduce this right away. Could you try attaching the file so I can see if it is a problem with this file or the 12.04 builds (and in that case which revision was used).

Note: See TracTickets for help on using tickets.