Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library gives error on load in OpenModelica #1

Open
dershow opened this issue Dec 26, 2022 · 15 comments
Open

Library gives error on load in OpenModelica #1

dershow opened this issue Dec 26, 2022 · 15 comments

Comments

@dershow
Copy link

dershow commented Dec 26, 2022

I would like to try out this library. I use OpenModelica and have version 1.20.0 installed on a Mac. When I try to load this library I get a bunch of warnings and errors. Other libraries do load in OpenModelica, so I'm not sure what is different, and wether it's an issue with OM or with some of the files in this library.
Any guidance is appreciated.

Here are the specific warnings and errors that I get:

`[1] 11:21:35 Scripting Notification
qt.qpa.fonts: Populating font family aliases took 329 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost.

[2] 11:21:35 Scripting Notification
Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica.

[3] 11:21:35 Scripting Notification
Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica.

[4] 11:22:00 Syntax Warning
[/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo: 29:37-29:41]: Lexer treating \ as \, since \P is not a valid Modelica escape sequence.

[5] 11:22:00 Syntax Warning
[/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo: 29:37-29:55]: Lexer treating \ as \, since \P is not a valid Modelica escape sequence.

[6] 11:22:00 Syntax Warning
[/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo: 60:104-60:108]: Lexer treating \ as \, since \P is not a valid Modelica escape sequence.

[7] 11:22:00 Syntax Warning
[/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo: 60:104-60:122]: Lexer treating \ as \, since \P is not a valid Modelica escape sequence.

[8] 11:22:00 Grammar Warning
[/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/package.order: 0:0-0:0]: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory.
Missing names are:
drone4rotor00_ex01

[9] 11:22:00 Scripting Warning
[/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/drone4rotor00_ex01.mo: 3:1-58:23]: Expected the package to have name drone4rotor00_ex01, but got Drone4rotor00_ex01. Proceeding since only the case of the names are different.

[10] 11:22:00 Translation Error
[/Users/adershowitz/Programming/OpenModelica/OpenModelica/OMCompiler/Compiler/FrontEnd/ClassLoader.mo: 802:11-802:186]: Internal error HashTable missing file /Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/Drone4rotor00_ex01.mo - all entries include:
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/Mach.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/Airspeed.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/BankAngle.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/SideSlipAngle.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/FlightPathAngle.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/PitchAngle.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/HeadingAngle.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/AngleOfAttack.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sensors/Altitude.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Records/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Records/FlightStates.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Records/angles4display.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Types/switches/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Types/switches/switch_input.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Types/switches/switch_modeStabilityLongi.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Types/switches/switch_scopeParameter.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Types/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Types/InfoBus.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Tests/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_longiLatSprtd00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/AnimATI00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/visAtt_LateralLTISS00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_Real2VisualizerInfo00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/AnimATI_AirplaneLTISS_longiLatSprtd00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/AnimATI_AirplaneLTISS_6DoF00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/vis_AirplaneLTISS_longiLatSprtd00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/visAtt_DoF3_AircraftMassCenter_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/visAtt_DoF2_AGM84_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/Real2VisualizerInfo00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/visAtt_AirplaneLTISS_6DoF00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/visAtt_AirplaneLTISS_longiLatSprtd00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/Samples/visAtt_LongitudinalLTISS00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/Examples/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/AnimRigidBodyAircraft00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/AnimATI00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/AnimRigidBodyAircraftAttitude00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Visualizers/VisPointMass.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/BaseClasses/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/BaseClasses/AirfoilSimple00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/BaseClasses/Airfoil2WingSimple00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/Airfoil2wing_test00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/DragObjSimple00_test01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/airfoil00_test01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/WingSimple00_test01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/WingSimple00_test02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/test/Flight2Fluid_test01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Example/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Components/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Components/DragObjSimple00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Components/WingSimple00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Components/Flight2Fluid.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/Functions/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Aerodynamics/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Utilities/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Utilities/AltMN2pTh00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_LateralDynamics.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_header_AircraftDynamicsLib.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_Airfoil2D.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_SimEnvironment.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_AircraftMass6DoF.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_FlightCondition2InletFluid00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_DragObject.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_Airfoil2Wing.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_AircraftMass2DoF.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_LongitudinalDynamics.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_Aircraft6DoF.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_WingSimple.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_LogitudinalLateralSeparated.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Icons/Icon_AircraftMass3DoF.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sources/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Sources/FlightCondition2Fluid00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/calcAngles4display.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/inverseRotateVector3D00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/GlobalFrame2earthConvention.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/alphaBetaGamma00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/angularKinematics00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/rotateVector3D00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Functions/flightPathFormula00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/BaseClasses/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/Components/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/Components/AircraftMassCenter.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/Examples/tests/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/Examples/tests/testAircraft001.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/Examples/tests/testAircraft001_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/Examples/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF3/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/BaseClasses/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Components/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Components/AircraftMassCenter.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/AGM84_00_test01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/testAircraft002.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/testAircraft003.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/testAircraft001.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/AGM84_00_test03.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/tests/AGM84_00_test02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/ExampleAircrafts/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/ExampleAircrafts/AGM84_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/ExampleAircrafts/AGM84_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/Examples/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/DoF2/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/PtMassFDM/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/BaseClasses/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/BaseClasses/LTVSS00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/BaseClasses/LTISS00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/ForceMomentSources/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/ForceMomentSources/SourceConstantGravity.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/ForceMomentSources/ArbitraryDamper00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/ForceMomentSources/SourceArbitraryForceMoment00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/ForceMomentSources/PropRotorActuatorDisk00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/DerivativesLongitudinalNonDim2Dim00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/BodyAngularRate2AttitudeAngularRate00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/LateralLTVSS00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/LongitudinalLTISS00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/LongitudinalLTVSS00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/AirplaneLTISS_6DoF00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/AttitudeVelocity2Position00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/DerivativesLateralNonDim2Dim00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/LateralLTISS00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/Aircraft_RigidBody6DoF00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Components/AirplaneLTISS_longiLatSprtd00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/SourceArbitraryForceMoment_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/PropRotorActuatorDisk00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/ArbitraryDamper_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/PropRotorActuatorDisk00_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/SourceConstantGravity_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/PropRotorActuatorDisk00_ex03.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/ComponentUsage/SourceArbitraryForceMoment_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/LongitudinalLTISS00_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/Aircraft_RigidBody6DoF_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/RigidBody6DoF_DzhanibekovTheorem_rot_p_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/AirplaneLTISS_longiLatSprtd00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/RigidBody6DoF_DzhanibekovTheorem_rot_q_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/LongitudinalLTISS00_ex03.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/Drone4rotor00_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/LateralLTISS00_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/RigidBody6DoF_DzhanibekovTheorem_rot_r_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/LateralLTISS00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/SimpleLTISS_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/drone4rotor00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/AirplaneLTISS_longiLatSprtd00_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/LongitudinalLTISS00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/Aircraft_RigidBody6DoF_ex02.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/Aircraft_RigidBody6DoF_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/PropRotorActuatorDisk00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/AirplaneLTISS_longiLatSprtd00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/BodyAngularRate2AttitudeAngularRate00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/LateralLTISS00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/AttitudeVelocity2Position00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/LongitudinalLTISS00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/tests/AirplaneLTISS_6DoF00_ex01.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/Examples/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/RigidBodyFDM/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/VisualizerInfoOut00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/Real2VisualizerInfo00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/VisualizerInfoIn00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/RigidAircraftFrame00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/PtMassFrame.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/InCntrSrcForceMoment6DoF00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/FlightStatesBus.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Interfaces/OutCntrSrcForceMoment6DoF00.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Media/DryAirMethaneMixture00/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/Media/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/package.mo
/Users/adershowitz/Documents/App docs etc/Scilab_Modelica/AircraftDynamics/SimEnvironment.mo

[11] 11:22:00 Scripting Error
Failed to load package AircraftDynamics () using MODELICAPATH /Users/adershowitz/Documents/App docs etc/Scilab_Modelica.`

