Directory testsuite/redeclare/

Directory Created:
2011-03-28 10:00
Directory Deleted:
2012-10-01 19:57
Total Files:
0
Deleted Files:
47
Lines of Code:
0

[root]/testsuite/redeclare

Lines of Code

testsuite/redeclare/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 194 (100.0%) 1702 (100.0%) 8.7
perost 81 (41.8%) 1420 (83.4%) 17.5
adrpo 16 (8.2%) 208 (12.2%) 13.0
sjoelund.se 49 (25.3%) 50 (2.9%) 1.0
mahge930 1 (0.5%) 24 (1.4%) 24.0
alash325 47 (24.2%) 0 (0.0%) 0.0

Most Recent Commits

alash325 2012-10-01 19:57 Rev.: 13125

- expandable,streams,records ,and redeclare directory from testsuite are moved to ./flattening/modelica plus updated the corresponding Make file

0 lines of code changed in 47 files:

  • testsuite/redeclare: BranchingDynamicPipes.mo (del), ClassExtends1.mo (del), ClassExtends2.mo (del), ClassExtends3.mo (del), ClassExtends4.mo (del), ClassExtends5.mo (del), ClassExtendsInvalid1.mo (del), ClassExtendsInvalid2.mo (del), ConstantRedeclareModifier.mo (del), ConstrainingType1.mo (del), ConstrainingType2.mo (del), DuplicateRedeclares1.mo (del), DuplicateRedeclares2.mo (del), FinalRedeclareModifier.mo (del), FinalRedeclareModifier2.mo (del), Makefile (del), Modification1.mo (del), Modification2.mo (del), NonexistentElementRedeclare1.mo (del), NonexistentElementRedeclare2.mo (del), Redeclare1.mo (del), Redeclare2.mo (del), Redeclare3.mo (del), Redeclare4.mo (del), Redeclare5.mo (del), Redeclare6.mo (del), Redeclare6.mos (del), RedeclareBaseClass1.mo (del), RedeclareClass1.mo (del), RedeclareClass2.mo (del), RedeclareClass3.mo (del), RedeclareComponent1.mo (del), RedeclareComponent2.mo (del), RedeclareComponent3.mo (del), RedeclareComponentInvalid1.mo (del), RedeclareComponentInvalid2.mo (del), RedeclareComponentInvalid3.mo (del), RedeclareFlowEffort.mo (del), RedeclareFunction.mo (del), RedeclareFunction1.mo (del), RedeclareFunctionBug1432.mo (del), RedeclareModifierInvalid1.mo (del), RedeclareModifierInvalid2.mo (del), RedeclareVisibility.mo (del), RedeclareVisibility2.mo (del), ReplaceableBaseClass.mo (del), example.mo (del)
sjoelund.se 2012-08-30 11:01 Rev.: 12732

- Fixed svn:eol-style

2 lines of code changed in 2 files:

  • testsuite/redeclare: NonexistentElementRedeclare1.mo (+1), NonexistentElementRedeclare2.mo (+1)
perost 2012-06-15 19:21 Rev.: 12067

- Fixing the testsuite, again...

1 lines of code changed in 1 file:

  • testsuite/redeclare: NonexistentElementRedeclare2.mo (+1 -1)
perost 2012-06-15 18:55 Rev.: 12064

- Added error message when trying to redeclare nonexisting element.

47 lines of code changed in 4 files:

  • testsuite/redeclare: DuplicateRedeclares1.mo (+3 -2), Makefile (+2), NonexistentElementRedeclare1.mo (new 21), NonexistentElementRedeclare2.mo (new 21)
perost 2012-05-10 14:06 Rev.: 11885

- Implemented a new template based expression dumping.
- Updated test suite.

2 lines of code changed in 1 file:

  • testsuite/redeclare: RedeclareFunction.mo (+2 -2)
sjoelund.se 2012-04-04 11:47 Rev.: 11650

