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

BondLib

BondLib

How to load BondLib 2.3 in Openmodelica. am getting error while trying to load it to OMEdit.

Regards,
Manas

Re: BondLib

Use the version shipped with OpenModelica. It loads fine. Note that it depends on Modelica 2.2, which OMEdit does not support.

Re: BondLib

But there is no BondLib ported with Openmodelica distribution.

Regards,
Manas

Re: BondLib

Yes, BondLib is shipped with openmodelica. At least with the latest nightly builds. If you run Linux you need to install package omlib-bondlib-2.3 or something like that.

Re: BondLib

Thanx.I got the library.But when i tried to open BondLib in OMEdit,i got the following warning

[/usr/lib/omlibrary/BondLib 2.3/package.mo:709:40-709:112] Warning: The file was not encoded in UTF-8:
  "<html> The following improvements were made between Version 1.3 and Vers...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

And none of the examples aren't opening in OMEdit.I tried NandGate in ModelicaSpice.

Regards,
Manas

Re: BondLib

That's just a notification telling you the library is bad, and how openmodelica ignored the errors. You will not be able to use omedit though. It does not handle MSL 2.2

Re: BondLib

That's just a notification telling you the library is bad, and how openmodelica ignored the errors. You will not be able to use omedit though. It does not handle MSL 2.2

Re: BondLib

Ok.Even the Spice3 library is also n't working as when i am trying to execute any example in Spice3,its showing following errors :


[:0:0-0:0] Warning: Assuming fixed start value for the following 2 variables:
         vin2.T0:DISCRETE(start = vin2.TD fixed = false protected = true )  "Start time of current period".Modelica.Electrical.Spice3.Examples.Nand, .Modelica.Electrical.Spice3.Sources.V_pulse, .Modelica.SIunits.Time type: Real
         vin1.T0:DISCRETE(start = vin1.TD fixed = false protected = true )  "Start time of current period".Modelica.Electrical.Spice3.Examples.Nand, .Modelica.Electrical.Spice3.Sources.V_pulse, .Modelica.SIunits.Time type: Real
[:0:0-0:0] Error: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[:0:0-0:0] Error: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn1.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn1.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn2.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn2.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp2.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp1.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp1.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp2.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.



Is there any library available for Spice model simulation.If yes,plz let me know as i am trying to simulate spice models in OpenModelica.

Regards,
Manas

Re: BondLib

Ok.Even the Spice3 library is also n't working as when i am trying to execute any example in Spice3,its showing following errors :


[:0:0-0:0] Warning: Assuming fixed start value for the following 2 variables:
         vin2.T0:DISCRETE(start = vin2.TD fixed = false protected = true )  "Start time of current period".Modelica.Electrical.Spice3.Examples.Nand, .Modelica.Electrical.Spice3.Sources.V_pulse, .Modelica.SIunits.Time type: Real
         vin1.T0:DISCRETE(start = vin1.TD fixed = false protected = true )  "Start time of current period".Modelica.Electrical.Spice3.Examples.Nand, .Modelica.Electrical.Spice3.Sources.V_pulse, .Modelica.SIunits.Time type: Real
[:0:0-0:0] Error: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[:0:0-0:0] Error: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn1.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn1.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn2.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mn2.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp2.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp1.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp1.p: Duplicate modification of element  {start  =(untyped) 0.0}  and final  = (typed)0.0 DAE.PROP(Real(quantity = "InversePotential", unit = "1/V"), C_CONST), value: 0.0 on component m_lambda.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Spice3.mo:4636:5-4637:139] Error: Variable mp2.p: Duplicate modification of element  {start  =(untyped) 2.0e-5}  and final  = (typed)2e-05 DAE.PROP(Real(quantity = "Transconductance", unit = "A/V2"), C_CONST), value: 2e-05 on component m_transconductance.



Is there any library available for Spice model simulation.If yes,plz let me know as i am trying to simulate spice models in OpenModelica.

Regards,
Manas

Re: BondLib

Modelica.Electrical.Spice3.Examples.CoupledInductors should work without warnings. Nand and Nor should work with some of those warnings/errors added. But it will still run fine.

There are 0 guests and 0 other users also viewing this topic