Directory testsuite/mofiles/drmodelica/

Directory Created:
2005-02-21 12:36
Directory Deleted:
2012-10-08 11:17
Total Files:
0
Deleted Files:
263
Lines of Code:
0

[root]/testsuite/mofiles/drmodelica

Lines of Code

testsuite/mofiles/drmodelica/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 1789 (100.0%) 22193 (100.0%) 12.4
perost 361 (20.2%) 13944 (62.8%) 38.6
x06klasj 374 (20.9%) 1973 (8.9%) 5.2
sjoelund.se 389 (21.7%) 1413 (6.4%) 3.6
davbr 18 (1.0%) 1238 (5.6%) 68.7
g-karbe 23 (1.3%) 1116 (5.0%) 48.5
x05andfe 25 (1.4%) 862 (3.9%) 34.4
adrpo 146 (8.2%) 584 (2.6%) 4.0
petar 47 (2.6%) 527 (2.4%) 11.2
kajny 26 (1.5%) 369 (1.7%) 14.1
x06krino 70 (3.9%) 115 (0.5%) 1.6
mahge930 2 (0.1%) 30 (0.1%) 15.0
x02lucpo 1 (0.1%) 6 (0.0%) 6.0
haklu 1 (0.1%) 6 (0.0%) 6.0
levsa 2 (0.1%) 5 (0.0%) 2.5
g-bjoza 1 (0.1%) 5 (0.0%) 5.0
krsta 40 (2.2%) 0 (0.0%) 0.0
alash325 263 (14.7%) 0 (0.0%) 0.0

Most Recent Commits

alash325 2012-10-08 11:17 Rev.: 13242

-- testsuite/3rdparty/AVM + testsuite/3rdparty/ThermoSysPro are temporarily moved to testsuite directory + testsiuite/Libraries + testsuite/mofiles + testsuite/3rdparty are deleted from SVN

