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

Model previously working does not work anymore

Model previously working does not work anymore

The following model runs perfectly with the OM nightly build I downlodaded August, 28th, but does not work with the version downloaded the 19th of September.

The error message I get in OMedit is:

---- Error 3 : 06:38:12 ----
Unable to simulate the Model 'RLD0'
Following Error has occurred.

Simulation failed for model: RLD0


The model is:

model RLD0
  Modelica.Electrical.Analog.Basic.Ground ground;
  Modelica.Electrical.Analog.Ideal.IdealDiode Diode(Ron = 1e-005, Goff = 0.001);
  Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage(freqHz = 50, V = 10);
  Modelica.Electrical.Analog.Basic.Inductor inductor(L = 0.001);
  Modelica.Electrical.Analog.Basic.Resistor resistor1(R = 1);
equation
  connect(Diode.p,sineVoltage.p);
  connect(Diode.n,inductor.p);
  connect(resistor1.n,sineVoltage.n);
  connect(resistor1.p,inductor.n);
  connect(ground.p,sineVoltage.n);
end RLD0;

BTW, how can I retrive the build number from OM files?

Re: Model previously working does not work anymore

Regarding how to retrieve the build number:
In Linux/OSX just call getVersion(), or check the version that your OMEdit/OMNotebook/OMShell/MDT says you are using. In Windows, write the revision on a post-it when you install OMC current/smile

There are 0 guests and 0 other users also viewing this topic
You are here: