September 2010 Commit Log

Number of Commits:
267
Number of Active Developers:
12
Frenkel TUD 2010-09-30 17:16 Rev.: 6267

update RedesignBackendOMC.doc

244 lines of code changed in 3 files:

sjoelund.se 2010-09-30 17:15 Rev.: 6266

- Rewrote a few functions in the C runtime to take constant strings as input instead of strings

109 lines of code changed in 6 files:

AlexeyLebedev 2010-09-30 16:08 Rev.: 6265

Fix for bug #1040:
Further fix for bug 1040
https://openmodelica.org:8443/cb/issue/1040

13 lines of code changed in 1 file:

mohsen 2010-09-30 15:48 Rev.: 6264

documentation on how to compile OMNotebook

0 lines of code changed in 2 files:

mohsen 2010-09-30 15:10 Rev.: 6263

documentation installing and setting Eclipse+MDT for debugging MetaModelica code.

0 lines of code changed in 1 file:

perost 2010-09-30 14:22 Rev.: 6262

Fix for bug #1207:
- Fixed so that iterators in for loops get correct type when the range is of
enumeration type.
- Added test case mofiles/ForIteratorType and updated mofiles/Enum7.

37 lines of code changed in 4 files:

perost 2010-09-30 13:25 Rev.: 6261

- Speed up arrays of enumeration variables by relaxing the criteria for finding
matches in the cache for enumerations.

20 lines of code changed in 1 file:

sjoelund.se 2010-09-30 12:40 Rev.: 6260

- Changed testcase Modelica.Magnetic.FluxTubes.mos (it's enough to let the testcase in records/RecordModification.mo fail; it tests this very thing and doesn't generate 1MB of rtest log)

20 lines of code changed in 1 file:

sjoelund.se 2010-09-30 12:17 Rev.: 6259

- Enable error messages for cevalCallFunction again

25 lines of code changed in 5 files:

sjoelund.se 2010-09-30 09:34 Rev.: 6258