@linuxguy123
Copy link

FWIW, it loaded fine on my computer. (Linux Fedora 37)
Connected to OpenModelica 1.20.0~1-g2faf7aa
Connected to OMSimulator unknown-linux

When I loaded the model it gave me this warning.
AD Load error

I selected Unload All and it loaded without issues.

I did receive these warnings:

[1] 17:00:27 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo: 29:37-29:41]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[2] 17:00:27 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo: 29:37-29:55]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[3] 17:00:27 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo: 60:104-60:108]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[4] 17:00:27 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo: 60:104-60:122]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[5] 17:00:27 Scripting Warning
[/home/me/Development/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/package.mo: 3:1-5:20]: The package.order file contains a class Drone4rotor00_ex01, which is expected to be stored in file Drone4rotor00_ex01.mo, but seems to be named drone4rotor00_ex01.mo. Proceeding since only the case of the names are different.

[6] 17:00:27 Scripting Warning
[/home/me/Development/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/drone4rotor00_ex01.mo: 3:1-58:23]: Expected the package to have name drone4rotor00_ex01, but got Drone4rotor00_ex01. Proceeding since only the case of the names are different.

[7] 17:00:29 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo: 29:37-29:41]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[8] 17:00:29 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/interactive_pyPFD01_00.mo: 29:37-29:55]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[9] 17:00:29 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo: 60:104-60:108]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[10] 17:00:29 Syntax Warning
[/home/me/Development/AircraftDynamics/Visualizers/Examples/Samples/pyPFD01_00_AirplaneLTISS_6DoF00_ex01.mo: 60:104-60:122]: Lexer treating \ as \\, since \P is not a valid Modelica escape sequence.