- Changed the Dependency+SCode+Inst calls everywhere to:
+ CevalScript.runFrontEnd(...), which does more error-checking
- Removed Inst.{instantiate,instProgram} as they are not needed (they were used to inst the last class of the program; which can be performed by asking for the last class of the program and instantiating that)

11 lines of code changed in 11 files:

  • testsuite/redeclare: ClassExtendsInvalid1.mo (+1), ClassExtendsInvalid2.mo (+1), ConstantRedeclareModifier.mo (+1), DuplicateRedeclares1.mo (+1), DuplicateRedeclares2.mo (+1), FinalRedeclareModifier.mo (+1), RedeclareFlowEffort.mo (+1), RedeclareModifierInvalid1.mo (+1), RedeclareModifierInvalid2.mo (+1), RedeclareVisibility2.mo (+1), ReplaceableBaseClass.mo (+1)
mahge930 2012-03-01 22:48 Rev.: 11260

+ The test-suite makefile now contain DEPENDENCIES. This are the files that are needed for the test cases.
+ "make clean" or (make -j clean) will clean the test-suite. i.e. all files that are not listed as DEPENDENCIES will be cleaned.
For OMDEV/MINGW ppl (linux already has partest)
+ "make threaded" will clean and then run the test-suite with 5 threads (my pc has 4 cores so :) ). (or just use "make -jN")
- 'msl31simulation.log' and 'msl31mediasimulation.log' still give problems with multiple threads. Very strange problem since the
output matches exactly with the expected but for some reason it is compared with outputs from another file. But For now this might help a bit.

Normal test-suite operation is not affected in anyway as far as I can tell. (Just some additions)

24 lines of code changed in 1 file:

  • testsuite/redeclare: Makefile (+24 -2)
sjoelund.se 2012-02-25 09:52 Rev.: 11204

- Added rule Real(i1:i2) => Real(i1):Real(i2)

2 lines of code changed in 1 file:

  • testsuite/redeclare: RedeclareFunction.mo (+2 -2)
perost 2012-02-07 13:32 Rev.: 11038

- Changed the unbalanced connector error to be a warning.

3 lines of code changed in 1 file:

  • testsuite/redeclare: RedeclareFlowEffort.mo (+3 -1)
sjoelund.se 2012-01-18 11:02 Rev.: 10918

- Set svn-eol-style on a few files

34 lines of code changed in 34 files:

  • testsuite/redeclare: BranchingDynamicPipes.mo (+1), ClassExtends5.mo (+1), ClassExtendsInvalid1.mo (+1), ClassExtendsInvalid2.mo (+1), ConstantRedeclareModifier.mo (+1), ConstrainingType1.mo (+1), ConstrainingType2.mo (+1), DuplicateRedeclares1.mo (+1), DuplicateRedeclares2.mo (+1), FinalRedeclareModifier.mo (+1), FinalRedeclareModifier2.mo (+1), Makefile (+1), Modification1.mo (+1), Modification2.mo (+1), Redeclare6.mo (+1), Redeclare6.mos (+1), RedeclareBaseClass1.mo (+1), RedeclareClass1.mo (+1), RedeclareClass2.mo (+1), RedeclareClass3.mo (+1), RedeclareComponent1.mo (+1), RedeclareComponent2.mo (+1), RedeclareComponent3.mo (+1), RedeclareComponentInvalid1.mo (+1), RedeclareComponentInvalid2.mo (+1), RedeclareComponentInvalid3.mo (+1), RedeclareFunction.mo (+1), RedeclareFunction1.mo (+1), RedeclareModifierInvalid1.mo (+1), RedeclareModifierInvalid2.mo (+1), RedeclareVisibility.mo (+1), RedeclareVisibility2.mo (+1), ReplaceableBaseClass.mo (+1), example.mo (+1)
sjoelund.se 2011-12-07 17:32 Rev.: 10672

- Expected output

1 lines of code changed in 1 file:

  • testsuite/redeclare: RedeclareFlowEffort.mo (+1 -1)
perost 2011-11-30 17:40 Rev.: 10616

