July 2010 Commit Log

Number of Commits:
83
Number of Active Developers:
12
Frenkel TUD 2010-07-30 21:07 Rev.: 5886

- Exp.mo
- add function expLastSubs
- DAELow.mo and VarTransform.mo
- extend arrays if elements of the array has to be replaced

109 lines of code changed in 3 files:

ppriv 2010-07-26 19:01 Rev.: 5881

- fixes to make slicing like
a[1,:] := a[:];
and/or
a[2:3,2] := x[2:3];
work:
- fixed code in indexed_assign_real_array(), index_real_array() and index_alloc_real_array()
- fixed daeExpCrefRhsIndexSpec() template to generate "zero" dimension size for scalar subscripts for INDEX case:
(0), make_index_array(1, <%expPart%>), 'S'
- added test ArrayAssignWholeDim.mo; but it should be moved to mosfiles to ensure C-runtime invocation
TODO: the same should be done for integer_array.c; then the character slice coding, i.e. 'S','A','W', can be removed entirely;
or, perhaps, the slicing operation can be generated inline as appropriate nested for loops (I'll do that for C# generator, then it may be ported back to C++)
- fixed daeExpAsub() template for _get_1D() .. _get_4D() constant index cases ... decremented indexes, because the _get_#D() functions works with zero based indexes
- commented out #include "utility.h" in simulation_events.cpp to enable debugging in Visual Studio
- added NO_INTERACTIVE_DEPENDENCY macro switch used in simulation_runtime.cpp for simpler compilation of simulation runtime in Visual Studio
- added SimCode.cref2simvar(ComponentRef,SimCode)->SimVar function and daeLow field into SimCode.SIMCODE record to enable lookup of representation arrays in templates (C#);
note that only cref2simvar() is visible from templates, but not the daeLow field which is not added to SimCodeTV.mo;
the function needs a SimCode value as a whole, so the implementation is effectively hidden from templates' viewpoint;
BUT, this is only a workaround for the lack of the needed information in component references themselves (hope they will have it in the future);
see usage of cref2simvar() in SimCodeCSharp.tpl
- added extern int const specifiers in functionStoreDelayed C++ template to resolve a link problem in VC++
- renamed local identifiers named cref to cr or ecr (ecr when of type DAE.Exp) in the C++ templates to disambiguate them from cref() template name (will be checked in the future; now value binding names and template names has separate name scopes, but that will be changed in the next versions of Susan);
maybe the cref() template should be renamed to compRef() because there exist fields named cref in SimCodeTV.mo
- simplified several constructs like '<%val%>' to just val and/or like (libs |> lib => lib) to just (libs) in C++ templates
- re-factored some case clauses when they shared the same then part (Susan can have "or" cases,e.g.: case PAT1 case PAT2 case PAT3 then tplExpr ... where the same tplExpr is lexically used for every given case)
- renamed subscriptsTpl() and subscriptTpl() templates to more suitable names subscriptsStr() and subscriptStr()
- added many improvements in C# code generator
- changed some make commands for Susan/C# codegen testing
- added testmo make command to Makefile.common

11078 lines of code changed in 16 files:

asodja 2010-07-23 13:06 Rev.: 5880

Added output of results into a MAT-file that Dymola is able to read, so
Dymola's variables' browser can be used.
Specifications of Dymola's output format are described in Dymola User's Guide.

Currently is this outputFormat designated as "mat", but should be changed
(as there is no need to have output to MAT-file only formatted according
to Dymola).

360 lines of code changed in 4 files:

sjoelund.se 2010-07-22 15:04 Rev.: 5877

- 08_pam: Disable Input.read due to OpenModelica trying to ceval the external function

11 lines of code changed in 1 file:

perost 2010-07-22 10:45 Rev.: 5876

- Fixed constant evaluation of for iterators.
- Added test case ForIf.

29 lines of code changed in 3 files:

perost 2010-07-21 17:20 Rev.: 5875

- Fixed expected output of test case PID_Controller.

2 lines of code changed in 1 file:

perost 2010-07-21 13:53 Rev.: 5874

- Added testcase ReinitArray from mathcore.

32 lines of code changed in 2 files:

petar 2010-07-21 11:28 Rev.: 5873

-removed __inline when compiling with visual studio, because it can not cope so well with inline in combination with extern, causing linking error.

1 lines of code changed in 1 file:

perost 2010-07-21 09:39 Rev.: 5872

- Fixed small mistake in instantation of reinit statements.

1 lines of code changed in 1 file:

petar 2010-07-20 17:20 Rev.: 5871

-Fixed bug with infinite recursion when trying to constant evaluate parameter that has no binding (must be allowed when e.g. checking models). Testcase in multibody/checkingModels/BodyCylinder.mos

8392 lines of code changed in 5 files:

petar 2010-07-20 17:05 Rev.: 5870

-Added error message for structurally singular equation (e.g. 0=0). Before we only had message for structurally singular system.

3 lines of code changed in 1 file:

petar 2010-07-20 11:22 Rev.: 5869

-Added ClassInf.State to the Prefix information so at least the state is part of ET_COMPLEX information in DAE.VAR. Note that list of variables in ET_COMPLEX is still missing (this is a little bit of the chicken and egg problem, since the type can not be properly filled in before the type of the class is known). However, by at least having ClassInf.State in ET_COMPLEX one can distinguish between e.g. connector variables and other variables in the backend. Also note that for expressions in equations and algorithm the ExpType is correctly filled with type information, since those are elaborated first when the components have been instantiated (and their types are known), so the above is only concerning DAE.VAR objects.

33 lines of code changed in 4 files:

perost 2010-07-19 15:01 Rev.: 5868

- Fixed test case AlgorithmForInClass that was broken by commit 5859 by fixing
the lowering of for statements.
- Fixed bug #1236, constant evaluation of product in nested for iterators.
- Implemented constant evaluation of empty ranges in reductions.
- Extended sum reductions to also handle vectors, matrices and strings.
- Use correct type for the iterator variable.
- Extended the ConstantReductions test case to also test the new
functionality.

181 lines of code changed in 5 files:

adrpo 2010-07-18 22:59 Rev.: 5867

- new releases of qt clients OM* and some other small changes

8 lines of code changed in 8 files:

Frenkel TUD 2010-07-18 19:32 Rev.: 5865

- SimCode.mo
-collate crefs of arrays before template code generation
- DAELow.mo
-add function collateAlgorithm, collateArrExpm, traversingcollateArrExp
- SimCode/SimCodeC.tpl
- improve template algStmtTupleAssign to generate code for functions return arrays

588 lines of code changed in 4 files:

Ariel.Liebman 2010-07-16 07:08 Rev.: 5864

changed #include <Qt/qdom.h> to #include <QtXml/qdom.h>. Caused problem in compilation of OMNotebook

4 lines of code changed in 1 file:

Frenkel TUD 2010-07-15 17:00 Rev.: 5863

- Exp.mo
- simplify array of array * array with simplifyScalarProduct

28 lines of code changed in 1 file:

Frenkel TUD 2010-07-14 23:00 Rev.: 5859

- DAELow.mo
- extend arrays in algorithms
- fix bug DAE.STMT_ASSIGN_ARR results in error " Too few equations, underdetermined system. The.."
- SimCode.mo
- check index of array to test singleAlgorithmSection
- ToDo: SimCodeC.tpl array = f(...), (array,array) = f(...)

63 lines of code changed in 2 files:

perost 2010-07-13 16:58 Rev.: 5857

- Moved valueExp from Static to ValuesUtil.
- Added a new cevalIfConstant function to Ceval, and removed the old one from
Static.
- Removed calls to cevalIfConstant in Static, and added calls to cevalIfConstant
to Inst, Interactive and Mod where appropriate.
- Updated testcases due to changes in constant evaluation.

2244 lines of code changed in 61 files:

adrpo 2010-07-13 05:02 Rev.: 5852

- update MultiBody tests

63 lines of code changed in 27 files:

adrpo 2010-07-13 04:19 Rev.: 5849

- install the lapack mingw libs in the build/lib/omc directory

1 lines of code changed in 1 file:

adrpo 2010-07-13 04:12 Rev.: 5848

- link of Lapack on mingw to the correct libraries.

1 lines of code changed in 1 file:

adrpo 2010-07-13 04:09 Rev.: 5847

- external lapack libraries for mingw

0 lines of code changed in 3 files:

Frenkel TUD 2010-07-12 23:21 Rev.: 5846

- SimCode/SimCodeC.tpl
- use "int" for enumeration type for external functions

7 lines of code changed in 2 files:

adrpo 2010-07-11 22:45 Rev.: 5844

- updates to System guides.

0 lines of code changed in 2 files:

adrpo 2010-07-10 23:49 Rev.: 5843

- small fix

1 lines of code changed in 1 file:

sjoelund.se 2010-07-10 18:21 Rev.: 5842

- Propagate Absyn.Info from every equation and algorithm up to the DAE AST
- One exception: The parser segfauls on Absyn.Algorithm in mosfiles, so dummyInfo is provided for most algorithm sections.

979 lines of code changed in 24 files:

Frenkel TUD 2010-07-10 17:05 Rev.: 5841

- Builtin.mo
- add function isCross, isMax, isMin, isTranspose, isSkew
- DAEDump.mo
- add in function dumpDebugElement some elements
- DAELow.mo
- if initialarrayequation is lowered add it to initalarrayequations
- uncomment case for DUMMY_STATE in function statesDaelow2 because this is not a state
- add variables with kind STATE to BinTree "states" to avoid removing of states in function removesimpleequations
- if complex equations are lowered and extendet to its elements add array equations to list of array equations
- remove functions extendAllRecordEqns, extendRecordArray, extendRecordEqOpt and extendExp because the are now unused (topic above)
- add cases for matrix expressions to lowerMultidimeqns2
- remove simple equations in function matchingAlgorithm after index reduction because multibody models have a lot of simple equations after index reduction
- Derive.mo
- use Builtin to check if builtin function
- Exp.mo
- add case for functions min and max to function simplifyBuiltinConstantCalls
- to more simplifacation in case of array expressions
- add case for matrix + array of array to function simplifyMatrixBinary because function identity generates array of arrays
- SimCode.mo
- dump also components with bltdump in function translateModel
- improve createSingleArrayEqnCode

612 lines of code changed in 6 files:

sjoelund.se 2010-07-10 06:14 Rev.: 5840

- configure searches also for omniidl in the specified place

22 lines of code changed in 2 files:

sjoelund.se 2010-07-10 06:04 Rev.: 5839

- configure for mico in custom directory, not on path

17 lines of code changed in 2 files:

adrpo 2010-07-09 18:52 Rev.: 5836

- test commit in the new server

7 lines of code changed in 1 file:

sjoelund.se 2010-07-08 11:08 Rev.: 5835

- systemimpl CFLAGS for OSX

5 lines of code changed in 1 file:

Frenkel TUD 2010-07-08 11:01 Rev.: 5834

- Exp.mo
- try to simplify exp in ASUB in simplifyAsub if all other cases not true

5 lines of code changed in 1 file:

sjoelund.se 2010-07-08 09:32 Rev.: 5833

- Syntax error

2 lines of code changed in 2 files:

sjoelund.se 2010-07-08 09:30 Rev.: 5832

- Add check for -ffloat-store in the configure script. That also solves dassl runtime issues.

14 lines of code changed in 2 files:

sjoelund.se 2010-07-08 08:08 Rev.: 5831

- Change -msse to -msse2 as we need to use SSE on doubles, not floats

6 lines of code changed in 2 files:

sjoelund.se 2010-07-08 07:19 Rev.: 5830

- Set -msse in configure in case the instruction set does not have it enabled

2 lines of code changed in 2 files:

sjoelund.se 2010-07-08 07:09 Rev.: 5829

- Running autoconf

6 lines of code changed in 1 file:

sjoelund.se 2010-07-08 07:03 Rev.: 5828

- It's called -mfpmath, not -fpmath....

5 lines of code changed in 1 file:

sjoelund.se 2010-07-08 06:48 Rev.: 5827

- Force -fpmath=sse on Linux platforms, as otherwise simulations spin forever (32-bit)

50 lines of code changed in 2 files:

sjoelund.se 2010-07-08 06:14 Rev.: 5826

- Fix configure on OSX

14 lines of code changed in 2 files:

Frenkel TUD 2010-07-07 15:06 Rev.: 5825

- SimCode.mo
- fix bug in derVarFromStateVar to avoid redefinition of macros in generated code

10 lines of code changed in 1 file:

sjoelund.se 2010-07-07 12:25 Rev.: 5824

- Updated RollingWheel.mos expected output so the whole testsuite passes

6 lines of code changed in 1 file:

sjoelund.se 2010-07-07 12:24 Rev.: 5823

- Updated rtest script to show a unified diff since that is more human-readable

2 lines of code changed in 1 file:

Frenkel TUD 2010-07-07 11:55 Rev.: 5822

- SimCode.mo
- bugfix code generation for arrays in function createNonlinearResidualEquations

28 lines of code changed in 1 file:

sjoelund.se 2010-07-07 11:54 Rev.: 5821

- Added Absyn.Info field to Absyn.{Equation,Algorithm}Item
- Renamed SCode.Algorithm to SCode.AlgorithmSection since that is what it is
- Added new datatype SCode.Statement, which is what an AlgorithmSection contains lists of
- All statements have comment and info fields preserved so they can be used by Inst/Error

814 lines of code changed in 19 files:

sjoelund.se 2010-07-07 10:23 Rev.: 5819

- Updated checkSettings() to also post "uname -a" output
- Compiler/runtime/Makefile no longer sets -O3 twice

13 lines of code changed in 2 files:

sjoelund.se 2010-07-07 10:05 Rev.: 5818

- Updated c_runtime/Makefile to use the CFLAGS set by the configure script
- OMDev is still always -msse2
- Default Unix is -O3 -march=native, which means it's tuned for your CPU regardless of what kind you are using
- To override, specify any CFLAGS (CFLAGS=-O2 ./configure, ./configure CFLAGS=-O2, etc)

73 lines of code changed in 6 files:

Frenkel TUD 2010-07-07 08:24 Rev.: 5817

- Update Workplan

0 lines of code changed in 1 file:

petfr 2010-07-07 07:12 Rev.: 5816

Also added Anton Sodja as co-author.

0 lines of code changed in 4 files:

petfr 2010-07-07 07:02 Rev.: 5815

Slight update. Added Rickard Lindberg as co-author. Also mentioned ModelicaMl UML-Modelica modeling.

0 lines of code changed in 4 files:

petfr 2010-07-07 00:07 Rev.: 5814

Final version of System documentation and Users Guide for OpenModelica 1.5.
Updated acknoqledgement and contribution and authors section. Added a few smaller
technical sections. Resolved a problematic section numbering problem in the Users Guide.
Updated the big figure in the Systems doc.

0 lines of code changed in 4 files:

wbraun 2010-07-06 18:46 Rev.: 5813

update dassl2 in main_solver
+ change step calculation
+ and some minor changes regards error treatment

50 lines of code changed in 5 files:

Frenkel TUD 2010-07-06 17:07 Rev.: 5812

- Derive.mo
- add der(der(cref)) to traversingcrefOrDerCrefFinder
- derivative of functions max, min, sqrt, cross, transpose, array*scalar, ...
- derivative of matrix
- DAELow.mo
- add number to dumpArrayEqns
- use Exp.traverse for replaceDummyDerOthersExp
- extend expressions in complex equations
--> now multibody elementary examples PendulumWithSpringDamper simulates

260 lines of code changed in 2 files:

petar 2010-07-06 16:12 Rev.: 5811

-Fixed copy paste bug introduced in r5807 (in isZero)

1 lines of code changed in 1 file:

wbraun 2010-07-05 20:40 Rev.: 5809

update dassl2
- add warm-start functionality when no event occuors
- work faster than dassl

152 lines of code changed in 2 files:

wbraun 2010-07-05 16:35 Rev.: 5808

correct two testcases to pass testsuite
- when_sorting.mo
- PartialFn12.mo

3 lines of code changed in 2 files:

Frenkel TUD 2010-07-05 16:19 Rev.: 5807

- DAELow.mo
- makeMatrix: check if exp is scalar
- use SUB_ARR because Exp.isConst work now for arrays and matrix
- calculateJacobian: make array equations singular with all possible subscripts
- Exp.mo
- isZero implement Matrix
- isConst implement Array and Matrix
- SimCode.mo
- dlowEqToExp: make array equations singular with all possible subscripts
- SimCodeC.tpl
- implement built in function cross
--> now multibody elementary examples DoublePendulum,InitSpringConstant,Pendulum,PointGravityWithPointMasses,World simulates

214 lines of code changed in 5 files:

sjoelund.se 2010-07-05 14:38 Rev.: 5806

- Fix configure script so include flags in qmake are set correctly (does not expect -I input as gcc does)

22 lines of code changed in 5 files:

sjoelund.se 2010-07-05 12:11 Rev.: 5796

- Added new field to DAE.ElementSource
- A list<Absyn.Info> so we can propagate line numbers for equations/algorithms further
- Absyn.mo does not yet contain this information, so the list is empty for now
- Changed code generation of functions without outputs
- They now have void as return type, and we generate a lot less code when calling them
- Added support for using builtin functions as function pointers
- PartialFn14.mos tests this functionality
- So far only print(<String>) is implemented in the runtime
- SimCode.getCalledFunctionsInFunction was updated slightly to work better with the new DAE structure
- DAEUtil.getNamedFunction now also looks in the FunctionTree structure

1531 lines of code changed in 19 files:

sjoelund.se 2010-07-05 08:27 Rev.: 5792

- Adding new tests to API checkSettings()
- In the CWD: try to create a file, then remove it

8 lines of code changed in 1 file:

Frenkel TUD 2010-07-04 20:39 Rev.: 5791

- DAELow.mo
- bugfix calculateIndexes now all arrays close together
- Derive.mo
- use type if componentref is derived

17 lines of code changed in 2 files:

Frenkel TUD 2010-07-04 10:02 Rev.: 5790

- DAELow.mo
- extend all records in array equations so remove simple equations will work
- Inline.mo
- case for inlining functions with record constructors as arguments
--> DoublePendulum oscilates now with model Revolute( constant Real e[3] and constant Modelica.Mechanics.MultiBody.Types.Axis n instead of parameter)

127 lines of code changed in 3 files:

adrpo 2010-07-03 01:54 Rev.: 5789

- no need to call generateFunctions2 in createFunctions anymore

3 lines of code changed in 1 file:

sjoelund.se 2010-07-02 12:47 Rev.: 5788

- Moved elaboration of NONE into elabCref to reduce the failtrace generated by MetaModelica files

11 lines of code changed in 1 file:

sjoelund.se 2010-07-02 10:38 Rev.: 5785

- Call instantiateDaeFunction when elaborating a cref that is a function reference

9 lines of code changed in 1 file:

sjoelund.se 2010-07-02 08:46 Rev.: 5783

- Spelling error omshell

4 lines of code changed in 1 file:

Frenkel TUD 2010-07-02 00:16 Rev.: 5782

- DAELow.mo
- extend all unextended array componentref so the rest of the backen would work right
- SimCode.mo
- replace der operator also in multidimequations
now multibody double pendulum model generates compilable code

73 lines of code changed in 2 files:

sjoelund.se 2010-07-01 21:16 Rev.: 5781

- matrix.h: Fix off-by-one error

1 lines of code changed in 1 file:

sjoelund.se 2010-07-01 21:16 Rev.: 5780

- SimCode makefile update for OSX (cp -u is not valid in BSD Unix)

2 lines of code changed in 1 file:

wbraun 2010-07-01 17:58 Rev.: 5779

- update workplan again due to forgot svn update

0 lines of code changed in 1 file:

Frenkel TUD 2010-07-01 15:43 Rev.: 5777

- DAELow.mo
- function statesAndVarsExp add special Case for unextended arrays
- remove unneeded listreverses from calculateJacobian
- SimCode.mo
- createOdeSystem:
- because listVar orders the elements not like listEquation the pairs of (var is solved in equation) is twisted, simple reverse one list
--> now multibody simple pendulum model oscillate

26 lines of code changed in 2 files:

sjoelund.se 2010-07-01 15:42 Rev.: 5776

- make install no longer tries to install qtclients if they were not compiled

9 lines of code changed in 5 files:

wbraun 2010-07-01 15:36 Rev.: 5775

update workplan

0 lines of code changed in 1 file:

otto@mathcore.com 2010-07-01 13:07 Rev.: 5774

Added option to collect ZC from smooth.

1 lines of code changed in 1 file:

Frenkel TUD 2010-07-01 12:22 Rev.: 5773

- bugfix createOdeSystem2 for arrays

2 lines of code changed in 1 file:

donida 2010-07-01 11:35 Rev.: 5772

The "Boolean asInSimulationCode" parameter of the dumpXMLDAE() API method was changed in "String translationLevel".
Allowed strings are: flat, optimiser, backEnd.

83 lines of code changed in 2 files:

Frenkel TUD 2010-07-01 10:09 Rev.: 5771

- fix errors from last commit 5765

3 lines of code changed in 1 file:

adrpo 2010-07-01 03:42 Rev.: 5770

- replace equality(x = y) with stringEqual/intEq/realEq
- added more comments and updated some of the formatting
- use Exp.crefEqualNoStringCompare in ConnectUtil.setsEqual as we cannot have stringified crefs there.
- proper dimension printing in PrefixUtil.printPrefixStr
- removed some debug prints from SCodeUtil.mo to make it faster

1592 lines of code changed in 23 files:

adrpo 2010-07-01 03:23 Rev.: 5769

- minor formatting changes for improved readability

57 lines of code changed in 1 file:

adrpo 2010-07-01 03:19 Rev.: 5768

- proper error messages including the correct package name.

19 lines of code changed in 8 files:

adrpo 2010-07-01 03:17 Rev.: 5767

- faster Util.listSetDifference* functions.
Empty - B = Empty.

2 lines of code changed in 1 file:

adrpo 2010-07-01 03:04 Rev.: 5766

- Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum now simulates
- fixes to handle code generation for world.gravityAcceleration function
- code generation for functions now take the functions from the DAE.FunctionTree
instead of re-instantiate them
- some problems appeared with partial functions (i fixed some of them but more debugging is needed to fix all)

SimCode.mo
- SimCode.createFunctions now uses the functions already present in DAE.FunctionTree
- some more comments
- small fixes (functions can contain multiple definitions if they have a derivative annotations)

SimCodeC.tpl
- handle enumeration comparison and types
- replace "." in identifiers with "_" in underscorePath

DAELow.mo
- use basic type equality functions instead of polymorphic one

DAEUtil.mo
- added DAEUtil.getFunctionNames to return the paths of all functions in the DAE
- use basic type equality functions instead of polymorphic one

DAEDump.mo
- DAEDump.unparseDimensions is now public

1017 lines of code changed in 6 files:

June 2010 »

Generated by StatSVN 0.7.0