[11] 17:00:29 Scripting Warning
[/home/me/Development/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/package.mo: 3:1-5:20]: The package.order file contains a class Drone4rotor00_ex01, which is expected to be stored in file Drone4rotor00_ex01.mo, but seems to be named drone4rotor00_ex01.mo. Proceeding since only the case of the names are different.

[12] 17:00:29 Scripting Warning
[/home/me/Development/AircraftDynamics/RigidBodyFDM/Examples/sampleAircrafts/drone4rotor00_ex01.mo: 3:1-58:23]: Expected the package to have name drone4rotor00_ex01, but got Drone4rotor00_ex01. Proceeding since only the case of the names are different.

@dershow
Copy link
Author

dershow commented Feb 27, 2023

I moved "Drone4rotor00_ex01.mo" out of the library. And, now it does load.
I might need to do some similar things to PropulsionSystem and FluidSystemComponents to be able to test things.

@dershow
Copy link
Author

dershow commented Feb 27, 2023

Next I renamed:
PropulsionSystem/Examples/OpenCAEsymposium2019/DesignPoint/TurboFan.mo
into
PropulsionSystem/Examples/OpenCAEsymposium2019/DesignPoint/Turbofan.mo
and
PropulsionSystem/Examples/OpenCAEsymposium2019/DesignPoint/TurboJet.mo
into:
PropulsionSystem/Examples/OpenCAEsymposium2019/DesignPoint/Turbojet.mo

And PropulsionSystem/Elements/BasicElements/NzlDefAebyFlowCharFixed00
into PropulsionSystem/Elements/BasicElements/NzlDefAeByFlowCharFixed00

/FluidSystemComponents/HydroThermal/Examples/Test/liquidPowerGenerator00_01
to
/FluidSystemComponents/HydroThermal/Examples/Test/LiquidPowerGenerator00_01

It seems that the load is using a different capitalization from the the actual file name.

@dershow
Copy link
Author

dershow commented Feb 27, 2023

By making the above changes I can load PropulsionSystem and AircraftDynamics. But, if I try to load FluidSystemComponents, I get the same error as you had above and if I reload it unloads the others. So, I can't seem to have all three libraries loaded at the same time.
But, I can now get some examples to run.

@dershow
Copy link
Author

dershow commented Feb 27, 2023

I've now tried a few examples and many don't run. For example:
[3] 13:55:42 Translation Error
[AircraftDynamics.RigidBodyFDM.Components.Aircraft_RigidBody6DoF00: 41:3-41:33]: airplaneDyn.phi is not a valid connector.

[3] 13:58:17 Translation Error
Internal error Instantiation of AircraftDynamics.RigidBodyFDM.Examples.sampleAircrafts.LateralLTISS00_ex02 failed with no error message.

[3] 13:58:33 Translation Error
Internal error Instantiation of AircraftDynamics.RigidBodyFDM.Examples.sampleAircrafts.AirplaneLTISS_longiLatSprtd00_ex02 failed with no error message.

@dershow
Copy link
Author

dershow commented Feb 28, 2023

I believe that the reason for the "loaded class(es) AircraftDynamics...." error is because, by default, OpenModelica loads Modelica Standard Library 4.0.0. While AircraftDynamics package.mo has:
uses(Modelica(version = "3.2.3"))
So, when it is loaded OpenModelica unloads all and loads that version.
The problem is that FluidSystemComponents:
uses(Modelica(version = "4.0.0"))
While PropulsionSystem:
uses(Modelica(version = "3.2.3"))

So, it is not possible to use these together. OpenModelica can only have one version of MSL loaded at a time. But, it seems that AircraftDynamics uses the other libraries.
Can they all be made to be compatible with 4.0.0?

@linuxguy123
Copy link

Can they all be made to be compatible with 4.0.0?

Yes, of course they can. He wrote his classes with older library versions. If the code is edited to use the newer versions it will load with 4.0.0.

@dershow
Copy link
Author

dershow commented Mar 1, 2023

Can they all be made to be compatible with 4.0.0?