- Removed check for redeclaration of protected elements, since it's actually
allowed.
- Implemented support for cardinality of connector arrays.

7 lines of code changed in 2 files:

  • testsuite/redeclare: RedeclareVisibility.mo (+5 -10), RedeclareVisibility2.mo (+2 -3)
adrpo 2011-11-30 07:11 Rev.: 10604

HUGE update to SVN with *a lot* of changes: DO MAKE CLEAN!
==========================================================
- The DAE.ExpType is *no more*
- The BackendDAE.Type is *no more*
Both got replaced by DAE.Type!
- The DAE.ExpVar is *no more*
It got replaced by DAE.Var!
Now we have *ONLY ONE* type in the compiler: DAE.Type!


Just to know why I got this done:

BEFORE, the model HumMod took 6m51 seconds to instantiate
adrpo@ida-liu050 ~/dev/OpenModelica/doc/performance/benchmarks/tests
$ time /c/OpenModelica1.8.0-r10584/bin/omc instHumMod.mos > trace.txt 2>&1
real 6m51.354s
user 0m0.000s
sys 0m0.015s

AFTER, the model HumMod takes 47 seconds to instantiate
adrpo@ida-liu050 ~/dev/OpenModelica/doc/performance/benchmarks/tests
$ time ../../../../build/bin/omc instHumMod.mos > mytrace.txt 2>&1
real 0m47.248s
user 0m0.000s
sys 0m0.000s

Is about 8,74468085106383 times faster now.
Basically, before, we were doing DAE.T_*
-> DAE.ET_* translation for 6 minutes!

I started this work on Friday after the OpenModelica 1.8.0
got released, so for 4+ days of work I think the result is
quite OK.



Crash course into the new types (actually old ones from DAE.Type):
==================================================================

1. DAE.Type is not a tuple anymore, instead the optional path
became DAE.TypeSource which is a list of paths and is now
part of *all* the records in DAE.Type.

The needed types from DAE.ExpType got merged into DAE.Type:
DAE.ET_METATYPE -> DAE.T_METATYPE
DAE.ET_FUNCTION_REFERENCE_VAR -> DAE.T_FUNCTION_REFERENCE_VAR
DAE.ET_FUNCTION_REFERENCE_FUNC -> DAE.T_FUNCTION_REFERENCE_FUNC

Some DAE.Type types got split:
DAE.T_COMPLEX split into DAE.T_COMPLEX for types not extending
basic types and DAE.T_SUBTYPE_BASIC is now used for types
extending basic types.

Some DAE.Type types changed name:
DAE.T_NOTYPE -> DAE.T_UNKNOWN
Renamed also the meta-types a bit to make them more homogeneous.

Some DAE.ExpType are gone:
DAE.ET_OTHER is gone, use DAE.T_UNKNOWN instead!

Some DAE.Type types changed structure (besides the DAE.TypeSource addition):
(DAE.T_ARRAY(dim, ty), optPath) -> DAE.T_ARRAY(ty, list<dim>, list<Path>)
so we now have similar structure for DAE.T_ARRAY and the previous DAE.ET_ARRAY.


2. In cases, when matching:
Instead of | Use now:
-------------------------------------------------------
DAE.ET_INT() | DAE.T_INTEGER(source = _)
DAE.ET_REAL() | DAE.T_REAL(source = _)
DAE.ET_BOOL() | DAE.T_BOOL(source = _)
DAE.ET_STRING() | DAE.T_STRING(source = _)
DAE.ET_ENUMERATION(...) | DAE.T_ENUMERATION(...)
DAE.ET_COMPLEX(...) | DAE.T_COMPLEX(...)
DAE.ET_OTHER(...) | DAE.T_UNKNOWN(source = _)
DAE.ET_ARRAY(...) | DAE.T_ARRAY(...)
-------------------------------------------------------

