Directory testsuite/flattening/modelica/algorithms-functions/

Directory Created:
2012-09-27 04:36
Total Files:
122
Deleted Files:
0
Lines of Code:
6100

[root]/testsuite/flattening/modelica/algorithms-functions

Lines of Code

testsuite/flattening/modelica/algorithms-functions/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 758 (100.0%) 6973 (100.0%) 9.1
alash325 449 (59.2%) 5675 (81.4%) 12.6
hudson 119 (15.7%) 494 (7.1%) 4.1
perost 35 (4.6%) 324 (4.6%) 9.2
sjoelund.se 87 (11.5%) 272 (3.9%) 3.1
adrpo 50 (6.6%) 165 (2.4%) 3.3
lochel 5 (0.7%) 26 (0.4%) 5.2
mahge930 8 (1.1%) 12 (0.2%) 1.5
vitalij 3 (0.4%) 3 (0.0%) 1.0
leonardo.laguna 2 (0.3%) 2 (0.0%) 1.0

Most Recent Commits

mahge930 2015-03-20 13:07 Rev.: 25175

- Keep restrictions.

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: ErrorExternalAlgorithm.mo (+1)
sjoelund.se 2015-02-25 00:47 Rev.: 24755

Fix parsing

4 lines of code changed in 3 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval11.mo (+1 -1), FunctionEval7.mo (+2 -2), FunctionEvalFail.mo (+1 -1)
sjoelund.se 2015-02-25 00:04 Rev.: 24754

Fix parsing

12 lines of code changed in 8 files:

  • testsuite/flattening/modelica/algorithms-functions: AlgorithmCondAssign1.mo (+1 -1), AlgorithmCondAssign2.mo (+2 -2), ComponentFunctions.mo (+2 -2), FunctionDefaultArgs2.mo (+2 -2), FunctionDefaultArgsCycle.mo (+2 -2), FunctionDefaultArgsMod.mo (+1 -1), IfExpression1.mo (+1 -1), SumForLoop.mo (+1 -1)
mahge930 2015-02-16 20:19 Rev.: 24602

+ Removed some unnecessary asub creations.
+ consider subscripts when looking for cref dependencies.

6 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval12.mo (+2 -2), FunctionSimplex.mo (+4 -4)
hudson 2015-01-19 12:40 Rev.: 24093

[Janitor mode] Set auto-props

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: IfExpression1.mo (+1)
perost 2015-01-19 12:23 Rev.: 24092

- Improved the handling of if-expressions to better handle arrays with different
sizes in the branches.

30 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: IfExpression1.mo (new 29), Makefile (+1)
perost 2014-12-12 12:53 Rev.: 23762

- Fixed testsuite makefile.

2 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: Makefile (+2 -2)
sjoelund.se 2014-10-06 12:14 Rev.: 22610

#2862 - testing performance of not replacing `size(exp, 1)` with a non-constant expressions

16 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionInverse.mo (+3 -3), FunctionSimplex.mo (+13 -13)
adrpo 2014-09-30 16:29 Rev.: 22515

Fix bug: #2854 (do scope versioning also in the top scope, but not for builtin classes and builtin types)
- note that flattening/modelica/declarations/Constant12.mo is actually correct now,
see m:#1397, well, except for the fact that it should tell that A.y does not have a binding

52 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: ComponentFunctions.mo (new 51), Makefile (+1)
adrpo 2014-09-30 06:33 Rev.: 22496

Merged branches/FFrontEnd into trunk/

Main changes:
- changed the environment to support both non-destructive and destructive updates
- Env.Cache -> FCore.Cache, Env.Env -> FCore.Graph
- FCore.Graph is not a list of Frames anymore is a stucture where the previous list is saved in component "scope"
- all Frames in the new FCore.Graph are FCore.Ref pointing to FCore.Node having different FCore.Data depending on what they are
- all FCore.Nodes have children (FCore.CAvlTree) which maps names to FCore.Ref (which is Array<FCore.Node>, size 1)
- FGraph.openScope pushes an already existing FCore.Ref (or a new one) on the scope list
- for all components having modifications the last class in the type path is renamed to include the
prefix, see FGraph.createVersionScope (this is done because we need unique names for redeclared functions,
records, etc and we need a unique type scope for that)
Example: A.B.C c -> A.B.C$c c

