Skip to content

Changes

Summary

  1. [NB] update multi strong components to have slices (#12586) (details)
  2. Improve Base Modelica output (#12582) (details)
  3. Add error for assignment of iterator (#12591) (details)
  4. Removing EXIT from simulation main function (#12593) (details)
  5. Fix renaming of classes in Windows (#12594) (details)
  6. Add implicitParameterStartAttribute flag (#12595) (details)
  7. [NB] correctly count eqns and vars in minimal tearing (#12600) (details)
  8. [NB] correctly differentiate min and max functions (#12601) (details)
  9. [NB] update initial call cleanup (#12602) (details)
  10. [NB] fix sample in algorithms (#12603) (details)
  11. Mark the dependent models dirty and only update them when needed (#12610) (details)
  12. Ignore protected access in instance API (#12608) (details)
  13. [NB] update state collection for ALWAYS states (#12606) (details)
  14. [NB] better simplification of when equations (#12613) (details)
  15. Improve Ceval.EvalTarget (#12617) (details)
  16. Fix evaluation of call type dimensions (#12618) (details)
  17. [NF] update statement conversion (#12614) (details)
  18. [NB] add array compression after simplify to remove DUMMY equations (#12624) (details)
Commit ac439f6130090504caadcf6e66073e78d95b78d3 by 38032125+kabdelhak
[NB] update multi strong components to have slices (#12586)

* [NB] update multi strong components to have slices

- support slices in multi strong components

* [testsuite] update for new debug output
The file was modified OMCompiler/Compiler/NBackEnd/Util/NBDifferentiate.mo (diff)
The file was modified testsuite/simulation/modelica/NBackend/basics/underdetermined_init.mos (diff)
The file was modified testsuite/simulation/modelica/NBackend/array_handling/simple_for.mos (diff)
The file was modified OMCompiler/Compiler/NSimCode/NSimStrongComponent.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Classes/NBStrongComponent.mo (diff)
The file was modified OMCompiler/Compiler/Util/Pointer.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Modules/3_Post/NBTearing.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Modules/3_Post/NBSolve.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Util/NBSlice.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Modules/1_Main/NBSorting.mo (diff)
The file was modified testsuite/simulation/modelica/NBackend/array_handling/irregular_for.mos (diff)
Commit 32fe465c6ccb705c4dde980288d8fd9bcdefe11c by per.ostlund
Improve Base Modelica output (#12582)

- Add Base Modelica format options to the dumper functions.
- Implement output formats for scalarized, partially scalarized, and non
  scalarized, with and without records.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFStatement.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFComponentRef.mo (diff)
The file was addedtestsuite/openmodelica/basemodelica/PartiallyScalarizedWithoutRecords1.mo
The file was addedtestsuite/openmodelica/basemodelica/ScalarizedWithRecords1.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSections.mo (diff)
The file was addedOMCompiler/Compiler/NFFrontEnd/BaseModelica.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFunction.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFClass.mo (diff)
The file was modified OMCompiler/Compiler/.cmake/meta_modelica_source_list.cmake (diff)
The file was addedtestsuite/openmodelica/basemodelica/NonScalarizedWithoutRecords1.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFBinding.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFVariable.mo (diff)
The file was addedtestsuite/openmodelica/basemodelica/NonScalarizedWithRecords1.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFEquation.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo (diff)
The file was modified OMCompiler/Compiler/Util/Flags.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSubscript.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFComponent.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFDimension.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFClockKind.mo (diff)
The file was modified testsuite/openmodelica/basemodelica/Makefile (diff)
The file was modified OMCompiler/Compiler/Util/FlagsUtil.mo (diff)
The file was addedtestsuite/openmodelica/basemodelica/PartiallyScalarizedWithRecords1.mo
The file was modified testsuite/flattening/modelica/scodeinst/CombineSubscripts3.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFType.mo (diff)
The file was addedtestsuite/openmodelica/basemodelica/ScalarizedWithoutRecords1.mo
The file was modified OMCompiler/Compiler/boot/LoadCompilerSources.mos (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFModifier.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFRecord.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFCall.mo (diff)
Commit 99c80f56c15a966c4f4f0f31e39fcc35fd454593 by per.ostlund
Add error for assignment of iterator (#12591)

- Add error message for assigning for an iterator inside a for-loop.
- Improve the error message for using reinit on an iterator.

Fixes #12585
The file was addedtestsuite/flattening/modelica/scodeinst/ForStatementAssign1.mo
The file was addedtestsuite/flattening/modelica/scodeinst/ReinitInvalid8.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFInst.mo (diff)
The file was modified OMCompiler/Compiler/Util/Error.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFTyping.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
Commit b290aeb83c70de79afbaca592bc66f43f3d222d3 by 38031952+AnHeuermann
Removing EXIT from simulation main function (#12593)

The file was modified OMCompiler/Compiler/Template/CodegenC.tpl (diff)
Commit 26dbf74f274925aa7222dda17612e00f9d1b8448 by adeel.asghar
Fix renaming of classes in Windows (#12594)

Fixes #12567
The file was modified OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp (diff)
Commit c7e502d3f9ce1a397a43f5085dcfed0e82c0be93 by per.ostlund
Add implicitParameterStartAttribute flag (#12595)

- Add `implicitParameterStartAttribute` option to the
  `allowNonStandardModelica` flag to allow fixed parameters with no
  binding or start value and automatically generate start values for
  them.
- Improve `Expression.makeDefaultValue` to optionally take min/max of
  the variable into account when generating the default value.
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
The file was modified OMCompiler/Compiler/Util/Flags.mo (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/UnboundParameter5.mo
Commit 680083da4aa1be3907f7c6df9161bd7dfd5f477b by 38032125+kabdelhak
[NB] correctly count eqns and vars in minimal tearing (#12600)

The file was modified OMCompiler/Compiler/NBackEnd/Modules/3_Post/NBTearing.mo (diff)
Commit 73adf0650416ceb8b9d147a9d1353c22daa64b1e by 38032125+kabdelhak
[NB] correctly differentiate min and max functions (#12601)

- safety update: match list outputs instead of just hoping they have the correct length
The file was modified OMCompiler/Compiler/NBackEnd/Util/NBDifferentiate.mo (diff)
Commit dfa28cb0e954026eb2ff6ebc32d3d67adc193906 by 38032125+kabdelhak
[NB] update initial call cleanup (#12602)

- traverse all equations and not only when conditions (can be anywhere in an if-expression)
The file was modified OMCompiler/Compiler/NBackEnd/Modules/1_Main/NBInitialization.mo (diff)
Commit 65c8813c0991ff87b40d6fb9195a1b2e774bc7e8 by 38032125+kabdelhak
[NB] fix sample in algorithms (#12603)

- correctly collect crefs in sample() calls in algorithms for partitioning and add layer of security with match
The file was modified OMCompiler/Compiler/NBackEnd/Modules/1_Main/NBPartitioning.mo (diff)
Commit 6c0894d7f86e96c7071f03c5aaa4fa68c1efb074 by adeel.asghar
Mark the dependent models dirty and only update them when needed (#12610)

#11926

Avoids calling `getModelInstance` on dependent models. Instead mark them and update when they become active.
This is just a workaround. No performance enhancement is done. We just defer the update operation.
The file was modified OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.h (diff)
The file was modified OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp (diff)
Commit a195f47893454ede90a9312b45b78ee414a7cbc1 by per.ostlund
Ignore protected access in instance API (#12608)

The file was modified OMCompiler/Compiler/NFFrontEnd/NFLookup.mo (diff)
The file was modified testsuite/openmodelica/instance-API/Makefile (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFLookupState.mo (diff)
The file was addedtestsuite/openmodelica/instance-API/GetModelInstanceProtected1.mos
Commit fcb11c0ca189460bf15ca3a475b46fb89fb3d0cc by 38032125+kabdelhak
[NB] update state collection for ALWAYS states (#12606)

- instead of checking if something is a state, check if it has a derivative variable
- something can be a state without having a designated derivative if it is marked as StateSelect.ALWAYS
The file was modified OMCompiler/Compiler/NBackEnd/Modules/2_Pre/NBDetectStates.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Classes/NBVariable.mo (diff)
Commit 261d3c8238999ff5b62844d61428c60f50e1947c by 38032125+kabdelhak
[NB] better simplification of when equations (#12613)

- skip branches that have empty array or false conditions
The file was modified OMCompiler/Compiler/NBackEnd/Classes/NBEquation.mo (diff)
Commit c399c46cca5e460eec9a50fa372246dd624b03d9 by per.ostlund
Improve Ceval.EvalTarget (#12617)

- Simplify EvalTarget by changing it from multiple records that indicate
  the context to a single record with an InstContext field like the rest
  of the frontend uses, to make it possible to better determine the
  context of the expression being evaluated.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFCall.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFEvalConstants.mo (diff)
The file was modified OMCompiler/Compiler/Script/NFApi.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFDimension.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSubscript.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFunctionDerivative.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFTyping.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFCeval.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFArrayConnections.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSBGraphUtil.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFEvalFunction.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFPackage.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFBuiltinCall.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpandExp.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSimplifyExp.mo (diff)
Commit 53a0a895767d5732e95f94d653e72cd0168e1bda by per.ostlund
Fix evaluation of call type dimensions (#12618)

- Mark dimension expressions as structural when evaluating the type
  of a function call, to avoid having them be marked as non-structural
  when they depend on external functions.

Fixes #12605
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/DimUnknown16.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFCall.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/FuncUnknownDim3.mo (diff)
Commit 537f41ed82d8d99a8adfcb4359b1dc6aad5bd6ed by 38032125+kabdelhak
[NF] update statement conversion (#12614)

- update it to have the correct structure if there is only one branch with condition "true"
The file was modified OMCompiler/Compiler/NFFrontEnd/NFConvertDAE.mo (diff)
Commit 8ede3345578b606f960630e68dad5bc187eb2cf9 by 38032125+kabdelhak
[NB] add array compression after simplify to remove DUMMY equations (#12624)

- dumping updates
The file was modified OMCompiler/Compiler/NBackEnd/Classes/NBackendDAE.mo (diff)
The file was modified OMCompiler/Compiler/NBackEnd/Classes/NBEquation.mo (diff)