- Check if SimCode is trying to generate code to dynamically load a function that takes a function pointer as input
- This is an error (the runtime doesn't support it), and a testcase has been added for the error message

133 lines of code changed in 6 files:

adrpo 2010-09-30 07:10 Rev.: 6257

Final fixes for task: #1268
- now the user can select in GraphViz lefty which connect edge to break.
- the selected edge is passed to OpenModelica breaking algorithm as a guide.
- this all happens in an interactive loop until the user is satisfied.
- heavy tailor of openmodelica.lefty to:
+ not be able to break branches
+ easier and targeted menus
+ complete help text.

347 lines of code changed in 2 files:

adrpo 2010-09-30 03:39 Rev.: 6256

Partial fixes for task: #1268
- minor typo fix.

1 lines of code changed in 1 file:

adrpo 2010-09-30 01:36 Rev.: 6255

Partial fixes for task: #1268
- implemented means to display the overconstrained connection
graph to the user so that he can decide which connect to break.
- added flags:
+d=cgraphGraphVizShow
use this to generate the overconstrained connection graph as GraphViz file
and display it with GraphViz lefty. You will need to have lefty[.exe] in the PATH
+d=cgraphGraphVizFile
this flag will only generate a GraphViz file Model.gv
- still left to do: handle the user input and order the connects so that the edge
given by the user is handled last and will be broken
- added Compiler/scripts/openmodelica.lefty which is an adaptation of dotty.lefty
for GraphViz. Copy this file into share/omc/scripts on build.
- moved Inst.selectList to Util.selectList.
- more explanation to System.writeFile, what is file name and what is data.

3226 lines of code changed in 9 files:

Frenkel TUD 2010-09-29 22:09 Rev.: 6254

- update RedesignBackendOMC.doc

0 lines of code changed in 1 file:

sjoelund.se 2010-09-29 18:05 Rev.: 6253

- Changed SimCode structure slightly:
- When elaborating functions, we collect the includes and libs
- This avoids duplicate includes, which were previosuly not collected. It also does more things in a single pass
- We also only generate the in-function for the "main" function (we could also generate a main() function for this one if the inputs were list<String> or void)
- The testsuite should be slightly faster as GCC will only have to compile roughly half as many functions

1820 lines of code changed in 8 files:

Frenkel TUD 2010-09-29 13:54 Rev.: 6252

update RedesignBackendOMC.doc

2210 lines of code changed in 7 files:

adrpo 2010-09-29 01:00 Rev.: 6251

Fixes for bugs: #1244 #1295
- More information is now printed when we can't find an outer for an inner:
The inner components that were found until we instantiate outer are listed
so the user can find out if he didn't misspelled the name of the outer:
Example:
Warning: Variable particleEffect1.particleEffect2:
No corresponding 'inner' declaration found for component
particleEffect1.particleEffect2.updateVisualization2 declared as 'outer '.
The existing 'inner' components are:
MyPackage.UpdateVisualization updateVisualization; defined in scope:
MyPackage.Examples.Effects.ParticleEffect. Referenced by 'outer' components:
{particleEffect1.updateVisualization}
MyPackage.UpdateVisualization particleEffect1.updateVisualization; defined in scope:
MyPackage.Effects.ParticleEffect1.
Check if you have not misspelled the 'outer' component name.
Please declare an 'inner' component with the same name in the top scope.
Continuing flattening by only considering the 'outer' component declaration.

- Fixes for detecting overlapping array modifications and overlapping named modifications.
Also added more tests for these
testsuite/mofiles/ArrayModification13.mo
testsuite/mofiles/ArrayModification14.mo
testsuite/mofiles/Modification15.mo
testsuite/mofiles/ArrayModification12.mo (was wrong, now I fixed it and add it to the testsuite)
The compiler just warns that there are overlapping modifications and tells the user which ones
are used and which ones are discarded. Before the compiler didn't say anything, it just took the
first named modification encountered and also didn't report any problems with overlapping array
modifications.
- When failing to lookup index modification in instArray and error is printed instead of just
failing without any error messages.

- Modified some of the tests due to changes in error messages

865 lines of code changed in 25 files:

sjoelund.se 2010-09-28 18:11 Rev.: 6250

Fixes for #1296
- Moved the generation of pattern-matching equals equation to instStatement, since RML allows pattern matching here as well
- lhs := rhs is translated into:
_ := match ()
local vars // list of temporary vars
case ()
equation
vars = rhs;
match vars
case lhs /* lhs becomes bound here */ then ();
end match;
then ()
end match;
- Error messages for this are probably pretty bad...
- Note that you can now write "3 := 1+2" in an algorithm section if MetaModelica grammar is enabled (just like in RML)
- Added testcase meta/AlgPatternm.mos

264 lines of code changed in 6 files:

Frenkel TUD 2010-09-28 17:13 Rev.: 6249

- avoid Warnings

8 lines of code changed in 4 files:

Frenkel TUD 2010-09-28 15:30 Rev.: 6248

- Bugfix Initialisation Method leastSquare

15 lines of code changed in 1 file:

sjoelund.se 2010-09-28 10:50 Rev.: 6247

- Added teardown_command to meta/UtilTest.mos

1 lines of code changed in 1 file:

sjoelund.se 2010-09-28 10:40 Rev.: 6246

- Reverted part of r6231 (re-enable String pool; malloc() doesn't work to 100% when returning strings through the interactive API)
- Updated meta/UtilTest.mos (we create a much smaller list of Strings, and a large list of integers instead)

9 lines of code changed in 2 files:

perost 2010-09-28 10:09 Rev.: 6245

Fix for bug #1044:
- Added Util.listUnionComp, list union with a compare function.
- Made SCode.equationEqual public.
- Use list union in Inst.instClassdef2 to filter out identical equations.
- Added test case mofiles/IdenticalEquations.

91 lines of code changed in 6 files:

sjoelund.se 2010-09-28 09:09 Rev.: 6244

- Propagated Absyn.Info from assignments to DFA.mo
- Add testcase meta/ErrorMatchNumOutput.mos

87 lines of code changed in 7 files:

sjoelund.se 2010-09-28 08:36 Rev.: 6243

- Implement support for match expressions that return a tuple to a single cref
- b := match () case () then (1,2); end match
- Also added error messages for when the number of actual/expected output of a match expression differ
- Testcase for this will be added when Absyn.Info is propagated for match expressions

92 lines of code changed in 5 files:

sjoelund.se 2010-09-28 08:22 Rev.: 6242

- Add the link to the log of failing tests in MetaModelicaDev, so they are easier to see when running the testsuite

2 lines of code changed in 1 file:

adrpo 2010-09-28 04:16 Rev.: 6241

Mod.mo
- use case instead of else as the current 1.5.0 release cannot parse the file otherwise

1 lines of code changed in 1 file:

adrpo 2010-09-28 04:05 Rev.: 6240

DAELow.mo, DAELow.lower2
- include source position when reporting errors
- when running checkModel ignore warnings/errors about unimplemented features in the back-end:
+ initial algorithms
+ initial if equations that cannot be translated to if expressions
+ if equations of the form if initial() then equations end if;
+ constrain function

DAEUtil.mo, DAEUtil.ifEqToExpr
- when running checkModel ignore warnings/errors about
+ if equations of the form if initial() then equations end if;

Error.mo
- satisfying my alignment compulsion

Inst.mo, Inst.elabArraydim
- when running checkModel ignore warnings/errors about
+ mismatched array dimensions
- check the failtrace flag before doing unnecessary work

testsuite/libraries/msl31/*
- modifications due to changes in error reporting while running checkModel

Compiler/omc_frontend/Makefile.omdev.mingw
Compiler/omc_profiler/Makefile.omdev.mingw
Compiler/omc_release/Makefile.omdev.mingw
- make the executable large address aware
- give the executable 7MB of stack as is needed by:
testsuite/meta/UtilTest.mos

160 lines of code changed in 10 files:

sjoelund.se 2010-09-27 22:45 Rev.: 6239

- Missing code from r6238 (allow running as root when running in testsuite mode)

2 lines of code changed in 1 file:

sjoelund.se 2010-09-27 22:13 Rev.: 6238

- Allow running as root when running in testsuite mode

3 lines of code changed in 2 files:

sjoelund.se 2010-09-27 20:48 Rev.: 6237

- Fix antlr3config.h on OSX

6 lines of code changed in 1 file:

sjoelund.se 2010-09-27 17:40 Rev.: 6236

- Fixed instantiation of derived types that are uniontypes (MetaModelica/RML uses type UT = T1.UT syntax instead of import T1.UT)
- Propagated Absyn.Info to instClassDef (better error messages)

225 lines of code changed in 14 files:

adrpo 2010-09-27 17:28 Rev.: 6234

- use case instead of else as the current 1.5.0 release cannot parse Absyn.mo otherwise

1 lines of code changed in 1 file:

perost 2010-09-27 15:41 Rev.: 6233

Fixes for bug #1121:
- Removed index from DAE.ET_ENUMERATION, since it no longer needed due to
DAE.ENUM_LITERAL.
- Split the list of variables in DAE.T_ENUMERATION into one list containing
literals and one containing attributes.
- Implemented enum->Real implicit type casting.
- Fixed connect with enumeration variables.
- Fixed so that enumerations are basic types.
- Static.elabCref now takes the variables subscripts into account when
determining it's variability.
- Added utility function Util.isPrefixListComp.
- Removed testsuite/mofiles/rtestsim, since it's not used.
- Updated test cases and enabled the Modelica.Electrical.Digital tests.

10557 lines of code changed in 59 files:

sjoelund.se 2010-09-27 11:46 Rev.: 6232

- Static.elabCallArgs2 no longer prints error messages if it succeeds, but elaborating as record constructor fails

2 lines of code changed in 3 files:

sjoelund.se 2010-09-27 10:56 Rev.: 6231

- Added CREF_FULLYQUALIFIED to the parser (and Absyn,Static,Lookup,Dump,Exp,etc).
- This is needed to parse Modelica 3.2 properly (e.g., abc = .Modelica.x.y.fn()).
- Disabled the string pool in c_runtime/modelica_string.c
- It never free'd allocated strings anyway, so changing it to strdup is safe (but stupid)
- Updated DFA.mo to use Absyn.CREF_FULLYQUALIFIED for primitive operations such as listRest()
- Else a function named listRest that uses the listRest() primitive will become a recursive call due to going back to Absyn (Valueblock implementation limitation)
- Added testcase UtilTest.mos
- Tests Util.listIntRange2, Util.listMap1, Util.listMap and Util.listFold
- We test the actual Util.mo from the trunk, so changes to that code reflects on the testcase

278 lines of code changed in 13 files:

sjoelund.se 2010-09-27 09:39 Rev.: 6230

- Fix meta_modelica_builtin.cpp so that the first call always returns 0

7 lines of code changed in 1 file:

sjoelund.se 2010-09-27 08:44 Rev.: 6229

- Fix compilation on OMDEV (database.o -> Database.o)

3 lines of code changed in 1 file:

sjoelund.se 2010-09-27 08:34 Rev.: 6228

- Updated makefiles to link against sqlite3 instead of compiling it ourselves on Linux
- Updated README to cover this dependency
- Updated omdev makefiles to generate Compiler/runtime/runtime.a like Linux does (this is so Windows and Linux can link different objects in Compiler/runtime)
- Updated configure script to search for sqlite3

69 lines of code changed in 12 files:

sjoelund.se 2010-09-27 08:04 Rev.: 6227

- Removed antlr2 dependency from the configure script

0 lines of code changed in 2 files:

sjoelund.se 2010-09-27 07:54 Rev.: 6226

- Fix compilation on Linux (database.o -> Database.o)

1 lines of code changed in 1 file:

adrpo 2010-09-27 05:01 Rev.: 6225

Compiler/Database.mo
Compiler/runtime/Database.c
Compiler/runtime/sqlite
- a wrapper for SQlite (empty and unused for now)

Compiler/omc_profiler/Makefile.omdev.mingw
- use large address aware

Makefile*
- update so Database modules are compiled and linked in.

Ceval.mo
- better trace messages in Ceval.cevalSubscriptValue

CevalScript.mo
- filter Modelica.Media and Modelica.Fluid in
CevalScript.checkAllModelsRecursive, also output
the number of classes checked.

DAE.mo
- added DAE.DimensionBinding to be used for future
handling of unknown dimensions (similar with type
variables and inference in functional programming)
- these changes are commented out for now

DAEDump.mo
- handle all types of equations in DAEDump.dump2

DAELow.mo
- use Exp.crefEqualNoStringCompare everywhere.
- minor speedups by changing listAppend({var}, lst) to var::lst.
- partially handle DAE array equations in DAELow.lowerWhenEqn2
and don't fail when checkModel is active.
- handle unknown dimensions DAE.DIM_UNKNOWN when checkModel
is active in DAELow.traversingextendArrExp by using
DAE.DIM_INTEGER(1).

DAEUtil.mo
- better message out of DAEUtil.verifyWhenEquation
- allow DAE.NORETCALL inside when equations.

Exp.mo
- handle enum literal in Exp.typeof

Inst.mo
- some more comments on Inst.instClassIn_dispatch(ENUMERATION)

InstSection.mo
- make sure we handle DAE.DIM_UNKNOWN when checkModel is active with
more care in InstSection.instArrayEquation and InstSection.expandArrayDimension
as otherwise we generate equations like 1 = 1.

SCode.mo
- handle when equations in SCode.equationStr

Static.mo
- minor formatting.

Types.mo
- handle enumeration in Types.mo Types.matchWithPromote
helps a bit Modelica.Electrical.Digital
- better unparsing/printing of enumerations

ValuesUtil.mo
- handle enumeration literals in ValuesUtil.valueIntegerMinusOne
helps with Ceval of enumeration slices.

testsuite/mofiles/drmodelica/WhenNotValid.mo
- changes due to better error messages.

129561 lines of code changed in 26 files:

sjoelund.se 2010-09-26 16:06 Rev.: 6224

- Added the boxptr functions for the MetaModelica builtin Integer functions

69 lines of code changed in 2 files:

sjoelund.se 2010-09-26 15:34 Rev.: 6223

- Updated SimCode.getCalledFunctionsInFunction to filter out function references called in valueblocks

612 lines of code changed in 3 files:

sjoelund.se 2010-09-26 11:27 Rev.: 6222

- Changed code generation for function pointers. They now also work when you bind valueblock-local variables.

19 lines of code changed in 1 file:

adrpo 2010-09-26 02:25 Rev.: 6221

- get rid of the static definitions as these functions need to be accessible from outside!

1 lines of code changed in 1 file:

adrpo 2010-09-26 02:15 Rev.: 6220

- clean ModelicaExternalC also when cleaning c_runtime

1 lines of code changed in 1 file:

adrpo 2010-09-26 01:20 Rev.: 6219

- use intEq instead of equality

1 lines of code changed in 1 file:

adrpo 2010-09-26 01:19 Rev.: 6218

- get rid of equality()/failure(equality())

2 lines of code changed in 1 file:

adrpo 2010-09-26 01:18 Rev.: 6217

- use intEq instead of equality.

1 lines of code changed in 1 file:

adrpo 2010-09-26 01:16 Rev.: 6216

fixes for testsuite/meta/MetaModelicaDev/Makefile.omc

12 lines of code changed in 1 file:

sjoelund.se 2010-09-25 09:56 Rev.: 6215

- Fix expected output ParseFullModelica1.6.mos

1 lines of code changed in 1 file:

sjoelund.se 2010-09-25 07:21 Rev.: 6214

- Fix msl16/Modelica/Constants so we don't get warnings in 32-bit OMC

10 lines of code changed in 2 files:

sjoelund.se 2010-09-24 14:29 Rev.: 6213

- Add parser tests for msl16 and msl32
- Note about the msl32 library: it only has the inf constant fixed; none of the other parts, like ModelicaServices

149853 lines of code changed in 5 files:

sjoelund.se 2010-09-24 14:27 Rev.: 6212

- Adding msl32 to /libraries

7 lines of code changed in 1210 files:

sjoelund.se 2010-09-24 14:25 Rev.: 6211

- Adding msl16 to /libraries

1 lines of code changed in 71 files:

sjoelund.se 2010-09-24 13:33 Rev.: 6210

- Updated README.Cygwin.or.Linux.txt

5 lines of code changed in 1 file:

adrpo 2010-09-24 13:33 Rev.: 6209

- small change to get rid of the Linux warnings.

3 lines of code changed in 1 file:

sjoelund.se 2010-09-24 13:21 Rev.: 6208

- Added support for if-equations in match-expressions
- Added some error messages when an equation that is not valid in the context of match-expressions is found

150 lines of code changed in 6 files:

adrpo 2010-09-24 12:47 Rev.: 6207

Fixes for #1294
- in MinGW/MSVC/Windows open the parsed file in "rt" mode
Parser/antlr-3.2/runtime/C/src/antlr3filestream.c
- in MinGW/MSVC/Windows open the written file in "wt" mode
Compiler/runtime/printimpl.c
Compiler/runtime/systemimpl.c

55 lines of code changed in 3 files:

adrpo 2010-09-24 12:10 Rev.: 6206

- fixes for testsuite/mofiles/ComponentNamesRedecl.mo, get rid of the newline at the end.

0 lines of code changed in 1 file:

sjoelund.se 2010-09-24 12:01 Rev.: 6205

- Fix rtest on MinGW, when running biochem

2 lines of code changed in 1 file:

sjoelund.se 2010-09-24 09:39 Rev.: 6204

- Added MatchElse1.mos to meta/Makefile
- Removed non-referenced testcase meta/DefaultArgs.mo (it didn't test any MetaModelica extensions)

64 lines of code changed in 1 file:

sjoelund.se 2010-09-24 08:29 Rev.: 6203

- Moving CyclicBinding{Const,Param} and FlatParse to failing testcases
- The cyclic binding tests don't test anything useful and produce a lot of crap in the logs
- FlatParse.mof is just... wrong. It's not supposed to work, and we're not 100% certain what syntax should be used anyway

3 lines of code changed in 1 file:

sjoelund.se 2010-09-24 08:11 Rev.: 6202

- Add time usage to the MetaModelica Course testcases

13 lines of code changed in 1 file:

sjoelund.se 2010-09-24 06:42 Rev.: 6201

- Add dependency.log to fast.logs dependencies, since otherwise the automatic build system fails

4 lines of code changed in 1 file:

sjoelund.se 2010-09-23 21:39 Rev.: 6200

- add -fPIC if uname -m is x86_64 in the testsuite
- This should fix issues on 64-bit Debian-Stable (which uses old GCC)

9 lines of code changed in 6 files:

sjoelund.se 2010-09-23 21:01 Rev.: 6199

- Guard parser/ParseModel files from svn-eol-style script

40 lines of code changed in 7 files:

sjoelund.se 2010-09-23 18:25 Rev.: 6198

- Fixed else for match expressions

60 lines of code changed in 4 files:

AlexeyLebedev 2010-09-23 16:06 Rev.: 6197

Added a check whether component's name is the same as its type specifier. Modified the testsuite correspondingly. Added a couple more test cases.

206 lines of code changed in 25 files:

sjoelund.se 2010-09-23 15:59 Rev.: 6195

- Fix dependency/Makefile clean (works now that the mos-file is there)

1 lines of code changed in 1 file:

sjoelund.se 2010-09-23 15:58 Rev.: 6194

- Update dependency/Makefile

1 lines of code changed in 1 file:

sjoelund.se 2010-09-23 15:57 Rev.: 6193

- Move msl31/ObsoleteModelica3.mo from testsuite to libraries

0 lines of code changed in 2 files:

adrpo 2010-09-23 15:56 Rev.: 6192

- added missing testsuite/dependency/DependencyChecking.mos

11 lines of code changed in 1 file:

sjoelund.se 2010-09-23 15:45 Rev.: 6191

- Fix dependency makefile in the testsuite (so it doesn't cause the testsuite to fail)

6 lines of code changed in 2 files:

sjoelund.se 2010-09-23 12:22 Rev.: 6190

- Fix biochem testcases on Linux

11 lines of code changed in 6 files:

sjoelund.se 2010-09-23 12:03 Rev.: 6189

- Disable LossyGearDemo1 testcase (spins until memory runs out)
- Fix refactorGraphAnn2.mos

8 lines of code changed in 6 files:

sjoelund.se 2010-09-23 11:23 Rev.: 6188

- More int/modelica_integer fixes

32 lines of code changed in 6 files:

sjoelund.se 2010-09-23 09:51 Rev.: 6187

- Changed int, unsigned char in the simulation runtime to modelica_integer, modelica_boolean

1453 lines of code changed in 3 files:

sjoelund.se 2010-09-23 09:51 Rev.: 6186

- Split testsuite/mosfiles-msl22/simulation3.mos into several simulations
- Removed testsuite/mosfiles-msl22/Modelica.mo; the testcases use loadModel instead

271 lines of code changed in 16 files:

sjoelund.se 2010-09-23 08:39 Rev.: 6185

- Fix compilation of errorext.cpp (rml-trunk mk_scon doesn't accept const char*)

1 lines of code changed in 1 file:

adrpo 2010-09-23 03:04 Rev.: 6184

- Fixes for bug #1285 #1286

ErrorExt.mo
- added ErrorExt.isTopCheckpoint to ErrorExt.mo and errorext.cpp
+ used in Inst.mo to check if we should rollback or not.

Inst.mo
- moved the case for basic type instantiation from Inst.instClassdef2
into its own function: Inst.instClassdefBasicType and added
checkpoint/rollback to it to get rid of the "wrong errors/warnings"
due to instantiation as a basic type.
- replaced equality(x = y)/failure(equality(x = y)) with
true = stringEqual(x, y) respectively false = stringEqual(x, y)
- propagated prefix to more functions
- added Inst.checkExtendsForTypeRestiction to check for extends
restrictions in Modelica 3.1, but is unused for now as it will
get rid of some of the error reporting.

InstExtends.mo
- propagated prefix to more functions
- propagate the final prefix to the component modifier.
- the problem with InstExtends.mo is that when we only copy
the classes/components from an extends clause we loose the
scope information and the errors become less localized:
For example, see the changes in
testsuite/mosfiles-nosim/FinalTests.mos
We should fix this by propagating more information inside
the modifiers (i.e. the scope where they were created).

Lookup.mo
- small changes due to propagation of prefix to more functions

System.mo
- added System.refEqual to check for reference (pointer) equality

Exp.mo
- the current Exp.crefEqual was moved to Exp.crefEqualStringCompare
to be easier to switch between crefEqual with/without string comparison
- checks for pointer equality via Static.equalCref in some of the
object comparison functions.

SCode.mo
- SCode.printClassdefStr now handles ALL alternatives
and has better printing of enumerations

ConnectionGraph.mo
- small documentation update
- use Exp.crefEqualNoStringCompare instead of Exp.crefEqual

Compiler/omc_release/Makefile.omdev.mingw
- make omc.exe Large Address Aware via -Wl,-large-address-aware flag
- this will give omc the possibility of allocating more memory

testsuite/dependency
- added tests for +d=usedep so at least we know when we break them
because MathCore uses the dependency all the time.
- also tests fixes of bug 1286.

testsuite/mofiles/InnerOuterWithExtends.mo
- tests for bug 1285 (this one)

testsuite/libraries/msl221/OneWayRectifierBG.mos
testsuite/libraries/msl221/TestNand.mos
testsuite/mosfiles-nosim/interactive_api_attributes.mos
- these tests are different now when we suppress the errors/warnings
from instantiation as basic type.
- the tests are more correct now as for example in OneWayRectifierBG
we had a warning that parameter does not have a default value *even*
if it *does* (well, a recursive one, but still it does).
- in TestNand.mos the warning about the use of == on reals is gone but
anyway is used in an algorithm, so it had no value.
- in interactive_api_attributes.mos the "inner" warning is gone now
and it should be.
testsuite/mosfiles-nosim/FinalTests.mos
- this test produces less errors which in this case is a bit bad
as the missing error messages pointed you in the right direction.
- however, these error messages were generated while we tried to
instantiate the class as a basic type (which was wrong anyway).
- we should fix this test by adding source information (the scope/prefix)
to modifiers and then when we try to merge them (final vs. modification)
we can output this information.

testsuite/libraries/msl31/Modelica.Mechanics.MultiBody.mos
- fixes for loading of ModelicaServices
- also check that the instantiation of
Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape
works.

testsuite/libraries/multibody/elementary/RollingWheel.mos
- small equation migration due to changes in sorting of
inner/outer.

19146 lines of code changed in 21 files:

adrpo 2010-09-23 01:23 Rev.: 6183

- fixes so we can compile with MinGW GCC 4.5 also.

11 lines of code changed in 2 files:

adrpo 2010-09-23 01:22 Rev.: 6182

- got rid of an unnecessary stringAppend.

1 lines of code changed in 1 file:

adrpo 2010-09-23 00:09 Rev.: 6181

Fixes for #1294
- System.writeFile and Print.writeBuf now open the file in *binary* mode with "wb".
Otherwise, if you open the file with "w" it opens it in text mode and when you
write \r\n into the file it writes \r\r\n because \n on Windows is \r\n!
- added testsuite/parser/ParseModel.mos to test that Parse-Write-Parse cycle works.

- maybe we should also force stdout and stderr to be opened in *binary* mode because
they are opened in text mode by default which means that writing \r\n to them
will write \r\r\n. Something like: setmode(fileno(stdout), O_BINARY);

67 lines of code changed in 7 files:

sjoelund.se 2010-09-22 20:53 Rev.: 6180

- Fix for ModelicaExternalC
- Compile with "-Dstatic=", to remove static keywords everywhere.
- Static functions are not exported, but all functions were declared static.
- Compile with -D_POSIX_ so OSX works

1 lines of code changed in 1 file:

sjoelund.se 2010-09-22 18:07 Rev.: 6179

- Added /libraries - a common place for the Modelica libraries we test OpenModelica against
- It is possible to switch between Modelica versions using the following environments:
- OPENMODELICALIBRARY=/libraries/msl221:/libraries/common
- OPENMODELICALIBRARY=/libraries/msl31:/libraries/common
- (Separate with ; on Windows platforms)
- Moved /libraries/testsuite/libraries/ ... msl221 msl31 BioChem to /libraries
- Added ModelicaAdditions, SimpleFluid to /libraries
- Updated testcases to reflect these changes (testcases that load MSL now use loadModel)

61071 lines of code changed in 596 files:

wbraun 2010-09-22 18:02 Rev.: 6178

Correct small error for revision 6177

3 lines of code changed in 2 files:

wbraun 2010-09-22 17:47 Rev.: 6177

Fixed memory error in initialitation after rev6171

25 lines of code changed in 1 file:

sjoelund.se 2010-09-22 16:32 Rev.: 6176

- Fix compilation on Linux

3 lines of code changed in 2 files:

sjoelund.se 2010-09-22 16:22 Rev.: 6175

Fix #1294
- In the parser, we replace CRLF with LF in Windows. This is because fprint("\r\n") in MinGW is CRCRLF.
- This is performed as backpatching because you can't set the text of a fragment rule (the STRING_GUTS is just the start/stop index in the instream). The alternative would be to lex strings by hand (including exception handling/error messages)
- In Linux/OSX, the backpatching is not performed, since this issue is not present there
- NO testcase was added for this because rtest ignores whitespace

24 lines of code changed in 3 files:

perost 2010-09-22 14:22 Rev.: 6174

- Added test case libraries/msl31/Modelica.Electrical.Digital (not yet enabled).

334 lines of code changed in 1 file:

perost 2010-09-22 14:03 Rev.: 6173

Fix for bug #1133:
- Added support for reinit in DAELow.lowerStatementInputsOutputs.
- Added test case libraries/msl31/Modelica.Mechanics.

753 lines of code changed in 4 files:

perost 2010-09-22 13:03 Rev.: 6172

Test case for bug #1124:
- Added test case for Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.
- Fixed mistake in Modelica.Blocks test case comment.

416 lines of code changed in 3 files:

wbraun 2010-09-22 12:29 Rev.: 6171

- Added support for Boolean and Integer Variables in c_runtime
- simulation_result changed only for plt output

- Fixed some minor bugs in the EventHandling (reinit, helpvars, zeroCrossing check)

4803 lines of code changed in 17 files:

perost 2010-09-22 12:28 Rev.: 6170

Bug #1243:
- Added test cases for Modelica.Magnetic.FluxTubes.

9212 lines of code changed in 2 files:

perost 2010-09-22 11:43 Rev.: 6169

Partial fix for bug #1287:
- Fixed code generation for algorithm with single output variable.

1 lines of code changed in 2 files:

sjoelund.se 2010-09-22 11:22 Rev.: 6168

- Added support for parsing class Code
- cref's can't use the CODE token due to parsing conflicts with expressions, but the MSL 3.2 beta now parses
- Added testcase parser/Code.mo to test this as it's not needed to add the whole MSL 3.2 to the repository yet

66279 lines of code changed in 6 files:

sjoelund.se 2010-09-22 11:19 Rev.: 6167

- Updated testcases IntDiv and Real2Integer1; they are working correctly after r6164

6 lines of code changed in 2 files:

Frenkel TUD 2010-09-22 09:15 Rev.: 6166

update RedesignBackendOMC.doc

0 lines of code changed in 1 file:

Frenkel TUD 2010-09-22 00:35 Rev.: 6165

- update RedesignBackendOMC.doc
- Util.mo
- add listMapFlat and listMapFlat1, this is the same as listMap and listFlatten, but with less memory consumption
- DAELow.mo and Algorithm.mo
- add functions to traverse all expressions of an DAELow object/ algorithm
- SimCode.mo
- reimplement extractDelayedExpressions with less memory cunsumption and speedup

646 lines of code changed in 5 files:

perost 2010-09-21 17:09 Rev.: 6164

Fix for bug #1286:
- Added error message for modifier type errors.
- Added test case mofiles/ModifierTypeError.
- Fixed some error messages in InstSection, and updated some tests to reflect
these fixes.

76 lines of code changed in 10 files:

sjoelund.se 2010-09-21 16:20 Rev.: 6163

- Added new module InstSection.mo. It handles instantiation of algorithm and equation sections (including connect-equations)
- The split is rather well defined (for loops sometimes need to declare a new loop variable, so it still needs to import Inst)
- Combined compilation time is the same (split 67/33)
- ~40 seconds faster to compile omcd with a single-line change in Inst.mo

5147 lines of code changed in 6 files:

dhedberg 2010-09-21 14:25 Rev.: 6162

Added dynload_try.obj to VC makefile.

1 lines of code changed in 1 file:

perost 2010-09-21 14:13 Rev.: 6161

- Updated workplan.

0 lines of code changed in 1 file:

perost 2010-09-21 14:05 Rev.: 6160

Fixes for bug #1272:
- Fixed checkModel of for-loop with unbound parameter range.

46 lines of code changed in 3 files:

sjoelund.se 2010-09-21 12:34 Rev.: 6159

- Fix svn-eol-style on Makefiles

655 lines of code changed in 57 files:

sjoelund.se 2010-09-21 12:13 Rev.: 6158

Fix #1291
- Propagate Absyn.MatchType to SCode, DAE and finally code generation
- Use throw instead of break when calling "fail()" in the then clause of a case
- Don't catch exceptions in match expressions (pattern matching failures break instead of throw)
- Added testcase MatchCase12.mos

468 lines of code changed in 18 files:

perost 2010-09-21 12:01 Rev.: 6157

Fixes for bug #1272:
- Fixed several checkModel issues with parameters without bindings.
- Removed dummy dimensions phase from CevalScript that was introduced in r6142.
- Disabled "unbound parameter"-warning when doing checkModel, because we can't
know whether a parameter would have been given a binding when instantiated or
not.
- Cleaned up the handling of dimensions a bit:
- Renamed DAE.DIM_NONE to DAE.DIM_UNKNOWN and DAE.DIM_SUBSCRIPT to DAE.DIM_EXP,
to better tell what they represent.
- Use DAE.DIM_UNKNOWN instead of previously used
DAE.DIM_SUBSCRIPT(DAE.WHOLEDIM) (a subscript is not a dimensions).
- Updated tests Modelica.Math and Modelica.Blocks in libraries/msl31, and
enabled Modelica.Blocks.Continuous.StateSpace in Modelica.Blocks.

385 lines of code changed in 18 files:

sjoelund.se 2010-09-21 10:52 Rev.: 6156

Fix #1290
- Functions that fail() now return that as a value, so we can distinguish between those and cases when code generation/ceval failed
- More make fix-svn-eol-style

1488 lines of code changed in 51 files:

sjoelund.se 2010-09-21 09:33 Rev.: 6155

Fix #1293
- Enable MetaModelica grammar when +c=mdt is given

2 lines of code changed in 1 file:

sjoelund.se 2010-09-21 09:19 Rev.: 6154

Fix #1292
- Changed ModelicaExternalC makefile so that it does not use the CFLAGS env.var when compiling in Unix. Instead, we use the CFLAGS specified when configuring. This solves the issue of -ansi -pedantic being added to a file that cannot be compiled -ansi -pedantic.

39 lines of code changed in 7 files:

sjoelund.se 2010-09-21 08:54 Rev.: 6153

- Ran make fix-svn-eol-style

195459 lines of code changed in 481 files:

Frenkel TUD 2010-09-20 22:26 Rev.: 6152

- update RedesignBackendOMC.doc

0 lines of code changed in 1 file:

sjoelund.se 2010-09-20 11:10 Rev.: 6151

- Changed default optimization level from -O0 to -O3. MODELICAUSERCFLAGS may override this.
- Testsuite runs ~0.2% slower than earlier (our testcases only simulate for 4 or 5 time steps, which means the additional cost of GCC optimizations is higher than the gain)
- Actual simulations see a 5~25% improvement due to GCC optimizations

7 lines of code changed in 2 files:

ppriv 2010-09-17 15:34 Rev.: 6150

- Susan's text rendering improved performance;
now using Print.printBuf instead stringAppend
( approx. 4x faster Text -> String conversion;
resulting to approx. 3x faster template evaluation for tested models;
with the cost O(n+s) where n is number of strings and s is their overall length;
previously it was O(n^2*m) where m is average string length!
)
- template based generation of simulation initial data file; the new type SimulationSettings added to SimCode
TODO: complete initial values elaboration for enumerations; now, algebraic enumeration start values won't work (e.g.,discrete enum vaiable) -> see DAEUtil.mo comments
- timeCodeGen time in SimulationResult record is now separated into timeSimCode and timeTemplates for SimCode structure building and templates evaluation
- fixed non-working optional parameter fileNamePrefix in script commands simulate() and buildModel()
- added 2 external helper functions to Print to support fast template rendering (Adrian, please, check it if they are OK)
- changed SimCode.ModelInfo.name to Absyn.Path
- fixed a bug in SimCode.cre2simvar to correctly deal with derivatives
- added SimCode.derComponentRef to support der(cref) handling in templates -> TODO: this is only a workaround; there should be nothing like der(cref) in as an input expression
- C# codegen improvements

3621 lines of code changed in 12 files:

perost 2010-09-17 14:23 Rev.: 6148

- Reverted some changes from r6146, since they broke some Modelica.Math functions.

5 lines of code changed in 2 files:

perost 2010-09-17 14:12 Rev.: 6147

Fixes for bug #1272:
- Allowed Inst.elabComponentArraydimFromEnv to fetch dimensions from the
component declaration if a component doesn't have a modification.

54 lines of code changed in 3 files:

Frenkel TUD 2010-09-16 23:22 Rev.: 6145

- update RedesignBackendOMC.doc

0 lines of code changed in 1 file:

sjoelund.se 2010-09-16 22:03 Rev.: 6144

Trunkate integers in the interval 30~31 bit like the old parser did.

7 lines of code changed in 2 files:

perost 2010-09-16 13:56 Rev.: 6143

- Fixed wrong path in test case libraries/msl31/Modelica.Blocks.

1 lines of code changed in 1 file:

perost 2010-09-16 13:47 Rev.: 6142

Fixed for bug #1272:
- Added phase before instantiation when doing checkModel that inserts dummy
dimensions where needed.
- Added working models in Modelica.Blocks to test suite.

287 lines of code changed in 6 files:

sjoelund.se 2010-09-15 22:45 Rev.: 6141

- Fix parsing of if-expressions in mos-files

15 lines of code changed in 2 files:

sjoelund.se 2010-09-15 22:16 Rev.: 6140

Fix #1284
- Fixes a bug where "No viable alternative near token: <EOF>" would result in a segfault

3 lines of code changed in 2 files:

sjoelund.se 2010-09-15 21:48 Rev.: 6139

- Change error message for assignments using (=) instead of (:=)

2 lines of code changed in 2 files:

perost 2010-09-15 15:58 Rev.: 6137

- Updated test cases due to r6135.

1136 lines of code changed in 9 files:

Frenkel TUD 2010-09-15 14:30 Rev.: 6136

update RedesignBackendOMC.doc

0 lines of code changed in 1 file:

petar 2010-09-15 14:13 Rev.: 6135

-Changed error messages for unbound parameters.

4 lines of code changed in 2 files:

perost 2010-09-15 14:10 Rev.: 6134

Fixes for bug #1275:
- Allow arrays in instBuiltinAttribute when checkModel is used, so that
checkModel can be used on array types with modifications.
- Added test case libraries/msl31/Modelica.Mechanics.MultiBody.

97 lines of code changed in 3 files:

perost 2010-09-15 11:46 Rev.: 6133

Fix for bug #1237:
- Added special case for Modelica.Electrical.Analog.Lines.M_OLine.segment in
Static.elabSubscriptType, to allow that model to use Real as array index.
- Updated test case libraries/msl31/Modelica.Electrical.Analog.
- Replaced Absyn.pathPrefixOf with a function of less algorithmic complexity.
- Renamed Absyn.stringPath2 to Absyn.stringListPath and made it public.

3720 lines of code changed in 4 files:

perost 2010-09-15 09:56 Rev.: 6132

- Fixed missing semicolon when printing STMT_NORETCALL in DAEDump.ppStmtStr.

1 lines of code changed in 1 file:

adrpo 2010-09-15 06:39 Rev.: 6131

Speed improvements #1264
- System.mo/systemimpl.c: added System.stringAppendList and improved checking for file writing
- Print.mo/printimpl.c: improved file handling and buffer filling + new functions for Template Codegen
- CevalScript.mo: check also partial classes in CevalScript.checkAllModelsRecursive and do not filter libs.
- Util.mo: call System.stringAppendList in Util.stringAppendList

272 lines of code changed in 6 files:

Frenkel TUD 2010-09-14 23:45 Rev.: 6130

- fix else path of functionODE_inline
- cast conditional expressions to modelica_bools avoid warnings

4 lines of code changed in 2 files:

perost 2010-09-14 20:16 Rev.: 6129

Fixes for bug #1274:
- Implemented calls on the form min|max(function returning multiple values),
which may or may not be valid Modelica but which is used in Modelica.Math.
- Unified elabBuiltinMax and elabBuiltinMin, since they do the same thing
anyway.
- Added Static.makeBuiltinCall, to make it easier to create builtin calls.
- Added fixed models to test case libaries/msl31/Modelica.Math.mos.

249 lines of code changed in 2 files:

perost 2010-09-14 18:43 Rev.: 6128

Fixes for bug #1274:
- Replaced Static.dimSize with Types.getDimensionNth.
- Rewrite Static.computeReturnType to allow unknown dimension in matrix
multiplications when checkModel is used.

81 lines of code changed in 2 files:

adrpo 2010-09-14 16:51 Rev.: 6127

Fixes for #1273 #1282
- allow partial classes to be fully instantiated via checkModel and issue a warning about it.
- update testsuite/libraries/msl31/Modelica.Electrical.Analog.mos
- update msl31/Makefile
- make sure msl31.log is always generated in testsuite/libraries/Makefile

150 lines of code changed in 7 files:

adrpo 2010-09-14 16:33 Rev.: 6126

#1266
- do memory profile only when MEMORY_PROFILE is defined
- use $CLAGS in Makefile.common
- more comments in Makefile.vc
- ensure that variable declarations are first in a block in Modelica.g (for Visual Studio CL crap compiler)
- do not use void inside macros in ModelicaParserCommon.h (for Visual Studio CL crap compiler)
- ensure that variable declarations are first in a block in parse.c (for Visual Studio CL crap compiler)

56 lines of code changed in 6 files:

adrpo 2010-09-14 15:53 Rev.: 6125

- a makefile that works with Visual Studio nmake.

59 lines of code changed in 1 file:

perost 2010-09-14 15:13 Rev.: 6124

- Added printing of class comments and annotations to DAEDump.
- Updated test cases.

158 lines of code changed in 16 files:

perost 2010-09-14 13:29 Rev.: 6123

- Fixed expansion of sum(param with fixed=false).
- Added test case mofiles/Sum.

37 lines of code changed in 3 files:

perost 2010-09-14 13:04 Rev.: 6122

- Fixed type of skew function.
- Added test case mofiles/Skew.

42 lines of code changed in 3 files:

perost 2010-09-14 12:42 Rev.: 6121

- Fixed connect statements of array with enum dimensions.
- Added test case mofiles/EnumConnectArray.mo.
- Removed unnecessary parentheses around annotations in DAEDump.
- Modified msl31/Makefile so that the parallell test script can parse it
correctly.

103 lines of code changed in 7 files:

adrpo 2010-09-14 10:58 Rev.: 6120

#1272
- added testsuite/libraries/msl31/Modelica.Blocks.mos as a test for bug 1272
- not yet run by default as some models fail to check/instantiate. add to the
full testsuite when ready.

241 lines of code changed in 1 file:

adrpo 2010-09-14 10:41 Rev.: 6119

Fixes for bugs: #1273 #1156
- OMC will now use the start value for a parameter during
instantiation if the parameter does not have a default value
and report a warning about it. This is widely used in Modelica 3.1.

- DAE.mo
+ added BindingSource to DAE.Binding records DAE.EQBOUND and DAE.VALBOUND
to know weather this binding came from a start value or default value.
- DAEUtil.mo
+ added functions to set the DAE.BindingSource in DAE.Binding and to print DAE.Binding
- Static.mo
+ Static.elabBuiltinDelay
delay(x, variable, variable) generates only a warning now as is used inside
Modelica.Electrical.Analog.Lines.TLine* (where a variable that is an expression of parameters is used)
+ Static.elabCref2
if the parameter binding came from a start value, issue a warning.
- Inst.mo
+ send prefix and component name to Inst.makeBinding and Inst.elabArraydimType for better error messages
+ Inst.makeBinding will use the start value to generate a DAE.Binding as DAE.EQBOUND if the parameter
does not have a default value.
- Main.mo
+ added commented out debug statements using System Timer
- Types.mo
+ improved the display of variables (now it displays where the binding came from start/default)
- All other .mo files
+ fixes due to changes in DAE.mo
- testsuite/*
+ fixes to the test models due to changes in the error/warning messages.
+ now run testsuite/libraries/msl31/* tests by default.





320 lines of code changed in 25 files:

adrpo 2010-09-14 10:18 Rev.: 6118

#1273
- added testsuite/libraries/msl31/Modelica.Electrical.Analog.mos as a test for bug 1273

2433 lines of code changed in 2 files:

adrpo 2010-09-14 09:33 Rev.: 6117

#1274
- added tests for bug 1274

73 lines of code changed in 2 files:

adrpo 2010-09-14 08:42 Rev.: 6116

- small modification for tests of BUG #1156

2197 lines of code changed in 2 files:

adrpo 2010-09-14 08:10 Rev.: 6115

- added Modelica 3.1 to the testsuite/libraries/msl31
This is a copy from: https://svn.modelica.org/projects/Modelica/branches/maintenance/3.1
- added tests for bug: #1156
Modelica.Electrical.Machines.Examples.mos
Modelica.Electrical.MultiPhase.Examples.mos

203940 lines of code changed in 692 files:

asodja 2010-09-13 20:04 Rev.: 6114

Fixed error in c_runtime/Makefile.common regarding libModelicaExternalC.a.

3 lines of code changed in 2 files:

asodja 2010-09-13 19:31 Rev.: 6113

libModelicaExternalC.a is now compiled from Modelica/C-Sources/*c.

1836 lines of code changed in 9 files:

sjoelund.se 2010-09-13 16:44 Rev.: 6112

- make fix-svn-eol-style

111378 lines of code changed in 62 files:

perost 2010-09-13 16:32 Rev.: 6111

Fix for bug #1274:
- Modified Static.elabBuiltinIdentity to work on arrays of unknown size when
checking a model.

15 lines of code changed in 1 file:

perost 2010-09-13 16:00 Rev.: 6110

Fix for bug #1274:
- Changed Types.matchTypeTupleCall to allow tuple calls where the LHS has fewer
components than the RHS.

1 lines of code changed in 1 file:

sjoelund.se 2010-09-13 15:51 Rev.: 6109

- Add -lrt to LDFLAGS when needed

6 lines of code changed in 2 files:

sjoelund.se 2010-09-13 15:36 Rev.: 6107

- Add missing #include in rtclock.c

2 lines of code changed in 1 file:

sjoelund.se 2010-09-13 15:02 Rev.: 6106

- Updated code for rtclock.{c,h}. The new stopwatch uses a clock index outside the range of the user-accessible clocks instead of 13.

8 lines of code changed in 3 files:

perost 2010-09-13 15:02 Rev.: 6105

Fixes for bug #1274:
- Changed Static.elabBuiltinSize so that the resulting expression is not a
constant if we don't know the dimensions yet.
- Added check for checkModel in Static.elabBuiltinCat2, in case the dimension is
not known.

69 lines of code changed in 3 files:

sjoelund.se 2010-09-13 15:01 Rev.: 6104

- Fixed compilation of ModelicaExternalC.cpp (missing errno.h header)

2 lines of code changed in 1 file:

adrpo 2010-09-13 14:41 Rev.: 6103

- add a cumulative timer in System:
+ System.resetTimer() -> set the time to 0
+ System.startTimer() -> starts counting
+ System.stopTimer() -> stops counting and adds the elapsed time since System.startTimer() to the cumulated internal time
+ System.getTimerTime() -> retrieves the internal time.

61 lines of code changed in 2 files:

adrpo 2010-09-13 14:03 Rev.: 6102

- include more functionality in ModelicaExternalC.cpp
needed for Modelcia.Electrical.Machines.

263 lines of code changed in 4 files:

adrpo 2010-09-13 13:54 Rev.: 6101

- transform an integer literal into an enumeration literal if the requested type is an enumeration.
- used in Modelica.Electrical.Machines and Modelica.Electrical.Digital.

21 lines of code changed in 1 file:

adrpo 2010-09-13 13:51 Rev.: 6100

- allow enumeration type to be used as a connector as is used in Modelica.Electrical.Digital.

17 lines of code changed in 1 file:

sjoelund.se 2010-09-13 13:49 Rev.: 6099

- Fix for parsing element_replaceable

23 lines of code changed in 3 files:

sjoelund.se 2010-09-13 12:54 Rev.: 6098

- Transform strings that contain \ not followed by a proper escape char with \\
- We print a warning whenever we do this. It is not in the specification; only for compatibility with Dymola.
- Fixes bug #1143, add testcase testsuite/parser/DocumentationBackslash.mo

44 lines of code changed in 5 files:

perost 2010-09-13 12:06 Rev.: 6097

- Fixed bug in ceval of <>, same problem as fixed in r6093 for ==.
- Added test case mofiles/ConstantLogicalRelations.

85 lines of code changed in 3 files:

perost 2010-09-13 11:32 Rev.: 6096

- Fixed test cases that started to fail when the difftool started to correctly
report errors due to r6095.

134 lines of code changed in 36 files:

sjoelund.se 2010-09-13 10:38 Rev.: 6095

- Fix difftool

2 lines of code changed in 1 file:

perost 2010-09-13 10:18 Rev.: 6094

- Implemented assignments on the form cref := function_returning_tuple(...),
which is possibly needed for bug #1274.
- Added test case mofiles/TupleSingleAssign.

87 lines of code changed in 4 files:

petar 2010-09-13 10:09 Rev.: 6093

-Fixed bug in ceval of false == true, introduced in -r 5993

2 lines of code changed in 1 file:

vasaie_p 2010-09-12 22:41 Rev.: 6092

1.7.3. Start an interactive Simulation Session

Operation: setfilter#tank1.h#3#source.flowLevel#end has been corrected to
"setfilter#3#tank1.h#source.flowLevel#end"

0 lines of code changed in 1 file:

Frenkel TUD 2010-09-11 17:23 Rev.: 6091

- add RedesignBackendOMC.doc concept paper

1 lines of code changed in 1 file:

adrpo 2010-09-10 15:37 Rev.: 6090

- got rid of an left out debug print in Compiler/runtime/errorext.cpp
- give more memory to ANTLR3 by default in Parser/antlr-3.2/runtime/C/include/antlr3defs.h
- use NULL instead of 0 in Parser/parse.c

4 lines of code changed in 3 files:

Frenkel TUD 2010-09-10 14:31 Rev.: 6089

- speedUp again the backend for handle the division by zero problem
therefor Exp.printExp2Str have two new inputs. This inputs are functionpointers. One for how ComponentRef should be printed and one for how DAE.CALL should be printed
- Inline.mo
- remove unused import

148 lines of code changed in 6 files:

sjoelund.se 2010-09-10 12:18 Rev.: 6088

- Workplan update

0 lines of code changed in 1 file:

adrpo 2010-09-10 12:12 Rev.: 6087

- ClassInf.mo: handle all cases in ClassInf.getStateName
- Exp.mo: minor edit
- CevalScript.mo library filtering for checkAllModelsRecursive (disabled for now)
we should make possible to specify a filter in this API.

25 lines of code changed in 3 files:

sjoelund.se 2010-09-10 11:35 Rev.: 6086

- Allow the parser to treat list<X>[:] as valid MetaModelica code, since that's the syntax used in the compiler.
- Fix a bug when a generic parser error got <EOF> as the previous token.
- Added testcase for this
- Added a testcase that loads all the Compiler/*.mo sources and parses them
- None of them give error messages using the new parser

330 lines of code changed in 5 files:

Frenkel TUD 2010-09-10 11:30 Rev.: 6085

- speedUp the backend for handle the division by zero problem
therefor Exp.printExp2Str have two new inputs. This inputs are functionpointers. One for how ComponentRef should be printed and one for how DAE.CALL should be printed

168 lines of code changed in 4 files:

petar 2010-09-10 11:25 Rev.: 6084

-Fixed compilation of rtclock.c for visual studio.

5 lines of code changed in 2 files:

perost 2010-09-10 11:02 Rev.: 6083

- Use fake dimensions when vectorizing a function if checkModel is used.
- partial fix for bug #1274

17 lines of code changed in 1 file:

perost 2010-09-10 11:01 Rev.: 6082

Updated workplan.

0 lines of code changed in 1 file:

petar 2010-09-10 09:07 Rev.: 6081

-Removed some newlines in the debug print of expressions

3 lines of code changed in 1 file:

sjoelund.se 2010-09-10 06:38 Rev.: 6080

- Fix parser compilation with GNU C++ headers (involves #undef __cplusplus to prevent the unintended use of C++ features)

21 lines of code changed in 3 files:

adrpo 2010-09-10 00:03 Rev.: 6079

- use g++ for now to compile the generated parser/lexeer code until
MetaModelica problems with the alignment of double is solved.
- fix compilation errors and warnings due to compilation using g++ vs. gcc.

54 lines of code changed in 4 files:

asodja 2010-09-09 23:25 Rev.: 6078

Fixed a bug in tables.cpp, when table is not read from file - in
that case it is passed to table-intialization function as an array
(which is a local variable in a wrapper function).
Previously the code did not copy that array (just the pointer value).

15 lines of code changed in 1 file:

sjoelund.se 2010-09-09 23:00 Rev.: 6077

- Update the type of SimulationResult

6 lines of code changed in 1 file:

sjoelund.se 2010-09-09 22:12 Rev.: 6076

- Fix rtclock.o compilation on OMDev

6 lines of code changed in 2 files:

sjoelund.se 2010-09-09 21:55 Rev.: 6075

- Adding Compiler/runtime/rtclock.c; a part of the System module
- Contains functions for _accurate_ timing (the Linux timer reports a 1-nanosecond resolution)
- Added extra fields to the SimulationResult record returned by simulate()
- totalTime, timeFrontend, timeBackend, timeCodegen, timeCompile, timeSimulation
- The fields are disabled when running omc through rtest
- Added new flag to omc, --running-testsuite flag (note that you need to use -- --running-testsuite in order to prevent the RML runtime from eating the flag)

263 lines of code changed in 12 files:

perost 2010-09-09 17:23 Rev.: 6074

- Implemented option to output annotations in flat modelica.
- Cleaned up Interactive.evaluateGraphicalApi to make it easier to maintain.
- Updated some msl221 test cases that are normally not run, due to Martins
recent changes.

720 lines of code changed in 25 files:

sjoelund.se 2010-09-09 14:44 Rev.: 6073

- Remove readFile("output.log"); from simulation testcases as it is now redundant

0 lines of code changed in 141 files:

sjoelund.se 2010-09-09 14:32 Rev.: 6072

- Changed the output of simulate()
- Two fields: resultFile and messages
- If the command fails, only messages will be present
- If the command succeeds, the messages field is the contents of output.log
- More fields will be added (for time measurements; to be disabled by a compiler flag so we can run the testsuite)

729 lines of code changed in 160 files:

sjoelund.se 2010-09-09 14:25 Rev.: 6071

- Fix parse.c when parsedebug is used

4 lines of code changed in 1 file:

sjoelund.se 2010-09-09 13:24 Rev.: 6070

- Moved inverted pendulum test from mosfiles to mofiles as it didn't test simulation

6862 lines of code changed in 3 files:

adrpo 2010-09-09 12:55 Rev.: 6069

- make .depends first before diving into omc_* directory.

4 lines of code changed in 1 file:

sjoelund.se 2010-09-09 12:07 Rev.: 6068

- Added testcase for getting values from records in the interactive API. The following now works:
- x := rec.field;
- rec.field;

111 lines of code changed in 5 files:

sjoelund.se 2010-09-09 11:59 Rev.: 6067

- Fix testcase parser/IntegerLiterals64.mo

4 lines of code changed in 1 file:

perost 2010-09-09 11:59 Rev.: 6066

- Fixed so that iterators in for loops get correct type, instead of assuming
that the iterator is an integer. This fixes enumerations in for loop ranges.
- Updated test cases and added test case mofiles/EnumFor.

83 lines of code changed in 7 files:

perost 2010-09-09 09:19 Rev.: 6064

- Made all enumeration names fully qualified.

103 lines of code changed in 15 files:

asodja 2010-09-09 08:49 Rev.: 6063

- Removed unnecessary VarTransform.VariableReplacements from
DAELow.removeSimpleEquations.
- Changed type of aliasVariables in DAELow.DAELOW (currently ignored in trunk).

83 lines of code changed in 4 files:

adrpo 2010-09-09 07:25 Rev.: 6062

- handling task #1269
- partial implementation of stream connectors
+ connection of stream connectors works now

- remains to implement support for inStream and actualStream operators
(see Inst.evalActualStream and Inst.evalInStream)
- the handling of inStream and actualStream operators is disable for now,
to enable, uncomment the call to: Inst.handleStreamConnectors inside Inst.instClass

717 lines of code changed in 8 files:

Frenkel TUD 2010-09-09 01:34 Rev.: 6061

- fix bug (more than one tearing variable) for relaxation algorithm

155 lines of code changed in 1 file:

wbraun 2010-09-08 22:35 Rev.: 6060

- fixed bug [#1263]

54 lines of code changed in 3 files:

Frenkel TUD 2010-09-08 20:48 Rev.: 6059

- speedup updateAlgorithm

25 lines of code changed in 2 files:

sjoelund.se 2010-09-08 14:37 Rev.: 6058

- Fixed IntegerLiterals32.mo on OMDev

19 lines of code changed in 2 files:

sjoelund.se 2010-09-08 14:25 Rev.: 6057

- Also sort files in a directory when using the class loader
- Fixed some compiler warnings (unused imports)

2 lines of code changed in 4 files:

sjoelund.se 2010-09-08 14:13 Rev.: 6056

- ClassLoader change: Sort subdirectories so list() output is the same in Linux and Windows
- Add (preliminary) parser support for fully-qualified names and crefs
- Absyn was not updated with CREF_FULLYQUALIFIED; a warning is output
- pathString was not updated to print the initial dot for fully-qualified paths, since the function is used in so many places
- Added testcase for empty within statements

113 lines of code changed in 9 files:

sjoelund.se 2010-09-08 11:57 Rev.: 6055

- Fix parser for empty within statements (within ;)

1 lines of code changed in 1 file:

sjoelund.se 2010-09-08 11:35 Rev.: 6054

- Added parsing support for empty tuples, and Modelica wildcard matching
in tuples: (a,,c) is (a,Absyn__WILD,c). It's the same as writing (a,_,c) with
a MetaModelica lexer.

75 lines of code changed in 5 files:

perost 2010-09-08 11:33 Rev.: 6053

- Implemented reduction of enumeration ranges so that the enumeration literals
are preserved.
- Added utility function Util.listSub.
- Added test case mofiles/EnumRange.mo.

144 lines of code changed in 6 files:

sjoelund.se 2010-09-08 10:37 Rev.: 6052

- Removed antlr dependency from OMShell-terminal

4 lines of code changed in 1 file:

sjoelund.se 2010-09-08 08:55 Rev.: 6050

- Update parser makefile

42 lines of code changed in 1 file:

sjoelund.se 2010-09-08 08:40 Rev.: 6049

- Updated expected output of FunctionInReinit.mos (Willi fixed reinit in r6047)

1 lines of code changed in 1 file:

sjoelund.se 2010-09-08 06:04 Rev.: 6048

- Fix integer overflow problem warning on 32-bit systems

4 lines of code changed in 1 file:

wbraun 2010-09-08 03:55 Rev.: 6047

add reinit support for euler, rungekutta, dassl2

1763 lines of code changed in 7 files:

adrpo 2010-09-08 00:08 Rev.: 6046

- fixed model extends X end X;

3 lines of code changed in 1 file:

Frenkel TUD 2010-09-07 21:41 Rev.: 6045

- handle also inputs from DAELow.ALGORITHM in remove simple equations
- check if all inputs/outputs still used in algorithms
- more information in case of an error for lowerWhenEqn

44 lines of code changed in 2 files:

sjoelund.se 2010-09-07 18:39 Rev.: 6044

- Fix compiler makefile dependencies of subdirs

4 lines of code changed in 1 file:

sjoelund.se 2010-09-07 17:56 Rev.: 6043

- Changed default parser from ANTLR2 to ANTLR3
- All testcases except flat modelica parsing works

475 lines of code changed in 60 files:

perost 2010-09-07 15:48 Rev.: 6042

- Fixed elaboration of sum of array with enumeration dimensions.
- Expanded test case mofiles/EnumDimSum to test the new functionality.
- Changed Util.listMap1_tail and Util.listMap1r_tail so that they use
listReverse instead of listAppend.
- Added function Util.listMapAndFold.

122 lines of code changed in 3 files:

sjoelund.se 2010-09-07 13:34 Rev.: 6041

- Updated MetaModelica testcases (uses rtest cflags instead of changing env vars before the rtest call)

58 lines of code changed in 57 files:

asodja 2010-09-07 12:27 Rev.: 6040

Reverted checking for stricly-monotonous time samples in
c_runtime/tables.cpp.
It turned out that having only monatonous time samples is not the
smartest idea, since CombiTimeTable does not raise any events.

6 lines of code changed in 1 file:

asodja 2010-09-07 11:39 Rev.: 6039

Fixed bug where InterpolationTable::extrapolate() expects enumeration
indices to begin with 0.

3 lines of code changed in 1 file:

asodja 2010-09-07 11:32 Rev.: 6038

In c_runtime/tables.cpp, fixed modulo divison in extrapolation and
add zero-division guarding in interpolation (since time samples do not
need to be strictly monotonous anymore).

Also fixed incorrectly swapped min-time and max-time function in
libModelicaExternalC.

10 lines of code changed in 3 files:

perost 2010-09-07 11:08 Rev.: 6037

- Fixed vectorization of crefs so that enumeration dimensions are preserved.
- Added test case mofiles/EnumDimSum.

140 lines of code changed in 5 files:

asodja 2010-09-06 23:32 Rev.: 6035

Allowed time samples to be only monotonous (before strictly monotonous)
in c_runtime/tables.cpp.

8 lines of code changed in 1 file:

adrpo 2010-09-06 22:38 Rev.: 6034

- added missing c_runtime/ModelicaExternalC/Makefile
- fixed ? from Link?ping in ModelicaExternalC.cpp and included "../tables.h" instead of "tables.h"

16 lines of code changed in 2 files:

Frenkel TUD 2010-09-06 22:32 Rev.: 6033

- handle also inputs from DAELow.ALGORITHM in remove simple equations
- remove negation sign,
- remove equal inputs
- TODO: check if all inputs still used in algorithm

6 lines of code changed in 1 file:

asodja 2010-09-06 22:15 Rev.: 6032

Added wrappers for table-manipulation functions (defined in
c_runtime/tables.h) to libModelicaExternalC.

All other functions remain unimplemented.

411 lines of code changed in 2 files:

Frenkel TUD 2010-09-06 21:16 Rev.: 6031

- handle also inputs from DAELow.ALGORITHM in remove simple equations
- TODO: remove negation sign, remove equal inputs, check if all inputs still used in algorithm

8 lines of code changed in 1 file:

sjoelund.se 2010-09-06 17:06 Rev.: 6030

- Simplified parsing of identifiers
- _ is now a valid identifier when lexing as Modelica 3
- It is Absyn.WILD when lexing as MetaModelica

157 lines of code changed in 10 files:

asodja 2010-09-06 16:18 Rev.: 6029

In Modelica Standard Library 3.1, certain external functions are lined with
library ModelicaExternalC, which is currently missing in OpenModelica.

Directory c_runtime/ModelicaExternalC was added and a header file with all
needed external functions which will need to be implemented (mostly are
they just a wrapper to Standard C Library or libc_runtime.a).

0 lines of code changed in 1 file:

sjoelund.se 2010-09-06 14:54 Rev.: 6028

- Handle $Code in ANTLR2 and ANTLR3 parsers; in preparation of MSL 3.2 support
- Tools are recommended to use $Code instead, but for now Code is also supported

25 lines of code changed in 4 files:

sjoelund.se 2010-09-06 14:46 Rev.: 6027

- ANTLR3 parser
- Handle code expressions as in ANTLR2 (never output as VARIABLENAME or TYPENAME)
- Commented Absyn.mo to reflect that the parser shouldn't consider these
- Handle integer overflow in the parser (64-bit versions now get up to 63-bit integers; this may cause differences in test models - if so, simply force them to be real numbers)

57 lines of code changed in 5 files:

sjoelund.se 2010-09-06 13:04 Rev.: 6026

- Changed testcase parser/IntegerLiterals.mo into one for 32-bit versions of OMC and one for 64-bit.

57 lines of code changed in 3 files:

perost 2010-09-06 11:52 Rev.: 6025

- Implemented simplification of size calls.
- Added test case mofiles/ConstantSize and updated mofiles/DiagonalBlock.

104 lines of code changed in 5 files:

sjoelund.se 2010-09-06 11:21 Rev.: 6024

- Added support for Parse.parsestring and parsestring in the ANTLR3 parser
- Now clients like OMNotebook and OMShell work fine with it
- Added testcase for parsing "else" in matchcontinue expressions
- TODO: Flat Modelica

306 lines of code changed in 6 files:

perost 2010-09-06 11:18 Rev.: 6023

- Updated parallell test scripts to handle RunScript.

3 lines of code changed in 1 file:

perost 2010-09-06 11:14 Rev.: 6022

- Fixed mistake in parser test Makefile.

1 lines of code changed in 1 file:

sjoelund.se 2010-09-06 11:08 Rev.: 6021

- Updated ErrorExt runtime
- The C version now has a function rollBackAndPrint, which does a rollBack to an ID, and returns the strings of all errors that were removed from the stack.
- To be used by the new parser for handling the weird output of Parse.parsestring

80 lines of code changed in 2 files:

sjoelund.se 2010-09-06 10:35 Rev.: 6020

- Expected output runscript

6 lines of code changed in 1 file:

Frenkel TUD 2010-09-06 10:31 Rev.: 6019

- speedup backend function addDivExpErrorMsgtoExp

56 lines of code changed in 1 file:

perost 2010-09-06 09:40 Rev.: 6018

- Fixed bug #1255 by also fixing submods in InstExtends.
- Added test case mofiles/ExtendsModWithImport.

80 lines of code changed in 3 files:

sjoelund.se 2010-09-06 09:09 Rev.: 6017

- Added testcase for runScript() API

16 lines of code changed in 3 files:

sjoelund.se 2010-09-06 07:35 Rev.: 6015

- Updated ParseFullModelica3.1.mos expected output

4 lines of code changed in 1 file:

sjoelund.se 2010-09-06 07:33 Rev.: 6014

- Remove svn properties from ParseFullModelica3.1.mos

4 lines of code changed in 1 file:

Frenkel TUD 2010-09-05 23:09 Rev.: 6013

- do not replace outputs of algorithms

68 lines of code changed in 1 file:

Frenkel TUD 2010-09-05 18:08 Rev.: 6012

- do simple replace also for algorithms
- TODO: add algorithm outputs to BinTree of DAELow.removeSimpleEquations

262 lines of code changed in 2 files:

petar 2010-09-03 16:03 Rev.: 6011

- Changed Exp.subscriptDimension to return list of DAE.Dimension

12 lines of code changed in 1 file:

sjoelund.se 2010-09-03 09:57 Rev.: 6010

- Updated ANTLR3 parser (match/matchcontinue/else)
- Most of the testsuite now passes (virtually only error messages are different)

90 lines of code changed in 7 files:

sjoelund.se 2010-09-03 08:20 Rev.: 6009

- Removed Parser/FullModelica.3.1.mo, as it is part of the testsuite instead

0 lines of code changed in 1 file:

sjoelund.se 2010-09-03 07:41 Rev.: 6008

- Remove svn:keywords from parser/ParseFullModelica3.1.mos so it doesn't change expected output every commit

1 lines of code changed in 1 file:

sjoelund.se 2010-09-03 00:27 Rev.: 6007

- Added testcase for parsing/unparsing of FullModelica3.1.mo

205899 lines of code changed in 5 files:

sjoelund.se 2010-09-02 23:26 Rev.: 6006

- Modified some old testcases that used MetaModelica grammar (+., +& operators) even though they were Modelica testcases
- Fixed some issues with the ANTLR3 parser crashing when the lexer was fed bad input
- Fixed parser errors in testsuite/mosfiles/BouncingBall.mos (non-backtracking parsers can't see the difference between if-expressions and if-statements; it needs parenthesis or to be part of an assignment statement in order to work properly)
- Fixed rtest (erroneous testcases now always print "erroneous" regardless if they fail or not)

106 lines of code changed in 15 files:

sjoelund.se 2010-09-02 16:55 Rev.: 6005

- Disabled failing testcases in testsuite/parser (they work with the ANTLR3 parser)
- Added 3 new testcases for handling parser errors in assignment statements

64 lines of code changed in 4 files:

perost 2010-09-02 16:53 Rev.: 6004

- Implemented expansion of reduction calls sum and product, which are now
expanded when possible.
- Added test case mofiles/Reductions.

180 lines of code changed in 3 files:

sjoelund.se 2010-09-02 14:30 Rev.: 6003

- ANTLR3 parser now compiles lexers in separate object-files, and can switch between them at runtime. No MetaModelica tokens will be generated from the Modelica3 lexer. There is also a Modelica2 lexer if someone wants it.

679 lines of code changed in 9 files:

adrpo 2010-09-02 11:51 Rev.: 6002

- revert (left-by-mistake) changes

2 lines of code changed in 1 file:

perost 2010-09-02 11:21 Rev.: 6001

- Simplified elaboration of reduction iterators due to general changes in
iterator elaboration.

3 lines of code changed in 1 file:

sjoelund.se 2010-09-02 11:15 Rev.: 6000

- Added omc.exe omcd.exe targets to the Parser/Makefile, to link and use ANTLR3 instead of ANTLR2

6 lines of code changed in 1 file:

sjoelund.se 2010-09-02 11:10 Rev.: 5999

- Fixed some more issues in the ANTLR3 parser (97 of 1036 testcases failing now)
- Still needs to be able to work as string parser (CORBA communication, etc)
- Needs to be checked for performance issues (loadFile() is faster, but instantiateModel() is slower when working on the generated data structures)
- Needs to have two (or three) different lexers (for Modelica, MetaModelica, maybe flat Modelica modes)
- Currently, there are some special macros for MetaModelica stuff, but these are ugly
- Moved around in the testsuite: created a parser library strictly for testing lexing/parsing/unparsing
- One of the new testcases does not work with the ANTLR2 parser, because it can't switch between MetaModelica and Modelica mode

648 lines of code changed in 22 files:

perost 2010-09-02 09:58 Rev.: 5998

- Fixed bug 1241, wrong array index in expanded multidim equation.
- Added test case mofiles/ArrayIndex2 to test the fix.
- Updated test case mosfiles/SliceAssignment with bug id.

104 lines of code changed in 5 files:

Frenkel TUD 2010-09-02 09:51 Rev.: 5997

- fix bug in DAELow.traversingextendArrExp

7 lines of code changed in 1 file:

perost 2010-09-01 14:43 Rev.: 5995

- Commented out case in DAELow.traversingextendArrExp that converted component
references belonging to blocks to empty calls.
- Added test case mofiles/BlockResult.

67 lines of code changed in 3 files:

perost 2010-09-01 13:45 Rev.: 5994

- Fixed bug 1249 by relaxing the condition in crefHasScalarSubscripts, so that
crefs can have less dimensions than subscripts.
- Added test case mosfiles/SliceAssignment.

41 lines of code changed in 4 files:

perost 2010-09-01 12:32 Rev.: 5993

- Introduced a new Exp type, ENUM_LITERAL, that represents enumeration literals.
- Enumerations in array dimensions and array subscripts are now kept in the flat
Modelica output.
- Replaced DAE.ArrayDim and Inst.DimExp with DAE.Dimension.
- Added type constants to Builtin.mo to make it easier to change type
representations.
- Changed Exp.printExp2Str to take a string delimiter as input, so that DAEQuery
and XMLDump don't need their own copies of printExp2Str.
- Fixed a lot of type errors in Static, Exp and ValueUtil.
- Updated the code generator to handle enumeration literals and the new
dimension type.
- Updated the parallel test script to handle erronous test cases.
- Updated a couple of test cases due to changes in the flat Modelica output.
- Added a test case to test enumeration dimensions in array equations.

3637 lines of code changed in 39 files:

sjoelund.se 2010-09-01 11:39 Rev.: 5992

- Updated ANTLR3 grammar slightly (if-expressions). It can now handle ~623 of the testcases, and many of the "failing" ones are just old ones but with improved error messages.

2 lines of code changed in 1 file:

sjoelund.se 2010-09-01 11:24 Rev.: 5991

- Update handling of Absyn.IFEXP in the old parser and Static (we now have support for else-if branches in elabExp)

27 lines of code changed in 3 files:

sjoelund.se 2010-09-01 10:03 Rev.: 5990

- Updated ANTLR3 grammar slightly. It can now handle ~572 of the testcases.
- Improved error handling in the new parser.

205 lines of code changed in 5 files:

August 2010 »

Generated by StatSVN 0.7.0