0 lines of code changed in 263 files:

  • testsuite/mofiles/drmodelica: ABCDsystem.mo (del), ABCDsystem.mos (del), AccessDemoIllegalMod.mo (del), AccessDemoLegalMod.mo (del), ActivateWhenEquation.mo (del), ActivateWhenEquation.mos (del), AlgorithmCondAssign1.mo (del), AlgorithmCondAssign1.mos (del), AlgorithmCondAssign2.mo (del), AlgorithmCondAssign2.mos (del), AlgorithmSection.mo (del), AlgorithmSection.mos (del), AppendElement.mo (del), AppendElement.mos (del), ArrayAddEmpty.mo (del), ArrayAddEmpty.mos (del), ArrayAddSub.mo (del), ArrayAddSub1.mo (del), ArrayAddSub1.mos (del), ArrayAlgebraFunc.mo (del), ArrayAlgebraFunc.mos (del), ArrayConstruct1.mo (del), ArrayConstruct1.mos (del), ArrayDim1.mo (del), ArrayDim2.mo (del), ArrayDim3.mo (del), ArrayDim4.mo (del), ArrayDiv.mo (del), ArrayDivError.mo (del), ArrayDivError.mos (del), ArrayEmpty.mo (del), ArrayEmpty.mos (del), ArrayExponentiation.mo (del), ArrayExponentiation.mos (del), ArrayFieldSlice.mo (del), ArrayFieldSlice.mos (del), ArrayIndex.mo (del), ArrayIndex.mos (del), ArrayMult.mo (del), ArrayMult.mos (del), ArrayReduce.mo (del), ArrayReduce.mos (del), ArraySlice.mo (del), ArraysInitIllegal.mo (del), ArraysInitLegal.mo (del), AssertTest.mo (del), AssertTest.mos (del), AssertTest1.mo (del), AssertTest1.mos (del), AssertTest2.mo (del), AssertTest2.mos (del), BlockMatrix.mo (del), BlockMatrix2.mo (del), BlockMatrix3.mo (del), BouncingBall.cpp (del), BouncingBall.libs (del), BouncingBall.log (del), BouncingBall.makefile (del), BouncingBall.mo (del), BouncingBall.mos (del), Circuit.mo (del), ColorClasses.mo (del), ColorPixel.mo (del), ColorPixel.mos (del), ColoredPointIllegalMod1.mo (del), ColoredPointIllegalMod2.mo (del), ColoredPointIllegalMod3.mo (del), ColoredPointLegalMod.mo (del), Colors.mo (del), ComplexNumbers.mo (del), ComplexNumbers.mos (del), Concat3.mo (del), Concat3.mos (del), ConcatArr1.mo (del), ConcatArr1.mos (del), ConcatArr2.mo (del), ConcatArr2.mos (del), ConcatArr4.mo (del), ConcatArr4.mos (del), ConnectForEquations.mo (del), ConnectForEquations.mos (del), ConstructFunc.mo (del), ConstructFunc.mos (del), CyclicPerm.mo (del), CyclicPerm.mos (del), DAEexample.mo (del), DAEexample.mos (del), DimConvert.mo (del), DimConvert.mos (del), DimSize.mo (del), DimSize.mos (del), DiscreteVectorStateSpace.mo (del), DiscreteVectorStateSpace.mos (del), DoubleWhenConflict.mo (del), DoubleWhenConflict.mos (del), DoubleWhenSequential.mo (del), DoubleWhenSequential.mos (del), ElementWiseMultiplication.mo (del), Epidemics1.mo (del), Epidemics1.mos (del), EqualityEquations.mo (del), EqualityEquations.mos (del), EqualityEquationsCorrect.mo (del), EqualityEquationsCorrect.mos (del), EquationCall.mo (del), EquationCall.mos (del), Equations.mo (del), ErrorNestedWhen.mo (del), ErrorNestedWhen.mos (del), FilterBlock1.mo (del), FilterBlock1.mos (del), FiveForEquations.mo (del), FiveForEquations.mos (del), FlatTank.mo (del), FlatTank.mos (del), ForLoopHideVariable.mo (del), ForLoopHideVariable.mos (del), FuncDer.mo (del), FuncDer.mos (del), FuncMultResults.mo (del), FuncMultResults.mos (del), GenericMicroCircuit.mo (del), HeatTank.mo (del), HeatTank.mos (del), HeatTankExpanded.mo (del), HeatTankExpanded.mos (del), HelloWorld.mo (del), HelloWorld.mos (del), HideVariableForEquations.mo (del), HideVariableForEquations.mos (del), HydrogenIodide.mo (del), HydrogenIodide.mos (del), IfEquation.mo (del), IfEquation.mos (del), JoinThreeVectors2.mo (del), JoinThreeVectors2.mos (del), LeastSquares.mo (del), LogCall1.mo (del), LotkaVolterra.mo (del), LotkaVolterra.mos (del), MRFcall.mo (del), MRFcall.mos (del), Makefile (del), MicroCircuitInvalid.mo (del), MicroCircuitValid.mo (del), ModifiedFiltersInSeries.mo (del), MoonLanding.mo (del), MoonLanding.mos (del), MultFuncCall.mo (del), MultipleResultsFunction.c (del), MultipleResultsFunction.exe (del), MultipleResultsFunction_in.txt (del), MultipleResultsFunction_out.txt (del), Multiply.c (del), Multiply.exe (del), Multiply_in.txt (del), Multiply_out.txt (del), OneArgBaseFunction.mo (del), OneArgBaseFunction.mos (del), Oscillator.mo (del), Oscillator.mos (del), PointInst.mo (del), PointSum.mo (del), PolynomialEvaluator.c (del), PolynomialEvaluator.exe (del), PolynomialEvaluator1.mo (del), PolynomialEvaluator1.mos (del), PolynomialEvaluator2.mo (del), PolynomialEvaluator2.mos (del), PolynomialEvaluator3.mo (del), PolynomialEvaluator3.mos (del), PolynomialEvaluatorA.mo (del), PolynomialEvaluatorA.mos (del), PolynomialEvaluatorB.mo (del), PolynomialEvaluatorB.mos (del), PolynomialEvaluator_in.txt (del), PolynomialEvaluator_out.txt (del), RangeVector.mo (del), RangeVector.mos (del), RefinedSimpleCircuitInvalid.mo (del), RefinedSimpleCircuitValid.mo (del), RefinedSimpleCircuitValid2.mo (del), SimplePeriodicSampler.mo (del), SimplePeriodicSampler.mos (del), StatementCall.mo (del), StatementCall.mos (del), StepAdvanced.mo (del), StepAdvanced.mos (del), SubArrayIndex.mo (del), SubArrayIndex.mos (del), SumForLoop.mo (del), SumForLoop.mos (del), SumSeriesWhile.mo (del), SumSeriesWhile.mos (del), SumVectorForIf.mo (del), SumVectorForIf.mos (del), Summation.mo (del), Tank.mo (del), Tank.mos (del), TankHybridPI.mo (del), TankHybridPI.mos (del), TankHybridPID.mo (del), TankHybridPID.mos (del), TankPI.mo (del), TankPI.mos (del), TankPID.mo (del), TankPID.mos (del), TanksConnectedPI.mo (del), TanksConnectedPI.mos (del), TempDepResistorCircuit.mo (del), TempDepResistorCircuitInherited.mo (del), TempResistor3.mo (del), TempResistor3.mos (del), TwoRateSampler.mo (del), TwoRateSampler.mos (del), VanDerPol.mo (del), VectorizeOneReturnValue.mo (del), VectorizeOneReturnValue.mos (del), VectorizeSeveralArguments.mo (del), VectorizeSumVec.mo (del), VectorizeSumVec.mos (del), WatchDog1AlgorithmWhen.mo (del), WatchDog1AlgorithmWhen.mos (del), WatchDog2EquationWhen.mo (del), WatchDog2EquationWhen.mos (del), WaveEquationSample.mo (del), WaveEquationSample.mos (del), WhenEquation.mo (del), WhenEquation.mos (del), WhenNotValid.mo (del), WhenNotValid.mos (del), WhenPriority.mo (del), WhenPriority.mos (del), WhenStatement1.mo (del), WhenStatement1.mos (del), WhenStatement2.mo (del), WhenStatement2.mos (del), WhenStatement3.mo (del), WhenStatement3.mos (del), WhenValidResult.mo (del), WhenValidResult.mos (del), WhenVectorPredicateEquation.mo (del), WhenVectorPredicateEquation.mos (del), WillowForest.mo (del), WillowForest.mos (del), XPowers1.mo (del), XPowers2.mo (del), XPowers3.mo (del), Xpowers.mo (del), Xpowers01.mo (del), Xpowers02.mo (del), Xpowers03.mo (del), Xpowers1.mo (del), Xpowers1.mos (del), Xpowers2.mo (del), Xpowers2.mos (del), Xpowers3.mo (del), Xpowers3.mos (del), f.c (del), f.exe (del), f_in.txt (del), f_out.txt (del), rtest (del)
