Skip to content

Changes

Summary

  1. Singelton ut containing non singelton ut are treated as singeltons (#914) (details)
  2. Correct installPackage name in help text (details)
  3. Updated libraries (details)
  4. [NF] Improve/cleanup expression traversal functions. (details)
  5. [NF] Improve structural parameter handling. (details)
  6. link sundials statically on mingw in cvode_solver.h (details)
  7. Updated libraries (details)
  8. [NF] Retype conditional array expressions. (details)
  9. [NF] Clean up Flatten. (details)
  10. [BE] jacobians: make residual names unique (details)
  11. [NF] Fix subscripting of boxed/unboxed expressions. (details)
  12. Updated libraries (details)
  13. MinGW & other minor fixes (details)
  14. [Flat] Use toFlatString also on clock constructors (details)
  15. Add Cvode Documentation (details)
  16. [Flat] Use loop keyword for while loops (details)
  17. Handle preExp and varDecls for crefs with subs. (#923) (details)
  18. [OSX] Check dylib and binaries for relative paths (#916) (details)
  19. Add more language standards. (details)
  20. [NF] Add promote as experimental operator. (details)
  21. Updated libraries (details)
  22. Update OMSimulator (#931) (details)
  23. Only push library updates when the build is stable (details)
  24. [Flat] Fix output of external functions (details)
  25. Update OMSimulator (#938) (details)
  26. [NF] Initial handling of ragged dimensions. (details)
  27. ticket:5927 fix the crash in linearization for Matlab (details)
  28. Update OMSimulator (#941) (details)
  29. add some sanity checks for CI/Build MINGW (details)
  30. fix crash when displaying an error message (details)
  31. Minor cleanup and commenting. (#940) (details)
  32. Update code quoting of identifiers (details)
Commit 2ce7786d38a8eb731e96948eaf3cd1404bfcb957 by JKRT
Singelton ut containing non singelton ut are treated as singeltons (#914)

* Singelton ut containing non singelton ut are treated as singeltons
The file was modified testsuite/metamodelica/meta/Makefile (diff)
The file was modified OMCompiler/Compiler/FrontEnd/InstMeta.mo (diff)
The file was addedtestsuite/metamodelica/meta/UniontypeNestedSingelton.mo
The file was addedtestsuite/metamodelica/meta/UniontypeNestedSingelton.mos
Commit d3af00cfa4b2c0dee9eb471b5e1fb5c1f48cb8c4 by Martin Sjölund
Correct installPackage name in help text
The file was modified OMCompiler/Compiler/FrontEnd/ClassLoader.mo (diff)
Commit bb23e344b5735f7a833e64a8cce53a457de5ef34 by adrian.pop
Updated libraries
* libraries b1581bc...7e73535 (1):
  > update MEV to v1.0.1
The file was modified libraries (diff)
Commit a87a6a00b8eb8bf054697040fe03dd82b9cca61f by perost86
[NF] Improve/cleanup expression traversal functions.

- Implemented Expression.applyShallow.
- Moved some traversal utility functions to the modules for the types
  they traverse, i.e. ComponentRef, Call, etc.
- Moved Expression.ClockKind and its functions to a separate file.
- Fixed apply for typed reductions, which would only apply the function
  to the default and fold expressions without traversing into them.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFCall.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFBuiltinCall.mo (diff)
The file was addedOMCompiler/Compiler/NFFrontEnd/NFClockKind.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFComponentRef.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/boot/LoadCompilerSources.mos (diff)
Commit 7f3cfc001abf1ad42a7d92f9adfc489cc71238d9 by perost86
[NF] Improve structural parameter handling.

- When marking a size expression as structural, don't mark the
  expression in it since only the size of the expression is needed.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFInst.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/const7.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/Ticket5821.mo (diff)
Commit e2e0cade91c4a4f427bce83ccb60fc54f72667f5 by adrian.pop
link sundials statically on mingw in cvode_solver.h
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/cvode_solver.h (diff)
Commit ed49d5fbb07b1dff1da9180707c48a77e98a7bd4 by User Hudson
Updated libraries
* libraries 7e73535...c3edc70 (1):
  > Bump libraries
The file was modified libraries (diff)
Commit 8066773f1271a822d7c57f012a874be5ef2b75e4 by perost86
[NF] Retype conditional array expressions.

- When doing branch selection on if-expressions where the branches have
  different dimensions, also do branch selection on the type of the
  if-expression.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFType.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFEvalConstants.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
Commit 302444fe3b4cfc033d27a5beb12ba39ade52c835 by perost86
[NF] Clean up Flatten.

- Pass the scalarize flag as a bool where it's needed instead of looking
  up the value of the flag over and over.
- Split the array vectorization off to a separate function to make the
  code cleaner and avoid having to check whether to run the code for
  every array element.
- Simplify binding handling in Flatten.flattenClass.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
Commit 680787704f2ff2ec2b48df4c95a680be2fae3adb by Abdelhak Karim
[BE] jacobians: make residual names unique

- make jacobian residual variables unique and use the name
- avoids discarding them while differentiating in the case of nested jacobians
The file was modified testsuite/simulation/modelica/start_value_selection/asmaFlow.mos (diff)
The file was modified OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo (diff)
The file was modified testsuite/simulation/modelica/initialization/homotopy2.mos (diff)
The file was modified testsuite/openmodelica/debugDumps/optdaedump.mos (diff)
The file was modified testsuite/openmodelica/debugDumps/symjacdump.mos (diff)
The file was modified testsuite/simulation/modelica/commonSubExp/cseFunctionCall8.mos (diff)
The file was modified testsuite/simulation/modelica/tearing/dynamicTearing2.mos (diff)
The file was modified testsuite/simulation/modelica/commonSubExp/wrapFunctionCalls11.mos (diff)
The file was modified testsuite/openmodelica/debugDumps/dumpSparsePatternLin.mos (diff)
The file was modified testsuite/simulation/modelica/commonSubExp/cse1.mos (diff)
The file was modified testsuite/simulation/modelica/commonSubExp/cse3.mos (diff)
Commit b0f5ccc09144aed248f4155cce8dca042b5191ba by perost86
[NF] Fix subscripting of boxed/unboxed expressions.

- Handle boxed types in Type.subscript.
- Add assertion in Type.subscript to catch unhandled types.
- Add special rules for unboxed/boxed values in
  Expression.applySubscript that subscripts the expressions they contain
  instead of creating unnecessary SUBSCRIPTED_EXPs.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFType.mo (diff)
Commit 7aad7a2dd17bb73efc50e6e39b690d248824dfcf by User Hudson
Updated libraries
* libraries c3edc70...06f38e4 (1):
  > Bump libraries
The file was modified libraries (diff)
Commit 8a46f61d4467ff1bc3ed355b65decef60eff7cbb by adrian.pop
MinGW & other minor fixes
- more homogenous handling of LINK_SUNDIALS_STATIC for ida_solver, cvode_solver and radau
- signal that we link with static fmilib in FMICommon.h (define FMILIB_STATIC_LIB_ONLY)
- more debugging in testsuite/simulation/libraries/common/ModelTesting.mos
- change Util.absoluteOrRelative to check for the relative path and if
  it doesn't exist return the original path to generate better error
  messages
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/ida_solver.c (diff)
The file was modified OMCompiler/Compiler/Util/Util.mo (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/cvode_solver.c (diff)
The file was modified testsuite/simulation/libraries/common/ModelTesting.mos (diff)
The file was modified OMCompiler/SimulationRuntime/c/fmi/FMICommon.h (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/ida_solver.h (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/radau.h (diff)
The file was modified OMCompiler/SimulationRuntime/c/simulation/solver/cvode_solver.h (diff)
Commit 605b4b49c64c897cccef9d765c931d3116272d18 by Martin Sjölund
[Flat] Use toFlatString also on clock constructors
The file was modified OMCompiler/Compiler/NFFrontEnd/NFClockKind.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
Commit c16c232eab0fd85863a472a26a61d5c481157594 by Heuermann Andreas
Add Cvode Documentation

  - Also fixed wrong order in tooltip
The file was modified doc/UsersGuide/source/solving.rst (diff)
The file was modified OMCompiler/SimulationRuntime/c/util/simulation_options.c (diff)
Commit 4da8d489ad468a14c37dd633796fa2359da25652 by Martin Sjölund
[Flat] Use loop keyword for while loops
The file was modified OMCompiler/Compiler/NFFrontEnd/NFStatement.mo (diff)
Commit 8d5b5cdc056273e8268bdf96614a57a8ba5b8dbc by Mahder Gebremedhin
Handle preExp and varDecls for crefs with subs. (#923)

* Handle preExp and varDecls for crefs with subs.

  - We used to throw away any extra expressions and variable declarations
    needed for it, i.e., if it has some complicated subscript that can not
    be generated inline.

  - If you are sure you have a path (a cref with no subs) then you can use
    contextCrefNoPrevExp (e.g variable names are just paths. They are just
    represented as cref). Otherwise contextCref now needs a preEx and varDecls
    buffer passed to it.

* Fix wrong ordering of buffer arguments.

* Avoid unnecessary code generation.

  - This fixes ticket:5994.

  - The path we took for crefs with subscripts in function context
    used to create unnecessary temporaries and exps which we did
    not notice because they were were thrown away after being created.

  - Split up the function to take different paths for normal and parallel
    functions.

* Add a test case for Ticket:5994.
The file was modified OMCompiler/Compiler/Template/CodegenCFunctions.tpl (diff)
The file was addedtestsuite/simulation/modelica/arrays/ticket_5994.mo
The file was addedtestsuite/simulation/modelica/arrays/ticket_5994.mos
The file was modified OMCompiler/Compiler/Template/CodegenC.tpl (diff)
The file was modified testsuite/simulation/modelica/arrays/Makefile (diff)
Commit 3dfb7ad24f9b75143a1df8c8c1a4a15570659c3b by Martin Sjölund
[OSX] Check dylib and binaries for relative paths (#916)

* Check dylib and binaries for relative paths
* Fix dylib IDs, rpath, etc in various places
* Add sanity check for OMEdit (OSX only; check that OMEdit --help works)

Co-authored-by: AnHeuermann <andreas.heuermann@liu.se>
The file was modified OMCompiler/SimulationRuntime/c/Makefile.common (diff)
The file was modified Jenkinsfile (diff)
The file was modified OMCompiler/Makefile.common (diff)
The file was modified OMCompiler/Makefile.omsi.common (diff)
Commit 6ea769e8cc44f48852a3689822cc7e082f807a18 by perost86
Add more language standards.

- Add 3.4, 3.5, and experimental as language standards.
- Change LanguageStandard.latest to mean 3.4.
The file was modified OMCompiler/Compiler/Util/Config.mo (diff)
The file was modified OMCompiler/Compiler/Util/Flags.mo (diff)
Commit 63b9017bf7667c370d84e182bf153e09f0373c04 by perost86
[NF] Add promote as experimental operator.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFBuiltinCall.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/Makefile (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/FuncBuiltinPromoteInvalid1.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFunction.mo (diff)
The file was modified OMCompiler/Compiler/Util/Error.mo (diff)
The file was addedtestsuite/flattening/modelica/scodeinst/FuncBuiltinPromote.mo
The file was modified OMCompiler/Compiler/NFFrontEnd/NFModelicaBuiltin.mo (diff)
Commit 394208816b710a67384588ee3e3bdaeab6c00fe1 by User Hudson
Updated libraries
* libraries 06f38e4...2ba40eb (1):
  > Bump libraries
The file was modified libraries (diff)
Commit 4c4da67cb431934d5eda60471d87909cc8a482ec by Lennart Ochel
Update OMSimulator (#931)

The file was modified OMSimulator (diff)
Commit 8bc748e02f0fd46fd5f68a459e3c337324609b70 by Martin Sjölund
Only push library updates when the build is stable
The file was modified libraries (diff)
The file was modified Jenkinsfile (diff)
Commit 73099f976250697791d7886082096948ccdeae03 by Martin Sjölund
[Flat] Fix output of external functions
The file was modified OMCompiler/Compiler/NFFrontEnd/NFSections.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFunction.mo (diff)
The file was modified OMCompiler/Compiler/FrontEnd/SCodeDump.mo (diff)
Commit 3c641e93265f62c7cb22468539c2c20dcd30b8c4 by Lennart Ochel
Update OMSimulator (#938)

The file was modified OMSimulator (diff)
Commit 4c810914c0d6489e340811cdc6457f47e061acd4 by perost86
[NF] Initial handling of ragged dimensions.
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFCeval.mo (diff)
The file was modified testsuite/flattening/modelica/scodeinst/DimRagged1.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFTyping.mo (diff)
Commit aa8c12eb21b1eab354a9ac30284a82703ad573e8 by adrian.pop
ticket:5927 fix the crash in linearization for Matlab
- %g was given a string
- remove trailing spaces before \n in CodegenC.tpl
- update test
The file was modified testsuite/openmodelica/linearization/test_dump_languages.mos (diff)
The file was modified OMCompiler/Compiler/Template/CodegenC.tpl (diff)
Commit 4c6e2428b68023630a854ede6b8b4b58e0b03378 by Lennart Ochel
Update OMSimulator (#941)

The file was modified OMSimulator (diff)
Commit aa7b2e460750549c0ce53b185750fe43fa189d3e by adrian.pop
add some sanity checks for CI/Build MINGW
- make sure the compiler can build and simulate a simple model with C, C++ and that an FMU can be build
- check that linearization works (for matlab)
- check that OMEdit can start (not missing any dlls)
- add a script to test the sanity, don't build it on the fly as escaping in Windows is alien technology
- build more stuff in parallel for mingw/msvc (via all-runtimes target)
The file was modified OMCompiler/Makefile.omdev.mingw (diff)
The file was modified Makefile.omdev.mingw (diff)
The file was modified .CI/common.groovy (diff)
The file was modified OMCompiler/Makefile.omsi.common (diff)
The file was addedtestsuite/sanity-check/testSanity.mos
Commit 775e048a11c31f37b93b22ea9e1830ce598cb2b8 by adrian.pop
fix crash when displaying an error message
to test:
- git clone https://github.com/OpenModelica/BUAVSystem.git
- build model:
  BUAVSystem.Examples.ValidationCases.IntegratedSystemValidationMar6
- crashes in:
  RemoveSimpleEquations.mo:3156 because "str "is defined only on one branch
The file was modified OMCompiler/Compiler/BackEnd/RemoveSimpleEquations.mo (diff)
Commit ca04e3746a0831beb0b30ae60597a254626ef307 by Mahder Gebremedhin
Minor cleanup and commenting. (#940)

- Added comments for record handling template functions.

  - Removed generation of unused record utility function
    `recordCopyFromVars` which was used to assign to 'record'
    in simulation contexts. Assigning to record in simulation
    context is now handled by splitting the assignment (recursively)
    to each element instead.
The file was modified OMCompiler/Compiler/Template/CodegenCFunctions.tpl (diff)
Commit 1a972c010c1940728280a7ffb3d5a133d3e30f24 by Martin Sjölund
Update code quoting of identifiers

* No longer crashes on odd quoted identifiers that do not end with '
* Identifiers can now be reversed again (to see the actual name in the debugger)
The file was modified testsuite/flattening/modelica/mosfiles/QuotedFunction.mo (diff)
The file was modified OMCompiler/Compiler/runtime/systemimpl.c (diff)
The file was modified OMCompiler/Compiler/Util/System.mo (diff)