small fix for typo in event iteration of cpp simulation runtime
1 lines of code changed in 1 file:
Added support to the adevs code generator for mixed nonlinear systems.
48 lines of code changed in 2 files:
- Implemented constant evaluation of Lapack external functions.
- Fixed dimension count in cat_alloc_real_array for less division by zero.
- Added test case Modelica.Math.Matrices.LAPACK to test Lapack functions.
- Updated test suite.
46335 lines of code changed in 15 files:
Added new Euler methods to cpp simulation runtime
1161 lines of code changed in 14 files:
- C comments not C++ comments in a C file
- set some vars to 0.
5 lines of code changed in 2 files:
Fixes for BUG: #1370
- Compiler/susan_codegen/SimCode/SimCodeC.tpl
+ fixed iterators for functions not returning anything (added empty)
+ added more comments to the C code to understand where are things coming from (we can remove them later)
+ changed the order in which we evaluate function arguments and function variable declarations
+ changed the order in which we evaluate external function: vardecl->bivar->extArgs.
+ removed duplicates in the list map of extFunCallVarcopyF77
+ changed handling of default value in extFunCallBiVarF77
+ fixed handling of modelica_string send to Fortran (should not be prefixed by &)
+ changed algStmtTupleAssign to have a preExp and afterExp (before the preExp in
writeLhsCref was never unparsed anywhere as <%preExp%> was before it??!!)
+ scalarLhsCref used daeExpCrefRhs??!! which was rather totally wrong
for anything besides scalar component references; now it uses a new daeExpCrefLhs
which has the causality reversed (for some parts as I haven't implemented all cases).
+ all *Lhs* templates now take an afterExp buffer instead of preExp to do more things
after the actual statement (such as array slicing, etc); used in heavily in
Modelica.Math.Matrices.mos, i.e.
(eigenvalues[:, 1],eigenvalues[:, 2],eigenvectors, info) := LAPACK.dgeev(A);
first we bind the call outputs to temps, then update the arrays slices using
indexed_assign_<%type%> as an afterExp.
- more error messages in the array handling inside c_runtime
- added test to test Lapack and BUG #1370 in testsuite/mosfiles/TestLapack.mos
- added test to test Modelica.Math.Matrices in testsuite/libraries/msl31/Modelica.Math.Matrices.mos
- moved main from functions to the actual generated code for the model.
- add SimCodeAdevs.mo to testsuite/bootstrapping/LoadCompilerSources.mos
- all tests go.
3065 lines of code changed in 12 files:
- meaningful error message.
1 lines of code changed in 1 file:
- add the template also so people that do not have an OMC already compiled can actually compile OMC.
43715 lines of code changed in 1 file:
First working version of the backend for adevs
6879 lines of code changed in 4 files:
c_runtime
- merged libsim and libc_runtime into libSimulationRuntimeC
- renamed some of the functions in c_runtime fortran generated files to
avoid name collision. this also helps to avoid multiple definitions when
we link with blas and lapack. We should really get rid of the fortran
generated files and link directly with blas and lapack.
- removed main.o from libf2c/makefile.mingw (to avoid multiple main definitions)
- now libSimulationRuntimeC does not have a main anymore, the main function is
generated with the model and calls _main_SimulationRuntime.
- libSimulationRuntimeQss is now generated instead of libsim_ompd
config.h
- remove -lc_runtime from LD flags and added it to SimCodeC.tpl instead
because in the Qss case we need different lib (libSimulationRuntimeQss)
SimCode.mo
- toupper from external function language specification as it
appears as Fortran 77 in Modelica.Math.Matrices.LAPACK, but
we only compared it with FORTRAN 77 in SimCodeC.tpl
SimCodeC.tpl
- do not use const in SIMEXTARGSIZE as they can appear both as sizeof(A, 1) and as a variable
which was bound to size, and we get different external definition in for example:
Modelica.Math.Matrices.LAPACK.dgeev and Modelica.Math.Matrices.LAPACK.dgeev_eigenValues
- make union of external function arguments when we generate temporary declarations as
some of the arguments may be twice and we have then two temporary definitions, i.e.
external "Fortran 77" dgeev("N", "V", n, Awork, n, eigenReal, eigenImag,
eigenVectors, n, eigenVectors, n, work, size(work, 1), info)
here we had eigenVectors defined twice!
SimCodeFMU.tpl
- fixed the hardcoded windows paths
SimCodeQss.tpl
- linking now with -lSimulationRuntimeQss
SimCodeTV.mo
- added Util.listUnion to the type view.
System_omc.cpp
- added System.toupper
System_rml.c
- fixed the '\0' at the end of the string in System.toupper
- updated the Makefiles everywhere.
5869 lines of code changed in 29 files:
- Fixed type mismatch errors for checkModel in Modelica.Media.
- Updated Modelica.Media test case.
535 lines of code changed in 2 files:
- more complains :)
17 lines of code changed in 1 file:
- Fix last commit
2 lines of code changed in 2 files:
- omniORB configuration
2 lines of code changed in 2 files:
- update SVN props.
1 lines of code changed in 1 file:
- some updates to some readmes.
60 lines of code changed in 2 files:
improved the testsuit up to 8 failures
added custom error messages in the lexer
fixed problem with the parser related with memory segmentation fault
2440 lines of code changed in 12 files:
Renaming Simulator class to SimulatorQSS
8 lines of code changed in 6 files:
tested the Linux/unix FMI export
22 lines of code changed in 1 file:
- added workaround for algorithms from modelicaML models
- added also a testcase for that issue
649 lines of code changed in 11 files:
more rules added, redesign of part of the grammar
46 lines of code changed in 1 file:
version of lexer with warning for real
410 lines of code changed in 1 file:
Added linux compilation commands to FMU makefile.
52 lines of code changed in 1 file:
Updated FMI Modules. Simple models without events are working now. Removed try catch from fmu_model_interface.c as its not standard C.
45 lines of code changed in 4 files:
back to the older version since the error handling doesnt work well with the optimization of last commit
4 lines of code changed in 1 file:
discussion for starting OMCCp Java
0 lines of code changed in 1 file:
- Added boxing of arrays to Types.typeConvert to fix the 'setState_pTX not
found' errors.
- Added ten more working or partially working models to the Modelica.Media test
case.
1692 lines of code changed in 2 files:
- Moved the meta/MatchCaseInteractive2 test to failing tests, so that the
testsuite is 100% working.
2 lines of code changed in 2 files:
- Fixed invalid type in BackendDAETransform.
- Updated testsuite.
543 lines of code changed in 4 files:
more rules fixed, now 10 errors on the test suite
33 lines of code changed in 1 file:
added real with dot in the beginning and fixed strings with escape \
4 lines of code changed in 1 file:
- Updated Modelica.Media test.
301 lines of code changed in 1 file:
- Fixed stack overflow for Modelica.Media.IdealGases.Common.SingleGasNasa, see
added comments in SCodeFlattenRedeclare for explanation of the fix.
- Added test case redeclare/RedeclareBaseClass1 and removed duplicate test
redeclare/RedeclareFunctionBug1432.
243 lines of code changed in 7 files:
changed recursion on the function printTokens
6 lines of code changed in 1 file:
fixed more rules
7 lines of code changed in 1 file:
lexer optimized
31 lines of code changed in 4 files:
fixed problem with escape double quote in strings
2 lines of code changed in 1 file:
- small improvements to Relation.mo
145 lines of code changed in 1 file:
fixed more grammar failures in the test suite, now it fails only in 21 cases
24 lines of code changed in 1 file:
- update new index reduction method
405 lines of code changed in 6 files:
- Get rid of annoying types.
5414 lines of code changed in 11 files:
- updated C# template
- fix C template: use Util.escapeModelicaStringToCString() (instead System.escapeString()) to escape also \n in comments of SIMVARs in globalDataVarInfoArray() template
1074 lines of code changed in 4 files:
- found another bug in the RML compiler, it doesn't check for duplicate names, just takes the last one.
3 lines of code changed in 1 file:
- a generic relation Relation.mo between two objects.
178 lines of code changed in 1 file:
A NEW OMDEV and RML (2.5.0 revison 209) is needed for this (svn up or wait for your update)
- generic AvlTree.mo (not tested yet, but it compiles fine)
- small additions to Pool.mo
- some more stuff in Util.mo
- note that these generic files are not yet added to the Makefile.common, will come soon more.
1170 lines of code changed in 3 files:
- Print attributes for derived classes in SCodeDump.
1 lines of code changed in 1 file:
added fix for FINAL before elementspec
21 lines of code changed in 1 file:
fixed shift reduce conflict in class variable with FINAL terminal
18 lines of code changed in 1 file:
- YOU WILL NEED A NEW OMDev (svn up) or a new RML (svn up or wait for update) for this!
- Added Pool.mo as a generic Pool of objects.
- I've not added Pool.mo to the Makefiles yet, will come in a next commits.
502 lines of code changed in 2 files:
- Use the tmp-path returned by OMC instead of making up your own...
13 lines of code changed in 5 files:
Adding simulation_input_xml to the object list of the QSS runtime
1 lines of code changed in 1 file:
OPC interfaces documentation improvements and pdf's.
0 lines of code changed in 4 files:
added more rules
22 lines of code changed in 1 file:
added missing files for loading
4 lines of code changed in 1 file:
- Don't create OMNotebook_tempfiles directory anymore (unused)
0 lines of code changed in 1 file:
- bugfix getIndexReductionMethod
3 lines of code changed in 3 files:
- minor changes to reduceIndexDummyDerX
7 lines of code changed in 1 file:
- Use configured flags
2 lines of code changed in 1 file:
OPC interfaces documentation.
4779 lines of code changed in 4 files:
more annotations added to comments
fixed cref with arraySubscripts
3 lines of code changed in 1 file:
- Updated ParseFullModelica3.1 test case.
115 lines of code changed in 1 file:
- Some SCodeDependency fixes for modifiers and derived classes.
37 lines of code changed in 4 files:
- Added fixes from MSL 3.1-MediaFix to MSL 3.1.
116 lines of code changed in 13 files:
- Added more error checking for size.
235 lines of code changed in 7 files:
- make parameter standardOrderComponents in BaseProperties replaceable!
39 lines of code changed in 3 files:
- bugfix fmi, set and get real variables
- ling FMU not with interactive
4 lines of code changed in 3 files:
Add list of string in SimVar, for the number of element in array
2457 lines of code changed in 4 files:
Fix for calculate zero crossing index in collectZC and collectZCAlgs
84 lines of code changed in 1 file:
- change MIXEDEQUATIONSYSTEM, now it is easier to handle algorithm and arrayequations in compination with discrete equaitons
138 lines of code changed in 9 files:
- add type for MIXEDEQUATIONSYSTEM to StrongComponent
468 lines of code changed in 10 files:
- Check for expat.h
14 lines of code changed in 2 files:
- use flag for debug print in reduceIndexDummyDerX to run testsuite
57 lines of code changed in 2 files:
- add error msg for expressions "der(der(DAE.CREF(_))", see Bug [#1551]
8 lines of code changed in 1 file:
- Fix list() command
1 lines of code changed in 1 file:
- enable optimisation module constantLinearSystem by default, passed testsuite without errors
1 lines of code changed in 1 file:
- bugfix constantLinearSystem, works now for model from bugtracker
11 lines of code changed in 1 file:
- Some changes in the toolTip functionality.
- Changed the size of mainwindow to 800*600.
- Changed the solver runge-kutta to rungekutta.
- Added the variable filter option in simulation process.
42 lines of code changed in 9 files:
- configure: Added flag with-static-sqlite
37 lines of code changed in 5 files:
- add fmi feature dynamic external function, for more information have a look at https://www.modelica.org/events/modelica2011/Proceedings/pages/papers/14_3_ID_162_a_fv.pdf
2840 lines of code changed in 9 files:
New tests for non-expanded arrays
73 lines of code changed in 5 files:
- .pro.user files should not be in Subversion as they are different for each user.
- add OMPlotLib.pro to OMTools.pro
2 lines of code changed in 6 files:
- Don't link with -lregex on Linux.
1 lines of code changed in 1 file:
- link with -lregex and -lexpat on Linux too.
1 lines of code changed in 1 file:
- BIG CHANGE!
- generate Model_init.xml instead of Model_init.txt
- clean objects in Model.makefile before compiling (Make doesn't seem to get that
Model.c is newer than Model.o if we issue two simulate commands for the same model,
even if the model changed via loadFile.)
- check the result of fflush in systemimpl.c and printimpl.c
- fflush in c_runtime/linearize.cpp
- added c_runtime/simulation_input_xml.h and cpp to read the Model_init.xml file.
- link the generated code with the XML parser library -lexpat as libc_runtime needs it now
- Model.c and Model_init.xml will now contain a GUID which is used in c_runtime/simulation_input_xml.cpp
to check if the Model_init.xml is matched with Model.c (Model.exe)
- The Model_init.xml is based on FMI but with much more information that we need for OMC.
- The Model_init.xml file it has no schema yet as it may change in the near future to include
more things that are now static in the generated code (Model.c). This will make compilation
of generated code faster.
- disabled testsuite/interactive-simulation/runInteractiveSimulation.mos and added only a
compilation test (more work is needed to make the run test more robust).
- updated tests and compiler files with the name change from _init.txt to _init.xml.
9288 lines of code changed in 50 files:
May 2011 »