perost 2012-09-27 17:35 Rev.: 13078

- Changed Util.swap to work as expected (i.e. swap on true).

10 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: ABCDsystem.mo (+3 -3), DiscreteVectorStateSpace.mo (+7 -7)
sjoelund.se 2012-09-12 16:08 Rev.: 12894

- Expected output

10 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: ABCDsystem.mo (+3 -3), DiscreteVectorStateSpace.mo (+7 -7)
perost 2012-08-28 11:43 Rev.: 12702

- Removed space after first parenthesis when dumping asserts in DAEDump, to ease
the transition to a template based dumper.

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ConstructFunc.mo (+1 -1)
perost 2012-06-19 19:05 Rev.: 12126

- Updated test.

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ColoredPointLegalMod.mo (+1 -1)
perost 2012-05-10 14:06 Rev.: 11885

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

85 lines of code changed in 49 files:

  • testsuite/mofiles/drmodelica: AlgorithmCondAssign2.mo (+1 -1), ArrayDivError.mo (+1 -1), ArrayFieldSlice.mo (+1 -1), ArrayIndex.mo (+1 -1), BlockMatrix.mo (+1 -1), BlockMatrix2.mo (+1 -1), BlockMatrix3.mo (+1 -1), ColoredPointLegalMod.mo (+1 -1), Colors.mo (+1 -1), ComplexNumbers.mo (+2 -2), ConstructFunc.mo (+2 -2), DiscreteVectorStateSpace.mo (+8 -8), ElementWiseMultiplication.mo (+2 -2), Epidemics1.mo (+2 -2), EqualityEquationsCorrect.mo (+1 -1), EquationCall.mo (+1 -1), FlatTank.mo (+1 -1), FuncDer.mo (+4 -4), FuncMultResults.mo (+2 -2), HeatTank.mo (+1 -1), HeatTankExpanded.mo (+1 -1), HydrogenIodide.mo (+3 -3), JoinThreeVectors2.mo (+2 -2), LeastSquares.mo (+4 -4), LogCall1.mo (+1 -1), LotkaVolterra.mo (+2 -2), MRFcall.mo (+1 -1), MoonLanding.mo (+2 -2), OneArgBaseFunction.mo (+1 -1), PolynomialEvaluator1.mo (+1 -1), PolynomialEvaluator2.mo (+2 -2), PolynomialEvaluator3.mo (+1 -1), SimplePeriodicSampler.mo (+1 -1), SumSeriesWhile.mo (+1 -1), SumVectorForIf.mo (+1 -1), TankHybridPI.mo (+3 -3), TankHybridPID.mo (+4 -4), TankPI.mo (+1 -1), TankPID.mo (+2 -2), TanksConnectedPI.mo (+2 -2), TwoRateSampler.mo (+1 -1), VanDerPol.mo (+1 -1), VectorizeOneReturnValue.mo (+4 -4), WhenEquation.mo (+1 -1), WhenStatement1.mo (+1 -1), WhenStatement2.mo (+2 -2), WhenStatement3.mo (+1 -1), WhenValidResult.mo (+1 -1), WhenVectorPredicateEquation.mo (+2 -2)