3. When constructing values, in the then part or in right
hand side in equations:
Instead of | Use now:
-------------------------------------------------------
DAE.ET_INT() | DAE.T_INTEGER_DEFAULT
DAE.ET_REAL() | DAE.T_REAL_DEFAULT
DAE.ET_BOOL() | DAE.T_BOOL_DEFAULT
DAE.ET_STRING() | DAE.T_STRING_DEFAULT
DAE.ET_ENUMERATION(...) | DAE.T_ENUMERATION(...)
DAE.ET_COMPLEX(...) | DAE.T_COMPLEX(...)
DAE.ET_OTHER(...) | DAE.T_UNKNOWN(source = _)
DAE.ET_ARRAY(...) | DAE.T_ARRAY(...)
-------------------------------------------------------

4. Types.elabType got renamed to Types.simplifyType
and does some type simplification (instead of the
previous DAE.T_* -> DAE.ET_* translation).

Feel free to ask me anything if something is unclear.

The code can be further improved (we need better handling
of DAE.T_ARRAY that has several dimensions instead of one)
by getting rid of Types.simplifyType/Types.expTypetoTypesType,
but for now is good enough. Also, functionality for the old
DAE.ET_* handling from Expression*.mo can be merged with the
DAE.T_ handling from Types so we can get rid of duplicate
code too.

2 lines of code changed in 1 file:

  • testsuite/redeclare: RedeclareFunction.mo (+2 -2)
perost 2011-11-28 17:21 Rev.: 10589

- Changed instClassDecls to not filter out the class to instantiate, since this
causes problems when instantiating a top model.
- Added test cases to test the fix.

57 lines of code changed in 3 files:

  • testsuite/redeclare: Makefile (+2), Redeclare6.mo (new 34), Redeclare6.mos (new 21)
adrpo 2011-11-15 12:44 Rev.: 10515

- include the modifiers and dimensions in the dependency analysis in Inst.instElementList
- move annotation checking functions from DAEUtil to SCode.
- convert type of the Value in the binding if needed (to get rid of things like min = 0, instead of min = 0.0)
- in partial instantiation disregard parameters, instantiate only constants.
- rename the really bad name "subs" to restCref in Static.elabCrefSubs.
- clear errors when loadingFileInteractiveQualified API and parseFile API
- added vaporizing.mo test

- a LOT of tests have changed
- small fixes to tools/validatetest/validatetest.pl

15 lines of code changed in 7 files:

  • testsuite/redeclare: ClassExtends1.mo (+2 -2), ClassExtends2.mo (+2 -2), Redeclare1.mo (+2 -2), Redeclare2.mo (+2 -2), Redeclare3.mo (+2 -2), Redeclare4.mo (+3 -3), Redeclare5.mo (+2 -2)
perost 2011-11-08 12:20 Rev.: 10327

- Don't enter base classes that the lookup is coming from in SCodeLookup to
avoid infinite loops when extending a base class further down in the environment.
- When doing dependency analysis on an extends clause, remove it from the
environment so that we don't look it up in itself.

5 lines of code changed in 5 files:

  • testsuite/redeclare: ConstantRedeclareModifier.mo (+1 -1), FinalRedeclareModifier.mo (+1 -1), RedeclareModifierInvalid1.mo (+1 -1), RedeclareModifierInvalid2.mo (+1 -1), RedeclareVisibility.mo (+1 -1)
perost 2011-10-26 14:42 Rev.: 10221

- Added a flag to OMC, +std, to set the Modelica language version to use. API
calls setLanguageStandard and getLanguageStandard are also implemented for
this.
- The Modelica language version is now set automatically if a specific version
of the MSL is loaded, and gives a notification if the version has changed.
- Added new package RTOptsData, which contains data types and some functions
which can't be in RTOpts since RML doesn't allow mixing external and
non-external things.
- Turned on error messages for replaceable base classes if Modelica version is
at least 3.0.
- Turned on balance checking of connectors if Modelica version is at least 3.0.
- Updated test suite, and added a new test case redeclare/ReplaceableBaseClass.

32 lines of code changed in 4 files:

  • testsuite/redeclare: BranchingDynamicPipes.mo (+3), Makefile (+1), RedeclareFlowEffort.mo (+1 -2), ReplaceableBaseClass.mo (new 27)