Bug fixes:
- calling function via component (multibody MSL 3.2.1 patch not needed anymore, will remove it in a next commit)
- #2837 array equations wrongly handled in RemoveSimpleEquations (used in ThermoPower and PowerSystems libraries, etc)
#2784, #2727, #2739 (missing modifiers combined with redeclare and unique function generation for redeclared functions)
#2835 - handle overconstrained connectors extending basic types (used in PowerSystems library)
- do not loose modifications on derived classes handled by InstExtends
- some error messages about missing components in Fluid library are gone
- for components of size 0 do not check if they are assigned before use in functions (residue in equalityConstraint)

10 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: TestGravityAcceleration.mo (+10 -6)
sjoelund.se 2014-09-16 16:51 Rev.: 22328

#2804 Optimize `(x,_,_) = fn(y)` into `x = TSUB(fn(y),1)`.
Triggered some unwanted optimisations/inlining of function calls that were handled by forcing ceval of some function calls in the backend

3 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionInverse.mo (+2 -2), TupleSingleAssign.mo (+1 -1)
mahge930 2014-09-11 15:04 Rev.: 22274

+ Propagate dimensions in prefixes so that qualified crefs get the correct type and dimension.
+ Fix wrong uses of subscripts as dimensions.
- Disable non-expanded array compilation test for now. It is broken.

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval12.mo (+1 -1)
sjoelund.se 2014-09-09 15:01 Rev.: 22221

#2786
- Fix code generation for multiple iterators (threaded)
- Ceval constant function calls in the front-end

5 lines of code changed in 3 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval7.mo (+1 -1), TestGravityAcceleration.mo (+1 -1), Vectorizable1.mo (+3 -3)
perost 2014-09-08 16:19 Rev.: 22170

Fix for #2806:
- Remove input/output from variables which are not at top-level or inside a
top-level connector.

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: AssignmentToInput.mo (+1 -1)
sjoelund.se 2014-08-27 10:24 Rev.: 22023

Fix Expression.isConst to also work for function calls.
Changed most ExpressionSimplify routines to call isConstValue instead (since they try to do things like constant folding which fails for compound expressions anyway).

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval7.mo (+1 -1)
sjoelund.se 2014-08-04 14:43 Rev.: 21740

#2770 Handle vectorization of function calls with unknown array dimensions better

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: Vectorizable7.mo (+1 -1)
sjoelund.se 2014-07-31 10:19 Rev.: 21686

CevalFunction: Handle `size(arr,1)` where arr is an array with unknown dimensions (previously, 0 was used regardless if the array had been assigned to)

30 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: EvalUnknownDim.mo (new 29), Makefile (+1)
mahge930 2014-07-22 17:33 Rev.: 21592

+ Fix #2688. Removed replacing of loop iterator dependent crefs with ASUB expressions.

3 lines of code changed in 3 files:

  • testsuite/flattening/modelica/algorithms-functions: AlgorithmFor6.mo (+1 -1), ForNested.mo (+1 -1), FunctionSimplex.mo (+1 -1)
perost 2014-06-18 11:05 Rev.: 21169

Fix for #2729:
- Don't try to evaluate crefs which are not function parameters when resolving
default bindings in Static.addDefaultArgs.
- Some random code improvements.

33 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionDefaultArgsMod.mo (new 32), Makefile (+1)
sjoelund.se 2014-06-03 12:34 Rev.: 20931

Fix some of the sorting of components based on dependencies in the bindings
- Would silently fail in some cases in the past
- Some models now give no warnings in compile-time and run-time
- AIMS_Start gives a different result for one variable
- UnevaluateableFixedAttribute.mos gives different results for RML and bootstrapped omc versions

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: LeastSquares.mo (+1 -1)
perost 2014-05-26 15:38 Rev.: 20832