perost 2012-04-05 13:50 Rev.: 11673

- Fixed correct types on array-scalar and scalar-array operations.
- Updated test cases due to changed operation order.

13 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: ArrayDiv.mo (+12 -12), ElementWiseMultiplication.mo (+1 -1)
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)

16 lines of code changed in 14 files:

  • testsuite/mofiles/drmodelica: AccessDemoIllegalMod.mo (+1), ArrayAddSub.mo (+3 -2), ArrayDiv.mo (+1), ArrayDivError.mo (+1), BlockMatrix.mo (+1), BlockMatrix2.mo (+1), BlockMatrix3.mo (+1), BouncingBall.mo (+1 -1), MicroCircuitInvalid.mo (+1), RefinedSimpleCircuitInvalid.mo (+1), StepAdvanced.mo (+1 -1), VanDerPol.mo (+1 -1), VectorizeSeveralArguments.mo (+1), WhenNotValid.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)

27 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: Makefile (+27 -1)
mahge930 2012-01-23 13:04 Rev.: 10937

+ Fix for missing parameter passing for records.
Bug #1675
+ Fix for missing bindings for records with classmod modifications on output variables.
+ Fix for constant evaluated bindings to default values for record to record assignments.

3 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ArrayAddSub.mo (+3 -1)
perost 2011-12-20 21:29 Rev.: 10807

- Forbid subscripted arrays. They are an OM extension and have been removed from
the Modelica specification (and not supported by Dymola), and will not be
supported in the new instantiation. They are therefore disabled now, to
discourage any further usage of them.
- Added Absyn.Info to Absyn.MODIFICATION and SCode.MOD to allow better error
messages for modifiers.
- Changed SCode.REDECL to have a single component instead of a list, since you
can only redeclare one element at a time.
- Implemented handling of modifiers in SCodeInst.

0 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: Makefile (-2)
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.

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: FuncDer.mo (+1 -1)
sjoelund.se 2011-11-29 15:54 Rev.: 10600

- Some rewrite rules for a*(b^(-r)) => a/(b^r) and similar expressions

3 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: MoonLanding.mo (+3 -3)
adrpo 2011-11-19 18:43 Rev.: 10556

Error.mo
- typo fix

DAEUtil.mo
- better error messages

Inst.mo
- sort innerouter after the element dependency analysis
- add record constructors that are function inputs to the DAE (IdealGasH2O now compiles but has dassl issues)
- speedup Inst.makeFullyQualified a bit

InstExtends.mo
- more fix* calls which were missed

Interactive.mo
- use System.get/setPartialInst instead of RTOpts debug flags as they are REALLY slow
- this will speed up the MSL query for qt & java clients a bit.

SimCodeC.tpl
- use -O0 when running the testsuite.

Derive.mo
- better printout for derivative function error message

testsuite/
- update tests (more record constructors now)
- add one more to Media simulation and 2 more to Fluid flattening

mingw makefiles
- use wget (will be replaced by svn put into OMDev later)
to fetch revision number and put it part of the OMC version



7 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ArrayFieldSlice.mo (+7)
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