adrpo 2011-10-21 05:04 Rev.: 10184

- chain the redeclares.

49 lines of code changed in 3 files:

  • testsuite/redeclare: BranchingDynamicPipes.mo (new 46), ClassExtends1.mo (+1), Makefile (+2)
adrpo 2011-09-27 08:51 Rev.: 9944

- getting the testsuite closer to 100%
- more fixes are on the way for redeclares.

6 lines of code changed in 1 file:

  • testsuite/redeclare: RedeclareFunction.mo (+6 -6)
perost 2011-09-02 12:51 Rev.: 9734

Fix for bug #1605
- Report error for duplicate redeclarations in the same scope.

54 lines of code changed in 3 files:

  • testsuite/redeclare: DuplicateRedeclares1.mo (new 26), DuplicateRedeclares2.mo (new 26), Makefile (+2)
perost 2011-06-18 16:24 Rev.: 9317

- Fixed stack overflow for Modelica.Media.IdealGases.Common.SingleGasNasa, see
added comments in SCodeFlattenRedeclare for explanation of the fix.
- Added test case redeclare/RedeclareBaseClass1 and removed duplicate test
redeclare/RedeclareFunctionBug1432.

45 lines of code changed in 2 files:

  • testsuite/redeclare: Makefile (+1 -1), RedeclareBaseClass1.mo (new 44)
perost 2011-05-26 16:48 Rev.: 9137

- Removed a tab.

1 lines of code changed in 1 file:

  • testsuite/redeclare: ConstrainingType1.mo (+1 -1)
perost 2011-05-26 16:27 Rev.: 9136

- Translate Absyn.ConstrainClass into SCode.ConstrainClass in
translateAbsyn2SCode.
- Updated some redeclare test cases.

38 lines of code changed in 3 files:

  • testsuite/redeclare: ConstrainingType1.mo (+10 -14), ConstrainingType2.mo (new 27), Makefile (+1)
adrpo 2011-05-24 05:10 Rev.: 9080

Fixes for bugs: #1430, #1432

- moved printing functions from SCode to SCodeDump.
- some fixes to redeclares-as-element in SCodeFlattenRedeclare.mo
- fixes for handling derived classes (that do not extend from basic types)
to have the correct scope, not the scope of the base class (Inst.mo).
- added SCodeDump.mo
- added SCodeFlat.mo (not part of the compilation yet).
- added more tests for replaceable functions and for functions in derived packages that depend on a modified constant.
- added SCodeMod.mo to handle modifiers.
- some changes in SCodeHashTable.mo
- disabled SCodeFlattenExtends.mo for now.

136 lines of code changed in 4 files:

  • testsuite/redeclare: Makefile (+2), RedeclareFunction.mo (new 55), RedeclareFunction1.mo (+13 -9), RedeclareFunctionBug1432.mo (new 66)
perost 2011-05-23 12:01 Rev.: 9072

- Cleaned up elaboration of subscripts in Static.elabSubscriptDims.
- Corrected evaluation of subscripts in Static.elabSubscriptDims.
- Added test case mofiles/SubscriptEval.
- Corrected test case redeclare/Modification1.

2 lines of code changed in 1 file:

  • testsuite/redeclare: Modification1.mo (+2 -2)
perost 2011-05-09 11:09 Rev.: 8882

For bug #1430:
- Added test case for bug 1430.

63 lines of code changed in 2 files:

  • testsuite/redeclare: Makefile (+1), RedeclareFunction1.mo (new 62)
perost 2011-05-04 11:52 Rev.: 8804

- Removed erroneous check for non-replaceable class definitions in Inst.
- Added test case redeclare/FinalRedeclareModifier2.

26 lines of code changed in 2 files:

  • testsuite/redeclare: FinalRedeclareModifier2.mo (new 25), Makefile (+1)
perost 2011-05-03 15:47 Rev.: 8789

- Added another test case for redeclare checks.

