Skip to content

Changes

Summary

  1. Some issues resolved for the birate mode: (#12334) (details)
  2. update 3rdParty to get the latest updates to Minizip (#12335) (details)
  3. fix bad flag which makes clang++ to fail on Ubuntu Noble (#12336) (details)
  4. Fix regressions due to #12315 (#12342) (details)
  5. Fixing quoted identifiers in CSV and FMU (#12346) (details)
  6. Use quoted names for variables introduced with --exposeLocalIOs (#12348) (details)
  7. Hide protected variables that belongs to an encrypted class (#12351) (details)
  8. Read the error from the graphics annotation element (#12353) (details)
  9. Fix creation of binding equations from start values (#12354) (details)
  10. update OMSimulator to fix the build on Fedora40 (#12361) (details)
  11. Instantiate record constructors as functions (#12362) (details)
  12. Improve check for encrypted variables (#12369) (details)
  13. Handle prefixing of time units (#12370) (details)
  14. Fix type checking of cref binding equations (#12371) (details)
  15. Fix flattening of if-equations (#12373) (details)
  16. Instance of non encrypted class inside encrypted class (#12372) (details)
Commit c466d13a19f7c3d7bb5f8b0aa0a0e0275dbbae93 by bernhardbachmann
Some issues resolved for the birate mode: (#12334)

1) Maximal factorial increase of step size is reduce to 1.2 (instead of 3.5)
2) Calculation of consistent derivatives at right-hand side of the intervall
3) Set number of maximal iterations of the Newton iteration to 20
4) Change the extrapolation scheme for good guess values of NLS for birate mode
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/gbode_main.c (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/gbode_nls.c (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/gbode_ctrl.c (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/gbode_util.c (diff)
Commit e88d9a47778efea9e4690fb4d4419dce238c422b by adrian.pop
update 3rdParty to get the latest updates to Minizip (#12335)

The file was modified OMCompiler/3rdParty (diff)
Commit 60c2b6efbdfbccb28f9206436f4bd29c71f41d9f by adrian.pop
fix bad flag which makes clang++ to fail on Ubuntu Noble (#12336)

The file was modified OMPlot/OMPlot/OMPlotGUI/OMPlotLib.pro (diff)
Commit a024851c4473b497e4c50d1c2845919a6022aa01 by per.ostlund
Fix regressions due to #12315 (#12342)

- Don't add start values from types as bindings to parameters without
  bindings, they aren't handled correctly.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFBinding.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSubscript.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFInst.mo (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/UnboundParameter3.mo
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
Commit ab6038a1c00431030f2a84d2e3f0815070df46d2 by 38031952+AnHeuermann
Fixing quoted identifiers in CSV and FMU (#12346)

* Fixing FMU export with quoted identifier

* Fixing CSV quoted identifier escape.

* Don't allow empty quoted identifier in Modelica: `''`
The file was modified OMCompiler/Compiler/FrontEnd/ModelicaBuiltin.mo (diff)
The file was modified OMCompiler/Parser/BaseModelica_Lexer.g (diff)
The file was addedtestsuite/flattening/modelica/mosfiles/QuotedIdentifierCSV.mos
The file was modified testsuite/openmodelica/fmi/ModelExchange/2.0/Makefile (diff)
The file was modified testsuite/flattening/modelica/mosfiles/QuotedIdentifier.mo (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/results/simulation_result_csv.cpp (diff)
The file was modified OMCompiler/Compiler/Template/CodegenC.tpl (diff)
The file was addedtestsuite/openmodelica/fmi/ModelExchange/2.0/QuotedIdentifier.mo
The file was addedtestsuite/openmodelica/fmi/ModelExchange/2.0/.gitignore
The file was modified OMCompiler/Compiler/Template/CodegenUtil.tpl (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFModelicaBuiltin.mo (diff)
The file was addedtestsuite/openmodelica/fmi/ModelExchange/2.0/QuotedIdentifierExport.mos
The file was modified testsuite/flattening/modelica/mosfiles/Makefile (diff)
The file was modified OMCompiler/Compiler/Template/CodegenFMUCommon.tpl (diff)
Commit 0d08719c1d2a156e5f740e8483137fa30bd9daec by Franke Ruediger
Use quoted names for variables introduced with --exposeLocalIOs (#12348)

This way the newly introduced global variables keep the name of the
previously exposed local variables, besides quotes. See #10599 and #12346.
The file was modified testsuite/openmodelica/cppruntime/fmu/modelExchange/2.0/exposeLocalIOs.mos (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
Commit 26007b1c8eb1d39354bc97240a462bfaf155ca84 by adeel.asghar
Hide protected variables that belongs to an encrypted class (#12351)

#11718
Ignore emit_protected flag for the protected variables that are inside encrypted model
The file was modified OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/simulation_input_xml.c (diff)
The file was modified OMCompiler/Compiler/NSimCode/NSimCode.mo (diff)
The file was modified OMCompiler/Compiler/Template/SimCodeTV.mo (diff)
The file was modified OMCompiler/Compiler/SimCode/SimCodeUtil.mo (diff)
The file was modified OMCompiler/Compiler/SimCode/SimCode.mo (diff)
The file was modified OMCompiler/Compiler/Template/CodegenC.tpl (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation_data.h (diff)
Commit 6c4e231c89fcbd6e9dc707c39ea56754644826b2 by adeel.asghar
Read the error from the graphics annotation element (#12353)

Adapt to the new output introduced in #12325
The file was modified OMEdit/OMEditLIB/Modeling/Model.cpp (diff)
Commit 996337bffb75f8b6508c36bd3d18c60f50e20677 by per.ostlund
Fix creation of binding equations from start values (#12354)

- Unpropagate the binding when copying it from the start attribute to
  the component.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFBinding.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSubscript.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFInst.mo (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/UnboundParameter4.mo
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
Commit 337cd0729cb8c5b1d1d101deb5175d705c878fd2 by adrian.pop
update OMSimulator to fix the build on Fedora40 (#12361)

The file was modified OMSimulator (diff)
Commit 7b27e79f64915f007d06da61c1231a0e108ebcc0 by per.ostlund
Instantiate record constructors as functions (#12362)

- Instantiate record constructors as functions, to avoid creating
  binding equations from start values for parameters without bindings.
The file was addedtestsuite/flattening/modelica/scodeinst/RecordConstructor4.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFRecord.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
Commit 5789400a04742b8db73daafef6d7f21d0f1a6d33 by per.ostlund
Improve check for encrypted variables (#12369)

- Consider a component with an encrypted parent to also be encrypted.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFVariable.mo (diff)
Commit 5fa03b48c7967bc68411336e788e04c71058408c by adeel.asghar
Handle prefixing of time units (#12370)

#12352
Fixes the regression introduced in #12221
The file was modified OMPlot/OMPlot/OMPlotGUI/PlotWindow.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/PlotWindowContainer.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/ScaleDraw.h (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/ScaleDraw.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/PlotCurve.h (diff)
The file was modified OMEdit/OMEditLIB/MainWindow.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/Plot.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/PlotWindow.h (diff)
The file was modified OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/PlotCurve.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/PlotPicker.cpp (diff)
The file was modified OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp (diff)
The file was modified OMPlot/OMPlot/OMPlotGUI/OMPlot.h (diff)
Commit a382649393fe0c7b5ed4a9810447bbe0c4262e99 by per.ostlund
Fix type checking of cref binding equations (#12371)

- Handle component references with split indices in
  `TypeCheck.elaborateBindingType`.

Fixes #12367
The file was modified testsuite/flattening/modelica/scodeinst/BuiltinAttribute24.mo (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/BuiltinAttribute25.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFTypeCheck.mo (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/BuiltinAttribute26.mo
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
Commit 42f1a15b28e66fb42574f6bd957b3f78cbaa33d4 by per.ostlund
Fix flattening of if-equations (#12373)

- Flatten the condition of an if-equation branch after evaluating it.

Fixes #12368
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/IfEquation9.mo
Commit aeb2e6716fd64ff9fefaab8902c5bdc61a3f8e04 by adeel.asghar
Instance of non encrypted class inside encrypted class (#12372)

#11718
Hide non encrypted class variables when defined as protected in encrypted class
The file was modified OMCompiler/Compiler/SimCode/SimCodeUtil.mo (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation_data.h (diff)
The file was modified OMCompiler/Compiler/Template/CodegenC.tpl (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/simulation_input_xml.c (diff)
The file was modified OMCompiler/Compiler/NSimCode/NSimCode.mo (diff)
The file was modified OMCompiler/Compiler/SimCode/SimCode.mo (diff)
The file was modified OMCompiler/Compiler/Template/SimCodeTV.mo (diff)
The file was modified OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp (diff)