- Improved DAEDumpTpl and switched to it as default.
- Untupled min and max in DAE.VariableAttributes.

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FlatTank.mo (+1 -1)
sjoelund.se 2014-05-18 20:40 Rev.: 20675

Various bugfixes and new features
- A new implementation for overloaded (binary) operators.
* Follows the specification more strictly and produces less fewer warnings for legal code
* matrix*matrix and matrix*vector uses reduction expressions to implement sum and array
* Checked that inlining of the generated functions works and produces simple expressions
* The code has been split into its own file since it is 2200 LOC and very few things in there actually depend on Static.mo (most of the remaining ones should be refactored)
- Implemented inlining of functions that assign to record members instead of call the record constructor in a single statement
- When evaluating function inputs to determine output array dimensions, keep the evaluated results
- Adding new preOptModule evaluateReplaceProtectedFinalEvaluateParameters which replaces evaluateReplaceFinalEvaluateParameters as a default module
* Causes problems for NPendulum.mos and PrismaticConstraint. They have different preOptModules set in the tests
- Added simulation flag `-abortSlowSimulation` used for the library tests in the testsuite
- EngineV6 now causes chattering behaviour. It was set to a Compilation test.
* The test will not spin thanks to the `-abortSlowSimulation` flag
- Improve elaboration, simplification, evaluation, and code generation for reductions
* Each operator now has unique indexes to avoid conflicts when replacing iterator crefs
* We can now simplify user-defined operators
* Added a new kind of mode for reductions: DAE.THREAD(), as opposed to the standard DAE.COMBINE()
- When we have multiple iterators, the default DAE.COMBINE() is used and iterates over all combinations of the expressions in the iterators. DAE.THREAD() instead assumes the arrays have equal length and folds over the reduction expression with the n-th expression in each iterator at a time. Used by operator overloading to implement element-wise and `sum` operations.
* This changes the DAE slightly
- Implemented DAE.FuncArg as a uniontype instead of tuple (DAE change)
- Some better simplification for ASUB (ranges and reductions)
- And some more things. Hopefully the major changes are all listed.

3 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval11.mo (+1 -1), TestGravityAcceleration.mo (+2 -2)
hudson 2014-04-16 11:06 Rev.: 20164

[Janitor mode] Fix whitespace