26 lines of code changed in 2 files:

  • testsuite/redeclare: Makefile (+1), RedeclareVisibility2.mo (new 25)
perost 2011-05-03 15:13 Rev.: 8788

- Check for protected or constant elements when handling redeclare.

53 lines of code changed in 4 files:

  • testsuite/redeclare: ConstantRedeclareModifier.mo (new 25), Makefile (+2), RedeclareModifierInvalid2.mo (+1 -1), RedeclareVisibility.mo (new 25)
perost 2011-05-03 11:24 Rev.: 8781

- Implemented checks for correct prefixes when redeclaring elements in
modifiers.
- Added test cases to test the new error messages.

79 lines of code changed in 4 files:

  • testsuite/redeclare: FinalRedeclareModifier.mo (new 25), Makefile (+3), RedeclareModifierInvalid1.mo (new 25), RedeclareModifierInvalid2.mo (new 26)
perost 2011-05-02 11:36 Rev.: 8768

- Enabled SCodeFlatten by default.
- Updated the test suite to comply with SCodeFlatten.

7 lines of code changed in 1 file:

  • testsuite/redeclare: ClassExtends3.mo (+7 -9)
perost 2011-04-19 15:42 Rev.: 8703

SCodeFlatten improvements:
- Redeclare improvements.
- Better recursive short class definition detection.
- More redeclare error messages.
- Reorganised the redeclare parts of SCodeFlatten by moving most of the code
that handles redeclares to SCodeFlattenRedeclare.
- Added some more redeclaration test cases.

53 lines of code changed in 3 files:

  • testsuite/redeclare: ClassExtendsInvalid1.mo (new 28), ClassExtendsInvalid2.mo (new 23), Makefile (+2)
perost 2011-04-13 14:35 Rev.: 8618

- Changed expected output of test case redeclare/Modification1 and moved it to
failing tests.

2 lines of code changed in 2 files:

  • testsuite/redeclare: Makefile (+1 -1), Modification1.mo (+1 -1)
perost 2011-04-13 11:08 Rev.: 8613

- Added and corrected some redeclare test cases.

67 lines of code changed in 6 files:

  • testsuite/redeclare: ClassExtends3.mo (+2 -2), ClassExtends4.mo (+2 -2), ClassExtends5.mo (+1 -1), Makefile (+2), Modification1.mo (new 25), Modification2.mo (new 35)
perost 2011-04-04 11:58 Rev.: 8479

- Fixed infinite loop in Inst.updateCompeltsMods for Media models.
- Added more redeclare test cases.

123 lines of code changed in 4 files:

  • testsuite/redeclare: Makefile (+3), RedeclareClass1.mo (new 34), RedeclareClass2.mo (new 37), RedeclareClass3.mo (new 49)
perost 2011-03-28 11:50 Rev.: 8384

- Added missing makefile.

0 lines of code changed in 1 file:

  • testsuite/redeclare: Makefile (new)
perost 2011-03-28 10:00 Rev.: 8380

- Added new testcase directory 'redeclare' with some new redeclare tests.
- Moved some old redeclare tests from mofiles to the new directory.

627 lines of code changed in 19 files:

  • testsuite/redeclare: ClassExtends1.mo (new 31), ClassExtends2.mo (new 31), ClassExtends3.mo (new 72), ClassExtends4.mo (new 69), ClassExtends5.mo (new 38), ConstrainingType1.mo (new 27), Redeclare1.mo (new 34), Redeclare2.mo (new 30), Redeclare3.mo (new 39), Redeclare4.mo (new 42), Redeclare5.mo (new 32), RedeclareComponent1.mo (new 22), RedeclareComponent2.mo (new 29), RedeclareComponent3.mo (new 29), RedeclareComponentInvalid1.mo (new 21), RedeclareComponentInvalid2.mo (new 21), RedeclareComponentInvalid3.mo (new 26), RedeclareFlowEffort.mo (new 27), example.mo (new 7)
Generated by StatSVN 0.7.0