45 lines of code changed in 14 files:

  • testsuite/mofiles/drmodelica: ArrayDim1.mo (+6 -6), ArrayDim2.mo (+6 -6), ArrayDim3.mo (+2 -2), ArrayDim4.mo (+2 -2), DiscreteVectorStateSpace.mo (+5 -5), LeastSquares.mo (+1 -1), MoonLanding.mo (+3 -3), PolynomialEvaluator2.mo (+1 -1), PolynomialEvaluatorA.mo (+1 -1), PolynomialEvaluatorB.mo (+1 -1), StepAdvanced.mo (+3 -3), SumForLoop.mo (+1 -1), SumSeriesWhile.mo (+1 -1), TempDepResistorCircuitInherited.mo (+12 -12)
perost 2011-10-31 12:38 Rev.: 10258

- Fixed correct type when elaborating the builtin cat operator.

7 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: Concat3.mo (+7 -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.

7 lines of code changed in 7 files:

  • testsuite/mofiles/drmodelica: HeatTank.mo (+1), HeatTankExpanded.mo (+1), TankHybridPI.mo (+1), TankHybridPID.mo (+1), TankPI.mo (+1), TankPID.mo (+1), TanksConnectedPI.mo (+1)
sjoelund.se 2011-10-06 08:42 Rev.: 10025

- Implemented linspace in ModelicaBuiltin.mo

10 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ConstructFunc.mo (+10)
perost 2011-09-08 14:12 Rev.: 9758

- Made the dumping of external declarations better.
- Changed so that only constant complex equations are constant evaluated in
InstSection.instEqEquation2.
- Added handling of integers in omc-diff, so that integers are compared exactly
(otherwise we allow a relative error for line numbers in errors).

3 lines of code changed in 3 files:

  • testsuite/mofiles/drmodelica: JoinThreeVectors2.mo (+1 -1), LeastSquares.mo (+1 -1), LogCall1.mo (+1 -1)
perost 2011-08-30 09:18 Rev.: 9712

- Reimplemented connection handling to be more efficient.

36 lines of code changed in 14 files:

  • testsuite/mofiles/drmodelica: HeatTank.mo (+1 -1), HeatTankExpanded.mo (+1 -1), RefinedSimpleCircuitValid.mo (+4 -4), RefinedSimpleCircuitValid2.mo (+4 -4), Tank.mo (+1 -1), TankHybridPI.mo (+2 -2), TankHybridPID.mo (+2 -2), TankPI.mo (+2 -2), TankPID.mo (+2 -2), TanksConnectedPI.mo (+5 -5), TempDepResistorCircuit.mo (+4 -4), TempDepResistorCircuitInherited.mo (+4 -4), WatchDog1AlgorithmWhen.mo (+2 -2), WatchDog2EquationWhen.mo (+2 -2)
sjoelund.se 2011-08-01 11:19 Rev.: 9570

- Added simplify rules for the cat() operator

36 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: Concat3.mo (+36 -15), Makefile (-1)
sjoelund.se 2011-08-01 09:05 Rev.: 9567

- Expected output

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: CyclicPerm.mo (+1 -1)
sjoelund.se 2011-07-28 07:54 Rev.: 9547

- Fix code generation of ASUB(ASUB(...,x),y), by making ASUB(...,xy) instead
- Previously, we created one case for integer asub, one for 2d integer asub, etc... But forgot mixed int and enum asubs... The new code should work for any dimension, and any mix of asubs
- Testcases were updated because we print [1,2] instead of [1][2]

12 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: Concat3.mo (+12 -12)
sjoelund.se 2011-07-18 11:43 Rev.: 9501

#1572
- Added check for external function output assignment

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: LeastSquares.mo (+1 -1)
sjoelund.se 2011-05-30 13:40 Rev.: 9179

- Add simplification (e*e1)+(e*e2) => e*(e1+e2) (for +/- and swapping argument order)

2 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: FuncDer.mo (+1 -1), HydrogenIodide.mo (+1 -1)
sjoelund.se 2011-05-22 12:51 Rev.: 9069

- Added rule to simplify x+x+x-x-x=x

10 lines of code changed in 8 files:

  • testsuite/mofiles/drmodelica: AlgorithmSection.mo (+1 -1), ComplexNumbers.mo (+3 -3), Epidemics1.mo (+1 -1), HydrogenIodide.mo (+1 -1), LeastSquares.mo (+1 -1), LogCall1.mo (+1 -1), SumVectorForIf.mo (+1 -1), Summation.mo (+1 -1)
perost 2011-05-13 13:28 Rev.: 8993

- Fixed return values for size in Expression.sizeof (size(x) returns an array
and size(x, 1) a scalar, not the other way around).
- Cleaned up and moved Inst.elabArraydimDecl to Static.elabArrayDim.

2 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: JoinThreeVectors2.mo (+2 -2)
sjoelund.se 2011-04-12 12:59 Rev.: 8600

- Simplify after doing type-conversion

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ArrayConstruct1.mo (+1 -1)
sjoelund.se 2011-04-08 09:45 Rev.: 8545

- Use simplify1 instead of simplify in many places of the FrontEnd
- simplify now returns a Boolean that signifies if the expression has changed

10 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: ABCDsystem.mo (+3 -3), DiscreteVectorStateSpace.mo (+7 -7)
sjoelund.se 2011-04-05 12:14 Rev.: 8496

- Flat Modelica now uses "and, or, not" instead of "AND, OR, NOT"
- This is to match actual Modelica syntax

5 lines of code changed in 5 files:

  • testsuite/mofiles/drmodelica: AssertTest.mo (+1 -1), AssertTest1.mo (+1 -1), AssertTest2.mo (+1 -1), WatchDog1AlgorithmWhen.mo (+1 -1), WatchDog2EquationWhen.mo (+1 -1)
sjoelund.se 2011-04-05 09:45 Rev.: 8495

- Changed simplify of LUNARY and LBINARY (we now only simplify these at the end; i.e. in the equations and bindings - not while doing static elaboration of the expression)

5 lines of code changed in 5 files:

  • testsuite/mofiles/drmodelica: BlockMatrix.mo (+1 -1), BlockMatrix2.mo (+1 -1), BlockMatrix3.mo (+1 -1), TankHybridPI.mo (+1 -1), TankHybridPID.mo (+1 -1)
sjoelund.se 2011-03-11 07:39 Rev.: 8175

- Use elabExp to determine the actual expression that should be used in code generation
- This is an extra field stored in DAE.REDUCTION, and is needed in order to handle sum() for different array types, etc

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: ArrayAddSub.mo (+1 -1)
perost 2011-03-09 17:44 Rev.: 8152

- Remove path prefix from imported function in the same scope in SCodeLookup.
- Removed check for checkModel in elabBuiltinCat2, it's needed otherwise too.
- Ported external function parts of r7879 from the maintenance branch.
- Added support for fill and ranges on integers in c_runtime.
- Fixes for external fortran function:
- Fixed correct types for function definitions.
- Commented out function parameter names function definitions, since several
parameters might have the same name.
- Moved initialisation of output variables after initialisation of local
variables, since the output variables might depend on them.
- Added default values for scalar output variables (not sure if this is
according to the standard, but Dymola does this).
- Added test case libraries/msl31/Modelica.Media for Modelica.Media models.
- Updated test suite.

9 lines of code changed in 2 files:

  • testsuite/mofiles/drmodelica: JoinThreeVectors2.mo (+4 -4), LeastSquares.mo (+5 -5)
perost 2011-03-07 12:28 Rev.: 8126

- Changed fail case in Algorithm.makeAssignment to use failtrace.
- Updated test cases.

0 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: CyclicPerm.mo (-9)
perost 2011-03-02 16:16 Rev.: 8063

Fix for bug #1334:
- Added cycle detection to instElementList for constants and parameters.
- Also sort parameters in instElementList.
- Updated test cases due to different sorting of parameters.
- Updated mofiles/CyclicBindingParam and mofiles/CyclicBindingConst and moved
them from failing tests to working tests.

14 lines of code changed in 3 files:

  • testsuite/mofiles/drmodelica: DiscreteVectorStateSpace.mo (+12 -12), PolynomialEvaluatorA.mo (+1 -1), PolynomialEvaluatorB.mo (+1 -1)
sjoelund.se 2011-01-20 00:00 Rev.: 7722

- Known external "C" calls are now treated as external "builtin"
- That is, Modelica.Math.sin becomes a call to sin because it is calling the same C function we know that the builtin function is calling
- This finds more functions than just Modelica.Math.sin (some of the testcases mapped their own external "C" function to C)
- We should also be able to change Derive.mo to do pattern-matching against "sin" now, instead of calling Builtin.isSin

788 lines of code changed in 73 files:

  • testsuite/mofiles/drmodelica: ABCDsystem.mo (+24 -24), AccessDemoLegalMod.mo (+10 -10), ActivateWhenEquation.mo (+9 -9), AlgorithmCondAssign1.mo (+3 -3), AlgorithmCondAssign2.mo (+5 -5), AlgorithmSection.mo (+8 -8), ArrayAddSub1.mo (+7 -7), ArrayConstruct1.mo (+25 -25), ArrayDim1.mo (+33 -33), ArrayDim2.mo (+33 -33), ArrayDim3.mo (+23 -23), ArrayDim4.mo (+23 -23), ArrayExponentiation.mo (+8 -8), ArrayFieldSlice.mo (+28 -28), ArrayIndex.mo (+10 -10), ArrayMult.mo (+19 -19), ArrayReduce.mo (+4 -4), ArraysInitLegal.mo (+8 -8), AssertTest.mo (+4 -4), AssertTest1.mo (+4 -4), AssertTest2.mo (+4 -4), Colors.mo (+4 -4), ComplexNumbers.mo (+14 -14), Concat3.mo (+18 -18), ConstructFunc.mo (+48 -48), DAEexample.mo (+3 -3), DiscreteVectorStateSpace.mo (+79 -79), DoubleWhenSequential.mo (+1 -1), ElementWiseMultiplication.mo (+8 -8), EqualityEquationsCorrect.mo (+10 -10), EquationCall.mo (+6 -6), Equations.mo (+2 -2), FilterBlock1.mo (+5 -5), FiveForEquations.mo (+5 -5), FlatTank.mo (+19 -19), ForLoopHideVariable.mo (+6 -6), FuncDer.mo (+18 -18), FuncMultResults.mo (+11 -11), HelloWorld.mo (+3 -3), HideVariableForEquations.mo (+6 -6), HydrogenIodide.mo (+5 -5), IfEquation.mo (+12 -12), JoinThreeVectors2.mo (+22 -22), LogCall1.mo (+3 -3), LotkaVolterra.mo (+6 -6), MRFcall.mo (+8 -8), ModifiedFiltersInSeries.mo (+6 -6), MoonLanding.mo (+16 -16), MultFuncCall.mo (+4 -4), OneArgBaseFunction.mo (+3 -3), PolynomialEvaluator1.mo (+5 -5), PolynomialEvaluator2.mo (+8 -8), PolynomialEvaluator3.mo (+5 -5), PolynomialEvaluatorA.mo (+12 -12), PolynomialEvaluatorB.mo (+12 -12), SimplePeriodicSampler.mo (+4 -4), SumForLoop.mo (+7 -7), SumSeriesWhile.mo (+4 -4), SumVectorForIf.mo (+7 -7), Summation.mo (+7 -7), TankHybridPI.mo (+1 -1), TankHybridPID.mo (+1 -1), TwoRateSampler.mo (+6 -6), VectorizeOneReturnValue.mo (+10 -10), WatchDog1AlgorithmWhen.mo (+14 -14), WatchDog2EquationWhen.mo (+15 -15), WhenEquation.mo (+4 -4), WhenPriority.mo (+2 -2), WhenStatement1.mo (+4 -4), WhenStatement2.mo (+5 -5), WhenStatement3.mo (+4 -4), WhenValidResult.mo (+3 -3), WhenVectorPredicateEquation.mo (+5 -5)
sjoelund.se 2010-12-26 14:39 Rev.: 7571

#1373
- Added Absyn.Info to SCode.EXTENDS
- Added a warning when extending from a function containing an external declaration

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: PointSum.mo (+1 -1)
sjoelund.se 2010-12-20 18:05 Rev.: 7515

#1062
- Added Error.mo messages for invalid when-equations

1 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: WhenNotValid.mo (+1 -7)
sjoelund.se 2010-12-11 21:02 Rev.: 7355

Fix for #1356
- More of the function in the initial environment now have real classes instead of just a type
- Added test Import7.mo that tests if you can write "import sinx = sin;"

6 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: LogCall1.mo (+6 -6)
sjoelund.se 2010-12-11 17:17 Rev.: 7354

- DAEDump now displays the language of an external function instead of always displaying external "C"
- Added initial support for external function language "builtin"
- These functions call the other function directly without overhead
- external "builtin" functions are omitted from DAEDump

21 lines of code changed in 1 file:

  • testsuite/mofiles/drmodelica: LeastSquares.mo (+21 -21)

(72 more)

Generated by StatSVN 0.7.0