- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » BondLib
BondLib
Re: BondLib
Use the version shipped with OpenModelica. It loads fine. Note that it depends on Modelica 2.2, which OMEdit does not support.
- sjoelund.se
- 1700 Posts
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.
- sjoelund.se
- 1700 Posts
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
- sjoelund.se
- 1700 Posts
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
- sjoelund.se
- 1700 Posts
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.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » BondLib