378 lines of code changed in 103 files:

  • testsuite/flattening/modelica/algorithms-functions: Algorithm1.mo (+1 -1), Algorithm2.mo (+4 -4), Algorithm3.mo (+2 -2), AlgorithmCondAssign2.mo (+1 -1), AlgorithmFor1.mo (+2 -2), AlgorithmFor2.mo (+2 -2), AlgorithmFor3.mo (+2 -2), AlgorithmFor4.mo (+2 -2), AlgorithmFor5.mo (+2 -2), AlgorithmFor6.mo (+3 -3), AlgorithmNoRetCall.mo (+1 -1), AlgorithmSection.mo (+2 -2), AssignmentErrorConstant.mo (+2 -2), AssignmentErrorInput.mo (+2 -2), AssignmentFunction.mo (+1 -1), AssignmentFunctionMultiple1.mo (+1 -1), Break.mo (+1 -1), ElementWiseMultiplication.mo (+3 -3), ErrorExternalAlgorithm.mo (+2 -2), Faculty1.mo (+3 -3), Faculty2.mo (+2 -2), Faculty3.mo (+2 -2), Faculty4.mo (+4 -4), Faculty5.mo (+15 -15), FilterBlock1.mo (+2 -2), FlatTank.mo (+7 -7), ForIteratorType.mo (+1 -1), ForLoopHideVariable.mo (+2 -2), FuncDer.mo (+5 -5), FuncMultResults.mo (+4 -4), Function1.mo (+2 -2), Function10.mo (+5 -5), Function11.mo (+2 -2), Function12.mo (+3 -3), Function2.mo (+4 -4), Function4.mo (+2 -2), Function5.mo (+3 -3), Function5_test.mo (+3 -3), Function6.mo (+2 -2), Function7.mo (+3 -3), Function8.mo (+3 -3), Function9.mo (+3 -3), FunctionBreak.mo (+2 -2), FunctionBubblesort.mo (+6 -6), FunctionCall.mo (+1 -1), FunctionDefaultArgs.mo (+4 -4), FunctionDefaultArgs2.mo (+3 -3), FunctionDefaultArgsCycle.mo (+4 -4), FunctionEval1.mo (+5 -5), FunctionEval10.mo (+3 -3), FunctionEval11.mo (+3 -3), FunctionEval12.mo (+6 -6), FunctionEval2.mo (+6 -6), FunctionEval3.mo (+7 -7), FunctionEval4.mo (+5 -5), FunctionEval5.mo (+3 -3), FunctionEval6.mo (+5 -5), FunctionEval7.mo (+10 -10), FunctionEval8.mo (+9 -9), FunctionEval9.mo (+12 -12), FunctionEvalBuiltin.mo (+5 -5), FunctionEvalFail.mo (+2 -2), FunctionEvalSlice.mo (+2 -2), FunctionInvalidVar1.mo (+4 -4), FunctionInvalidVar2.mo (+4 -4), FunctionInverse.mo (+11 -11), FunctionMultiReturn.mo (+2 -2), FunctionProtectedInput.mo (+2 -2), FunctionReturn.mo (+2 -2), FunctionSimple.mo (+1 -1), FunctionSimplex.mo (+8 -8), FunctionVariability.mo (+2 -2), FunctionWithEquation.mo (+2 -2), InvalidFunctionBinding.mo (+2 -2), JoinThreeVectors2.mo (+4 -4), LeastSquares.mo (+3 -3), LogCall1.mo (+4 -4), MRFcall.mo (+2 -2), MultFuncCall.mo (+2 -2), RecursiveCallExtends.mo (+2 -2), RecursiveFunctionCall.mo (+4 -4), StatementCall.mo (+3 -3), SumForLoop.mo (+3 -3), SumSeriesWhile.mo (+2 -2), SumVectorForIf.mo (+2 -2), Summation.mo (+4 -4), TestGravityAcceleration.mo (+16 -16), TupleSingleAssign.mo (+2 -2), UnusedInput.mo (+4 -4), Vectorizable1.mo (+5 -5), Vectorizable2.mo (+5 -5), Vectorizable3.mo (+5 -5), Vectorizable5.mo (+5 -5), Vectorizable6.mo (+5 -5), Vectorizable7.mo (+1 -1), WhenElseNested.mo (+2 -2), WhenNested.mo (+2 -2), WhenPriority.mo (+2 -2), WhenStatement1.mo (+3 -3), WhenStatement2.mo (+3 -3), WhenStatement3.mo (+12 -12), modelica_1_1_Function10.mo (+5 -5), tupleSubset.mo (+5 -5)
perost 2014-04-14 16:36 Rev.: 20134

- Added testcase for #2662 too.

37 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: Makefile (+1), RecursiveCallExtends.mo (new 36)
sjoelund.se 2014-04-11 16:13 Rev.: 20112

Improve error-message for type mismatch in function calls when there is only one candidate function

4 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: Function8.mo (+4 -5), FunctionDefaultArgsCycle.mo (-5)
sjoelund.se 2014-04-10 10:34 Rev.: 20075

Error handling updates
- Strip trailing whitespace from error-messages (error-messages add a trailing newline by default; we do not want 2 of them)
- Register Modelica*Error functions in ErrorExt.mo (for the bootstrapped compiler)
- This means we can use Modelica libraries and simply treat ModelicaError in an external function as Error.addMessage + throw()

0 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: ErrorExternalAlgorithm.mo (-1)
hudson 2014-03-28 19:47 Rev.: 19849

[Janitor mode] Set auto-props

2 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionDefaultArgs2.mo (+1), FunctionDefaultArgsCycle.mo (+1)
perost 2014-03-28 19:40 Rev.: 19848

Fix for #2366 and #2640:
- Implemented evaluation of default arguments in function calls.

71 lines of code changed in 3 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionDefaultArgs2.mo (new 34), FunctionDefaultArgsCycle.mo (new 35), Makefile (+2)
sjoelund.se 2014-03-20 19:54 Rev.: 19658

- Output fewer errors when doing partial function type instantiation

0 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: ErrorExternalAlgorithm.mo (-1)
vitalij 2014-02-14 00:04 Rev.: 19111

- simplify rule x/r = x *(1/r) with test of numerical issues
can someone have a look of
./simulation/libraries/3rdParty/ThermoSysPro/ThermoSysPro.Examples.SimpleExamples.TestJunctions4.mos

3 lines of code changed in 3 files:

  • testsuite/flattening/modelica/algorithms-functions: Algorithm1.mo (+1 -1), Break.mo (+1 -1), FunctionBreak.mo (+1 -1)
sjoelund.se 2014-01-07 17:24 Rev.: 18580

#2529
- Vectorize function calls with DIM_EXP() as dimension

32 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: Makefile (+1), Vectorizable7.mo (new 31)
adrpo 2013-10-24 15:41 Rev.: 17871

- expected results after revert of r17842

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionInverse.mo (+1 -1)
mahge930 2013-10-23 13:33 Rev.: 17842

Recommit r17828. Updated expected outputs.

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionInverse.mo (+1 -1)
perost 2013-10-14 16:41 Rev.: 17686

- Inline rem() operator so it's not output in flat code.

0 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEvalBuiltin.mo (-16)
adrpo 2013-10-13 18:37 Rev.: 17667

- last fixes for ExternalMedia
+ fully qualify paths in ClassInf.State
+ do List.unique on records so we don't get duplicates
+ now at least 5 models in ExternalMedia can be compiled
- fix an issue with lookup where path to be looked up
contains the name of the model in the scope we're in.
this fixes instantiation of
ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,
probably more models in ThemoPower.
added test:
testsuite/flattening/modelica/others/ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.mos

2 lines of code changed in 2 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionInvalidVar1.mo (+1 -1), FunctionInvalidVar2.mo (+1 -1)
adrpo 2013-09-26 04:25 Rev.: 17388

- fix bug #2363
- keep smooth(0, ...) in Static.mo
- handle smooth(0, ...) in Ceval.mo (smooth(0, constant) -> constant)
- handle smooth in Codegen.tpl
- update expected output for tests
- NOTE: Modelica.Electrical.Analog.Examples.SimpleTriacCircuit gives small numeric differences, use the OpenModelica result file

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: TestGravityAcceleration.mo (+1 -1)
adrpo 2013-09-22 12:07 Rev.: 17326

Fix for bug: #2346
- sort also the variable components for instantiation based on their bindings
- sort the DAE in the order it is defined in the Modelica file

11 lines of code changed in 5 files:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval7.mo (+1 -1), FunctionEval9.mo (+1 -1), FunctionEvalBuiltin.mo (+5 -5), FunctionSimplex.mo (+3 -3), SumForLoop.mo (+1 -1)
lochel 2013-07-16 12:31 Rev.: 16601

- do not collapse (initial) algorithms for dumping

5 lines of code changed in 3 files:

  • testsuite/flattening/modelica/algorithms-functions: Algorithm1.mo (+2), Break.mo (+2), WhenStatement3.mo (+1)
lochel 2013-07-10 15:57 Rev.: 16572

- fix tests

16 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEvalBuiltin.mo (+16)
leonardo.laguna 2013-06-18 15:22 Rev.: 16385

- Reverting my previous commit to fix the test

1 lines of code changed in 1 file:

  • testsuite/flattening/modelica/algorithms-functions: FunctionEval7.mo (+1 -1)

(27 more)

Generated by StatSVN 0.7.0