Yes, of course they can. He wrote his classes with older library versions. If the code is edited to use the newer versions it will load with 4.0.0.

Perhaps my question wasn't clear enough. Are the current versions of the libraries compatible with 4.0.0? If so, the only necessary change would be the version number in "package.mo". On the other hand it is not necessarily trivial to change from 3.2.3 to 4.0.0 depending on features used etc.
So, the real intent of the question was gather specific suggestions for how to make the changes.

@linuxguy123
Copy link

I haven't looked at his work close enough to answer that.

@linuxguy123
Copy link

"When you start a simulation project using Modelica, it is common practice to collect all related system models
in a project-specific package that you develop. The models in this package are often instantiated (e.g. by drag-
and-drop in OMEdit) from released libraries, which are read-only for your project. This establishes a dependency
between your project package and a certain version of a read-only package (or library), which is the one you have
loaded in OMEdit and that you drag-and-drop components from.

This dependency is automatically marked in your package by adding a uses annotation at the top level.
For example, if you drag and drop components from MSL 4.0.0 into models of your package, the
annotation(uses(Modelica(version="4.0.0"))); will be added automatically to it. This infor-
mation allows OpenModelica to automatically load all the libraries that are required to compile the models in your
own package next time you (or someone else, possibly on a different computer) loads your package, provided they
are installed in places on the computer's file system where OpenModelica can find them."

Section 2.1, page 31 of Open Modelica User's Guide, version 1.20.

@dershow
Copy link
Author

dershow commented Mar 3, 2023

It seems like you @linuxguy123 are new to Modelica and haven't actually tried to run this the examples in this library.
If you look here toward the bottom here: https://github.com/zeta-plusplus/AircraftDynamics you will see that AircraftDynamics has a dependency of PropulsionSystem and FluidSystemComponents (as well as MSL).
Please try to load all three libraries at the same time, so that you can run the examples in AircraftDyamics. You will receive the same error message as the error dialog box that you showed early on (note, it is not a warning, but an error). This indicates that it must unload the other library, and can not use it. It is necessary to have all dependent libraries loaded in order to run examples that depend on them.
Further, there are differences between MSL 3.2.3 and 4.0.0. For example, AircraftDyamics/SimEvironment imports "Modelica.SIUnits.Time" from MSL 3.2.3. In 4.0.0 this was instead changed to "Modelica.Units.SI.Time". These parts of the two MSL are not compatible. Code that imports (directly or indirectly) this has to be written to use the appropriate coding style.

So, to be explicit: AircraftDynamics depends on MSL 3.2.3 and PropulsionSystem. But, PropulsionSystem depends on MSL 4.0.0. OpenModelica can't load MSL 3.2.3 and MSL 4.0.0 at the same time, as would be necessary to run the examples.
An analogy (although, not perfect) would be like having a python library written in python 2.7 that depends on python 3.9 files. While, there might be ways to make that work, it is not easy, and usually best to avoid this situation.

@dershow dershow closed this as completed Mar 3, 2023
@dershow dershow reopened this Mar 3, 2023
@linuxguy123
Copy link

If you read the section of the User's Guide that I provided, it talks about how to change the library reference. Yes some of it may break.

I did not run his example. I borrowed some of his library for my project. I'm still connecting and testing things.

@dershow
Copy link
Author

dershow commented Mar 3, 2023

One other point. It is common for Modelica libraries to include example, as this one does. These are generally present to help teach how to use a complicated library, as well as for testing purposes.
If you load the library then try to run those examples you will see that most (all?) do not run.
I appreciate that this is an open project. And @zeta-plusplus has put in a lot of work on it. But, it doesn't currently run for me. I've included a bunch of details as I've been hoping to find some assistance to get the included examples to run.

@zeta-plusplus
Copy link
Owner

My apologize for not replying for long.
As mentioned above, some of my library are updated to Modelica 4.0 compatible (FluidSystemComponent), but others are not yet (ex. PropulsionSystem, AIrcraftDynamics). It causes on loading packages/running models.
I am going to work on updating those libraries compatible to Modelica 4.0, However, It may take long because I am developing and maintaining those libraries just as hobby/study activity, not related to job at all. Please be patient about it.

Anyway, thank you for using my libraries. It encourages me to keep developing and maintaining. I am grad if you keep watching.

@dershow
Copy link
Author

dershow commented Mar 14, 2023

@zeta-plusplus Thank you for the library and all the work that it represents.
I've looked through the library some. It seems that the big issue between 3.2 and 4.0 is that in 3.2 units are in Modelica.SIunits while in 4.0 it's Modelica.Units.SI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants