OpenModelica master from 2019-05-25 00:32:21 to 2019-05-28 12:18:19

Summary

OMC Commits19881
Libraries Changed0
Number of Improvements0
Number of Regressions0
Number of Performance Improvements0
Number of Performance Regressions0

OpenModelica Changes

CommitAuthorSummary
5dc61f678Adrian Popany target starting with 'msvc' is msvc
c33af0978Per Östlund[NF] Check conditional component contexts.
9a3a75822Per Östlund[NF] Fix expandable connector lookup.
ad3473053Adrian Pop[FE] new API and replaceable support - work in progress - to use, just add +d=nfAPI to the OMEdit simulation flags - handling of getComponentAnnotations via NF (some models are about 6x faster) - some crashes in OMEdit, not debugged yet, for example: Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater
92a411947Andreas HeuermannHandle complex equations in when statements.
d9dbed6b5AndreasFix rpath for OMSI FMU with gcc
a4e794b3fAndreasFix wrong linkage of expat lib for FMUs
d2540cc70Per Östlund[NF] Improve unit checking.
6cebda438Per Östlund[NF] Improve overconstrained connection handling.
c8a95fdf0kabdelhak[BE] Avoid records in remove simple equations - #4793
80f6ed2acPer ÖstlundFix NFUnitCheck.getFunctionName for records.
ee7aaabe6Adeel Asgharticket:5030 Fix the broken profiling for OMEdit
5daaf9ba0kabdelhak[BE] Remove dumping of empty sets from index reduction
f6e121244Per Östlund[NF] Fix redeclaration of enumerations.
364f80f3darun3688fix dataReconciliation top level inputs
0baa0669fMartin SjölundFix detection of setlocale using -O0
10081da2cAndreasFix bug introduced by PR #3067
67b880245Andreas[OMSI] Added buildModelFMU for simCodeTarget=omsic
10a0a9df6Andreas Heuermann[OMSI] Fixed wrong header guard and warnings in OMSIBase and OMSIC
84b5f7ec3Martin SjölundUpdate 3rdParty
fafb07605Martin SjölundFixes for latest MacOS release
8b33074ddarun3688generate dataReconc-csvInputs when not exists
a5eccbadbPer ÖstlundAdd dumping of external declaration annotations.
bdf89c36aMartin SjölundLoad libraries case insensitive on case sensitive OS
b7a2c6913Volker Waurichcatch crash in visualXML
eef9c24acAdeel AsgharUpdate the connection instead of deleting and adding it Moved the updateConnection API to ModelicaBuiltin.mo Added a new API updateConnectionNames which updates the connection connectors.
c252b047bAndreas Heuermann[OMSI] Add OMSI C library
047112f28Per Östlund[NF] stream connector improvements.
2da4cb375Per Östlund[NF] Fix structural analysis of if-condition.
22a570fa3Per Östlund[NF] Disable checks for actualStream/inStream.
8e0f7c517Per Östlund[NF] inStream/actualStream improvements.
e9f83304ekabdelhak[SimCode] Remove unnecessary verbose SimCode dump - Repeats the same information - Dump size grows factorially with number of elsewhen statements
dd336f954Anatoly TrosinenkoAllow parsing the Text(textColor = ...) annotation
b423c4043kabdelhak[BE,daeMode] Fix: add removed (simple) eqns to dae system
d6957d571kabdelhak[BE] Add initial state selection - available with flag "--initialStateSelection" - implemented for C runtime - has still some bugs
5ef43cce8Per ÖstlundHandle uses-annotation according to the standard.
9a506ce9bAnatoly TrosinenkoInitial implementation of String vars in the Cpp runtime
963b33e13kabdelhak[BE] Add jacobian dependencies - Preparation for initial state selection, used for matching - The dependencies of a jacobian are all unknowns contained in it
3006b8aeePer Östlund[NF] Fix Typing.typeCrefDim for array types.
ee4deabd8kabdelhak[BE] Add unique index of stateSets as attribute
3f5cb6832kabdelhak[C] update inline documentation of stateSelection
f2e6265d0Per Östlund[NF] Don't evaluate external objects.
d82185e19Per Östlund[NF] Various fixes.
2ee23a6f5kabdelhak[C] split up sets for state selection
199705757Per Östlund[NF] Various fixes.
8a2def5adarun3688fix csv file inputs and LOG_STATS for dataReconciliation
0a7961e9aAndreasFixed error with install_name_tool for OMSI
45edd24a9Martin SjölundAdd a warning if FMU is generated without compile-time URI
b694f3f03AndreasFix linking shared libs on mac os
9cb23bc22Martin SjölundMove cJSON to Compiler runtime as simulations do not use it
30afa79d3Martin SjölundDisable mmap in FMUs
0839b2fe1Per Östlund[NF] Add component prefix checks for records.
450104a6cPer Östlund[NF] Fix Expression.typeOf for size(x).
867669786Martin SjölundAllow to configure without hwloc
73c7be839Martin SjölundFix path that the FMU binary is copied back into
7984f74f8Martin SjölundCopy source-code FMU to a docker volume before compiling
1983c2f14Anatoly TrosinenkoAdd some example auto-completion information for use by OMEdit
a2024ab5cMartin SjölundFix path used to debug docker run in FMI cross-compile
304f3536aMartin SjölundFixes for crashes in dynamic FMUs
ed7a206baMartin SjölundMore debugging for cross-compilation of FMUs
5de59c3dfMartin SjölundFix runtime CFLAGS detection
17ca1eee8Martin SjölundFix configure of ModelicaExternalC
384c6f8e7Martin SjölundShow files visible in docker before failing
046495012Martin SjölundFix include path for docker FMI builds
ccf8c899aMartin SjölundLink libzlib explicitly since gcc fails bootstrapping
f12151ccaAdeel AsgharMake sure file is not modified before using the cache
b9d5e4a5bMartin SjölundClear the extra memory pools on each iteration
09f079c67Adrian Pop[BUILD] - add missing = in Autoconf.mo.omdev.mingw
db4e230f0Adrian Pop[BUILD] - fix System.c external interface for bootstrapping on Windows
81d8a0365Adrian Pop[BUILD] - fix generation of Autoconf.mo on msys/mingw
02027beefMartin SjölundMove more constants from System.mo to Autoconf.mo
5db768488Martin SjölundUse Autoconf.mo instead of external C functions
c97542d2cMartin SjölundUpdate work-around for MSL 3.2.1 tables
13eb1f39eMartin SjölundCompile ModelicaExternalC static lib
4a2a554ebMartin SjölundUse -Wl,-Bstatic for user libraries in FMUs
c84e407b4Adrian Pop[RUNTIME] the usual evening fix for Windows builds
3997aa3fdPer Östlund[NF] Don't split external objects in connectors.
72c947e42Per Östlund[NF] Fix ExpOrigin.isSingleExpression.
b8d7e26fcPer Östlund[NF] More fixes for checking when-clauses.
adba422feMartin SjölundCall the correct Makefile target on OMDev
fc29404a7Per Östlund[NF] Fix when-branch cref set check.
ec459e7baMartin SjölundAdd more timers for solvers
53c7613a6Martin SjölundTry even harder to fix Windows builds
e9616abe9Martin SjölundFix for Windows builds
f337f6da5Adrian Pop[OMSI] link with expat on non Windows
9c7d828b1Adrian Pop[OMSI] fix the search lib path for sundial
a356daf4bMartin SjölundDo not include the standard FMI headers in the FMU
03a4ab6feMartin SjölundUpdates for source-code FMUs
e13c1c325Adrian Popattempt to fix MacOS builds - depend OMSI on fmil as well
ab4e3e623Per Östlund[NF] Improve error checking of when-clauses.
e3fab539cAndreas[OMSI] Add OMSIBase library with solvers
f881685f6Per Östlund[NF] Fix visualization (ticket:5319).
b70342a5eMartin SjölundMake the diff algorithm handle within in new code
759292c24Per Östlund[NF] Remove workaround for ticket:4904.
417604feeMartin SjölundExtend LOG_STATS_V with more timers
2305d7585Per ÖstlundFix Interactive.transformClassInProgram.
89078f5d6Per ÖstlundFix integer packing in C code generation.
72fdfb4f8Martin SjölundDo not run both event and output timers at the same time
d85a25849Per Östlund[NF] Disable evaluation of final parameters.
3b38d7b82Per Östlund[NF] Improved parameter evaluation analysis.
050a82062Adrian Popuse fabs for doubles
f3500415cAdrian Popfix MacOS builds
570e9f077Adeel AsgharOption to filter the nested classes when dumping the class via listFile
04df807f5Per Östlund[NF] Function scoping improvements.
f63f7ac40kabdelhak[BE] Consider complex as impure for removeSimpleEquations
f44020770Per Östlund[NF] Real range fixes.
2f5968bdbPer Östlund[NF] Minor type casting fixes.
0c79e1c5fPer Östlund[NF] Try to detect instantiation loops.
9a49909f0Adrian PopFix windows build after linking with tables
113e9da81Martin SjölundUpdating 3rdParty
a5562ccabPer Östlund[NF] Improve ModelicaIO support.
965626166Per Östlund[NF] Implement ModelicaIO_readMatrixSizes.
fe78a6da2Per Östlund[NF] Implement ElementSource.getElementSourceTypes.
fe6fd3174Martin SjölundDo not BackendDump empty sections
61571e834Per Östlund[NF] Merge constraining class modifiers.
04f106144Adeel AsgharMake buildEncryptedPackage export read-only packages
56f218af8Per Östlund[NF] Merge redeclared attributes in correct order.
cfee59268Andreas[OMSI] Preparing Code generation for C
ea6c15501Per Östlund[NF] Fix ComponentRef.transferSubscripts.
a0d3cc1b6Per Östlund[NF] Reuse pointer when redeclaring component.
1cc697e0ePer ÖstlundAdd referencePointerString debug function.
68d87aa24Per Östlund[NF] Use explicit scope in InstNode.scopeName.
50bc1b136Per Östlund[NF] Split TUPLE() := TUPLE() assigments.
5c656ca74AnHeuermannAdd comment for parameters in generated code
f211539ebPer Östlund[NF] Hack to fix some array conditions.
ae2ddcb40Per Östlund[NF] Inner/outer fixes.
b55fb1b3dPer Östlund[NF] Collect functions in array dimensions.
f0376d4b6Per Östlund[NF] Fix equation counting for _.
b691eb147Per Östlund[NF] Improve errors for binding type mismatches.
2ba9e4bf6Per Östlund[NF] Update the call type when type casting.
69a3ec4faPer ÖstlundFix : subscripting in Ceval.cevalSubscriptValue.
0470a5b38Per ÖstlundImprove runtime implementation of 'diagonal'.
cc9ae7881Per Östlund[NF] Improve type casting of some builtins.
482cb0e7ePer Östlund[NF] Fix function vectorization with type casting.
ba5885721Per Östlund[NF] Improve function vectorization.
46fdf1a5aPer Östlund[NF] Restrict cardinality usage.
4961b3653Per Östlund[NF] Fix Call.reductionDefaultValue.
c4e03c808Per Östlund[NF] Fix tuple calls in builtins and reductions.
a44d71c00Per Östlund[NF] Fix scope in Inst.instConnectorCref.
178481276Per Östlund[NF] Improve replaceable base class error message.
7c64e955farun3688generate HTML report and debug log for dataReconciliation
57fb8ee7dPer ÖstlundRename System.stringHashDjb2Mod alias.
0eec718dfPer Östlund[NF] Implementation of expandable connectors.
a385b605dAdeel AsgharAdded new API parseEncryptedPackage Works similar to `parseFile`. Added support for creating .mol packages without encryption which means they only contains the .mo files and also updated `loadEncryptedPackage` to be able to load such packages.
5c5d5ade8Adeel AsgharCheck if .mol contains .mo files If it does then load them normally
61b21dfdaAndreasChanged string documentation, removed unused variables, changed name for omsiAllEquations.
2a07fcecewibraundon't remove DAE_AUX_VAR case in BackendDump
2f1a09846Lennart OchelChanged more comments to documentation strings
f281bdb8dAndreasChanged comments to string documentation in BackEnd/BackendDAE.mo
7e9115667wibraunfix index of jacobian variable in function createJacSimVarsColumn
9b98e73e3wibraunfix added jacobian vars also to HT (#1)
af50f26e4AnHeuermann[OMSI] Preparing data structure for code generation in SimCode
91743cecbAdeel Asgharticket:5343 set the isReadOnly attribute to false When copying the class make sure we make set `isReadOnly` attribute to false.
e32846a8cAdrian Popmore fixes to ticket:5305
0c02427c1Adrian Popfix for ticket:5340 - handle DAE.INITIAL_TERMINATE in BackendDAECreatelowerEq - correctly add DAE.TERMINATE to the regular equations, not the initial equations
b5e109e1bAdrian Popfix ticket:5305 - handle ModelicaStandardTables in SimCodeFunctionUtil.getLibraryStringInMSVCFormat - fix some msvc C codegen issues (some linker issues stil remain) - now models with tables work fine with --target=msvc --simCodeTarget=Cpp
33c5dbaabPer Östlund[NF] Fix checkConnectorType for derived nodes.
1afef5fbdPer Östlund[NF] Fix default connector type for discrete types.
a154b4411Adrian Popfix ticket:5336, set non connector instead of potential
cea302360Adrian Popupdate 3rdParty
19e82eab7Per Östlund[NF] Inherit annotations in functions.
89e4fb8e6hkielupdate documentation of some functions
dfeebf26ehkielfix compile warnings
a55f71c86Per Östlund[NF] Fix type when casting arrays.
2de3e7582AnHeuermannRemoved unused makefile rule mkbuilddir
b3d524855arun3688fix Fstar Computation for dataReconciliation
ce469c3e2Karim Abdelhak[BE] Fix mixed-determined dump and raise index to 10
5c4124cc2Adrian Popre-update 3rdParty to latest
086fe63baarun3688add debug log and fix jacobian transpose for dataReconciliation
d45128c2bAdeel AsgharExpose the functions required by OMEncryption
c0983d2a8Per Östlund[NF] Fix equation order for branch selection.
e13c41a26Adrian Popfix ticket:5048, lookup starting in the class, not the parents - only do this if the class is not derived
8017c67f8Per Östlund[NF] Expand complex array crefs.
71414e449Per Östlund[NF] Add execStat för Absyn->SCode.
2fee2f064Per ÖstlundFix code generation for function outputs.
4b0bcc210Per Östlund[NF] Improve Typing.typeExpDim.
68cc73853arun3688fix datareconciliation jacobians var ordering
05c8b026dMartin SjölundUnroll the patch commands
bbc721e3bPer Östlund[NF] Use System.setUsesCardinality.
d255b3a73Martin SjölundUpdating 3rdParty
a6a240619Martin SjölundRemove svn-clean.py
554ce08abMartin SjölundUnify BSD/OSX and GNU sed syntax to one
a27fbae91Martin SjölundUpdating 3rdParty
e10d5e4f5Martin SjölundUse $(MAKE) in Makefile
fbc944f68Martin SjölundUpdating 3rdParty
2f863d03ePer Östlund[NF] Make Real range generation more robust.
0f5c4be90Per Östlund[NF] Handle inner/outer in records.
58af603f1Per Östlund[NF] Allow Fortran 77 as external language.
38fd61a5fPer Östlund[NF] Various fixes.
9a3519958Martin SjölundUpdating 3rdParty
8167b9d2bPer Östlund[NF] Partially revert 8fcf925.
be0943f3aPer Östlund[NF] Fix scoping of redeclared components.
247f185a6Per Östlund[NF] Handle importing and inheriting the same name.
852d89ec5Per Östlund[NF] Fix operator overloading.
8fcf925f2Per Östlund[NF] Various improvements.
fcedc05ffWilli Braun[BE] added support for INITIAL_ASSERT in BackendCreate
db18f0d5bKarim Abdelhak[BE]apply simplifyIfEquations on initial equations
eb421e8aaPer Östlund[NF] Evaluate bindings of complex final parameters.
bf2e0a4e4Lennart OchelDon't rename outputs
7eaf6bce7Lennart OchelReplace BackendDAEUtil.traverseBackendDAEExpsEqnsWithUpdate
e3d42ecddPer ÖstlundImplement --showStructuralAnnotations flag.
547468f7bPer ÖstlundExpand crefs when simplifying cat.
21283341fAdrian PopUpdating 3rdParty
158c497a4Adrian Popon mingw C runtime link statically with sundials - on mingw define LINK_SUNDIALS_STATIC before including sundials headers - fix rule for dataReconcilation.cpp (was overwritten before)
43044cb55Adrian Pop[FMU] static link sundials, ticket:5293
e2dbad235Adrian Popmore execstat: at the end of frontend and for checkmodel
5e72f06edPer Östlund[NF] Fix ordering of when-branches.
8a20ce05cPer Östlund[NF] Propagate structuralness via modifications.
25cfbd504Willi Braunremoved misleading fScalings labels in kinsol dump
8cd974325Per Östlund[NF] Fix root class modifiers.
683050ef1David PolakFix FMU hybrj_ function signature
0ef03fcc6Anatoly TrosinenkoUse the stack bottom value from the old threadData, if available
23d8d265bAdrian Popfix metis build on mac
0861aa330Per Östlund[NF] Fix Typing.typeCrefDim.
ea4056148Per Östlund[NF] Add type checking for reductions.
bbc01270dPer Östlund[NF] Record binding fixes.
ef2d3b458Per Östlund[NF] Element-wise overloaded operator support.
1f8addeb0Per ÖstlundError message improvements.
1f99d4a85Per Östlund[NF] Add case for MUTABLE in Typing.typeExp.
5e47a157ePer Östlund[NF] Flatten for-loop ranges when unrolling.
158a345b4Per Östlund[NF] Fix TypeCheck.getRangeTypeReal.
c0d2c5729Per Östlund[NF] Improve Ceval.evalArrayConstructor.
973bab372Per Östlund[NF] Cleanup some toString functions.
d681d7111Lennart OchelTrigger internal computation in initialization mode
8481cc556Per Östlund[NF] Fix type in Ceval.evalArrayConstructor.
3c1d34e45Per Östlund[NF] Collect functions in builtin attributes.
0fb5b980aPer Östlund[NF] Fix Flatten.collectTypeFuncs for arrays.
2be04fdfcAdrian Pop[NF] support range based on enumeration type
1871ad300Adrian Popadd more operators and builtin functions to the embedded codegen
da9714198Per ÖstlundHandle record better in lowerArrayEqn.
c8cc40e45Per Östlund[NF] Fix Ceval.makeRecordBindingExp.
c68f4330cPer Östlund[NF] Ceval/SimplifyExp improvements.
ef2fed95fLennart OchelFix more initialization issues with FMUs
2f4f72e3fPer Östlund[NF] Fix connection graph.
82a256a7barun3688add runtime support to dataReconciliation module
a4086ba13Lennart OchelFix initialization of parameters and attributes for FMUs
5c686487ePer Östlund[NF] Retype array constructors after ceval.
15e62b72cPer Östlund[NF] Improve toString functions.
8311f2653Lennart OchelFix capability flag maxOutputDerivativeOrder
069524036Per Östlund[NF] Various fixes.
43bdde4e3Martin SjölundAdd the trigonometric functions to EmbeddedC
17e11864ePer Östlund[NF] Improve Expression.splitRecordCref.
cf3c2d444Per Östlund[NF] Fix DAE conversion of ^ operator.
b839fa14fPer Östlund[NF] Fix DAE conversion of / operator.
8ad5de13bPer ÖstlundImplement Interactive.transformPathedClassInClass.
1e836b6e7Anatoly TrosinenkoImplement *_get_5D(...) array accessors
1b6a960acAnatoly TrosinenkoDo not complain on NULL returned when allocating 0 objects
52cd12972Martin SjölundAdditional debug messages for overdetermined systems
2b1c2bf5chkielfix copy&paste error
802d9c8f5Dietmar WinklerBeautifulSoup 3 is no longer maintained, switch to bs4
4eda4f782Adrian Popmore fixes for ticket:5030 - fix variable cross reference for equations in modelinfo.c - fix equation display in html in default_profiling.xsl - fix a bad string comparison (str == "") in systemimpl.c
434838c38hkielfix SVG generation script for Python3
714045344Adrian Popfix ticket:5250 handle '<' and '>' the way GenerateDoc.mos does
d090ace87Per Östlund[NF] Improve operator overloading.
b8ddb69cdAndreasAdded dependency for CPP runtime on Windows mingw build
3fa798f48niklwors[cppruntime] Adapted zero function tolerance
7a31ea6b6Adrian Popfix ticket:5249 - add a flag to typed binding to signal if it was flattened - do not flatten again already flattened typed binding
83d510501wibraunadded UsersGuide ref ticket:4246
825562263Lennart OchelFix typos
35cf6f80aPer Östlund[NF] Move overconstrained equation generation.
53a0dfdf8Willi Braun[BE] adjust daeMode flag
23e4c4508Per ÖstlundImprove code generation for ADD/SUB_ARRAY_SCALAR.
7b01c957bPer Östlund[NF] Fix Record.collectRecordParam.
32d10a91dPer Östlund[NF] Record fixes.
d8ca87311Per Östlund[NF] Record constructor fixes.
a16d2aa3fPer ÖstlundFix lowerEqn for initial complex equations.
c257574c6Per Östlund[NF] Collect constructors from record expressions.
b64191121Per ÖstlundHandle DAE.REDUCTION in differentiateExp.
a1f95a699Per Östlund[NF] Relax restriction on input/output prefixes.
e1d80fc27Adrian Popv1.14.0-dev
f4aa462e4Per Östlund[NF] Fix Expression.compare for arrays.
c1a48de42Per Östlund[NF] Add missing cases to Expression.compare.
cb2f4d4dfPer Östlund[NF] Various fixes.
c7c9c712aPer Östlund[NF] Clone derived nodes.
9fc7ba2afPer Östlund[NF] Improve evaluation of record fields.
8ffc95a47Per Östlund[NF] Improve functions called through components.
e7d386dfbWilli Braun[Backend] symbolic jacobian remove defines in generates code
de1221967Rüdiger Franke[Cpp] Normalize paths for simple concatenation of file names
6770e6300Rüdiger FrankeRename --solver-threads option to confirm with Cpp naming
c842427a6Rüdiger Franke[Cpp] Don't use outputPath for results file, ticket:4773
aa64ed4c6Per Östlund[NF] Constant evaluation optimizations.
8b10a6696Per Östlund[NF] Include root name when creating complex DAE types.
99e1c3954Per Östlund[NF] Improve Expression.hasArrayCall.
809abfcb3Per Östlund[NF] Collect more record constructors.
bccd64c5aPer Östlund[NF] Record fixes.
2661fa9b0Rüdiger Franke[Cpp] Implement flags for input and output path, ticket:4773
9bcafd67aRüdiger Franke[Cpp] Fix derivative vars in XmlPropertyReader, ticket:4773
6f93d97a8WilliScalarize differentiated exp RSUB and TSUB equations
0a46029abWillipartial differentiation of function with record outputs
210af859fRüdiger FrankeRe-add local ModelicaExternalC to Cpp runtime, ticket:5227
7f7fb5389Per Östlund[NF] Clone inherited classes.
96dfd76e2Per Östlund[NF] Evaluate more constants in functions.
12ee163a5Per Östlund[NF] Minor fixes.
6ac3d327cPer Östlund[NF] Fix type checking of tuple expressions.
83bdb3db9Per Östlund[NF] Fix subscripting of ranges.
eeb0df6ceRüdiger Franke[NF] Treat arrays of overconstrained connectors
17cf378aePer Östlund[NF] Initial partial function application support.
0fa800798Per ÖstlundFix anyString for SOME().
f5cbc6bd0Lennart OchelFix CS-FMU doStep function - Fix event handling - Fix integration method (euler)
dc05202e2Adrian Popfix linearization file generation in Windows (ticket:5223)
19f18d652Rüdiger Franke[BE] Improve inlining and solution of array equations
f80c21e1aRüdiger Franke[Cpp] Use array assign in for loops
cb53a44efRüdiger Franke[Cpp] Implement array fill assignments
e2321aef7Rüdiger Franke[BE] Create array equations for array bindings
a581f2909Per ÖstlundImprove parsing of function partial applications.
74a1cd4daAdrian Popfix GC stats
d5e13f929Lennart OchelSmall changes to Modelica export of linearized models
a616890f6Lennart OchelMake dummy states derivatives bidirectional
8fe98ae95hkielremove superfluous matchcontinue
565b72f5dhkielimprove doc generation speed
789a1ecd9Rüdiger FrankeVectorize equations with iter at appropriate position
c308368c8Per Östlund[NF] Fix Ceval.evalComponentBinding.
42eeda452Per ÖstlundFix inline type checking.
7905e37cfPer Östlund[NF] Fix NFFunction.mapExpParameter.
a2b203f30Per Östlund[NF] Evaluate more package constants in functions.
13a4ae4faPer Östlund[NF] Fix typing of when statements too.
088d43524Per Östlund[NF] Fix typing of when conditions.
144493f24Rüdiger Franke[Cpp] Fix reduce_array, usub_array and in-situ access to array slice
4125b19e2hkielfix for Python3 remove redundant code optimize string compare
83d21165dRüdiger FrankeTreat array flows as array equations and solve them for code generation
e8bea8597Per Östlund[NF] Improve simplification of functions.
52bf40229hkielincrease performance of file name case sensitivity fix
5c466368fWilli Braun[BE] add support for if equations as residual equations
19ec6d1a7Per Östlund[NF] Evaluate >= as >=, not as >.
2492d601aPer Östlund[NF] Improve typing of vector().
223798abbPer Östlund[NF] Evaluate parameter subscripts.
98896ae5cRüdiger Franke[Cpp] Skip array subscripts in cref names if not NF_SCALARIZE
9188bd56eRüdiger Franke[Cpp] Implement operator= for ArraySlice to avoid call to crefIsScalar
648de4264Rüdiger Franke[Cpp] Consider array slices with less subscripts than dimensions
47d8ecf26Rüdiger Franke[Cpp] Fix code generation for array dimensions and slices
d4e9036c7Rüdiger FrankeApply inline to for-equations as well
2b8ffc95bRüdiger FrankeConsider ADD_ARR and SUB_ARR when solving equations
3e8df38ecRüdiger Franke[NF] Treat vectorized connectors with flow variables
023c904a1Williadd RSUB dump to ExpressionDump
0e4d8eed0Per Östlund[NF] Remove bad NFCeval optimization.
c54cb4b24Adrian Popsupport cycles in anyString (ticket:5205)
804c58ed3Per Östlund[NF] Fix inStream/actualStream on arrays.
6da90a04ePer Östlund[NF] Generate fold expression for reductions.
2726ae48ePer Östlund[NF] Improve Expression.recordElement.
fbe0a6675Per Östlund[NF] Initial support for functional arguments.
c6038ff00hkielfix creation of zip file use dominant_baseline instead of alignment_baseline to circumvent SVG display flaw in Firefox
dd78c0858hkielarchive Icons as well clean working dir before creating docs
08c3710b3Adrian Popcopy values of fmi2CallbackFunctions in fmi2Instantiate - copy fmi2CallbackFunctions* functions in fmi2Instantate as it could be freed by the caller environment after the call
06d58cd7fPer Östlund[NF] Implement -d=evaluateAllParameters.
c77f81ef7hkielsmall fix for GenerateDoc.mos
d129e47b8Per Östlund[NF] Various fixes.
e073cfc20Per Östlund[NF] Fixes for Modelica tables.
d39b07be9Per Östlund[NF] Optimize cref evaluation.
9a925117dPer Östlund[NF] Optimize evaluation of for loops.
7e237d371hkielfix GenerateDoc.mos
ad7bdaf98Per Östlund[NF] Improve handling of Evaluate=true.
ff431bde6hkieltry to fix some "Argument list too long" errors
898f94d47Per Östlund[NF] Simplify trivial array constructors.
ad14159ddAdrian Popbetter explain where to change directory
3fd362422hkielmake subdirs for hashed SVGs optional
6571fe892Martin SjölundUpgrade libgc to 8.0 release
a588c55bcRüdiger FrankeGeneralize FOR_EQUATION in backend from left=right to any equation
01a292863Rüdiger FrankeUse crefToExp when creating backend DAE with arrays
76f3cebd4Rüdiger Franke[NF] Convert equality of array type to DAE.ARRAY_EQUATION
8a234f06dPer Östlund[NF] Allow invalid bindings on deleted components.
7a86b4c7eWilli Braun[daeMode] fix decision when use pure algebraic solver
f73af463chkielfix link to svg
743eec1b1Rüdiger FrankeAdd equation size to vectorized equalities and for loops
8e8393f57Rüdiger Franke[NF] Skip empty array variables and equations
a08ef7bf2Per Östlund[NF] Fix typing of Clock constructors.
5e591840bPer Östlund[NF] Expand transpose during simplification.
f66e5ac11Per Östlund[NF] Disable expansion of function arguments.
13e5b32c4Rüdiger FrankeAvoid conversion of of a = b to b = -(-a), ticket:5144
e57c4cc10Rüdiger FrankeDisable inlineArrayEqn in vectorized models
58cae62e0wibraun[cRuntime] add some jacobian statistics
75c4b3ecaPer Östlund[NF] Expand function call arguments.
be5254a73wibraunfix SimCodeDump, dump also bool variables
88c0b81bcPer Östlund[NF] Do more branch selection during flattening.
3753d6d74hkielremove ulimit from call, it hangs the script
18e327174Per Östlund[NF] Split record crefs in binding equations.
e14b05432Per Östlund[NF] Improve handling of if-equations.
9595dac0eWilli Braun[BE] replace zeroCrossings in jacobian matrices
ecd1fed3eWilli Braun[cRuntime] fix total simulation time measurement
fb2861e8chkieldump model name and start time in generate_icons.py for debugging purpose
bf49d96b0Per ÖstlundOptimize EvaluateFunctions.getStatementLHSScalar
ca41844c3Rüdiger Franke[NF] Evaluate constants in for-equations as well
78191053eRüdiger FrankeRename sub-methods for initialization from define... to init...
1619f730chkielfix race condition on concurrent call
c303e6d32Per ÖstlundOptimize EvaluateFunctions.
d99646653Rüdiger FrankeSimplify treatment of trivial array equations cref=exp and exp=cref
e645dd791Per ÖstlundAdd missing dgelsy to Lapack functions.
29048075aRüdiger FrankeRemove separate memberVariableDefinePreVariables
dcd7c9ef5Rüdiger FrankeSeparate init of StatArray from assign with operator=
095844b39hudsonUpdating 3rdParty
a5a404e28hkielclose opened files again
b7aefa70ehkielDo not crash when Bitmap file is not found
89692f53dPer Östlund[NF] Fix Expression.applySubscriptArray.
65065879cRüdiger FrankeDetect enumeration type in arrays as well
d7274ca92Rüdiger Franke[NF] Keep vectors in connect equations
0dbda2b3bRüdiger Franke[NF] Vectorize arrays of components, ticket:5144
bac7d12e3Per Östlund[NF] Improve typing of record field dimensions.
521d55e98hkielgenerate hashed SVGs in subdirs
7961fdb4dPer Östlund[NF] Improve array assignment in EvalFunction.
00d75285fPer Östlund[NF] Fix typing of dimensions.
6127ec966Per Östlund[NF] Various improvements.
0283b33baPer Östlund[NF] Improve DAE conversion of reductions.
c7d9e16dcPer Östlund[NF] Fix Call.typeCall.
f34bf81fbPer Östlund[NF] Improve handling of reductions.
63c9d1401Per Östlund[NF] Make inStream evaluation properly recursive.
9b06327d0Per Östlund[NF] Fix handling of Evaluate annotation.
09a79cbaehkieldo not generate json with icon annotations
976a9966fRüdiger FrankeTreat sample with clock constructor in array equations as well
ec7f7412eRüdiger FrankeMake inline integration for synchronous models work with arrays
eda1ea2daRüdiger FrankeChange size of array equations to 1 if -nfScalarize
dad3995e5Per Östlund[NF] Use correct origin in Typing.typeCref.
d59074e77hkielembed image data from URI into svg
e6854b504hkielput base64 data into svg image
09d7769b6Per Östlund[NF] Add ceval handlers for Clock constructors.
2e8481780Per Östlund[NF] Fix Ceval.evalComponentBinding with 'each'.
7fd4fbc3fAdeel AsgharAllow only the valid FMI versions. ticket:5146
3f4c043b5Rüdiger FrankeReactivate Cpp code generation for SimCode.SES_FOR_LOOP
6952465e4Rüdiger FrankeConvert BackendDAE.FOR_EQUATION to SimCode.SES_FOR_LOOP (simplified)
d2c673dcbRüdiger FrankeOptionally strip loop subscript from clocked states
e37e5cc07Rüdiger FrankeExtend treatment of for-equations in backend
9220d77b3Rüdiger FrankeConvert DAE.FOR_EQUATION to BackendDAE.FOR_EQUATION, ticket:5110
0641eaf32Rüdiger FrankeGenerate FMI model structure without dependencies for array vars
dd5a6fd76Rüdiger FrankeTreat variable index for array elements in FMI model description
efe296facRüdiger FrankeRoll out arrays for FMI model description and Cpp init XML files
098c4ec2fRüdiger FrankeTreat array variables during Cpp code generation, ticket:5110
0880a6c60Rüdiger FrankeAssume simple array equations solved and count scalars for ModelInfo
8b160f9d2Rüdiger FrankeLet simple array equations pass the backend, ticket:5110
cc4c1bf6aDietmar WinklerMake sed greedy since there are two links per line to fix
363871639Adrian Pop[NF] don't try to evaluate external functions in the backend
5468d69dePer Östlund[NF] Move general evaluation to separate phase.
6f85ead02Martin SjölundDo not add weird GCC CFLAGS when using ccc-analyzer
317fb4854Martin SjölundPrint the TRY_FLAGS accepted
7ebe12bc5hkieladjust text height to extent height if no text size is specified add option to create only a warning if a files already exists accept floats for any decimal number
5bf01fd89Dietmar Winklerformat expects string and encode not needed
b102b4847Rüdiger Franke[NF] Preserve for loops with -d=-nfScalarize, ticket:5110, ticket:5144
84d4820ddAdrian Popincrease the timeout 600s is not enough for MSL icons
43ad2678aAdrian Popticket:5144 do not expand complex array components
b9307fbc4hkielfix svg generation - Add correct opacity value to svg objects - ignore empty icons - support DynamicSelect strings - encode unicode strings - handle *(use Support,...) - recognize 1e-1 numbers in Polygon
d4d60596cWilli Braun[CG] stip subs before copy array
b86011553Willi Braun[cRuntime] fix minor outpur issue in kinsol
090346b01Willi Braun[BE] added debug flag to enable error asserts from min/max attributes
0cdd3ea6aAdrian Popfix ticket:5134, pass by reference
d671df53dAdrian Popfix to handle array variables attributes if we dont do scalarization - the each qualifier will be lost as we cannot represent it yet in DAE.Var
9646ce441Per Östlund[NF] Don't evaluate impure funcs in if-conditions.
b0af930c0Adrian Popfix for ticket:5133, make impure function calls be parameter expressions
e941483d3Adrian Popfix for ticket:5130 and ticket:5131 - do not free memory on fmi2Terminate as it should be possible to call fmi2GetXXX after it, just set the modelTerminated status - move memory free from fmi2Terminate to fmi2FreeInstance
2708d45b1Adrian Popactivate the needed flags when -d=-nfScalarize is on
aa6173bbdAdrian Popmake impure functions be of variability continuous (ticket:5127) - remove the check for impure in NFFrontEnd/NFCeval.mo - add check for impure in NFFrontEnd/NFCall.mo
3048851a8Adrian Popall synchronous features except state machines should work (ticket:5127) - do not constant evaluate impure functions - better fix for sample that requires no patching of NFModelicaBuiltin.mo
0f7d6b997Adrian Poppatch sample overload if --std < 3.3 (ticket:5127) - reparse builtin for each language standard, associate the builtin file with both grammar and language standard - change sample definition if --std < 3.3
f7f06a216Adrian Popadd more synchronous features (ticket:5127): interval, firstTick, overload sample - firstTick and interval are specified in NFModelicaBuiltin.mo - sample is handled specially in NFBuiltinCall.mo
09518b9e2Adrian Popadd Clock synchronous features to the new front-end (NF), ticket:5127 - currently only Clock operators are supported, no clock variables - change the ugly intGe(Flags.getConfigEnum(Flags.LANGUAGE_STANDARD), 33); to Config.synchronousFeaturesAllowed(); - unbox external function arguments if __OpenModelica_UnboxArguments is present so that previous polymorphic definition in NFModelicaBuiltin.mo works fine - do not simplify sum and other builtin operators if nfScalarize flag is disabled
92b7fbb1dPer ÖstlundCheck named arguments of API calls like simulate.
95e1e1257Willi Braun[BE] fix order of jacobian equation of a dynamic stateSet
03101bd0bPer Östlund[NF] Variability fixes.
0bcaee03bPer Östlund[NF] Expand tranpose better.
232b21346Per Östlund[NF] Fix simplification of transpose.
049ab6934Rüdiger FrankeSupport array equation with der(v) on left hand side
18752c9b4Adrian Popfix for ticket:5129
358f0dcc9Adrian Popimprove the build process - remove mkbuilddirs target - create directories before runing the first target if OMBUILDDIR is not empty - avoid build of some dependencies if they are already built
eb75cbe88Rüdiger FrankeRestrict to previous with Cpp runtime too, ticket:5110
66ceece9bRüdiger FrankeSupport more vectorized calls for Cpp runtime only, ticket:5110
bfccc5f2dAdrian Popfix MetaModelica examples on mingw - this is until we fix PR: https://github.com/OpenModelica/OMCompiler/pull/2138 - compile also with -fno-ipa-pure-const - link functions with -lOpenModelicaCompiler if MetaModelica flag is on
5b5cfe87bWilli Braun[FMI] added debug flag "disableFMIDependencies"
9e884a5b4Adrian Popremove the output from cleaning, it might change
c3a6587d8Adrian Popdon't propagate command line arguments of make to Ipopt - this allows to compile everything in Windows with: make -f Makefile.omdev.mingw CFLAGS=-g
dfb7517bePer Östlund[NF] Do substitution of default function arguments.
3f9ecccd2Adrian Popfix library linking order
2f395d31aPer Östlund[NF] Fix typing of min/max.
22bbcbbc9Adrian PopFixes for ticket:5117 and ticket:5119 - link in static libs (even for Modelica tables) for FMU and for the generated executable (all except sundials) - on 32bit, pass gcc flag -mstackrealign to reallign SSE functions (so they can be used from other Windows processes, such as fmuChecker) - build SimulationRuntime/c/ with -mstackrealign
f9edf2817Rüdiger FrankeRestrict collapse of arrays with same call on each element to previous
1fd1dd9e6Rüdiger FrankeCollapse arrays with same call on each element, ticket:5110
df1914c20Per Östlund[NF] Fix ConnectEquations.associatedFlowCref.
2fa8c5ec9Per Östlund[NF] Evaluate actualStream.
661b5958fPer Östlund[NF] Improve evaluation of some external functions.
33aa19d18Adrian Popuse LONG_MAX for integer in FMU min/max
eefcdcc54Anatoly TrosinenkoFix String inputs/outputs handling for FMUs
baf7ba404Per ÖstlundFix for #5111.
32ad2f523Adrian Popfix checkAllModelsRecursive reporting and add a flag - add the nfAPI flag so we don't get conflicts on changes to this file - report the number of failing models for checkAllModelsRecursive
1eeffa0d0Per Östlund[NF] Evaluate functions with constant arguments.
eb0909d92Per Östlund[NF] Fix function vectorization/cast conflict.
cbc69f9e9Per Östlund[NF] SimplifyExp improvements.
7b82c4131Adrian PopUpdating 3rdParty
dd340df3fPer Östlund[NF] Fix nfExpandOperations with unary ops.
b8a07779dPer Östlund[NF] Add flag to expand binary operations.
852216723Adrian Popadapt to latest msys2 and mingw clang - set prefix on all configure (msys2 sets it to default /mingw64 or mingw32) - override the needed cflags - remove -fPIC on windows
5ce059386Per Östlund[NF] Fix ExpandExp.expandRange.
7d0f654caPer Östlund[NF] Fix Expression.makeSubscriptedExp.
9aaad999bPer Östlund[NF] Fix Subscript.mergeList.
6e03b386aPer Östlund[NF] Improve subscripting of expressions.
33b800de6vruge[BE] fixes for inStream
67189f385vruge[BE] improved inStream
2f78a66acarun3688implement DataReconciliation algorithm
46d9c5b68vruge[BE] fixes for inStream
13b403fe5vruge[BE] fixes for inStream
49624efbcAdrian Popbetter Qt log
51e9b19daniklwors[cppruntime] fixed division by zero during setting start values
94992759dPer Östlund[NF] Relax connector check for e.g. isRoot.
6d27fdff2Per Östlund[NF] Fix SimplifyExp.simplifySubscriptedExp.
62dcbfd13Per Östlund[NF] Fix access violation check for Lookup.
4e5b4c7b3Per Östlund[NF] Ignore some funcs in Expression.hasArrayCall.
6a4d8d1bePer Östlund[NF] Make protected class lookup possible.
f558b3b83Per Östlund[NF] Improve handling of matrix().
07b398de6Adrian Popuse 'start' attribute if parameter has no binding (ticket:5065) - better Component.getFixedAttribute implementation - use start attribute if the component has no binding and has fixed=true (or has no fixed and is a parameter or structural parameter)
11eaca39aPer Östlund[NF] Inline the skew operator.
2bfa83f61Per Östlund[NF] Fix expansion of cref slices.
2e978c5e8Adrian Pop[NF] Expandable Connectors [ticket:5015] - partial implementation - during lookup create virtual crefs - during typing, type virtual crefs
5698726b6Adrian Popmake sure people git clone OMDev properly
444fbec68Per Östlund[NF] Fix parent in Inst.instComponentExpressions.
f2acbf58aPer ÖstlundFix InstUtil.splitInnerAndOtherTplLstElementMod.
9840114c9Per Östlund[NF] Potential fix for #5063.
01f706828Per Östlund[NF] Fix instantiation of derived classes.
363af9f13Adrian Popinclude function name in the error message for clarity
ceb595ee2Adrian Pop[NF] do not set structural parameter variability for constants if they have annotation(Evaluate=true)
11bce5aceAdrian Pop[NF] better error messages and more evaluation of parameters - evaluate parameters with annotation(Evaluate=true), make them structural parameters - give the deduced variability of the expression that doesn't match the expected variability - fix ticket:5062, add an warning message for parameter Type p(fixed=true) annotation(Evaluate=true); with no binding - handle ticket:5061 by accepting parameters in the public section of the functions and issue a warning
418233658Martin SjölundFix use before define
47f3ecb05Martin SjölundAllow the compliance suite tests to crash
8423437c4Karim Abdelhak[Backend] do not hide $-variables in result file
fabb954c4Martin SjölundImprove stack overflow detection for compliance suite
9489b472fMartin SjölundHandle stack overflow for compliance suite test
6bfa734e1Martin SjölundAvoid backslashes in JSON strings
63848be39Julien SchuellerAdd cp -r option to ${builddir_share}/omc/runtime/
80b06e9a4Martin SjölundTest all of the compliance suite
8c3db214bAdrian Popfix for ticket:5054 - proper prefixing (subscript transfer) of condition in Equation.IF
9ebd34b9dMartin SjölundCompliance-Suite: Fix crash when simulation fails
7d6cb6d47Martin SjölundSort results of compliance suite testing
94cae26a1Volker WaurichcopyFile call for scripting api
bab4ecd2fVolker Waurichfix evalOutputOnly
9d2a05f37Adrian Popbetter handling of builtin and extern C functions (ticket:5057) - check if the non fullyqualified name of the function is the same as the name of the external function - if the non fullyqualified name is not the same, generate the function and call the extern definition - fix definition of builtin integerMax and numBits
fc9be10d4Willi Braun[cRuntime] fix nonlinear value extrapolation
489266015Adrian Pop ticket:5054 - add an warning message about missing rooted branch and continue
bb8f3d85eWilli Braun[cRuntime] improve dump of the non-linear system solution
8fd8d3e21Willi Braun[Backend] fix text of algebraic loops jacobian
a9fc037cdAdrian Pop[NF] fixes to overconstrained connection graph (OCG) - strip subscripts from the overconstrained components when used in the graph or the equalityConstraint function - lookup "fill" in top - add flag (no)nfScalarize to be able to disable scalarization in NF
b28062c18Adrian Pop[NF] finalize overconstrained connection graph (OCG) - generate zeros(:) = OverconstrainedType.equalityConstraint(A, B) equations - replace broken connects with the generated equalityConstraint equation - also run the Connections.* operator evaluation on initial equations - do not delete inner outer nodes as it will fail miserably
15177bd51Adrian Pop[NF] overconstrained connection graph (OCG) - creating and breaking of the OCG is working - replacement of broken connect equation with the equalityConstraint call is missing - update common
c5bc6e519niklworsRemoved code generation for algebraic loop variables and added it to algebraic loop default solver implementation
04d541f51Per Östlund[NF] Fix type when expanding unary expressions.
06e511fcaPer Östlund[NF] Array equation fixes.
65d13903bniklworsAdded flag to use only one instance of algebraic loop solver in cpp runtime
23656fa58Adrian Popallow disabling of 'stdout' and 'assert' streams
578550f20Martin SjölundFix path names for compliance suite
66b19e05fMartin SjölundMore options for ModelicaCompliance testing
c44a5382dAdrian Popbetter fix for Windows compilation - use gcc instead of g++ - use -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic instead of -static-stdc++
f251a6043Adrian Popfix simulation code compilation on Windows - use g++ to link the executable on Windows with -static-libstc++ - remove c++ includes from the SimulationRuntime/c/simulation/simulation_runtime.h - guard some files with extern "C" so we can always use g++ to compile the generated code
a32b6223fAdrian PopFix FMU build on Windows and other FMU fixes - use fmuTargetName instead of fileNamePrefix to remove the fmu - use rm -f if System.removeDirectory doesn't work on Windows - compile with static libstdc++ and pthreads - don't add extra dlls to the binary directory - fix resource copy on Windows
8089bfdf4Per Östlund[NF] Fix package constant detection.
52c826abaPer Östlund[NF] Handle SUBSCRIPTED_EXP in Typing.typeExp.
7f60f8293Per Östlund[NF] Don't evaluate local constants in functions.
008d2d22cWilli Braun[FMI] fix directional derivatives in c fmu
2d1ed04acAdeel AsgharAdd quotes around the full command
0eac6626aPer Östlund[NF] Fix lookup error message.
c3159ae3ePer Östlund[NF] Change cref evaluation strategy.
5ae39b976Martin SjölundReturn success for found steady state simulation
53c7b2549Per Östlund[NF] Collect more functions during flattening.
25d5df2bbPer Östlund[NF] Simplification improvements.
fd178e184Per Östlund[NF] Fix simplification of sum/product.
412a02353Per Östlund[NF] Revert to first base class lookup fix.
e3f55e4c6Martin SjölundFix the FMU resource path on Win32
d870b3b91Per Östlund[NF] Fix `delay` definition.
647ef1079Per Östlund[NF] Fix Ceval error reporting.
7d0153e3fPer Östlund[NF] Simplification improvements.
582a03819Per Östlund[NF] Implement evaluation of cardinality.
6ec2d31b3Per Östlund[NF] Better fix for base class lookup issue.
e9a73b9e8Per Östlund[NF] Fix base class lookup.
a34b659b0Martin SjölundFix for Windows paths in URIs
7cd71ba5fMartin SjölundCheck if file can be opened before using dup2
7660aa043Martin SjölundAdd support for compiling FMUs using docker
3f36b04ddAdrian Popsmall readme update
1257694a0Adeel AsgharlistFile should work for Access.nonPackageText and higher
75c94ec6dAdeel AsgharRestrict instantiateModel based on the access annotation If the class is encrypted then check the access level for instantiateModel
bc961b4f7Per Östlund[NF] Expand sum/product in equations/bindings.
ad9df37e1Adrian Popadd a readme about using own compiled OpenModelica
facb5c9dbPer Östlund[NF] Improve handling of scalar().
561548584Per Östlund[NF] Improve expression expansion.
592a4a469Per Östlund[NF] Make array constructors structural in bindings.
f76128010Martin SjölundThe FMIL includes are necessary to compile OMEdit
1c8bb86deLennart OchelFix copyright header
dfa7337c5Adeel AsgharUse the correct working directory
fb766b3f4Per ÖstlundHandle : in ComponentReference.compareSubs.
cce54d907Per Östlund[NF] Tuple and array equation improvements.
37e717734Per Östlund[NF] Fix issue with conditional components.
f9bcda0caPer Östlund[NF] Fix scope in Inst.instExpressions.
72ee12239Per Östlund[NF] Improve handling of conditional components.
0fb948cd0Per Östlund[NF] Fix moving of parameter binding to equation.
6fe40c2e9Per Östlund[NF] Remove empty arrays equations.
24b68a227Per Östlund[NF] Handle initial complex equations better.
27740e16fMartin SjölundUse the FMI 2.0 resources directory for info.json
e3fba96fbMartin SjölundDo not enforce -flto when building FMUs
7f3aeefb4Per Östlund[NF] Update NFModelicaBuiltin.
a107bb4b6Per Östlund[NF] Fix handling of 'each' in Ceval.
d262d0a53Adrian Popsome readme updates after feedback from DING Ni, thanks
c0e48477dAdrian Popsmall readme update
97ad0bf47Adrian Popcheck if the file is valid
5e9917054Per Östlund[NF] Evaluate if-conditions in more cases.
05b35777dPer Östlund[NF] Handle evaluation of some record arrays.
8f36866bcAdeel AsgharPass the correct number of arguments.
ab5e5eef5Adeel AsgharKill the library vendor executable after load
def3e2eb6Adeel AsgharStart the library vendor executable separately For each `loadEncryptedPackage` call create only one instance of library vendor executable.
af928ab2bPer Östlund[NF] Operator overloading fixes.
8dca89a95Per Östlund[NF] Try harder.
b5921938bPer Östlund[NF] Try not evaluating complex parameter bindings.
5e365bfc4Per Östlund[NF] Function output type fixes.
e17906458Adrian Popfix include path for SEMLA
7ee060b8bAdrian Pophandle list and listFile if we have encryption
8c6ff4182Adeel AsgharBuild SEMLA from OMEncryption
b96cf7167Per Östlund[NF] Fix function vectorization with type casting.
1761f6d0bDietmar WinklerPy3 fix.
fd86471cbDietmar WinklerUse ZMQ only since testing for CORBA did not really work out.
383f8207fDietmar WinklerRef: #4622 Making the icon generator compatible with ZMQ
7ad3a17b9Per Östlund[NF] Make record constructors work again.
dc81059a3Per Östlund[NF] Operator overloading improvements.
9419b55f7Adeel AsgharMake sure to clean SEMLA
1f361bb09Adeel AsgharRestrict the API based on the access annotation of the encrypted class Show error message when user can't access contents
91cd77d84Rüdiger FrankeFix type of firstTick operator
6533bcd6ePer Östlund[NF] Handle function derivative annotations.
82c686da7Per Östlund[NF] Evaluation improvements.
58dca932aPer Östlund[NF] Minor optimization for fold/map of crefs.
9d7f5d5edPer Östlund[NF] Improve subscripting in EvalFunction.
f4308839cPer Östlund[NF] Expression evaluation fixes.
15644b5c8Per Östlund[NF] Handle unassigned record field better.
030f49945Per ÖstlundAdd code generation for 'product'.
df6ecef0ePer Östlund[NF] Use correct call attributes everywhere.
216655525Adrian Poptry to not use the new dtags also for shared objects
e8a302419Adrian Pop- handle -Wl,--no-as-needed via configure
cc5bf4bb3Adrian Pophandle -Wl,--disable-new-dtags via configure
cf3746a7bAdrian Popuse RPATH not RUNPATH via -Wl,--disable-new-dtags
4c949e125Adrian Popuse -Wl,--no-as-needed as otherwise the klu test fails
3afa6f7eeVolker Waurichremove duplicated relation checking for cpp codegen, fixes relations using iterators
84be5a951Per Östlund[NF] Fix variability issues.
2fffc2075Per ÖstlundHandle "()" for __OpenModelica_simulationFlags.
c3468c05aPer Östlund[NF] Various fixes.
afc94ce2ePer ÖstlundUse __OpenModelica_simulationFlags in buildModel
66094846ePer Östlund[NF] Function improvements/cleanup.
6f42885b4Per Östlund[NF] Improvements to handling of 'when'.
9b09552c3Per ÖstlundAdd evaluation of intBit*.
9878b52aePer Östlund[NF] Fill in field names when converting records.
12e54e083Per Östlund[NF] Fix Package.collectVariableConstants.
a44441915Per Östlund[NF] Allow both types to be unknown in matchTypes.
debb491d8Per Östlund[NF] Apply scope fixes to records constructors too.
0fd679dedPer Östlund[NF] Fix scoping issues.
14c51e072Per Östlund[NF] Pad cref subscripts with :.
e2290c947Per ÖstlundFix ComponentReference.expandCref.
a18520584Per ÖstlundImprove inlining to handle Complex constructor.
e8395d74fPer Östlund[NF] Fix call attributes for operator overloading.
215b5fc1cPer Östlund[NF] Fix ConnectEquations.makePositiveMaxCall.
526262a25Per Östlund[NF] Fix default values in record constructors.
c2593f279Dietmar WinklerAdd default top alignment for table rows
0ea5484bbPer Östlund[NF] Fix InstNode.scopePath for derived classes.
f09a7d4a8Per Östlund[NF] Improve expansion of reductions.
0f7ec3176Willi Braun[cRuntime] fix typo
e80e9272dPer Östlund[NF] Implemented expansion of cat and promote.
2ea674852Willi Braun[cRuntime] Fixing LOG_DSS dump
2716d05b8Willi Braun[DAEMode] create aux variable for cse variables
729fcc06bWilli Braun[cRuntime] fix function _omc_maximumVectorNorm
ef288f941Per Östlund[NF] Fix equation counting for algorithms.
e5b9e3eebPer Östlund[NF] QoL fixes.
71fb0a703Per Östlund[NF] Fix prefixing issue.
2d96bc284Per Östlund[NF] Fix flattening of bindings.
4f6e4cd98Per Östlund[NF] Fix dimension deduction with 'each' bindings.
5733f33e5Per Östlund[NF] Modifier/binding fixes.
fed5daceePer Östlund[NF] Fix binding issues.
437e35d61Adrian Popfixes to FMI modelDescription import - do not require the imported file to be named modelDescription.xml - do all the zipping operations in the temporary folder and cleanup after
6b4140324Per Östlund[NF] Various fixes.
0c4854189Per Östlund[NF] Fix ExpressionIterator for arrays.
6a4b5f121Per Östlund[NF] Improve handling of class modifiers.
6812b5269Per Östlund[NF] Ignore unused record field bindings.
c06350fe9Per Östlund[NF] Fix record constructor generation issue.
c6677a428Per ÖstlundMake saveTotalModel respect uses-annotations.
54d7a401cPer Östlund[NF] Fix modifier scope in Inst.instClassDef.
c0cc57f7cMartin SjölundBuild lpsolve55 if it is not found
74abb6444Per Östlund[NF] Improve binding type mismatch error message.
c02ea2ff4Per Östlund[NF] Improve handling of record evaluation.
90c188696Per Östlund[NF] Improve type checking of records.
1a8d98282Per Östlund[NF] Fix generation of record constructors.
2fefbbb86Per Östlund[NF] Improve type checking of records.
16e088377Per Östlund[NF] Implement getInstanceName().
803cabd92Per Östlund[NF] Record fixes.
57e8ce74fMartin SjölundGenerate correct code for integer mod(i1,i2)
17adb9a8cPer Östlund[NF] Performance improvements.
ed95fad9aPer Östlund[NF] Constant evaluation fixes.
6aa87b50eLennart OchelUpdating 3rdParty
c09713212Per Östlund[NF] Generate less stupid flat models.
fb58909f0Per Östlund[NF] Various improvements.
52e894fe7Per Östlund[NF] Use class scopes for function names.
d47670afbPer Östlund[NF] Don't treat external "builtin" as external.
271b70dcePer Östlund[NF] Fix lookup scope for inner names.
74e8456e8Martin SjölundfilterSimulationResults option to remove descriptions
a3a17502fPer ÖstlundAdd dumping of INITIAL_NORETCALL to DAEDump.
3d7f6a461Per Östlund[NF] Fix evaluation of dimensions in functions.
0e2c8f568Per Östlund[NF] Fix variability of size() properly.
63ed25253Per Östlund[NF] Handle derived classes in collectRecordParams.
59a392a87Per Östlund[NF] Minor fixes.
1bed3ff2bPer Östlund[NF] Fix variability of size() in functions.
a3ddfaf94Per Östlund[NF] Function evaluation improvements.
8b4871a39Per Östlund[NF] Improve function vectorization.
c84474230Martin SjölundOnly perform logging of delay for LOG_EVENTS_V
4912fd69bPer Östlund[NF] Inlining fixes.
bc9cecefeBernhard ThieleRemoving description of a previously removed module
d9899db2cPer Östlund[NF] Support for records in NFEvalFunction.
a1911e751Per Östlund[NF] Function evaluation improvements for records.
60e8e0a5aPer Östlund[NF] Evaluation of reductions and SUBSCRIPTED_EXP.
5feb83260Per Östlund[NF] Implemented basic function inlining.
87286cb84Per Östlund[NF] Various improvements.
89eacbb81Per Östlund[NF] Minor fixes.
ace473cd5Per Östlund[NF] Add evalution of known external functions.
bc4b3e1b6Per Östlund[NF] Add sanity check to Call.vectorizeCall.
cd7b28ae3Per Östlund[NF] Initial function evaluation implementation.
f92e6eb39Adeel AsgharFixed the windows FMU export
6a5320c62Per ÖstlundFix Inst.releaseInstHashTable.
26cb1843bMartin SjölundImproved instantiateModel
7fc85eb69Martin SjölundFix undefined behaviour in codegen of array reduction
5a7ce9458Per Östlund[NF] Implemented evaluation of Integer().
81ba86819Per Östlund[NF] Various fixes.
3aae2a0d8Adrian Poppass the makefile file in Windows
338d1df7aPer Östlund[NF] Improve constant evaluation.
27184161bMartin SjölundChange the default to statically linked FMUs
004da7332Per ÖstlundDisable incorrect typing of .+ for Strings.
d8d9e02c3Per Östlund[NF] Improve Expression.promote.
f5e1d77ecMartin SjölundInline mmc_mk_modelica_array for source FMUs
549896e2ePer Östlund[NF] Improve subscripting of expressions.
c51b82386Martin SjölundFix stateselection destructor
0b569ccd9Martin SjölundRemove wrong code for translateModelFMU
d6ea7eb49Rüdiger FrankeSupport assignment to arrays of discrete states
d4122a2d8Willi Braun[Runtime] fix some debug outputs in kinsol solver
c2ffbc562Martin SjölundHandle # in the working path
3f638304bPer Östlund[NF] Fix type of DAE.RANGE.
c2dad7bbfPer ÖstlundAdd comment strip option to saveTotalModel.
340f1d39ePer Östlund[NF] Improve structural parameter marking.
19ce60ad9Per Östlund[NF] Minor fixes for type attributes.
c9c4c3059Per Östlund[NF] Improved handling of types.
29bc2a846Willi Braun[SC] Refactor some functions that reconstruct SimEqSystems
feb746ee8Willi Braun[SC] remove the replacement of the DIV operator by a call
de3a48789Adrian Popadd GC_get_prof_stats as OMC API, ticket:4889
ae5e0b10dPer Östlund[NF] Connection handling improvements.
ff8188090Per Östlund[NF] ones/zeros and dimensions type check fixes.
129d50feaAdrian Popfix copy of antlr jars for Linux and Windows
a8f003fffPer Östlund[NF] Use correct DAE type for array assignments.
f6ae791a6Adrian Popfix windows builds, copy of antlr*jar
921635988Per Östlund[NF] ExternalObject fixes.
a47336541Per Östlund[NF] Hack to fix type of min/max/sum/product.
6ca89244bPer Östlund[NF] Improvements.
d36f68c84Martin SjölundCompile runtime code with no-dollars-in-identifiers
d7c5c23ccMartin SjölundMoved the Java interface to new repo OMJava
0f2f73e33Martin SjölundRun javac with encoding=utf8
e86a4580dMartin SjölundIncrease the size of equation alias cache
20e6c2d3cMartin SjölundDisable equation aliasing for C++ runtime
53af8ff6aMartin SjölundIntroduce aliasing of SimCode equations
4d89e7f1aPer Östlund[NF] Fix FBuiltin.getBasicTypes for NF.
5680ad363Willi Braun[BE] added execStat to BackendDAEUtil.sortGlobalKnownVarsInDAE
74a526d35hkielsome minor optimizations
368ac8c53Martin SjölundRefactor SimCode.createEquation
7a3a58fa5Willi Braun[DAEmode] reduce generated code for algebraic variables
f6ef4b263Martin Sjölund[NF] Simplify enumeration ranges
4fc65f53bMartin Sjölund[NF] Simplify Integer/Real/Boolean ranges
e6bd88360Willi Braun[DAEMode] update at event update again all equations
22458626aMartin Sjölund[NF] Improve TODO-messages
c160a16d7Martin SjölundHandle SVGs containing UTF-8 characters
3f9491d00Martin SjölundHandle empty rotation in icon generation script
38efbe787Martin Sjölund[NF] Handle more binary vector operations
45f753c5bMartin Sjölund[NF] Unlift arrays types when expanding expressions
20ca0048fMartin Sjölund[NF] Fix evaluation of promote
38d78f522Martin SjölundFix simplify for cat-expressions
65d57a519Per Östlund[NF] Set correct restriction for complex types.
bd785a4ceWilli Braun[DAEmode] Introduce evaluation stages on equation level
5e99e6163Martin Sjölund[NF] Translate more binary vector operations to DAE
e84261d43Martin Sjölund[NF] Evaluate scalar product and power operator
5c7b2f018vrugefixes for tmpVars
cc58a7bcbMartin SjölundHandle builtin functions in isConst
08403397fMartin SjölundFix the tar-file in GenerateDoc.mos
baa1a2541vrugeimproved inStream
7dd0320aePer ÖstlundFix order of arguments to String.
3f9d53fdcPer ÖstlundFix ParModelica compilation with Clang 6.0.
4204ff08ePer Östlund[NF] Handle records in Connector.split.
ee22481b7Per Östlund[NF] Branch selection of if-expressions.
180e0084fWilli Braun[BE] improve inverse algorithm handling
73e3f9c61vruge[BE] fix for inStream
862a0978bvrugeimproved inStream
acd54fca9Volker Waurichcheck if evaluate annotation is actually true
87a0162b8Per Östlund[NF] Implement structural parameter handling.
0616b65b5Per Östlund[NF] Expand when conditions.
e74a42004Volker Waurichfix cad-file based visualization
23f5dff8bvrugeadded sum to skipped case for cse
d180efb92vrugeimproved inline-function
bb49baab0Per ÖstlundFix expression simplification rules.
9edd1f5a3Per Östlund[NF] Port inStream changes from #2319.
a4776a612Per Östlund[NF] Fix typing of calls with multiple outputs.
72d39d691Per Östlund[NF] Fix path when creating record expressions.
1792dd70cPer Östlund[NF] Cleaning and various optimizations.
11aa135c2Martin SjölundFix listArrayLiteral
7199ae18fMartin SjölundReduced code used when bootstrapping
0e62fe054Simon ErikssonInitial MidCode implementation
a9b58e13aMartin SjölundUpdate to Java6 since Java5 is obsolete
6a6c0332fMartin SjölundReplace tabs with 2 spaces
25da4670fMartin Sjölund[NF] Relax variability error in functions
3a6cb88d3Martin Sjölund[NF] Unescape raw Absyn.STRING
b4635bbb1Per Östlund[NF] More derived scope fixes.
659bcbc3eLennart OchelFix indentation of 1c86d4e3a86bdc7c7708ae2816682d536ad96f57
1c86d4e3avrugeimproved inStream
de9ded9a9Per Östlund[NF] Improve typing of size expression.
75bf644edPer Östlund[NF] Fix scoping for derived classes.
c282ec9aaPer Östlund[NF] Fix array binding issue.
f10312d57Willi Braun[DAEmode] added several minor things
90d01e948vrugefixed inline
f3d84c6devrugebugfixes
3933f1c6avrugeadded rule for expandFactors
907d54ec2vrugeimproved inInline.getFunctionInputsOutputBody
f9d9de0cbvrugefixed inline
69ee163e8Per Östlund[NF] Subscripting improvements.
13b595d69hkielavoid failure(_=BaseHashTable.get()), use hasKey() instead
43f36d562hkielfix match -> matchcontinue
35f216d9fhkieluse BaseHashTable.hasKey() instead of failing/passing get()
ff5f8bf62hkielimplement non-failing versions of get and has in BaseHashSet
63888ab87Per Östlund[NF] Record binding improvements.
f103a0d61Per Östlund[NF] Create equations for complex bindings.
fb72969f0Per Östlund[NF] Fix record constructor DAE issue.
cd42dc746Willi[SimCode] added equation attributes to SimCode.SimEqSystem
93b4018ecPer Östlund[NF] Fix issue with converting functions to DAE.
f7f4c35ecWilli Braun[DAEmode] get rid of the old implementation
05a951b53Martin SjölundHandle tail recursion in CevalFunction
748b75ab9Per Östlund[NF] Fix typing loop.
e30046d30Per Östlund[NF] Fix size as external argument.
fc8513b93niklworscopy Visual Studio libs and pdb of cpp runtime with CMake instead of make
20606a96dPer Östlund[NF] Improve performance of DAE conversion.
77407e8d8Willi Braun[DAEmode] Avoid IDA for models without states
1769e7028Per Östlund[NF] Fix the variability of size.
921ea2920Per Östlund[NF] Redeclare and extends fixes.
c2feb3fdeWilli Braun[DAEmode] improve event handling and discrete loops
90be43449Per Östlund[NF] Improve handling of imports.
df1cb2759Per Östlund[NF] Fix redeclare final, for real this time.
9d7f3fd2ePer Östlund[NF] Fix for redeclare with final issue.
1efe7ca1cPer Östlund[NF] Redeclare improvements.
fc30ae13dRüdiger FrankeRename Periodic to Inferred clocks in FMI modelDescription
399b73089Rüdiger FrankeUse sorted variable references in Cpp fmi2GetDirectionalDerivative
ced7f13feRüdiger FrankeSet index of clocked partition in algebraic loops of FMI Jacobian
79e9b3da9Mahder Gebremedhin[NF] Add missing case for fold subscript.
3c4a0942bMahder Gebremedhin[NF] Disable conversion of bindings in TYPES_VAR.
695f2e179Martin SjölundSupport function pointers with underscores in them
5aa5373b4Martin SjölundResolve polymorphic bindings in the the function type
cccd62d1aMartin SjölundFix typo
e89be0095Martin SjölundType-check arguments of function pointers
659c5672eMahder Gebremedhin[NF] Minor fixs
cc3ff32b4Rüdiger FrankeConsider discrete states in Cpp fmi2GetDirectionalDerivative
056a0fae0Rüdiger FrankeSet index of clocked partition for FMI Jacobian
de26b558aAdrian Popfix msvc build - select skd 8.1 for msvc 2015 - use jom to compile things in parallel
b3683ed28Willi Braun[BE] differentiate the inner exp of getPart
65beadfa5Mahder Gebremedhin[NF] Initial support for function vectorization.
e9740997eLennart OchelUpdate 3rdParty
d98c067dbPer ÖstlundNotify about constant values in match inputs.
f2d424245Martin SjölundCheck uses-annotation on loadFile of non-package
d0e1fe9a1Willi Braun[BE] remove redundant Expression.simplify calls
079c102b1hkielremove unnecessary define in Makefile
779ff677bWilli Braun[cRuntime] if IDA fails with linear solver setup reinit and try again
747e40188Willi Braun[DAEmode] try to improve the performance of the main traverseFunction
995c5ef0fWilli Braunmove profiling function from BackendDAEUtil > Util
09e106cf9Martin SjölundChange the default simulation opt. level to -Os
46dca4245Willi Braun[BE] Fixing differentiation of synchronous states
407a017ffMahder Gebremedhin[NF][#4784] Fix conversion of complex types to old DAE.
a134d4eadPer Östlund[NF] Fix Expression.mapShallow.
2199757a2hkielremove unnecessary and wrong cast
ead22198dAdrian Poppass the default makefile file for windows
920540b75Martin SjölundDo not recompile Sundials all the time
c4e5102f4Rüdiger FrankeReuse factors of linear equation systems during Jacobian evaluation
e3f501708Rüdiger FrankeUnify capitalization in FMU2Wrapper
514196213Rüdiger FrankeReuse factors of linear equation systems in fmi2GetDirectionalDerivative
71c219d80Willi Braun[DAEmode] several minor improvments and fixes for events
fbf28bfa3Willi Braun[DAEmode] use IDA when the model is compiled in DAEmode
47aed5e03Martin SjölundPrefix partial function application
bf562e79aWilli Braun[DAEmode] don't not put JacobianEqns into json
ad854a60fWilli Braun[DAEMode] create startValueEquations from initDAE
19657600eWilli Braun[cRuntime] clean DASSL from DAEmode code
d66515a63Willi Braun[FMI] added model structure for discrete states
1453d7dd8Adrian Popremove quotes that are not needed in Windows makefile
04159c54aWilli Braun[DAEmode] improving array equations support
c5d63e71aMartin SjölundAdd a warning for StateSelect.always/never
be2bc8962Willi Braun[BE] Fixing initialization of algorithms
f5c562920Willi Braun[DAEmode] added basic algorithms support
b54a3c9daRüdiger FrankeSafeguard possible repeated finalization of Cpp logger
da270f8dbRüdiger FrankeEnable Cpp logger under Windows and finalize it, ticket:4773
67e62cb48Willi Braun[DAEmode] added when equation support
1cc3bf35eWilli Braun[DAEmode] Fix sorting of parameter equations
24e74bf8fWilli Braun[DAEmode] added removed equations
f06fb1485Willi Braunattempt to fix Codegen issue of inverse algorithms
46705f787Martin Sjölund[NF] Evaluate cat and promote operators
85e616238Willi Braun[DAEMode] Several improvments to the DAEmode
6c9726ffaMartin Sjölund[NF] Add support for array concatenation
878318efaMahder Gebremedhin[NF] Fix overload ambiguity with default constrctors for operator records.
c17054f4bRüdiger FrankeConsider row major ordering when assigning arrays to seed vars
ffb66c31ePer Östlund[NF] Update builtin uriToFilename.
adb7a38e5Per ÖstlundFix handling of element redeclare condition.
7a6270389Willi Braun[BE] fixing handling seed vars of symbolic jacobians
f570c07f3Mahder Gebremedhin[NF] Operator overloading support.
983f52f9eMartin Sjölund[NF] Fix type-checking of arrays with >1 dimension
ca288a210Martin Sjölund[NF] Type-check array constructor
ee3f9cf33Martin SjölundUse C++17 has_include for unordered map/set
88c4d6102Rüdiger FrankeReduce common template code from assignDerArray to assignJacArray
2cb619ac5Rüdiger FrankeImplement assignment of arrays to Jacobian vars, ticket:3266,4696
b082e742dMartin Sjölund[NF] Fix type of matrix-vector multiply
4835303b4Martin SjölundReport possible savings from sharing strings
90621756aRüdiger FrankeRemove duplicate and erroneous Modelica external C libs, ticket:4772
bf329a177Martin SjölundImprove report of used size of MM datatypes
419eaa1e3Martin Sjölund[VS] Make autoconf generate revision.h
68e1bff11Martin Sjölund[VS] LIB also needs trailing slashes
19b3154eeMartin SjölundPrint the environment before starting wine
88711c9eeMartin SjölundImprove MSVC compilation on Wine
1dbe81e92Martin SjölundAdd targets for the MSVC FMI C-runtime via wine
70e2f0075Adeel AsgharCheck if we receive the expected file
cacc8bf97Rüdiger FrankeLink MODELICA_EXTERNAL_LIBS after model defined libs, ticket:4772
30322f110wibraunfixing simulation flags, mostly ticket:4390
0334c2587Adeel AsgharRemove the extension
07921476fMartin SjölundUse set instead of unordered_set
b4562fbddAdrian Popfix compilation on Windows, add -std=c++11
ec9f5430fAdeel AsgharCompile semla before omc declare the functions in systemimpl
0c3f696cdAdeel AsgharLoad encrypted package Checkout the SEMLA and OMEncryption repositories inside the OM super project i.e., at the same level where OMCompiler is. Run the makefile with OMENCRYPTION=yes i.e., `make -f Makefile.omdev.mingw OMENCRYPTION=yes` on Windows. Configure on Linux `./configure --with-ENCRYPTION`. loadEncryptedPackage API takes a .mol file and decrypts the package and load it into the AST.
526b822d5Martin SjölundImprove reporting memory usage
9c759d91aLennart OchelMerge postOptModules that detect sparse pattern
516354347Adrian Popfix crashes in omccAPI if threadData is allocated in the heap - hide threadData again - set threadData and then copy it after each call
69b2c906bAdrian Popfix windows GCC now :) - more checks for pthread: attribute init, stack setting
325b3925fAdrian Popfix windows build - include omc_msvc.h for attribute - exclude wsock2 as is already incldued - for some reason lst1 and lst2 are defined
74ad9da44Willi Braun[Backend] fix generateSymbolicJacobian config flag
f6ac4dd0dWilli Braun[NF] set index of relations to -1 otherwise it's a zc
7b8186ac6Willi Braun[BE] fixing function differentiation and tuple calls in algorithms
d874cd0eaWilli Braun[BE] move transpose to a single function calls
90b9c22c7Willi Braun[BE] added size and range operator to diff module
808888cb5Willi Braun[BE] added debug for diff exp and calls
846ccc5bcMartin SjölundCatch out of memory errors
30a4db0a0adrpoupdate 3rdParty manually
d27683d7aAdrian Popupdate 3rdParty submodule
092daf685Willi Braun[Backend] Fix coloring of sparse matrix
b44f0a7d2Adeel AsgharFix the SEMLA Windows build.
06a166d23Adrian Popupdate 3rdParty manually
ba5ff89f3Rüdiger FrankeApply complete pivoting to singular linear systems in FMUs, ticket:4747
fcdc6b272Adeel AsgharAdded missing Windows variables.
06cea20daAdeel Asgharconfigure option for encryption
081af3b22Adeel AsgharBuild SEMLA Checkout the SEMLA repository inside the OM super project i.e., at the same level where OMCompiler is. Run the makefile with `OMENCRYPTION=ON` i.e., `make -f Makefile.omdev.mingw OMENCRYPTION=ON`.
0a2708a82hudsonFix broken 3rdParty hash
ad98b0357Martin SjölundUpdate 3rdParty for new dgesv
e3267ce3bAdrian Popfix ZMQ on Linux - ZMQ on Linux never worked as it was killed by an extra dot :) - dump the correct filename for ZMQ to make OMPython work
12121dfc1Adrian Popfix crashes of omcCAPI on Windows - use threadData from stack not via GC_malloc_uncollectable - increase exe stack on windows - link with pthread
027e5cb1ePer Östlund[NF] Fill in dims when creating DAE.Element.VAR.
3bd1e3c8fWilli Braun[DAEmode] fix update event in ida solver
c68882d4bWilli Braun[SimCode] dump algorithms in correct sorting
c15e7bd20Willi Braun[Backend] prevent stackoverflow for recursive function differentiation
815ffe0fbptaeuberMake KINSOL compatible with adaptive homotopy
6b6a486e7Lennart OchelDummy commit to satisfy Hudson
cf5c9a765Per Östlund[NF] Fix type of unary operators.
5cf076a5dWilli Braun[Backend] Use the original functionTree instead an empty one
92921a4dbWilli Braun[Backend] fix functions with record argument
bf59c08efWilli Braun[Backend] fix differentiation of the SteamPipe model
4c05be3efMartin SjölundFix suffix for ZMQ
5056d0b1fWilli Braun[Backend] fix differentiation of functions with function arguments
3cc00f336wibraun[CRuntime] Tweak linear solvers for Symbolic Jacobians
71c512556Per Östlund[NF] Fix builtin type attribute order.
3be99feecPer Östlund[NF] Handle empty arrays better.
5614078f5Willi Braun[C Runtime] added symbolical jacobian support to ida
de1bcf844Martin Sjölund[NF] Set the correct type in the relation
f5acc120cptaeuberMake non-default nonlinear solvers ...
10a2c8b0aptaeuberDo not try without homotopy twice
693886bd2Martin Sjölund[NF] Fix generation of reduction temp-var names
cce5d8325Rüdiger FrankeAlways apply tearing if MAX_SIZE > 0 and dense matrices are used
70ef32be7Per Östlund[NF] Better handling of constants.
5cc04d9baptaeuberFurther improve solver memory management
891db48efptaeuberAlways initialize lambda with 0
df6431cf8Per Östlund[NF] Use correct variability for pre error.
5cf25d19dptaeuberFix for trying without adaptive homotopy
3418ccff3wibraunadjust documentation string to actual config value
9529c7832Lennart OchelFix var attrributes
cf973f1d0Lennart OchelMake when condition variables protected and add description string to them
c4493da8bPer Östlund[NF] Generate correct DAE for tuple assignments.
4b2df5a85ptaeuberSet variables back to start values before trying homotopy
162cdb597ptaeuberTry without homotopy also for adaptive homotopy
81869605cptaeuberBetter handling of solver memory
9de0296c9Per Östlund[NF] Add FuncArgs when making DAE function types.
e0c71b029Per Östlund[NF] Remove connects with deleted components.
f15d2b3b5Rüdiger FrankeFix error messages for linear solver
76bc17ee0Lena Buffoniadded an extends VerificationModel
218f17f07Lennart OchelMake cse variables protected
31c7f1644Per Östlund[NF] Implement proper handling of subscripts.
17ce08db2Willi Braun[DAEmode] Varios fixes including complex equations
70d5639f5Per Östlund[NF] Deduce dimensions from the start attribute.
0f8a7d1afniklworsadded assert for sqrt function calls
c97c5bb18Per Östlund[NF] Various fixes.
91ae007a3Rüdiger FrankeClean up after building Cpp FMU (the sources are saved inside the FMU)
bdcee4ec7Rüdiger FrankeStore source files in Cpp FMU
339512106Adrian Popticket:4674: add new api to retrieve instantiated parameters
047c5a81aMartin SjölundHandle ceval of asub using enum literals
c51b59582Willi Braun[Backend] improve residual creation for complex equations
ddd8677e3Per Östlund[NF] Don't use polymorphic builtin functions.
d8c8c3073Adrian Popuse the default makefile name in windows
02a553b4bAdeel Asgharmove symbolTable back to local roots
ef2592729Willi Braunadded DAEMode module
bcc40861bMartin SjölundAllow `size()` on non-crefs at runtime
27ab27562Martin SjölundBugfix for URI lookup in class
f8d52b963Martin SjölundClean patches with make clean
38212aa27Martin SjölundFix memory corruption in ZeroMQ init
8b177b924Per Östlund[NF] Improve operator handling.
a7e6f7fc8Adrian Popmove symboltable from threadData vars to global ones this will fix OMEdit crash on startup on Windows
82f103f36Martin SjölundDon't print error-message about missing impact
9c4635fefAdrian Popfix copy of the files and cmake search directories
ac51afc9eadrpofix Windows and Linux builds of omcCAPI
51ed43614ptaeuberFix nls flag order
8e5affa30Martin SjölundFix wrong pointer type
a7e840a9cLennart OchelFix array allocation
a2e245d64Adrian Popfix windows build add omcCAPI build on Linux as well (commented out for now as there are some issues)
5cb3f4128Martin SjölundMake matchcontinue inputs volatile
782245f20Martin SjölundUpdate the Qt API
e2c518957Martin SjölundMove initialization of symboltable
5296b688fMartin SjölundHandle the correct command in CORBA
af0968b8fAdrian Popfix windows build
177b914b4Martin SjölundDo not elaborate using scripting functions in models
fbbbe205bMartin SjölundEvaluate uriToFilename in the script environment
75770db86Martin SjölundChange examples to new uriToFilename
95af27516Martin Sjölund[FMI2] Handle the jump buffers better
1b2f2b9eeMartin Sjölund[FMI2] Copy resources into the FMU
103b43500Martin SjölundCheck for undeclared functions
620b30df5Martin SjölundMove win32/mingw32 realpath to simulation runtime
bd035a4c0Martin SjölundGenerate fewer templates during bootstrapping
8a7d7b192Martin SjölundRedesign SymbolTable handling
105aad907Per Östlund[NF] Fix return type of smooth.
eb49dd7c6Per Östlund[NF] Propagate comments to the DAE.
c28b63027hkielremoved wrong translations
c5ca0a5c3Per Östlund[NF] Various fixes.
dbda08c08Per ÖstlundMake saveTotalModel more accurate when using NF.
59944ec07Per Östlund[NF] Fix scoping of imported components.
59e722eebMartin SjölundEvaluate parameters with non-literal bindings
587cac20aniklworsfix for division by zero in cpp runtime
e43fc8abfniklworsfix for asserts during event iteration
b1a437a8fniklworsfix for save pre varibales in cpp runtime
96f7d96e4Per Östlund[NF] Typing improvements.
2716d589cptaeuberFix lambda position in non-torn homotopy components
991cbcb11Martin SjölundSupport importFMU for me_cs FMUs
bb2c1bae6Adrian Popfix a typo
ce6c93b4fPer Östlund[NF] Ceval/Simplify fixes.
4df493838Per Östlund[NF] Handle derived class bindings better.
c0777112aMartin SjölundKeep loaded libraries after buildModel failure
e46b83760Martin SjölundPropagate unit checking to the DAE
92c638318Bernhard ThieleFixes Ticket:4618
cb8de49f9Per Östlund[NF] Improved handling of array modifiers.
f7a213646hkiel[CodegenC] do not check for zero increment if it is constant +1 or -1
cbe247e37Martin SjölundHandle indexed assignment of string arrays
fe5c35df4Martin SjölundFix generation of FMI 1.0 import
bcf422b74Martin SjölundSupport for fixed=false for strings
5c05ef6deMartin SjölundMove comments after doing the diff algorithm
efcef39d8Martin SjölundFix typo causing duplicate elements to appear
715fb858fMartin SjölundDo not remove added lines that don't match label
708e99622Martin SjölundUpdate debugging code
f16fbfd1dMartin SjölundFix copy-paste error
67acb2d44Martin SjölundThe attributes of a pre-var is the same as the var
62d1de3b1Martin SjölundAdd Jacobian variables to the simvar lookup
705b6a1fbMartin SjölundHandle alias variables in Susan
25d84d410Martin SjölundFix pretty-printing of negative real literals
bd8571dafMartin SjölundLook for external libraries in /usr
ee6b27bbaMartin SjölundLet the CSE look into if-conditions
d1104cedbMartin SjölundHandle record indexing better
5aac106d5Martin SjölundloadFile(".../package.mo") ignores MODELICAPATH
775a336b6Martin SjölundDo not evaluate the residuals if xloc is inf or NaN
eca7e56d1Martin SjölundWarnings for aliases during codegen
47aad9539Martin SjölundAdd differentiation of DAE.RSUB
059c8c0faMartin SjölundFix for DAE.RSUB with Expression.factorsWork
1c428bf8dMartin SjölundHandle inline where inputs are record fun-calls
62a0b9dffMartin SjölundAdd support for inline of some if-statements
70f05e5d3Lennart OchelDefine vrStates iff states are available
aee683cbbptaeuberImprove adaptive homotopy
7366c3261hkieldo not recreate objects
1a07660b3Per Östlund[NF] Ceval fixes.
481bef0a7ptaeuberLook for homotopy in the whole system
6bc981e1aPer Östlund[NF] Ceval for builtin functions and other fixes.
b91fa8ff5hkielavoid recursions
926d8af51hkielavoid excessive longjmp (matchcontinue) avoid recursion (stack overflow) when processing lists
55a1b638fWilli Braunfixing scaling of the ida solver
64d4bf14cMartin Sjölund[NF] Use Error.assertion() instead of assert()
62af4e695niklworsfix for Ubuntu Clang build error in Peer solver
e44d430b1niklworsfix for linux gcc 4.4 build error
d71fe296dPer Östlund[NF] Fix external object calls.
f37e0292cVolker Waurichextend cse3 to find state alias
b528b72f1niklworsFatemeh Davoudi implementation of the symbolic model reduction algorithm For detailed description see http://www.ep.liu.se/ecp/043/090/ecp09430136.pdf The algorithm is implemented in the cpp runtime in Core/ReduceDAE At the moment for the ranking method the residuen ranking is implement in class Core/ReduceDAE/Ranking.cpp The reduction mehtods cancel terms, linearize terms and substitute terms are implemented in class Core/ReduceDAE/Reduction.cpp The label algorithms for cancel terms, linearize terms and substitute terms are implemented in OMCompiler/Compiler/SimCode/ReduceDAE.mo The method can be used with: setCommandLineOptions("+simCodeTarget=Cpp --labeledReduction --disableExtraLabeling -d=writeToBuffer"); loadFile("your model file"); simulate(yourmodel);
fb52840dcMartin SjölundFix for elabBuiltinSize of zero-size arrays
cdf224b8dMartin SjölundSome work-arounds for Ceval of zero-size arrays
d1a57b2fdPer Östlund[NF] Fix handling of duplicate outer elements.
dad39fb0cPer Östlund[NF] Fix undefined behaviour due to #4502.
eeb91480aPer Östlund[NF] Function expressions also count as discrete.
aa363fe25Per Östlund[NF] Minor fixes.
117eefb21Per Östlund[NF] Variability fixes and other improvements.
5cea0b5a2ptaeuberFix solving of array equations
cf618db76Per ÖstlundFix setCommandLineOptions with -d=newInst.
71f4da23fPer ÖstlundFix setCommandLineOptions.
5148feff7Per Östlund[NF] Fix NFTypeCheck.matchDimensions segfault.
4d02b9063Per Östlund[NF] Function handling improvements.
0e14e987cAdrian Pop[NF] handle discrete variability better - if the type of component is discrete return discrete if is lower variability than the explicit component variability - handle discrete builtin calls (String, Integer, pre, edge, change)
e8f130fbdhkielremove redundant simplification rule recognized by commutative call
83ffab2f7Per Östlund[NF] Fix some variability issues.
12d1ede4dPer ÖstlundNFInst improvements.
b9cba5b3bVolker WaurichremoveEdgesToDiscreteEquations for MSSS
a0c7ddf5ePer ÖstlundAdded --ignoreReplaceable flag.
c73638c68niklworsfixed divsion by zero if zero crossing was detected and before event handling started
b636b011bVolker Waurichfix bipartiteGraphML generation for algorithms
3e982aa5cPer Östlund[NF] Fix check of size() as external argument.
908566603Per ÖstlundNFInst improvements.
d653ea8f8Mahder GebremedhinNFInst builtin function handling.
da629b0c9Volker Waurichmoved simplification rule to simplifyBinaryCommutativeWork
d76e9c2f7hkieluse heap sort for ascending integer sort
0e8a73811hkielfix reheap when sorting the array
68ab9042bhkieluse Array.heapSort to reduce memory usage for large models
aa30cda97hkielimplemented heap sort for arrays
6dc1882ccPer Östlund[NF] Replace package constants by default.
d9b21268bniklworsfix for linker error in ModelicaExtrenalC for cpp runtime
814b4aeeaptaeuberCalculate numerical jacobian for adaptive homotopy correctly
ea246de58Per ÖstlundNFInst fixes.
df577f24dhkielfix copy/paste bug introduced in 1fd2008cf5
8e9ee9145Per Östlund[NF] Better handling of stateSelect.
0790acfb4Per ÖstlundNFInst improvements.
9ec3abdfeptaeuberAdd flag to start running the homotopy path ...
573024618Rüdiger FrankeSkip displayUnit in FMI2 export because FMI2XML fails for e.g. bar
2b46fc835Rüdiger FrankeGenerate units in FMI 2 modelDescription.xml, ticket:4649
05ebd2ec5Rüdiger FrankeOnly consider Real variables for fmi2GetDirectionalDerivative
d4ea7ac82ptaeuberSolve lambda0-system separately ...
34369f3caPer Östlund[NF] Handle recursive functions.
3548b470fPer ÖstlundNFInst fix.
add36ffd1hkieldo simplification of "a and not a" to false only for boolean type same for "a or not a" to true
ce3522c3ehkielworkaround for PNLib in PNlib the LBINARY expression "{} and not {}" must be handled and should not be simplified to "false" by ExpressionSimplify.simplifyLBinary
6f71dc57fRüdiger FrankeDummy commit to (hopefully) get around Hudson bugs
f2d48acadRüdiger FrankeTreat removed Jacobian var defines in daeExpCrefRhsArrayBox
6ee245861hkielfix "a or not a" and "a and not a" simplifications optimize some simplify rules reuse existing structures
37ec0ba15hkiel[CodeGenC] skip cases independent of passing guard
0cd326810hkieluse list comprehension instead of recursion
16e800b39Per ÖstlundNFInst improvements.
2fe6fb840Per Östlund[NF] Improved handling of function parameter dims.
613640092Volker Waurichmodified description of comsubexp
02355eb89hkieluse loop instead of recursive matchcontinue in BaseHashSet.get2
a6ecff617Volker Waurichfix external object alias in initial equations
197ec7ad2hkielfix cosh^2(x)-sinh^2(x)=1 in ExpressionSimplify.simplifyBinary also remove asin(sin(x))=x and atan(tan(x))=x from simplifyCall
1fd2008cfVolker Waurichsimpify r1+r2+cr ->r3+cr
a4417ed69Per ÖstlundNFInst improvements.
517bf930bniklworsfix for typo in cpp tempalte
3e4eb9485ptaeuberBetter flag handling for different homotopy approaches
0a33707b1Martin SjölundHandle vectorization of matrix slightly better
b8738186aMartin SjölundPartially type-check for min,max,smooth
5e28f3c11Per ÖstlundNFInst improvements.
7c50cbcadPer ÖstlundNFInst improvements.
d55e7e175ptaeuberAllow adaptive step size also for local homotopy
e82a71369Per ÖstlundPropagate component visibility down in NFFlatten.
1a074b074Martin SjölundAvoid using + for options
d8b46d09dPer ÖstlundNFInst fixes.
8fe91b3bfPer ÖstlundImprove detection of invalid each in NFInst.
38bf65a63Martin Sjölund[NF] Type-check pre operator
c536259acMartin Sjölund[NF] Call fail() when failing
8f80b4e48Martin Sjölund[NF] Support default attributes in functions
63769821ePer ÖstlundDisable unit checking in nfinst.
ff1e618b3Per ÖstlundFix for ticket:4625.
a72f16503hkielsome small optimizations avoid matchcontinue
978d2764dhkielavoid recursion and matchcontinue in getSparsePattern reduce memory overhead in ExpressionSimplify.simplifyAdd
679140ab7Martin SjölundRemove DAE.SUM in favor of DAE.REDUCTION
ea3a1f6a3Per ÖstlundBuiltin attribute type checking for NFInst
1dfcc602dhkielreplace matchcontinue by match
eaa2e128dMartin Sjölund[NF] Fix for builtin calls
332341ba8Martin SjölundDo not optimize CC for initialAnalyticJacobian
89998d3fePer ÖstlundStripping of direction in nfinst.
7360bc3f7ptaeuberFix writing of homotopy csv-file for matrix elements
9cb312a83Per ÖstlundFix prefixing of modifiers on inherited elements.
9b63a0edaPer ÖstlundHandle package constants in nfinst.
2a409cde6Willi Braunadded first version of ida scaling
725d9defbniklworsacitvate 'Allow dividing by all globalKnownVars in initDAE' for cpp runtime
425073cefWilli Braun[FMI] fix sorting of the directional derivatives
28e9498e5ptaeuberAlways select start value with lowest...
cf744823ePer ÖstlundBasic handling of component conditions in nfinst.
42bc0b10aMahder GebremedhinNFFrontEnd small fix for array expressions ($array)
1e0528341Per ÖstlundImplement simple branch selection in nfinst.
67d63de5ePer ÖstlundClean up NFUnitCheck.foldEquation2 a bit.
8ab93d5b3Per ÖstlundRedeclare improvement in nfinst.
1be2a07fdAdeel AsgharAdded flags for input and output path. Input path flag `-inputPath` is used to read the model_init.xml and model_info.json files. `-f` flag for model_init.xml file gets the preference over `-inputPath`. Output path flag `-outputPath` is used to write the output files like model_res.mat, model_prof.intdata etc. `-r` flag for model_res.mat file gets preference over `-outputPath` flag. Fixes ticket:4583 where we need to set a different working directory for simulation executable.
1a778dd4aMahder GebremedhinNFFrontEnd record fix
1b186d3c3Volker Waurichthrow warning when SimCodeUtil.makeSES_SIMPLE_ASSIGN fails
a1aa13855Volker Waurichfix for SimCodeUtil.makeSES_SIMPLE_ASSIGN
49cdb0326Adrian Popfix opcua lib exports on windows
19933497bAdrian Popfix windows build
27d4fab07ptaeuberFix init message for FMI
bb335c693ptaeuberMove default success messages from stdout to LOG_SUCCESS
691f4e903Per ÖstlundImprove element visibility in nfinst.
b30e47aacMartin SjölundHandle reporting real stack overflow in Susan
037d5bb3fMartin SjölundFix scalability issue in NFUnitCheck
9e0eb5fd7Per ÖstlundFix StateSelect variability in nfinst.
0f0996174Per ÖstlundFix ticket:4611.
23c2c8b8fhudsonUpdating 3rdParty
fb2513cd3Martin SjölundUpdate open62541 to 0.2 release
9a8bb1d62Martin SjölundFix stack overflow in NFUnitCheck
0a53c4f7bhkieldo not use matchcontinue where match+guard can be used
75a30894fPer ÖstlundBasic connection handling for NFInst.
2c5818d2bLennart OchelAdd flag to fix the mat file headers every N steps
0a2dcae72Mahder GebremedhinEnable unit checking by default in the New FrontEnd.
7e6dbfd82Per ÖstlundFix for #4606.
0a64f0055Martin SjölundAdd rpath for the C runtime libraries
b3c9646b6Lennart OchelAdd unit information of alias variables to mat files
a07c7d7f8Martin SjölundPassing fixed=true where expected in the examples
1f28d87c1Lennart OchelSave units of measure for parameters to mat files
66d69d5a7Rüdiger FrankeUnify generated code for variable access under FMI 1.0 and 2.0
0ed5264e9Martin SjölundFix scalability for systems without variables
32ea34faaRüdiger FrankeFix Cpp code generation for derivative functions of media, ticket:4600
d01f3d6c0David PolakAdded pressure unit mmHg
bf377faf4Lennart OchelAvoid deprecated usage of flags
ebaacfbd4Mahder GebremedhinNFrontEnd Unit checking.
d4dd96b0cLennart OchelCleanup MatVer4
119136c6cMahder GebremedhinNew FrontEnd improvments
80e3d34faMartin SjölundAdded optional Susan debugging help
fe021bdbeLennart OchelRemove old mat file writer
36778dd5eLennart OchelAdd unit information to mat files
a981b3727Lennart OchelNew implementation for writing mat files
bf1eaeb34Rüdiger FrankeImplement fmi2GetDirectionalDerivative in Cpp runtime
6c0d7cf2dRüdiger FrankeSet FMI flag providesDirectionalDerivative depending on generated code
69f2571cdRüdiger FrankeChange int to size_t in FMU accessors
a33d4f3c1Per ÖstlundFix NFInst.instClass for encapsulating classes.
1749c2e3fMartin SjölundDisable CC optimizations on linear systems
8abed04d0Per ÖstlundSplit NFFlatten into multiple phases.
43d3d5d39hkielfix Matching.removeEdgesForNoDerivativeFunctionInputs
11df6e673hkielsome minor optimizations - remove a matchcontinue - do not operate twice on list - make function tail recursive - avoid tuples
dfbce6c2fMartin SjölundUse Set instead of List.unique
9ff276e85Martin SjölundMake findLoops able to look for at most one loop
c21c29ddeMartin SjölundUse sets instead of lists in comSubExp
7b04aa189Martin SjölundUse sets in comSubExp
2ac44ced4ptaeuberFix check of homotopy solution
9e2d1a7c5Martin SjölundFix scalability of collectInitialBindings
68350e96dMartin Sjölund[OSX] ModelicaExternalC install names
2f828a21cMartin Sjölund[MAT4] Add special case when nrows==0
a5b8a71baMartin Sjölund[OSX] Fix install name of OPC library
c2e5abee7Martin Sjölund[OSX] Fix builds when using a single thread
18b70e240Martin SjölundSilence some warnings
a3eea2746Willi Braun[cRuntime] move jacobian eval LOG_STATS output
7f2aee4a8Willi Braun[SimCode] fixing symbolic jacobians order for info
3532b108bMartin SjölundSupport bootstrapping when using array literals
09c37cd93Martin SjölundAdd MetaModelica.Dangerous.listArrayLiteral
ec1d29272Martin SjölundUpdate linear system debugging
04560c977ptaeuberWarn of conflicting alias variables
baaffecf6niklworsfix in cpp template for jacobian variables used by algebraic loop
ed4ccd80bMartin SjölundFix for linear sparse solvers in source code FMUs
15730cb50Martin SjölundReturn correct variability for reductions
b610cb9d9Martin SjölundDo not store time in the data_1 matrix
2f8fe8ec5Martin SjölundMake error-message shorter
625bb6584Per ÖstlundNFInst fixes.
ac679f79aLennart OchelRemove unused variables
2d0ba0f98Lennart OchelNew function to debug hash tables
f55d7d6b5Martin SjölundFix for using default sparse linear solver
348695870Martin SjölundImproved debugging of bad variables in codegen
98136a986Bernhard ThielecheckModel support for state machines
6c085bb83Willi Braun[FMI] join functionTrees for directional derivative
75ec7ef8dWilli Braundisable fmi directional derivatives by default
73e4cc5eeptaeuberDo not get algorithm crefs that will be discarded
702e3381bMartin SjölundAdd a scripting function to access stat
aeb9725a3Martin SjölundAdd support for single precision in mat4 output
92ac5a60dLennart OchelIncrease hash table sizes for the unit checking
bba43625eWilli Braunfixing FMI directional derivatives and model structure
a766c29eaMartin SjölundUnify reading enumeration flags
0e39b73bcMartin Sjölund[FMI] Fix static source code FMUs
b4aa137b3Martin Sjölund[FMI] Set default dense and sparse linear solvers
c1445a867Martin Sjölund[FMI] Escape the model's description attribute
fba815048Martin Sjölund[FMI] Set nominal to 1.0 as a default
2a43b90b7hkieloptimize memory further for ticket:1451
84dc1d9ecBernhard ThieleState machines ticket:4563
fdcc01d6ahkielabsAdjacencyMatrix only changes lists if values < 0 are contained improves ticket:1451
b5d86d327Per ÖstlundFix InstExtends for MetaModelica constructs.
d8c018eaaMartin SjölundMake FMU tmpTick indexes more similar to C codegen
aa907b11bWilli Braunfix array differentiation for symbolic jacobains
a9268a9e8Martin SjölundMove parameter record bindings to initial equations
37e75adf8Martin SjölundImprove check for failed function inlining
0406ea2e6Martin SjölundFix crash is default linear solver
aba368508Martin SjölundCalling terminate at initialization means success
c22c35be4ptaeuberFix problems with ExpressionSolve
ebb0ea835Martin SjölundMove checkForDiscreteChanges to simulation runtime
3a0af47b1Lennart OchelNew package AdjacencyMatrix
2264580fdWilli Braunremove jacobian var defines in cpp codegen
24d57037cWilli Braunfix differentiation of arrays crefs(ticket:4545)
6d2338df2Willi Braunimprove variable generation for jacobians
024a75d0aMartin SjölundMake it possible to ignore OMC_DISABLE_OPT
94e29a9aaMartin Sjölund[C-code] Binding equations disable optimization
b0b8677b7Martin SjölundBootstrapping depends on zmq
173618cd5Martin Sjölund[FMI] Implement a faster setReal/getReal
a60374984Martin SjölundDo not generate defines for value references
88845bb53Martin SjölundFixes from static analysis of ranges in reductions
ccd5c42a2ptaeubermaxSizeLinearTearing=200 as default
624b9a6eaptaeuberWarn about unbalanced system after WFC
3c3ca8772Per ÖstlundComponent attribute propagation for NFInst.
7648bd565Per ÖstlundClean up obsolete files from new frontend.
351cb3767Martin SjölundDo not add FMI runtime while bootstrapping
aad32e02aMartin SjölundSplit updateParameters into simple and complex
6138df4ebMartin SjölundImprove scalability for binding equations
38a901345Martin SjölundAdd a JSON parser
ad52d37cbMartin SjölundAdd a JSON lexer
958906ae8Martin SjölundUpdates for libomcruntime
3d141a9e1Adeel AsgharReturn "" as file name when duplicating top level class
e92a0b57cPer ÖstlundFix min/max for enumerations.
c2054ffd3Per ÖstlundAdded stringEmpty and arrayEmpty to MetaModelica.
0e625e9d0hkielfix some warnings from static code analysis
fe070413ePer ÖstlundNFInst improvements.
8943f737cPer ÖstlundAdded debug flag ignoreCycles for #4543.
ec69d301bMartin SjölundApplied the refactoring script
ec7206f2eMartin SjölundOnly add _length variable for array reduction
9ce0a4a13Martin SjölundAvoid static analyzer dead assignment warning
215f1b1e5ptaeuberBetter handling of redundant initial equations
d3f9ab11ehkielsome small list optimizations
f85f44f91Willi Braunfix differentiation of function outputs
ebf70e339Per Östlundinner/outer handling for nfinst.
669df4128Martin SjölundFix for fileNamePrefix not a valid C identifier
defddaa0eMartin Sjölund[MetaModelica] Use goto instead of done variable
19186f7c2Martin Sjölund[FMI] Give default start-values for parameters
c5205762fMartin SjölundtranslateModelFMU returns empty string on failure
da38b3e64Willi Braunrewrite algebraic system in SimCode
29e812163Martin SjölundMake getAnnotationNamedModifiers not return bad data
702501a86Willi Braunenable discrete vars in symbolic jacobian
fff178847Per ÖstlundForbid invalid tuple use in nfinst.
f42e28055Per ÖstlundNFInst improvements.
15ba583b5Martin SjölundFix generated C++ FMU filenames
bacaf0378Lennart OchelDon't replace dots in fileNamePrefix for FMUs
b7bed213cPer ÖstlundNFInst improvements.
5dfdea2faAdeel AsgharReturn same number of output from failing case.
453e1c770Per ÖstlundFix for OperatorOverloading.makeEnumOperator.
9670ad9e5Adeel AsgharReturn the access annotation with getClassInformation.
c64663db5hkielmake SimCodeUtil.createAllDiffedSimVars tail recursive fix ticket:4534
e6d206248Martin SjölundMake C++ FMUs respect fileNamePrefix
b383de7ebMartin SjölundCache the FMI configure results
cd1bf8756Martin Sjölund[FMI] Do not optimize read_input_fmu
5122abb87Martin Sjölund[FMI] Keep more logs with generated binary
f99f61254Martin SjölundEnabled RT_CLOCK_BUILDMODEL for buildModelFMU
d39727c21hkielupdate omc translations
351c73d38hkielfix some c-compiler warnings
15276ce9fhkielavoid stack overflow (ticket:4534)
0371e9711Rüdiger FrankeThird attempt to fix shiftSample, ticket:4530
5b8217142Rüdiger FrankeEliminate subSampleFactor from FMI model description
23493d868Lennart Ochel[FMI2] Fix set/get methods for types integer, boolean, and string
c7cddda44Lennart OchelFix some error messages
08c6143c3Lennart Ochel[FMI2] Calculate real values if needed
453670fdbPer ÖstlundFix #4524 for Cpp and XML codegen too.
93a4aedd9hkielmake unmodified objects constant
415de246dPer ÖstlundFix for #4524:
5bf9661f6Rüdiger FrankeRevert "Alternative treatment of shiftSample also considering event clocks"
6554061cfRüdiger FrankeAlternative treatment of shiftSample also considering event clocks
df66a2132Rüdiger FrankeRevert "Separate subSample and superSample from shiftSample"
9a067c8d0Rüdiger FrankeFix clock ordering in FMI model description
edd5dda09Rüdiger FrankeSeparate subSample and superSample from shiftSample
5c6d6e3acRüdiger FrankeRemove superSampleFactor from FMI model description
79caae607Per ÖstlundFix for #4521.
b9e79ece9Jan ŠilarPDEModelica
aab2f9283Volker Waurichfix for simplifyIfEquation
bbbda07eabernhardbachmannFix division by zero problem
594ab6019hudsonUpdating 3rdParty
555e13e72Adrian Popfix for ticket:4459 and ticket:4491 - support both BuildType and BUILDTYPE on command line - update 3rdParty/ModelicaExternalC tables C source code to the latest version from MSL: https://github.com/modelica/Modelica/commit/8209e73d7739ebcacd779f0d189d0a2885dfe105
a633fbbc2Rüdiger FrankeApply resolution to shiftCounter in FMI model description
e844e3abcBernhard ThieleFix for ticket:4527
50d02d907Per ÖstlundNFInst improvements.
d3dffead4bernhardbachmannImproved damping criteria of the newton solver
e59152f17Per ÖstlundNFInst improvements.
0c97493cePer ÖstlundNFInst improvements.
c40d463d2Adrian Popfix a crash in sphinxoutput
7bd484726Volker Waurichfix visualization xml
a275e4ca0Willi Braunmore fixes for ticket:4395
ff269274cbernhardbachmannFix some scaling issues
cc3c53183Per ÖstlundFix InstExtends.fixCref for fully qualified crefs.
5307f91e1Per ÖstlundFix parsing of imports.
df8573fecWilli Braunadded noScaling flag and fix minor kinsol things
275ccba0eptaeuberIntroduce new global homotopy approach
62dc75df3Per ÖstlundNFInst improvements.
e2dfbf69bVolker Waurichfix for partlintorn
568224974ptaeuberWarn about iteration variables with no nominal attribute
3d27c595dhkielmake SymbolicJacobian.createAllDiffedVars tail recursive fixes ticket:4392
8cf74960aPer ÖstlundNFInst improvements.
df2b0b432Willi Braunfurther fixes to ticket:4395
60fecddddAdrian Popfix ticket:4509, use correct defines on Windows
45d12dbeeLennart OchelRemoved the eol comma separator
8befe8aa0Lennart OchelSkip exporting variables of type string for csv export
503e9a1f5Lennart OchelFix csv export for variables of type string
dc5dc2be7Willi Braunfixes issues from ticket:4395
b67fdd1b5ptaeuberTry without homotopy also for local homotopy method
9db625489ptaeuberFix bug in homotopy solver
56f95c75cWilli Braunadded additional ida statistics
a4b828031Willi Braunfix daeMode=all by skipping algebraic evaluation
29740e24bLennart OchelFix sorting of external object destructors
52b0a0920Lennart OchelAlign variables to avoid unexpected behaviour
3ade1973bptaeuberFix success messages
4522d1311adrpov1.13.0-dev
c74f60564Per ÖstlundImplemented initial support for size in nfinst.
1a120c836hkielevaluateForStatement: do not loop over ranges with stop < start
2e4c6ff81Per ÖstlundImplemented class extends in nfinst.
cc3ad1507hkielavoid creation of temporary lists
1c87ab090Per ÖstlundRemove name from class extends SCode.ClassDef.
5b5e235d4Per ÖstlundImplemented handling of duplicates in nfinst.
db0864769Martin SjölundCheck for -g=Optimica in optimization solver
7e5cc77a1ptaeuberChange homotopyOnFirstTry flag description
19f24e8a0Volker Waurichfix for HpComEqSystems.partlintorn
24c3047c7Martin SjölundPerform incomplete matching for over/underdet syst
1355755feVolker Waurichfix for evalfunc #4456
dc49b6e24ptaeuberInitialization and simulation success messages on stdout
e988ea489Volker Waurichadd 1-norm, 2-norm and max error for deltaSimualtionResults API
a845edafcVolker Waurichuse fmax() instead max()
66f09c413Volker Waurichadd scriptingAPI to compute error sum
5b71b6690ptaeuberFix wrong error message ...
2cd28b6c3ptaeuberFix bug in function evaluation
2eed74cb2Volker Waurichproper cref comparison in evalFunc
3645e8bd6Volker Waurichcorrect type in DAEUtil.varCref
4d034e923Adeel AsgharFixed the addInitialState API.
564c40590Martin SjölundLift restriction on connector extending from type
2432a47d7ptaeuberDo not remove functions used in lambda0 system
0b97943f3ptaeuberAdd function tree to jacobian dae
2e17f151fMartin SjölundHandle range special case for reductions
5ee6abbdfptaeuberEnable global homotopy as fallback option by default
d0deadfb0Lennart OchelFix homotopy for source code FMUs
42663b6a1Adeel AsgharAdded new add, update and delete APIs for initial state.
21ce9323aptaeuberFix bug in homotopy method
441b181a8Volker Waurichavoid List.intRange() in for loop
388bbcf25hkieloptimize Graph.partialDistance2colorInt
e8e2216ccMartin SjölundRemove equations like "{} = f(...)"
545461b1cMartin SjölundAccept DAE.MATRIX in codegen of array equation
abde81d4eMartin SjölundHandle a stack overflow in HpcOm
74ffe7010Martin SjölundExpand equations marked inlineAfterIndexReduction
789abbee3Martin SjölundHandle running the same optimization module twice
2933df617Martin SjölundAvoid expanding equations
169fa51dfVolker Waurichrewrite ResolveLoops.getSimpleEquations
220e25fe5Lennart OchelGlobal homotopy approach
4221d29abMartin SjölundAdd an extra step before daeExp in Susan
97fddd802hkielmove option creation out of outer loop
d30d68c37hkieldo not recreate Option
12c7c7fffMartin SjölundCollapse arrays of crefs
9ebc68cb4Adrian Popproper handling of corba file dump path
d51f346fbhkielspeed up and memory enhance ResolveLoops.getShortPathsBetweenEqCrossNodes
b00d68d72Martin SjölundMake predictable tmp-indexes for residual functions
88c73ca88hkielreduce memory footprint of comSubExp
853b43e5aptaeuberSpeed up tearing
b69a9eb74hkielsome small optimizations for large models
f50884b47Martin SjölundExpand arrays in record when generating simcode
49a376758Niklas Worschechusing Kinsol as standard nonlinear solver
ffcf1b14aNiklas Worschechfixed errors in commits cca3ace0a656a71348290808b13138057a06c732 and 6e5cf6bf01ad7cde7a8a461969924e361ef4b24d
e19e1ee92Niklas Worschechadded simple NoxSettings
315bbe1a7Niklas Worschechrefactored Nox.cpp when calling CheckWhetherSolutionIsNearby
be4b2d9efNiklas Worschechcompleted replacing generateoutput-flag by logging
28e177d7aNiklas Worschechrevert activating Logger
0f0914305qichenghuaAdded Logger, added Doxygen and fixed bug in varying initial guess by 10% if initial guess has components that are zero.
34f3bd745qichenghuaSoftened tolerance for homotopy solver
46e1cff89qichenghuaUsing homotopy for nominal values as start values as well.
6eee27b44qichenghuafixed error in variation of initial guess in commit fb31cf3e8a7b1523d3e86170359c4a8ef279ae47
7c973e6c4qichenghuaadded frames for Doxygen
78e7aa71fqichenghuaTry extrapolatin start values of nonlinear solver
951ee926fqichenghuaPreparations for extrapolating start values for nonlinear solver.
b4973f6fbqichenghuaTry setting initial guess to nominal values if other methods fail.
3ba7fa653qichenghuaNox: Try more methods if and only if eventretry is false.
179903604qichenghuaadded varying initial guess in NoxSolver again.
ec62f807bqichenghuafixed error in the lacking precision of double precision handling that was introduced during refactoring in commit f2f0b7eb56785e14bf78f2acb0ab888596a998d3, so this criterion is applied successfully again.
6d48942b8qichenghuaadded retry of nonlinear solver nox in case of events
456875edfqichenghuaFurther Refactoring of nonlinear solver nox
8ea3763a4qichenghuarefactored nox.solve()
eccaa1fabqichenghuadeactivated variation of initial guess.
955014879qichenghuafixed bad cast error when homotopy solver within Nox is used.
d633a30e0qichenghuaadded variation of initial guesses in nonlinear solver.
e13383428qichenghuaadded more accurate (4th order) method of computing the finite difference approximation to the jacobian of the algloop.
7187f7036qichenghuaset algloop to 1e12 instead of 1e6 when evaluating the right hand side fails
5914059d7qichenghuaadded new abort criterion for nonlinear solver based on sign changes in case of errors due to lacking precision of double precision variables implemented in commit b433b2d6ec92460fae06a9dd1b5243ee438cf0a7. Now this criterion is applied after each iteration step and not after a complete iteration cycle.
267a1c706qichenghuaused normal Newton again
ea35f342cqichenghuafixed KLU path
3290599a7qichenghuaadapted initial step length in homotopy method in nonlinear solver nox in cppruntime
d5d856ec4qichenghuarefactored Nox
557c01749qichenghuarefactored Nox.cpp
6079a8638qichenghuaTrying less methods in nonlinear solver
2a98b08a0qichenghuareduced output in nonlinear solver nox
d0b99ccbdqichenghuaenabled nonlinear solver for arbitrary tolerances by solving issues with lacking precision of double precision in case of too tight tolerances
9a1334396qichenghuamuted output and disabled tolerance alleviation in nonlinear solver nox completely.
6beb4f401qichenghuaExperimental rounding error fixing for fluid models in MSL
faa82e65dqichenghuafixed error introduced in 31424fc19ae5b7e29f5a17e102eb4d6e0a29d311
330aa9e1eqichenghuause kinsol instead of nox as default nonlinear solver
83d7b4ac0qichenghuadeleted unnecessary comments and dead code in Nox.
b3f0ed0faqichenghuaadded additional homotopy methods
d2c74c006ptaeuberAllow dividing by all globalKnownVars in initDAE
88fee4f5aAdeel AsgharNew API to get initial states.
591485e63Bernhard ThieleFix FMU import related simulation deviations
acc20cc1aAdeel AsgharCheck if the list is empty.
ca1c6de2chkielincrease size of base array to avoid expensive re-sizing
7029f3afbniklworsfix for coping sim values in BufferReaderWriter
90441d8cdptaeuberImprove model_info.json
64eefbbd2ptaeuberSpeed up tearing matching a bit
498ae9ff3Adeel AsgharIf an embedded server is specified.
02b0bab99Adeel AsgharOutput the information when opc-ua server is initialized.
0fc8e098chkieloptimize ResolveLoops.getShortPathsBetweenEqCrossNodes() further
107d88df3ptaeuberAdd execStat for matching/sorting of init dae
da6c53fe6hkielavoid multiple sorts
743991c8fhkielfix reverse ranges n:-1:1
89f3548dehkielfix List.sortIntN()
9a5c35eeehkielsort lists before intersection to speed up
feee0cf28hkielimplement intersection on sorted Integer lists
767bebdf1hkielRemove loop check from differentiation ther is still a maxIteration check. reduces running time tremendously
bfbc14590ptaeuberCount tmp vars to unknowns in SimCode EqSystem
62106406fptaeuberAdd more info to SimCode EqSystem
0b0a647achkieluse AvlSetInt instead of too big List.uniqueIntN() array for large models
f30ae8ae4ptaeuberImprove model_info.json
929645f94Rüdiger FrankeDelay initialization of FMU2 logger until it is requested
c617a1f58ptaeuberFix detection of fixed globalKnownVars
ade8bc485hkieldo not create temporary arrays
cbeb9b317hkieldo not copy key if it already exists
6674cbe6aRüdiger FrankeExport FMI functions for multi-rate sampled data systems
0d0414ca3Rüdiger FrankeFix initialization of nominal values in DgesvSolver, ticket:4459
61870e3e3Rüdiger FrankeEnhance logging of DgesvSolver
4866f5598Rüdiger FrankeFix whitespaces in DgesvSolver
1504ef744Adeel AsgharCopy the open62541.h file build include directory
214f0d63aptaeuberDo not create parameter equations for constant variables ...
299703b47Martin SjölundCopy libzmq dylib files
708c3b488hkielreduce memory footprint of Tearing
0ecd8be5bhkielsome small optimizations
dc91086f1ptaeuberDo not create unnecessary large nonlinear systems ... around single complex functions
092ac3896Martin SjölundFix for RHEL/GCC not compiling in C99 mode
dfebc074cJan ŠilarA new function to read whole array from .mat file.
1606f8a10hkieldo not use tuple as function argument when not necessary
76d87502fPer ÖstlundMore nfinst fixes for ScalableTestSuite.
6e926926cPer ÖstlundIgnore imports in NFClassTree.expandExtends2.
c8caa6d3dVolker Waurichadapt yEd dump, add borderwidth to graphml nodes
3dcf0f9f6Per ÖstlundAdded execStat for instantiateModel DAE dumping.
c8394ea31Per ÖstlundHandling of self-referencing extends in nfinst.
b2744b01bPer ÖstlundSimple typing of subscripts for nfinst.
c28fb0ce1Lennart OchelSimplify handling of invalid states
c7d04e1fbPer ÖstlundNFInst improvements.
4e4ac932dAdeel AsgharAdded a new flag for interactive mode. `--interactive=none|corba|tcp|zmq` The flags `-d=interactive` and `-d=interactiveCorba` are still valid with a depreciation message. The flag -d=interactiveZMQ is removed.
f1f89ccf8adeas31Fix the zmq initialization for linux
709531b2ehkielTicket4407 case preserving filesystems fixes problem with re-generating files on case-preserving filesystems
73555c0acVolker Waurichnew yEd dump of complete dae system as bipartite graph
8ba253e1fAdeel AsgharWrite zmq server connect string to file. Let zmq choose the port automatically and write it to a file.
f2b55ccb7Martin SjölundFix compilation of zmq on OSX
86cfac41dMartin SjölundDo not copy so-files to bin/
ea473e72aVolker Waurichcomments for synchronous implementation
6a81761cfVolker Waurichsolver clocks do connect base partitions
4a475accaAdeel AsgharImproved the ZeroMQ server send method
7827a66b1Volker Waurichnew subclock partitioning implementation with new partition adjacency matrix
95cea6e24ptaeuberAlso dump resEq in tearing dump
2f2fed896hkielsome small improvements do not update Avl.key when adding key of equal value optimize function intersection
966360501hkieluse simpler if instead of matchcontinue
ba78dc703hkieldo not explode and re-create tuple
9276843c9hkielfix static analysis: avoid dead assignment
1b08e2b10hkieldo not generate intermediate list
b11bb9742Lennart OchelUse different call sequence logics for ME and CS
71eeb5f42Lennart OchelFix indentation
050739da0Adeel AsgharFixed encoding.
b70932d98Adeel AsgharImproved the ZeroMQ server receive method
7a88dc81ehudsonUpdating 3rdParty
fcd2bf763Adeel AsgharInclude the ZeroMQ headers.
579677befAdeel AsgharAdded ZeroMQ communication interface
e2bcaf36dAdeel AsgharFixed socket communication.
76dc2503aptaeuberMatch more nonlinear equations first while tearing
b95b469c7Lennart OchelAllow fmi2SetInteger in continuous-time mode
d84ea136fptaeuberMake Evaluate=false have an effect
e116454e9ptaeuberDo not prefer vars with start value for tearing
9ca61408cptaeuberRevert "Use nominal value as start value for iteration vars"
e7045ec96ptaeuberUse nominal value as start value for iteration vars
ddfec0ed7wibraunremove unused functions as a last step of backend
f821aa3e7Danny MoeschAvoid 'and' operator in C++ code since MSVC12 does not support it
16a762618Martin SjölundHandle dassl better in opc-ua
7b440a1b1Lennart OchelFix derivation rule of pre calls
0042521a3Lennart OchelFix derivation of previous calls
9492f9ed5Lennart OchelFix homotopy debug dump
a7b382876Lennart OchelRead csv file delim from header
ef8d92946Jan HagemannwrapFunctionCalls can be used in initOpt: --initOptModules+=wrapFunctionCalls
f6f6a142ehkielspell fix
9dc481ed6hkielfix C-macros (missing braces)
480ac49a2Lennart OchelRemoved unused variables
8ed0af6eehkielfix prototype to avoid a warning from C compiler
d0c4de069Lennart OchelFix zero crossings for div calls
a342dab3dhkielcorrectly compare mod() and div() zerocrossing pairs
2f4a4090aLena Buffoniinversed path order
d147790caLena BuffoniFixed autogen names, finding correct client paths, not parsing through Modelica Standard Library
96267f141Volker Waurichfix Ws2_32.dll linking under windows
6d5709bdahkielturn non tail-recursive functions into for-loops
ba45c06e5Lennart OchelHide protected variables
19285705cVolker Waurichfix subclocktree
1ec58addaptaeuberDefine separator for homotopy path csv file
9f917019dptaeuberFix initialization of external objects
ce11282f7Martin SjölundOPC-UA: Trigger an event when changing inputs
7abe6456aChristoffer Fors JohanssonAdded a new flag, -embeddedServerPort
deeabde08hkielFix initial size of HashSet reduces execution time of inlineWhenForInitialization from O(n^3) to O(n^2) (see ScalableTestSuite)
398f56301Volker Waurichdont order partitions if there are none
3a944419dVolker Waurichsort clocked sub-partitions and deactivate negative shift
54881ac36Martin SjölundUse Mutable in the backend
d12a03586Martin SjölundUse Mutable for the DoubleEndedList
122453513Martin SjölundUse Mutable in the frontend
f618817f9Martin SjölundAdd a Pointer type similar to the Mutable type
f92a4a00aMartin SjölundAdd support for a Mutable data structure
8780cf754Lennart OchelRevert "Enable homotopy by default"
8dc4feab2Lennart OchelFix ExpandableArray.compress
8e2a2a071Martin SjölundParse mos-file statements using iteration
f9882c38fVolker Waurichsupport boolean sub clocks for cpp
89d9bc659Lennart OchelEnable homotopy by default
a9e3d63a4Lennart OchelEstimate required allocations for selectInitializationVariablesDAE
4f1dc42d2Lennart OchelEstimate number of equations
cf6f51c51Lennart OchelEstimate number of equations
e3fdafb19Adeel Asgharticket:4381 Updated the implementation of fetching connect equations. Build a list of connections and then use the list for getting a specific connection. Also moved `getConnectionCount` API to ModelicaBuiltin.mo
a8b251ebfAdrian Popexperimental support for merging alg sections, ticket:4365
935a1c922Adrian Popfix inner/outer prefixing in algorithms ticket:4365
dd5fb2b86Adrian Popfix frontend part of ticket:4157
ac1663df6Martin SjölundProvide more information for invalid roots
eb3f80fe3Martin SjölundHandle recursion better when inlining calls
894837ccdLennart OchelReimplementation of the c runtime homotopy support
17e88411dptaeuberAdd experimental initOptModule inlineHomotopy
f0af41201Willi Braunadded scaling for f(u) in kinsol, based on jacobian
11f1da2a3Lennart OchelAdjust memory management of equation arrays
fa0a689e5Lennart OchelFix side-effect in getSymbolicJacobian
2892979abLennart OchelFix BackendEquation.merge
8e24cbffeLennart OchelClean up BackendEquation.mo
9abe3dcf0Lennart OchelFix ExpandableArray
3eb1be03fLennart OchelUse ExpandableArray for BackendDAE.EquationArray
8429f9475ptaeuberFix wrapFunctionCalls for cpp runtime
fd294f600Lennart OchelRemove unused variable arrays
a12c3491aBernhard ThieleRemoved obsolete state machine back-end code
2cb1d8f6dptaeuberImprove module wrapFunctionCalls
c224a4b97Per ÖstlundAttempt to speed up collectInitialBindings.
32a70d265Willi Braunfix kinsol, reinit klu matrix onyl if klu is used
639c7bdc4Lennart OchelRemove when initial() from dynamic system
3d4461dbdLennart OchelFix ticket:4387
e05d9d557Lennart OchelMove timings from LOG_LS to LOG_LS_V
65dd5bc7eLennart OchelcompareSimulationResults is deprecated
adf56d386Lennart OchelAdjust comparison of initial data point
9166cbfafhkieldo not use tuple for one needed arg
f31ed5b0bLennart OchelRemove $_old(.)
2aadf4f0bLennart OchelAdd .vscode/ to .gitignore
1698ce9baWilli Braunfix symbolic jacobian in kinsol
d2f4ddbdaLennart OchelFix variable names in debug output
9b4cb3b64Lennart OchelImplement missing case for SUB_SCALAR_ARRAY
5124b80a0Lennart OchelFix add_alloc_scalar_real_array
3f31abbf0Volker Waurichcompute time events during runtime instead of precalculation (cpp)
064433e8fLennart OchelAdd number of linear/non-linear/mixed systems to debug output
3b5a5eaddptaeuberShow warning if parameter is overwritten with small value or zero
3ad0767e1Willi Braunremove old unneeded code for symbolic jacobian
78b18d88bLennart OchelRemove $_initialGuess(.)
495a97376Lennart OchelFix homotopy-based initialization
74f467891Lennart OchelAdjust generation of start-value equations
280c5ba72Lennart OchelUse start values as initial guess for nonlinear systems
4548444fbLennart OchelDon't generate unnecessary start value equations
e36b947c7ptaeuberUse nominal value to define threshold for param division
5351a6eb8Worschech Niklas (DC/ENE22)updated 3rdparty
b78943f0cLennart OchelRemove unused templates
4ba7588dcLennart OchelRemove obsolete start value call cases
bca32a313Lennart OchelAdapt handling of start-values
fbffa36faLennart OchelImprove some debug dumps of package Differentiate
c0606aaf4Volker Waurichfix cpp codegen
85e1ec8dfLennart OchelAdapt index reduction to new representation of start values
03e06df29Lennart OchelFix initialization of start attributes
803f52cd0Lennart OchelCleaning up
d379a34dcptaeuberAdd config flag tearingStrictness
13fc9557eAdrian PopLink ModelicaStandardTables with ModelicaIO and ModelicaMatIO - we need this to be able to update ModelicaExternalC
7e8436ef9Lennart Ochel[NF] Check if binding type does match component type
84fadec4dAdrian Popfix library order for ModelicaStandardTables on Windows - this order should work for MSL 3.2.1, 3.2.2 and trunk
0130f958eadrporevert code from c77eae8d2283a15e140c3289e9ebc5f0ae84a179 - we need to constant evaluate the parameters of Clock!
0785449dbqichenghuaFixed error with commit 75c04c436d443a147f3f6a11451a74221a4b1e95
75c04c436qichenghuamuted nonlinear solver nox
33db78452ptaeuberRevert "Improve module wrapFunctionCalls"
4984d9d02Martin SjölundAvoid empty autoconf statements
a919ef478ptaeuberImprove module wrapFunctionCalls
52cd6addfqichenghuaextended error message in Cvode in case of too many events in small time interval.
4712b7a5dqichenghuaSet algloop to high values instead when otherwise errors were thrown.
2659444bcAdeel AsgharReturn boolean from deleteOrUpdateComponentFromElementitems when its successful.
63a779abbAdeel Asgharticket:4342 Fixed updating protected components
f159b7618Lennart OchelSimplify polymorphic types of function mapAllValue
d628e4c65Willi Braunfix codegeneration for records
59a2173e2Niklas Worschechadded windows makefile flags to build cpp runtime with Klu and trilinos make runtimeCPPinstall USE_KLU="true" USE_TRILINOS="true" for trilions the 3rdparty packages has to be build before with make -f Makefile.omdev.mingw nox on windows
6deba45e6Per ÖstlundNFInst improvements.
d74861a09Lennart OchelFix attributes of state derivatives
84fa51418Lennart OchelImprove indentation of the generated *_init.xml file
621f1b683Lennart OchelFix comments of state derivatives
1f69fcc34Per ÖstlundFix overload of String in new inst.
0f52fc6c6Niklas Worschechfix pdp file copy
bff59069cNiklas Worschechfix for release build with VS 2015 of cpp runtime
b93e15a5cLennart OchelConstant evaluate fixed attributes
15883dd1cLennart OchelClean up NFUnitCheck
a14eb1024Danny MoeschUpdate submodule '3rdParty' again
3f98c16fbDanny MoeschUpdate submodule '3rdParty' concerning the added NOX solver
2ecdd1dd7Danny MoeschRegard operating system specific directories
1cb1bf873Danny MoeschAdd Nox building in makefiles
62fa9b30cMahder GebremedhinNFFrontEnd function and typing improvements
0ed34dc3eMahder GebremedhinNFFrontEnd function updates.
bfc2e252dLennart OchelFix module unitChecking (ticket:4306)
8d690cf15Adeel AsgharDo not use a default value.
ec908e4e5Adrian PopFix windows msvc build
cfa55d770Per ÖstlundImproved support for for loop equations in NFInst.
4d0d14fa7Per ÖstlundInitial support for for loops in NFInst
4124ebe83Adrian PopFix windows builds - update 3rdParty to one that knows how to find lapack for sundials
15992776fLennart OchelAdd missing cases to unit checking
343d155ebPer ÖstlundFix InstUtil.findUnboundVariableUse for _
d5b7bc2faMartin SjölundSimplify of asub where the subscript is a range
2091a0314Martin SjölundUse the OM-compiled Sundials for C and C++ runtime
c7fe8a234Per ÖstlundSome small NFInst improvements.
e10293f71Lennart OchelAdd handling of initial terminate to c runtime
8064d3a89Lennart OchelFix classification of initial equations
b8fe1840cAdrian PopFix the front-end part of ticket:4304 - add new DAE.INITIAL_ASSERT and handle it in the front-end - add new DAE.INITIAL_TERMINATE and handle it in the front-end - added preliminary back-end handling
9e033a100Jan ŠilarPDEModelica bugfix and minor changes
02e5c4a51Jan ŠilarPDEModelica bug fix
3e1d79679Jan ŠilarPDEModelica ghost cell rename
e7ae049c8Jan ŠilarPDEModelica -- left boundary x value
f8b26335fJan Šilarsecond order pder
aea3ec9c8Jan ŠilarPDEModelica -- ghost cells
346153703Jan ŠilarPDEModelica - ghost cells hopefully finished
52646f206Jan ŠilarPDEModelica - GhostCells
a0d00d881Jan ŠilarPDEModelica Ghost Cells not finished -- serching for fields in pder to be extended by ghost cells
c4c02c1d4Jan ŠilarPDEModelica -- minor refactoring
69b294ba0Volker Waurichfix for when in algorithms
62633fb16Adrian PopNF: implement partial support for unqualified imports
d981c30a4Lennart OchelNew feature: detect steady state
4c362d1ecPer ÖstlundImproved function handling in NFInst.
2a857f12dLennart OchelAdd more functionality for constant evaluation
9f923be66Lennart OchelNew module to simplify expressions
8777f9a1dAdeel Asgharticket:3680 & 4296 Look for connect equation within for loop equation. Moved getNthConnection to ModelicaBuiltin.mo.
8f1fd569fWilli Braunupdate module sortEqnsandVars
4f66de934ptaeuberOnly reassign start value if it has been overwritten
ae9b4cff0Adeel AsgharSet a default value.
2d2b491c9Adeel Asgharticket:4295 checkBox instead of checkbox. Also consider __Dymola_checkBox.
43c6d443dMartin SjölundAdd a few stackoverflow checks to the backend
f79568b89Adeel AsgharFixed arrays for OMEdit logs.
94c1c9be9Adeel AsgharFixed typename & strings for OMEdit logs
d130cee20qichenghuaFixed issue with finding KLU library
9d93410e0Niklas Worschechfix in Kinsol of cpp runtime for sundials 2.7
c4ab68428Adrian Popfixes for ticket:4276 - allow write to parameter(fixed=false) in initial algorithm
f4e679c96wibraunadded jacobian timings to linear and non-linear solver
0db7959d4wibraunadd jacobian timings to LOG_STATS
afb17e255Niklas Worschechfix for visual studio 2015
c4d4d2e7cNiklas Worschechbuild suitesparse for visual studio with cpp runtime build
e76f5774cptaeuberDo not create a new cse variable for record=call
b1a493aa8Adrian Popfix ticket:4292, handle DAE.REDUCTION also
64ce9d911Per ÖstlundPartial implementation of functions for NFInst.
7cf48f892Adeel Asgharticket:4287 Look for choices checkbox annotation.
b0ebfd44fLennart OchelFix output type of simulate
7a0af3810hkielfix output type of sortStrings remove unused variable
57b34d578hkielfix uninitialized variables
717262704Adrian Popfix for ticket:4258 - create more unique scopes when there are redeclares for derived classes
a5c5270bcRüdiger FrankeFix use of new LinearSolver for FMI export
d30bd1ea5Rüdiger FrankeFix scaling of Jacobian of new LinearSolver
5570fe32cRüdiger FrankeEnhance logging of new LinearSolver (cf. logging of former Newton)
490c35c72Rüdiger FrankeFix whitespaces for new Cpp LinearSolver
0f722ad17qichenghuafixed issue that occured if evaluating the algloop at the initial guess throws a division by zero error and added homotopy solver
4ad960fa9Per ÖstlundError message pedantry.
1096f0547Adeel AsgharFixed compilation of runtime.
6e54ca1b9Lennart OchelReplace alias variables within external objects
4b89b3ce6Lennart OchelSupport external object constructors depend on variables
5aeafb19bMartin SjölundRefactor the File module
a06724a4bMartin SjölundOnly find files in the current directory
f0ca662d1Martin SjölundFrontend: Do not evaluate external object inputs
40f70ce8aPer ÖstlundFix extends modifier issue in NFInst.
057661f71Adrian PopFixes for ticket:3894 - improve the File package, support for file names in error messages, etc. - get rid of failures on Windows 32bit (where isNone(fromID) returned true for existing files) - add partial support for dladdr in Windows
314ff91aeBernhard ThieleAdded FIXME comment for a state reset issue
7961f859eadrpofix ModelicaBuiltin.mo interface until fixes to ticket:3539 are ready
a6f54ce7aBernhard ThieleState machine bug fix for state reset
3532cb45aPer ÖstlundNFInst improvements.
fc47277a0Lennart OchelAdd support for firstTick to c runtime
e4071b5c2Martin SjölundMake getClassnamesInElts not stack overflow
4af9b08e4Mahder GebremedhinNFFrontEnd improvments
63678038eLennart OchelDon't apply removeSimpleEquations to clocked partitions
fdacb6b38Martin SjölundSort the FindFiles.log in a nicer way
f22b02c18Martin SjölundFor icons, if failing, partially evaluate the icon
54840e06aMartin SjölundHandle comparison of empty expressions
03dd6d2c8Martin SjölundFix uninitialized variable in Lookup
fec4a09a3Martin SjölundWhen in graphics expression mode, allow failures
edd491393Martin SjölundHandle limit on shell expansion
db6f0524aAdrian PopNF better class extends: replace base class
33e26aac8Lennart OchelMake translateModelXML return the name of the xml file
55eb281c5Lennart OchelMake translateModelFMU return the name of the FMU
3ab01a449Martin SjölundFix equation indexes for clocked equations
f06f9c6c5Martin SjölundFix array indexing check
2a86f292eAdrian Popcheck array length before trying indexing
ed7a5af4cMartin SjölundRemove some error-messages when viewing icons
e53eddf42Martin SjölundCreate array of correct size
c77eae8d2Martin SjölundImplement more operators in ModelicaBuiltin.mo
06e3ebd85Martin SjölundAdd an internal flag for graphics mode
fd915469aMartin SjölundDo not ignore errors in icons
3f636cdbfPer ÖstlundChange getCommandLineOptions failure mode.
57cdce571Martin SjölundIgnore illegal inputs to records (for icons)
17cecc36cPer ÖstlundChange getCommandLineOptions to return an array.
674967bcaMartin SjölundChanges to ModelicaBuiltin
e4c31ead3ptaeuberSet fixed attribute in globalKnownVars for ...
d9d4df52aAdrian Popfixes for ticket:4248 - properly revert flag Flags.CHECK_MODEL to the previous state
ccdf5e924Per ÖstlundAdded new API call getCommandLineOptions.
ba8f12ebeMartin SjölundHandle double matrix when strings are expected
d2bbe7a2cWilli Braunfix return value solver step(ticket:4257)
582c1ef9cMartin SjölundReturn the strdup result
f688b5d83Adrian Popadd a pointer to the class in the NFExpression.CALL
b1b90d8e9Martin SjölundCreate arrays of strings correctly in C89
a36d08f4fqichenghuaadded scaling and adapted tolerance in case of failure for nonlinear solver Nox
cafab4319Willi Braunfix initial guess of irksco on first step
79d3e3254Adrian Popfix MSVC compilation of new added solver - remove jacobian variable (not used) - MSVC 2010 does not support definition of variables with size from local or stack variables, use malloc/free instead
8ce7212e9Adrian Popfix MSVC build of simulation runtime C - jacobian is not used, comment it out for now - the MSVC 2010 does not support declarations of variables using sizes from local stack variables
0ebf1ec80kbalzereitadded new solver irksco
0dbd1e971kbalzereitadded improved symbolical inline solver
69c53b3e1Willi Braunadd -impRKLS flag with current iterative solving strategy
c55d31017Rüdiger FrankeFurther append underscores to Modelica names
815cea322Lennart OchelRemove some dummy strings
257ddee16Lennart OchelFix solver descriptions (#1446)
c0c96357aWilli Braunticket:4246 reorder solver flags and reword solver description
b609f85e0Per ÖstlundNFInst prefixing improvements.
9c988b682Willi Braunintegrate implicit runge-kutta and lobatto
0014f95a1Willi Braunticket:4237 fix partition index in jacobians
4ffbdb438Per ÖstlundFix NFInst lookup of inherited names.
ff80ea0f5Lennart OchelDon't apply removeSimpleEquations to clocked partitions
5f0ad9841Lennart OchelSplit synchronous features into pre and post phase
2099c8be1Rüdiger FrankeMore append underscores to Modelica names
fd5058e6bWilli Braunfixing ticket:4237: Support of clockPartitions in jacobians
576ecd35cRüdiger FrankeAppend underscore to names in Cpp functions
b1aac58fdPer ÖstlundNFInst improvements.
b4a66a288Rüdiger FrankeMore add underscore to variable names in Cpp runtime
4d45d7ac9Rüdiger FrankeAdd clockIndex to Jacobians for clocked partitions, ticket:4237
175a65b6fAdrian Popnew front-end connection handling preparation - adapt the old front-end with some changes needed for the new front-end - add DAE.CONNECT_EQUATION - use DAE.ConnectorType inside DAE.Attributes.ATTR instead of SCode.ConnectorType
fdff91a3cAdeel AsgharCopy omniORB dlls from the correct target.
610eb709cAdrian Popfix interactive Corba crash - guard SystemImpl__directoryExists for NULL string - guard CorbaImpl__initialize agains NULL corbaObjectReferenceFilePath
aef389893Rüdiger FrankeAppend underscore to variable names in Cpp runtime
0b5f0dda2Rüdiger FrankeFix log category of linear solver
be0ab4e03Bernhard ThieleNF partial support for synchronous operators
81844647fWilli Braunimprove and fix several simulation option descriptions
645a6be7fAdrian Poppartial implementation of class extends - the class extends changes are not applied to the baseclass, only the local scope - check if this is the correct way to implement this, or we actually need to replace in the base class
0ec2a2137Martin SjölundRan the refactoring script
ef1458eeeMartin SjölundOnly print we remove variables actually removed
86c322678Lennart OchelCatch inf and nan in divisions
3b40c1c84Martin SjölundRemove unused imports
06fb1c2edhkieloptimize tailrecursive into leaner for loop
3c1004b8dMartin SjölundCache typeviews in Susan
343b86855Rüdiger FrankeAdd solver method ImplicitTrapezoid
a8cd99080Rüdiger FrankeInline integration initializes clocked continuous states
d32ecbb30Rüdiger FrankeDelay derivatives of clocked states for ExplicitEuler
dce7606b1Per ÖstlundInitial enumeration support in NFInst.
49dc8a6c0Martin SjölundRemove all remaining DAE.TypeSource
1ca1591bbMartin SjölundRemove TypeSource for T_COMPLEX
94b2cb3e1Lennart OchelAdd all built-in intrinsic operators with function syntax
d82857104Martin SjölundRemove TypeSource from UT/Code/function pointer
366200058Martin SjölundRemove TypeSource from functions
376bb8fb9Adrian Popupdates to NFFrontEnd - implement toString for expressions - implement toString for types - add CAST expression - handle Type.FUNCTION better
507cdb313Per ÖstlundNFInst improvements.
fac34e17fPer ÖstlundNFInst improvements.
d767990dfLennart OchelAdd support for constants to expContains
d58aa6996Martin SjölundRemove TypeSource from more types
b444d8e8cMartin SjölundStrip DAE.TypeSource from some DAE.Type
67c5d4532Lennart OchelFix ticket:4228
399ee4122Martin SjölundAdd an is_utf8 implementation
b7ec83fecMartin SjölundInclude
1d06167c0Rüdiger FrankeAdd integer() to CommonSubExpression.isSkipCase, ticket:4224
22f0d9b88Rüdiger FrankeSupport linear systems in clocked partitions
15bcdab7eLennart OchelDon't return success for unimplemented functions
1f4d4e0f1Lennart OchelImprove logging of homotopy-based initialization
20fbe26b5Per ÖstlundNFInst changes
c80769b25Lennart OchelFix c runtime command line options (#1383)
4fe59c4abMartin SjölundFollow FMI 2.0 schema (no empty output section)
6ed4cfdbdLennart OchelDon't use default matching arguments within postOptimizeDAE
b894ea2c8Lennart OchelNew index reduction method "none"
0c828c123Lennart OchelFix new runtime flags (#1383)
b0da1de61Willi Braunfix row jac norm sum
8788348c0Willireset BackendDAE after replace simplifid expressions for lambda=0
0ed97dad8Williadded -nlssMaxDensity and -nlssMinSize simulation flags
e66beaed5Lennart OchelAdd index reduction to optdaedump output
3b5135a9eLennart OchelSimplify match/matchcontinue pattern
1754fe34evwaurichresolveNodes_cutNodes applies DFS
733fc0ad3Martin SjölundMake linear systems not depend on nonlinear
21f7de22evwaurichreworked resolveLoops
04cd79277qichenghuafixed issue with c runtime due to usage of compressed sparse column/row matrix format
0625e7242qichenghuaadded Sparse Solver Klu
6f8bb1496Martin SjölundFix code generation where `&` is used on an rvalue
d5f9643dcMartin SjölundReturn error value when FMU compilation fails
a317639ebptaeuberMinor changes
c1159bc1cvwaurichsmall fix for resolveLoops + error messages
a6ef39968Lennart OchelAvoid nested try/matchcontinue clauses
d82121dbcLennart OchelClean up index reduction
ab539288evwaurichactivate resolveLoops backend module
6700d3eb8Willi Braunadd jac row sum as debug output
0177dac47Martin SjölundGuard GC initialization
669113dccPer ÖstlundFix for #3535.
eae1de199Willi Braunuse sparsePattern.nnz instead of the extended
860bb9184Per ÖstlundPartial fix for bug3535.
2749b1714qichenghuafix ticket:4213, added scaling of linear systems back again
40f96b87aqichenghuacleaned up LinearSolver and DgesvSolver. Also fixed minor errors.
a558ce28fqichenghuaRenamed getSystemMatrix, getSystemSparseMatrix and getRHS in ILinearAlgloop.h to getAMatrix, getSparseAMatrix and getb.
a70aefe48Martin SjölundRemove unused function
23f4cf88cWilli Braunfix colprts for sparse matrixes: ida and kinsol
ba209b702Martin SjölundDo not link pthreads statically in ARM FMUs
5e1589ad4Martin SjölundMake ParModelica String variables an error
bbc489cd2Willi Braunfix identity tmp sparse matrix for ida solver
4d49ee576ptaeuberRemove unused and superfluous BackendDAE.VAR.bindValue
ed61035c7Rüdiger FrankeRemove obsolete separate initialization of external objects
5e4878f6cRüdiger FrankeInitialize external objects with parameters in Cpp runtime
8899379f7Rüdiger FrankeRevert "[workaround] Disable sorting of external objects for cpp runtime"
9cbbca630Rüdiger FrankeRemove special treatment of string return args, ticket:3446
dba9dd8f5Martin SjölundAdd SourceInfo to typed modifiers
6730d6f6cPer ÖstlundFix extends handling in NFInst.
1bf65f3a3Lennart Ochel[workaround] Disable sorting of external objects for cpp runtime
cde3ffc4dLennart OchelClean up code generation
df2b1c7b2Lennart OchelInitialize external objects together with parameters
d2c938f97Adrian Popfix ticket:4209, suppress wrong error messages
1240784e2Adrian Popuse memset instead of non-standard bzero
e3ba94badjhagwrapFunctionCalls is activated and add configFlag --wfcAdvanced to skip more than default cases
e7c76f7ddRüdiger FrankeIntroduce subactive evaluation mode for clocked equations
d316ab24aRüdiger FrankeAdd synchronous solver method ExplicitEuler, besides ImplicitEuler
c2a8668faRüdiger FrankeGenerate code for algebraic loops in clocked partitions
82570014fvwaurichdont evaluate functions with multipleDim arrays and Inline=false
bff7053b1ptaeuberAdd warning for parameters with no binding
97e737edaptaeuberImprove Dynamic Tearing
56dc44828Martin SjölundAdd some sanity checks for threads
468d99e89Adrian Popfix SystemImpl__directoryExists for Windows, cannot end in (forward) slash
558fab013Martin Sjölund[Susan] Remove unused imports from generated code
6b8c59555Martin SjölundAdd note about pkg-config
e1918e819Adrian Popthis is really ridiculous
5042c645fAdrian Popfix ticket:4125, use mmc_(u|s)int_t instead of long!
3f1dccbacqichenghuaAdded first version of nonlinear solver Nox. cannot be compilated at the moment, because Trilinos is not part of 3rdParty yet.
ca147d71cAdrian Pophandle if expressions
8ac8faf6cAdrian Popmore changes to new frontend - change the scope of the extends modifiers to be able to lookup them - minor typing fixes
5fed05388Adrian Popmore improvements to new frontend - provide souce information to all DAE elements - flatten all statements and equations (except connect) - use a for loop in DAEUtil.getVarBinding
778e564d0Adrian Popuse execstat for new front-end phases
73f37044fAdrian Popnew frontend improvements - copy sections from inherited classes to the instantiated class in NFClass.instExpandedClass - fix some typing issues - handle "pre" - do some pour man's evaluation on the dae - handle FOR equations with simple ranges - handle WHEN equations - transform SCode.ENUMERATION in a class with parts - whith this about 37 models from ScalableTestSuite are flattening
6757b5356Adrian Popfix ticket:4190 allow arrays components in when conditions
26d9240a0Adrian Popcreate the directory during docs target
8b0bf11b7Adrian Poponly display the error when failtrace is activated
21bd84fa5Adrian Popsmall fixes for Windows building - we don't have mico anymore, use use omniOrb - set global roots to zero by default - if we find OpenCL.dll in Windows generate libOpenCL.a so that ParModelica can be used
8b58dcc5aAdrian Popadd a JSON serializer for any MetaModelica data
823536e49Adrian Popsome updates to OMDev readme
9fabde55bMartin SjölundCopy entire array when a dimension is unknown
334f2f622Martin SjölundChange the default of -d=gen to false
298a39660Martin SjölundRefactor SimCode.mo for bootstrapping tarball
7311f9cccMartin SjölundDo not allow paths like A..B.C (typo in grammar)
d234d6071Adrian Popfixes for ticket:4183, copy the needed dlls inside FMU
c3e6c1b0eWilli BraunRevert "generate sparsityPattern for EQUATIONSYSTEM without rewrite equations"
3a09a12c2Martin SjölundAdd newline after annotation in AST dump - list()
d1572e3d0Niklas Worschechdeactivated sort of jacobian in SimCodeUtil
cab8786aaNiklas WorschechSeparated nonlinear and linear system and the corresponding solver in two classes -adapted Newton,Kinsol,Umfpack,Hybrj,Broyden for new linear and nonlinear System/AlgLoopDefaultImplementation.cpp -separted AlgLoopDefaultImplementation in two classes -adapted cpp and fmu cpp tempalted to new linear and nonlinear System/AlgLoopDefaultImplementation.cpp
d60d7e659Martin SjölundRemoves tabs, use algorithm section
fdb6f8fcbhkielfix some warnings
a617ea79cPer ÖstlundNFInst clean up.
c97894711Willi Braunsuppress debug output of max tearing size
d1d09a165Willi Braunadded LOG_SOLVER_V
ab3e53f81Willi Braunfix daeMode for records fucntions
b6789acf3Willi Braunadded debug flag to disable coloring
0f5d188abWilli Braungenerate sparsityPattern for EQUATIONSYSTEM without rewrite equations
648ebcb20Adeel Asgharticket:4175 Remove the unexpected integer formatter.
cc7fdac27Martin SjölundUse CXXFLAGS instead of CFLAGS
9fcae81e3Martin SjölundAdd OMCompiler prefix if there is no REVISION file
68920ea8eAdrian Popupdate the buildings2csv script
8c0a15615Per ÖstlundNFInst improvements.
926c35e44Adrian Popupdate common
9ba9c3d97Adrian Popunify the way we handle version in Windows / Linux - add OpenModelica prefix to the CONFIG_REVISION in omc_config.h - removed OpenModelica prefix from Windows generated revision.h
051f9ea23Martin SjölundHandle race condition in launchParallelTasks
4041222e8Martin SjölundUpdate CXXFLAGS in a better way
e2c90aecdMartin SjölundFixes from static error checker
4fc6fb7d7Adrian Popminor performance enhancement for OMC API
7e9c752ceWilli Braunfix printSparseStructure
a5282288aWilli Braunimprove debug prints for daeMode
0ab52c897Peter FritzsonCompleted support for checking Unary operators in checkUnaryOperation.
67fd99755Peter FritzsonNF typing and typechecking of unary operators
f25b1b598Adrian Popattempt to make the windows compilation more robust
2395ff7ffAdrian Popfix annex conversion script
a7e1b49fbMahder GebremedhinTyping updates for new Front-end
0d56452a0Willi Braunfix printSpasityPattern for daeMode
3f5a3c0edMartin SjölundRemove sundials on make clean
0514fbef7Adrian Poptry to run mkbuilddirs before anything else
f5162837dAdrian Popimprovements to function handling - handle some of the builtin functions - handle named arguments - check argument type, variability, etc
c7e8c027fMartin SjölundDo not fail for a warning
de28a2253Martin SjölundPerform type-checking on when conditions
4a4bd52caAdrian Poppartial support for handling functions
da294f810Per ÖstlundNFInst improvements.
974e2ad5bAdrian Popdocs depends on mkbuilddirs
6c8d8e35dAdrian Pop-use $MAKE instead of make
8c4133092Lennart OchelFix dummy attributes
9b4c1fe10Lennart OchelFix dummy real attributes
9da1640afPer ÖstlundAdded new flag condenseArrays
bfd468003arun3688FrontEnd unitchecking
f17048081Per ÖstlundFix compilation without sundials/kinsol support.
5b7362b4cAdrian Popadd all Codegen*.mo to .gitignore
debe19c08Martin SjölundInitial commit for embedded C code generator
8dcb4435dMartin SjölundUse AvlSetInt instead of lists for inc. matrix
dc675db2fWilli Braunticket:4159 fix some flag descriptions
fdfc4244bLena Buffonisupport for verification scenario generation from requirement models
f727803aaMartin SjölundPatch bootstrapping tarball
561c2f95cAdeel Asgharticket:4152 Added includeConstants argument to getClassNames API. If true then the API will also return the constants of the class along with classes.
1df8a4a52Willi Braunadded kinsol/klu solver support with sparsity
ff3d39d28Willi Braungenerate always SparsePattern for non-linear algebraic loops
af8cd3e3fMartin Sjölundv1.12 development
ecceebd66adrpomake sure we don't have a old version number when no git present
2ccad20e2Per ÖstlundFix lookup of qualified crefs in nfinst.
e1efb57dcadrpoisXMLTCP is defined only if NO_INTERACTIVE_DEPENDENCY is undefined
3ee365e69Niklas Worschechuse boost 1.59 if Visual Studio 2013 is used
daab8bb4bMartin SjölundAllow multiple class annotations in diff algorithm
b0c9b4375Rüdiger FrankeAdapt log levels to OMEdit, ticket:4048
ce441e184hudsonMerge remote-tracking branch 'origin/master' into pullrequest
407fc9c9bAdrian Poplink generated executable with with wsock32 and ws2_32
a8258d47bMartin SjölundFMUs cannot set logFormat
8dec8301dAdeel AsgharUse str to clear the stream instead of clear. Make sure we count the opening of tags.
cfb2366b5Martin SjölundAdd logFormat=xmltcp
e02bbf266Rüdiger FrankeImplement logging of simulation status
ad7adca9dRüdiger FrankeUnify treatment of Logger instance
d9f30dc8bRüdiger FrankeImplement logging of simulation status
01ca4a37eRüdiger FrankeUnify treatment of Logger instance
6b059e07eadrpofix windows builds add libs wsock32 ws2_32
3a460b5f0Rüdiger FrankeAdd xmltcp logger to Cpp runtime, ticket:4048
712e12e55Willi Braunadd try-catch execption if initialSolverData fails
0c85d9a67Willi Braunadd exception for ida solver if no sparsity available
95e5e65f3Willi Braunimprove symbolic jacobian generation
e4cfc38aaPer ÖstlundNew instantiation improvements.
d7fc7be80Per ÖstlundGenerate less empty structures in absyn2SCode.
60beb68ecMahder GebremedhinType checking updates for the new fron-end
b781dc9d5Adeel AsgharAdd 32/64 bit version.
bd46362efPer ÖstlundFix the check for final modification.
dc38639c4Per ÖstlundBetter error for duplicate mods in new inst.
2c7afbd07vwaurichfix signalArrows in visualization
e68f0a0edPer ÖstlundNew instantiation improvements.
592cec8b7vwaurichdont evaluate functions with unknown type on lhs
e11567af8ptaeuberFix vararrayList
63b77e731vwaurichdont add A-Vars of statesets to BackendDAE
555ce77f0Martin SjölundMake test utils able to clean more generated files
a34343166Adrian Popsome fixes to modelDescription.xml import
fdec2bcb9Willi Braunimprove sparsePattern dump
797a4ef71alash325Better naming for imported modelDescription XML
33b3b8e0fAdeel Asgharticket:4144 Use anyString to print the Integer values.
901d152b7ptaeuberUse qualified component names in hideResult attribute
350333d62Per ÖstlundNFInst fixes.
adf0f0d49Per ÖstlundFix broken stuff from previous new inst change.
a4e708851Rüdiger FrankeCorrect logging for FMUs and IDA
b6a7a6d69Rüdiger FrankeLog errors during initialization and asserts
f2e948cbeRüdiger FrankeGive log categories full names
c26746fb4Rüdiger FrankeAdd debug log for event conditions
a556edebeRüdiger FrankeConnect Cpp Logger to FMI2 callback function
edbd85c1aRüdiger FrankeLet Newton not scale Jacobian columns
47e18462fRüdiger FrankeSuppress duplicate error message if simulation fails
066543650Rüdiger FrankeAlways do at least one Newton step
ba319245dAdeel Asgharticket:4132 Added pathStripSamePrefix function for addComponent API. Makes the path relative to class.
7f31e3155Rüdiger FrankeLet Newton scale Jacobians of linear systems as well
863c7b71aRüdiger FrankeLet Newton solver catch errors from analytic Jacobian
3821a19a8Rüdiger FrankeReduce code nesting in Newton solver
7d6aaa01cRüdiger FrankeScale Newton solver with nominal values
450b5bea1Rüdiger FrankeIncrease accuracy of Newton solver
f4d1b5a5aRüdiger FrankeReactivate analytic Jacobian for Newton solver
54ab0e4edMartin SjölundDo not crash when reading a parameter
40b6e79b5Rüdiger FrankeActivate Kinsol overflow test to avoid endless iterations
1b514e3f3Martin SjölundSimplify counting number of real variables
d487be4fdptaeuberAlso simplify DAE.NOT() wout type
a50dbe10eMartin SjölundUpdates to source-code FMUs
efd9b1f67Rüdiger FrankeCheck for FMUType, ticket:4130
844621f31Rüdiger FrankeMake internal copy of instance name, ticket:4130
d1a64527dMartin SjölundHandle the type specifier being lost in the diff
91a2bb438ptaeuberAdd spline interpolation also to ModelicaTables
9c32ee8c0Martin SjölundHandle whitespace in single tree diffs better
39d920f4avwaurichset hideResult to false for visualization vars
e0cca96a4Martin SjölundHandle multiple connection points being changed
736a94383Rüdiger FrankeRemove obsolete function
49cb49cbeLennart OchelSimplify some auxiliary function implementations
f44f9c509Rüdiger FrankeSmall optimization to RefArray code generation
1ee8c832bRüdiger FrankeRewrite SimCodeUtil.getUnrolledArrayIndex in procedural style
e65760222Rüdiger FrankeUnifiy storage order of RefArray, ticket:4093, ticket:4072
7359ea2c9Niklas WorschechFix for division during internalization in cpp runtime
96f16777fNiklas Worschechadded Modelica Randaom to cpp runtime build
95bc48164Lennart OchelOnly mark states as changeable if the start attribute is constant
db9157bbcMartin SjölundHandle comments moving around
93bd45ea5Mahder Gebremedhin- Escape quoted idents in aliases in _init.xml
98461c47avwaurichfix FMU string-type start attributes
a3b03f07dRüdiger FrankeComplete fix for 3dim RefArray, ticket:4093
73f7fca97Rüdiger FrankeAdd error if daeExpCall finds no match
3cd68ac53Willi Braunmove findZeroCrossings to a postOptModule
1081354d0Per ÖstlundRedesigned NFInst to eliminate InstanceTree.
bc49d1dcbvwaurichadd warning for external alias
1731292fcvwaurichadded case in external alias detection
0c7a532a0Adrian Popfix ticket:4124
786193c16Willi Braunimprove dynamic state selection
70c742284ptaeuberReplace evaluated parameters in hideResult
8747e2fe2Lennart OchelRemove superfluous whitespace from generated xml file
ea606a1b8vwaurichfix 3dim array for cpp
f2641d78aLennart OchelRemove attribute useStart from model_init.xml
369fd73a5Rüdiger FrankeExploit structured logging for Newton solver
a94610ae0Rüdiger FrankeExploit structured logging for LOG_INIT and LOG_STATS
7c61be0eaRüdiger FrankeUnify command line names of log settings
f00158381Rüdiger FrankeImplement XML logger for Cpp runtime in OMEdit
1e1690487Rüdiger FrankeOnly initialize variabes with start value from init.xml
c60d86d4fRüdiger FrankeAdditionally check for array element, ticket:4093
4a3540b4dRüdiger FrankeSIMVAR's numArrayElement is not sufficient, ticket:4093
c655395efRüdiger FrankeRobustify elabBuiltinDynamicSelect, ticket:3675
76cba8f16Rüdiger FrankeFix cpp codegen for array assignment in when, ticket:4093
3840dead7Rüdiger FrankeEnhance elabBuiltinDynamicSelect for visible, ticket:3675
024573ebcWilli Braunadd further deltaX option for the solvers
5c6c19f25Willi BraunRevert "add xml root element for logFormat=xml"
183b510d5vwaurichRemove tab from visualxml tpl
82c4ecda8vwaurichTake an arbitrary alias for externalObjects if unsure
745621ea7vwaurichFix visXMl for file-shapeTypes since new parameter stuff made things different
c98026b27Willi Braunadd xml root element for logFormat=xml
c237c1882vwaurichalways expand records when counting algos
ae27c2b0fvwaurichDont expand algorithm when counting the size after removeSimpleEquations
7def99eacRüdiger FrankeEnhance elabBuiltinDynamicSelect for texts, ticket:3675
6345c52cbRüdiger FrankeOverride protected with HideResult annotation, ticket:4089
158091865vwaurichfix cpp codegen for tuple assignments in whenOperators
3fd4d4ffdLennart OchelFix generation of parameter equations
c8df1c548Lennart OchelRevert "rewrite simplifyComplexFunction"
8feaea880Lennart OchelRevert "fixed PR 1148"
2722e764cLennart OchelRevert "improved array dump"
b2f7540d3Lennart OchelRevert "workaround for array=f()"
5515de8b0Martin SjölundAdd support for clang (3.7+) OpenMP
295a04075Rüdiger FrankeRead all values from init.xml, ticket:4089
c58bee3b9Rüdiger FrankeEmit protected variables with HideResult=false, ticket:4089
6d02154baRüdiger FrankeAccept -alarm and -abortSlowSimulation for nightly tests
599e0f68dRüdiger FrankeFilter protected and hidden in Cpp runtime, ticket:4089
32dfa07c2Rüdiger FrankeReplace tabs with spaces in XmlPropertyReader, ticket:4089
f992d1998Willi Braunlet linearize also run in numerical mode
3775ade2fvwaurichsmall cleanup
60e12868evwaurichfunction to get linker library paths with extra case for Winmm
bef320ce3Rüdiger FrankeThe 1 matters (see Filter parameter results)
cbb742b51Rüdiger FrankeFilter parameter results, ticket:3925, ticket:4029
1692f27c8vwaurichBackendDAE.ASSIGN can hold tuples on lhs
dd59e5404Rüdiger FrankeOnly filter public variables with HideResult, ticket:4089
77bf4cba2Rüdiger FrankeHideResult defaults to protected, ticket:4089
339c74938vrugeworkaround for array=f()
c3733b363vrugeimproved array dump
893adb73fvrugefixed PR 1148
1a1a32a85Martin SjölundFix order of clocked equations
f9018bb81Niklas Worschechfix in cpp runtime for msvc 2013
68f9aae48vrugerewrite simplifyComplexFunction
d75f648c0ptaeuberCorrect handling of parameters
c2ed655aaMartin SjölundChanges to FMI autoconf, more debugging messages
53b732f53Rüdiger FrankeConvertUnits, ticket:4081
5d9af8447Willi Braunadd deltaX flag and pass it to the linearization
620a9dfb7Willi Braunreview lineraize code
b304032e7Martin SjölundProduce error-messages when linearize fails
92846a43avwaurichremove unused function
f97e44537Martin SjölundAvlSet instead of HashSet for structural params
1ccc53d70vwaurichuse CevalScript.getFullPathFromUri to get animation file paths
f45d03b38vwaurichget absolute paths of resource files which are used for animation
88b6260b5Martin SjölundStructural parameters as HashSet instead of Table
eae52ab31Rüdiger FrankeRemove Cpp code generation for initialization of alias vars
d7838200aRüdiger FrankeAdapt Cpp code to increased use of calculatedParameter, ticket:4027
55548c186Per ÖstlundImproved prefixing in NFInst.
7efbde0d4Martin SjölundOnly run SMFlatten if the model uses SMs
c9f67a820Martin SjölundTabs to spaces
c8b206d6fRüdiger FrankeCorrect numbers of variables, ticket:4072
8b1f74ec9Rüdiger FrankeFix multi-dimensional arrays in Cpp init.xml, ticket:4072
db80ad11bRüdiger FrankePartly revert "Move adding of tempVars into model info"
30c4b4cd2hudsonUpdating 3rdParty
9447a8c56Adrian Popadapt code to MSVC2015 - the compilation will now use the existing VS 2015, 2013, 2012, 2010 in that order - use VSVERSION=20NN to change the order - fix a minor warning in the CPP runtime CMakeLists.txt
4f6ee12c7Rüdiger FrankeFix array storage order in FMI export, ticket:4072
d314f5cd7Niklas Worschechadded ModelicaIO and zlib to cpp runtime build
892dc5ad9Rüdiger FrankeMark inputs changeable
d95bf9970Per ÖstlundDon't dump the flat model in silent mode.
bdb177c3fAdeel AsgharAdded new API getComponentModifierValues. Returns the submodifiers. Moved getComponentModifierValue to ModelicaBuiltin.mo
69d8e82a6Martin SjölundStart splitting large C-files into smaller ones
043a7563cPer ÖstlundFix for a few compiler warnings.
b11d246c9Martin SjölundLink with expat when not bootstrapping
1a5a648efPer ÖstlundQuick hack to fix some NFInst issues.
6324199e5Martin SjölundLink against fewer libraries when bootstrapping
cba2c4a0dRüdiger FrankeAdd attributes to init.xml file of Cpp runtime, ticket:4069
2f98348cfWilli Braunadd functionAlgebraic to callStatistics
e502e3358ptaeuberAlso dump iteration variable names in tearing dump
0c4be26f5Martin SjölundHPCOM is not needed for bootstrapping
e2728465bMartin SjölundDo not link expat with omc
e52e2f988Rüdiger FrankeFix use of scale factor in unit conversion, ticket:4031
5609fed3aRüdiger FrankeAdd support for Imperial units, ticket:4031
038e71cb4Rüdiger FrankeAdd missing derived units, ticket:4031
561b96766Rüdiger FrankeRemove derived units with standard prefixed, ticket:4031
0901cc3c6Rüdiger FrankeAdd derived unit deg
b5b49b0f3ptaeuberUse Ceval.ceval to evaluate ...
0382fe813vwaurichbetter external object detection
0cba0030bAdeel Asgharticket:4031 Added kV & mV derived units.
9e417e138vwaurichexternal alias handling
a4f724f74Martin SjölundSimpler check if running the testsuite
c5383bb88Lennart OchelFix wrong escape sequence
bb86695f0adrpofix for ticket:4062 - put external objects inside the connection sets
0e6d68f92Willi Braunnonlinear homotopy solver with lapack
08ea75e3bvwaurichreplace parameters in external objects, extend simCodeDebugDump
db1919123vwaurichdo not link some external library resources (user32, pthread, X11)
c687a7749ptaeuberFix BackendVarTransform.replaceExp
a6e40958bPer ÖstlundNew instantiation update.
ea2bf103eadrpofix windows build
f03616c74vrugeloop -> memcpy
aaeec2c4avrugeadded explicit rungekutta with step size control of order 4
6759feda5alash325- added wrongly deleted line
f9cfd8077alash325Added importFMUModelDescription API
64c43c258vwaurichadd error if file name is too long
27e278312Lennart OchelCatch unbalanced models
895a1e127Willi Brauntry to fix ticket:3999
aadd604bfLennart OchelHighlight that the unit checking module is still experimental
e4eee95efLennart OchelFix unit checking for products
99952ed7dptaeuberGenerate smaller initialization tearing sets
61f5e0357Lennart OchelDo not use + for OM flags
b8604ac36ptaeuberFix marking structural parameters final
4f0d76106adrpofix for ticket:3979
f0f37a347Adeel AsgharAdded zero as default timePoint.
7c98eac54Adeel AsgharUpdated the initialization warning text. Also marked it for translation.
25249c864Lennart OchelFix initialization problems containing
4434dd5c8ptaeuberProvide information about which solver is used
372119f67Lennart OchelFix typo in documentation of isExperiment(..)
83c663168Lennart OchelAdd available options of runtime flag -iim
9945189fdLennart OchelRemove obsolete flag from description
6d333d424Lennart OchelRemove useless condition
5ac721899ptaeuberSome code optimizations in Tearing.mo
3423a6eceMartin SjölundDetect tuples used as expressions
863a98b95vwaurich- fix visualization attribute extra
55589c8fevwaurich- generate visual.xml with +d=visxml only
9f51354a3Willi Braunfix dae residual varKind for code generation
5d7be40ecvwaurich- get source info for Flags.VISUAL_XML
8c6ebff92Adeel AsgharBetter implementation for add/update/delete transition APIs.
a543be3dfRüdiger FrankeAdd new function signatures to ArrayOperations.h
7ce61b897Rüdiger FrankeImplement DIV_ARR and ADD_ARRAY_SCALAR in Cpp runtime
0b58b4218Adeel AsgharAdded updateTransition API.
ed06e0510Adeel AsgharFixed implementation of addTransition and deleteTransition.
543574810Adeel AsgharAdded deleteTransition API.
dbbcff9b3Per ÖstlundFix for ticket:4028.
0735a9d83Adeel AsgharAdded new API addTransition.
974a19ccdvwaurich- compute timeevents for tEnd
fcc0b47dcvwaurich- deactivate analytic jac for nls in cpp Newton solver
a1fe86503vwaurich- cpp synchronous implementation back to time events
cd3785d41ptaeuberSome minor SimCode Optimization
338dd80e0ptaeuberPrefer iteration variables with start value
779a2068aptaeuberFix Dynamic Tearing for initialization
bcf29cceaptaeuberAllow Dynamic Tearing for initialization
5fed8c18cptaeuberImprove userDefinedTearing
db1de5b4aNiklas Worschechfix for hpcom
4deb51bc0Niklas Worschechintegrated DAE mode in cpp runtime
d0a57cdf3vwaurich- fix booleanclock handling, use subpartidx for clockinit
4ec62d0f2vwaurich- fix for hpcom
8c6cf4513vwaurich- remove debug output
aeb57109dvwaurich- fix partlintorn system
41f85a50bvwaurichReactivated reverted clock adaptions
5a18bd5dfvrugefixed set subscripts in inline:
c5749a669vrugerecursion -> loop
2d4224045vrugeadded new modul
b7af71c57vrugeimproved modul order
145cac248vwaurich- copy missing dlls in omdev_extra_dlls to fix FMUs
75fffde41Martin SjölundHandle default external calls with array arguments
c709213ebMartin SjölundOnly store direction of external variables
e9986145eMartin SjölundGenerate unique UUID if libuuid is present
a4c1eab6dMartin SjölundsetDocumentationAnnotation now escapes strings
96951b49eMartin SjölundUse an AVL Tree to make adding new ZCs faster
4877c8d29Martin SjölundAdd Expression.compare for sorting expressions
295b0a4c6ptaeuberAdd flag to control function-binding evaluation
06257ffc9Martin SjölundAdd built-in function valueCompare
6cead398dptaeuberAdd missing else
221647993Lennart OchelHandle error stage ERROR_EVENTHANDLING
96282dd9dptaeuberSome optimizations to evaluateFunctions_updateStatement
2d38e9a69Martin SjölundEncapsulate the ZeroCrossings set type
9d126613eAdeel AsgharAdded getTransitions API.
a968496d0Martin SjölundDo not pass around numRelations
68b634096Martin SjölundMerge only 0 or 1 zero-crossings
a25dc00fbDietmar WinklerAvoid characters in file names that are illegal in Windows
1cb219fc4Martin SjölundUse DoubleEndedList for zero-crossings internally
c06dade98Martin SjölundFix type variables of metarecords
51623041aAdeel AsgharRead the __Dymola_state annotation.
52f0eb751Martin SjölundImproved performance of SimCode zero-crossings
fde847bd8hkielsome small optimizations - remove arrSize from records, size of array can be determined in O(1) time - make BackendEquation.addEquations() add all equations in a loop instead of calling addEquation() for each equation - use addEquations() instead of List.fold(lst,addEquation,eqns) - avoid some intermediate lists
6f92e41feptaeuberMinor changes to EvaluateParameter
1a9bdf264Willi Braunadded DAE_RESIDUAL_VAR as varKind
1127a0fb2Willi Braunadded ida-solver stopTime ticket:3991
5f3633932Willi Braunmake array variable for DAEres in DAEmode
f60e155b7Martin SjölundFix equation system partitioning performance
1464a0db7hkielsome minor list optimizations
340520453Martin SjölundFindZeroCrossings - avoid bad listAppend
590fe402cMartin SjölundUse DoubleEndedList for FindZeroCrossings
63127526fMartin SjölundAvoid matchcontinue in FindZeroCrossings
112b0bc99Martin SjölundRemove matchcontinue from FindZeroCrossings
76f47caa0Martin SjölundAvoid matchcontinue in FindZeroCrossings
185f006e9Martin SjölundAvoid matchcontinue in FindZeroCrossings
3d6008688Williadd further daeMode option
f2eb970b1Willi Braundo not use extrapolation for to big steps
920695025Martin SjölundChange order in mergeZeroCrossings
4638cca5eLennart OchelNew debug flag "partitionInitialization"
dec4b30d8hkielsome minor optimizations
3fd876702Willi Braunfix typos ticket:3983
48f93f0e2hkielsome minor optimizations to Backend
c6520af83Adeel AsgharMeasure the correct time of API calls.
5725c2bb5adrpofix ticket:3980
3e83c1818Willi Braunfix ticket:3983
7b072a740hkieluse list comprehension
c84c17910hkielslightly improve performance of getComponentAnnotations() ticket:3679 do better scanning through lists
638acf922Lennart OchelDon't evaluate alg. loops once before start of simulation
c1cac0c13Adrian Popfix ticket:3973
96924a5d0Lennart OchelAdd missing TRACE_POP statement
6cb06d842Lennart OchelMinor optimizations to EvaluateParameter.mo
8ab6b8a40Lennart OchelRemove superfluous variables
cbd9cd37fWilli Braunadd noEqudistant step flags for ida solver
cf561f73eWilli Braunfix event handling of ida solver
c268564beWilli Braunfix debug trace
8257389dbhkielGC.free() some temporary arrays
2ce167a64adrposmall memory optimizations - free the array in List.mo - return the input in SystemImpl__iconv if to == from - signal that we don't want malloc_atomic in arrayCreateNoInit
499d340a3Rüdiger FrankeSupport startInterval of event clocks, ticket:3272
a5b5466a5hudsonUpdating 3rdParty
be46866e0hudsonUpdating 3rdParty
99ef1e340hudsonMerge branch 'master' of https://openmodelica.org/git-readonly/OMCompiler
3fe711d40hudsonUpdating 3rdParty
60b9239ccRüdiger FrankeRemove optional argument from interval() and firstTick()
2a93be594Rüdiger FrankeRemove fixed start values for discrete states (MCP-0024)
4cd90269fRüdiger FrankeImplement firstTick operator (MCP-0024)
70198be03hkielfix some warnings from static code analysis
96ee4981cWilli Braunadded more solving options from ida as sim flags
84d574197Willi Braunadded flag to suppress algebraic vars from error test (daeMode)
e740f2d70Willi Braunadd relative tolerance to alg variables in daeMode
a25d3fd79Niklas WorschechRevert "fix for clock ticks at end time in cpp runtime"
df84bca0badrpofix ticket:3974
913b58d46Niklas WorschechRevert "Adapted clock handling in cpp runtime"
f67918e1eNiklas Worschechfix for clock ticks at end time in cpp runtime
ddf5050a5Niklas WorschechAdapted clock handling in cpp runtime
3829472a2adrposmall memory optimizations
fcde532ecWillitry to fix daeMode for complex equations
ce355312bhkielfix some issues from static code analysis ticket:3954
a38e0f0b4Lennart OchelExtract variables also from clocked partitions
c4ba4ab86Lennart OchelSmall improvements to module wrapFunctionCalls
31aeef333Lennart OchelSimplify RemoveSimpleEquations.handleSets
532bec868Henning Kielfix CodegenC for dynamic tearing (#1)
18caa8b2fMartin SjölundWrite equations directly to file
64d176d1fLennart OchelMove prototype to _model.h
0e098204eWilli Braunfix ticket:3913
4936316fcMartin SjölundRemove some unused function calls
d59e2f8deadrpofix ticket:3960
447096dc7Lennart OchelFix implicit function declaration
8bbb70aebRüdiger FrankeFix discrete state indices for FMI export
eba465406Lennart OchelNew implementation of module wrapFunctionCalls
0f1524280Lennart OchelImprove ExpandableArray
a1a540891Martin SjölundRan the refactoring script to remove unused code
7e1286ce1hudsonUpdating 3rdParty
f45c1dd2aadrpoFixes for ticket:3955 - enable GC parallel marking in Windows (Makefile.omdev.mingw) - enable parallel parsing in Windows (Compiler/FrontEnd/ClassLoader.mo) - give parallel parsing thread 2MB stack (Compiler/runtime/System_omc.c)
f5d4c269dhkielfix some abnormalities from static code check ticket:3954
bb33335a6Willi Braunimprove some simulation option descriptions
76b1b286aWilliupdate non-linear system code
870028088Willigeneralized nonLinearSystemData generation
0a9c9b502Willi Braungenerealize staticData generation
e9351e097hkielOS X: run otool on libzlib.dylib
68ed95517Willi Braunclean up nonlinear systems: remove unsed field
201f9d350Willi Braunimprove codegeneration for non-linear systems
7fda7d4d2vrugeCosmetic changes for DynOptimization
63527ec43vrugemake create dynamic optimization problem as modul
43294bc3cNiklas Worschechfix in fmu 1.0 export and cpp runtime for ambiguous symbols for shared_ptr
912301a4dNiklas Worschechfix for algloop variable attributes assignment in cpp Template/CodegenCpp.tpl
7a7247f57Rüdiger FrankeLink Cpp FMUs all static under Windows
4eaf6a37fadrpoadd needed libs to FMUs on windows, ticket:3946
2dbc14b1eWilli Braunfix nominal values for daeMode
d08a25108Rüdiger FrankeClean up comments and indentation
8987eb249Rüdiger FrankeRefine treatment of clocked start values to fix ticket:3770
6a480c870Lennart OchelNew generic type ExpandableArray
e867d82b1Rüdiger FrankeRemove unnecessary Sundials include directories
86e2894c2Rüdiger FrankeMove Sundials paths to Sundials section (ticket:3933)
dd39b9fb5Willi Braunadjust nominal usage in daeMode for alg variables
9e077feb8Willi Braunadd initial step size flag to ida solver
c40d6c471Adeel Asgharticket:3488 Added ignoreSimulationFlagsAnnotation flag.
0a6dd266cRüdiger FrankeAttempt to fix ticket:3948 for Windows build
5a887dbe9Niklas Worschechfix for typo in cmakefile
1dd553e34Niklas Worschechadded status message for sundials libraries
21c5d5fb1Niklas Worschechfix for #3933
0fe727959vwaurich- functions to debug Index Reduction
24669b25fadrpofix ticket:3942 - use -std=c++11 for Windows - add -lz -lhdf5 libs to linking, needed for Modelica tables
38e81d67eptaeuberAdd flag to emit solver steps to the result file
81b676597Lennart OchelImprove error message
dc14e0f3bptaeuberMake total tearing a config flag to specify SCCs
ec6bb2383adrpoticket:3092, activate OMC_NO_GC_MAPPING only on FMI or minimal runtime
c7a21ff6eadrpomore fixes ticket:3902
1aab55e6dadrpoomc_ua depends on boehm-gc target, ticket:3902
3f4962fd2adrpoParModelica depends on boehm-gc, ticket:3902
28420a1f6adrposmall changes to the memory allocation interface, ticket:3902
ad52d2780adrpoFix ticket:3941 disable tests Modelica_Synchronous.WorkInProgress.*
944192f39Lennart OchelDon't share memory between different variable arrays
70349b591ptaeuberMake redundant --disableLinearTearing deprecated
ace8794c3Patrick TäuberPerformance fix of instantiation of syst in loop
b526c9b9dRüdiger FrankeRemove wrong error for clocked continuous exps
cde23afceRüdiger FrankeUse start values at first clock tick (ticket:3770)
9e139b9c2adrpomore fixes to svg generation
28405d807vwaurich- fix order of subpartition clocks
d19242a2eptaeuberNew approach to handle known vars
998331701Adeel AsgharUse 1 for record type.
215f2b4c9Willi Braunhide alias warnings behind AliasDump flag
240213bccMartin SjölundDo not generate #define for variables
cea271efcWilli Braunremove not used extrapolation code
1d03f6339adrpoadd support for --alarm on command line ticket:3928
5a28893b9ptaeuberDetect JAC_CONSTANT() as linear component
59c64aca0Willi Braunadd some exeption handling for torn linear systems
087bdd2e3Martin SjölundMake reinit message output a readable cref
05eb8b9a6Martin SjölundFix name of vars in linear model
a3a1e9a93Per ÖstlundRenamed scodeInst debug flag to newInst.
f0a3a7ccdPer ÖstlundReorganized source files for new instantiation.
cbc956152Per ÖstlundAdded component attributes to new instantiation.
5184da392Per ÖstlundNew instantiation improvements.
c3bcdbbf4arun3688ticket:3488 added new API functions for vendorannotation
9e87f6de7Martin SjölundFix SVG generation
887637acaMartin SjölundPut each library into its own history folder
bf97bdcd1Willifix sparse pattern for daeMode
7ef887367Willi Braunadjust code generation for daeMode
397dd8236Willi Braunimprove daeMode implementation
30d4a89caWilliadd sparse pattern for daeMode
eacfc6b20Lennart OchelMove the actual unit parsing to Unit.mo
c7fe6415dMartin SjölundHandle writing empty files
f47e48bdcMartin SjölundDo not create HT of size 0
689ff409bMartin SjölundUse BaseHashTable for the SimCode HT
3e9b0e836hkieluse less memory when operating on units
17df9f3c3Lennart OchelClean up unit check module
1e5da4b63Per ÖstlundAdded some proper error messages to NFLookup.
d816a47fdPer ÖstlundMore new instantiation modifier stuff.
82eeffe30hkielfix BackendDAETransform.eqnAssignmentNonScalar()
9b0163de6Adeel AsgharHandle the integer inside record.
120a9e2bbadrpoActivate multiple FMU instances per process ticket:3820
ec70f3341hkielfix memory leaks in C runtime
4c94fc01chkielfix some issues from static analysis
72f98cf7aadrpoFixes for ticket:3898 do not output empty InitialUnknowns element
7570c6b94Martin SjölundDo not use pre-processor for array variables
2aa49359fPer ÖstlundModifier improvements in new instantiation.
57990bab9Patrick TäuberRename squared 2-norms
737e02469Patrick TäuberChange input tol of Newton solver to 2-norm
7b5e81b4eLennart OchelUse always the unit representation that was defined first
4383a9c11Lennart OchelDon't override empty unit information with dummy value
22d2ccb31Lennart OchelCalculate unit information for state derivatives
7271c6f71Per ÖstlundNFInst improvements.
012b28298adrpofix windows external annotation for omcruntime library
f79cce437Per ÖstlundImplement derived class modifiers in NFInst.
4a27b0912hkielshorter C code for non-guarded list comprehensions
029864fe4hkielallocate using mmc_alloc_words_atomic where no pointer is stored.
d02a3753ehkielpreserve some more tuples
3507862d0Per ÖstlundPropagate modifiers for structured components.
f1904b88fPer ÖstlundClean up some new instantiation modules.
06b1abefcMartin SjölundDo not use preprocessor to generate sample() code
4e18fb90cPer ÖstlundReplace old new instantiation with new new instantiation.
58bbbff88Lennart OchelFix LOG_STATS (ticket:3922)
a52420cf9Martin SjölundSkip calling unnecessary tmpTick
c79b8cac0ptaeuberImprove total tearing algorithm
f098371bcMartin SjölundDo not use preprocessor for attributes
04496accfhkielremove function getAliasContinue()
109dc98dchkieldo not thread two lists, just to unthread them again
d665b64a4ptaeuberAdd flag to change the tolerances for newton solver
c5b68a938adrpofix GenerateDoc.mos
f10487d15hkielsome minor optimizations - match -> matchcontinue - simplified some functions
8f16329a0vwaurich- dump a graphic blt-matrix in a html file via +d=bltmatrixdump
f0d46d564Williseperate coloring from generateSparsePattern
73a73b023jhagfixed wrapFunctionCalls (see:ticket:3102 ticket:3910)
50dade940Martin SjölundPrefer omc libs over system libs
016c25e5eMartin SjölundDo not look for otool lines containing :
0e88db868hkieluse listEmpty() instead of listLength()==0
c628fac31hkielfix PR #837
67e058835adrpofix for ticket:3914
ff7351840Martin SjölundCheck all dylib files for improper linking
542abe936hkieloptimize List.sort() a bit more
5a7efaddchudsonUpdating 3rdParty
12b13360ehkielfix ticket:3897 - run install_name_tool on the libraries (also for libsundials_idas.0.dylib)
141d59741hudsonUpdating 3rdParty
e9739870dvrugedon't add noEvent twice
60be6c452vrugematchcontinue -> match
605cd5728vrugefixed inline-anno interpretation
008b751edWilli Braunfix modelicaStringToCStr for "'"
e713fe26fhkielintroduce List.splitr() which returns the first list in reverse order - optimizes code that does (l1,l2)=List.split() + listAppend(l1,l2) by avoiding double listReverse on first list: (l1r,l2)=List.splitr() + List.append_reverse(l1r,l2);
389ec43c3hkielfix ticket:3897 - run install_name_tool on the libraries
b3a16671bMartin SjölundRun install_name_tool on the libraries
e7dc97954adrpoproperly set FMI_PLATFORM for FMIL library
3ba065e44Willi Braunadd module to calculate sensivities matrix
ade6473daRüdiger FrankeUse old C++ ABI for cross compilation of FMUs
833bce927hkieltry to fix ticket:3897 and ticket:3900
c9c2dad35Willi Braunfix initialize SolverData control flow
8f3825c5dhkielavoid List.intRange in conjunction with for loops
f1fc67506ptaeuberfix ticket:3192
17c031c27adrpoupdates to ticket:3857
04080aeb8hkielremove some matchcontinue
7e7eec7advwaurich- add case in dumpStateorder
9873878efPatrick TäuberReset strong component index
9d8edb68eWilli Braunfix ticket:3846
9c5ab12beAdeel Asgharticket:3488 Added a flag --ignoreCommandLineOptionsAnnotation
e652a2004Adeel Asgharbackup the originals flags. Reset the flags after translation.
28c405d4dAdeel Asgharticket:3488 Read the __OpenModelica_commandLineOptions annotation and apply it.
018590eb3vwaurich- fix dumpComp2 for empty Jac
938a17927Martin SjölundDo not use cp -u
4d5ce50f1Martin SjölundPass more linker flags to sundials cmake
d1716435fptaeuberRename flag advanceTearing in allowImpossibleAssignments
8f2844293Bernhard ThieleDeactivated state machine when-equations hack
bff2761d3adrporevert changes
14328ef6dptaeuberImproved user defined tearing
63cb7fe71Willi Brauntry to fix OSX build
6792db5d8adrpoupdate the OMDev readme
eb0e11005hkielavoid a few more tuples
a11618424hkielavoid unnecessary tuple creation
b8aed2c07hkielmisc optimizations use guards avoid memory allocations
86ca95e2fhkieluse guard to avoid some MMC_THROW_INTERNAL
243042d0dhkieldo not recreate Option<>
19d7c975fhkieladd List.mapFold* varaiants with more InOut arguments needed to be able to avoid tuples in some places
09c5a1c61Martin SjölundMake it easier to override FMU CPPFLAGS
83443129bAdeel AsgharMore updated instructions.
900ac5211Adeel AsgharFormat instructions.
35aa7d177Adeel AsgharUpdated install instructions for OMC.
b832f3e50vwaurich- fix RemoveSimpleEquations, added comments
891e7e11fptaeuberIntroduce userDefinedTearing
d0a958974adrpofix for ticket:3857
0aaf81a7dNiklas Worschechreverted clock modifications in C template
3a0012b94Niklas Worschechrevertet clock modifications in cpp template, cpp runtime and SimCode
3a8051481vwaurich- shorten Paths CSE-option
7e798ee4dMartin SjölundDo lookup of varInfo directly
8bcbed025hudsonUpdating 3rdParty
51d6b8e03adrpofix ticket:3892
18dd83044Martin SjölundCalculate index including offset in SimCode
fdfccbe5eadrpofix windows build
0306552ceLennart OchelDon't copy unit information from state to state derivative
f5b5cee03jhagfixed ticket:3888
30d6c0793Lennart OchelMake unitChecking the first pre-optimization module again
fe2bb79d0Willi Braunadd more linear solver for ida integrator
4189bbde5vwaurich- dont interrupt clock-event assignment in cpp runtime
243b35440vwaurich- extended debug dump for synchronous
6ed3a5436vrugeimplementation of new Backend inline module - started fixing [ticket:3510](https://trac.openmodelica.org/OpenModelica/ticket/3510) - also [ticket:3785](https://trac.openmodelica.org/OpenModelica/ticket/3785)
5e9854ebcWilli Braunbuild sundials with klu interface
57cb40521jhagwrapFunctionCalls is disabled
4931a92a3Martin SjölundRemove tabs, pre-commit removes tabs
31e33d4d3adrpoupdate mingw makefiles so no cygwin like OMDEV path is needed
63a287984Martin SjölundMove adding of tempVars into model info
72ef546a1hkielsimplified and optimized some functions in Expression.mo amd ExpressionSimplify.mo
58a891528Adeel Asgharticket:2250 Added time derived units. Fixed a typo.
688abe8c3jhagactivate wrapFunctionCalls by default
109fbac51Martin SjölundAlso fail when giving bad a lapack config
7c597ec8bWilli Braunadd daeMode support for ida and dassl solver
b9640d000Willi Braunadd code generation for DAE mode
75b496ebdWilli Brauninitial implementation of daeMode integration
6a64b9d57Dietmar WinklerGet rid of deprecation warnings
825af5155adrpodo not copy the wrong lib over the correct one
af97876e9hudsonUpdating 3rdParty
4d6000161Niklas WorschechMerge branch 'mychanges' of https://github.com/niklwors/OMCompiler into mychanges
7ee20e661Niklas Worschechfix for initialize clock conditions in cpp runtime, #3872
e2726c6c7adrpospeedup prefix handling for outer ticket:3817
2acba86dfadrpofix for ticket:3817
982cf9421hkielfix for ticket:3863 avoid stack overflow
993db0829hudsonMerge remote-tracking branch 'origin/master' into pullrequest
4f37b928fNiklas WorschechMerge branch 'master' into clocks
fde84cd58Niklas Worschechmerged submoduls
5dd8d5a44Martin SjölundOutput keys in sorted order
39abc94c3Martin SjölundAdd LEAF node for AVL trees
bad8c829dBernhard ThieleFirst steps towards continuous-time state machines
c57105d47Worschech Niklas (DC/ENE22)fix for event clocks in cpp template
fd06aab7aLena Buffonikilled whitespaces
d2d99737aLena BuffoniFixed issue with hierarchical class list
8d790c311Lena BuffoniMerge branch 'master' of https://openmodelica.org/git-readonly/OMCompiler
cc2300403hkielremove warning on OSX
1dc4adc9cRüdiger FrankeFormatting and compile time static_cast in getAMatrixCode
15ff3002eRüdiger FrankeLet Newton solver exploit symbolic Jacobians
6221caea4Martin SjölundFix stack overflow in splitConnectEquationsExpandable
00d230677Adeel Asgharfix simulation flags format for sphinz.
c350b9bd2Adeel AsgharQt clients and python targets are moved to top level make file
15841df77ptaeuberRemove redundant debug dump
8bd6359d2Lennart OchelDump more information for state sets
981faaad0Lennart OchelFix initialization of dynamic state selection
c6e84de98Martin SjölundFix memory profiler
18210f47cjhagupdate LOG_DSS dump
c29d45426adrpocopy the libomopcua.dll into the bin folder
3bd7ac2fdMartin SjölundUse dumpExp instead of printExpStr in templates
f07d8948bptaeuberFix order
4d8f6c528jensdoFix sleep duration for rt sync on windows
86399e474Martin SjölundReplace CREF with ComponentPrefix in ElementSource
077a6e61cLena Buffonirem whitespaces
459a36263Lena Buffonihierarchy fixed in FigaroExport
30c4dbdfdLena Buffonirem whitespaces
ee87e1e52Lena Buffonihierarchy fixed in FigaroExport
b3b929984Martin SjölundFix for PowerSystems
ad78c4418adrpoattempt to fix ticket:3805
aab60103eMartin SjölundDo not keep --no-undefined during the whole config
90bfcfbd8Martin SjölundNo memory profiling on interface.mo-files
25cc4ea0bMartin SjölundMake special case for BackendVariable.getVarSingle
a4a6b3ad7Martin SjölundConstruct CREF after checking HT is not empty
e44c8ffe2Martin SjölundMake a special case for derived classes
c932d4e71Martin SjölundLink lpsolve55 in compiler runtime
2e137d960vrugeBackendDAECreate: removed inline for alg
eb7652c7aadrpoextend BuildModelRecursive.mos to accept extraSimFlags
7733e05e0Niklas Worschechfix for dim zerofuncs
d523f1377Martin SjölundDo not compile sim files when bootstrapping
c76b40baeadrpofix ticket:3783 - add flag keepRedeclares to removeComponentModifiers and removeExtendsModifiers set to false by default
45c0cb2d6Martin SjölundAllow cross-compiling bootstrapping without ipopt
c138b2b2aNiklas WorschechMerge branch 'master' into clocks
e04b3b70dniklworsMerge pull request #1 from vwaurich/synchronous
d5d018738Martin SjölundCache operator overloading
f198b827evrugeRemoveSimpleEquations: remove force inline
836ca3fa9Martin SjölundUse env.var OPENMODELICAHOME when bootstrapping
e74ce8c4fadrpoFix for ticket:3649 - split the connection set
463ca8e05Martin SjölundHandle fixAlgorithm traversal using referenceEq
f0613dd20Rüdiger FrankeUse default C++ ABI, assuming Boost is doing this as well
fbedcab0bMartin SjölundUse referenceEq more for InstExtends/Absyn
ccb265a43Martin SjölundMake a more minimal FGraph structure
4dcb44d8aMartin SjölundSpecial cases for lookup/fq idents
6f9e018b1Rüdiger FrankeSmall cleanup to Newton solver (std::copy)
0d4c57c99Rüdiger FrankeEnhance Newton solver with line search
e6905275cvrugemove inline from BackendCreate to modul (normalInlineFunction) - issues with complex function - remove force inline don't work (e.g. for ThermoPower, Mdedia.TwoPhaseWate)
3b52462deMartin SjölundAvoid printExpStr in SimCode
7ea26e0e6hkielreduce memory usage
9c532799aMartin SjölundDo not use part of list except when debugging
22db45900Martin SjölundAvoid creating cref to lookup an ident
70dd92aaeMartin SjölundCreate symbolic Jacobian faster
d6544d1e8Martin SjölundMemory optimizations
2aca7e47aMartin SjölundReduce memory consumption
2ac963a7fadrpofix windows builds after runtime changes
0c33ef363Martin SjölundMemory-saving performance changes
726533484Martin SjölundFix compilation on OSX
9b56b3c36jensdoFix name of OPC UA aliases, pt 2
222a84763Martin SjölundMake Compiler/runtime shared to avoid C++ issues
d9f7f91e2Martin SjölundAdd support to hot-swap function impl at run-time
5fd8e2394Lennart OchelFix generated code of algorithm when clauses
a2599ba26Martin SjölundFix for relocatable functions
766fa6aedMartin SjölundUse stat to check existance of file
668e38982Martin SjölundRelocatable function fix
4ed2f2bdaMartin SjölundRemove some unused external C code
cfcd347bdRüdiger FrankeRemove duplicate creation of crefToSimVarHT
bd7263ee9Rüdiger FrankeRemove mixedArrayVars from Cpp code and SimVars
44087ac16Martin SjölundAdd CXXFLAGS to some libraries
b85a431c2Martin SjölundConfigure ANTLR with CXX
829e658c1Lennart OchelUse unique mapping for linearized variable names
48bdc062cjhagupdate the output of the numerical linearization
08b243e7bRüdiger FrankeIntroduce names for states and derivatives
8bf71c6dcMartin SjölundIncrease the maximum number of threads for codegen
05cfc469dRüdiger FrankeDelay construction of external objects
89306dec2hkielfix coding style else then -> else remove unused variables
a98c32268vwaurich-fix synchronous for variable intervals in cpp-runtime -separate clocked equations
50cddbb45Martin SjölundRemove some unused buffers
eadffd4e4Martin SjölundSupport for writing Susan text directly to file
9076ed156Rüdiger FrankeMove ModelicaUtilities.h to main include directory
e7cbe783dRüdiger FrankeLink model specific extra libs with msvc as well
12f928e94Rüdiger FrankeDisable default clock for FMI export
8cf1a8faeRüdiger FrankeLink Modelica utils and extra libs to Cpp FMUs
58a87b7f2Martin SjölundAvoid buffers when generating constant literals
dd4ad7747Willi Braungeneralize convertResidualsIntoSolvedEquations
7068c8121Niklas Worschechfix for boost includes added 3rdparty/boost for msvc and gcc
08d59fb40Niklas Worschechfix for boost includes added 3rdparty/boost for msvc and gcc
3dc8b59a0hkielremove List.appendNoCopy() and replace calls to it by listAppend()
925566254Per ÖstlundFix for ticket:3842.
f35a0e242Per ÖstlundClean up DAEUtil.splitElements.
89c4bb600Jan ŠilarPDEModelica in AbsynDump
82f543fdeMartin SjölundFix name of OPC UA aliases
b550ed1afMartin SjölundImplement support for relocatable functions
9939891b3Martin SjölundAlways traverse down non-literal array expressions
7251626eaMartin SjölundHandle literal array expressions better
661329bf9Martin SjölundTraverse record bindings when traversing functions
62b81fe06Rüdiger FrankeAdd DIM_EXP to code generation for reduction expression
7ce091856Martin SjölundWrite the rest of init.xml as file
cc7a3c978Adeel AsgharUse pressure as quantity name
9c0d4845fMartin SjölundFaster stringAppend of 6 strings
47597700dAdeel AsgharAdded derived unit bar.
a1c9bae84Martin SjölundRevert to old InstCache (baf1866)
6517ed8e7Martin SjölundSerialize init.xml directly to file
b623cc22fPer ÖstlundImprove DAE.traverseDAE*
a17aa0ec9Martin SjölundOnly display RT warnings if RT is enabled
a35737a6chkielUse array instead of tuple to count variables
2399ea093hkielSmall optimisations to SimCodeUtil
82c3f1bbbRüdiger FrankeForce evaluation of structural solverMethod
81787f3efadrpoANSI C needed for stupid compilers
26d5e8fc8Cory RuppMemory leak fixes for sparse solvers. See ticket:3548
588d564e4Rüdiger FrankeAlways link Cpp FMUs with static gcc libs
3344b5241Rüdiger FrankeKeep more call parameters to external objects
271abb1eeMartin SjölundTry to cache the keys of the InstCache
8dbf39e59Martin SjölundAvoid some memory allocations
a42d9165dMartin SjölundTweak inst cache hashing
baf1866fdMartin SjölundUse a new key for InstCache
e008b58a7Per ÖstlundFix DAEUtil.addDaeFunction.
7007bf4b1Martin SjölundChange DAE.FunctionTree to the new AvlTree
2b381915aWilli Braunadded runtime ida integrator solver
390188e28Martin SjölundUse referenceEq for more InstExtends traversals
0c3a76eb1Lennart OchelAdd new flag to set maximum number of bisection iterations
3a64133c5Martin SjölundFix some InstExtends referenceEq
ec5320e0eMartin SjölundWrite common datatypes directly to file
1d08c394eRüdiger FrankeKeep multi-dimensional array parameters, ticket:3363
30d85487bRüdiger FrankeSmall fix
4832d7a40Rüdiger FrankeAdd default clock period to C runtime, ticket:3752
0182b277eRüdiger FrankeKeep arrays of free parameters, ticket 3363
a204f67ddMartin SjölundBetter listMaxInt
d341b73bfRüdiger FrankeLess aggressive fix to ticket:3363
a10e5cd14Martin SjölundSpecial case for list intersection
e64e95fb2Martin SjölundRe-enable backendKeepEnv
a7a4dbee4Rüdiger FrankeSupport parametrization of external objects, fixing ticket:3363
3c02320e3Rüdiger FrankeCall destructors of external objects from Cpp runtime
1ba0f8ab1Martin SjölundSend initial env to backend
4dbbfd4e5Rüdiger FrankeMore precise fix to ticket:3752
900bb2289Rüdiger FrankeAdd default clock period to fix ticket:3752
5d188489bMartin SjölundSet -d=nogen in the backend to avoid dynload
85f4a3866Martin SjölundRefactoring EvaluateParameter
84c62fcccRüdiger FrankeEvaluate structural Clock arguments (fix ticket:3717)
6a704ad0aMartin SjölundLet execStat keep track of heap free/total size
312e5a451Martin SjölundAdd debug flag reportSerializedSize
86e3c048dhkielreduce memory usage
d8837658dWilli Braunrevert unwanted change to debug flag
12b9c58c7Martin SjölundChanges to ElementSource
25dbe82c6Per ÖstlundFix for ticket:3825.
6e3121a41Rüdiger FrankeSkip min/max for derivatives (work around ticket:3832)
f11f59c20Willi Braunfixing ticket:3786
12997634bMartin SjölundRemove varkind from DAE.RECORD_CONSTRUCTOR
027b44e24ptaeuberAdd compiler flag to skip tearing for specified components
0d11bbe98ptaeuberIntroduce indexing of strong components
fc4de9ec8Martin SjölundTry to free data to collect front-end garbage
fd246e86fAdeel AsgharSet OMBUILDDIR properly.
1f4723effniklworsMerge branch 'master' into clocks
dec85325dMartin SjölundConsume less memory traversing expandDer
ad9aa799aMartin SjölundGet a better default size for SimCode hashset
98c1ed01cPer ÖstlundImprove instantiation caching.
b1a1225dcRüdiger FrankeImprove stop test and logging of Newton solver
f90b5128dMartin SjölundFix typo extern extern
b0f602615Martin SjölundFix problems with errorext bootstrapping linking
2c7da6d0cMartin SjölundFix bottleneck for create model info
c3cf1e923Martin SjölundImprove extractVarsFromList
f6051a17fvwaurich- caching of evaluated functions
058fd5a91Rüdiger FrankeAdd variable attributes to Newton solver
8f17d04ccMartin SjölundMake error messages consume less memory
17d76a045hkielFix compilation when not using SUNDIALS
9c5b9e708Rüdiger FrankeAdd new attributes to IAlgLoop
583180ae4Adeel Asgharcopy PDEModelicaBuiltin.mo to builddir_lib
000a65f4aRüdiger FrankeMake more variable attributes available in alg loops
2894deef3Martin SjölundDo not allocate memory to traverse prefix
96898a5deWilli Braungeneralize and move dasslJacobian flag
e44d63b88Martin SjölundReplace HT with AvlSet in InstExtends
df3f1c944Willi Braunextends solver stats for all solver
e8fbdf632Rüdiger FrankeImprove stop and error tests of Newton solver
41d4cef69hkielavoid copying tuples recursion -> loop (BackendVariable.getVarLst)
7d8f15f2cptaeuberIntroduce runtime flags for using sparse solvers
fda31e08aptaeuberIntroduce flag to skip tearing for huge systems
325d842c0Rüdiger FrankeWhitespaces Newton solver
cf3ceac0aadrpomake sure we have attribute defined before we use it
116983850adrpoupdate 3rdParty
fd0af6a15Martin SjölundAdd Avl sets in addition to trees
be289f9d7adrpofix windows build
86230f2f4Adeel AsgharAvoid some warnings.
17bf815c4Rüdiger FrankeSmall cleanup
9027e889dhkielavoid intermediate lists instead use: List.fold(List.map()) -> List.applyAndFold() List.map(List.map()) -> List.mapMap() listReverse(List.mapFlat()) -> List.mapFlatReverse()
6a1e39bcdhkielrecursion -> loop
6c0fc0ddaptaeuberAdd missing comma to log-option
b500b8450Per ÖstlundMove conditional component info to environment.
d89da7c60Martin SjölundKeep track of more memory allocations
8287b0b0dMartin SjölundDo some cref compare without printing to string
c15031068adrpoupdate 3rdParty in OMCompiler
70d6f0e22Martin SjölundUse OMC allocation in more places over GC
a2943a8aeMartin SjölundOptimize crefStr slightly
e841e30dcadrponeeded defines for Linux
817c91616adrpofix ifdefs in omc_config.h
5e18b0523adrpoadapt to msys2 mingw32/mingw64 - ticket:2578
b7a25b3f4Martin SjölundUse OMC allocation functions instead of libgc
68465ab6aMartin SjölundFix compilation
536387b30Martin SjölundProfile memory allocations for strings
4f671af01Martin SjölundDo not use listReverse in append_reverse
b4f223efaMartin SjölundHandle listReverse of 1 element as a special case
18c51d6ecMartin SjölundMove functions into new package ElementSource
492b0ccbeMartin SjölundDo not allocate operations if the flag is unset
5f5544408Martin SjölundReduce the maximum codegen threads to 2
0aff3d1e5jhagwrapFunctionCalls: avoid simple equations
7100384feMartin SjölundWorkaround for bugs with hash tables
f49dbc4a8Martin SjölundFix referenceEq for traverseExpBottomUp reduction
cd37dee62Martin SjölundUse a single shared HashTable for Inline.mo
8bddad557vrugeclean up
a2edcfd4cvruge- move some variable-function to BackenVariable - function for further development
17340edfavrugeimproved simplifyComplexFunction
d7ed464b2Martin SjölundInline: do assertion before memory allocation
d42016bd8vrugeimproved isContinuousIntegration for expressionSolve
a0ee81bccRüdiger FrankeUse VarKind JAC_VAR for Jacobian SimVars
948feba7fRüdiger FrankeIntroduce VarKind SEED_VAR for SimVars
aea896ce3Martin SjölundUse implode_reverse in PrefixUtil
98214dcfeMartin SjölundUse referenceEq in more places in InstExtends
2ddae7133Martin SjölundEnable code generation in parallel
3ad7933b3vrugeimproved solveSimpleEquation
28678f068Martin SjölundUse constant lookup for more operators
34d31de30Martin SjölundUse constant lookup for more operators
e26c7b244Rüdiger FrankeDeactivate optimized matrix assign
718667496Rüdiger FrankeAdd seed variables to SIMVARS
392b6e647vrugeExpressionSolve: added rule for solve if-expression inside continuous integration
49bc0cb34hkielpreserve some more tuples
22754cb9dMartin SjölundUse constant lookup for operatorsBinary, etc
18bb4e8a2Martin SjölundDo not generate function code for constants
141c87f0dPer ÖstlundCleanup ConnectUtil.
5ed2c5ed4Martin SjölundDetect cardinality being used
c914d20d4Martin SjölundReduce memory used by state machines
d00a5127aMartin SjölundSome changes for C90
82e78ebd5Martin SjölundReduce memory allocations for ConnectUtil
13e54206fMartin SjölundChange to prepend instead of append
e5d70b8c4Martin SjölundRemove redundant size Integer from HashTable
7eb2bd0d2Willi Braunimprove sortEqnsVars module
1aec67d1dhkielpreserve more tuples
19712133aLennart OchelImprove description of module wrapFunctionCalls
27234f653adrpo- windows fix for ticket:3809
a78d6b339vrugeuse System.tmpTickIndex as counter
e0b38d17ehkielremove tuple decompostion-recomposition
4da6f5b06ptaeuberSolve assigned variables in when-equation in the equation
ae2268058hkielOptimize some operations on lists
971d7f1d9Martin SjölundDo not reset matching on no change
09afcd140Martin SjölundFix stack overflow in traversal
29cc490f3hkielreplace List.flatten(listReverse(l)) by List.flattenReverse(l)
2eb7120c0Lennart OchelAdd libomopcua.dll to .gitignore file
e57ec5c74hkielFix SimulationRuntime/c for OSX
8d51784eeRüdiger FrankeRevert "Access iterators locally in alg loops as well"
3b38cab64Martin SjölundFix for unassigned variable in function
536d88e04Rüdiger FrankeCreate closure for functions without args
a37f8baceRüdiger FrankeAccess iterators locally in alg loops as well
630a9d05dptaeuberPrototype for total tearing
7d676ef9fLennart OchelImprove documentation of some flags
789f9965ccrupp2implement numerical linearization
f1c557c84Per ÖstlundDecrease default instantiation cache size.
cedd89a12Martin SjölundChange order of listAppend
1e32d47b6Per ÖstlundDisable removing of duplicate equations.
16226ebe6Per ÖstlundAdd new instCacheSize flag.
3dc2a248fvrugeslight improvement (ticket:3801)
992c9244fMartin SjölundRemove unused code
5ad8e78a7Rüdiger FrankeAttempt to fix msvc build after 9a0cbdb
5e8c11b19adrpo- fix ticket:3801
76e6efa9eadrpo- revert previous commit
c81d1df46adrpo- attempt to fix ticket:3801
6eefa07bdMartin SjölundRecord sorting/state selection in execstat
9feeed444Rüdiger FrankeTweak F77 call args
9a0cbdb5cRüdiger FrankeImplement identity function
3702bb9bdMartin SjölundDo not use Option in FGraph.openScope
7f405eff6Martin SjölundDo not allocate same Absyn.CREF when traversing
9a6f2aa2bvrugedon't inline inside solveSimpleEquation (performance issues after inline)
50ebc1fe6Martin SjölundFix scalability of matching
f98a3b2a6Martin SjölundDo not allocate tables for DSS using uode
e07680e1dMartin SjölundDo not compile dlopen for FMUs
b6f2d8ba1Martin SjölundChange set representation for BackendVarTransform
cbd4fc8f7Rüdiger FrankeAnother fix for ArraySlice with dim = 1 vs. whole dim
bb4bdc297Rüdiger FrankeRevert "Fix ArraySlice for dim reduction if size(dim) is 1"
630d4b677vrugesimplify ASUB for binarays
89a5ee4e3Martin SjölundAppend in the fast order
9fef384bcMartin SjölundImprove performance of traversals
acf466e4cMartin SjölundImprove performance of traversals
fdacf597aRüdiger FrankeSupport external function that returns a string array
c74ac6c47Rüdiger FrankeFix ModelicaAllocateString to consider null terminator
d4f46815aRüdiger FrankeFix ArraySlice for dim reduction if size(dim) is 1
84a39dc5aRüdiger FrankeLet ModelicaFormatError format the message
86d4eee6eRüdiger FrankeFix compilation errors for ModelicaTest.Utilities
1fe4ff25cRüdiger FrankeSupport ArraySlice with negative step
e9bb3a161Rüdiger FrankeSkip actual simulation if no time span specified
5aae6d2ddRüdiger FrankeClean up duplicate and unused templates
7514136b1Rüdiger FrankeImprove indentation of Cpp array code
bfe5eb20bRüdiger FrankeDirectly call Slice constructor for slice expressions
0af318b75Rüdiger FrankeAttempt to fix the reverted ArraySlice issue
ce2f88168Rüdiger FrankeRevert "fixed bug which lead to wrong cat_array behaviour for ArraySlice"
5f32cac6fvrugeRevert "solveSimplEquation change order"
a53faabc9vrugereduce implicit inlining
6387b4356vrugeFix for #3791 don't force inline function with annotation(Inline=false), trust modeler
b84340bb2Rüdiger FrankeImplement vector conversion for dynamic arrays
9f902c3f6vrugeadded rule for derive DAE.RECORD
41a0601eevrugerecursion -> loop
b4d4a97a5vrugeadded rule for derive SCONST
7b8142a69Rüdiger FrankeFix for #3782
9d2b906f3Rüdiger FrankeKeep top level input / output of connector arrays (#3794)
cbd8a4222Lennart OchelUnbox modelica_string
65736d134Martin SjölundPerform list filtering in the fast order
9cffa0503Martin SjölundFix stack overflow
44a9f5944Martin SjölundReduce hashtable bucket size
4c591e7f4Martin SjölundSpend less memory trying to build a queue
1e4a45875Martin SjölundMove creating of list
a7cea92a2Willi Braunfix function description
ffd22493dLennart OchelMaximum number of event iterations
9b7aa44deMartin SjölundAdd functionality to record all mmc_alloc_words
ffcb0f705Martin SjölundDo not compile embedded server for source FMU
b472093c8Adeel AsgharMore derived units. We need more derived units to fill convert unit drop down.
95e3a3bedMartin SjölundAvoid some memory allocations in tearing
b4c41d710Rüdiger FrankeMove creation of boost symlinks to CMakeLists.txt
f6f9906efMartin SjölundAdd a removeVerySimpleEquations pre-opt module
8fc40e641Lennart OchelRemove redundant function dumpTypeStr
fbd279761Lennart OchelFix a typo
72574824cLennart OchelSimplify generated code of algorithm when clauses
f2e9b23a6Martin SjölundSource FMUs do not need embedded servers
0f08ea6e4Lennart OchelSimplify implementations of math functions
a56dd5571Lennart OchelFix indentation
3f8822a5dMartin SjölundFix scalability for Tearing.selectCausalVars
2f31423a9Martin SjölundAvoid memory allocation in traversals
02cbe35adWilli Braundump error messages only with failtrace for traverseBackendDAEExpsEqnsWithUpdate
80ab59a65Willi Braunfix debug dump of time
15e8be768Lennart OchelDon't replace operator mod in findZeroCrossings
1fbe837d1Martin SjölundFix stack overflow in SCodeDump
5e63e23c4Martin SjölundMoved execStat to its own Util package
01f0b65afadrpo- add open62541* to ignore list
bceaafe5cadrpo- fix the opc_ua build on msvc
6b6f863c7adrpo- fix the opc_ua build on mingw
a2fcd1e4dadrpo- fix opc_ua on GCC
0424117ebMartin SjölundExperimental support for OPC UA embedded server
2d44ae9bcMartin SjölundPartially restore the old OPC branch
7a512b5f6Rüdiger FrankeAutomate symlinks to boost includes (#3760)
b99bfbd17vrugetry to fixe compilier warning
05d473af3Adeel AsgharAdded API getDerivedUnits
b98debe16ptaeuberOnly dump info for casual set if DT is activated
c3889ed06Willi Brauntry to improve solveLinearSystem
029e82ef5niklworsMerge branch 'master' into clocks
de2cd141fMartin SjölundAdd script to analyze library logs using execstat
5791e855eMartin SjölundUse execstat for all tested libraries
0502333d7Rüdiger FrankeInstall cross compiled libs in target path
92a48a53dRüdiger FrankeLink target dependent version of OMCppDgesv lib
c3dcba652Per ÖstlundFix for #3773.
f71b9780dvrugesolveSimplEquation change order
230aa3eb9Per ÖstlundCode cleanup.
b5698132dvwaurich- fix FMU valueReferences for non-consecutive array-variables
84e82edd3Per ÖstlundFix for bug3773.
5d60737a5vwaurich- fix static gcc lib linking issue for g++ 4.4
dd0c8bd4dvrugeimproved ExpressionSolve
34e4a4c0dLennart OchelClean up some runtime calls
708659720ptaeuberNew data type for inner equations of tearing set
6bd48ef39adrpo- properly comment out the print as \n expands on two lines
ad1689a92vrugeimproved solveSimpleEquations
01b9dd9b6Lennart OchelRemove prototypes of not existing functions
94f82573bvwaurich- remove maxDer info from SimCode.Modelinfo
0c0fc1a6cMartin SjölundDo not print the variable filter
e022be4d4vrugeadded cases for getNumJacEntries
473cb9ca3vrugeactived solveSimpleEquations for simulation
c6caa77a8Rüdiger FrankeClean up expTypeArray templates
0c3dbc0d7Rüdiger FrankeAdd support for arrays of arrays
6b8ad0f99Martin SjölundFix scaling of getHighestDerivation
b9f7f012fMartin SjölundTranslate to iterative Tpl.mo
67f1d6b76Martin SjölundImprove tail recursion
5fc71003dMartin SjölundPrevent stack overflow in graph colouring
f5d2be9b3Martin SjölundImprove scaling of collapseIndependentBlocks
88cdf8efeRüdiger FrankeGenerate static OMCFactory for all targets
0a629c718Martin SjölundKeep all release notes in one place
2c2f53c0ahkieluse append_reverse
8793d2307Rüdiger FrankeUse OMCFactory dll with msvc
dc190dc6aRüdiger FrankeExport OMCFactory for dll linkage (#3760)
65c36697cRüdiger FrankeRevert "Revert "Remove static link dependencies of dynamic runtime""
5c0486058adrpo- fix libraries in ModelicaLibraryConfig_msvc.inc.in
c34119919adrpo- fix order of libraries in CMakeLists.txt - fix libraries in ModelicaLibraryConfig_msvc.inc.in
c27405c8cadrpo- fix cpp runtime build on msvc
95e9b4641Rüdiger FrankeImplement cross compilation for Cpp FMUs (#3760)
4bb6e51b8Adeel AsgharDo not throw the error message to stderr.
555843c8aRüdiger FrankeLink FMUs with static gcc libs under Windows
73f0312fcvwaurich- fix valueReferences for FMU export cpp runtime
17b662bcfAdeel AsgharFixed convertUnits interface. Added a fail case for convertUnits.
da98e25ddhkielrecursion -> loop
0fd4258bfRüdiger FrankeCreate precompiled header for dynamic build only (#3760)
c200a484fRüdiger FrankeFirst windows fix for previous commit
d48d574b0Rüdiger FrankeConfigure cross compilation of Cpp runtime (#3760)
e741ddf6bMartin SjölundCreate a new bootstrapping tarball
608ffbb49Martin SjölundAdd support for input output variables
fedeb7c54Rüdiger FrankeFix type name for subtype of basic
f162d5108hkielrecursion -> loop
3fc9ebdb1hkielRemove dumping of graph in production code
30f3e8b1cRüdiger FrankeAvoid overwrite error on mv (#3670)
a801b41e5Rüdiger FrankeRevert "Remove static link dependencies of dynamic runtime"
0e205e221Niklas Worschechreverted 1a7228c340febb755d92899b8e75aff032f43ebb
df9f30256vrugesemiLinear as inline function: see https://trac.openmodelica.org/OpenModelica/ticket/3765#comment:7
87f4bb3e1vrugeDIVISION_SIM map again inline function - see https://trac.openmodelica.org/OpenModelica/ticket/3765#comment:7
fced1932aMartin SjölundCheck for failed model structure
10fe64951hkielrecursion -> loop
0fe22a278hkielarray optimizsations new function Array.createIntRange()
80dcee464Rüdiger FrankeAttempt to fix Windows build (#3760)
1a7228c34Niklas Worschechfix for initialization of the clock variables
b0a5479d8Rüdiger FrankeRemove static link dependencies of dynamic runtime
05ca4d21eRüdiger FrankeSmall fix to previous commit
fea7a0a35Rüdiger FrankeBrake up dynamic and static build of Cpp runtime (#3760)
91127f132Per ÖstlundFix listAppend usage to get rid of some warnings.
a5957dc51Per ÖstlundFix push_list_back on empty DoubleEndedList.
eeff847b6Niklas Worschechchanged clock handling with state events
d0f6b479cvrugefixed semiLinear - see #3765
6c723ab0bRüdiger FrankeFix generation of Cpp start value accessors
46515af0aunknownchanged results output at start time if events occured
0bcc79ae3hkielImplement and use List.listArrayReverse() as a short cut for listArray(listReverse(lst))
6d761ce5eMartin SjölundFix appending variables in correct order
b629d9d40Rüdiger FrankeRemove unused include directories
93f2bfc8aRüdiger FrankeAvoid compiler flag for standard /usr/include
12879a046Rüdiger FrankeFix capitalization of windows include
1aa261249Rüdiger FrankeExploit CMAKE_POSITION_INDEPENDENT_CODE in Cpp runtime
1be79369cvrugeDynamic Optimization: improved naming
cf3a4160dLennart OchelRemove useless line of code
757fe5fc3Niklas Worschechfix for save pre variables
facc2565fptaeuberDynamic Tearing Full Prototype
bf26a2275Lennart Ochelchange differentiation rule for the homotopy operator
6b7b84857Rüdiger FrankeInclude std::thread only if configured (#3760)
af457aa9fMartin SjölundHandle lost information for MetaModelica record
6d86372efNiklas Worschechfix for save call in cpp template
83309e54bRüdiger FrankeUse const qualifier in declarations of external functions
a4ad037f4Rüdiger FrankeFix passing of Cpp array inputs to external functions (#3758)
d88a3ea5cadrpo- switch version to 1.9.5-dev
5ccf9cba5adrpofix 1.9.4 version and date
6f118e9d7Martin SjölundAdd Adrian's generic AvlTree to the backend
8f0669447Martin SjölundImplement cevalBuiltinSum
b11455126Martin SjölundAllow if instead of guard in the grammar
0e2f188d5Martin SjölundHandle bootstrapping DoubleEndedList.mo
30945393fMartin SjölundAdd a double-ended list implementation
7e8eeef24Martin SjölundAdd support for type variables in uniontypes
22263b6cbhkieluse list comprehensions inline small helper functions
db37146e7Rüdiger FrankeFix context of function Cpp calls (#3742)
19160685bvrugeBackendDAEUtil.tryToSolveOrDerive: guard vs. zero --> zero no dependence --> UNSOLVABLE
80b17a190hkielClean up some code avoid warning about incorrect use of listAppend recursion -> loop listReverseInPlace where possible
0cdcd6a6cbernhard ThieleSM workaround removed for Cpp runtime
3e54f2ac7Rüdiger FrankeImprove error messages of SynchronousFeatures
494857e2aRüdiger FrankeRemove duplicate traversal for clocked states
e2f045ad8Rüdiger FrankeFix VarKind of previous after commit 69f1837
1845ffa32Rüdiger FrankeProper treatment of clocked states (#3741)
69109754dRüdiger FrankeRevert "Attempt to fix #3741"
8236a0d33hkieldo not use listAppend to prepend one element
12ddb6a9aRüdiger FrankeAttempt to fix #3741
f31e10e45Martin SjölundMM: Multiple algorithm sections without warning
0e016dc23bernhard ThieleFix array elements #3651
99fe3bde4Rüdiger FrankeKeep order of clocked partitions for regression tests
4d11cc6c5Rüdiger FrankeInitial implementation of clocked continuous equations
89ded3c0ahkielremove superfluos check for failure it already failed in the first case
b8f53b08dhkielfix two compiler warnings in parser
b388aff69adrpo- cast to double so that 1/10 doesn't become zero
a391fa93aMartin SjölundUse isPresent() to disable some allocations
bcd948c9eMartin SjölundAdd basic memory profiling to execstat
cfa27e9dfMartin SjölundAdd implementation of isPresent()
150bb05f2Adeel AsgharMore output from getClassInformation.
8abe1ff40hkieltry to reduce memory usage - use listReverseInPlace where possible - remove some recursions and matchcontinue
cc074b4b1Rüdiger FrankeImprove error message if resolveClock fails
f8a8026c3Martin SjölundFix zlib for OSX nighly
224e2c4cbMartin SjölundWorkaround for Java8
b308dafc7adrpo- fix front-end parts of #3503
0eaf54c1badrpoattempt to fix Linux build
06d03b4abadrpoupdate 3rdParty to fix windows build
fa8b0d281Martin SjölundMetaModelica has more bits available
64554e12fAdeel AsgharAdded Debugging.mo to examples.
ef88044c4hkielput cascaded listAppend in optimal order
f0f455beahkieloptimize some list operations matchcontinue -> match
3a40ea362Martin SjölundUpdate external C-sources for MSL 3.2.2
1d8aec65fWilli Braunfix functionTree propogation for system homotopy0
dc5bdff68Willi Braunbetter fix for #3738
540ad848fRüdiger FrankeFix FMI 2.0 dependenciesKind
90c58b388Rüdiger FrankeFix FMI 2.0 dependencies
6e9b4f9faWilli Brauntry to fix #3738
77ddf9ef0Martin SjölundFix some ordering of listAppend in SimCodeUtil
fc73d033bMartin SjölundChange order of some listAppend calls
7e7852d9cMartin SjölundRemove FMI1 log-message
7f65a75baWilli Braunremove unnecessery variables merge
f19d3870dWilli Braunremove unnecessary array list transformation
38f41651fAdeel AsgharInclude OpenModelica in version string.
00e96acedMartin SjölundChange order of listAppend in BackendDAEUtil
5161a931cMartin SjölundNotify the user about listAppend in wrong order
0a0d48085Martin SjölundImplement Dangerous.listSetRest
23bb6ec07Rüdiger FrankeFix 3a7d119 for arbitrary tree traversal order
e4f94d662Martin SjölundAdd support for MA Impure annotation
769e528bbRüdiger Frankeobtain grand parent from previously stored parent
3a7d119beRüdiger Frankeimplement backward propagation of clock conversions
dbf171042Martin SjölundUse a FIFO instead of slow listAppend
811419692Per ÖstlundFix segfault in InstSection.unroll.
3f4477c82Martin SjölundFix code generation for add-array-scalar
d65644efcMartin SjölundOptimize max({arr})->max(arr) instead of arr
26ec49ed0Martin SjölundHandle expandExpression for unary
a1a01c3e6Martin SjölundInitialize variable to zero
0bb9e15c6Martin SjölundImplement vector() code generation
c64c048ddMartin SjölundOSX fix for new MSL tables
5cd19d946Martin SjölundAllow modifications for addClassAnnotation API
5e8f396b9Martin SjölundUnparse {a for a in as} correctly
cd48e7db8Rüdiger FrankeSupport multiple integer base clocks
cf999be71Willi Braunimprove extractVarFromVar
f140ab410Willi Braunimprove BackendVariable.mo further
d6b5549e1Willi Braunadded isVarAlg function
5458fb549Martin SjölundHandle poorly unparsed strings
5fd29e600Martin SjölundHandle StandardTables depends by dynamic linking
32cb4c174Rüdiger Frankeimplement event clock in Cpp runtime
5d5c631bavrugeadded debuge dump for loops
ca1480a06hkielremove some matchcontinue
f5881f25evrugerecursion -> loop -small optimization
3a8f02ad7vrugefixed compiler warning
2d6fcff9avrugeremove matchcontinue for some functions
35e5ffaf4vrugeaddEquation: remove matchcontinue
e5a26e43fhkielrescursion -> loop
a3605edd5Martin SjölundAdd ModelicaMatIO for MSL 3.2.1
e4cafbc9cMartin SjölundNew ModelicaExternalC
bd3e67c9fMartin SjölundFix a bug that lost tokens in the diff algorithm
8e32ac5ecPer ÖstlundFix for #3722.
01fdb3eb6Martin SjölundReject invalid polymorphic function call
457cabf7dMartin SjölundConstant variable names as constant patterns
8b8930dabMartin SjölundPartially evaluated functions depend on modules
064eb9e3fJan ŠilarPDEModelica bugfix
1a69278e2Jan ŠilarPDEModelica boundary extrapolation
bd4430075Lennart OchelAdd rule to differentiate homotopy
8125c69ceLennart OchelRemove dead cases and cleanup
b559b1dd6Lennart OchelFix expansion of array expressions
a61daefb4Willi Braunfix for #3381
fa412ec6dMartin SjölundSusan: Do not assign the same variable twice
f13e19fb6Martin SjölundAdd check for duplicate definitions
0b12aa5a5hkieluse direct access to head and tail of lists we already check for empty lists in the for-loop's condition, no need to do it more often.
4ddb2fed9Willi Braunadded cruntime LOG flag
fc9c9bb10Willi Braunfix for #3685
d541c90aaWilli Braunfix #3701
da4204cf0Adeel AsgharFixes #3311. Read __OpenModelica_infoHeader annotation.
cb732fc28Lennart OchelRestrict domain of definition of exponential function
472d00ec0hkielrecursive -> loop
a64582dfbPer ÖstlundFix for #3577.
c93aec78bMartin SjölundDo not optimize guarded patterns to switch
23dd7a9c2vwaurich- fix HPCOMScheduler
3542223e3jhagModified array case in record handling
a59c82496Martin SjölundFix stack overflow
4bed8a964Martin SjölundFix stack overflow
86267ae3bLennart OchelDon't wrap functions within if expressions
265024d6cRüdiger Frankefix to yesterday's commit c06017c
c06017c0dRüdiger Frankecheck for equal base clocks
3cd6f318fLennart OchelFix CRLF issue for override files
14d87350dLennart OchelFix typos
08f36deeeMartin SjölundFix stack overflow
7153a59d3Adeel AsgharCheck for what kind of FMUs we can export.
c4d4b4a60Martin SjölundFix stack overflow
0054a876eMartin SjölundHandle comments in uniontypes with single record
4d60525aeMartin SjölundIntroduce List.append_reverse
15d130fa8Martin SjölundFix stack overflow
812a38e75Rüdiger Frankeguard against synchronous models without variables
96ebbdd3fRüdiger Frankeadapt +d=dumpSynchronous to expected output
837ff6d53Rüdiger Frankeremove new debug output from +d=dumpSynchronous
2c5439f29Rüdiger FrankeImprove clock propagation in synchronous models
c37fa36a0Rüdiger FrankeMove Clocks from ModelStructure to TypeDefinitions
8768d11f8vrugebuild don't fail without git
49dc36a42Rüdiger Frankework on clock sub- and supersampling
54e3041c3Rüdiger Frankefix clock sub- and supersampling in Cpp runtime
4d534f721Lennart OchelAdd more trace statements
b3692d069Lennart OchelClean up code generation
55cb6490aadrpofix frontend performance degradation #3697
63d57dd2cLennart OchelHandle roots of negative values
56626b0f9adrpoa bit of improvement for #3668
78ba5299eWilli Braunreview simplify usage in symbolic jacobians
880ef3cd7Martin SjölundSome runtime fixes for VS2013
1adf486dcmhartungfixed bug which lead to wrong cat_array behaviour for ArraySlice
ecf792f37jhagdon't wrap "sign"-calls
01caff945Willi Braunadded differentiation rule for built-in sum call
5a950a9daWilli Braunfix #3684
7e414c9fdWilli Braunfix #3687
dc7da8cafhkielmatchcontinue -> match
d41fb9780hkielUse filterOnTrue instead of filter
3cd16cc1ahkielrecursive -> loop list optimizations
dd6bae1f3adrpofix for #3688 and #3641
31eaa49f1hkieloptimize isConst*Work* removes need for boolean input argument optimize list operations
18edd82bfbernhard ThieleDumping state machines to streams
e8a1b5cc5Per ÖstlundFix for #3662.
325267489vrugemake equationList2 tail recursive
325841021vrugemake some traverseExpsOfExpList_WithStop tail recursive
4492ef73evrugemake equationNthSize1 tail recursive
fdebf7118vrugeequationNth1: removed matchcontinue
bc07b6905vrugemake traverseExpsOfExpList tail recursive
a38fd9aeevrugemake traverseExpsOfEquationListList_WithStop tail recursive
ffa3db066vrugemake traverseExpsOfEquationList_WithStop tail recursive
a2301d8a2vrugemake listEquation1 tail recursive
792f93ca7hkielfix stack overflow make functions Ceval.ceval and Types.matchTypeList use loops instead of recursion
a2d3cf252vwaurichRSE-fix
5f792d289Willifix #3668
c343375daWilli Braunimproving analytic jacobian flags
758919984adrpoupdate .gitignore
68966ebbdPer ÖstlundImprove performance of getComponents API.
ddccaeb94Willi Braunimproved flags for symbolic jacobians
9c9d72e61Martin SjölundSet LC_NUMERIC to C locale
03b0c4c4eMartin SjölundAdd boxvar function for boolString
a555ec0ddMartin SjölundHandle boxed arguments to String()
daf875123Martin SjölundDo not install OMEdit files
824acedabAdeel AsgharFixes #3376. Added a batch file for command prompt.
19362e064vrugemake jacobianConstant tail recursive
ff665c9e9Martin SjölundFixes to compile with Visual Studio 2010
1ab7b4735Per ÖstlundChanged behaviour of getComponents API.
1088cbd2bWilli Braunadded debug flag to disbale jacobian calculation for SCC analysis
2ab6a8c39Martin SjölundFix code generation for VS2010
1d662e35cMartin SjölundCheck for NULL
edeb32092Martin SjölundRemove RCS-id from source files
272277c0cbernhard ThieleAdded internal flag DEFAULT_CLOCK_PERIOD
443a05959Per ÖstlundMerge remote-tracking branch 'origin' into perffix
b95e6ebd0Per ÖstlundPerformance fixes.
a2c7ddf0cLennart OchelMake execstat dump each step in a single line.
70ce925f7Martin SjölundUse correct bootstrapping header during stage 1
d422fe7acMartin SjölundAdd missing includes
56e3dffcfhkielconvert some matchcontinue to match
9415bfe3ahkielconvert some matchcontinue to match
6cd879ff8hkieluse correct return code
b88ce87d3hkieluse match instead of matchcontinue modify pushRedeclareIntoExtends3() to make it tail recursive -> saves time and stack
3433e8319Martin SjölundFixes for bootstrapping PDEModelica
85b39a0d0Jan ŠilarAbsyn.EQ_EQUALS splitted into EQ_EQUALS and EQ_PDE.
82b0921b7Jan ŠilarisField attribute / API function
a2da0ef53Jan Šilarfield equations without pder() include also boundary nodes
154579c01Jan ŠilarPDEModelica -- extrapolation on boundary
9c6611271Jan ŠilarBugfix
f7fe0d905Jan ŠilarPDEModelica -- flag in grammar
0ca507a92Jan ŠilarPDEModelica pdemodelica_enabled()
186d4012fJan ŠilarPDEModelica flag
9a9dd8ae4Jan ŠilarFixing previous rebase.
7b107b25eJan ŠilarFlag --PDE removed.
554b2a608Jan ŠilarPDEModelica fag and new built-in file
c1ec6d8fdJan Šilarfixed bad rebase merge
084a83663Jan ŠilarPDE
a384029e5Jan ŠilarPDE extension - regions
dae025210Jan ŠilarPDE modelica. Some model error checks.
187c57b08Jan ŠilarPDE extension
692fa0f95Jan ŠilarDiscretization of PDE equations.
aed8fab21Jan ŠilarMoving code around.
61c812f85Jan ŠilarSeveral changes in PDE extension
f0da417daJan ŠilarWork towards discretization of PDEs
4d0cbd81fJan ŠilarReturning (field,domain) tuple list from elabField() upto instClassdef2.
12a5593b9Jan ŠilarOption domainOpt; added to SCode.EQ_EQUALS. Subsequent changes.
bf029a092Jan Šilarfixing code due to added domainOpt to Absyn.EQ_EQUALS
6defd95fbJan Šilarstarting indomain implementation
9090acd56Jan Šilareach prefix is added to every modifier in fields
71d9e6a06Jan Šilarelaborate function now replaces field variables with arrays
1ab796528Jan ŠilarelabField function - converts field into array. Not finished yet.
01c0933bbJan Šilarstarted writing function elabField
8d3896689Jan ŠilarAll changes from PDE branch from svn in one commit.
748d6d576adrpofix windows build
801d11818Per ÖstlundGeneric AVL tree improvements.
e0b0d22a6Martin SjölundChanges for bootstrapping header
0c39bf621Lena Buffoniupdate requirement bindings
f45a8b27aPer ÖstlundFix for #3669.
5018d9065vwaurich- dont evaluate start values for parameters if there is a bindExp
0a4684b83Martin SjölundFix OSX configuration (broken LAPACK)
cf5d61e49Martin SjölundUpdate 3rdParty
0214b3af3Martin SjölundHandle empty within for Modelica diff
9bf760883adrpodo not use time in functions used in coverage testing
47ae7d2d7Per ÖstlundFix for #3666.
1a62d7857Martin SjölundHandle addition of comments in Modelica diff
4f02c1718Adeel AsgharFixes #3670. Order target language. Added `OpenModelica` for `getVersion()` output.
240ce9eb8vrugematchcontinue -> match
86500a355Rüdiger FrankeRemove obsolete OMCppSystem_FMU_static
6d7b09352Martin SjölundDo not include rtclock in FMU (#3616)
1b64dc04bMartin SjölundFix #3616 - stringAppend missing in FMU
5fcced980vrugeimproved debuge for optimization
fc1c55df8Rüdiger Frankefix use of dgesv for Cpp FMI export
73392453aMartin SjölundChanges to compile with VS2010 express
2c85e5f40Rüdiger Frankeadd solver libs to Cpp FMUs compiled with msvc
6f7b438f5Rüdiger Frankefix Cpp FMU name if compiled with msvc
8d53fa933Lennart OchelFix #3644
d9e7af7b5Martin SjölundAdd a sanity check to the Modelica diff tool
521a5df00Martin SjölundFixes for ticket 3642
fb06e8095Martin SjölundRename solvers
9056eb25bvrugesome fixes from static analysis
63ec07723Per ÖstlundFix for #3528.
08f0eec4ePer ÖstlundFix for #3608.
a5d0c6951Willi Braunfix #3659. - accidental removed an exception for inlining while differentiate
a8ef4b2c8Rüdiger FrankeRename hpcom init file
12039e236Rüdiger FrankeRename Cpp simulation init file for OMEdit
002aeac2ehkieldirect assignment of s in String(s)
24fc4a1eahkieloptimize String(s) just return the string
3e1c6c447hkielruntime code for String(s)
9aeedf519hkielfix clang analyzer warning
dcc0ed6a4hkielconvert some matchcontinue to match makes some functions tail recursive
905b903ecMartin SjölundRename explicit trapezoidal rule to Heun (RK2)
9c5976303Martin SjölundAdd support for the trapezoidal method (RK2)
d89bde8c9Martin SjölundDo not stringAppend if either side is empty
379c4c55dvrugefixed csvInput
530076c5cvrugecsvInput: input order by name
993bd3a11hkielchange some matchcontinue to match
e2d5aa8c3Lena BuffoniBindings for requirement modeling support
58962877cLennart OchelModify getAvailableLibraries
25cfcd61cLennart OchelUpdate .gitignore file
333813aaaLennart OchelRecover original cse index logic
52c001d29Lennart OchelReset cse indices for each back end run
996828154Willi Braunactivate wrapFunctionCall for jacobians
ba87c6558Willi Braunremove error messages from convertResidualsIntoSolvedEquations
c81dc9f53Willi Braunactive symbolic jacobain for loops without functions
4b7f96a84Willi Braunfurther improvments for differentiation
658b92799Willi Braun# This is a combination of 3 commits. # The first commit's message is: fix function differentiation
3ccd90a97Willi Braunfixing differentiation of Records
49bf67a4eWilli Braunuse global index in wrapfunctionCall module - This allows the usage of the modlue at different stages of the compile process
3029c6409Lennart OchelFix Windows makefile
152dfb16cvrugeadded flag: csvInput - use libcsv.lib for external input
10e85bd73hkielconvert matchcontinue to match
b1d0c1d50Per ÖstlundFix for #3577.
767d90822Martin SjölundMake source FMU smaller (minimal files for dgesv)
51ca6a500vrugeimproved heuristic
783a9b022hkielconvert some matchcontinue to match leads to some tail-recursive functions
06265e072vrugematchcontinue->match
104520f80vrugeterms heuristic: don't distinguish der(x) from $DERAliasx
b7eda9c2eWilli Braunfix function fixAliasVarsCausal2
de5898cdbvrugeadded first heuristic for sorting terms (optional)
072f8e984Martin SjölundFix stack overflow in removeStateDerInfo
b1fb7f98chkielget rid of some matchcontinue statements
b04455e08hkielmake two functions tail recursive
c89f8ab1fMartin SjölundFix stack overflow
675b7d6fbMartin SjölundHandle CRLF in the lexer
f614495f1Martin SjölundstringGet should return unsigned integers (0-255)
f105a55bePer ÖstlundFix for #3640.
ba656e8f8hkielFix order of equations in json file (removed-initial must go directly after initial)
47db7d2baWilli Braunfix accedently commited logic
a2e0a2ce3Willi Brauncleanup of symbolic jacobian of algebraic loops
3e079bc58Willi Braunpreparations to activate NLSanalyticJacobians
3c8a7d4cfWilli Braunfix discrete differentiation of statements
8c9025a2cPer ÖstlundFix for #3633.
9f7f95eeeMartin SjölundAdd input index to M_init.xml file
ff6909b74vwaurich-fix visxml for constant systems
2fde1e424Willi Braunfix function BackendDump.jacobianTypeStr
84d4b50aevwaurich- rk12 singlerate solver
1492e9b65vwaurich- proper order of states for multiratepartitioning, some rk12 enhancements
b9b870d65Lennart OchelHandle empty unit strings
67773353fMartin SjölundInstall the new project files for FMI
b27cca871vwaurich- fix cpp tests
fd65350e1vwaurich- multirate rk12 solver for cpp runtime
f701c4657vwaurich- task graph based multirate partitioning
71918c7famflehmigClean up in HPCOM module.
dc2d3ef04Martin SjölundAdd a simple Modelica diff based on tree parsing
3c6096c5cmflehmigCleanup with respect to documentation in hpcom
a646bc72fmflehmigAdded support for dgesv to cpp runtime
cbd807d3amflehmigAdded support for dgesv to cpp runtime
f90d6e457mflehmigAdded support for dgesv to cpp runtime
49412430cmflehmig- Added dgesv to makefile, compile it into static library
fda958183Martin SjölundFix order of components in updateComponent() API
71c220705Martin SjölundDo not use nested functions in AC_TRY_LINK (#3621)
69ff31b44vwaurich- hpcom clean up
5e38c0c78Per ÖstlundImplemented a persistent array type.
80e3e04fdvrugesimplify2: improved sorting of constants
f7bf9871bvwaurich- matchcontinue in resolveLoops
a6c7cb26avrugesimplify2: improved sort of constants
dd2007d56vrugeimproved simplifyAddMakeMul
ed4729083vrugeimproved simplifyMulJoinFactorsFind
8fd278b90Lennart OchelAdd c run-time flag –ignoreHideResult
386cb9857Lennart OchelAdd support for HideResult annotation
1abd25536Lennart OchelFix potential memory overrun for large models
5e91d0f71vrugeimproved simplifyAddJoinTerms
ecd1bc603Lennart OchelFix memory overrun inside nonlinearSolverHomotopy.c
e8c89b5d2vrugeimproved simplifyMulMakePow
5088b2df7hkieloptimize some functions
8000c936fLennart OchelMake use of aux function equivtypes
3e5359659Lennart OchelDon't treat T_UNKNOWN as clock type
a14668695vwaurich- fix countOperations
eb50a09a8Lennart OchelConsider that sample may have just one argument
9297bf090Lennart OchelFix handling of elsewhen stmts in traverseDAEEquationsStmts
486515601Martin SjölundTry to detect LAPACK/BLAS better
59c32f17bMartin SjölundBump 3rdParty for ModelicaExternalC
786049c95vrugesimplify2: - split global simplification in add/sub, mul/div and others - use only one global simplification in each split
f8c1de550Lennart OchelRemoved some unused variables
2d0bc6b61Lennart OchelMangle arguments of record constructors
49e67ac64Niklas Worschechfix for inverse algorithm in cpp tempplate
ecbede07eNiklas Worschechfix for get simdata in cpp tempalte and vxworks target
8e6d4fbf7Lennart OchelUpdate dumpSimCode
51597ed54Willi Braunfix incidenceRow for WILD() on left side
b2d40b309vrugematchcontinue -> match
881d9f61dPer ÖstlundFix for #3594.
e70366d00Lennart OchelHandle deprecated post-optimization flags
6c8bc92f0Lennart OchelHandle deprecated pre-optimization flags
8759c8469vrugeimrpoved simplifyMulJoinFactors
49a533c03vrugeimproved simplifyBinarySortConstantsMul
d87d488f1vrugeimproved simplifyBinaryAddConstants
5c5b56b72vrugeremove simplify in merge min/max-values
058d1c90aMarcus WaltherUMFPACK temporary disabled to fix Windows Nightly Build
e4fdb95bcMarcus WaltherFixed issue with old GCC
ea08c41e5Martin SjölundUpdate 3rdParty sources
231fda98eMarcus WaltherAdded spaces between template brackets
f5aa01340Martin SjölundFix code generation for String(enum)
9b84eda78Marcus WaltherFixed build issue with Cpp runtime
5fcf1c892Willi Braunadded some more significant execstate statements
322d28dc8vrugesimplifyBinarySortConstants: don't sort terms if we don't have constants term
c3cf2aca5vwaurich- for-loop in IndexReduction.collectVarEqns
eba5efed3Marcus WaltherParallelized DASSL added to C++ Simulation Runtime
7e7a75baaMartin SjölundUse the index from the correct set
87f37338eMartin SjölundFix scaling issues for initialization
5f3520e5cvwaurich- for-loop in SymbolicJacobian.jacobianNonlinear
ca2207e92vwaurich- for loop in replaceDifferentiatedEqns
e677cacc6vwaurich- changed BackendDAE.ConstraintEquations to array type
45ad04c27Martin SjölundAppend in the fast order
8b75192a3Per ÖstlundImproved BaseVector.
67ce850b1vrugeexpressionSolve: - improved expand - improved rule for simplify - improved termination criterion
2ad55506dvwaurich- output empty list in differentiateEqnsLst when failing
b09bb10f5vwaurich- rewritten IndexReduction.differentiateEqnsLst()
37ad4ee40Per ÖstlundAdded arrayUpdateNoBoundsChecking.
82962b55cPer ÖstlundFix redeclare issue with generic types.
cce1788f2Niklas Worschechfix for inverse algorithm in cpp template
5a4b3a7b6Per ÖstlundImplemented more generic datatypes.
375fb6dddMartin SjölundFix cc warning about missing include
cd8c3a1cePer ÖstlundFix for #3581.
1a9a853f0Marcus Walther- fixed Intel TBB code generation - fixed serial code generation of HPCOM
352422181Marcus Walther- added the new output_type to the list of default runtime parameters (cpp-runtime) - removed some unused code
df90683deMarcus Walther- removed task sorting, because the openMP-runtime seems to use junks of sections for each thread
5028097f9Marcus Walther- changed the tail recursive MCP-algorithms to while-loops --> this will prevent stack overflows for large models
10ac684dcNiklas Worschechfix for query output results in cpp runtime
7f3814bd1Martin SjölundOptimize warnAboutVars2 for memory consumption
45515a61fadrpo- fix for feature #3417
fee3aec5cAdeel AsgharAdded some additional arguments to compile.bat so OMEdit can use it.
063ca3e1eMartin SjölundMake functions tail-recursive
56d197339Niklas Worschechfix for external string arrays in cpp template
712e46e6fNiklas Worschechadded output format parameter to simulation start script of cpp runtime
86dce0feawibraunadjust DATA object in C runtime DATA
7eeeca2a1Per ÖstlundFix for #3552.
0581f1eb2Niklas Worschechfix for handle time events in cpp runtime
372837d0bMarcus Walther- hpcom level and levelfix scheduler will now schedule the largest tasks first
ff60f2999Niklas Worschechfix for change output format in cpp runtime
67b941c70Martin SjölundUse arrayGet for random access instead of listGet
7a8c72268vrugefixed and simplify allTermsForCref - remove recursion - split terms
59192a427vrugeExpressionSolve: reduce expansion of multiplications
f81f8c6bbLennart OchelNew optimization module to wrap function calls
150aaf362Niklas Worschechfix for PrecompiledHeader and msvc build in cpp runtime
9638dc4c0Martin SjölundPrint size of DAE for sorting and matching
6ceb89f1bLennart OchelGenerate additional initialization system for lambda=0
712abe4f3Martin SjölundAllow inheritance when bootstrapping
36b9fbe04Marcus Walther- fixed C++ MinGW FMU export on Windows (the libgcc-dll is now copied to build/bin, lapack and blas are embedded into the FMU)
fe43efbabNiklas Worschechadded additionl compiler target flag for Visual Studio versions there are now the target msvc,msvc10,msvc12,msvc13,msvc15 for visual studio builds, the target msvc uses the latest, installed visual studio
6c675e6eavwaurich- getValueReference works with row major order for cpp fmus
292fdcad7adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b6c970ae3adrpo- fix windows build
b7b42318dPer ÖstlundFix for #3552.
65f402e4dadrpo- fix windows build
2d700ff8cAdeel AsgharUpdated getClassInformation to get more information for OMEdit.
3bfc949e6Rüdiger Frankeremove boost_system lib from FMU generated with msvc in release mode
2663366d4Marcus Walther- the init-XML-file of the cpp runtime does now consider the column-major storage of the arrays -> this will produce correct value references for multi dimensional arrays and fix some initialization issues
885c632bbLennart OchelRevert "reduce ExpressionSimplify-Calls inside solve(.)"
0d78a38d3Niklas Worschechchanged msvc build, latest visual studio version is used if no verion is set with VSVERSION flag
dedd5085evwaurich- reverse lists in getUnrolledArrayIndex
72f90e7c7vwaurich- fix for SimCodeUtil.getUnrolledArrayIndex()
fe5253496Federico BergeroDump empty arrays {} as fill(0,0)
945d45049fbergeroGenerating modelica output in the flat DAE dump
6c58add6fvrugeDIVISION_SIM improved check, using old logic
9f2a0ec31Marcus Walther- removed trailing whitspaces
66c68d258Marcus Walther- removed empty lines at the end of files
b9f455efeMarcus Walther- fixed HPCOM measure time functionality
d8fb05717Marcus Walther- some simple cleanups
9d31ebc8fMarcus Walther- fixed Linux build issues
701427880Niklas Worschechfix for cpp runtime release build
ee4f5b62aMarcus Walther- disabled boost threads in MSVC release mode
f0b4fd3d7Niklas Worschechadded flag to mingw make files to change Visual Studio version VSVERSION=[2010,2012,2013,2015] default is 2010
e144c6d60Willi Brauncleanup and revise dassl code
da87f6adeMartin SjölundFix OSX paths for new suitesparse dependencies
bad389217vrugesimplifyAllExpressions: - don't use simplify use simplify1 - see: https://trac.openmodelica.org/OpenModelica/ticket/2647
a59b7ee8dMartin SjölundThe exe extension on OSX is not .app
7458c241aPer ÖstlundFix for #3460.
d16243970RuedKamp-USE_CPP_03 is not defined under VxWorks although not using C++11
328cdad88RuedKamp-removed OMDEV Variable from VxWorks makefile
c78005012RuedKamp-some minor changes
d237bc50eMartin SjölundMinor performance fixes for Absyn.traverseExp
13854c1c0Per ÖstlundFix for #3574.
2b1abe885RuedKamp-fixed functionblock generation
e09f1554fRuedKamp-changed defines for sparse solver
83b998c75RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a5b060172Willi Braunfix minor issue in dassl.c and clean up
ad626e112Marcus Walther- added cpp-runtime flags to Windows-Makefile
f2cca5abeMarcus Walther- removed spaces in Modelica.cpp
51b0039a7Marcus Walther- Documentation updates
7a131d669Martin SjölundRewrote Absyn.pathString
487eea181vwaurich- fix for evalOutputOnly
4564e1cd3vwaurich- changed dumpSimCode implementation
199d4cd49Lennart OchelRevert "Hack for ticket 3544"
dbb674db7Marcus Walther- changed the flag "USE_CPP_ELEVEN" to "USE_CPP_03" to be compatible with further standards
fb2973748Niklas Worschechre-added accidentally removed assert warning
57d05fd10Willi Braunadding context depending extrapolation
920eedf11Marcus Walther- increased memory for precompiled headers (MSVC)
fb0cb7385Lennart OchelHack for ticket 3544
e090d3da5hudsonMerge remote-tracking branch 'origin/master' into pullrequest
e1afc3d0eNiklas Worschechreverted 2d6e1a7d26ee397d9295368aec0f9450d9db1e23
5ea6c4203Per ÖstlundCleanup DAE.Mod.REDECL.
7fcf026a6Niklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
301120615Niklas Worschechrevert 2d6e1a7d26ee397d9295368aec0f9450d9db1e23 in cpp template
6d1160c77Niklas Worschechfix for external string in cpp template
609f8a7d5Niklas Worschechadded assert warnings in cpp template
e1aa8b032RuedKamp-xml file generation for functionsblock
63cd39e46vwaurich- fix for evaluateOutputOnly
f2902c071RuedKamp-improved xml FunctionBlock generation
78bf14849RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b33dd2e31RuedKamp-improved xml FunctionBlock generation
2d6e1a7d2Niklas Worschechfix for external string in cpp template
9da56998fNiklas Worschechadded assert warnings in cpp template
d110f644cPer ÖstlundFix for #2964.
c7b7e74d4vwaurich- replace evalAllParams-implementation - dump bipartite graphs for sccs after backend
4b930ae6bvrugeExpressionSolve: matchcontinue in match
afa3ac41fvrugeExpressionSolve: matchcontinue in match
0071e6809vrugeExpressionSolve: using guard
79c8b96a4vrugeimproved SolveSimpleEquation using (for loops, reduce number of operation)
bd00240bcvrugereduce ExpressionSimplify-Calls inside solve(.)
16b1a424dvrugeExpressionSolve: matchcontinue in match
a6891f398Lennart OchelFix performance issue of module inlineWhenForInitialization
7550912d4vruge- improved stop criteria in ExpressionSolve.solve - reduce simplify-calls in ExpressionSolve.solve2 - fixed start value for iterration var in simplifyComplexFunction
ee25428c0RuedKamp-removed one environmental variable required in VxWorks makefile
c672f553eRuedKamp-copy some headers required for VxWorks build
75acf015cRüdiger Frankeremove $(OMHOME) substitution for nmake
85c4f53f1Martin SjölundAdd tail recursion for Expression.makeMatrix
ced7bfa9eRuedKamp-add export for VxWorks makefile
18c0050a2RuedKamp-fixed some VxWorks error -adapted VxWorks makefile
50f43eb64RuedKamp-xml file generation for functionsblock
65da0bc77RuedKamp-fixed some VxWorks error -adapted VxWorks makefile
e480d238bRuedKamp-xml file generation for functionsblock
415e95d41Per ÖstlundFix for #2964.
936fccdcbvwaurich- replace evalAllParams-implementation - dump bipartite graphs for sccs after backend
29c46641cvrugeExpressionSolve: matchcontinue in match
f2b7cd2e2vrugeExpressionSolve: matchcontinue in match
d3176fd2fvrugeExpressionSolve: using guard
997e51408vrugeimproved SolveSimpleEquation using (for loops, reduce number of operation)
4b79bb8devrugereduce ExpressionSimplify-Calls inside solve(.)
4756935ccvrugeExpressionSolve: matchcontinue in match
c45436a1fLennart OchelFix performance issue of module inlineWhenForInitialization
199855a7fvruge- improved stop criteria in ExpressionSolve.solve - reduce simplify-calls in ExpressionSolve.solve2 - fixed start value for iterration var in simplifyComplexFunction
4647aa6acRuedKamp-removed one environmental variable required in VxWorks makefile
c0cc940b6RuedKamp-copy some headers required for VxWorks build
c462bedbbRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
db7e3316eRuedKamp-removed one environmental variable required in VxWorks makefile
420c34b8aRuedKamp-copy some headers required for VxWorks build
5a65e9df3Rüdiger Frankeremove $(OMHOME) substitution for nmake
352fa2afdMartin SjölundAdd tail recursion for Expression.makeMatrix
37f75383aRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
eb3c09a90RuedKamp-add export for VxWorks makefile
071107013RuedKamp-fixed some VxWorks error -adapted VxWorks makefile
851aaca7cRuedKamp-xml file generation for functionsblock
2e3087223RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
62a6e0657RuedKamp-fixed some VxWorks error -adapted VxWorks makefile
446a0903bunknownfix for daeExpReduction in cpp template
64a0568e9Niklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
e344cf704unknownfix for daeExpReduction in cpp template
13983f6a9Martin SjölundAlways compile with ipopt
44ea7bedaLennart OchelRemove short type declarations
e430545a2Lennart OchelRemove unused imports
d700365c2Lennart OchelRenamed --forceRecommendedOrdering to --defaultOptModulesOrdering
3fe15e264Martin SjölundDo CONFIG_OS in autoconf
80f16ca9cMartin SjölundRun without OPENMODELICAHOME on Windows
7b269d16cLennart OchelAdd special cases to enable/disable additional opt modules
9f852892cMartin SjölundAdd configure option --with-msys=msys-root
11653b52cadrpo- small optimizations - use memcpy instead of for loop - do not copy the hashtable if not needed
e0d2d02a2Rüdiger Frankere-add Jacobian variable refs if +d=gendebugsymbols
d2ceb48d1adrpo- small optimization
91f3526d1Per ÖstlundFix for #2959.
43df7a65eRüdiger Frankerefinements to Cpp FMU makefiles for win32
5fb2fc51eRüdiger Frankeupdate Makefile for Cpp FMI export using msvc
52a439f43Rüdiger Frankereplace Jacobian variable refs and initializers with defines
f20146ebdRüdiger Frankeskip Jacobian::get* code if there are no equations
310762731Lennart OchelClean up default initOptModules
40390de26Willi Braunadded density information to backenddaeinfo of liner torn systems
be9687440Martin SjölundCan now cross-compile a working omc from Linux
f19ece7b8Martin SjölundFixes to compile using msys2 on Linux
4f43fa197Lennart OchelFix handling of symbolic Jacobians
f75088c5eLennart OchelClean up default postOptModules
72230edf4Lennart OchelClean up default preOptModules
8597f421bRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
cda5d97ddRuedKamp-xml file generation for functionsblock
fff2ee553Willi Braun - added new linear solver klu from suitespase
2b53c2b45Willi Braun - fix 3rdParty
33012b07fNiklas Worschechfix for typo in define alias string variable in cpp Template/CodegenCpp.tpl
3a3e682e0Niklas Worschechfix for typo in define alias string variable in cpp Template/CodegenCpp.tpl
50deea622Lennart OchelRemove newUnitChecking config flag
44a6be4a6Lennart OchelFix *OptModules+ flags
ca73a56b2Lennart OchelRearrange optimization modules for symbolic Jacobians
43143af01Lennart OchelAdd config flags to enable/disable certain optimization modules
c5e16b001Lennart OchelImproved warnings/errors
ca7e4474cLennart OchelAllow not-recommended module ordering in modelEquationsUC
8a170eceeLennart OchelDump dae type to pre-opt module heading
cc923c7dbLennart OchelForce recommended pre-/post-/init-opt module ordering
27e482212vrugeRevert "attempt: extends getFunctionInputsOutputBody for Array-Types"
511edc7e1vrugeRevert "workaround for [https://trac.openmodelica.org/OpenModelica/ticket/3531 #3531]"
aff0026edRüdiger Frankeremove DOS line endings
1ba1aac92adrpo- attempt to fix windows build again
0e0b9116cRüdiger Frankefix least size of static vectors and return value
1da7404e8Martin SjölundSome updates for mingw cross-compilation
36cabeec8adrpo- fix Windows build, for now C FMUs are broken
f401b3201vrugeworkaround for [https://trac.openmodelica.org/OpenModelica/ticket/3531 #3531] - added option inline function with array type (defaulte= false) - option will be irnored insidedynamicStateSelection
1c737e182Martin SjölundTry harder to preserve whitespace
ab2a526e1Martin SjölundUse the INFO from the CLASS when updating program
ea546267cLennart OchelAdd replace rules for clock expressions
d465e4875Lennart OchelReplace matching algorithm that is used by fixInitialSystem
186cf1507Niklas Worschechfix for external C functions an string arrays in cpp runtime
460260f95Martin SjölundMake 2.0 ME FMI the default
b14997c53Martin SjölundCompile MinGW FMUs with static libgcc
c578a6be3Martin SjölundFMU export changes
e89eaf5aeMartin SjölundUse autoconf in the source-code FMUs
d77c3cff4Martin SjölundMake colorNodePartitions tail-recursive
a9225b77fRuedKamp-fixed simObjects also for VxWorks
ae2c20039RuedKamp-fixed simObjects also for VxWorks
1858edc35RuedKamp-enable sparse solver only for vxworks
4be732e6fRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9ef7f9061RuedKamp-fixed simObjects also for VxWorks
f2791803fRuedKamp-fixed simObjects also for VxWorks
0320fe7c7Mahder Gebremedhin+ Fix handling of complex equations so that we won't generate unecessary nonlinear systems.
b612c7ac3RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e6a9a5dc5RuedKamp-enable sparse solver only for vxworks
b635a28ddLennart OchelFix mat file import for parameters
2af9d1652Lennart OchelFix start values for algebraic states
a14041dd0Lennart OchelFix analysis of over-determined systems
1f77ff2a5Lennart OchelFix start value dependent initial equations
51fcae41cLennart OchelMake module detectJacobianSparsePattern dispensable
90fe820ceRüdiger Frankeremove NULL to please gcc 4.4 and boost
36d2ed8a6Lennart OchelFix modelEquationsUC
ecc4f6103Lennart OchelStore all optimization modules in only one list
6880ebb4dLennart OchelMerge interface for pre/post-optimization modules
13a7f096bNiklas Worschechremoved PreVariables class from cpp runtime
168aff96dRüdiger Frankeremove unnecessary dependencies from exported FMUs
291f55df5Mahder Gebremedhin+ Fixed handling of complex residual equations. We expand all complex residuals to simple residuals now.
031124626Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b7a55c71cNiklas Worschechfix for fmu instantiation in cpp runtime
bf9ac8204Per ÖstlundFix for Buildings.
91906e76aRüdiger Frankefix quotes
5e2e086ccLennart OchelFix type information of temporary variables
604f9170cRüdiger Frankesimplify XML output for clocks according to FCP-001
c2668175fadrpo- add first prototype of FMI for Co-simulation - fix a typo in dassl.h
3598a1f69Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
1e2fbd796Niklas WorschechMoved write output classes of cpp runtime in DataExchange lib
11fb0e937Martin SjölundFix for C89
fb6950e12Per ÖstlundFix for Buildings library, #3506:
1034be47aMartin SjölundUse equivTypes function instead of equality
728d95da3Adeel AsgharAdded new API `removeComponentModifiers` and `removeExtendsModifiers`
fefe856a6Martin SjölundFix OSX stack base on Mavericks
a498326c4RuedKamp-fixed typo
d9734be4cRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ce4ab8c7aRuedKamp-fixed typo
c9447a6c2Martin SjölundFix for old C standards in FMU Jacobians
acb946eacMartin SjölundFixes bug in lookup of builtin classes
4d8edfa31RuedKamp-add factory for vxworks
1edd09e59Rüdiger Frankeextend Cpp runtime with sub clocks
ceca57ec4Rüdiger Frankeextend FMI export with sub clocks
693d9cff9Rüdiger Frankeskip FMI initial and start attributes for alias variables
2490aa1ecRüdiger Frankedisable elimination of alias references for C FMI export
161ad391fRüdiger Frankeimplement direct memory access in Cpp FMI 2.0
5e6d738f1Rüdiger Frankeenable direct memory access with FMI value references
0d33c3b2dLennart OchelRemove redundant deep copy
f4a51e221RuedKamp-removed unused variable, which caused an runtime error with msvc
f1c1c9698Rüdiger Frankeintroduce isFMIVersion10 check for old versions
525b6daa7Rüdiger Frankedeclare usage of boost::numeric::ublas explicitly
d172abda4vwaurich- introduce alias eqs and no alias vars in CSE
30a76f91bRüdiger Frankeremove two unused libs from Cpp FMU build
4acff37ebAdrian PopMerge pull request #241 from gossen/ticket-3520
712c8c356Rüdiger Frankeremove unused SimData and FactoryExport from FMU
db830e586Lennart OchelAdd description of flag newUnitChecking
3d8d346b6Lennart OchelRename function insertUnitinEquation
fe7b58c76Lennart OchelSuppress some warnings
7c390101eLennart OchelImprove error message
c1d6eb48bLennart OchelClean up indentation
0ac9894f5fbergeroRemoving white space
ece74d036fbergeroCorrect checking of range for derivatives
e71335cadfbergero* Functionality to include the Jacobian in the FMU * This code adds an extra callback function in the C runtime to call the Jacobian evaluation. This changes also force the generation of the Jacobian code in the generated FMU. Only the A matrix of the Jacobian is supported by now (i.e. derivatives of state derivatives with respect to other states).
afc37d0e1Rüdiger Frankereplace hash tables for pre SimVars with offsets
398dd5535Paul ScottFixed alias default and initial equation sub expression tag
dd7ca6ed4vrugeattempt: extends getFunctionInputsOutputBody for Array-Types
101b6b243Rüdiger Frankesmall fix to delay buffers
7c86a6a8eRüdiger Frankeuse std::deque for delay buffers (#3522)
d96c19826vwaurich- fix getNoDerivativePosition
8f2cd7e7bvwaurich- fix for modified Pantelides
57cecad86Martin SjölundFMUs need to contain the info.json data
c5120f3davwaurich- handle empty systems in CSE
0f589ef15Martin SjölundInclude dgesv in static source FMU external code
7c902c1deMarcus Walther- fixed FMU start value behaviour
90cc19cdfMarcus Walther- start values are now correctly set for exported FMU 1.0 ModelExchange
33b29ef19Rüdiger Frankefix integer once more
02c1d40beRüdiger Frankereplace lexical_cast with to_string (#3522)
4ca8547d0Willi Braun - fixed noEquidistant mode
e15a57ad8Willi Braun - fix noEquidistantGrid mode of dassl
a2254ab48Rüdiger Frankeuse C++11 builtin range based for loop (#3522)
27e6c5612Rüdiger Frankeuse std::hash to obtain thread number with C++11
608360da2Rüdiger Frankeuse C++11 std::unordered_map and set (#3522)
64ec735f4Rüdiger Frankereplace boost list_of with C++11 builtins (#3522)
069f34ed1Lennart OchelFix replacements for NORETCALL in when equations
93d872f3eMartin SjölundRemove readline dependency from OMCompiler
ab452a354Rüdiger Frankefix usage of trunc
bc3311a9cadrpofix msvc build
0425c8f4dRüdiger Frankeintroduce namespace omcpp for more C++11 (#3522)
5da3ed26bvrugeextended the case tuple() = tuple in simplfyComplexFunction for array types in lhs/rhs
5c33b207bvruge Inline.inlineCall and forceInlineCall return DAE.TUPLE for more than a single assignment statement
111757f3aRüdiger Frankere-add a used boost include
730289784Rüdiger Frankealign using boost::get with usage of tuple (#3522)
0b4c12507Rüdiger Frankereplace using namespace std with std::abs (#3522)
014017110Rüdiger Frankeremove unused boost includes and usings (#3522)
d5a818318Willi Braunimproved extrapolation of non-linear initial guess
b04f8ee79Rüdiger Frankemove FMU solver factory include to solver creation
f65e38389Adeel AsgharUpdate component comment when component contains dimensions.
7f4c0010eadrporemove deleted files from cmake makefiles to please the msvc build
82c9ab7ddMartin SjölundRemove the dependency on expat from FMUs
a5e016e84Martin SjölundCheck that we do not revert 3rdParty by accident
5bcd7ee53Rüdiger Frankemove solver creation to specific Cpp FMU system
4bf245a65vwaurich- fix for simjacCSRToCSC
b0724337bhudsonMerge remote-tracking branch 'origin/master' into pullrequest
08c5320eaNiklas Worschechfix for csv output in cpp runtime
03f5aaf5fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b5101ef99vwaurich- activate modified pantelides
56d9b006cvwaurich- get smaller MSSS for pantelides
29ef347b3Rüdiger Frankeuse C++11 to_string for numeric values (#3522)
8907348a7Marcus Walther- simple fix for array slices - typo fixes for array operations
57d7bf378Niklas Worschechsimplified inheritance structure for Modelica system in cpp template
5b15507c7Niklas Worschechsimplified inheritance structure for Modelica system in cpp template
3c5fbea49Rüdiger Franketypo in previous commit
f5433093dRüdiger Frankefix new WriteOutputVar for boolean aliases (#3524)
33ae1ea7aRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
49554e71cRuedKamp-fixed error with boost::minmax for c++11 in msvc
cc068045eMarcus Walther- fixed windows build
b99d59c5dRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
85dda17c7Rüdiger Frankere-add boost lib to FMI export prior to C++11
abf63499aRüdiger Frankeremove unused FactoryExport from FMU
6d1f0254cRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a51c28ce3Willi Braun - fix symbolic jacobian generation in dynamic state selection
ab4c77139Rüdiger Frankemove xml parser include to XmlPropertyReader
4eede182aRüdiger Frankeuse C++11 minmax_element (#3522)
cfc7caf9dLennart OchelClean up match pattern
3b89fb746Rüdiger Frankeremove duplicate includes from FactoryConfig.h
9ea2fe6f0Rüdiger Frankecompletely remove boost libs from FMI export
8beab334fRüdiger FrankeLocalize use of boost filesystem and program_options (#3522)
8d2f20e82Martin SjölundFMU support for OSX, which does not support cp -u
1bb207d00Martin SjölundReduce stack space
300f04e8aRüdiger Frankeremove dummy LoadLibrary from static Cpp runtime
ea09fa1ecMartin SjölundUse va_copy when re-using a va_list
c7fdce2cdMarcus Walther- cpp runtime logger is now enabled on windows systems
657b5ca09RuedKamp-added FactoryExport for VxWorks
6166cfd5bRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
83daf1ecbRuedKamp-added FactoryExport for VxWorks
b2c8ddd11Rüdiger Frankeremove boost_filesystem and boost_program_options from FMU (#3522)
d462a6905Rüdiger Frankemove Logger call from generated code to FMUWrapper
5ad900c62Rüdiger Frankeremove unused XmlPropertyReader from FMU build (#3522)
860b46370hudsonMerge remote-tracking branch 'origin/master' into pullrequest
19bd533d8Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
5a22ed334Niklas Worschechrestored fix for hard coded start values in cpp template
56438a091hudsonMerge remote-tracking branch 'origin/master' into pullrequest
8c2f3ec73RuedKamp-removed klu includes
fe751df68Martin SjölundInit Boehm GC (necessary for OSX)
aa32aa856RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
308b0b104Niklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
9576b5665Marcus Walther- fixed windows build
4ca01e493Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
6544142faRüdiger Frankefix StaticOMCFactory after previous commit
e7c2e15d6Rüdiger Frankeseparate out static solver factories (#3522)
63842aa66Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a6932e46dRüdiger Frankeremove remaining use of boost::multi_array (#3522)
1362549a7RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
96a1c7828Per ÖstlundFix inst of Annex60 (and maybe Buildings).
7bd5b8cdeRuedKamp-added Broyden's method
11d211cc7RuedKamp-added Broyden's method
8ee84dfcfRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3f4cc57edNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
137767a3dvwaurich- restructured and extended graph dump of bipartite graphs
1ebf92014RuedKamp-fixed typo
08df195dcRuedKamp-fixed typo
c12fd20b2RuedKamp-fixed typo
a1cfadd5dRuedKamp-some changes for vxworks
085c2c7dcRuedKamp-added Broyden
a027236a2RuedKamp-added Broyden
31050196eRuedKamp-added Broyden method
948a483ccRuedKamp-reverted original newton method
d17b30006RuedKamp-removed klu
3a9ccebcbRuedKamp-reverted
3ad22ddf8RuedKamp-actually nothing changed
e64c91371RuedKamp-added broyden solver
22f67d2a0RuedKamp-added using boost::dynamic_pointer_cast;
f4f5eb031Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
0c1e4fb1dRüdiger Frankeextend FMI2 Cpp interface with clock interval
9c388fa76Rüdiger Frankerevert Cpp Newton solver to version f23c4961
3844b740bgossenAllow to instantiate inherited classes
88d0d6f21gossenAllow to not throw error if qualified class hasn't found in Absyn.Program
af5050170gossenRemove unused arguments from function Interactive.getClassesInClass
96d6e28cbgossenIn function CevalScript.loadModel replace recursive call with List functions
8505a24a1Rüdiger Frankefix getClockInterval for integer clocks
f62e535c5Rüdiger Frankeremove $PRE replacements that don't apply
b1f63b615Rüdiger Frankeuse nice names for $PRE and $CLKPRE in C and Cpp runtimes
463e40ecbRüdiger Frankechange order of clocked variable attributes
b71ca8a52Rüdiger Frankemark clocked variables discrete
f1a843359Rüdiger Frankemake clockIndex optional instead of 0
4002cbdf5Rüdiger Frankereplace $PRE and $CLKPRE with nicer names (cf. $DER)
fc6c659c8Rüdiger Frankeremove obsolete workaround
308ffab2fNiklas Worschechfix for uninitialized xmlreader and hardcoded start values in cpp template
89c5e8ce9Niklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
524ce1147Marcus Walther- fixed segfault in writer-class (occured because boost::make_tuple was used for std::tuples) - removed the ifdef-stuff in writer.h (now there are new classes called "DefaultContainerManager" and "ParallelContainerManager" to handle the container stuff) - renamed busywaiting_barrier.hpp to barriers.hpp
fbb823380Rüdiger Frankepopulate clockIndex to FMI 2 modelDescription.xml
3792fac23Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3a9e48eebLennart OchelAdd support for interval operator to c runtime
38d9d5e57Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d248f480aNiklas Worschechmove WriteOutputVar class from MatFileWriter to Writer removed unnecessary typedef's
8cbbb3794Lennart OchelRemove outdated QSS implementation
cc63c1f24Marcus Walther- fixed std::shared_ptr and boost::shared_ptr mixing - fixed undefined reference to return value in WriteOutputVar
e1a4c64d5Per ÖstlundFix for attribute propagation with redeclares.
f9ed55d4bMarcus Walther- added some more array operations to c++ runtime - fixed some issues with array slices
b3391fe1cNiklas Worschechfix in intialization routine, if variable is a negated alias
e26b2abc4Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3c084f674Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f34585c80Rüdiger FrankegetClockInterval returns 0.0 instead of 1.0 if unknown
ef387e7ebRüdiger Frankeuse implementation of SES_IFEQUATION from C for Cpp
51ba47061Rüdiger Frankeadd basic clocks to FMI modelDescription.xml
994c93384Lennart OchelMerge remote-tracking branch 'fbergero/fmu-experimental' into merge-fmu-experimental
17c6d8242Lennart OchelFix some typos (#236)
1e22e0965Per ÖstlundAdd new flag --useLocalDirection.
91f79f8b5Willi Braunadded debug flags for differentation
cb8e34138Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
2a6e75635Niklas Worschechfix for negated Alias Vars in write output routine
22a42a4b2mahge+ Fix #2933. Fix type informations for nested array reductions
db371fa84Willi Braun - use functionTree from initDAE further for simDAE
cde0a70f1Lennart OchelTry to fix floating point exception
ad77454e2Lennart OchelRevised substitutePartitionOpExps and substClock
46923d215Lennart OchelRevised function substituteParitionOpExps
0d1a7a82fLennart OchelCleaned up SynchronousFeatures.mo
244b2a270Lennart OchelAdd more TRACE instructions
6bec45880Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
176b40070Lennart OchelAdd missing TRACE instructions
748021d46Lennart OchelFix indentation
b297e3a0eRüdiger Frankecleanup creation of non-clocked variables
d404391e2Rüdiger Frankesupport clocked states of any base type
c7257cc6dadrpomore fixes to #3503, fix clock substitution
55125bf2cRüdiger Frankeimplement interval operator in Cpp runtime
c1357acebRüdiger Frankefix initialization of clocked variables (#3497)
3e6f284f6adrpofix more typos
8447b1bd0vwaurich- store crefs for protected variables in visual.xml
337077065Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
213ddae55adrpofix typo in function names
96486005efbergeroMerge with master
9608520fdLennart OchelUse module "Error" instead of print for errors
cea00ab48Lennart OchelAdd more helpful error message
1eff681c3Federico BergeroMerge pull request #1 from OpenModelica/master
93652648eadrpomore fixes for #3503, handle shiftSample arguments better
ae1a72c73adrpomore fixes for #3503 - fix subSample, superSample argument checking - fix to allow Clock to be used as a connector
e78c79d90Lennart OchelUse constant emptyInputData
0b7d5fb78Lennart OchelSimplified record DIFFINPUTDATA
7e6ad026aWilli Braun - fix diffInputData for zero differentiation
9079fd27fLennart OchelAdd missing brackets to cast expressions
2f0f007dbmahge- parenthesize expression is div()
eb0d20985Niklas Worschechfix for addContainerToWriteQueue
bfa33db85gossenIn Lookup.lookupConnectorVar get inner/outer prefix for first ident
9ef520ebdLennart OchelFixed module simplifyComplexFunction
e02e8c96bgossenUse ConnectUtil.componentFaceType function for detecting top level variables
c43ea9289gossenReplace recursive call to CheckModel.countVarEqnSize function with List utility function
c5ce437f2adrpofix for #3503, prefix clocks
3a9498464Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e88115af6fbergeroAdding dependencies for NL System RHS
0610df2e2adrpoadd the new files to the msvc cmake files
fb0df3440adrpofix windows build and source fmu test on gcc
fb7644bdfRüdiger Frankeattempt to fix #3502
5dfc9cdedRüdiger FrankeAbstract naming of previous variables
794b44452Rüdiger Frankeadapt whitespaces to existing tests
b0d49ab81Rüdiger FrankeExtend FMI2 export with DiscreteState
0a6d92e25Rüdiger FrankeIntroduce clocked state variables
e28a98faaadrpoupdate 3rdParty
23515467badrpofix windows build
5a5e52f3fRüdiger FrankeCpp update for initialization of clocked variables (#3497)
9e5b3b0d6Rüdiger Frankedistinguish clocked variables during initialization (#3497)
886ec2b17fbergeroIntroducing the GetSpecificDerivatives in the FMU and the corresponding debug flag
b570c96defbergeroMaking the function TR
fae5a0ac1Adrian PopMerge pull request #229 from lochel/PlanarMechanics
7212ce4b9fbergeroMoving FMU Experimental outside QSS and into SimCodeUtil
2f9f8a732Lennart OchelFix missing brackets for rhs of division
4b5a98559Lennart OchelRemove useless line of code
74bab6970Lennart OchelFix dump of sparsity information
175945493fbergeroFirst working version of the FMU extension
8734a496evwaurich- rewritten ResolveLoops.partitionBipartiteGraph
1363820eaLennart OchelTry to fix #3482/#3498
10f534150Per ÖstlundFix for #3479.
2ed993a62Martin SjölundAllow generation of source-code FMUs
4cdc91bcfLennart OchelImproved some error messages
7bf48ba72mflehmig- Added some german translations of error and warning messages. - Small cleanup in flag description.
62eff2321adrpoupdate 3rdParty submodule
4dfa16d8badrporemove tabs
09dea2614adrpofix msvc build, ansi C and cmake files
eda1836bfRüdiger Frankeimplement clocks in Cpp FMI2 interface
b021f4a3dRüdiger Frankeadd clock accessors to Cpp model
92cf27fa4Martin SjölundUpdate ModelicaExternalC for Noise library
8ed87db68adrpofix gcc build
29aa22f27Lennart OchelRemoved unused variable
2602d04a9Lennart OchelSpeed up initialization
75feda9cfMartin SjölundChange simulation_input_xml from C++ to pure C
672f53e05Martin SjölundRemove one more C++ hashmap
ca9109b87Lennart OchelKeep also removed equations of empty eq systems
7c88a18b3Lennart OchelRevised implementation of analyzeInitialSystem
a030088e5Martin SjölundChange implementation to fread instead of getline
f0f7bc97fadrpofix msvc issue
1c35b32d5adrporemove bad free
3ba85d73dadrporemove tabs
6f05b75f4adrpoattempt to fix the windows build
4a406ed4bMartin SjölundIntroduce uthash to the XML reader
0283c7b7fMartin SjölundRemoved some C++ features from the XML reader
9e822e78cLennart OchelDecompose exectStat for initialization phase
42a54d3d1Marcus Walther- boost root is now only passed to cmake if it is set to something != ""
1aff8213aLennart OchelOmit some unnecessary parenthesis
9913bac06Lennart OchelGenerate c code with less nested brackets
482b658b2vwaurich- remove invalid comment section
18a82cf04vwaurich- clean up vectorization for trunk
21d79d8f0Martin SjölundFix logic error for SystemImpl__removeDirectory
6f3767207Marcus Walther- fix for GCC 5
f317b8bccLennart OchelUpdate .gitignore file for java_interface
79cd7cacdMarcus Walther- try to fix OSX Cpp-Runtime Job
5fd45cfe4Lennart OchelDeactivate module constantLinearSystem
5119eb72bMarcus Walther- try to fix OSX Cpp-Runtime Job
88785c86eLennart OchelSimplified implementation of execStat
30fb32ef7Martin SjölundReduce the number of dependencies in FMUs
bf0097105Lennart OchelAdd mssing Jacobian types
e5e550e4bLennart OchelFixed definition of StrongComponent
a378a1ab9Marcus Walther- try to fix OSX Cpp-Runtime Job
bd6974813adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
87c24d8e8adrpoupdate the relative path to Compiler directory
ea9b035f5RuedKamp-added initialization of pointers
d353fa6f2RuedKamp-changed cycletime for vxworks
a5e1cee0cRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9e3866dd1adrpofix windows build
5d714dc32RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ed9ce6f73Lennart OchelRemoved initial equations from simulation system
c181c4a78RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
6af90d936RuedKamp-added initialization of pointers
210bf97eeMarcus Walther- "using namespace::std" now depends on compiler
3a2054236Marcus Walther- resolved some warnings and namespace issues
919c27ee9Marcus Walther- resolved some boost namespcae problems - added c++11 option to autoconf
e81337e27Marcus Walther- moved property inclusion to modelica.h
2ea6a5abbMarcus Walther- fixed namespaces::std issues
d0cef12fcMarcus Walther- removed some empty lines
4d33f4770Marcus Walther-reorganized some includes
8c752627dMarcus Walther- made c++ runtime more c++11 friendly, which means that explicit namespaces are removed for boost (example: boost::shared_ptr -> shared_ptr) - cmake now detects if the compiler is able to work with c++11 and it will switch the following types from boost to std: bind, function, thread, atomic, mutex, memory_order_release, memory_order_relaxed, condition_variable, unique_lock, array, tuple, shared_ptr, weak_ptr, dynamic_pointer_cast
116b7c73fMartin SjölundMoved the location of java_interface
c71d1aedaMartin SjölundDo not override the user's --std choice
8c0b06e54Martin SjölundAllow the use of package.order
f9b879fccRüdiger Frankeevaluate Cpp events at final time as well
326a2f561Rüdiger Frankerefinements to Cpp synchronous support
732ac5dc5Ruediger Frankeremove virtual qualifier for hpcom
fffbbaf61Ruediger Frankeinitial version of Cpp synchronous support
1f2a731a4Lennart OchelTry to fix ticket 3477
c5706c47eLennart OchelAdded differentiation rule for start values
c835a1d83Niklas Worschechfix for getfreeContainer in writer class
3fb3c9b12Niklas Worschechfix for merger error in cpp template
9aa4b65aeNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
19c8d3289Niklas Worschechchanged output method uses xml file to pass variables from simvars to output routine
6b5d3a2c7Lennart OchelFilter const when conditions within shared object
88a65ee3aLennart OchelFilter constant when conditions
aca0480fbvwaurich- fix for evalAllParams
4a58ffa05Marcus Walther- removed wrong brackets
2fa610a1eMarcus Walther- dummy initialization for complex types added, to prevent linker error with GCC 4.4 --> this workaround should be removed if a newer compiler is the default compiler
4a959d095Marcus Walther- duplicated ModelicaLibraryConfig for gcc and msvc
ef8b4ae61Lennart OchelFixed ticket 2337
a78d281e0Lennart OchelCleaned up Differentiate.mo
ad14fcb8ePer ÖstlundFix for #3473.
b384418abMarcus Walther- added a flag "solverThreads" to the c++ runtime. With this flag the number of threads that is used by the solver can be controlled (e.g. for parallel jacobian evaluation)
5e4b2b110Lennart OchelNew flag to dump functions
ee793f0c2RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b33dc5a5bRuedKamp-changed cycletime for vxworks
0ed9bc8ebLennart OchelAdded index reduction to optdaedump
56804f255RuedKamp-fixed typo
95e653308RuedKamp-commented out klu
0b32c47f6RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e86e3e9c9RuedKamp-commented out sparse solver klu
dfdabf30eRuedKamp-changed settings for vxworks
e2767e6a4Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9c70b1b19Niklas Worschechfix for external C Array arguments data pointer
72fac42ecRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
76a8d190eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
bbce7feafLennart OchelAdapted optimization modules for Jacobians
9db05a8c7RuedKamp-changed xml path for vxworks -added string to simVars for vxworks -changed default settings for vxworks
e7e6f99b7Lennart OchelAdded new backend module "simplifyAllExpressions"
4fc9dfb3bRuedKamp-removed some obsolete stuff
fcb03b16eRuedKamp-added define for Vxworks
9318f2082Marcus Walther- fix typo
12df3f8eeMarcus Walther- debug flag "hardcodedStartValue" added -- this will put the initial values of parameters and variables as fixed values into the c++ code and will not read if from the initXML-file (C++ runtime only) - simple fixes for vector-constructor in CodegenCpp.tpl
845393724Niklas Worschechfix for start index for array creation in cpp template
ffb919782Niklas Worschechfix for createArray in cpp template
f49a665baNiklas Worschechfix for start index for array creation in cpp template
e44b65be5Lennart OchelExclude removeInitializationStuff from
a59dc08e1Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
dc45f54a7Niklas Worschechfix for createArray in cpp template
b7dbd4a85Lennart OchelMoved some optimization modules
01d3cd1d7Lennart OchelMark assertions that are triggered during initialization
805ce17e4Lennart OchelFixed ticket 2659
76217d26ebernhard ThieleFixed array dimension error
f9eb551ebbernhard ThieleAdded some missing start values
8d8549fdcLennart OchelAdded missing descriptions for opt. modules
707bc0b08Lennart OchelCleaned up BackendDAETransform
0de2ae0c4Per ÖstlundFix for #3467.
0ad7abbd8Marcus Walther- sundials is now available again, if static linking is selected (c++ runtime) - fixed an issue with the std::vector fill constructor, because he could not distinguish between the different constructors in GCC 4.4 (MinGW)
ac0ef81b8Marcus Walther- removed $-sign from variable/parameter names in modelDescription of c++ runtime (FMU 1.0)
058d92ceaMarcus Walther- changed the name of "USE_FMU_KINSOL" to "USE_FMU_SUNDIALS" because otherwise we have to add such defines for CVode and IDA as well - added a SimController_FMU and System_FMU library to the build of the c++ runtime -- otherwise we can not turn off sundials for the FMUs - the function OMCFactory::loadSimControllerLib was created, now we are able to overload the loading mechanism in StaticOMCFactory - StaticOMCFactory is now header only and added to the build process again
e6cfb0d75Rüdiger Frankedisable erronous dimensioning of array (#3464)
166399837Adeel AsgharCopy the required binaries for FMU. Display information about state when fails.
f71d5c453Rüdiger Frankeavoid duplicate definition of Cpp alias records
a23d238e1Lennart OchelAdded missing options to potOptModules ...
bf8a3b993Lennart OchelAdded initOptModules to documentation
827c7a92dRuedKamp-added string Vars to simVars for VxWorks
75935f471Rüdiger Frankeredo yesterday's Array commits after merge 31041f6
381292290RuedKamp-fixed merge conflicts
80f4a6531RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e71411d00RuedKamp-some changes during intialization of linear algloops -some changes in default settings for vxworks
0ea0def39RuedKamp-changed to broyden's method
874901853RuedKamp-fixed typo in "newton"
d0b65ef84RuedKamp-added bool for initializiation
21527ac0aRuedKamp-added blas and lapack methods
615866779RuedKamp-added Newton Solver for Vxworks
608f05bc4RuedKamp-added sparse solver
62659ebdaRuedKamp-changed to broyden and added sparse linear solver
cd20244e8RuedKamp-fixed bug with zero states
dc6ee4f05Per ÖstlundBootstrapping fix.
28fda15a2Niklas Worschechfix in cpp runtime for XmlPropertyReader and fmi export
31041f6ecNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
eeef9c426Niklas Worschechfix for build of shared DataExchange lib
71012083aLennart OchelFixed #2763
a2f905b9cRüdiger Frankereplace dynamic boost::multi_array with new/delete
483b18adcRüdiger Frankereplace static boost::array with built-in array
e19799fc6Marcus Walther- enabled JOM for build of C++ simulation runtime - changed folder-name build_msvc to Build_MSVC, to be consistent to GCC build - boost-property tree header are now copied to output folder as well
442b07a6dNiklas Worschechfix for precompiled header for msvc cpp runtime
2ed0fcd7dNiklas Worschechfix for load ini xml file with msvc for cpp runtime
f8ebb31b4Niklas Worschechfix for precompiled header for msvc cpp runtime
1a4a35798Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
967f532aaLennart OchelRemoved match statement from removeUnusedFunctions
b786010b4Lennart OchelAdded dae type information to post-opt ...
edba84e7abernhard ThieleAdded support for timeInState()
4597a3a5eAdeel AsgharHandle case when baseclass not defined.
8cbf8b358Rüdiger Frankedereference system from when equation in alg loop
e785f3b5bbernhard ThieleAdd support for ticksInState() op
cd7c5dc18bernhard ThieleRenamed misleading function name
1dff76a87Rüdiger Frankecleanup Cpp daeExpBinary (#3458)
d78c1bfa8adrpofix for #3458, proper type in DAE.MUL_MATRIX_PRODUCT
94be67b29Rüdiger Frankeimplement Cpp cast_array
d8285af80mahge- Minor explicit parmodelica fixes - consistent library naming - add cmake compilation
e37688990mahge- Fix parmodelica automatic parallelization - Fix function signatures - Consistent cost handling - Fix makefiles. Update CMake rules
8de5c5e6aMartin SjölundCheck hwloc exit status before using the data
ef0a90639Lennart OchelFixed removeUnusedFunctions
c14ac3989Lennart OchelAdded config flag ...
56d186b60Lennart OchelSeparation of back end transformations...
523217eb6vwaurich- new +d=evalOutputOnly feature
00ba1c4e9Marcus Walther- removed unused parts of init.xml-file (cpp runtime)
d5feda678Martin SjölundMake the gettext targets start working again
b135ff80ctbeuFix typo in message
1eda356a7Martin SjölundWhen merging annotation, consider the order
3b35f139ebernhard ThieleLess intrusive wrap hack
e444b71eeMartin SjölundHandle delete+whitespace+add better
456e41343Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f27e16bc3Niklas Worschechfix for load ini xml file with msvc for cpp runtime
326bdaac6vwaurich- new evalAllParams implementation
83ee71a69bernhard ThieleActivated wrap-hack for SMs
a2fb46584Rüdiger Frankeresolve name clashes with built-in math functions
ed3833589Marcus Walther- added missing type (array of enumerations)
2523b1becNiklas Worschechfix for logger dll export in cpp runtime
8717b8eefMarcus Walther- removed unused boost_export
f23c4961aMarcus Walther- strings are now handled in arrays as well - initial values are taken from xml file - number of HPCOM threads can now be variied for different systems (ode, all, zeroFuncs) - changed Logger::write to LOGGER_WRITE - changed flag "nls_continue" to "nls-continue"
631897c96Marcus Walther- hpcom levelfix scheduler is now available in combination with openmp
494b8d679Per ÖstlundFix for #3421.
555db1445Martin SjölundDo not allow 2D arrays in for loops
1ecd285b0Martin SjölundFix tail recursion (#3448)
260aeb544Martin SjölundFixes for stack overflow detection
ceb197503Per ÖstlundFix for #3409.
0e43de595adrpofix #3444 - show only real numbers with 4 decimal digits
d68413f83Marcus Walther- improved memory management of measure-time - removed some memory leaks in OMCFactory and MeasureTime - removed some compiler warnings caused by uninitialized member variables in constructors (see CVode and IDA)
1322e7704adrpoadd 1.9.4 version
1dae48da7adrpoadd 1.10.0 version
f7a9b467cgossenFix bug #3327
deca16e80Martin SjölundHandle only removals when merging text files
2ca32d44fMarcus Walther- fix typo
06ce3b8d3hkielFix system() call by continuing to wait if EINTR is received from child process
7c85c2ebbRüdiger Franketreat reductions to empty connection sets (#3430)
83ed62aaemahge- Check and exit if there are no valid OpenCL devices. - Fix makefile.
5e4151e9dAdeel AsgharAdded new API `getInheritedClasses`. Returns the list of inherited classes. Better than using `getInheritanceCount` and `getNthInheritedClass`.
e33279aa3adrpoMerge upstream changes
38b8a98c1adrpofix for ticket #3444
6f0b7a70fadrpomore fixes for #3430, handle both lists empty
4300bd200mahge - Fix inculde path for Intel OpenCL - Fix include directory for build - Disable extra timing outputs
d78c686c4Martin SjölundUse class info for inserted classes
19b35e19eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
20a6b173cvwaurich- dont care about dummystates in plts
6fe518d79Per Östlund Fix for #3386:
cdb08e09aAdeel AsgharFixes #3442 Also fixes the make clean. Use $(OMBUILDDIR).
7b9a6c997Martin SjölundHandle diffs better when there are only additions
363235136vwaurich- make limit for plts configurable
5490591eaRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
385a51dffmflehmig- fixed newline bug
c2c3d4d46RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
299d7170dRuedKamp-some minor changes
c5a5c8104adrpocopy recursive
c97eca9bcadrpoproper include directory for sundials
a1671c506adrpoadd more sundials dependecies so parallel make works
3a5180c43Niklas Worschechfix for missing FactoryExport include
14b86ba69Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c3cc02de7adrpocomment out the search for libsundials_arkode
6c80f5f36Niklas Worschechremoved sundials includes from FactoryPolicy from cpp runtime
77249d464adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
865e87c23adrpocompile 3rdParty/sundials on Windows during build
9a1798243Niklas Worschechfix in cpp runtime isConsistent method
27d04a518Niklas Worschechfix in cpp template for wrong sparse pattern index
c4b6d782fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c54220502Niklas Worschechfix in cpp runtime isConsistent method
a5fb0ef4avwaurich- interrupt for-loop eval correctly
a54318fbevwaurich- interrupt eval forLoops if nothing is evaluated
52e1cc8fdvwaurich- constant call-types are not always evaluated
f252d1facvwaurich- remove Repl for const funcCalls
d1ecf33d5vwaurich- fix non-evaluatable for-loops
91fa0e7eevwaurich- fix plts,eval for-loops,eval params
477db3ca3Lennart OchelFixed implicit declaration of function debugDouble
c4ec9b3b3Martin SjölundAdd Windows ifdef's for stack overflow
e1d541a8eMartin SjölundDependencies for array dimensions in functions
7f3007869Martin SjölundOnly guard against stack overflow in the topmost ceval call
3fd537559Martin SjölundAdd stack overflow checks without signal handlers
d8ff3e0d6Martin SjölundTry to fix OSX install name path
8b93f29f4Lennart OchelFixed function createVars
7c20b57caMarcus Walther- preserved "=" if the argument was not replaced
355aa8225Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d115f8bceMarcus Walther- fixed leading "=" in result file if OMEdit is used - removed @CMAKE_C_FLAGS@ from config file
c242492f2Marcus Walther- changed the -r" flag of the cpp-runtime to "-F" to have a consistent flag-behaviour - added some asserts to array-classes of c++ runtime - fixed Kinsol-FMU support - some typos - added the possibility to overwrite flags in the c++ simulation runtime -- we can now replace "-r=file" with "-F=file" and "-w" with "-V all=warning"
44eef17e3Rüdiger Frankesmall cleanup of stream implementation
1a782bb70RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d6f4cb02aRuedKamp-some changes for sparse matrices without lineartearing
32a85cdaeNiklas Worschechmerged common folder
050c0ba83Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3ba9138e9Niklas Worschechfix in cpp template for wrong sparse pattern index
ef238a630vwaurich- add SimCodeUtil.simJacCSRToCSC
7075c87e6Niklas Worschechfix for wrong ublas matrix indices removed not needed files
79df0142dNiklas Worschechfix for wrong ublas matrix indices removed not needed files
1213c368dmflehmig- Error message handling in Cpp Runtime, fixes ticket #3429; - Merged constructors of class ModelicaSimulationError into one.
e18a45ae3Rüdiger Frankereduce inStream equations for zero flow (#3430)
7a8b275d9vwaurich- fix 4bba, fix setRecordTypes for tuples
04b827144vwaurich- remove debug output
e58a9beeavwaurich- remove 2nd preCalcStart
0da7c2bd4vwaurich- merge commit
fad9fe29bvwaurich- fix for EvaluateFunctions.getStatementLHS
b19dc5770vwaurich- enhance partFuncEval for initValues
15d68519bvwaurichsingle eval of knvars
2d51ecfa7vwaurich- evaluate funcCalls in start-values
6e76cee65Marcus Walther- changed the default buildtype for linux back to RelWithDebInfo
890f7b4d1hudsonMerge remote-tracking branch 'origin/master' into pullrequest
8efdf5308Niklas Worschechfix for missing ModelicaUtilities include in cpp runtime
68b4a6027adrpoadapt code to agree with ANSI C for the msvc compiler
10c501bf8Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e9df6e761Niklas Worschechfix for cpp runtime release msvc build and msvc precompiled header
a481fe6a6mahge- Fix #3339 and #3347 - Fix parfor loop tick counters. - Update assert gneration in parallel context. - Fix argument type generation for some parallel cases. - Fix ParModelica integer division (no ldiv in OpenCL).
e747152e2mahge- Fix #3335 and #3336 - Update assert defines - Fix boxed function issues for functions with parallel variables. - Fix arg types for parallel arguments
010b68623mahge- Fix #3334 - Update/fix code generation of parallel functions.
fec5e5b91mahge- Fix #3326 and #3332. - Update KernelFunctionInterfacegenerations. - Fix 64 bit integer issues with parmodelica. - Fix the parmodelica makefiles. - Disable freeing of parallel arrays for now (need to handle the return variable).
17d8596bfmahge- Fix #3198. - modelica_string (void*) expected. Not const char*. No implicit conversion in C++.
2683a17cbmahge- ParModelica fixes. - Move global declarations to the source file.
6c17d0c54vwaurich- remove debug output
e83657d8dvwaurich- new module evalAllParams
b6bb89dfaMarcus Walther- c++ modelica-exceptions can now be suppressed - so no error is printed - "--help" is working in c++ simulation runtime - c++ command line arguments are divided into hidden and available flags - unrecognized flags produce a warning on std::cerr again
76858d6bagossenPrint error for clocked continuous systems
cdf4d6836gossenAdd support for Boolean clocks
43e12c93fgossenFix clock partitioning in encapsulateWhenConditions
60202fe1fgossenDump partitions info in BackendDump.printShared function
81dc5b007gossenEmit results before clock equations fired
da4018549gossenSave pre values for clocked variables
cbfc72333gossenFix typo
d9175e1d3gossen"previous" operator support in C simulation runtime
9fa1b91b2gossenSupport for previous operator in SimCode
e090c54aegossenClocked vars simcode translation changes
58bd3ab2dgossenImplement interval Clock support in C simulation runtime
9ca046fd4gossenImprove clock partitioning
96c79085agossenRemove duplicate function MMath.printNumber
3f8214dd8gossenExtract functions from prefixed_simulation function
a0f09a7fbRüdiger FrankeTweak pass by reference in Cpp function closures
cd36c5559Rüdiger Frankeremove unspecific metatype from Cpp function closures
e9cd5237bMarcus Walther- added a set of arguments that should be ignored by OMCFactory - disabled the unrecognized option warning of OMCFactory, if C-Runtime flags are used
e8a399455mflehmig* Typos, Indention, Logging
ec7b8ac2ehkielignore generated files and dirs
d96bc5821hkielbump to current version
614402501Marcus Walther- fix for array allocation in hpcom profiling
3dc3315e4Marcus Walther- fixed wrong build type of cpp-runtime
4535b2641Marcus Walther- simple fix for hpcom profiling
cb5014a92adrpopropagate buildtype on Windows for bug #3426
a96b59affMarcus Walther- build type (release, debug or relwithdebinfo) of the c++ simulation runtime can now be switched with the help of configure (--with-cppruntime-args=BUILD_TYPE=Release)
02bc3aa01Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f94d39ed4Niklas Worschechoptimized isConsistent in SystemDefaultImplementation
fcbfeb533Marcus Walther- fixed profiling in hpcom
a783b5ebdMarcus Walther- integer-function should now work according to modelica specification (cpp runtime)
e683e8bfcRüdiger FrankeQuick fix for div operator
e03b06539Per ÖstlundRevert fix for #3386, since it doesn't work correctly.
cf16403b0Niklas Worschechfix in cpp template for wrong StatArray dimension size added therefore a dimension check function in Expression.mo
1bdca5e78Niklas Worschechmerged OMCompiler/Common
6b681c466Niklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
fe6d8edd7Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f6a3cc1edNiklas Worschechfix in cpp template for wrong StatArray dimension size added therefore a dimension check function in Expression.mo
9138159eaMartin SjölundFix for return in try-block
1cb608246Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3f56facb7Niklas Worschechfix in cpp template for allocating Jacobian
076671c58Niklas Worschechmerged OMCompiler/Common
fc527e92cNiklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
52a9c9309Niklas Worschechfix in cpp template for allocating Jacobian
f70ec8bd7RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c30bade9fRuedKamp-updated VxWorks makefile -some experimental changes to improve sparseMatrices
e47e0611bNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
1981ce947Per ÖstlundSome List changes:
540a4646ePer ÖstlundChanged some unneccesary uses of List.find to List.selectFirst.
ccced530eMartin SjölundUse faster addressing of arrays
395a4e727Rüdiger Frankeexploit type info available for function pointers
669dc8990Niklas Worschechmerged OMCompiler/Common
879063bafNiklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
0500ba250Niklas Worschechmerged OMCompiler/Common
336b14a65Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
605ae7545Niklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
8c8613205Rüdiger Frankeimplement function inputs to functions
023bd8010vwaurich- function to dump simJac
629f329b8Per ÖstlundFix for #3386:
9e20c7d93vwaurich- make try/else around orderExtVars
108a8453fvwaurich- order external vars correctly
9c088a9adNiklas Worschechfix in Kinsol if perturbed system matrix, system evaluation was missing after system was solved
707946349Per ÖstlundFix for #3401:
820257d96adrpoupdate .gitignore with new template file
a504a6249Willi Braun - fix elsewhen handling in BackendDAECreate
1654145f0Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f79d9636eNiklas Worschechadded initialization method for parameter equations to cpp system fix in Kinsol, function evaluation was missing after system was solved
32ed7bfc9Willi Braunrevise isDiscretExp function for zero-crossings
45e4f5066Willi Braun- removed most stuff that deals with WHEN_CLAUSES
e949cdd3aMarcus Walther- added makefile dependency from runtimeCPPinstall to omc, because the suitesparse libraries should be used by the cpp-runtime - the "--nls_continue" flag is now working again, if the kinsol solver is used
92eaf4ad1Willi Braun -fix BackendInline.inlineWhenEq
afb23b09bWilli Braun - fix replaceWhenEquation
98b6821bfRüdiger Frankechange import order for duplicates like crefStr
2d797bbfeRüdiger Frankeadapt Cpp terminate() to other runtimes
005f9dc90Willi Braun replace WHEN_EQ with WHEN_STMTS
46442658aMartin SjölundRewrite using more recent language features
97de296ecMartin SjölundFix for GCC 5.x
fed7fe571Willi Braunfix variable transform replacements
e965b64eaWilli Braunfix CPP-Runtime
8d63159d8Willi Braunfix XMLDump output
108b0bd5dWilli Braun - fixed Serialized model info
e7db13c22Willi Braunmore fixes to make when equation work again
88a5a6610Willi Braunadapt SimCode and Codegeneration
e351ab13eWilli Braunfixed module detectSparsePattern
69e92993cWilli Braunfixed module removeSimpleEquations
d09df9ffbWilli Braunfixed module encapsulateWhenConditions
d97b9f4ccWilli Braunfixed module clockPartitioning
f7635bb3fWilli Braun- push further new when equation record
ce9bdb5e1Willi Braunstarted to remove when clauses
3a46e9d1bRüdiger Frankeadd treatment of tuple return with records
ce835a2c2Rüdiger Frankereduce max file size back to 684k in sanity check
8cf492e53Niklas Worschechfix in Ida, Ida did not stop if an error accrued in non linear solver
6fdcf3601Niklas Worschechremoved BOM in Kinsol
5cf2b90b9Niklas Worschechsome fixes in Kinsol of cpp runtime - reduced max number of iterations - increased tolerance for function norm - start earlier with line search method - increase tolerance for jacobian eps, if Kinsol fails in line search method
3d953f062Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
4906ef49eNiklas Worschechfix in Ida, Ida did not stop if an error accrued in non linear solver
6bcab709bRüdiger Frankeremove pragma once from main compilation files
c79c991ccNiklas Worschechsplitted cpp template file throw exception if Newton stops with error Kinsol always throws exception if Kinsol stops with error
fc2558adeNiklas Worschechremoved BOM in Kinsol
52249f276Niklas Worschechsome fixes in Kinsol of cpp runtime - reduced max number of iterations - increased tolerance for function norm - start earlier with line search method - increase tolerance for jacobian eps, if Kinsol fails in line search method
ed2fbf807Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
03cb48d00Niklas Worschechsplitted cpp template file throw exception if Newton stops with error Kinsol always throws exception if Kinsol stops with error
44f0b9150Rüdiger Frankefix memory error in OMEdit options parser
23a483a99Marcus Walther- Metis-Scheduler is now working if n was set to 1
7f2317642Marcus Walther- Logger of cpp-runtime can now be disabled by passing an argument to cmake - removed a lot of logger output in FMUWrapper.h
85dbcb379Martin SjölundDo not use a macro called time
2e3857088Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
49329bba5adrpoincrease max file size to 800k in sanity-check
ce556f370Martin SjölundFixes for listFile
7180491cdRüdiger Frankeenable pull request for CodegenCpp.tpl
50ff4c270Rüdiger Frankecherry pick initialization of record variables
9027f74abNiklas Worschechremoved BOM in Kinsol
68654dbd1Niklas Worschechsome fixes in Kinsol of cpp runtime - reduced max number of iterations - increased tolerance for function norm - start earlier with line search method - increase tolerance for jacobian eps, if Kinsol fails in line search method
630c7beb5Niklas Worschechremoved BOM in Kinsol
573d09bb0Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
887bfa485Niklas Worschechsome fixes in Kinsol of cpp runtime - reduced max number of iterations - increased tolerance for function norm - start earlier with line search method - increase tolerance for jacobian eps, if Kinsol fails in line search method
fd7495952adrpofix bug #3291 - set default values for record members in functions
9f28039feMarcus Walther- forgot new getter/setter in global settings for FMU 2.0 export
f0b6faea1Marcus Walther- fix for new sundials-version in cpp-runtime
b5906fa4aMarcus Walther- removed wrong enum forward-declaration - fix for new sundials-version in cpp-runtime
61b36136eMarcus Walther- function arguments for the !WITH_SUNDIALS functions are now up to date again
12f2912dcMarcus Walther- removed the old Kinsol_lapack - flag of the cpp-runtime - KinsolLapack will now work with new and old versions of sundials - Non linear solver can now continue simulation instead of throwing an exception, if it does not reach the given precision, by passing a flag to the executable
3e376747bRüdiger Frankeimplement terminate() in Cpp runtime
5ccde2312Rüdiger Frankeuse explicit StatArray constructors and operator=
a892206efMartin SjölundMove threadData away from simulation data
2f482f2e6Rüdiger Frankesaveguard array copy operations against zero size
3917c8111Willi Braun - add DIVISION replacement also for symbolic jacobians
1c2c80421Marcus Walther- removed debug output
21c6f3bd7Marcus Walther- _AMaxColors is now initialized with 0, to prevent access to uninitialized value from cvode
d3a395374Marcus Walther- added some helper functions to extract data from objects (getCompsOfMatching and getSimVarMappingOfBackendMapping) - HPCOM is now able to handle models with NO_MATCHING()
ef2305460Rüdiger Frankerelax precautions for wrong uses of StatArray
19060fd4eRüdiger Frankerename Cpp command line arguments
6ac54189cRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ec27dd855Marcus Walther- fixed a stack overflow in HPCOM
2d7e7249bRuedKamp-enabled test for real time with msvc
9819b5821Marcus Walther- logger can now be used in several classes (including the model class) of the cpp-runtime - cpp-runtime is now build in debug-mode by default on linux/mac - internal StatArrays can now be applied to internal StatArrays
a0f0122e4Niklas Worschechfix in Array getData and getDataCopy for segmentation fault
a037dd847Niklas Worschechfix for missing include in FactoryExport of Kinsol
74d4e2f37Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c34f65cecNiklas Worschechfix for missing include in KinsolLapack of cpp runtime
28f13edcaMarcus Walther- fixed FMU generation if kinsol is used as non linear solver
2d652462aMarcus Walther- removed the old documentation stuff -> it's now part of the openmodelica-doc-project
e5cd1b4d1Niklas Worschechfix for missing kinsol_klu include in cpp runtime
6f0267d16Niklas Worschechadded missed files for cpp runtime
f4ba1f47dNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
de80e2bfcNiklas Worschechfix for getStateJacobian method, wrong return type was generated added additional linear solver to Kinol solver which uses complete pivot lu factorization fix for Kinsol solve iteration, added iteration method section
9d5440016Rüdiger Frankefree memory of strings from external C functions
9352ce6a8Martin SjölundFix for OSX stack overflow check
f9a05a162Rüdiger Frankefix treatment of outputs of external C functions
a05d7975cAdeel AsgharSte the proper value for FMU initial attribute by using the combination of variability and causality as defined in FMI specs section 2.2.7.
c8ffe0bcbRüdiger Frankefurther Array refinements
e182aade2Rüdiger Frankeadapt processing of outputs to recent changes
e2b32ce8cRüdiger Frankere-add processing of outputs of external functions
80fd0d620Marcus Walther- updated the gitignore file - README update for Windows build of cpp-runtime - removed the unused --with-cppruntime-args
673219333Marcus Walther- fixed some typos in configure - output directories for cpp-runtime libraries are now written into Makefile.env - changed README for cpp-runtime
078b80ae5Marcus Walther- fix for autoconf of cpp runtime
354f8a23cMarcus Walther- paramters for the cpp-runtime are now handled in configure instead of makefile
992f6e455Martin SjölundLibraries are not needed for omc-no-sim
799bcc330ptaeuber- fix bug in newton solver with fvec
3236596eaptaeuberintroduced dynamic tearing
e522fc2fcAdeel AsgharDo not create empty documentation folders.
08f747ba8Martin SjölundSkip the commit message sanity check
6443c248aRüdiger Frankefix implementation of delay operator
d2ac409a4Martin SjölundAdd hook for testing commit messages
b6c518b28Martin SjölundImprove check for long commit messages
6b6457c83Lennart OchelRemoved unused inputs to get cleaner interfaces
e05e21a35Marcus Walther- Logger of Cpp runtime is now enabled by default, the standard log level was reduced to "warning" - Kinsol will no continue solving non linear equation systems if the convergence criteria was not reached -> a warning is printed instead until we have a solver that is able to solve the systems correctly
e427c5c10Lennart OchelRevised createFunctions
228800efcLennart OchelRemoved unused vars from createSimCode
50e2ca643Martin SjölundHandle external string arrays better (fixes #3292)
8b6bf3859Rüdiger Frankefix assignment of pre values of Cpp arrays
c689bad04Martin SjölundPrevent stack overflow for differentiateExp
6670be24bRuedKamp-bug fix in RTEuler
1e10ce245Lennart OchelFixed regression in BioChem lib
b985f3cbeRüdiger Frankemake FMU Cpp compiler optimization flag configurable in local makefile
ff736de64Rüdiger FrankeLet operator= of StatArray copy data like previous StatRefArray
bee37e0faRüdiger FrankeFixes after first test round
1ffe2deb4Rüdiger Frankeadd runtime checks for proper use
3cf48567aRüdiger Frankefixes to previous commit
832c3beaaRüdiger Frankeextend StatArray to also work with external data
3027167a0Marcus Walther- added missing return value to default implementation of peer solver
42f521d79Martin SjölundPrint string list default values in Sphinx doc
16fa18465Marcus Walther- further fixes for HPCOM compare components
49ec8ae57Martin SjölundFixes #3395. Generate lhs crefs instead of rhs.
860b23c2aWilli Braunchange variability for fmi 1.0 back
49a6e7ecdWilli Braunfix attribute name for causality
e3641b8eaRuedKamp-some changes for vxworks
4a7ed5cb6RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f4c643a1fRuedKamp-some changes for vxworks
59be82534Martin SjölundAdditional messages if files do not exist
6fd7783b9Marcus Walther- fixed MSVC build if openmp was not found
236b21bcfLennart OchelRemoved obsolete initial() testing
cebbe0416Martin SjölundFix #3380: Handle save() for short class definitions
57a269ecfhudsonMerge remote-tracking branch 'origin/master' into pullrequest
72c5b339cMarcus Walther- fixed Intel TBB build with c++ simulation runtime - HPCOM Task-Graph validation should now work correctly
21ff51970Marcus Walther- peer-cmake should now work if no openmp was found on system
cc84d1c36Marcus Walther- peer-cmake should now work if no openmp was found on system
bd115c168Marcus Walther- removed some unused code, to stay below 684k and fix the sanity check
259fa727fMarcus Walther- Peer solver (openMP flavor) is now working - copy constructor of model extension class makes a deep copy of all important variables now - openmp is now added to all simulation runs, if cmake has find it
95c1f364aMarcus Walther- peer-cmake should now work if no openmp was found on system
bd201bdc4Marcus Walther- peer-cmake should now work if no openmp was found on system
4cd88de65Marcus Walther- removed some unused code, to stay below 684k and fix the sanity check
ef76cd6ecWilli Braunonly evaluate the model if something changed
57646056aMarcus Walther- Peer solver (openMP flavor) is now working - copy constructor of model extension class makes a deep copy of all important variables now - openmp is now added to all simulation runs, if cmake has find it
177055d7aRuedKamp-added handling for singular matrices
927783ca5RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b4d1655beRuedKamp-commented out boost::math::isfinite for vxworks
fd6076ef3RuedKamp-commented out boost::math::isfinite for vxworks
e7091b642adrpo- fix conversion script for Annex lib to handle bad input
494d5cffbadrpo- check for None in conversion script
cc94341a9adrpo- print the file we convert
e43f7a00aNiklas Worschechfix in umfpack solver, only include umfpack.h if umfpack was found
ebe75f684unknownadded correct numeric bindings version
35e39f7b4Niklas Worschechadapted umfpack solver of cpp runtime on new Matrix interfaces
fbe1b9dd1Niklas Worschechremoved wrong version of numeric bindings
3bea64548Niklas Worschechfix in umfpack solver, only include umfpack.h if umfpack was found
91a2bb1e8Lennart OchelAdded default values for matching and index reduction
36c6ff771Lennart OchelAdded default values for "--preOptModules" and "--postOptModules" to help page
1577288a5unknownadded correct numeric bindings version
3f974fc28Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
cbe21ee20Niklas Worschechadapted umfpack solver of cpp runtime on new Matrix interfaces
2c8a396e3Willi Braun - deactivate symbolic jacobian calculation for fmi2.0, since it's currently not used anyway.
aed449cceWilli Braunfix some debug output in symbolic jacobain
564af844cvwaurich- dont use artificial vars for prestartcalc
3082af8b2Niklas Worschechremoved wrong version of numeric bindings
9bbf3adc2gossenReplace expr in Clock constructors to previous(expr)
3d21fe70dgossenAdd initial synchronous support to simcode and c-codegen
e93d69cb6gossenprevious operator should be marked as known and its variable should be a fixed
ad5f2bd2cgossenSome refactoring
f9f8aae8bvwaurich- fix countoperations for small nl-systems
6f2f71529Niklas Worschechfix in cpp template for getSystemMatrix method
4a391c0c4Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
8d089ff3aNiklas Worschechadded config flag to switch the matrix format in cpp runtime +matrixFormat=[dense,sparse]
e2e030f98Lennart OchelAdded missing vars to SimCode
ec93d42fcMarcus Walther- fixed windows build of cpp-runtime
cbe8e9dd5Marcus Walther- the number of event indicators should now be correct for c and c++ simulation runtime
d9b26e6b6Marcus Walther- Kinsol can now be used for FMUs, by passing a parameter to cmake - added some logger output to the kinsol and newton solver
810476f8aLennart OchelRemoved obsolete cases in RemoveSimpleEquations
fa5acbcb2Marcus Walther- removed input and output variables from simVar to index mapping, because they are already part of the other variable arrays and thus they are added twice - commented out the -DUSE_UMFPACK statement, until Niklas has delivered a fix for the umfpack solver
dfee2945eNiklas Worschechfix for memory leak in algloop system of cpp runtime
201b0726fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
5ff3cc0efNiklas Worschechchanged A Matrix to ublas matrix in Algloop class removed template functions in AlgLoop classes to calc A matrix, only one A matrix type can be used now(sparse matrix can be used with a flag later) adapted non linear solvers on new getSystemMatrix method
12822bc2bunknownupdated numeric bindings
b0fae1745Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
af9687a1cNiklas Worschechchanged A Matrix to ublas matrix in Algloop class removed template functions in AlgLoop classes to calc A matrix, only one A matrix type can be used now(sparse matrix can be used with a flag later) adapted non linear solvers on new getSystemMatrix method
fd0d73bc4Lennart OchelDon't print empty dimensions list
a49f7c1f4RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
15ba0155cRuedKamp-some changes for vxWorks
f9c741ae0unknownupdated numeric bindings
fff5d101fWilli Braun - fix alpha constant for damping. Fixes partially #3118.
4a52c46f6Willi Braun - fix debug output
d1656bbacWilli Braun - revise lambda debug output
65593bf21gossenSimCode refactoring
c30ebadd3bernhard ThieleNew Modelica state machine prototype
e8d65ec9cvrugecosmetic changes
e3690021bvrugesome fixes for complex functions
32bc6830eLennart OchelRevised singularity check for linear systems
b454d6132vwaurich- warning for singular systems instead error
fca1e8a4fvwaurich- continue Translation after SingularSystemCheck
f15f3a2aavwaurich- stupid fix for PrismaticConstraint
9a7e0fb79vwaurich- proper debug Matching in IndexReduktion (reverted from commit 1cd837980a2d5e2b708cc0181f0498713d5d912a)
847d50549vwaurich- proper debug Matching in IndexReduktion
ca563fcecPer ÖstlundFix for #3382.
ab4e34c95RuedKamp-changed evaluateAll in Cvode to evaluate evaluateODE
9573413a9RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
4bc045b3cRuedKamp- added some brackets
0db3df184vwaurich- continue Translation after SingularSystemCheck
c2ea9a5advwaurich- stupid fix for PrismaticConstraint
cc8f06f19vwaurich- evaluate ASUB-Calls partially (fix gravityAcc)
78d8b9ea0vwaurich- proper debug Matching in IndexReduktion (reverted from commit 1cd837980a2d5e2b708cc0181f0498713d5d912a)
d2e10c48fvwaurich- proper debug Matching in IndexReduktion
59cca54a3RuedKamp-commented out arkode
3dab5aa47RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a757ab529RuedKamp-commented out arkode in CMakeLists.txt
26a008ac0RuedKamp-used anyedit
6a5d5bd00kbalzereit - added step-sie control for symbolic inline solver
890bfba4eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
639e64f40RuedKamp-changed std::vector to double * in AlgLoopDefaultImplementation
006502b58Lennart OchelStop pre/post-optimization on failure properly
2fcf8c139adrpo- ANSI C please to please the MSVC compiler :)
af61d763dLennart OchelCleaned up #116
f7b4037a2Willi Braun - fixed indentation
35e678266kbalzereit - collected commits for improving non-linear solver newton.
4a8e66836Willi Braun - add simulation flag -nlsInfo that generates csv files for every non-linear system for detailed analysis propose
8b345f03bLennart OchelFixed typos in flag descriptions
74002730avwaurich- Errormessage in IndexReduktion
bff595515vwaurich- some ErrorMessages for IndexReduktion
ce246869eLennart OchelFixed nls dump for newton method
69cde813dvwaurichsingleThreadSchedule
37686b475vwaurichrevised partScheduler and reversed idxs in eventgraph
403163e08RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
98141da95RuedKamp-changes for vxworks
5838895b1RuedKamp-changes for vxworks
b25d1f38dadrpo- handle BackendDAE.NO_MATCHING inside BackendDAEUtil.getStrongComponents - remove msgpack include as we don't have it anymore in 3rdParty (why is that?)
eaac1dc06hudsonMerge remote-tracking branch 'origin/master' into pullrequest
160737d24Niklas Worschechadapted newton solver of cpp runtime for linear tearing
92491bd2aMarcus Walther- added the old switch-case-statements again, to handle fmu 2.0 export correctly
1caa4f9e3gossenReplace SIMCODE record constructors
41e9fb059Marcus Walther- fixed wrong variable indices in modelDescription.xml (FMU export for CPP runtime) - fixed FMU 1.0 export of cpp runtime - fixed linker flags for hpcom fmu export (cpp-runtime)
52eb407ccNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
4476180d9gossenDont filter out clocked partitions with removed equations
7c8141652gossenDo partitioning for removed equations
706508369gossenSplit removed equations beetwen shared and eqsystems sections of dae
b9431117bgossenPrint base clocks in synchronous dump info
9116d28f6gossenRemove FindZeroCrossings getters functions
e728806dcMarcus Walther- added missing comma to json profiling files
5be3c0864adrpo- update 3rdParty
db870f442adrpo- use strol instead of strtoll as MSVC doesn't like it
1b3e57a25adrpo- do not use atoll as MSVC does not have it
61a6e5aa7adrpo- more fixes for mingw64
a6dc843baadrpo- some mingw64 bit fixes
95c827c4dLennart OchelCall module "expandDerOperator" before module "clockPartitioning"
a4ddaa188Niklas Worschechfix in kinsol of cpp runtime for linear tearing system
66ba9e3f3Niklas Worschechlinear tearing systems using jacobians for A matrix in cpp runtime
d53f8f577Niklas Worschechadded getJacobian matrix method for an Jacobain matrix index to cpp runtime
6327e130fNiklas Worschechaktivated linear Tearing in cpp template
33972b1fbLennart OchelGenerate cleaner code for when clauses
8cb67d01bNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9205fb7d4Niklas Worschechfix in kinsol of cpp runtime for linear tearing system
1ef03bc1bRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ffbbe2c4aRuedKamp-some changes for vxworks
1df8f0206RuedKamp-whitespace error whatever
18bbee159RuedKamp-merged
f9236803fadrpo- put back --emit_protected for CPP runtime as is used by Hudson library coverage script
d490ce2bfLennart OchelGenerate cleaner code for reinit statements
f186db9f3Lennart OchelClear the flag discreteCall on the same level on which it is set
812ef728cadrpo- fix MSVC build of simulation code
6a820527cNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
21906db5bNiklas Worschechlinear tearing systems using jacobians for A matrix in cpp runtime
2839510c6Lennart OchelRevised Initialization.mo
026f2b473Marcus Walther- changed output point type OPT_EMTPY to OPT_NONE - if outputFormat in mos-skript is set to "empty", no result file is created in the cpp simulation runtime anymore
42f53d1c8Marcus Walther- removed alias variable initialization - removed some unused flags from cpp-runtime
1a4cb22bdvwaurich- more trailing whitespace stuff
3b2b0aadcvwaurich- remove trailing whitespaces
083ced88fvwaurich- apply GRS for DAe and ZeroFunc System, adapt validateTaskGraph
f04aa0238Lennart OchelHide SimCodeUtil error if initialization fails
2980576bfMarcus Walther- HPCOM-FMU-Support added - the HPCOM-ODE-System size is now checked against the number of sim code equations - Cpp-Runtime does now create a valid modelDescription.xml
6cd6458beMarcus Walther- cpp-runtime will now create reference variables instead of defines, if +d=gendebugsymbols is set
db1ab6ea9Lennart OchelReplaced some more record constructors
21bb0ca09Martin SjölundRevise handling of MM singleton uniontypes
10cb0fb53Martin SjölundMake List.position return failure
6547655f0gossenReplace BackendDAE record constructors
1195db077Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
98ca067f8Martin SjölundHandle boxed arguments in ranges
1488c5e78Lennart OchelMake use of singleton uniontypes in the back end
129db8b17Lennart OchelReplaced function Util.isSome by built-in function isSome
bd201785aLennart OchelMake use of singleton uniontypes in the back end
4306540e2Martin SjölundUse singleton records without matching
069390107Martin SjölundTreat singleton uniontypes as records
0e1c51713gossenUse BackendDAEUtil.emptyClocks function
1f4d2f289gossenMove base clocks info from SHARED.EVENT_INFO record to SHARED record
2362cf33bPer Östlund- Differentiate between generated and non-generated meta records.
ce51c3611Per ÖstlundMetaUtil cleanup and fixes.
7fcda78a7Niklas Worschechadded getJacobian matrix method for an Jacobain matrix index to cpp runtime
b876223fdgossenReplace BackendDAE record constructors in VisualXML
a9303a80fgossenReplace BackendDAE record constructors in SimCodeUtil
ca8020488gossenReplace BackendDAE record constructors in RemoveSimpleEquations
511dbadd2gossenReplace BackendDAE record constructors in IndexReduction
aadcee5bdgossenReplace BackendDAE record constructors in FindZeroCrossings
14e461144gossenReplace BackendDAE record constructors in EvaluateParameter
db74734ccRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c9721cc62gossenReplace BackendDAE record constructors in Initialization
426d2c1bfgossenReplace BackendDAE record constructors in StateMachineFeatures
5f29c5c7fgossenReplace BackendDAE record constructors in BackendDAEUtil
08a8ac2adgossenAdd function setSharedOptimica in BackendDAEUtil
d1fdf8210Lennart OchelRevised function preBalanceInitialSystem2
324df4944Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c9ea07508RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
26c02a24bgossenSynchronousFeatures refactoring
b8c8618cbgossenReplace BackendDAE record constructors in RemoveSimpleEquations
31da2af4egossenReplace BackendDAE record constructors in ResolveLoops
23af696ffgossenReplace BackendDAE record constructors in Vectorization
e2ec7cfd5gossenReplace BackendDAE record constructors in OpenTURNS
811d799bfgossenReplace BackendDAE record constructors in Matching
70d59a90agossen Replace BackendDAE record constructors in InlineArrayEquations
248535d58gossenReplace BackendDAE record constructors in Initialization
569132547gossenReplacing BackendDAE record constructors in FindZeroCrossings
fbf521a1agossenReplacing BackendDAE record constructors in EvaluateParameter
b604146ebgossenReplacing BackendDAE record constructors in DynamicOptimization
cbf3347eagossenReplacing BackendDAE record constructors in CommonSubExpression
8e856290cgossenReplacing BackendDAE record constructors in BackendDAEUtil
409d49b89gossenAdd function setEqSystMatrices to BackendDAEUtil
afe896e99gossenReplace BackendDAE record constructors in BackendInline
e0c6d316egossenReplace BackendDAE record constructors in BackendDAETransform
bcde872f8Martin SjölundCompile fewer packages when bootstrapping
ff50eb254Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
452a7cc5fMartin SjölundRemove unused imports
a5ea4c963Martin SjölundSplit CevalScript into CevalScriptBackend
aea876d89Marcus Walther- added zeroFunc-Schedule to HPCOM - fixed windows msvc build for cpp-runtime
bf98442b5Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
509f225c4Martin SjölundSplit CodegenC into CodegenCFunctions
1b616669eNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
471efb23bMartin SjölundMake it possible to compile OMC without backend
28efb3efdMartin SjölundFix c99eeed
cb40561eaadrpo- fix compilation
c99eeed8dadrpo- fix Windows build by prefixing the enumerations in the CPP runtime settings with OM_ as otherwise the MSVC compiler complains madly
dba536236Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
69e41fc43Lennart OchelCleanup package Initialization
69ba9498fRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
74f231ca5Lennart OchelFixed typos in flag descriptions
aa6c0e0adMartin SjölundFix for missing __func__
b38ffe375RuedKamp-changed encoding
78af16b84Martin SjölundUse GNU sed
3c606c710Martin SjölundFixes #3367,#3249 (unknown dim in function call)
5643d00bbRuedKamp-whitespaces
f5b68bb65RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b65b1532cRuedKamp-whitespace error
afaf03976RuedKamp-changes reverted
876a71052RuedKamp-some adaptions for vxworks
4609f5a09Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
728c5a3f4vrugeimporved "collect" of terms
6518e3cf9vrugeadded prototype recursive tearing
c5516d9d3Martin SjölundAdd API diffModelicaFileListings
8c6597489Martin SjölundaddComponent API now uses the correct filename
0c8443671Adeel AsgharFixes #3375 OMNotebook array plotting.
1a677547fAdeel Asghar- Updated Types patch to fix Windows build.
f9f25dd79Lennart OchelFixed typos, indentation and coding style
226e96decLennart OchelFixed some error messages
b1e44121dmarchartungFixed Windows bug for conversion const int to LogLevel
4f4dbe218Martin SjölundCompile the ModelicaDiff lexer with OMC
adab1eea0Martin SjölundAdd target to update the lexer
09c0b45cegossenReplace BackendDAE record constructors in BackendDAEOptimize
ddeca2f9fgossenAdd function clearEqSyst
7f2487255vrugefixed whitespace
e4f030addvrugeclean up
d94675ccdvrugeimproved simplifySumOperatorExpression
e9b910ea9vrugeimproved symplifyLoops
5942fbcdcvrugeadded post module for simplify loops for the simulation/optimization
c53af00d3Martin SjölundAdd ModelicaDiff lexer
49f3f03caMartin SjölundCheck commit summary and message lengths
e234aa135marchartungFixed FMU2-Errors. Static member FMU2Wrapper::logCategory is now FMU2Wrapper::LogCategoryFMU
16dee2532marchartungLogger for CPP-Runtime updated
7e74d3bc2Marcus Walther- added boost::atomic to windows cpp-runtime-build
338531710Marcus Walther- replaced boost_log with logger-class of cpp-runtime - moved the implementation of StaticNonLinSolver-, StaticLinSolver- and StaticSolverOMCFactory to code files (because otherwise we are not able to disable cvode and kinsol for FMU export, easily) - FMU is now using Newton instead of Kinsol by default - FMU has no dependencies to sundials anymore
48def8bdeLennart OchelFixed typos
4446bdb9fLennart OchelFixed some typos
45d02162eLennart OchelImproved handling of inverse algorithms - Discrete variables do no longer appear as iteration variable - Proper error message for systems that need to have discrete iteration variable
70c020cb5Martin SjölundPatch the bootstrapping tarball
127ddbfe7Martin SjölundFix some polymorphism checks
91eaa018aLennart OchelMerge branch 'master' into inverse-algorithm
639dcf9c2Lennart OchelSolve for inputs (or a combination of inputs and outputs) of an algorithm section if necessary Therefore, the algorithm is treated as a nonlinear loop. This should be improved for discrete or hybrid systems (mixed continuous and discrete systems). See #3081 TODO: Handle discrete algorithm outputs properly.
14c7f83d6Marcus Walther- support for Intel Compiler added to C++ Simulation Runtime (by Joseph Schuchart)
9847abb11Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
2542dd936Niklas Worschechaktivated linear Tearing in cpp template
3aa480b21Martin SjölundAdd missing fail calls
ac6e440cbMartin SjölundPrint default values
072de1ac4Lennart OchelRemoved case for empty algorithms in SerializeModelInfo.serializeEquation There should be no empty algorithms in the backend anymore.
166d282f7Martin SjölundAdd a complete sphinx help text
f2102e355Lennart OchelRemoved optional initialization This removes obsolete code that was introduced to make numeric initialization available as fall-back solution if the symbolic initialization failed. Since the numeric initialization is removed for some time, this should be removed as well.
8927383efLennart OchelDon't add empty algorithms to BackendDAE
3c02ab560Martin SjölundImprove --help=simulation
ec9f2b8e4Willi Braun - fix noevents debug flag
281db692cMartin SjölundImplement Myer's diff algorithm
3a5957537Martin SjölundImprove operator overloading and error-messages
ced871422Martin SjölundHandle array as iterator
e924e3c86Martin SjölundFix umfpack rpath
05fad1a9fhudsonMerge remote-tracking branch 'origin/master' into pullrequest
9f8ce9c5dMartin SjölundSupport pattern matching for enumerations
3432e3e7bMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
2ab80728dMarcus Walther- added sundials license file to cpp-runtime and to FMU distribution
c46429998Marcus Walther- all libraries of cpp runtime are now compiled with -fPIC on Linux systems - boost log completely deactivated -> I will change the boost logger to the new logger code, soon - fixed FMU compilation (now the static libraries are used)
47ff858e3gossenReplace BackendDAE record constructors with BackendDAEUtil helper functions
7ae1fb468gossenAdd functions setVars and setEqs to BackendDAEUtil
30ddcebb0gossenAdd function setSharedInitialEqns
2263f8d82gossenReplace BackendDAE setter functions with new ones with uniform name and prototype
b6d7f284bMartin SjölundSupport the now standard Connections.rooted
234e916baMartin SjölundFix for OMPCC on OSX
5942cf830marchartungFixed Modelica.Thermal.HeatTransfer.Examples.Motor for debug=hpcom
dd9ec804eMartin SjölundFix wrong parameter name for regex
e69127457vrugeimproved sortEqnsAndVars
95945478bvrugeadded: sortEqnsVars -> heuristic for sorting eqns and vars. TODO: improve the heuristic
0fc49fbadMartin SjölundUpdate system libs list
b0733603cRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
18b5e7e5eRuedKamp-added functionblock for vxworks69
d084a77e3Per ÖstlundMade ConnectUtil.sizeOfVariable2 handle array dimensions better.
1a119b6f8Lennart OchelChange some matchcontinue statements to match statements Remove some unhelpful comments
e8f8cc594Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
0feb1da87Rüdiger Frankeadd libs of external objects to gcc makefile of Cpp FMI
930ee9242Rüdiger FrankeAdapt Cpp FMI2 to recent changes to make it compile again
c0786262eRuediger FrankeRedo 8963da5 to make Cpp FMI2 work again
ef62d68d2Martin SjölundAdd a CONTRIBUTING file
433bd28f9Marcus Walther- Added measureTime-Regions to thread-functions
c1b896dabMarcus Walther- fix for undefined MEASURETIME_REGION
44e6e5e4dMarcus Walther- fixed some linker problems - added measureTime-statements for threads of thread-schedule
164e53e17Martin SjölundFix ipopt compilation on OSX
77a112e21Martin SjölundAdd weak linking for OSX umfpack
5d52a95fcMartin SjölundFix sanity check
ee53ba666Martin SjölundMake a tail-recursive call
390d47533Willi Braun - fix codegeneration of sparse pattern
97c3eb8adMarcus Walther- fixed CVodeWriteOutput-Tracing
8e9e1aed6Marcus Walther- fixed CVodeWriteOutput-Tracing
1a975c24cMarcus Walther- fix for FMU export - fixed CVodeWriteOutput-Tracing
4d21edaadLennart OchelFix #3358 (Strange discrete behavior in algorithms)
ed4808a23RuedKamp-fixed whitespace
d335cc63bMarcus Walther- further changes on Makefile structure, to disable papi if scorep is used
e052ac084RuedKamp-fixed whitespaces
59574f7d5Marcus Walther- removed runtime_static_linking from mingw-makefile - removed threading instruction for scorep
e6aeb1d16RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
69e381087Willi Braun - change execStat usage a bit to get a better overview
c9cd590a4Henning Kielsome fixes for compilation on OS X
d32effdccMarcus Walther- fixed segfault
f3cb54a80Marcus Walther- added missing static library
39283a106Marcus Walther- removed runtime_static_linking from Makefile
7b13279faMartin SjölundIntroduce new API call listFile
c0aed9a77Marcus Walther- fixed runtimeStaticLinking - fixed ScoreP-Support
b0dc6e73aNiklas Worschechfix for external c calls return values in cpp runtime
0af65300bMartin SjölundUse better version
bd9ddd201RuedKamp-fixed whitespaces
cddf27017RuedKamp-fixed whitespaces
d92fe2ed0RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ca33ed1efMarcus Walther- fixed mingw build
575332101Marcus Walther- ScoreP-include added
0c25b668bMarcus Walther- fixed ScoreP-Handling in Cmake
800439e6eMarcus Walther- fixed mingw build
371736ec0Marcus Walther- ScoreP-include added
e7e289030Marcus Walther- fixed ScoreP-Handling in Cmake
1a632d21bhudsonMerge remote-tracking branch 'origin/master' into pullrequest
7a965d793Marcus Walther- fixed msvc build
5f59a5b47Martin SjölundInstall pre-commit hook
562f2cb17RuedKamp-fixed whitespaces
42e3157daMarcus WaltherMerge remote-tracking branch 'origin/master' into fastMW2
a5bdcbf7bMarcus Walther- removed experimental PropertyReader - updated gitignore-file
55f5ad052RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
0d0114419Marcus Walther- added missing property reader interface
1ed94c99fMarcus Walther- cherry picked niklas changes
cf1058ae2Marcus Walther- added XmlPropertyReader-Class - Fix for FMU shared object generation
2c70f15c5Marcus Waltherfix for msvc build of cpp runtime fix msvc build in cpp runtime
df48d6ed1hudsonMerge remote-tracking branch 'origin/master' into pullrequest
d36f27a3bMartin SjölundLook for Susan-generated files
b2427203bptaeuber- minor bug fix
6f28e4181Per ÖstlundFix for #3357: - Simplify actualStream when flow direction can be determined from min/max of flow variable.
b2d7e9fadMarcus Walther- first version of initialization XML for c++ simulation runtime added
1abf2a92fMartin SjölundUpdate sanity check
e6dec7cd7Martin SjölundFix MODELICAPATH/OMHOME confusion
f2b42a73fptaeuberMerge branch 'master' into passSystem
7db7104f7ptaeuber- pass second tearing set to runtime
bffe982e5Per ÖstlundFixed naming of record constructors when using enumeration arrays.
0f3a1f9e2RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
10e080e24vwaurich- remove trailing whitespaces
3a00a4279vwaurich- fix for var replacements
96c3492bbvwaurich- extend var replacement to substitute partial function calls
810b701c5vwaurich- remove file that does not belong to this branch
c97550e75vwaurich- remove trailing whitespaces
9b7f32e78vwaurich- fix indexing of partial function evaluation
55f212251vwaurich- fix function evaluation
eeeb68edevwaurich- remove some debug output in eval funcs
8da901279vwaurich- even mroe fixes
abf4da539vwaurich- more fixes for eval func epxs
35582b75fvwaurich- some more stuff for eval function calls
c53f53cdevwaurich- added evaluation of function calls in exp, replace ceval with this in removesimpleequations
16a7b8a8fRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e145aa85fhudsonMerge remote-tracking branch 'origin/master' into pullrequest
de1412c59Marcus Walther- fix for windows build
cbb42691amarchartungBugFix level scheduler
7b43f2b66marchartungAdded new statistical profiling feature
a48c2f9e8marchartungAdded statistical support for profiling
f4112f439marchartungUpdating profiling cpp
47f02a309RuedKamp-fixed whitespaces
876897cfdRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
27e85a18aRuedKamp-added some fixed concerning VxWorks
004a350bdMartin SjölundImprove sanity check by checking all commits
3ec9602baMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
f7f3c6652Marcus Walther- fixed runtimeStaticLinking for C++ Runtime
752d5e738Martin SjölundEvaluate NORETCALL function as well
7417377b3Martin SjölundFix getClassComment
e78a319f4Martin SjölundRemove references to OMVisualize
bf1442540Martin SjölundAdd stringSplit to the API functions
940803f8dgossenUse Absyn path equality check function in SCode.hasExtendsOfExternalObject function
8d8d325e7adrpo- the MSVC compiler does not like the structure to be constructed while returning from a function; fix function rat2Real
50340df48adrpo- the C language does not have bool and the MSVC crap compiler complains about it, change it to int
080582ddcgossenFix typo in InstUtil failtrace messages
8319e8c7dMartin SjölundTrim trailing whitespace
db90b5d56Martin SjölundSquashed commit of the following:
9300fd4bavrugeskipped createStateSets for dummyDerivatives
8d92effe9Willi Braun - improve symbolic jacobian just by removing unionList
131f0134fgossenAdd rational number support in SimulationRuntime-C.
32417fc46Marcus Walther- fixed msvc build
6e8220bc8Marcus Walther-Added kinsol library to FMU
ebc9ca992adrpo- return value from Logger::isEnabled
97f4aaf35vrugemakeEquationToResidualExp: added case for Wild
7dfa590eaMarcus Walther- added some gitignore-files for cpp-runtime - FMU includes the kinsol library now
7e2e9c58bMarcus Walther- changed return type of evluate functions to void
b913ad9c6Marcus Walther- moved creation of build-folder from clean- to runtimeCPP-target
c04586ef1Marcus Walther- removed clean in makefile-target "runtimeCPP", to reduce the build time - removed RUNTIME_STATIC_LINKING from ModelicaConfig (Cpp-Runtime) - Modelica-import in busywaiting-barrier is now correct again
f760fd3fdMarcus Walther- splitted evaluate-functions
8020ee945Marcus Walther- fixed initialization
541a4430bMarcus Walther- fixed fmu-logging
57f18a987Marcus Walther- fixed linking issue with FMULogger
0232968b3Marcus Walther- fix for Cpp-Runtime
fcaa46e5cMarcus Walther- logging can now be switched on and off
8963da573Marcus Walther- fixed FMU logger and getter- and setters
278ed061cMarcus Walther- FMU cleanup (CPP-Runtime)
13c46982fMarcus Walther- added a simple logger class to cpp-runtime - cleaned up FMU files
c0cb378c2Marcus Walther- removed the eclipse stuff because it is part of the superproject
933ebb37bMarcus Walther- some fmu-cleanups for cpp runtime
71bd4c298Marcus Walther- changed return type of evluate functions to void
f03a9557dadrpo- split the CodegenFMU.tpl into several files
2b2d49903ptaeuberpass second tearing set to runtime
f7600b21fMarcus Walther- moved creation of build-folder from clean- to runtimeCPP-target
82bcd946fMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
c885abde3Marcus Walther- removed clean in makefile-target "runtimeCPP", to reduce the build time - removed RUNTIME_STATIC_LINKING from ModelicaConfig (Cpp-Runtime) - Modelica-import in busywaiting-barrier is now correct again
95d54df03vrugechange flag +d=extendsDynOpt in loop2con=all added option for loop2con: none, all, lin, noLin
4344719b5vrugeadded flag: nonlinear loops --> nonlinear constraints
ed6c94996Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
47955e830Marcus Walther- splitted evaluate-functions
8d8f136ccMartin SjölundUpdate instructions
32b35ec26Marcus Walther- fixed initialization
f778574a8Marcus Walther- fixed fmu-logging
b22e36e7bRuedKamp-added missing files
6adadd7b1RuedKamp-added solver arkode
f54c86fb3Martin SjölundAdd a sanity check for OMCompiler
07d7d9aacMarcus Walther- fixed linking issue with FMULogger
90b6c5d5dvrugecosmetic change
538b90949vrugegenerateCrefsExpLstFromExp: added case for der(x)
c2017c2f1Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
0a7c2fae9Marcus Walther- fix for Cpp-Runtime
6ebad16a4vrugedisable optimization OptModules for dynopt where +simCodeTarget=XML
b3abd2b50vrugeadded postOptModule for dynamic optmization: simplifyConstraints - try to simplify nonlinear constraint in box constraints (expansion planned)
df3bcafdeMartin SjölundMake alt text unique for profiling images
1462eb5d6hudsonMerge remote-tracking branch 'origin/master' into pullrequest
8cc1cf792Lennart OchelSome changes to "remove simple equations" and related stuff * [fixed] propagation of variable attribute "unreplaceable" within the back end * [fixed] all variables that have unreplaceable=true will now get skipped by "removeSimpleEquations" * [improved] reimplemented function selfGeneratedVar that is used to figure out if a variable was generated internally (by the back end) * [prepared] After doing casualization no new alias variable will be introduced (substitutions will be still made) by the back end. This will be needed once the system get split up right after the casualization module into systems for initialization and simulation.
ac4dc2e81Marcus Walther- logging can now be switched on and off
6c67400e1Marcus Walther- fixed FMU logger and getter- and setters
780b277dfMartin SjölundDump Optimica cref's
41793d5d4Marcus Walther- FMU cleanup (CPP-Runtime)
403265c49Marcus Walther- added a simple logger class to cpp-runtime - cleaned up FMU files
be2165344Marcus Walther- removed the eclipse stuff because it is part of the superproject
bd824ec45Martin SjölundAdd support to filter to CSV
36f6156b9vrugeadded assert for pow(x,0.5) = sqrt(x)
ec3daec07Marcus Walther- some fmu-cleanups for cpp runtime
5b20ca63fmarchartungUpdate HPCOM-IntelTBB (Task-Arena, Bug-Fix)
26ab95a95Martin SjölundFix indentation
bd5ab445bMarcus Walther- removed a whitespace
b38eaf292Marcus Walther- moved serializer.cpp to the correct location
8d7d1f718Marcus Walther- added serializer files again
06264302fMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
25a4f71f3Marcus Walther- fix for msvc build
79613997fPer Östlund- Fixed typo.
db388688avrugedynOpt: using IndexReduction=dummyDerivatives
fea68cf9avrugecosmetic change
7778c4612vrugecosmetic change
89587729dvrugecosmetic change
f32cefe26vrugecosmetic change
6d5356207vrugecosmetic change
44e54ebc0vrugecosmetic change
8de4ae301Per Östlund- Fixed typo.
f141d14f0vrugedynOpt: using IndexReduction=dummyDerivatives
dd0e9a6f9vrugecosmetic change
2678ace10vrugecosmetic change
dfb35e8c9vrugecosmetic change
ed177d3b9vrugecosmetic change
0b4809c28vrugecosmetic change
3dcc1b410vrugecosmetic change
4db1c9a43Marcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
c5496789cMarcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
5386ff0bdMarcus WaltherMerge branch 'master' into masterMW
47155523fMarcus Walther- cmake should now select the correct libraries (either debug or release) for the c++-runtime - fixed fmu export for windows (c++-runtime) - changed default cmake_build_type to debug
61a29c2b5Marcus Walther- static libraries are now created with each build of the cpp-runtime - turn on static linking by using +d=runtimeStaticLinking of omc - cleanups and bug-fixes
450d0f782Marcus Walther- fixed fmu export of cpp-runtime - cleaned up some static-linking stuff - fixed a segfault with the newly added profiling-points
5ec662ed7Marcus Walther- added new profiling points to c++ runtime - improved compile performance
2ad8c899fMarcus Walther- some simple improvements for HPCOM
c537d6e76Marcus Walther- cmake should now select the correct libraries (either debug or release) for the c++-runtime - fixed fmu export for windows (c++-runtime) - changed default cmake_build_type to debug
dbce3475bMarcus Walther- removed whitespaces
f3cd8338cMarcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
f5ac5cf2aMarcus Walther- static libraries are now created with each build of the cpp-runtime - turn on static linking by using +d=runtimeStaticLinking of omc - cleanups and bug-fixes
757ad0519Marcus Walther- fixed fmu export of cpp-runtime - cleaned up some static-linking stuff - fixed a segfault with the newly added profiling-points
4dba01a2bMarcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
04f6fcaa0Marcus WaltherMerge branch 'master' into masterMW
c7db96163Marcus Walther- some simple improvements for HPCOM
c8a256209leonardoAdds serialization of MMC values
272e2c6adMarcus Walther- static libraries are now created with each build of the cpp-runtime - turn on static linking by using +d=runtimeStaticLinking of omc - cleanups and bug-fixes
e3c2d0a9eMarcus Walther- fixed fmu export of cpp-runtime - cleaned up some static-linking stuff - fixed a segfault with the newly added profiling-points
b40726828Marcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
a8a58f801Marcus WaltherMerge branch 'master' into masterMW
d11bd4bf5Marcus Walther- some simple improvements for HPCOM
1ab4b1ac1Marcus WaltherMerge branch 'master' into masterMW
5b680aefcMarcus Walther- added new profiling points to c++ runtime - improved compile performance
7f603ec4cLennart OchelRemove duplicated interface declaration
7dccb34f5Martin SjölundMerge remote-tracking branch 'origin/maxDer'
26abf7f51Marcus Walther- some simple improvements for HPCOM
b406a81e8Per ÖstlundFix for #3337: - Lift type modifiers to the dimensions of the component.
9b0b4387cvwaurich- fix for highestDerivativeAdd a README
201cc1288Marcus WaltherMerge pull request #1 from OpenModelica/master
b7387b3b3Martin SjölundAdd a README
09168902cMartin SjölundMerge pull request #9 from vruge/disableDynStateSelectionInDynOpt2
99f5ac656vrugefixed: disable dynamic state selction
1eb6ca807Marcus Walther- removed some debug output
199d2aac1Marcus Walther- some cleanups in HpcOmMemory - empty-scheduler contains an equation-list now - c++-simulation runtime can now calculate the dae-system in parallel
28ad2449bvrugeMerge branch 'disableDynStateSelectionInDynOpt'
3828ff11cvruge- attempt disable dynamic state selction in dyn. optmization - cosmetic changes in IndexReduction.mo - using for loop construct - scale heutistic in IndexReduction for StateSelection
5992e4a1cPer Östlund- Fixed encoding of HpcOmScheduler.mo and SimCodeUtil.mo.
b8bb7135cvwaurich- fix testsuite for now, still have to handle underdetermined systems with derivation loops
b98a5ebfePer Östlund- Don't treat outer parameters without binding as a special case in Static.elabCref2, to enable vectorization.
df2d27245vwaurich- added information about highest derivative to SimCode.ModelInfo
19efba22fMartin SjölundMerge pull request #7 from sjoelund/master
dd06f1819Martin SjölundBase everything on @perost commit before vwaurich merge
0a1de3782Martin SjölundMerge pull request #6 from sjoelund/master
89982147fNiklas Worschechfix for typo
124e8b80aMartin SjölundManually force away some commits
9ca7f9388Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
13d2ab883Martin SjölundMerge master into branch without b13b350
d32301f99Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
7357a7209Lennart OchelReplace recursions with loops
94cddf13dLennart OchelReplace recursions with loops
89e820182Per Östlund- Changed recursive instantiation of enumeration arrays to a loop, to avoid issues with type checking.
29b89acebvwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
873946993Per Östlund- Fix expansion of enumeration dimensions on bindings when using inner/outer. - Renamed Types.isArray to Types.isNonscalarArray and implemented a new Types.isArray that actually checks if a type is an array.
999168124vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8) (reverted from commit af3393f641463c913c4c74512d04e941de8abf9d)
ca6d73778vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
8f4cc512aLennart OchelAdd workaround to RemoveSimpleEquations to sort out known vars from alias vars (#3323)
ad3d7cdb2Martin SjölundRemove usertab.c as expected
996bcc160Martin SjölundRemove usertab.c from cppruntime as it should never be compiled
045b50a99Martin SjölundFixes #3332, ParModelica install paths
a4a032a62Niklas Worschechreplaced for loop with std::transform in SimVars.initRealAliasArray
c786ac786Niklas Worschechfix for ModelicaExternalC usertab linker error in cpp runtime
482de6d28Martin SjölundFix 8a7b5a0 by updating to the latest submodules
2af70e228adrpo- fix testsuite on windows, checking if first char is '/' is obviously not Windows friendly
f8df9d6e7Niklas Worschechfix for typo in SimController comment
58985dcf0Niklas Worschechfix for debug msvc cpp runtime build
58f885701Niklas Worschechchanged msvc build type for cpp runtime to release
81b98e355Adeel Asghar- git describe instead of git rev-parse for getVersion()
6cf73dc42Niklas Worschechadded doxygen call to generate documentation for cpp runtime in main CMakefile it can be generated with BUILD_DOCUMENTATION=true. the documentation is build in SimulationRuntime\cpp\Build\Doc
80fd8be07Niklas Worschechadded doxygen config file for cpp runtime, add doxygen group comments in cpp runtime source files
837ddfba3Lennart OchelReplace recursions with loops
fac1d4ea7vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
185e25ff2vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8) (reverted from commit af3393f641463c913c4c74512d04e941de8abf9d)
af3393f64vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
b13b35038vwaurichMerge remote-tracking branch 'origin/master'
e95da2bb8Per Östlund- Changed recursive instantiation of enumeration arrays to a loop, to avoid issues with type checking.
aec10af19Per Östlund- Fix expansion of enumeration dimensions on bindings when using inner/outer. - Renamed Types.isArray to Types.isNonscalarArray and implemented a new Types.isArray that actually checks if a type is an array.
cc6a016f1Lennart OchelAdd workaround to RemoveSimpleEquations to sort out known vars from alias vars (#3323)
fd2efe96cMartin SjölundRemove usertab.c as expected
a63f61bd4Martin SjölundRemove usertab.c from cppruntime as it should never be compiled
dff6c8312Martin SjölundFixes #3332, ParModelica install paths
04badcea1Niklas Worschechreplaced for loop with std::transform in SimVars.initRealAliasArray
5c9479acfNiklas Worschechfix for ModelicaExternalC usertab linker error in cpp runtime
c11281859ptaeuberPass casual tearing set to SimCode
6584fe105vwaurichMerge remote-tracking branch 'origin/master'
eb6f8146fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
6f309c971Niklas Worschechfix for typo in SimController comment
9f6854b46Martin SjölundFix 8a7b5a0 by updating to the latest submodules
0e1eab34eadrpo- fix testsuite on windows, checking if first char is '/' is obviously not Windows friendly
76f2202f9vwaurichMerge remote-tracking branch 'origin/master'
b110e2f9fvwaurich- added information about highest derivative of complete model to modelinfo
8a7b5a0d2Niklas Worschechfix for debug msvc cpp runtime build
1b9062171Niklas Worschechchanged msvc build type for cpp runtime to release
dbe14945aNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c1dcb6563Niklas Worschechadded doxygen call to generate documentation for cpp runtime in main CMakefile it can be generated with BUILD_DOCUMENTATION=true. the documentation is build in SimulationRuntime\cpp\Build\Doc
537d965fdAdeel Asghar- git describe instead of git rev-parse for getVersion()
ed947eff2Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
cf3a3f6fcNiklas Worschechadded doxygen config file for cpp runtime, add doxygen group comments in cpp runtime source files
1bda3b0d7vwaurich- fix for visualization xml
5608b79b9Martin SjölundUpdate README.Linux.md
841c42bc4Martin SjölundUpdate README.Linux.md
a87083051Martin SjölundChange the Linux readme to markdown
3ede179acMartin SjölundPass CFLAGS/CXXFLAGS to ipopt
f2f0f3925vwaurich- visualization xml stores equations for protected, time-dependent variables
76801feafLennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e0381a2e3vwaurich- added BackendDAE.FOR_EQUATION related to vectorization
72f9143d8Lennart OchelMerge branch 'qss'
bb4056bdfMartin SjölundRemove Modelica3D from OMCompiler (moved to OMLibraries)
060a0ac62Martin SjölundUse the configured CXX in cppruntime
38d0c59d2Martin SjölundUse C++11 by default
7201a95cbLennart OchelMerge branch 'master' into qss
bf6ce6899Lennart OchelFix generation of sparse pattern for systems with just one state
60c93f57dLennart OchelMerge pull request #4 from ptaeuber/tearing2
77066968bptaeuberfix SimCodeUtil.mo after merging
6db755903ptaeuberMerge branch 'master' into tearing2
3f57560daMarcus Walther- sundials 2.4.0 has support for colored jacobian, so I've changed the ifdef
b3dabebbeadrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
0fa54ddeaadrpo- try to improve on #3318 by giving memory back as much as possible to the OS on Windows
b97fedb30Marcus Walther- fixed the ordering of the array elements in RefArray class - added a counter for the number of ODE-evaluations to CVode - included version check for Sundials, colored jacobians are now enabled if the version is new enough - some typo fixes
e2a22243evrugedyn. optmization: attempt to fix CombiTimeTable with Periodic
defa77ce5Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
7abb7cca4Lennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d01c9049eLennart OchelRemove unused code - there is no $dummy state anymore
8b2edc75fLennart OchelDon't add a dummy state to generate symbolic Jacobians
dcf2a053dmflehmig- Added for-loops to dumpEqs.
57e65788emflehmig- Codegen for vectorization using for loops.
3b5590410mflehmig- Cleaned up vectorization. - Fixed upper bound for vectorization.
e145287ecNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
27df1e58eadrpo- fix windows compilation
6d49a94d6Martin SjölundMerge outputs 2 and 3 of diffSimulationResults
ab8f95a54Martin SjölundBump 3rdParty
2bf2c4e2cMartin SjölundQuote directory names
0d42956edMartin SjölundFix extrapolation error - Use the stopTime for the last point to avoid rounding errors - Add better error-messages if getting the value of a variable fails
98e9206e3Martin SjölundAllocate the correct size
eaf99f9edNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ba5b824d9Martin SjölundSimulation results fixes - Add failed variables as output from diffSimulationResults - Add numberOfIntervals flag to filterSimulationResults
6c14d2463Martin SjölundCreate GC_asprintf function
a332da61aNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e1788d44dNiklas Worschechremoved special case for static factory policies
a6b4656e0Lennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b0b4602e6Lennart OchelRemove workaround for dummy state in dassl solver since there is no dummy state for algebraic systems anymore.
23a54a422vwaurich- removed some debug dumps in vectorization
0295dd068vwaurich- some fixes for vectorization
ea135be25vwaurich- extended vectorization (reverted from commit 4e506d6574516164ddaf3ee1eee666e5b4c31857)
bb28025ccvwaurichMerge remote-tracking branch 'origin/master'
4e506d657vwaurich- extended vectorization
20a5a0cc9Marcus Walther- fixed GCC compiler warnings for invalid-pch define and force_inline
c895e990cvwaurich- fixed appended subscripts for vectorization
c5fb32685Lennart OchelRemove workaround for algebraic systems
6c53415a1Lennart OchelAdd new post-opt module "addTimeAsState" This module introduces $time as state variable (+addTimeAsState).
348b22c3fMarcus Walther- removed the boost shared pointers in the sim var class, because the reference is never passed to the outside - alignment for the sim var arrays is now working correctly
6303044afMarcus Walther- a lot of typo fixes in CodegenCpp.tpl and CodegenCppHpcom.tpl - removed some unused functions in CodegenCpp.tpl to shrink the size of the file a litte bit - splitted cpp code generation for the initialization of constant values (e.g. string parameter) - improved memory optimization of hpcom - added var to index mapping to the simCode-structure - enums can now be handled in var to array index mapping
97f744c60adrpo- update 3rdParty and .gitignore
0bed96358Lennart OchelMinor changes to qss solver - Add warning for the case that all derivatives become zero - Clean-up, formatting, ...
d8cca3fb0mflehmigMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ee02481b3mflehmigChanges towards vectorization
638f287d1mflehmigChanges towards vectorization.
60dd426dcLennart OchelMerge branch 'master' into qss
454c9c45cadrpo- support -emit_protected for CPP runtime
ec0bb5e2evrugesymEuler: fixed values for der(x)
ed7da3e89vrugefixed symEuler
bae5316c6adrpo- proper include
969cb9c8cadrpo- more fixes for MSVC compilation
dadc3dc39adrpo- fix MSVC compilation of C runtime
adf53f3a4adrpo- update 3rdParty in OMCompiler
945b16da0Per Östlund- Fix previous commit, due to constants with wrong type getting eating.
ed483a28dPer Östlund- Removed unused delayed type checking to simplify SCode.Mod.
475d005a5vrugeextends dyn. optmization: update var direction
56f577decvrugerelax the rules for reduce and extends dyn. optimization flags
6913c02b4vrugesymEler: improved generation of helper-var DT
af3435e49Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
74189fa7dNiklas Worschechremoved special includes for static cpp runtime build
9e6d93d42vrugeExpressionSolve: added additional for symEuler(dt == 0)
29cd04e2bMartin SjölundBuild cppruntime into OMBUILDDIR
4f787ab67Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3a51e346aadrpo- add Compiler/OpenModelicaSetup to .gitignore
550f780c3adrpo- fix library coverage script, have emit_protected defined on all branches, otherwise you get an error when running system
8c0132ba2Martin SjölundFix OMC path for --without-omc
47bae7abdMartin SjölundHandle filtering negative aliases
ff139a309Marcus Walther- added a new array-class to c++ runtime (StatRefArray), that can be used to handle sub-arrays of the SimVar-Array - if the array-variables are consecutive, the c++ runtime now generates a StatRefArray - first code snippets for vectorized for-loops added to c++ codegeneration (not working at the moment, because we don't know at which point the iterator-variable is located in the body-expressions)
c160230deNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
93754c4feNiklas Worschechseparated defines and includes in Modelica.h
de41cdb56Martin SjölundFix off-by-4 error
08c1d7eadMarcus Walther- some fixes for hpcom-memory-mapping - isVarIndexListConsecutive-function added to SimCodeUtil - we are now able to check if all elements of an array are stored consecutive
d2765ee71Marcus Walther- CodegenCpp.MemberVariableInitialize and CodegenCpp.MemberVariableDefine have now a similar interface - scalar variables are now added as #define in C++ code - some cleanups in CodegenCppHpcom.tpl - changed SimVars array getter to non constant return value
0f658eea1Marcus Walther- some bug fixes for hpcom memory - moved some code from hpcom-cpp-template to cpp-template - variable initialization is now seperated into multiple functions
723695e70Martin SjölundHandle mixed OMC and Dymola names better
7023616ebMartin SjölundFix a rollback bug
77acafc05Martin SjölundUpdate submodules
e4460295eadrpo- attempt to partially fix #3313 and the library coverage hangs
a09817b40vrugereduce symEuler-system
6b8dc8e07vrugeMerge remote-tracking branch 'upmaster/master' into symEuler2
5fc88b51dvrugeimproved symEuler
009ab2dbfMartin SjölundShow the Java test command
ecc9596c2Adeel Asghar- case sensitivity.
4ee2c6cdcvwaurich- some more infos about arraycrefs in dumpSimCode
8d64f4bf3vrugeimproved symEuler
7c55968devrugeimproved symEuler
db89c1f32vrugeimproved symEuler
6fb6271d2vrugeimproved symEuler
57c909290vwaurich- some more fixes for vectorization
ce23826cbvrugeimproved symEuler
8ad90c528vrugeimproved symEuler
1ff5d9a01vwaurich- get cref as ident for the visualizationxml objects instead of string
074dd8443vwaurichadded BackendVarTransform.replaceEquationAttributes
3ad6e72d0Martin SjölundChange default path to reference files
66346e301Martin SjölundUpdate gitignore
15c798a59Martin SjölundImprove the mat4 reader to also lookup Dymola-style names
d254dbf4bMartin SjölundFix detection of version in submodules
cb69a5af4Martin SjölundFix testing of the Java interface
cbc725d06Martin SjölundImprove the filtering of results files
06ed6bf71Marcus Walther- using the var-index mapping of the cpp runtime for hpcom memory optimization - removed debug output - fixed a mapping bug in cpp code generation - updated the git ignore file
b83df49b5Lennart OchelHandle systems that are in steady state
ff2cc7c53Lennart OchelMerge remote-tracking branch 'origin/master' into lochel/qss
fa70703afMarcus Walther- update reference commit
c91e3219fLennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c52b5f340Adeel AsgharUpdate 3rdParty.
673eaa12bLennart OchelHighlight workaround for "symEuler"
e2edb497dMartin SjölundMerge pull request #3 from vruge/master
9bc4e2e99Vitalij Rugefixed symEuler
506ac549fMartin SjölundFix install paths
baef0588eMartin SjölundPrint the whole path always
d6cbc6179Adeel Asgharomc/qwt include is moved to omplot/qwt
505d30a62adrpo- properly clean 3rdParty/ModelicaExternalC
f9cb094f9Per Östlund- Remove dead code to get rid of compilation warning.
b1c294da0adrpo- fix compilation of Compiler/Template/CodegenCpp.tpl
dcdf6143dLennart OchelDefine HashTableCrIListArray.HashTable in SimCodeTV.mo
96caac0cbadrpo- more propagation of OMBUILDDIR
14e08b2e4Lennart OchelMerge branch 'master' into qss
b55e4eee1Adeel Asghar- More fixes for windows compilation.
b8f8ff5daptaeuber- prepared SimCode for dynamic tearing - still not able to build omc because of unspecified error
7d696cd74Martin SjölundInclude the scripting API files in build
68fb39e4dMartin SjölundMake git describe always work
4e57ea427adrpo- use $OMBUILDDIR properly in Windows build
8960bd8dfadrpo- fix Windows build to use $OMBUILDDIR
70377b488Martin SjölundFix OMC bootstrapping path
89b699ec5Martin SjölundFix some warnings in logs, skip re-compiling if target already exists
907803b45Per ÖstlundMerge branch 'master' of ssh://github.com:22/OpenModelica/OMCompiler
a27a9ed3bPer Östlund- Ignore vim buffer files.
6c148e797Adeel AsgharOMBUILDDIR absolute path and git HEAD
a6085583eAdeel Asgharset OMBUILDDIR in root makefile
c422bf07dMartin SjölundFix compilation using different build directory
521fee19eLennart OchelUpdate .gitignore file
bc2506803Martin SjölundUpdate gitignore
aecbc157eMartin SjölundAllow configuration of build directory
9870b1739Marcus WaltherMerge remote-tracking branch 'originMW/master'
d5f6a985bMarcus Walther- some changes on hpcom memory optimization - added more files to gitignore
5b594bb7eMarcus Walther- some changes on hpcom memory optimization - added more files to gitignore
5b92c2a9bLennart OchelMerge branch 'master' into qss
56ab44731Martin SjölundAdd gitattributes
8806a1661Per Östlund- Ignore input/output when counting connector variables.
dad53816dMartin SjölundMerge pull request #2 from MarcusWalther/master
4e29a0caaMarcus Walther- external tool builder for eclipse added
cce4cff38Lennart OchelMerge branch 'master' into qss
873ece23fMartin SjölundMerge pull request #1 from OpenModelica/lochel-gitignore
a4f2a4a28Lennart OchelUpdate .gitignore
6b95dbaabLennart OchelInitial commit for elementary qss solver
0b11f8d1fLennart OchelAdd .gitignore file
d79e9ec0fMartin SjölundAdd support for new API: filterSimulationResults
23686e66cadrpo- put back the Windows Makefiles (Makefile.omdev.mingw) - fix windows build of the OMCompiler
411434424Martin SjölundFix compilation of cppruntime
fc27f01dfMartin SjölundCompile UMFPACK as a shared library
bed671762Martin SjölundAdd bootstrapping tarball
33c62391aMartin SjölundIpopt include path
f34600b06Martin SjölundFix ipopt clang compilation
aa74a256cMartin SjölundUse git describe for version
d256b6c67Martin SjölundFix lis compilation from clean
193371b99Martin SjölundAdd mkbuilddirs
9689db132Martin SjölundAdd mkbuilddirs
a99719000Martin SjölundFix make clean
f8fba98ebMartin SjölundRemove qtclients references
623a4772fMartin SjölundCompilation --without-UMFPACK is now working
ae1c52446Martin SjölundGetting a little further, failing at metis now
35e46050fMartin SjölundAdd Cminpack including OMC patches
d042ebb69Martin SjölundAdd some of the 3rdParty modules
3e1de4b05Martin SjölundAdd a submodule for 3rdParty sources
778d3b394rfrankesupport for loops over Real ranges
a3052d49dsjoelund.seAlso include antlr3config.h
f65334da7Martin SjölundMissing omc in the path
d834a7ff6Martin Sjölundantlr3 library changed name to omantlr3
74d8748a7Martin SjölundAdd host_short to install correct antlr files
5a2380c1aOpenModelica Hudson[Janitor mode] Fix whitespace
da50f0232Martin SjölundInstall antlr3 includes. Fix OMNotebook linking
556609d75Martin SjölundRename libantlr3.a to libomantlr3.so
dbefb5764Martin SjölundRemove the old antlr jar-file
a575fd97bMartin SjölundCopy antlr-2.7.7 as well; it is needed for org.antlr.Tool
c8fd4cb1dMartin SjölundUpdate java_interface to use the antlr-3.2 jar
2d328d6d1Ruediger Frankeattempt to fix pre variables in algebraic loops
d1043b9f3Ruediger Frankeimplement pre values of arrays
62bbc24ddVitalij RugemarkStateEquationsWork: rewrite with while loop
344c23e5eMartin SjölundLink lapack
6f2dde4dcMartin SjölundFix compilation of libcsv in C++ mode
0ddc8a1c2Martin SjölundCopy more results file reading functions with the includes
e80bc51ffVitalij Rugesmall improvement
b760c6a98Martin SjölundLock OMNotebook/OMPlot/OMShell for edits since they are being moved to the git repositories
c5cc09382Ruediger Frankeprevent clang++ warning "lookup of 'set' in member access expression is ambiguous; using member of 'mapped_type'"
244eeeb82Ruediger Frankebug fix to previous commit r25871
aa43b695fRuediger Frankeremove double parenthesis from if statements to avoid clang++ warning "equality comparison with extraneous parentheses"
c92ce0327Ruediger Frankeattempt to fix access to seed variables from algebraic loops in Jacobian evaluation
22f067e17Ruediger Frankefix newlines between Algloop includes of Jacobian files
f14a53ff6Ruediger Frankefix code generation for createArray from functions
4cfa5ba3bRuediger Frankeskip initialization of aliases if they are just references now
edbccc71aRuediger Frankeseparate ArraySliceConst from ArraySlice to enable slices of const arrays
ce9e27e09Martin SjölundOSX fix
087afe0baRuediger Frankedon't use references for external objects (fixes r25804)
d2ab89bd3Ruediger Frankefix FMU makefile after r25821
202be2956Ruediger Frankeremove second accessElement method from ArraySlice
683c60c85Ruediger Frankeadd const qualifiers to array operations
b3594d5caMartin SjölundFix modelica3d paths
c5df3e60dMartin SjölundMove qmake detection to separate m4-file
35e60a4e0OpenModelica Hudson[Janitor mode] Fix whitespace
b85bc7984Volker Waurich- added template functions for DAE.SUM and SimCode.SES_FOR_LOOP
799136a9dMartin SjölundInstall cppruntime libraries in the correct directory
998faebc6Martin SjölundFix a broken install path
e07a8fde6Martin SjölundUpdate bootstrapping tarball
9a9e8b973Martin SjölundSee if bootstrapping is fixed without a new tarball (skip checking for ModelicaExternalC when bootstrapping)
e553b2d81Volker Waurich- removed some debug prints for vectorization
178cbda6cMartin SjölundFix linker paths
af9a702f1OpenModelica Hudson[Janitor mode] Fix whitespace
8d6ce3a4bVolker Waurich- some more fixes for Vectorization.mo
9510ad4efMartin SjölundFix mkbuilddirs
7fdfaed4eMartin SjölundMultiarch patch: install libraries to OMHOME/lib//omc - This will allow users to install multiple versions of the simulation libraries at the same time
f521cf9beOpenModelica Hudson[Janitor mode] Fix whitespace
df6001a29Marcus Walther- removed for-loop in in RefArray-constructor (sorry, I was not able to remove the cast in RefArray2RefArray) - added missing variables to array-allocation, hopefully this will fix all "Wrong variable index"-exceptions
28e0e8820OpenModelica Hudson[Janitor mode] Fix whitespace
0595c66d9Volker Waurich- some fixes for alias handling when unrolling variable arrays (for vectorization)
1dd25caabRuediger Frankeadd support for read access to data of RefArray and make arg of sum_array const
c10782500Adrian Pop- handle Clang also
762167cf9Adrian Pop- fix Windows build - fix nightly-build (get OMPython from github)
50157ff73Martin SjölundTry to fix fmil dependency in Compiler/runtime
cd70933c1Martin SjölundSome cross-compilation fixes. - Adding switches to disable compiling parts for a bootstrapped compiler. - New switches mainly used to cross-compile a minimal omc on the build platform that can be used to compile omc for the host platform.
876ee3e85Martin SjölundUpdate makefiles for better cross-compilation
171488171Niklas Worschechadded cpp runtime config for gcc and msvc
8ec90b949Per Östlund- Fix flag typo.
dc27e82a3Volker Waurich- remove more whitespaces
d61f40288Niklas Worschechre added missing boost ublas vector
55d877503Marcus Walther- support for non constant array-indices added to variable - memory - mapping
dbedd1160Volker Waurich- remove whitespace in array subscripts
473a03538Martin SjölundFix installation target (* copies all directories)
1821f5bbeOpenModelica Hudson[Janitor mode] Fix whitespace
795603189Marcus Walther- added handling for special case, that variables have a subscript at the end but are not part of an array
af0384daaMartin SjölundFix installation of idl file
8b738d608OpenModelica Hudson[Janitor mode] Fix whitespace
2f771a17aMarcus Walther- added optimization variables to mapping - added some scripts to execute all simulations in the msl with special flags
1a2bb5786Marcus Walther- added a mapping for variables to storage positions, to support efficient code generation that keeps array-variables as arrays - a new HashTable is now part of the code, that maps a ComponentReference to an array of Integers and a list of Integers - HpcOm memory optimization disabled - initAliasArray-interface extended in SimVars-Class - some typo fixes
516588475OpenModelica Hudson[Janitor mode] Fix whitespace
ad1232f04Volker Waurich- removed some additional prints to fix tests
6c0221c1aVolker Waurich- added SimCode.SES_FOR_LOOP and DAE.SUM expression to express loop-equations
9ad1051d4Niklas Worschechremoved boost ublas includes for mac os because of build errors
c135e9939Ruediger Frankeexploit new getDataCopy in assign to DynArray
cf8c34845Martin Sjölund#2619 Move OMPython to https://github.com/OpenModelica/OMPython
cd5fbe6aaRuediger Frankeremove irrelevant cases from algStmtAssignArr to fix assignment to array slices
46295b52aRuediger Frankeadd more missing throw
453d33f34Per Östlund- Propagate the actual attributes to match aliases, to allow assigning to them if they are non-inputs.
d8892d1f8Niklas Worschechfix in Array getData, added missing throw
1e37a76cdOpenModelica Hudson[Janitor mode] Fix whitespace
2db19012fNiklas Worschechfix for precompiled header of cpp runtime msvc build added use of precompiled header for cpp runtime libraries
e4d15d5d8OpenModelica Hudson[Janitor mode] Fix whitespace
2da1e338fPatrick Marcel Taeuber- included Jacobian in TearingSet because it differs for different sets - adapt some modules to new tearing structure
fb2ca722aLennart Ochel- Use common variable names (ass1, ass2) to store matching information - Add comments to make clear what is actually stored in ass1 and ass2
46c301531Lennart Ochel- use new syntax to access arrays
3631bcffaLennart Ochel- Restore r25682 and r25683
7eab2fc87Ruediger Frankeremove unused outputAllocate from external function code
e20ab9588Ruediger Frankemake Cpp code generation work for Modelica.Math.Matrices.leastSquares
7865309c3Henning Kiel- ignore some more generated files
cc81be1eaMartin SjölundRename configure.in to configure.ac
45fcbb3aaMartin SjölundFix builds
6a3fcd4e0Martin SjölundTry to fix builds
e240093a9Per Östlund- Don't simplify MetaModelica array ASUBs in ExpressionSimplify, it doesn't know which side an expression is on.
16cfe1989Martin SjölundSome fixes for splitting the OM repository - Save idl-file in share/omc - Save qwt includes in include/omc/qwt - Use a corba.m4 so it is easier to update common autoconf parts between repositories (possibly making this part of a small common repository)
c33cb3a3aOpenModelica Hudson[Janitor mode] Fix whitespace
32f9749deVolker Waurich- add Vectorization.mo
4e0bde5a2Volker Waurich- added first implementation for handling for-loops and variable arrays
337e2badcOpenModelica Hudson[Janitor mode] Fix whitespace
3dab9b1fbNiklas Worschechmoved linear solver selection to initialization method
90e88f08bOpenModelica Hudson[Janitor mode] Set auto-props
bae454fefRuediger Kampfmann-moved FactoryExport.h to include directory
26a4f091dRuediger Kampfmann-moved FactoryExport.h to header
831361ef8Ruediger Frankeavoid underflow of unsigned size_t and access to NULL if there are no real variables
6ddc3165dRuediger Frankerevert changes of previous commit on CVode.cpp and introduce an internal dummy state instead
c5ef2559cRuediger Frankeremove dummy state from Cpp runtime as well (#3057)
e6017b43fRuediger Frankefix Cpp code generation for complex types
c3ab2b81cRuediger Frankereplace memcpy with std::copy to make arrays work with complex types (fixes r25735)
0a7073df9OpenModelica Hudson[Janitor mode] Fix whitespace
d8ec3c18aRuediger Frankereplace specialized string arrays with a converter for external "C"
2d119c70fLennart Ochel- Use "listEmpty(...)" instead of "listLength(...) > 0" or similar expressions
2736819c3Ruediger Frankeremove const qualifiers from data constructors of RefArrays (fixes r25725)
c26c9da3aRuediger Frankeadd some more array constructors
e2e732694Ruediger Frankeadd const qualifiers to data arguments of array constructors
f23c302e6Ruediger Frankefix StatArrayDim3
f628fa0cdVitalij Rugesimplify adjacency row for tearing - important for symEuler
d17bcea52OpenModelica Hudson[Janitor mode] Fix whitespace
5147a694bVitalij Rugeadded symbolic implicit euler. Improvements will come!!
681f96c3eRuediger Frankeimplement POW_ARRAY_SCALAR in Cpp runtime
7bf884776Henning Kieleliminate List.isNotEmpty() and List.first() (replaced by listEmpty() and listHead())
045668adaNiklas Worschechfix for linker error in StatArray.resize
db5890441Niklas Worschechfix for r25703
044184b84OpenModelica Hudson[Janitor mode] Fix whitespace
a114ce445Niklas Worschechadded special assignment operator one,two and three dim StateArray which call assignment operator from base array
bd6eb589fRuediger Frankefix negation of aliases for boolean variables
53ce52a12Adeel Asghar- Fix builds.
679fd4d09Adeel Asghar- Fix build, - Don't use Qt threads with OpenModelicaCompiler shared library.
718172182OpenModelica Hudson[Janitor mode] Fix whitespace
e4baa369cAdeel Asghar- Removed the plotSilent flag. - Added argument forceOMPlot to plot APIs.
753a764beRuediger Frankeremove reindex(1) from DynArrays to get the same zero based indexing as in other arrays
4e83a6303Ruediger Frankemove iterator from DynArray to DynArrayDim1, where it was before
3ae39f71eRuediger Frankeintroduce base classes StatArray and DynArray to avoid repeated code
73fa6370fAdeel Asghar#1768 - Set a call back function for plot commands. - Updated OMNotebook to use the OpenModelicaCompiler shared library.
8a9f3b41bLennart Ochel- Removed List.isEmpty
aa7cd40ceVolker Waurich- uncomment separation of parameter dependent and variable dependent asserts, have to fix dae-task-graph generation first
31ea9af71OpenModelica Hudson[Janitor mode] Fix whitespace
c0ea844a8Lennart Ochel- Reverted r25682 and r25683 until the bootstrapping tarball is updated
d62f8e8bfVolker Waurich- put parameter dependent asserts in the paramEquation section and not in all-equations
2d01a1a8aLennart Ochel- Removed workaround for #3281
6cdd11dd4Lennart Ochel- use new syntax to access arrays
1902e06c3Ruediger Frankeremove reference array code from static arrays
038cffed5Patrick Marcel Taeuber- Generate a second tearing set for simulation DAEs with weaker constraints in solvability (not passed along to the runtime yet) - Renamed some functions in Tearing.mo - Use list instead of list> for the order of the inner equations in tearing sets
b35172a8aPer ÖstlundFix for #3281: - Fixed handling of subscripted MetaModelica array crefs.
b0bedfc97Lennart Ochel- avoid unnecessary wrapping
4d1f61e3fLennart Ochel- Fixed sorting of boolean parameters
2729e7debAdrian PopFix: #3288 - properly convert between modelica_string to fmiString - some warning fixes in SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c
28657dfddOpenModelica Hudson[Janitor mode] Fix whitespace
5d4fa21eeRuediger Frankeimplement specific classes for reference arrays accessing simvars
854821e85Ruediger Frankemore universal version of previous commit
84b3de38dRuediger Frankeimplement assign from ref arrays
ec198e99fLennart Ochel- Oops!
43f2f5076Lennart Ochel- Some improvements to Tarjan's algorithm
79fa40645OpenModelica Hudson[Janitor mode] Fix whitespace
4c16895d8Volker Waurich- dump alias vars in dumpSimCode
bb207eed7Lennart Ochel- Merged TarjanTransposed and TarjanTransposedPartial
aee0b0eb1Patrick Marcel Taeuber- remove inadvertent comments
e6644252ePatrick Marcel TaeuberPrepared Backend for the introduction of dynamic Tearing (tearing set can be changed during runtime) In detail: - introduced record BackendDAE.SOLVABILITY_SOLVABLE, which means the equation is analytically solvable for the variable, regardless of how the variable occurs in the equation - function BackendDAEUtil.tryToSolveOrDerive (old: getFactorForX) can be activated by parameter in getAdjacencyMatrixEnhancedScalar - introduced uniontype BackendDAE.TearingSet, restructured record TORNSYSTEM - introduced ConfigFlag "dynamicTearing"
4172d0007OpenModelica Hudson[Janitor mode] Fix whitespace
dcb7ea912Lennart Ochel- Use new implementation of Tarjan's algorithm in omc tearing - Removed old implementation of Tarjan's algorithm
651b1ba6dLennart Ochel- Use new implementation of Tarjan's algorithm for blt sorting
bc0e5047dNiklas Worschechremoved shared array from simvars
c04e35cf0Niklas Worschechfix for typo in SimVars initBoolVar
5156f823aOpenModelica Hudson[Janitor mode] Fix whitespace
fd6dd1edbNiklas Worschechadded method for the initialization of alias arrays in cpp runtime
44426d168Lennart Ochel- cleanup BackendDAETransform
a0a74f0bcLennart Ochel- cleanup calculateJacobianRow2
8a732ad4eLennart Ochel- Removed obsolete module strongComponents
846c4873eOpenModelica Hudson[Janitor mode] Fix whitespace
2dc3048dcMarcus Walther- removed debug output in HpcOmMemory - some simple improvements in HpcOmMemory - CodegenCpp.tpl: Number of real, int, bool and pre variables can now be passed as argument to simulationMainFile-template - some more fixes for hpcom code generation -> memory optimization is still not working for arrays with the new variable structure - sim var arrays are now aligned to default cache line size of 64 byte - testsuite update for some hpcom tests
5dbaa5523Lennart Ochel- Use new implementation of Tarjan's algorithm for OnRelaxation
0e17b8f74Lennart Ochel- Use new implementation of Tarjan's algorithm for uncertainties
599c412ccOpenModelica Hudson[Janitor mode] Fix whitespace
19d996953OpenModelica Hudson[Janitor mode] Set auto-props
eff2d7ecfVolker Waurich- moved visualizationXML dump to extra files - dump ast for complex expressions in visualization xml
da1dbb5caLennart Ochel- Use new implementation of Tarjan's algorithm for evaluating parameters
c399b9fb7OpenModelica Hudson[Janitor mode] Fix whitespace
face8330fLennart Ochel- Use new implementation of Tarjan's algorithm for index reduction
381f8b500Niklas Worschechadded special StatArray constructor for alias arrays
3e154216aLennart Ochel- Added new package "Sorting" to collect all the different sorting algorithms
e39a23231Ruediger Frankeremove templates that became obsolete with last but one commit
cbfb3fa19OpenModelica Hudson[Janitor mode] Fix whitespace
f0c15aedfRuediger FrankeSupport multi-dimensional arrays in the external "C" interface again (#3286)
d329ff27aMichael Kloeppeladd missing changes
287faafcaMichael Kloeppelexchange custom sparse matrix format in c++-runtime umfpack for boost::ublas sparse format adapt test case
bdc18edf3Ruediger FrankeReduce impact of new internal matrix layout
69f49b8e7OpenModelica Hudson[Janitor mode] Fix whitespace
d8d901e80Ruediger Frankemove check of program options to precompiled OMCFactory
8f85408feRuediger Frankeoptimize access to elements of DynArray's
12f2ec190Ruediger Frankebug fix for r25611
7965cf276Ruediger FrankeAdd missing pieces for changed internal storage layout (#3286)
2c274efdeRuediger FrankeChange internal storage layout of arrays in Cpp runtime to improve linear algebra (#3286)
25474a7bcRuediger Frankereplace std::vector _tmp_data with boost::multi_array to make ArraySlice work for bool as well
15772169fRuediger Frankestore dimensions of array slice to reduce code size and speed up getDim
25860e39bHenning Kiel- fix some warnings - spellfix
e8fd706efLennart Ochel- fix indentation
5604fc874Lennart Ochel- Added transposed version of Tarjan's algorithm
8da9195c0Lennart Ochel- Simplified interface for function PerfectMatching
1ae29dcfeNiklas Worschechfix in ArraySlice operator(), does not return a value
02c5931b2Adrian PopFix bug: #3243 - set the useStream array as done in simulation_runtime.cpp, function setGlobalVerboseLevel - maybe we should have a function that sets these things which could be called from FMI and not use variable useStream directly
5c52f069cOpenModelica Hudson[Janitor mode] Fix whitespace
c6b8c970fMarcus Walther- some smaller fixes for hpcom memory optimization - MemberVariablePreVariables-code is now separated from the simulationCppFile-Code in the CodegenCpp.tpl - _event_system is now initialized to NULL in the continousEvents-Class
3072a7732Adrian Pop- fix Windows / Linux differences in testsuite/openmodelica/parser/* - proper interface for omc_Absyn_isDerCref - make testsuite/openmodelica/parser/ParseModel.mos more friendly as on Windows the output from system command is not shown
2e037259dOpenModelica Hudson[Janitor mode] Fix whitespace
511bafb28Ruediger Frankefix and generalize transpose_array
78e0e43d3Adrian PopFix bug: #3282 - allow parsing of {} for mos scripts
22d069adbRuediger Frankeavoid nested comments and quintuple printout of ExpressionDump
ef6eda174OpenModelica Hudson[Janitor mode] Fix whitespace
9b2eab43eVitalij Rugeextend flag for inputs from r25582
a9cf8445cRuediger Frankeuse int instead of size_t in reduction expressions (see also r25564)
0efc38a35Henning Kielreplaced "if listLength(lst)>0 then" with "if not listEmpty(lst) then" to reduce run time (O(n) -> O(1))
0db243462Ruediger Frankemake linkage of LAPACK libs platform independent (fixes r25566)
267c74d43OpenModelica Hudson[Janitor mode] Fix whitespace
aa1e97b23Vitalij Rugenew debuge flag: added new_var = var/nominal where var is state
36b0ad409Jan SilarFixed C# template after numeric initialization removal.
20f6a9086Bernhard BachmannSome improvements to the matching algorithm
a26562da4OpenModelica Hudson[Janitor mode] Fix whitespace
d448b0b6aNiklas Worschechclean uclean up static array class for assign and operator= method in cpp runtime expected output
39f82c066OpenModelica Hudson[Janitor mode] Fix whitespace
c83dfc4ccRuediger Frankea more rigorous attempt to fix the "targTest91" problem (#3263)
5fe6f5075Ruediger Frankeadd support for external F77 to Cpp runtime
b817b4dadRuediger Frankelet getDim of Arrays return int instead of size_t
fcbdf2728Ruediger Frankerevert r25560 back to r25552 because functions returning arrays need assign with const arg
1e754dd40OpenModelica Hudson[Janitor mode] Fix whitespace
71fa8503fNiklas Worschechclean up static array class for assign and operator= method in cpp runtime
4823b9e21Ruediger Kampfmann-adapted VxWworks for SimVars
4e2e89748Lennart Ochel- New implementation of Tarjan's strongly connected components algorithm
bb7689a6bOpenModelica Hudson[Janitor mode] Fix whitespace
396ed5a69Ruediger Kampfmann-adapted VxWworks for SimVars
3ccb61267OpenModelica Hudson[Janitor mode] Fix whitespace
0bbced24eVolker Waurich- estimate execution costs for removedEquations as well
4960dab03Nils Menageradded functions to factoryexport for bodas and vxworks
beabea06aNiklas Worschechfix in getDatCopy for dynamic array in cpp runtime
a22ca5ff9Ruediger Frankerevert CodegenCpp.tpl from previous commit
e2a7d2400Ruediger Frankeadapt ArraySlice to r25546
cc6601455OpenModelica Hudson[Janitor mode] Fix whitespace
780062938Niklas Worschechfix for reference array methods assign,operator= and getData in cpp runtime
e9f1e1a1aOpenModelica Hudson[Janitor mode] Fix whitespace
26d28e4c0Marcus Walther- basic structure for DAE-parallelization to HPCOM added - simcode now contains only one hpcom element - list scheduler is not used anymore, if the selected scheduler fails - update for expected output
6b1e7bb36Lennart Ochel- revise implementation of Tarjan's strongly connected components algorithm
63116a410Patrick Marcel Taeuber- use while loop instead of recursion in Tarjan matching
806fe1d29Lennart Ochel- fix indentation
d8ebf8311OpenModelica Hudson[Janitor mode] Fix whitespace
fa793d48eVolker Waurich- added stuff to dump a xml file that contains information about visualization objects
fb7d0d028OpenModelica Hudson[Janitor mode] Fix whitespace
f2eeacd1dVitalij Ruge- attempt to fix partial negation of the lhs inside createNonlinearResidualEquationsComplex - added warnings for generateCrefsExpFromExp and generateCrefsExpLstFromExp
364f69f6cOpenModelica Hudson[Janitor mode] Fix whitespace
f124afbf5Nils Menagerchange in SimController (_simMgr is now member variable again)
92b049bf0Vitalij Rugeimproved r25524
a863589ddLennart Ochel- clean implementation of some dumps
79efc1331OpenModelica Hudson[Janitor mode] Fix whitespace
ddad86f11Vitalij Rugeadded flag for diasbale Msg from omc
56d931389Lennart Ochel- cleanup
48537f980Willi Braun - added additional flags for dassl for output control in non-equidistant mode
4e56867daOpenModelica Hudson[Janitor mode] Fix whitespace
e4b05e70aVitalij Rugesymbolical QR-solver: added householder(default)
3facf89d0OpenModelica Hudson[Janitor mode] Fix whitespace
4e44eca2fPer ÖstlundFix for #3250: - Rewrote Static.replaceEnd to handle qualified/fully qualified crefs correctly.
56d5208e7Adeel Asghar- Fix documentation examples.
17967e7d0Marcus Walther- fixed HPCOM-Cpp-Tests (memory optimization is still broken) - added some HPCOM-Cpp-Tests to Hudson
305ab23beRuediger Frankefix name clash if a Modelica model uses a variable pow (#3268)
9fdfa27b9Ruediger Frankeadapt FMI2 to new SimVars
d9e3df55dLennart Ochel- minor changes to some comments
08bd5e0ccLennart Ochel- Avoid redundant code
52f33df51Lennart Ochel- Use new matching implementation in Initialization.mo
36a2492d9OpenModelica Hudson[Janitor mode] Fix whitespace
2b7a19024OpenModelica Hudson[Janitor mode] Set auto-props
cdfcc8462Niklas Worschechadded SimVars class to cpp runtime which stores all model variables removed [Model]PreVariables class in cpp template and moved functionality to SimVars class modified get/set methods,array class,eventhandling classes to new SimvVars class
166d96bb4Ruediger Frankeunify name of iteration variable in ranges to avoid c++ warning about changed lookup rules
ab7e76478Adrian PopFix bug: #3269 - add code for deleteFile in Compiler/Script/CevalScript.mo - add test in: testsuite/openmodelica/interactive-API/Bug3269_deleteFile.mos
14ffb438aRuediger Frankeadd ModelicaExternalC and ModelicaStandardTables to Cpp targets
2c0590eb1Ruediger Frankeimplicit treatment of multiplication of zero dimensional arrays
7d9a87e77Adeel Asghar#2860 - Allow preserving the zoom level. Don't always auto rescale for new variables in plot.
1e8e07225Ruediger Frankeimplement multiply_array for 1D and 2D arrays
105fdb28aAdrian PopFix bug #3255 - append the annotation from the constrained class to the annotations of the component - added test inside testsuite/openmodelica/interactive-API/choicesAllMatching.mos
d6ee7ce70OpenModelica Hudson[Janitor mode] Fix whitespace
bbc6f0302Bernhard BachmannAdded another implementation of the "usual" matching algorithm. Method also works in combination with the available index reduction methods.
74cdd7078Vitalij Rugeimproved r25421
e33cf67b8OpenModelica Hudson[Janitor mode] Fix whitespace
fcb1fadd8Lennart Ochel- increase informative value of some error messages
409e11db2Lennart Ochel- Preparation for new "remove simple equations" module: This introduces a new variable attribute named "unreplaceable". This is needed to prevent unintended replacements for generated variables (e.g. symbolic jacobian, encapsulated when conditions, substituted common sub-expressions, ...)
f158abb93Ruediger Frankemove call to initializeAlgloopSolverVariables from initialize to constructor
148ec3d5cOpenModelica Hudson[Janitor mode] Fix whitespace
2ae042b5bNils Menagercleanup of Policy Files for Bodas and VxWorks
294834078OpenModelica Hudson[Janitor mode] Fix whitespace
ffdd23ba6OpenModelica Hudson[Janitor mode] Set auto-props
a9009b7e3Ruediger FrankeFMI2 Cpp: separate initializeMemory from initializeFreeVariables to avoid memory leak in fmi2Reset and to speed it up
e296a44caRuediger Kampfmann-added files for vxWorks
2644fd5b0Ruediger Kampfmann-added files for vxWorks
761b251ccNils Menagerchanged function name for BODAS and VxWorks Factory function (cpp runtime)
2398851eeRuediger Frankeoptimize ArraySlice to avoid internal copy of a given index set (#3263)
d6d55cbd5Ruediger Frankemake Cpp code using BOOST_FOREACH work with DynArrayDim1
80ecad3ddOpenModelica Hudson[Janitor mode] Fix whitespace
cee922708Adeel Asghar- Moved the exception handling to OpenModelicaScriptingAPIQt.cpp. Just emit the signal with exception from there and show it in OMEdit.
267f1de60Ruediger Frankeuse ArraySlice for rhs expressions as well, replacing create_array_from_shape
cbd597850Ruediger Frankereplace unsigned int with size_t for sizes
c5560490cRuediger Frankeremove useless const's from *ArrayDim2, typo, some whitespaces
6e9befcf4Ruediger Frankeadd getDim method to arrays to avoid temporary vectors if just one size is wanted
b109d6407Ruediger Frankemore const refs
ce0bfafccRuediger Frankeadd missing const qualifiers and pass indices by reference for to access operator
504a45ce6Ruediger Frankeadd support for SLICE expression
3abb26c7eNils Menageradded ifdef's for BODAS in RTEuler
db703eb4dOpenModelica Hudson[Janitor mode] Fix whitespace
9a24136aaOpenModelica Hudson[Janitor mode] Set auto-props
10fc0ebb5Ruediger Kampfmann-added RTEuler
9d6750f72Ruediger Kampfmann-added RTEuler
885c6e387Ruediger Kampfmann-added RTEuler
e446f5622Ruediger Kampfmann-added RTEuler
87d477b30Vitalij Rugesymbolical QR-solver: - improved handling for const exp - added scaling
3905d14e7Nils Menageradded boost::algorithm::string to Modelica.h in cpp runtime
4be42e29eOpenModelica Hudson[Janitor mode] Fix whitespace
ccc0e9eccOpenModelica Hudson[Janitor mode] Set auto-props
c1810e541Nils Menageradded BodasFactory to cpp runtime
153ff9f9aRuediger Kampfmann-removed obsolete method setcycletime()
d086b470aLennart Ochel- don't observe strictly singular systems during initialization (just for testing)
ff32e7685Nils Menageradded Policies in cpp runtime for BODAS
144e4154eOpenModelica Hudson[Janitor mode] Fix whitespace
456f638bfVitalij Rugesymbolical QR-solver: improved handling of know-vars
bd14462cdRuediger Frankeinstall new file ArraySlice.h (#3263)
25108d479Lennart Ochel- blanks
46ec26287OpenModelica Hudson[Janitor mode] Fix whitespace
f20f72713Volker Waurich- added removedEquations to the DAE-TaskGraph
1509df245OpenModelica Hudson[Janitor mode] Fix whitespace
22abefc68Ruediger Frankeintroduce ArraySlice to treat assignments to subarrays on the lhs (#3263)
4661b7ed9Ruediger Frankefix initialization of array output and implement assignment of a range to an array (#3263)
f98f34d1dAdrian Pop- attempt to add -fPIC even if getconf LONG_BIT != 64 (as it seems to be on ARM)
a4075f4dcOpenModelica Hudson[Janitor mode] Fix whitespace
81a6c7930Ruediger Frankerevert changes to FMI1 again (r25397), because they are incomplete
07ccc17cfRuediger FrankeFMI2 Cpp: implement fmi2Reset function
2fd685922OpenModelica Hudson[Janitor mode] Fix whitespace
8b611a2a9Ruediger Frankeseparate initialization of free variables from initialization of bound variables
229d3ebd5Ruediger FrankeFMI2 Cpp: additional changes to remove writing of output file from FMU
6c18317f2Ruediger FrankeFMI2 Cpp: remove writing of output file from FMU
18dd1410fRuediger FrankeFMI2 Cpp: upgrade initialization
f2e146ea3Ruediger Frankeformattings
f956dabf9Ruediger Frankefix r25379
d152f3ff0Ruediger FrankeFMI2 Cpp: add rpath to solver libs
25a53cd64Ruediger Frankefix FMU solver names
d4e2b94c1Adrian PopMore fixes to bug: #3261 - use '!' instead of '|' which could be used when overriding the regular expression from variableFilter
f6abf617aAdrian PopProperly fix bug: #3261 - replace ',' with '|' when not inside arrays and then tokenize on '|' - update test: testsuite/simulation/modelica/others/Bug3261.mos to test for -output and one dimensional array
5eb0f62f7Ruediger Franketreat multiline doc strings (cf. r24891)
a8fde2f1aRuediger Frankefix initialization of dependent variables
b077351aeRuediger FrankeFMI2 Cpp: apply runtime license
6787788d3Adrian PopFix bug: #3261 - support parsing the variable names containing array indexes (which contains ",") - added test: testsuite/simulation/modelica/others/Bug3261.mos
e418ae346Willi Braunfix #3251
7aaefa843OpenModelica Hudson[Janitor mode] Fix whitespace
2a962db71Willi Braun - adapt BackendDAEUtil.reduceEqSystem for symbolic jacobians and utilize it.
9992292acMarcus Walther- fixed build
97ef07226OpenModelica Hudson[Janitor mode] Fix whitespace
c12a0de12Marcus Walther- moved mixed array vars from SimCode to ModelInfo-SimVars - cpp tests updated
2820451b8OpenModelica Hudson[Janitor mode] Fix whitespace
77636ee68Ruediger FrankeFMI2 Cpp: resolve alias variables in new getters and setters
3e36691a5Ruediger Frankefix memory leak in ModelicaSimulationError (#3256)
9c7baf761OpenModelica Hudson[Janitor mode] Fix whitespace
4affa10c7Ruediger Kampfmann-fixed #3258: Missing AlgebraicModelJacobian::initializeColoredJacobianA()
2f7973636Volker Waurich- addded proper ordering for metis scheduler - added messages if parallel simulation isn't worth
3a4f448cfMartin SjölundSome fixes to compile with parmodelica
0b3b011a8Ruediger Frankecosmetic changes to r25337 (#3253)
460d445b9Olena Rogovchenkofigaro changes
16830d325Adrian PopFix bug: #3254 - return component annotations that are not graphical classes also - added test: testsuite/openmodelica/interactive-API/choicesAllMatching.mos
ca0f0dc61Adrian Pop- fix Windows builds broken since r25335. - make sure that BOOST_EXTENSION_EXPORT_DECL is not undefined for Windows! - force cmake show what is doing (verbose makefile).
aa24eef33Ruediger FrankeFMI2 Cpp: add libOMCppMath_static to FMU (#3238)
07c4c4475Martin SjölundHandle empty origin and rotation
b853bbc7dOpenModelica Hudson[Janitor mode] Fix whitespace
916000785Ruediger FrankeFMI2 Cpp: introduce new getters and setters
80a062f8dOpenModelica Hudson[Janitor mode] Fix whitespace
db98b830eRuediger Kampfmann-adapted cpp runtime files for vxworks
efada569bOpenModelica Hudson[Janitor mode] Fix whitespace
a8fa5985eMarcus Walther- added additional information to sim code, about array-variables that contain state or state derivative variables together with other variables
a045c5533OpenModelica Hudson[Janitor mode] Fix whitespace
367e696b9OpenModelica Hudson[Janitor mode] Set auto-props
289da2cdfNils MenagerAdded necessary ifdefs for ModelicaSimulationError on RT targets (cpp runtime)
a1bc23b9eRuediger Kampfmann-some changes concerning colored jacobians
e6b933727OpenModelica Hudson[Janitor mode] Fix whitespace
a639d116dOlena Rogovchenkofigaro changes
39174d74cOlena Rogovchenkofigaro changes
d9490d4f9OpenModelica Hudson[Janitor mode] Fix whitespace
4d73bbf47Ruediger Kampfmann-some changes concerning colored jacobians
69f32e07bMartin SjölundGC library changed name
055bfe8a4Martin SjölundChange libgc to libomcgc to make sure we link against the correct version of boehm-gc
2b4c9defdRuediger Frankeallocate options vector optv dynamically (fixes r25299)
1c36eccf3Ruediger FrankeFMI2 Cpp: remove macro OBJECTCONSTRUCTOR
0f669b27fRuediger FrankeFMI2 Cpp: distinguish model identifier from model class
26bd25889Ruediger FrankeFMI2 Cpp: fix name of FMU binary for hierarchical models
0b93dff21OpenModelica Hudson[Janitor mode] Fix whitespace
c0099a237Olena Rogovchenkofigaro changes
089ffc192Olena Rogovchenkofigaro tweak
6c71abdf0Olena Rogovchenkofigaro tweak
1b94ea5cbAdrian Pop- plot only the last week for the detailed library trend
5bffb6b0dRuediger Frankeremove some clumsiness of previous commit
0aa3aa315Ruediger Franketreat OMEdit override option in Cpp runtime (#3233)
44fea8357Ruediger Frankeremove symbolic link from Cpp makefile for Linux
5ccd835fcRuediger Frankeadd default options to Cpp executable (#3233)
18bc2720bVitalij Rugecosmetic change
31c55daf8Niklas Worschechchanged the name for the simulation executable of the cpp runtime to [Model].exe
d8bd7a383Adrian Pop- helper to bug #3196 - added setComponentDimensions(class, component, {dim1, dim2, dim3}) - added test for it in testsuite/openmodelica/interactive-API/interactive_api_calls.mos
65f22e71fVitalij Rugeimproved reduceDynamicOptimization
7ceb890ddRuediger Frankeadd exception handling to fmi2Instantiate
4977eb57aRuediger Frankefix getReal of Cpp FMI 1.0 and correct sizes of _tmp_real_buffer
c932275eaRuediger Frankefix Cpp getInt/Bool/String
5c9458103Vitalij Ruge-improved reduceDynamicOptimization -added test for combination reduceDynamicOptimization and extendDynamicOptimization
936a7af8aAdrian PopFix #3247 - use the class modification from the environment
3e8fc88ebMarcus Walther-Boost real paths can now be used optionally
0e7a877feOpenModelica Hudson[Janitor mode] Fix whitespace
a9cf315d8Marcus Walther- improved memory management with +d=hpcomMemoryOpt - graphml-graphs now contain information if the nodes belong to the ODE- or eventsystem - cpp-locks are now memory aligned - lapack-support for sundials can now be used with the c++ runtime - update for one hpcom test
b7d3ed76bOpenModelica Hudson[Janitor mode] Fix whitespace
450ee5e69Vitalij Rugeadded module reduceDynamicOptimization (Thanks, Willi) - remove eqs and vars, which are not part of the optimization problem
74781e322Ruediger FrankeFMI2 Cpp: add FMU2 to installation
1c2faebd2Ruediger Frankefix uint
5fef56ddcOpenModelica Hudson[Janitor mode] Fix whitespace
87b383371Bernhard BachmannPrototype of a new RemoveSimpleEquation module added
5e2cdf6b8Adeel Asghar- Fix the checkModel output. - Fix failing tests.
8a60b27f8Adeel Asghar- return empty string when checkModel fails and set add error message. - Only show InformationDialog if instantiateModel & checkModel succeed otherwise put the error message in Messages Browser.
4537d4b10OpenModelica Hudson[Janitor mode] Fix whitespace
1ed872895Willi Braun - added config flag for removeSimpleEquation to select the choose method
bb1ac6c37Per ÖstlundFix for #3245: - Fix code generation for assignment to record slices in functions.
ba6fe3e76Marcus Walther- forgot to update one cmake version
ea7c1aaa8Marcus Walther- changed minimum cmake version to 2.8.6 - changed DIRECTORY to PATH keyword, because this is not available in CMake < 2.8.11 (this should fix the linux nightly build)
1a009710fRuediger Frankecosmetic change
9ce5e954aRuediger FrankeFMI2 Cpp: add debug logging and exception handling
b369c6dd4Adrian Pop- allocate the structure, not the pointer
36dd31ed7OpenModelica Hudson[Janitor mode] Fix whitespace
d6f59bde5Adeel AsgharAnother try to fix FMI tests
3a574f395OpenModelica Hudson[Janitor mode] Fix whitespace
bff8ce082Mahder Alemseged Gebremedhin- Keep External decls.
623e89736OpenModelica Hudson[Janitor mode] Fix whitespace
b0f7d5bbdVolker Waurich- fix for preCalculateStartValues
30ee7b508Ruediger FrankeFMI2 Cpp: fix ordering of real variables (aliases behind parameters)
4be600373OpenModelica Hudson[Janitor mode] Fix whitespace
a496e139aAdeel Asghar- Try to fix FMI tests.
0e77d95e0Vitalij Rugefixed extends dynamic optimization formulation - initial guess with file - handling der(x)
56bd4dceeRuediger FrankeFix _dimReal to size expected by getReal and setReal, including aliases and states
20e53ecbcRuediger FrankeFMI2 Cpp: re-add boost libs to Makefile (got lost in r25209)
bd33e054bRuediger Frankeadd extra parser to accept OMEdit options
a0bdd0024Adeel Asghar#3240 - Fixed FMI 2 import issues. - Generate code for enumerations. - Generate nice Modelica code to get rid of initial condition are not fully satisfied warning. - Make sure exported parameters are generated as parameters in the imported code.
08efd3087Mahder Alemseged Gebremedhin- ParModelica interface update
b3ed89120Marcus Walther- improved cmake error handling if umfpack was not found
f62345fbcOpenModelica Hudson[Janitor mode] Fix whitespace
5cde2c429Marcus Walther- some more cleanups for path-stuff in cpp-runtime - added some debug output to see the content of the ModelicaConfig.inc file at the beginning of cmake-build - update for reference-file of NPendulummath-test (umfpack cpp runtime)
87be1d417Mahder Alemseged Gebremedhin- Clean up of tuple return handling.
4f6b67a10Marcus Walther- improved path handling of cpp-runtime
574dcac20OpenModelica Hudson[Janitor mode] Fix whitespace
04a519d34Marcus Walther- try to fix Ticket #3232 - Paths in ModelicaConfig.inc - file are now relative to OMHOME-Makefile variable - Boost-Header files that are required for windows-cpp-runtime simulations are now copied into build/include/omc/cpp - msvc-build on windows not testet at the moment
1211dd856Ruediger FrankeFMI2 Cpp: remove duplicated generation of simulation files as contextFMI does not appear to make a difference.
131bf48beRuediger FrankeFMI2 Cpp: fix naming to consistent use of short model identifiers (#3241)
5d4eb06e2Lennart Ochel- update DSS dump
c00f64013Adrian PopFix bug #3239 - merge modifiers in correct order outer -> inner - add testsuite/flattening/modelica/redeclare/Bug3239.mo Fix typo in SimulationRuntime/c/util/libcsv.h
0097e5dc5Ruediger Frankepermit repeated simulation with Cpp runtime by removing already existing link
899c1fb41Ruediger Frankeattempt to treat #3233 by just warning about unrecognized command line options
0be801ec4Ruediger FrankeFMI2 Cpp: generate missing source files and extend Makefile (#3238)
32ac8d115OpenModelica Hudson[Janitor mode] Fix whitespace
85ead7a22Ruediger FrankeFMI2 Cpp: adapt generated model wrapper to FMI version
993877cbdRuediger FrankeFMI2 Cpp: generate appropriate modelDescription.xml
9b531d4e0Ruediger Frankere-fix whitespace (see r25194)
9696bb73fRuediger Frankefix wrong LDFLAGS (#3238)
97c73b470OpenModelica Hudson[Janitor mode] Fix whitespace
4d1eb6672Ruediger Frankerevert unintended change of previous commit
0a2763643Ruediger FrankeInitial version of FMI 2.0 export with Cpp runtime (#3238)
57ea85f84Vitalij Rugefixed handling der(x) in extends dynamic optimization formulation
857b7d76fVolker Waurich- added BackendDAEUtil.isSimulationDAE()
021c789b0Volker Waurich- some fixes for constant jacobian evaluation
72fad54b2OpenModelica Hudson[Janitor mode] Fix whitespace
056f99f66Vitalij Rugeimproved extends dynamic optimization formulation
27c2636c4Per Östlund- Fix ThermoPower tests.
d2570c43cMahder Alemseged Gebremedhin- Keep restrictions.
df00103d3OpenModelica Hudson[Janitor mode] Fix whitespace
544cf65b1Mahder Alemseged Gebremedhin+ fix parmodelica kernel function interface generations.
2ebb2d844Mahder Alemseged Gebremedhin- Add missing decalrations for in_* functions. We need them declared as extern C.
f432f940fPer Östlund- Prepare Mod.elabModValue to return the cache.
72597fbf6OpenModelica Hudson[Janitor mode] Fix whitespace
3392478c7Vitalij Rugeadded module for move loops as equal constrains in NLP - cheaper,simple evaluation for jacobians, DAE - bigger NLP open issues: initial guess.
95593e365OpenModelica Hudson[Janitor mode] Fix whitespace
83251a0bcPer Östlund- Make Mod.elabModValue fail if Ceval prints an error message.
a4e433aefVolker Waurich- array equations that solve non-array vars have to be handled as non-linear systems
9b852f186Martin SjölundTry to output \r for string literals that used \r explicitly
2c55fff2aMartin SjölundSimplify trimming for whitespace
c0e2b8e61Martin Sjölund#3169 Try to fix darwin name again
7d2cc1814Adrian Pop- ISO week number
e974a7197Adrian Pop- even more fixes to library trend plotting
3b6b90741Adrian Pop- more fixes to library trend plotting
5559a103fAdrian Pop- more fixes to library trend plotting
466d7721dAdrian Pop- try echo 0 not 0.
514d1eee3Adrian Pop- add verification curve to library trends (set to 0 now if it doesn't exist)
b53a9615cLennart Ochel- use hash set instead of hash table to collect variables used in when clauses
42051949bLennart Ochel- cleanup
c2eb4de3eLennart Ochel- remove unnecessary cases for when/elsewhen in algorithms
5e7ac6fe6Adrian Pop- fix bad typo in ModelicaBuiltin.mo
2fb5d6b15Adrian Pop- increase version to 1.9.3 nightly
80b135dbfAdrian Pop- switch version to 1.9.2
290b631b0OpenModelica Hudson[Janitor mode] Fix whitespace
c55585404Mahder Alemseged Gebremedhin- Fix one of #3214 issues. - Fill in missing subs with whole dims when elaborating subs. - Update overlooked array assignment case in code generation for arrays.
02db2b276Volker Waurich- solve linear systems with constant jacobian and variable b-Vector symbolically with +d=constjac
62783d021Adrian Pop- partial fix to #3067 - move initialize*Systems from fmi2EnterInitializationMode to fmi2Instantiate because after an fmi2Reset fuction fmi2EnterInitializationMode will be called again which would allocate memory for systems again
09c5cf1bbAdrian Pop- bump gitlibs to [changeset:69daa48/OpenModelicaLibraries] - remove class counting from the LibraryCoverageTrend.sh, will be in the Hudson job for easier adding of libs
5c8a28d0fMahder Alemseged GebremedhinFix List.combinationMap1 too.
9478fb933Mahder Alemseged Gebremedhin+ workaround for cpp runtime until the template gets updated for array handling changes.
5a9c2c7e8OpenModelica Hudson[Janitor mode] Fix whitespace
b8529bac1Mahder Alemseged Gebremedhin+ Handle nested array types when creating array equations. + Correct subscript ordering when expanding crefs. + Fix List.combinationMap to properly order combinations and combination lists. Also accumulate the results. + Added List.combination.
2f3e6ec12Willi Braun - fix the counting of #3217, but record of arrays are currently not supported by the runtime.
4d3a80016Per Östlund- Fix Expression.typeof for ASUB with non-scalar subscripts.
a798a5f88Per ÖstlundFix for #3212 and #3213: - Changed Expression.expandSubscript to use expandRange, so that it's able to also handle non-integer ranges.
8cd1d4b7bLennart Ochel- rename Expression.traverseExp to Expression.traverseExpBottomUp
bd3df36b3Lennart Ochel- minor cleanup to traverseExp
9863ec82cMartin SjölundReplace MM trig functions with Modelica equivalents
89457a026Lennart Ochel- cleanup
1c2ae3cc5Vitalij Ruge added flag for using ExpressionSolve in adjacencyRowEnhanced - can be used e.g. for warmstart in dyn. optimization
d94fa40edAdrian Pop- switch back to 1.9.2 Nightly
f5ac4fe57Henning Kieluse realTan instead of realSin/realCos
077948565Adrian Pop- revert r25066, modelica_string is *NOT* const char*, is MetaModelica string, defined as: typedef modelica_metatype modelica_string;
93983ebd6Adrian Pop- switch version to 1.9.2 Beta2
f7944834fMahder Alemseged Gebremedhin- c++ compatibility. const correctness required.
47730a812Lennart Ochel- prepare module to encapsulate all function calls
dce49f5c0Per Östlund- Fix some bad enum to int conversions in the back end. - Some code clean up.
b640ae0bfMahder Alemseged GebremedhinFix wrong array scalar marking.
4b47dbdb4Lennart Ochel- don't handle homotopy in cse module
fa61ca65cLennart Ochel- fix indentation
a15b84d66Volker Waurich- revert r25052, will fix it later
a285b3f24Volker Waurich- array equations solving non-array variables are actually non-linear systems
8f4e8a851Martin FlehmigAdded cppFlags to simulation makefile.
138f2b4fdMartin SjölundClean cmake crap better
0acd505b0Adrian Pop- make sure is gcc before you add the extra flags - make the cmake verbose for easier build debugging
00dc56dddAdrian Pop- pass the cc flags to metis building
52096b79aMartin FlehmigAdded flag 'cppFlags' in order to commit flags for C++ compiler in CppRuntime.
0fa91a651OpenModelica Hudson[Janitor mode] Fix whitespace
3464a6679Per Östlund- Handle other types than integer ranges in BackendDAEUtil.extendRange.
361b4a6c1Martin FlehmigAdded config flag 'cppFlags' in order to commit flags to C++ compiler in cppRuntime.
3f94931f2Henning Kiel- replace most List.isEmpty/List.isNotEmpty by internal listEmpty - replace recursive function with while loop
6570b17c7Lennart Ochel- typo
08082c4d9OpenModelica Hudson[Janitor mode] Fix whitespace
c8db6a2d1Niklas Worschechfix for getReal method in cpp template expected output
a31b4dff9Marcus Walther- metis added to bootstrap-dependencies
cfee79625Marcus Walther- metis include added
8dff8e64aLennart Ochel- some cleanup
1ed8384f6Marcus Walther-enabled metis for linux and mac by default
c78e112b2Marcus Walther- added metis to windows build (mingw)
76e956b97Adrian Pop- fix code generation for OpenTURNS (Uncertainties) which was broken since r22958 (bad assert).
3e4a58a97Adrian Pop- more tries to fix #3056 by fishing in the dark :) - update 3rdParty to r137/OpenModelicaExternal
3b82e2ac6Willi Braun- fixing Modelica.Fluid.Examples.HeatExchanger.HeatExchangerSimulation by changing alias start-value and nominal-value selection. - prioritise the own variable attribute-value - downgrade test Modelica.Fluid.Examples.HeatingSystem.mos for now.
0f31e5760Adrian PopAttempt to fix #3056 - only for Darwin: add -DBOOST_ROOT=/opt/local/include/boost/ to modelica3d build if /opt/local/include/boost/array.hpp exists
918039efdWilli Braunmake Modelica.Fluid.Examples.PumpingSystem working again - by adding hybrid solver to the homotopy solver
950d9f44bAdrian PopFix #3209 - keep only unique equations for initialization
d5a87d246Martin SjölundHandle different host vendors (default is unknown; dpkg uses pc)
6c1dd7cfcLennart Ochel- revert r25012, since it breaks some stuff
09180c42bLennart Ochel- attempt to fix #3211
418a23ae5Adeel Asghar- Add a default start value for inputs.
caab11c20Martin SjölundSerialize algorithm sections with a single assignment differently
9cd11c89fAdeel Asghar- Fixed fmiEventUpdate.
14abf44abAdrian PopFix #3204 - give a warning on stdout if override name not find in model - i would prefer to do it on stderr but LOG_STDERR doesn't seem to exist
6d2afdd64Lennart Ochel- disable warning if removeSimpleEquations failed for a subsystem - cleanup
0776a08d0Lennart Ochel- skip subsystems if removeSimpleEquations failed
08e1c29bcAdeel Asghar#3205 - Fix output causality.
96fb6d9bdAdrian Pop- msvc friendly implementation
2826f4eadOpenModelica Hudson[Janitor mode] Fix whitespace
bdcc4ccf9Niklas Worschechfix for Jacobian initialization in cpp template
3010a0bb9Martin SjölundFix printing of sparse Jacobian matrix (crashed for large systems) - Also skip printing the system unless the stream flag is set
5dffe2aacMartin SjölundFix type checking error - `Type mismatch in assignment in colorMap := {{0, 0, 0}} of Real[n_colors, 3] := Integer[1, 3]`
a66a65208Adrian PopFix #3095 - add class modifiers from extends to the environment - add testsuite/flattening/modelica/modification/MissingModifiersPackages.mo - 55 tests will fail, I'll update them asap
360a84ea8Marcus Walther- changed implementation of tpl.iterSeparatorAlignWrapString to while-loop instead of recursion, to fix stack overflow for large rexroth model
8ce63e596Adrian PopFix #3051 - merge modifiers for the class from the environment - add tests: testsuite/flattening/modelica/modification/MissingModifiers.mo, testsuite/flattening/modelica/modification/TestMissingModifiers.mos
d0a00165dMahder Alemseged GebremedhinRevert output counting changes until we fix all the issues.
66c19d2b7OpenModelica Hudson[Janitor mode] Fix whitespace
a4fa7a9a8Mahder Alemseged Gebremedhin- Hanlde multi dimensional array exressions in array equations. - Fix cref expansions.
95053ca32OpenModelica Hudson[Janitor mode] Fix whitespace
953f29806Per ÖstlundFix #3193: - Made TplParser.restOfTemplLine iterative to avoid stack overflows.
42447f546Adrian Pop- a bit more optimization in the TplParser for #3193 but still not good enough, rewrite needed to use match instead of matchcontinue in TplParser.restOfTemplLine
f8b44dd8bAdrian Pop- fix unparsing of Absyn.AS
d5eff898aVitalij Rugefixed r24971
081be3adeOpenModelica Hudson[Janitor mode] Fix whitespace
17abe8bdbVitalij Rugeusing time grid inside model for dyn. optimization
d924b0fb6Mahder Alemseged Gebremedhin- Improve r24961.
95c013ff5OpenModelica Hudson[Janitor mode] Fix whitespace
e87391212Adeel Asghar- FMI 1.0 co-simulation API skeleton.
49c55782eAdeel Asghar#3034 - Define default start value for input causality.
849516ba8Lennart Ochel- improve error message of transformation module "sort components" - cleanup pattern matching and unused arguments
4a344db81Lennart Ochel- some cleanup
d768c90b9Adeel Asghar#3171 - Do not generate the empty TypeDefinitions section.
314bdd897Adrian PopFix #3187 (well, not really) - re-added support for array equations of the form: der(x_arr) = fcall() * x_arr; in SimCodeUtil.createSingleArrayEqnCode (r24947 changes removed that) - added test testsuite/simulation/modelica/arrays/Breaker_total.mos - minor change in Compiler/Template/DAEDumpTpl.tpl
9be3b1cffLennart Ochel- mark function createStateSets as protected
f7e4fa224Ruediger Kampfmann-new target vxworks69
ec6246886Martin SjölundFix number of spaces
78d1b2497OpenModelica Hudson[Janitor mode] Fix whitespace
51aca84c1Ruediger Kampfmann-new target vxworks69
c55c29d68Vitalij Rugeadded interface for user time grid in dyn. optimization
a4189ad55OpenModelica Hudson[Janitor mode] Fix whitespace
6bac95633Mahder Alemseged Gebremedhin- Improved array-equation handling in the backend - Array equations now contain Exp for lhs - Fix #3184 again (broke it with r24930) - Test cases for #3184 and #3188
2c510caeaOpenModelica Hudson[Janitor mode] Fix whitespace
01ea458dfBernhard Bachmannsome cleanup and correction to the nonlinear homotopy solver
88e15bf55Adrian Pop- revert r24941 (and r24942) as it breaks the builds
e6c3fbc18OpenModelica Hudson[Janitor mode] Fix whitespace
090894a0bRuediger Kampfmann-new target vxworks69
145fbaeebMarcus Walther- revert revision 24937, because windows build fails
eff9e5901Adrian Pop- small change on DAE.VAR printing - add element source type list dumping, commented out for now
04830c8fdAdeel Asghar- Start generating co-simulation FMUs. The FMU doesn't contain valid code yet but will soon.
c71203795Marcus Walther- changed cvode to cvode_lapack - some cleanups for ILapack.h
871b241b1OpenModelica Hudson[Janitor mode] Fix whitespace
1ab23ac23Niklas Worschechfix for Jacobian variable names in cpp template
de54b76ddVitalij Rugeimproved time grid in dyn. optimization
76f0fa74aMahder Alemseged GebremedhinFix #3190
c2593a15bMahder Alemseged GebremedhinFix boolean slice assignments in c runtime. Fix #3188
936719c7bOpenModelica Hudson[Janitor mode] Fix whitespace
73113bd2fAdrian Pop- fix the type source for the enumeration type inside DAE.ElementSource.typeList (port from rml branch)
e19d57d52Bernhard Bachmannspeed-up of non-linear homotopy solver by adding new stop criteria
4d0c547a4Mahder Alemseged Gebremedhin- Improved handling of slice arrays - Fixed slice array assignments - Fix #3184
ae11989ceLennart Ochel- remove obsolete util stuff
61172b73aLennart Ochel- change directory separators in some description strings
3f5f21e4bOpenModelica Hudson[Janitor mode] Fix whitespace
dd21d7e7cMarcus Walther- dumpCrefToSimVarHashTable function added to dump the crefToSimVarHT informations - a lot of refactoring in HpcOmTaskGraph - additional fields to task graph meta added, that show if a component belongs to the ode or event system
582614e97Adrian Pop- fmilib needs shlwapi, not OpenModelicaFMIRuntimeC
adae41998Adrian Pop- order matters shlwapi needs to be after fmilib
d168428b2OpenModelica Hudson[Janitor mode] Fix whitespace
b826ccff6Patrick Marcel Taeuber- improved Cellier tearing, now it is able to handle large components
efd471ab6Martin SjölundDocument symbolic operations
a463dd5ceOpenModelica Hudson[Janitor mode] Fix whitespace
a645f637dNiklas Worschechfix for string array in cpp template
395cb1eb8Lennart Ochel- change messages
a37b7ea48Henning Kielfix some warnings
9e24c0accLennart Ochel- initialize spare structure for jacobian A if qss solver is used
63ea0b9ddAdrian Pop- better handling of lib strings for +target=msvc
9176dcb67OpenModelica Hudson[Janitor mode] Fix whitespace
2d85d41ddWilli Braun - improved handling of differentiated variable names for symbolic jacobians
0342f2cf2Adrian PopFix #3187 - seems that SimulationRuntime/c/util/boolean_array.c got stuck with some old code (i now used the one from integer_array.c) - removed commented out code from SimulationRuntime/c/util/real_array.c
949fd208aMarcus Walther- fixed some cpp-runtime-tests
697b89a8fAdrian Pop- suppress library not found message when running the testsuite.
f8470726dOpenModelica Hudson[Janitor mode] Fix whitespace
d40dee77eMahder Alemseged Gebremedhin+ Use exps in array assignments instead of direct crefs. + Fix array algorithm assignment generation.
1e4471417Adrian Pop- increase simulation executable stack size on Windows
4623b8113Marcus Walther- changed PreVariables-Array from dynamic to static - added a "isSome"-function to the Util-module
348afb1ceNiklas Worschechfix for initialization of string parameter in cpp template
6227835a1Martin SjölundAvoid generating platform-specific Modelica code for FMU's
c983b602fMartin SjölundAdd %APPDATA% to get a directory to store user files on Windows
8c2871677Martin SjölundFix assertion of json text
cf0390dacOpenModelica Hudson[Janitor mode] Fix whitespace
293a54fe3Vitalij Rugeaktived postOptModul lateInlineFunction
0aab84975Niklas Worschechfix for cpnvertBoolToInt in cpp runtime
3dfe5c964Martin SjölundFix the debug info according to the schema
94a443a4cVitalij Rugefixed makeNoEvent?
ab6c8f4ceLennart Ochel- more cleanup
b36365b9fOpenModelica Hudson[Janitor mode] Fix whitespace
93cad0ec1Niklas Worschechfix for initialization of string alias variables in cpp template
8d0f908eaVitalij Rugerevert r24844, don't work
26071c234Vitalij Rugeimproved handling of not derivable function calls in ExpressionSolve
60240740cLennart Ochel- some cleanup
384811463Lennart Ochel- mark public templates in CodegenC.tpl
38aa136d9Lennart Ochel- cleanup of some obsolete templates
e3c80b804Volker Waurich- dump type information for equations in +d=dumpSimCode
1cb172cbaOpenModelica Hudson[Janitor mode] Fix whitespace
7803d9ab7Per Östlund- Completely wreck scodeInst.
b339f9cbdHenning Kielsome cleanup
00c28f7b3Lennart Ochel- prepare qss solver development (using euler method as place holder)
7c3bb7807OpenModelica Hudson[Janitor mode] Fix whitespace
1935b7aabLennart Ochel- fix string handling
aa906305cNiklas Worschechfix for pre call for array in cpp template
3754f6b1dOpenModelica Hudson[Janitor mode] Fix whitespace
ae6074291Lennart Ochel- add auxiliary function for printing sparse structure of jacobian A
2cdd472a6Ruediger Kampfmann-removed argument cycletime in calcOneStep and runSingleStep
91056c7bbRuediger Frankeremove call to dimensionKnown from Static.elabBuiltinDiagonal (#3168)
e88f2c1f0Adrian PopFix #3180 - fix unparsing of dummy derivative operations in Model_info.json
ec580e2fcVitalij Rugeadded simplify rule for differentiation of function call (active with flag)
ce92a6a3eAdrian Pop- split the detailed trend into a new file
8a75ddc3fVitalij Rugeactivated some optimization for jacobians
f398394acHenning Kielfix warning fix memory leak
2e796ee83Lennart Ochel- remove unused import statement
deee448b7Lennart Ochel- move auxiliary functions to BackendDAEUtil
70fdb7c0bLennart Ochel- translate html dump into English
daa3a56f5Lennart Ochel- fix trailing blanks
9fa79540dLennart Ochel- some more cleanup
da2f81e15Lennart Ochel- cleanup DumpHTML stuff
721d9d004OpenModelica Hudson[Janitor mode] Fix whitespace
041dcfb9dLennart Ochel- new xml dump that can be placed at each position of the pre/post optimization phase
c765b0e83Lennart Ochel- cleanup dumpXMLDAE implementation
e416fb86aLennart Ochel- new dump that can be placed at each position of the pre/post optimization phase
d659af3c8Lennart Ochel- dump states properly (LOG_DASSL_STATES)
f4cd0419dLennart Ochel- dump tolerances properly (LOG_SOLVER)
b61c576d4Vitalij Rugefixed output
3b0a88484Marcus Walther- copy-constructor added to cpp-runtime model-class - some cleanup and fixes for arrays in membervariabledefine in cpp-template and cpp-hpcom-template
46ba65620OpenModelica Hudson[Janitor mode] Fix whitespace
5ce643a00Volker Waurich- fix hpcom for empty system, set numProc correctly for empty systems
f92b98860Adrian Pop- better handling of detailed trend part
91927af25Adrian Pop- generate also *-trend-detailed.svg and png with the last 2 weeks
8f626cbb4Adrian Pop- make it executable
578cd5aacAdrian Pop- add the trend generator to svn
e674424fcOpenModelica Hudson[Janitor mode] Fix whitespace
fe1b3b885Olena Rogovchenkofigaro export bug fix in xml generation
a561f6c5cMartin Sjölund- use cd() for current directory as you cannot call System.pwd inside ModelicaBuiltin.mo
daed35feaAdrian Pop- use "." for current directory as you cannot call System.pwd inside ModelicaBuiltin.mo
e3f87030cOpenModelica Hudson[Janitor mode] Fix whitespace
459a498a4Henning Kielfix mkdtemp according to definition from man page
be2b428a8Olena Rogovchenkofigaro export bug fix
37c80aa48Martin SjölundAllow --std=latest to change to the default (was previosuly impossible)
e10c23c17OpenModelica Hudson[Janitor mode] Fix whitespace
0e6484e67Per Östlund- Improved deduction of implicit iteration ranges in for-loops. - Added ALG_ASSERT, ALG_TERMINATE and ALG_REINIT to SCode.Statement, to mimic how SCode.EEquation is structured. - Various code cleanup.
165374bf2OpenModelica Hudson[Janitor mode] Fix whitespace
958e4fecfMarcus Walther- fixed a strange segmentation fault of gcc, if hpcom-openmp code is used
74314a7ffOpenModelica Hudson[Janitor mode] Fix whitespace
6823b02b3Lennart Ochel- new flag to deactivate partitioning
46db20a4eOpenModelica Hudson[Janitor mode] Set auto-props
be66770e1Lennart Ochel- separate dumpGraphML stuff from index reduction
f636fff6dOpenModelica Hudson[Janitor mode] Fix whitespace
1a0275d13Per ÖstlundFix for #3178: - Fix dead store elimination for loops.
01a71e1a0Volker Waurich- output cpCosts for level-Scheduling
54bb76f42Adrian Pop- don't write after the end of the string, read the mkdtemp definition (template ends in 6 chars which are rewritten in place)
44bbb15faMarcus Walther- removed cachemap-dump if hpcom-dump-flag is set
997ee5f21Henning Kielfix generation of tmp path in mkdtemp
9cfe86c96Vitalij Rugefixed output
313fe2bc8Adrian Pop- use rand instead of uuid to get rid of some dependencies
c1457fe74Adrian Pop- fix MSVC includes
7458ec6ceAdrian Pop- implement mkdtemp for MinGW and MSVC
56be07b86Vitalij Rugeinitial guess with file for dyn. opt.
94cf0d3c4Martin SjölundRemove odd linux32/linux64 hacks from when omc started using the wrong fmu platform string
a63f281aaOpenModelica Hudson[Janitor mode] Fix whitespace
0f64ea66bLennart Ochel- clean up index reduction
d796a6ff4Martin SjölundAutomatically compile used libraries if Resources/BuildProjects is available
7f4b1c7ceOpenModelica Hudson[Janitor mode] Fix whitespace
d9bc2f1d9Olena RogovchenkoFigaroExport interface update
4e9952f3fLennart Ochel- add proper cse debug output of substitution - remove unused/duplicated variables
540518342OpenModelica Hudson[Janitor mode] Fix whitespace
9d4364206Lennart Ochel- fix internal generation of discrete cse variables
d87131102Willi Braun - fixed #3053.
681bc84ceLennart Ochel- fix type of cse binary substitution - add debug output to trace unsupported cse types
2788d6ebaOpenModelica Hudson[Janitor mode] Fix whitespace
c789f13b1Lennart Ochel- fix statistics of cse call expressions - proper cse debug output of creating cse statistics
9e59c0c84Lennart Ochel- dump equations after variables, since this is the way we dump most stuff
e96b61025Lennart Ochel- fix binary statistics of cse module
6e920f852Lennart Ochel- clean up (remove unused variables, ...)
7e833383cMartin SjölundRe-enable looking for libraries
ed98b2996Adrian Pop- disable the check for now to make the builds work
07e9fbdecAdrian Pop- make it a warning until we sort things out
956256c23Martin SjölundAdd some code that checks if the external Library from the annotation exists before trying to compile Later on, we can use this as a heuristic to automatically compile the C-sources
4950de851Martin SjölundChange := in modifications to a warning instead of error, fix MM sources
2bd5e821bMartin SjölundDo not allow using := in modifiers
bd4959b6cMartin Sjölundm:#1595 Do not use := as modifiers in functions
d4c85dad3Henning KielOSX is always special
f59da8963Bernhard ThieleDisabled debug output
6f47d5a0bBernhard ThieleAdded one sample period "delay" to avoid executing twice at t=0
1d1e10b53Lennart Ochel- fix initialization of state machines
e39faa260Martin SjölundPatch _main.c twice
02642a98bMartin SjölundFix compilation
94763c970Martin SjölundPatch `_main.c` to avoid a new tarball
c55967eb2Henning KielStatic analysis fixes
d0bc4bfabMartin SjölundFix compilation
1888ecac4Martin SjölundStatic analysis fixes
e2ac4ce61Martin SjölundImprove the static analysis
edd88e18dLennart Ochel- add hints to README in case that one wants not to place OMDev into c:\OMDev
ca4a9ccf5Marcus Walther- CVode and IDA are now calculating the "final time point" correctly - Added a simple getter for global-settings
6acedf759OpenModelica Hudson[Janitor mode] Fix whitespace
37ff87af8Bernhard ThieleDeleted unintentionally ressurrected resurrected directories "SimulationRuntime/interactive" and "SimulationRuntime/c/simulation/libf2c"
d7d5bbf2dVolker Waurich- rule in startValue calculation that (time > -1.0) is not evaluated
db2e17101Adeel Asghar- Added the fmi interface files inside fmu. - modelDescription.xml not required in sources directory.
34c5af047Adrian Pop- support both the old Modelica.Math.Matrices.LAPACK.dgelsx and the new one so one can use evaluation with older MSLs too
5c429bd1aOpenModelica Hudson[Janitor mode] Fix whitespace
b2ba263e0Bernhard ThieleMerged StateMachine branch back into trunk!
bf2593f31Volker Waurich- added Flag to disable pre-Calculation of start-values - disable start value calculation for linSymSolConstA test
eeeb02637Volker Waurich- activate PreCalculateStartValues
854976105Martin SjölundFind first
a369e43b7Martin SjölundStatic analysis
6382bf180Martin SjölundCompile using CXX; feature-check C++ variadic macros (part of C++11)
dd529a91aMartin SjölundStatic analysis
7c619223bMartin SjölundFix warning
5bff6b517OpenModelica Hudson[Janitor mode] Fix whitespace
7a4dc582aMahder Alemseged GebremedhinFix Cpp test.
b366981faAdrian Pop- min and max does not exist in C Linux it seems
225b15488Adrian Pop- MSL 3.2.1 (m:r8095) changes the interface of Modelica.Math.Matrices.LAPACK.dgelsx - adapt our interactive evaluation of Lapack to match the changes
c843f04e2Adrian Pop- you need to strdup the message otherwise you get bad messages containing invalid XML characters, see: https://test.openmodelica.org/hudson/job/MSL_trunk_cpp_Simulation/351/console and https://test.openmodelica.org/hudson/job/OpenModelica_TEST_LIBRARIES/ws/OpenModelica/BuildModelTest/MSL_trunk_cpp/BuildModelRecursive.sim.xml
544c14bc6Martin Sjölund#3169 fix going into the correct case when using osx
0bc41237aMartin Sjölund#3169 Fix OSX name in FMU's
0b1d872b9Adrian Pop- use the alloc interface not malloc directly
18a23d0bdMartin SjölundFix typo
fa33eb30aHenning Kielsome code cleanup
0e6a26a89OpenModelica Hudson[Janitor mode] Fix whitespace
b010babf5Mahder Alemseged GebremedhinHandle Slices in simulation contexts. Use correct types when creating common subsexpressions. Fix faulty array expansions.
7d1a1f7c5Vitalij Rugeimproved solveLinearSystem
f1599b950OpenModelica Hudson[Janitor mode] Fix whitespace
47506f42aMarcus Walther- fixed static linking of cpp-runtime - fix for missing kinsol-includes
ff39f086bBernhard Bachmannimproved convergence criteria of Newton solver (within Homotopy solver)
3c1329f3aOpenModelica Hudson[Janitor mode] Fix whitespace
84731f622Marcus Walther- added a function to find all parameters of an equation - parameter-equation-mapping is now part of hpcom - improved HPCOM-GRS - some HPCOM code improvements
061cf87f9Henning Kielfix last commit
2a44b0137Henning Kielfixed some annotations
65f1416edLennart Ochel- fix initialization of over-determined systems containing when-clause
b74f69360Martin Sjölund#3166 Escape \r in C strings
466b1a8d8OpenModelica Hudson[Janitor mode] Fix whitespace
6a1a75d4fNiklas Worschechseparated LoadSystem Method in SimController class in LoadSystem and LoadSimData
cf0776bd8Volker Waurich- enable BackendEquation.traverseExpsOfEquationList to replace crefs with constants - removed fail message
7f784b939Volker Waurich- revert last commit
6fd4d4feeVolker Waurich- activate preCalculateStartValues (will be reverted)
338816bf8OpenModelica Hudson[Janitor mode] Fix whitespace
9c4fd4cdcHenning Kielsome code cleanup sin(acos(e)) = cos(asin(e)) = sqrt(1-e^2) sin(atan(e)) = e/sqrt(1+e^2) cos(atan(e)) = 1/sqrt(1+e^2)
1b352cf70Volker Waurich- dont replace discrete vars in cseReplacement
3f3b49b4dWilli Braun - fix #3151
713518443Lennart Ochel- code simplifications and more debug output
c87d04985Henning Kielfix some warnings
0a284a1faVolker Waurich- added missing files
3b73d9e68Volker Waurich- added preCalculateStartValues (not activated now)
f6178d4acAdrian Pop- more removal of __attribute__
491f09af2Adrian Pop- attempt to fix builds
f3fd414a5Willi Braun - improved assert output further with debug - fixed #3074
17420d7d7OpenModelica Hudson[Janitor mode] Fix whitespace
3a87bcd3dMahder Alemseged GebremedhinAttempt to fix PowerSystems tests.
b88ecfb92Mahder Alemseged GebremedhinRe-enable diagonal() simplification with minor changes. Back-end can't handle unsimplified ones in some cases.
fbd8cc7f6Henning Kielsmall optimizations
c74f4f6baAdrian Pop- ansi c for msvc
5750854f4OpenModelica Hudson[Janitor mode] Fix whitespace
588735d7bMahder Alemseged Gebremedhin+ Fix #2726. Handle diagonal() in code generation instead of simplifying it.
e985982bfVolker Waurich- keep the correct type when replacing constant alias vars
8d4137598Volker Waurich- added partition scheduler
481132378Lennart Ochel- fix output format "ia" for strings
900d0e130Ruediger Kampfmann-typo fix
3bdec1d45Willi Braun - added more information for a triggered Modelica assert - fixes partially #3074
8612d7712OpenModelica Hudson[Janitor mode] Fix whitespace
456d6db75Mahder Alemseged Gebremedhin+ Removed some unnecessary asub creations. + consider subscripts when looking for cref dependencies.
b895d5acfOpenModelica Hudson[Janitor mode] Fix whitespace
7e8b29f16Vitalij Rugeadded structure for der(input) for dyn. opt.
9822673c9Adrian PopFix bug: #3157 - handle also empty Name annotations, i.e.: annotation(Name); - add test testsuite/openmodelica/interactive-API/getDialogAnnotation.mos
4ba9af062Adrian Pop- fix Windows builds, msvc doesn't like empty arrays with no initializer.
c80c47b33Willi Braun - moved debug flag "doLinearTearing" to config flag "disableLinearTearing"
c00de9feaOpenModelica Hudson[Janitor mode] Fix whitespace
112fcfc4dWilli Braun- added singular system solver for umfpack - added support for linear tearing systems to umfpack and lis - added more test-cases (e.g. EngineVN)
db81d2920Lennart Ochel- code simplification of function getNominalAsserts
8eb3ff7b4Martin SjölundPass some DAE.ElementSource when doing CSE
6ae1d9a21Lennart Ochel- code simplification of function getMinMaxAsserts
53ee5b585Martin SjölundTry to only use the GCC workaround if gcc version is 4.8
2e7ebe9dcMartin SjölundPut back the GCC 4.8 flags
a6ff31228Martin Sjölund#3147 - Use `goto` instead of `MMC_THROW_INTERNAL` when possible
c9162b8fbMartin SjölundAdd missing file SanityCheck.mos
eb336e8f4Martin SjölundAdd target sanity-check
257f828e7Mahder Alemseged Gebremedhin+ Fix Build.
7b6e7e280OpenModelica Hudson[Janitor mode] Fix whitespace
99a799a8dMahder Alemseged Gebremedhin+ Cleaned up ComponentReference handling in the code generators. Less clutter. Reuse functions as much as possible. + Now we can use offsetting to index arrays in generated code. works for qualified Crefs as well. - Some issues still remain (e.g. alias elimination) so we don't use offsetting by default. only used when the cref involves variable indexes for now. Still might give erroneous results if some array members are missing though. + Improved handling of multi-variable return functions (*tuple returns). + fix for a case where wrong types were used when creating crefs in front-end.
674bc9558Martin SjölundStrip -g from FMIL. Comment why we pass CC twice to FMIL.
ada3543e5Adrian Pop- pass CC/CXX flags to make
27d844d3eOpenModelica Hudson[Janitor mode] Fix whitespace
b14d6d107Willi Braun- changed sparsity pattern translation - moved mapping (BackendVar->SimVar) from runtime to compile time - added FMI 2.0 modelStructure to SimCode
06ee0c207Per ÖstlundFix for #3155: - Handle subscripts that use for-loop iterators better.
83484cfd8Joseph SchuchartRemove superfluous const int return type definition to fix compiler warning
46dd11983Adrian Pop- use remove(messageFile) instead of system("rm -f " + messageFile);
34bce09b4Adrian Pop- use MMC_IS_INTEGER instead of doing bitwise and directly
a4bd9d9b8Adrian Pop- initialize modelica_string variables to NULL otherwise the debugger breaks searching for the type of un-initialized meta variables
4816ffff2Adrian Pop- fix target runtimeCPPmsvcinstall, use static cminpack.lib for msvc too - add FMI +target=MSVC test for C runtime - update testsuite/openmodelica/cruntime/msvc/Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.mos
83d65d4d0Adrian Pop- strdup to allocate memory
8565fb84bOpenModelica Hudson[Janitor mode] Fix whitespace
ddf67c778OpenModelica Hudson[Janitor mode] Set auto-props
42aecfbb0Adrian PopAdditional fixes to #3137 - fix FMI generation and import for +target=msvc - build static cminpack.lib for msvc - export equations in Model_05evt.c - compile fmil msvc (unfortunately static does not work for some reason) - fix ansi C in the FMI interfaces files - more CMakeLists.txt fixes in SimulationRuntime/c/
7bdfc0d8fOpenModelica Hudson[Janitor mode] Fix whitespace
37eb6040bAdeel Asghar- logging of arrays.
2a1d2238aAdrian PopFix #3137 - revive +target=msvc - compile umfpack, cminpack and cdaskr files - update CMakeLists.txt
b92fc6d1bHenning Kielmalloc via GC fix some warnings
0b2f124aeAdrian Pop- get the proper process exit code for System.systemCall command on Windows - put the error code inside the Model.log file - remove Compiler/scripts/CompileMSVC.bat as is not used
0d5d7815bMarcus Walther- changed BOOST_REALPATH to Boost_REALPATH, because cmake is case sensitive at this case
35becd687OpenModelica Hudson[Janitor mode] Fix whitespace
92b054e17Adeel Asghar- Added toString method for structs for logging.
107d190c7Adrian Pop- too many 'end match'
cf2108172OpenModelica Hudson[Janitor mode] Fix whitespace
c901fef50Martin FlehmigIndent; added missing 'end match's
9b4234220Adrian Pop- fix _omc_copyMatrix()
525e2aecdHenning Kielfix some warnings proper implementation of _omc_copyMatrix()
73c4823fcMarcus Walther- added the possibility to pass CMake-Parameters through the makefile.common to the cpp runtime cmake (e.g. 'make runtimeCPPinstall CMAKE_SUNDIALS_ROOT=$HOME/local')
a4ba91938Marcus Walther- changed boost libraries to realpath, to prevent issues with different installed boost versions
dd9c8806fMarcus Walther- fix for missing "umfpack.h"
35c240433OpenModelica Hudson[Janitor mode] Fix whitespace
8931a2d21Marcus Walther- fixed issue with discrete event class and static linking on windows
150db6a01OpenModelica Hudson[Janitor mode] Fix whitespace
9b1b9b824Marcus Walther- added IDA-library support for static linked cpp-runtime - fixed static cpp-runtime linking on windows - all static generated libraries have now the suffix "_static" - changed all busy-waiting tests to n=1
337c35cdbAdrian PopFix bug: #3150 - do not use the constant-ness of iterator when calculating the constant-ness of the array reduction
4ff29a9a0Adrian Pop- ddlspec(dllexport|dllimport) should be first before the return type
6ee280adeOpenModelica Hudson[Janitor mode] Fix whitespace
d084ea1f0OpenModelica Hudson[Janitor mode] Set auto-props
40a760f83Niklas Worschechchanged SimulationError exception class of cpp runtime
1aabc0b7eOpenModelica Hudson[Janitor mode] Fix whitespace
17e24b6d4Per ÖstlundFix for #3041: - Implemented deduction of implicit iteration ranges for reductions.
120de9894Martin SjölundRemove some -I flags so the headers copied from simulation runtime works without changes
437749393Martin SjölundUse `__attribute__` from omc_msvc.h
6959bd629Adrian Pop- some compilers have no idea what __attribute__((unused)) is
016a23582Martin SjölundFix some unused variables
ed7bdecbfAdeel Asghar- Generate command arguments as string for logging.
024925227Adeel Asghar- Generate response as string for logging.
08d8b9728Martin SjölundRemove %>
73d30dc61Henning Kielsome code cleanup
0f2b05adeAdeel Asghar- Moved getComponentModifierNames to ModelicaBuiltin.mo. - updated getComponentModifierNames to scripting API.
8b6782735Martin SjölundRemoved some -lf2c that should not be needed
1c86e217aAdeel Asghar- Moved getParameterValue to ModelicaBuiltin.mo. - updated getParameterValue to scripting API.
4a5443854Adeel Asghar- Moved getClaasRestriction & getParameterNames to ModelicaBuiltin.mo. - updated getClaasRestriction to scripting API. Removed some unused APIs from OMCProxy.
ead213b5dAdeel Asghar- Fixed isEnumeration.
d5f3d459eOpenModelica Hudson[Janitor mode] Fix whitespace
93c777363Adeel Asghar- Moved some class restriction query APIs to ModelicaBuiltin.mo.
0bb85f638Lennart Ochel- #3138: add assertions for not dependent parameters
9e45cdf6aMartin SjölundFix stack overflow
887a839e2Lennart Ochel- fix wrong else case of function selectSecondaryParameters
3788eadfeLennart Ochel- #3138: remove wrong asserts of secondary parameters
caed35ea6Vitalij Rugesmall improvements of the derivatives for dyn. optimization
97ab2d366Adrian PopFix #3140 - add XML_ParserFree(parser); at the end of modelInfoXmlInit - thanks go to Mathilde for reporting this
36e262386Adrian Pop- attempt to fix #3136
1516a3e6bVitalij Rugefixed generation of dyn. optimization vars
2b807def7Per ÖstlundFix for #3070: - Fix dependency analysis of some cases of redeclares classes.
498cab6e9Martin SjölundBetter makefile for parallelism
c1a432fbeMartin SjölundRemove OpenModelicaScriptingAPI.mo as Adrian updated the tarball
33d3e2ddfAdeel Asghar- Generate struct field names based on function output names. - Converted few more API calls in OMEdit to use scripting API.
2900bdefcNiklas Worschechchanged exception call in cpp template
fa3e21b52OpenModelica Hudson[Janitor mode] Fix whitespace
8c864cca0Ruediger Kampfmann-some fix for older C++ standard
37ed16a48Adrian Pop- split qt-clients build on windows so one can build just the ones who is interested in - better Compiler/Script cleaning - clean OMEdit generated files on clean - get rid of some warnings - do Print.clearBuf() a bit differently in Main
5688a3264Adrian Pop- missing -f
063b01f12Adeel Asghar- emit signals from scripting API for logging.
43bacd0ecLennart Ochel- restore indentation
8aba4fd3eVolker Waurich- fix ordering of parameter equations - removed start value calculation - extended dumpSimEqSystem
ca7a56eeeMartin SjölundForce updating the scripting API to the latest version when bootstrapping
5d3e19235Martin SjölundUse only 1 version of the threadData and symbol table
39c71b81eMartin SjölundFix accidental spaces
559a06862Martin SjölundMove the copying of the Qt cpp and header files from bootstrapping to omedit target
e56a24408Adeel Asghar- make OSX happy.
f98ff9b4bMartin SjölundMake sure the scripting API is generated
b4970240dLennart Ochel- remove duplicated function
84e9228b4Lennart Ochel- remove obsolete debug flag "+d=symbolicInitialization"
1b526bb62Lennart Ochel- remove obsolete debug flag "+d=dumpoptinit"
3628240efLennart Ochel- remove obsolete optimization module "optimizeInitialSystem"
e9dfd6555Lennart Ochel- remove obsolete function
5fe31636bAdeel Asghar- Removed the OMOptim documentation as it is already part of OpenModelicaUsersGuide.pdf.
fa46752f5Martin SjölundUpdate scripting API
be73191e1Martin SjölundAdd getComponentsTest API (typed version of getComponents)
11df4e4fcPer Östlund- Some minor optimizations.
abdc5218dLennart Ochel- cleanup
f3e214ea7Niklas Worschechfix for c-lang build error in SimController class
0e04f5883Lennart Ochel- add flag "+d=disableComSubExp" to disable module "comSubExp" since it breaks some models
77727f6c5OpenModelica Hudson[Janitor mode] Fix whitespace
cf6179485Adeel Asghar- minor changes in Qt API interface.
c43b6291fOpenModelica Hudson[Janitor mode] Fix whitespace
713904deaOpenModelica Hudson[Janitor mode] Set auto-props
00003439bNiklas Worschechadded new exception class for all simulation errors in cpp runtime
f800645a3OpenModelica Hudson[Janitor mode] Fix whitespace
959966734Adrian Pop- expand uniontype records into metarecords on loadFileInteractiveQualified (helps MDT give content assist for uniontype records)
a45c9e4abWilli Braun - fix the huge linear solver failings output
86f06df36OpenModelica Hudson[Janitor mode] Fix whitespace
7cd499eb3Michael Kloeppelfix IDAGetDky issue
990e467e4OpenModelica Hudson[Janitor mode] Fix whitespace
a9979fbdbMartin SjölundFix assertion output (uses the API for log messages)
4612ff0f3Willi Braun - switch the linear solver, to lapack with totalpivot as fallback
727a5df4dMarcus Walther- RUNTIME_STATIC_LINKING is now working for Windows systems (MinGW)
27f7b48f2Martin SjölundModelicaUtilities should output to the chosen log format
aa2160398OpenModelica Hudson[Janitor mode] Fix whitespace
da36c48abMichael Kloeppeladd IDA solver to CPP runtime
94150145dPer ÖstlundFix for #2977: - Allow fewer subscripts than dimensions.
ddc308080Adrian Pop- use in Windows the same error reporting for dll loading as in Línux
bcdda8720Adrian Pop- back to 1.9.2 nightly
d22c58570OpenModelica Hudson[Janitor mode] Fix whitespace
9e1ce973eLennart Ochel- there is no jacobian G anymore
da958b846Lennart Ochel- remove more code from numeric initialization approach
5bb9ff382Nils MenagerFix for time events that occur in every cycle in calcOneStep()
1378b569aLennart Ochel- remove obsolete functions traverseAlgorithmFinder and createInitialParamAssignments
ee8830b44Adrian Pop- switch version to 1.9.2 beta1
2ce7805a5Adrian Pop- back to 1.9.2 nightly
135390e5eAdrian Pop- switch version to 1.9.2 Beta
ca81b4654Adrian Pop- fix some typos
a92c746f9Adrian Pop- try some voodoo
79a0deac1Adrian Pop- use runProcess("cmd /c command") on windows instead of system(command) so that no console window appears - remove some f2c include directories - enable parallel mark in windows
e5df72f80Lennart Ochel- remove more code for removed numeric initialization
e40489727Lennart Ochel- remove more code for removed numeric initialization
7680a6561Martin SjölundFix some abs/fabs warnings (possibly abs was also part of f2c and was an fabs in disguise)
9c48a4acfMartin SjölundDon't call max() in generated code
83e9f5607Martin SjölundLogic fix
6013e6fdbOpenModelica Hudson[Janitor mode] Fix whitespace
c376912aeRuediger Kampfmann+ some fix due to inputs for vxworks
b76a1d6ecLennart Ochel- fix call to min
1b823e9fbMartin Sjölundmin/max fixes after f2c.h was removed
ca48d9a35Martin SjölundRemove call to min
f2969f964Martin Sjölundf2c.h fixes, remove some math files from svn
4f13e7004Martin SjölundThere is no more f2c.h
74a535425Martin SjölundNo more f2c.h
9c5ae60a3Martin SjölundRemove f2c and a bit more from the simulation runtime (thanks to r24305)
2c49ede02Adrian Pop- avoid having extern twice
df9bef23fAdrian Pop- build OMEdit using the OpenModelicaCompiler.dll on Windows - i think we should have both dll loading and corba in the same OMEdit and toggle it on a flag (so that is easier for testing) - make handleCommand public in Main.mo as otherwise you cannot import it
55721f2ceMartin SjölundFix performance profiling for info.json files
8ecb6e7a4Adrian Pop- on some weird systems case matters :)
dc4d75be8OpenModelica Hudson[Janitor mode] Fix whitespace
e79e4e434Niklas Worschechadapted BufferReaderWriter of cpp runtime to new writer interface
31db4b319Lennart Ochel- removed deprecated numeric initialization approach - removed simflags: "-iom=*" and "-iim=numeric" - another commit will remove more code that belongs to the numeric initialization approach
e10c65028Adrian Pop- send threadData to dynamically loaded external function - do not fail in writeBuf if there is no buffer or there is no data - update test BatchPlant_StandardWater
b68318f6ePer Östlund- Added new package StringUtil for string utility functions. - Improved Util.stringWrap and renamed it StringUtil.wordWrap.
109ae1338Martin SjölundPrint the source files used to run the script
50403286bLennart Ochel- #3114: handle empty system in initialization
617aa90fcOpenModelica Hudson[Janitor mode] Fix whitespace
5b3738643Martin SjölundTry to make msl-external-libs thread-safe
7899e7aefLennart Ochel- #3113: fix missing implicit defined initial conditions
65e131909Lennart Ochel- remove redundant case
336ad043bLennart Ochel- fix initialization of inactive when-equations (example from #3092)
678e229acMartin SjölundDetect der() being used inside a function
3736f27c7Marcus Walther- Threads are now joined correctly after simulation
dec4b3cb8Martin SjölundDo not require setting PATH to run the compliance suite
0fed5cf8aAdrian Pop- don't generate SourceInfo_SOURCEINFO again as is already in meta_modelica_builtin.c and we get duplicate definitions in Windows - small optimization in Compiler/BackEnd/BackendEquation.mo, don't start from 1 (findFirstUnusedEquOptEntry consumes 12% for Spice3BenchmarkFourBitBinaryAdder)
587a30749Adrian Pop- more fixes for Windows - add include to omc_config.h - ansi-c for the highness
f8a291ffdWilli Braun - update help text.
0c9873e2cVitalij Rugefixed hessian structure
a3b4047c4Willi Braun - update help text
0e37c9cd9Martin SjölundTry to fix OSX build
42f70caabMartin SjölundHandle more things for minimal simulation runtime: - Numeric initalization disabled - f2c disabled - Most NLS solvers disabled due to f2c dependencies (Only set with OMC_MINIMAL_RUNTIME=1)
b94f6a4f0Willi Braun - move cse module to the postOptModules - activate it for simulation/libraries/3rdParty/ThermoPower/Bug2537.mos, since it reduce drastically the time of the critical path in the testsuite.
7ac750606OpenModelica Hudson[Janitor mode] Fix whitespace
90d4309b6Marcus Walther- improved memory optimization
7615f9d47Martin SjölundFix spelling
e709a5e65Adrian Pop- space junkie
5523e3042Martin SjölundFix compilation
44e9c2915Martin SjölundAdd make option OMC_MINIMAL_RUNTIME=1, which skips compilation of many object files in the simulation runtime (to make it easier to cross-compile for real-time targets)
32ea17000Volker Waurich- use initial values of parameters from binding expressions
a9f97c5a1Vitalij RugeExpressionSolve: fixed sign in pow(x,y) = z with respect to x
e2e08967cAdrian Pop- change alarm to also kill the children (the entire process tree) on Windows
89620a531Marcus Walther- fixed FMU-Cpp Tests
af7ae5092Lennart Ochel- remove unused variable
6d9aa04acLennart Ochel- #3094: fix some asserts that were not formatted according to "logFormat"
0af4437cdMarcus Walther- fixed levelfix-scheduler
96c539f91OpenModelica Hudson[Janitor mode] Fix whitespace
8480703f4Marcus Walther- fixed hpcom of cpp-runtime (levelfix-scheduler still broken) - fixed measure time of cpp-runtime
b4b45cec2OpenModelica Hudson[Janitor mode] Fix whitespace
52c412c1aWilli Braun - fix differentiate that results in a zeroExp.
c94f64d65OpenModelica Hudson[Janitor mode] Fix whitespace
fd7de1966Willi Braun - use BackendEquation.travese* functions, to not change the ordering of the given variables and equations
8ec2622d7Martin SjölundRemove unused code
a49a2f3b0Martin SjölundSwap Linux/Windows
0fbfc8769Martin Sjölund#3107 Send SIGALRM to children when the alarm is triggered
7e55368c1Willi Braun - remove workaround case
61bcfa035OpenModelica Hudson[Janitor mode] Fix whitespace
dd53542c6Willi Braun - improved CSE module further. - a remaining isssue that lot of models have issues with the indexReduction if cseCall is activated
922c68509Willi Braun - fix isRecType
013ebfbfcVitalij RugeExpressionSolve: improved numeric for qe
7c9df043fMartin Sjölund#3106 We no longer install txt-files as documentation
b46fb2dcbMarcus Walther- changed library order to fix cpp-build with statically linked boost
f90635f44Volker Waurich- changed cost estimation model
32df748bdMartin SjölundDo not evaluate functions marked `__OpenModelica_Impure=true`
1a3b70f14Henning Kielfix #2939 again (for windows)
011d9903eOpenModelica Hudson[Janitor mode] Fix whitespace
d160160ceNiklas Worschechfix for algloop vars initialization for analytic Jacobian
c2ae48960OpenModelica Hudson[Janitor mode] Fix whitespace
f69fefcd4Willi Braun - fix SimCode generation for expression like TUPLE() = f().
a6b3a321bMarcus Walther- forgot one file
b418da2f0OpenModelica Hudson[Janitor mode] Fix whitespace
c7556d2b5Marcus Walther- changed name of "Analyzation_Mode" to "Runtime_static_linking" - removed flag "hpcomAnalyzationMode" - moved Runtime_static_linking into cpp-template - added a flag to link boost statically to the cpp-runtime
0fd212813OpenModelica Hudson[Janitor mode] Fix whitespace
b5d2be1ddWilli Braun - fix minor issues in some aux functions
7c755e4a3Lennart Ochel- recover communicateStatus since it is used by OMEdit
395ff9b61Henning Kielfix some compile warnings
abdeca1f2Henning Kielfix #2939
ef3682206Vitalij RugeExpressionSolve: - used Vieta's formulas for qe - improved initial guess
a9c82c35aMartin SjölundTry to fix the builds
4f4b59c80Lennart Ochel- remove interactive flag properly
6bbba9c2fLennart Ochel- remove communicateStatus properly
492d18befLennart Ochel- remove communicateStatus once more
0ee476a66Lennart Ochel- remove communicateStatus (interactive simulation)
614a89a3eMartin SjölundRemove interactive flag from help text
c56b70ca6Martin SjölundRemove interactive simulation couplings from simulation_runtime.cpp - Add socket.cpp to c/simulation (TODO: move to c/util as a C interface)
a2757ce31Willi Braun - remove more interactive stuff
e60bd9449Martin SjölundRemove libinteractive stuff
bfd6aee57Martin SjölundRemove interactive simulation
0d8fa46b5Vitalij RugeExpressionSolve: update rule for x^y^ = z
426fec1dbMartin SjölundAllow installing qt interface files to fail
2ddfb1522Martin SjölundInstall qt scripting API files into build
871d00a02Marcus Walther- fixed hpcom codegeneration
0f687cb1aMartin SjölundUpdate OpenModelicaScriptingAPI (Qt version)
ec9e301c2Marcus Walther- now hpcom codegeneration is working again
d1b7f9308Marcus Walther- some changes in hpcom to get it running again, but it's still not working
e379abd81Vitalij RugeExpressionSolve: improved rule for solve abs(.)
78a111aaaAdrian Pop- back to 1.9.2+dev
48966ac37Adrian Pop- switch version to 1.9.2 Beta
d0d6cba8eOpenModelica Hudson[Janitor mode] Fix whitespace
cfb28f509Vitalij RugeExpressionSolve: fixed initial guess
a7e494d3dOpenModelica Hudson[Janitor mode] Fix whitespace
087ed2b51Vitalij RugeExpressionSolve: - improved cos(x) - added rule for sin(x) and tan(x) update tests
2c2d9a1d5OpenModelica Hudson[Janitor mode] Fix whitespace
596c31daaWilli Braun - added debug pre-opt-module addDerAliases, fixes some issues in algebraic loops, but doesn't work for all models. - can be activate via +d=addDerAliases
25217f1fdNiklas Worschechfix in cpp template for DiscreteEvent file include
e89830ea7Martin Sjölund#3096 Implement prototype for dot operator
56877377cWilli Braun - fix the order of equations dumped by simCodeDump
cba6a8aedMarcus Walther- fixed build
e1a5eb36bHenning Kiel- some code cleanup - converted recursive matchcontinue to simple while loop
5216c4314Martin SjölundWork in progress Qt interface
8cd365027Vitalij Rugepartial revert of r24150 - side effect of the tearing - broke some examples
5789935d8Willi Braun - fix the function BackendEquation.replaceDerOpInEquationList
ba453bfe9Marcus Walther- simple bug fix - improved error handling in cmake
ba9308aa6Adeel Asghar- updated MDT link.
b84cafbe4Vitalij Rugeactivated solveSimpleEquations for initialization - probably fixed #3091
a991a08b3OpenModelica Hudson[Janitor mode] Fix whitespace
5502c6dbeNiklas Worschechfix for delete objects in cpp template, removed includes SystemDefaultimplementation of cpp runtime
75100a4b3Vitalij Rugeactivated solveSimpleEquations
8dfdb422eOpenModelica Hudson[Janitor mode] Fix whitespace
c5329635fNiklas Worschechfix in cpp template for DiscreteEvents in algloop- files
6ef1ec20cLennart Ochel- keep pattern clean
9eeca3b1bLennart Ochel- cleanup
611c0dd42OpenModelica Hudson[Janitor mode] Fix whitespace
44120c9faWilli Braun - improve return value handling in cse module.
02c371776Willi Braun - added debug flag dumpSimCode.
42857722cOpenModelica Hudson[Janitor mode] Fix whitespace
5af15bc5bWilli Braun - fixed #2669.
f7981e150OpenModelica Hudson[Janitor mode] Fix whitespace
8259cd650Willi Braun - fixed #3092
fe85339fbNiklas Worschechfix in fmu cpp template for missing PreVariables file
d9e9f3389OpenModelica Hudson[Janitor mode] Fix whitespace
affedaeb6OpenModelica Hudson[Janitor mode] Set auto-props
6d2782c99Lennart Ochel- new pre-opt module: CSE - eliminates common sub expression in acausal environment - Different options are available: - +cseCall: consider duplicate call expressions - +cseEachCall: consider each call expressions - +cseBinary: consider duplicate binary expressions - NOTE: This is currently just an experimental prototype to demonstrate interesting effects
dad9896edNiklas Worschechsplitted EventHandling class in DiscreteEvents,ContinuousEvents and PreVariables
d649b41e3Per ÖstlundFix for #3075: - Fixed Util.stringWrap so it handles strings ending with a space properly.
20b84827fOpenModelica Hudson[Janitor mode] Fix whitespace
1c5687786Marcus Walther- initAlgloopSolverVariables is now called in initialize, to prevent an invalid free - renamed initAlgloopSolverVariables to initializeAlgloopSolverVariables - added umfpack to analyzation mode
dbc94f245Adrian Pop- use +version instead of ++v which is not available anymore
9d69d14e7Adrian Pop- somebody played with the flags, use +version instead of ++v
32939a616OpenModelica Hudson[Janitor mode] Fix whitespace
77598f17ePatrick Marcel Taeuber- Temporarily use omcTearing for strong components bigger than 200 variables until problem with Cellier Tearing is fixed
cf31ae119Willi Braun - move printCurrentStatesVector to get more information
107762076Per Östlund- Changed version flag back to --v, -v was already taken by vectorization limit.
907b96332Per ÖstlundPartial fix for #3075: - Improved the flag parsing and added a test case for it.
487cfb734Lennart Ochel- Fix result via tcp/ip
28ba3743dOpenModelica Hudson[Janitor mode] Fix whitespace
6daf323e7Willi Braun - added debug outputs for dassl evaluation context - added simulation runtime flag LOG_DASSL_STATS, which outputs current states vector
7df0eb838Willi Braun - added statistics for all non-linear solvers
67edf005dLennart Ochel- random cleanup
95cd2c5b6Lennart Ochel- fix typo
a3eb49f5aHenning Kieluse "else" instead of "case _ then" in match(continue) expressions
9024c893fMarcus Walther- changed default hpcom-code to openmp
05f745045OpenModelica Hudson[Janitor mode] Fix whitespace
6f4566975Per Östlund- Improved the handling of if-expressions to better handle arrays with different sizes in the branches.
a3d3b120dLennart Ochel- update some error messages
5e36cd471OpenModelica Hudson[Janitor mode] Fix whitespace
bb6000a8eVitalij Rugeimproved simplification of relations
7fc2156c8Henning Kieluse match instead of matchcontinue where possible use try/catch instead of matchcontinue
7752284aaLennart Ochel- update some error messages
db2e82fa9Nils MenagerIntegration of Component ModelicaCompiler to cpp runtime in CMake File and LibrariesConfig.h.in
3b283b694OpenModelica Hudson[Janitor mode] Fix whitespace
0c05fbfa9Marcus Walther- renamed "HpcOmTaskGraphMeta.nodeDescs" to "HpcOmTaskGraphMeta.compDescs" - improved the array-unrolling functions in HpcomMemory - changed CheckODESystemSize of HPCOM -> it checks the scheduled graph now - added a resize-function to the cpp-arrays (required for array unrolling)
7cfec8bb8Lennart Ochel- fix format string
1454ee1c5Bernhard BachmannFixed LOG_NLS_JAC dump
a36a7d7cfAdeel Asghar- Added FMI version settings. - Allows exporting version 2 FMUs.
9e1f9451bLennart Ochel- remove unnecessary simplifications before pre-opt modules
02da4b2b7Willi Braun - fixed assert handling during event iteration and event handling
5105359e4OpenModelica Hudson[Janitor mode] Fix whitespace
35c73126cLennart Ochel- declare numeric initialization as deprecated
039649854Lennart Ochel- put trace dump on flag
1cf0e4cabOpenModelica Hudson[Janitor mode] Fix whitespace
b4515949bLennart Ochel- Fix initialization of primary/secondary parameters. The analysis of the symbolic initialization is now used instead of the one from the old approach.
1870e9786Vitalij Rugefixed r24047.
82a4bdb3aOpenModelica Hudson[Janitor mode] Fix whitespace
bf1a3ececVitalij RugedifferentiateExpSolve: guard if() and sign()
0f0e06547OpenModelica Hudson[Janitor mode] Fix whitespace
571159ce6Vitalij RugecreateResidualExp: reduce fractions
f4bb4fbcdAdrian Pop- fix typo, hopefully Mac can start simulating models again after r23974
c015ec3bfWilli Braun - activate case from r24039
3927067b0OpenModelica Hudson[Janitor mode] Fix whitespace
8bbe824abWilli Braun - added case to avoid generation of nonlinear systems for record constructor in tuple calls (e.g. (R(r1,r2),x) = f(x)).
95eaaf57bOpenModelica Hudson[Janitor mode] Fix whitespace
3ab706f2fVitalij RugecreateResidualExp: using fraction for simplify residual
43b807bf4Martin SjölundFix elab/simplify/ceval for identity and diagonal
62ab4d132Niklas Worschechmodified setStartValue and getStartValue in cpp runtime
395fbba79OpenModelica Hudson[Janitor mode] Fix whitespace
976ec4327Niklas Worschechmodified pre method in cpp runtime, removed second parameter expected output
26a21f0e6Martin SjölundEnable modelica3d with --enable-modelica3d
4ff428c9eVolker Waurich-extended dump of compInfo
bf32ebd2bAdeel Asghar#2956 - Do not set a default value of origin. Use the origin as transformation origin point only if it is defined in actual modelica code otherwise extract it from extent points. - Only call snapPointToGrid when creating a shape/component otherwise use movePointByGrid.
4a5d82deaMartin SjölundFix Modelica format strings on 64-bit platforms
96d909e00Marcus Walther- result-file is now only written if outputFormat!=EMPTY and outputPointType!=EMPTY
0adcbc0e0OpenModelica Hudson[Janitor mode] Fix whitespace
fb8f8ed60Vitalij Rugefix numerical hessian structure for dyn. optimization without nonlinear constraints
33e60d65dVolker Waurich- extended countOperations for division
f92dbf352OpenModelica Hudson[Janitor mode] Fix whitespace
cae79583fMarcus Walther- added memory-map for cpp-runtime default behaviour and thread-scheduling - LocCo-included (a heuristic value to evaluate memory structure for parallel simulation runs) - c++-classes are now memory-aligned - improvements for hpcom-testsuite - removed metis-debug-output
de2f4d422OpenModelica Hudson[Janitor mode] Fix whitespace
e97f44777Vitalij Rugefixed empty dyn. optimization
15b286cb9Martin Sjölund#3063 - Fix switch of string in cases
df6b717f8OpenModelica Hudson[Janitor mode] Fix whitespace
4e8d6e323Patrick Marcel Taeuber- Added error message if discrete variable cant be solved explicitly in none of the equations - +d=tearingdumpV now also contains the dumps of +d=tearingdump
d079dd07cOpenModelica Hudson[Janitor mode] Fix whitespace
d4946d490Vitalij Rugeadded postOptModules for solving linear system symbolical in BackEnd (based on QR decomposition) Improvements will come!
2b4b277dfMartin SjölundDon't filter out every component in the record constructor
ebbaacf84OpenModelica Hudson[Janitor mode] Fix whitespace
8f08f3eeaMartin Sjölund#2978 Make it an error to add ExternalObject components to records - Update modelica3d
125504b7eLennart Ochel- restore r23957 partially (introduce __DEBUG_TRACE_HANDLE)
484c891feLennart Ochel- move initialization of stateSelection properly
dc6377d81Marcus Walther- try to fix windows and mac OS build
6f1e3d2bdAdrian Pop- ansi C
60a34f0a0OpenModelica Hudson[Janitor mode] Fix whitespace
17683717dWilli Braun - added linear sparse solver umfpack for large linear algebraic loops - activated umfpack for default compilation - revise and adapt all a bit linear solver - added measurment clock for all linear solver - added more linear test cases
af9cf5c6bWilli Braun - fix #3064 by moving the stateSelection after the intialization
2b389a7ebAdrian Pop- fix sending constant strings to external functions - added test for ExternalMedia model: testsuite/simulation/modelica/external_functions/ts.mos
df2693cacOpenModelica Hudson[Janitor mode] Fix whitespace
0b33566fdLennart Ochel- add more TRACE information
a7b270dfcOpenModelica Hudson[Janitor mode] Fix whitespace
3e3e58f6bLennart Ochel- add TRACE information to more generated functions
fc15467c5Martin SjölundFix stack overflow, expected output
8f4ce6be9Willi Braun - fix #3057
a01449dd3Lennart Ochel- revert r23957
b3705ef6cOpenModelica Hudson[Janitor mode] Fix whitespace
f1d019009Lennart Ochel- new flag –lv=LOG_TRACE to control TRACE-dump for debugging purpose
9b0d7a8d7Martin FlehmigTypo
7e49f27e1Marcus Walther- fixed wrong measureTime results for evaluateAll
06fedd017OpenModelica Hudson[Janitor mode] Fix whitespace
1112fba0bPatrick Marcel TaeuberSwitched default tearing method to Cellier Tearing. Following tests have problems with Cellier Tearing and still run with omcTearing: ./simulation/libraries/msl31/Modelica.Electrical.Analog.Examples.CharacteristicThyristors.mos ./simulation/libraries/msl32/Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.mos ./simulation/libraries/msl32/Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.mos ./simulation/modelica/events/bug1228.mos
c43f2cdb6Willi Braun - inner equations of the non-linear solver are updated by the solver
23cb85baaWilli Braun - fix #3060.
1d9d15fefWilli Braun - next attempt to fix the testsuite
3aa1f42c1Willi Braun - fixed bisection by calculating the maximum needed iterations for a given tolerance - 04_HandleEvents.mos needs a finer grid, since otherwise some events are missed.
da4d075e5Lennart Ochel- cleanup
60bb84086Willi Braun - attempt to fix fmu binaries path name, mention in #3057.
bf805554dWilli Braun - belongs also to r23943
524f93112Willi Braun - belongs to r23943
090ba38a1Willi Braun - adding relativ tolerance for bisection event search
903aeec88OpenModelica Hudson[Janitor mode] Fix whitespace
2768e5e5cMarcus Walther- hpcom is now able to handle empty ode-systems correctly -- this should fix the simple resistor test
611f0d23aOpenModelica Hudson[Janitor mode] Fix whitespace
6bbd9ee83Willi Braunfixed variables sorting in FMI 2.0 (see #3057 part 2)
b8923aa45OpenModelica Hudson[Janitor mode] Fix whitespace
c8e68bad0Willi Braunprevent adding a dummy state if no states are present - don't use dassl if no state are present
703b0bfe4Volker Waurich- transfer initial value for replaced common sub expressions
74cb4e644Lennart Ochel- don't overwrite primary parameters while initialization (e.g. #3050)
fa62b150bVitalij Rugeimporved negate for binary
ebaae8568Vitalij Rugeimproved solveSimpleEquations
b79fe717bOpenModelica Hudson[Janitor mode] Fix whitespace
61d1eadbeNils MenagerTime Event fix
87f4492a5Nils MenagerGet new states after time event
e4a96be03OpenModelica Hudson[Janitor mode] Fix whitespace
11366f67cVitalij RugeExpressionSolve: improved handling of modelica functions
744bd1ce0OpenModelica Hudson[Janitor mode] Fix whitespace
b363c8729Vitalij RugepostOptModules: added solveSimpleEquations with manipulations from ExpressionSolve (disable)
e6c0107b6Henning Kielsome code cleanup: match ... else then ... -> match ... else ... case (exp as ...) ...exp... -> case (...) ...inExp...
4da0c1d2bWilli Braun - revert for now r23902, since it break some build
e5f52ba51OpenModelica Hudson[Janitor mode] Fix whitespace
ecb10bcf8Willi Braun - added linear sparse solver umfpack for large linear algebraic loops - activated umfpack for default compilation - added measurment clock for all linear solver - added more linear test cases
611c14d29Willi Braun - fix dist-clean by adding synonym for really-clean
f0bedf733Vitalij RugeExpressionSolve: - solve cos(x) = y
043c82b5cVitalij RugeExpressionSolve: - simplify qe case
afff8b130OpenModelica Hudson[Janitor mode] Fix whitespace
07dc484f5Vitalij Rugemproved DynamicOptimization: use - if-else-construction - for-loop-construction
426142a4dWilli Braun - added min, max and nominal attribute to FMI 2.0
4805bdb13OpenModelica Hudson[Janitor mode] Fix whitespace
af3b5bc4eVitalij Rugeimproved DynamicOptimization: use if-else-construction
025e73216OpenModelica Hudson[Janitor mode] Fix whitespace
55023e526Willi Braun - improvement of r23889.
07cf0aa9bOpenModelica Hudson[Janitor mode] Fix whitespace
f64a9be19Willi Braun - added rule for max of an array expression. - fixed #3048
299db8c4fAdeel Asghar- Don't copy the SourceInfo so that user can save the copied class to new location.
504e79d31Vitalij Rugeadded test case for dyn. optimization
b4221d2b9Vitalij Rugedyn. optization: fixed handling case with dummy state
e8b7995a7Vitalij Rugeclean up ExpressionSolve.mo
e78c2433fOpenModelica Hudson[Janitor mode] Fix whitespace
ad31576efVolker Waurich- restrict cse functionality until next year
c7f12ec14Volker Waurich- dont remove state vars in cse
901d5c56cMarcus Walther- fixed metis clustering
1d32a2241Volker Waurich- fix for cse
7d679c60aAdrian Pop- use +n=1 for Makefile.depends bootstrapping target (it seems to deadlock on Windows)
8d1192a25Lennart Ochel- add reminder to prevent secondary parameters from being overwritten
48d16fcafAdeel Asghar#2746 - FMU type ModelExchange and CoSimulation is not supported yet.
34e3d0bf6OpenModelica Hudson[Janitor mode] Fix whitespace
e7eb8f33cAdeel Asghar- Make FMI 1.0 co-simulation work.
eff1d76b8Volker Waurich- fix for cost estimation
4d03efe82Marcus Walther- GC is now disabled if HPCOM-Flag is set - added BDP-Modell to hpcom testsuite
1daea97fdLennart Ochel- Fix initialization of dependent parameters - Detect cyclically dependent parameters - except for some special cases, e.g. parameter Real p = 2p;
1bc9fc0baOpenModelica Hudson[Janitor mode] Fix whitespace
e88737248Marcus Walther- vector-name of state derivatives can now have a different name than "__zDot" - fixed a issue with memory optimization of hpcom - removed some debug output in BackendDAEOptimize - added scheduler specific GRS for levelfix-scheduler - fixed hpcom code generation for cpp-runtime
6fea97e37OpenModelica Hudson[Janitor mode] Fix whitespace
98b4b7c2cMarcus Walther- reverted evaluateODE-call in evaluateAll (cpp-runtime)
0312dda70Vitalij RugeExpressionSolve: improved handling of sqrt
66503245eVitalij RugeExpressionSolve: added case for quadratic equation - a*x^n - b*x^m
2c02aad5bOpenModelica Hudson[Janitor mode] Fix whitespace
53f7ebe12Vitalij RugeTestExpressionSolve: - improved solve of quadratic equation
aa34db7fbOpenModelica Hudson[Janitor mode] Fix whitespace
2ac470311Willi Braun - fixes for FMI 2.0 - corrected some case of initial, variability and causality - fixed Boolean handling - added test cases for Boolen and Integer
74612094bOpenModelica Hudson[Janitor mode] Fix whitespace
21a005c60Vitalij RugeTestExpressionSolve: - solve some kinds of quadratic equation
8ebe0db36Michael Kloeppelfurther fix for METIS scheduler
057f79d84OpenModelica Hudson[Janitor mode] Fix whitespace
b3bbecf14Volker Waurich- introduce der calls for equation systems too (plts)
60d5b2e4aWilli Braun - fixed fmu import for zero states case
1771a44f8OpenModelica Hudson[Janitor mode] Fix whitespace
e4fbdab56Michael Kloeppelfixes for METIS scheduler and UMFPACK solver
f65b07946Volker Waurich- reintroduce der calls in new residual equations for plts
e20f76b75OpenModelica Hudson[Janitor mode] Fix whitespace
5df5805bcVolker Waurich- assign start values for auxiliary variables
257a7f6c4Volker Waurich- deactivate plts
beb8e9519Volker Waurich- remove debug print
434194655Volker Waurich- activate plts
29749ccbcOpenModelica Hudson[Janitor mode] Fix whitespace
a8fa92845Vitalij Ruge- improved expPow - added case for isNegativeOrZero
398516f08Vitalij RugeTestExpressionSolve: added case for cosh
6749782f6Adrian Pop- use i386-pc-linux instead of linux-i686 as Willi suggested (unfortunately I have no idea what $host is returning inside configure)
391396b77Volker Waurich- equation systems of size 1 are ok when there is a dummy state - removed prints for partlintornsystems
e0fcc8b98Willi Braun - fixed fmi platform for linux32
91a0a0f4cAdrian Pop- the platform string has changed in r23795, attempt to fix the testsuite.
c42cec513Vitalij RugeExpressionSolve: - improved cases for abs, pow(x,n) with Expression.isPositiveOrZero - improved cases for sinh, tanh with tmp vars
7743e1104Volker Waurich- dont apply partlintornsystem for systems including dummy states
f79268868Willi Braun - fix for #2840 - a bit of clean up in the fmi interfaces
58fad24bcWilli Braun - fmi2: use platform strings according to the spec: linux64 and linux32
2984f03e8Per ÖstlundFix for #3028: - Workaround for compiler bug in Static.getOptionalNamedArg.
abde7d1f6Martin SjölundUse host instead of uname to determine platform (since we compile 32-bit files on 64-bit OS)
359cc86c9Vitalij RugeExpressionSimplify.simplify2: - fixed simplifyMulJoinFactorsFind for case "e11-e12 and e12-e11, negative -1.0 factor"
d5e5273b1Willi Braun - fix #3036 by adding an event at terminal()
afb7e55ebMarcus Walther- swapped the __x86_64__ and __i386__ cases in measure time - hopefully this will fix measureTime on x64 machines
847933352OpenModelica Hudson[Janitor mode] Fix whitespace
4cd26e08cVolker Waurichfurther extension for countOperations
cf2b87f52OpenModelica Hudson[Janitor mode] Fix whitespace
0d3bd335aNiklas Worschechremoved saveDiscreteVars in cpp template, activated get and set method for variables only for fmi code generation in cpp template
631b81358OpenModelica Hudson[Janitor mode] Fix whitespace
14a8735bfWilli Braun - fixes and testcase for #3034
2c7c62c8eOpenModelica Hudson[Janitor mode] Fix whitespace
60b2c6811Nils MenagerHandling time events at one time instant at once
df6a4389bOpenModelica Hudson[Janitor mode] Fix whitespace
9a0d8e60fNiklas Worschechsplitted write values in cpp template
cad9e5cf4Vitalij RugeExpressionSolve: improved numeric for makeProduct
c9615a789Adeel Asghar- fixed typo.
f2b07d93bOpenModelica Hudson[Janitor mode] Fix whitespace
d89adcd9fVolker Waurich- get more precise information with countOperations
3cf7b7505OpenModelica Hudson[Janitor mode] Fix whitespace
87cef19b7Marcus Walther- added intel tbb and pugiXML to the CMake-Configuration of the cpp-runtime - fixed the old tbb-code for HPCOM - changed hpcom-default-scheduler to the level-scheduler - extended the testsuite for hpcom with some tests for tbb and levelfix-scheduling - evaluateConditions is calling evaluateAll now in generated C++ Code
01058b1d3OpenModelica Hudson[Janitor mode] Fix whitespace
867c206b6Niklas Worschechfix for one dimensional arrays in cpp template
ec6e2d5dePer Östlund- Updated documentation for simulate/buildModel.
79efe3758Ruediger Kampfmann-fix in SimManager
088f47034Ruediger Kampfmann-fix in SimManager
b2ac5a13bRuediger Kampfmann-fix in SimManager
a4d6717b1OpenModelica Hudson[Janitor mode] Fix whitespace
a9c029a1cMarcus Walther- improved splinlock and busy-waiting barrier of cpp runtime - changed the busy wainting tests to n=2, so that they can be executed on dual core machines
29158def8Niklas Worschechchanged 3d array of cpp runtime to row-major order
560aea7f0OpenModelica Hudson[Janitor mode] Fix whitespace
7ad52f0b7Marcus Walther- prototype for scheduler based graph rewriting rules added to HPCOM - adopted the new cpp file structure to cpp-hpcom - added a filterOnFalse-function to the list module - some new test models are now part of the hpcom cpp testsuite - fixed listr-scheduler of cpp-runtime - fixed mergeSimpleNodes
9fb71ed07Adrian Pop- use GC_malloc_uncollectable for stringVars in initialization.c too
f2367a9e9Adrian Pop- fix testsuite (we fixed using GC_malloc_uncollectable in one place but there were more places)
7db0bbb8bVitalij RugeExpressionSolve: improved solve for if-expression
e4dbe3b13Adrian Pop- return something in SimulationRuntime/c/util/integer_array.c - hopefully fix condition in SimulationRuntime/c/simulation/solver/initialization/initialization.c - try to use proper data types in function interfaces - get rid of some of the warnings - transform to char* where needed
44803eccbAdrian Pop- transform to char* where needed
fa3f55ac8Henning Kiel- added skew() and symmetric() to CodegenC.tpl
e53ed782fHenning Kiel- implement unary minus for integer arrays - fix pow, exp, division for integer array alloc version
46b35a983Henning Kielfix matrix multiplication for integer arrays in SimulationRuntime/c
db2b683b9Henning Kieladded element wise multiplication of integer arrays to SimulationRuntime/c
18aed9c03Henning KielFix type casting in CodegenC.tpl
70c1514eaOpenModelica Hudson[Janitor mode] Fix whitespace
966250816Vitalij RugeExpressionSolve.solve2: fixed $_initialGuess and tmp vars.
9322b32bcNiklas Worschechfix for create array in cpp template
5aa69a5ddHenning Kielfix typo
a23b8a80eHenning Kiel#3026 - Fixed some more integer array operations.
9541f6e29Adeel Asghar#3026 - Fixed the boolean array assignment. DoublePendulum test should work now.
f59b12accOpenModelica Hudson[Janitor mode] Fix whitespace
522a7e427Niklas Worschechreomved start index for writeparams in cpp template
79c021984OpenModelica Hudson[Janitor mode] Fix whitespace
f8c56cfefVitalij Rugeimproved r23722 - handling of sign() by solve e.g. abs(x) or pow(x,2)
0a5b7c358Adeel Asghar#3026 - Fixed the integer array assignment.
2eca0f4edAdeel Asghar- Only check for invalidNumber & nullPointer when NUMBER_OF_STATES > 0.
3917aaf61Adeel Asghar- Fixed FMI import code generation.
a138e6b25OpenModelica Hudson[Janitor mode] Fix whitespace
cf82a1072Vitalij RugeExressionSolve.solve2:
645b24a2aAdeel Asghar- print the error level
aa168dc44Volker Waurich-another fix for cse
b0d170c6bNiklas Worschechfix in cpp template for array indeces
d8841b6bdAdeel Asghar- Avoid `FMU could not converge in event update` error by setting the iterationConverged to true.
ad664f795Volker Waurich- fix for cse
090a0c443Vitalij Ruge#3023 createSingleComplexEqnCode2: update case tupple() = f() - check crefs from lhs inside rhs
14cc257c2OpenModelica Hudson[Janitor mode] Fix whitespace
6617dd133Niklas Worschechseparated array initialization in cpp template
01855e142Adeel Asghar- Fix last commit.
10d936a7bAdeel Asghar- Remove the eol comma separator from csv output.
2e58dbd1dMarcus Walther- fixed pthreads_spin codegeneration for hpcom - improved measure time and busy waiting locks - added cvode-metrics to measuretime
9ba42c799Martin SjölundIgnore errors
f2eae9ee8Martin SjölundAutomatically generate OpenModelicaScriptingAPI.mo
7b223d637Martin SjölundUse the impact package listing in getAvailableLibraries
337c485ecMartin SjölundFix not loading too low package versions
69bbeb162Martin SjölundAdd `loadModel(requireExactVersion=true)`, which does not automatically load MSL 3.2.1 if MSL 3.2 is requested
0128ee596Martin SjölundRemove duplicated function introduced in r23676
0c53cff3cMartin SjölundAlso only install libraries if the user libraries path is on the MODELICAPATH
da5bbac06Martin SjölundDuring `loadModel`, use the `impact` command if the user has impact installed
9e90ddcd2Niklas Worschechfix for wirteParams in cpp template
bba24ff86Adeel Asghar- Better names for flow control variables.
ad72f292fMartin Sjölund#3019 Serialize `NEW_DUMMY_DER`
1cb0dbaebLennart Ochel- Removed some unnecessary local variables
7a1c08777Lennart Ochel- Use of try-else-construction
5cb155271Adeel Asghar- Raise the ModelicaError when any of the fmi* functions fail. - Fixed the assert tests.
8cac80f70Lennart Ochel- adapt statistics dump to make it collapsible in the new simulation output view of OMEdit
bbf01770aAdeel Asghar- fmiSetString should work the same as fmiSetReal/Integer/Boolean.
f9962402cOpenModelica Hudson[Janitor mode] Fix whitespace
6b78d10d0Per Östlund- Optimized some excessively used functions (crefPrefixOf, crefEqual, expEqual) - Small pattern matching optimization, don't match against RECORD() patterns in switch-optimized match-expressions (the switch already does the matching).
e8bcc2cc5Adeel Asghar- Dump the variables in a better way.
f13d08e6fWilli Braun - added statistics section for linears systems - revise linear system
06158644dOpenModelica Hudson[Janitor mode] Fix whitespace
2cfcbd392Marcus Walther- Some more detailed information about level-scheduling added if hpcom dump is set - Removed "simulationMainFile" template function from hpcom-susan file - Improved Profiling of cpp-runtime
f66863f2dAdrian Pop- do not load files in parallel for target Makefile.sources
a0a22f20cOpenModelica Hudson[Janitor mode] Fix whitespace
44d2ee146Adeel Asghar#2130, #2776, #3011 - Call fmiSet* for parameters before initializing the FMU. - Call fmiGet* for dependent parameters after initializing the FMU. - Created a separate section for FMU instantiate and FMU initialize. - Generate a better Modelica code to avoid initialization warnings.
2e8c09e88Lennart Ochel- fix #3014
e09f1fecbLennart Ochel- fix #3009
f09c7f829OpenModelica Hudson[Janitor mode] Fix whitespace
09e7e3ea4Niklas Worschechsplitted writeParams method in cpp template
7062c1643Marcus Walther- added cpp-file splitting to hpcom template
df185a957OpenModelica Hudson[Janitor mode] Fix whitespace
779ad03e7Marcus Walther- profiling of the cpp-runtime can now be enabled with the help of the makefile argument 'RUNTIME_PROFILING="true"'
c2ad1b127OpenModelica Hudson[Janitor mode] Fix whitespace
0dfde5b24Niklas Worschechsplitted initialization and writeoutput files in cpp template
ee2785259OpenModelica Hudson[Janitor mode] Fix whitespace
f28fb27dbVitalij RugeBackendEquation.solveEquation: - passed DAE.FunctionTree - inline function calls
d9c07f232OpenModelica Hudson[Janitor mode] Fix whitespace
e701ae7d4Lennart Ochel- revert r23613, because it breaks initialization of parameters in some cases
344fbe715Per Östlund- Fix tests.
27936a328Marcus Walther- removed some debug output commands from HpcOmMemory.mo - additional time points for measure time added to cpp runtime
e3786a313OpenModelica Hudson[Janitor mode] Fix whitespace
91c5ffb92Martin Sjölund#3012 Add StateSelect to ModelicaBuiltin.mo
f9116f593Marcus Walther- fixed hpcom windows builds
c9096710bOpenModelica Hudson[Janitor mode] Fix whitespace
707489b3cVitalij RugeExpressionSolve: - try to solve modelica functions - inline function calls and hope ExpressionSolve can solve new expression
ccb0e1be3Per Östlund- Fix tests?
434807444Per Östlund- Fix build.
c51018a57OpenModelica Hudson[Janitor mode] Fix whitespace
18e8fd8bePer Östlund- More cleanup of Static.
0b23e35dfOpenModelica Hudson[Janitor mode] Fix whitespace
09ad2d89fMartin FlehmigRemoved redundancy in templates, brief review
ba0ab8465Nils MenagerSmall fix for calculation of sample cycles
78da5d02fOpenModelica Hudson[Janitor mode] Fix whitespace
34fd6de97Niklas Worschechfix for array index operator call in cpp template, separated external vars initialization in cpp template
a46773037Vitalij RugeExpressionSolve: - added more nonlinear cases for sinh,cosh,log10 - change collect-strategy - update test
879ff2493OpenModelica Hudson[Janitor mode] Fix whitespace
d8975aedbMarcus Walther- fixed deleteObject() in hpcom cpp-runtime - disabled memory optimization for level scheduler
7bfa7b63cBernhard Bachmannproper initialization of counter "numberOfIterations"
771a0a80cAdeel Asghar#2550, #2390 - Fully support showStartAttribute in OMEdit.
8470c7d42Lennart Ochel- attempt to fix initialization for parameters that have no binding but a start value
5d17b4dfcOpenModelica Hudson[Janitor mode] Fix whitespace
6e0b98f05Vitalij RugeExpressionSolve: - update expand-strategy - improved cases for pow - added and update tests
0a2fddeeaOpenModelica Hudson[Janitor mode] Fix whitespace
4ff378b89Marcus Walther- memory optimization of hpcom can now handle int and bool variables - cpp-runtime uses hpcom variable positions now as defines
74ce4ad90Henning KielCreate real fake files
2835d11d4OpenModelica Hudson[Janitor mode] Fix whitespace
bfd431f70Vitalij RugeExpressionSimplify: - improved log and exp rules - exp(e*log(x)) -> exp(...*log(x)*...) - log(1/x) -> -log(x) log(sqrt(x)) -> 1/2*log(x)
660d44547Bernhard Bachmannsome fixes from static analysis adapted test case
985aa85d7Bernhard Bachmannadded more debug information on nonlinear systems
ce91d43edMarcus Walther- fixed profiling in cpp runtime on windows machines
da5bfb6f9OpenModelica Hudson[Janitor mode] Fix whitespace
aecd360d8Vitalij RugeExpressionSimplify.simplify: simplify check for Expression.operatorEqual(a,b) or Expression.operatorEqual(c,d)
a344d2eb5OpenModelica Hudson[Janitor mode] Fix whitespace
f1c02f164Volker Waurich- fix partlintornsystem for Asub expressions
8dd40f9e2Vitalij Rugeupdate some cases for createResidualExp2
55eb47ae7OpenModelica Hudson[Janitor mode] Fix whitespace
6ed4967d9Bernhard BachmannUpdate of homotopy solver: - improved assert handling - improved numerical jacobian - introduced mixed solver strategy (homotopy/hybrid) - removed unused code - added better damping strategy - reduced function calls -> performance increase - update test suite
b0d65689aVolker Waurich- fix partlintornsystem for linear systems that have to be solved numerically (contain function calls with x as inputs)
dd80764ffVolker Waurich- fix partlintornsystem if there are scalar array exps that hide inside cref exps
24e4c4822Vitalij Ruge- change sum for residual (order) - activated simplify in moveDivToMul
820a8b6b3Henning KielRemove quotation marks
4e9e185cfAdrian Pop- more proper clean
0fcfe9521Adrian Pop- more proper clean
f1fa2b1e8OpenModelica Hudson[Janitor mode] Fix whitespace
c9754243aJim NutaroUpdates to the sparse FMI generator
cc2791eadPer Östlund- Allow enum variables in metarecords.
a4ea0f82aMartin SjölundMark some more allocation uncollectable
fe436818bVolker Waurich- fix partlintornsystem if states are involved
09a16679cMartin SjölundChange daeExpSconst to use MMC string literals (since we do not optimize away all literals in simulation context)
acacf0316OpenModelica Hudson[Janitor mode] Fix whitespace
d0f2d560fNiklas Worschechfix for 3d array in cpp runtime, added stop method to solver interface,
e03dabef3Adrian PopFix bug #2980 - use GC_malloc_uncollectable to signal that the arrays of strings are roots - added test gc2980.mos
bf1014d34Volker Waurich- extended decomposition of equation systems by Cramer Rule
4bd920581Adrian Pop- partial fix for bug #2980 (the model given in the ticket works but the last model in the comments does not yet) - use malloc_atomic instead of malloc_string as use use modelica_string now - typedef m_string as modelica_string - use *malloc instead of *malloc_atomic in some more places - add test gc.mos
a376f1d12OpenModelica Hudson[Janitor mode] Fix whitespace
ebccc8012Vitalij Ruge- fixed ExressionSolve.solve: remove wrong case for cosh - improved Expression.createResidualExp2: clean up cases, try to simplify more than once
7eed77f4eOpenModelica Hudson[Janitor mode] Fix whitespace
31f0529e9Nils MenagerSmall fix for memory issues in CVode
47134f35eWilli Braun - update help text
b2357afc3OpenModelica Hudson[Janitor mode] Fix whitespace
e14505d6dVitalij Rugeimproved ExpressionSolve.solve: - added more cases like - sqrt(x) - sqrt(f(x)) = 0 - improved case 1/(x) + 1/(x+1) = 0
268f3ca4aAdrian Pop- use GC_malloc instead of GC_malloc_atomic as WE DO HAVE POINTERS in the string arrays - fix typo
b469c4c76Adrian Pop- support 7.2 gc version too (which does not have GC profile stats)
3bf34a0e6Bernhard BachmannAdded new nonlinear solver based on damped Newton algorithm in combination with homotopy strategy. Set as default nonlinear solver for running the coverage tests tonight. Already support of current testsuite, although some details are not implemented completely: - Proper assert handling - Use of Modelica homotopy operator - Improved scaling of homotopy functions - ...
2b833b0fcOpenModelica Hudson[Janitor mode] Fix whitespace
2ab8d71a6Per Östlund- Some cleanup of Interactive.evaluateGraphicalApi.
6d58d6e9eOpenModelica Hudson[Janitor mode] Fix whitespace
48044ef1bMarcus Walther- moved sorting of hpcom sim equations to the HpcOmSimCodeMain-module - fixed memory optimization for fixed level scheduler
3ff7ddcd5OpenModelica Hudson[Janitor mode] Fix whitespace
b77bd7141Vitalij Rugeadded preprocessing for ExpressionSolve.solve: sort and split equation like h(x,y) = g(z) -> h(x) = k(y,z,pre(x),delay(x,const),start(x)) - remove some recursive parts - move some solver rules inside preprocessding - using loop - not need swaps args, because equation is already sorted - support more cases e.g. - tanh, sinh, cosh, if() +- if(), pow(x*y,z)*x = 0, abs(x) = 0, delay(x,const) = x,... - added testcase - remove pow(f(x),y) = z -> sign(pre(x))*pow(z,inv(y)) - rewrite some rules - work with "terms" and "factors" (see Expression.terms, Expression.allTerms, Expression.factors) and not longer with localy expression neighborhood - fixed some rules for der(x) - solve (hope all) linear expression without derivation
1af56e0a5Per ÖstlundFix for #2995: - Added boolean literals to Expression.isValidSubscript and subscriptContants.
9b12f9de2Martin SjölundUse getInstanceName() to query function names automatically (updated automatically as the the functions are moved)
a18cd0c75OpenModelica Hudson[Janitor mode] Fix whitespace
3ff65a98fPer Östlund- Fix java stuff.
a61b47776Henning Kiel- some fixes for successful compilation on rasberry pi (arm) or other slow machines - fix some typos
1adcd213bOpenModelica Hudson[Janitor mode] Fix whitespace
ee4e5e626Nils MenagerAdded time events for oneStepMode
69f1e27b9Lennart Ochel- don't create lists to pass single elements to functions if possible
55353faceVolker Waurich- fix for partlintornsystems(zeros in b vector) - added Sarrus rule
15e59288bVitalij Rugeimproved extraPolate value insinde [min,max] exception old value was not insinde [min,max]
bb7b8441dAdrian Pop- more matchcontinue -> match
36d923a2bAdrian Pop- use match instead of matchontinue (to hopefully get tail recursion in these functions)
91800275bMartin FlehmigIf flag 'useMPI' is active, a MPI evironment is initalized but computation is not MPI parallel .
a8123ef95Per ÖstlundFix for #2995: - Don't try to expand already expanded equations.
e40f9fb1ePer Östlund- Reverted r23504, seems to cause bootstrapping issues for some reason.
9157d5a31OpenModelica Hudson[Janitor mode] Fix whitespace
7ab2b1ca1Per Östlund- Cleaned up Interactive.evaluateGraphicalApi.
93de56d20Martin SjölundDo not add errors if subscriptInt fails
bf2c9f5c1Lennart Ochel- improved names for some auxiliary functions
64f76acbaMartin Sjölund- Add half-implemented API call generateScriptingAPI - Handle variables with dimension false and true in SimCode
70cc730c5Volker Waurich- fixed partlintornsystem for equation systems
7ced61c02OpenModelica Hudson[Janitor mode] Fix whitespace
b1240e539Volker Waurich- apply Cramer Rule to EquationSystems of size 2
a2b340055Adrian Pop- update MSL 3.2.1 to latest: m:r7901 - update tests - some small Windows changes
fcfdb0995Adrian Pop- handle size({}, dim) as zero in Compiler/Template/CodegenC.tpl
cbc63db0cLennart Ochel- Hide warnings about not imported start values for self-generated variables
4ebd2092eVitalij RugecreateResidualExp: added heuristic for a-b=0 or b-a=0
20ffbea2aPer Östlund- Recommit r22962.
366784474Jan SilarFix for CSharp template - removed wrong shift in algebraic int and bool indexes
9eeeee10bOpenModelica Hudson[Janitor mode] Fix whitespace
47269e8fcVitalij Rugeimproved createResidualExp - reduction of sub and mul operations
6552508e5Per Östlund- Removed misleading documentation annotation from listDelete.
23d1cc6b8Per Östlund- Removed deprecated arrayNth too.
d6fbc9763Per Östlund- Keep listNth in simulation runtime until we have a new tar-ball.
c70276b9ePer Östlund- Removed deprecated listNth.
eae25c1d4Henning Kielmodifications for compilation on arm
a128a85fcOpenModelica Hudson[Janitor mode] Fix whitespace
ba50b0075Lennart Ochel- Changed BackendDAEUtil.mapEqSystemAndFold to not create unnecessary tuples - Some random cleanup
33f4b4f29Per ÖstlundFix for #2966: - Improved setComponentModifierValue API functions.
556de0a26Martin SjölundFail if type-checking fails (did not assign to the output)
bb8d00864Lennart Ochel- Use of List.mapFold2 to avoid unnecessary tuples
b0b436918OpenModelica Hudson[Janitor mode] Fix whitespace
1fd9250d9Lennart Ochel- Renamed/revised some more auxiliary fucntions: - traverseExpsOfEquationList (from traverseBackendDAEExpsEqnList) - traverseEquationArray (from traverseBackendDAEEqns) - traverseEquationArrayWithStop (from traverseBackendDAEEqnsWithStop) - traverseEquationArrayWithUpdate (from traverseBackendDAEEqnsWithUpdate)
7b0b3eda0Martin FlehmigAdded debug flag 'useMPI'. This adds MPI init and finalize to main method and MPI compiler wrappers to makefile.
c25aef220Martin FlehmigIndent
f468a6e0eLennart Ochel- Renamed following auxiliary functions: - BackendDAEUtil.traverseArrayNoCopyWithUpdate (from BackendDAEUtil.traverseBackendDAEArrayNoCopyWithUpdate) - BackendDAEUtil.traverseArrayNoCopyWithStop (from BackendDAEUtil.traverseBackendDAEArrayNoCopyWithStop) - BackendDAEUtil.traverseArrayNoCopy (from BackendDAEUtil.traverseBackendDAEArrayNoCopy)
6384b9c37Lennart Ochel- Moved module encapsulateWhenConditions to FindZeroCrossings.mo - Cleaned up some patterns - New auxiliary function List.mapFold2 to avoid unnecessary tuples - Changed +d=dumpEncapsulateWhenConditions to +d=dumpEncapsulateConditions
0e0300b04Martin SjölundFix building of OMEdit without corba configured
6380b3614Marcus Walther- fixed AliasVar-Codegeneration of CPP-Runtime
2aed85361Vitalij Ruge- improved expAdd,expSub, expPow - added test for expAdd, expSub, expPow
2ddef8379OpenModelica Hudson[Janitor mode] Fix whitespace
614660505Martin Sjölund#2987 alternative method of getting the OPENMODELICAHOME from a .dylib file
88e11398aMartin SjölundHandle some invalid uses-annotations, like `annotation(uses(Modelica))`
e446dfd2dVitalij Ruge- update SimplifyTest - added rule a-(-b)/c = a+b/c - small fixes inside simplify
4788bb40cMartin SjölundFix OSX
048cf73e8Vitalij Rugeupdate SimplifyTest
fa23f7babMartin SjölundRun mkbuilddirs for qwt
c099be212Vitalij Ruge-improved simplify -update test
f32c3d394OpenModelica Hudson[Janitor mode] Fix whitespace
0eb242276Patrick Marcel Taeuber- Introduced "TearingSelect" as variable attribute in BackendDAE.VAR
7930e507fVitalij RugeFix simplify: simplify(((e1 op2 e) * e3) op1 ((e4*e5) op2 e))
0c218aec7OpenModelica Hudson[Janitor mode] Fix whitespace
52695a0baVolker Waurich- use Cramer Rule instead of Gaussian for partlintornsystem
7158968e6OpenModelica Hudson[Janitor mode] Fix whitespace
322ad41c4Volker Waurich- fix for bipartite graphDump, only edges between state vars and equations with der(state)
75bbe541dMartin SjölundFix simplify: simplify((-x) / y - x / z) = (-x) * (1.0 / y + 1.0 / z)
72dae91e7Martin Sjölund#2987 Try to fix OSX again
758344521Martin Sjölund#2987 Try to fix OSX issues by forcing rpath to be used for libOpenModelicaCompiler.dylib
535538bb3Lennart Ochel- fixed #2990
4490009e4Volker Waurich- fix cse for Annex60 model
3b5ade5c0Adrian Pop- fix #2989 (build shared compiler on Windows) * on Windows compile the main inside the lib so that all globals are used from the dll (as in Windows the process and the loaded dll DO NOT SHARE the same global data)
2a7043f13Adrian Pop- fix typo
b2434cd25OpenModelica Hudson[Janitor mode] Fix whitespace
7bfda4aa3Willi Braun - fixed #2981
705db3412OpenModelica Hudson[Janitor mode] Fix whitespace
26e387c4cPer ÖstlundFix for #2925: - Don't force ceval of reduction iterators in functions. - Fixed ceval of min/max of arrays.
c8fec8ec2OpenModelica Hudson[Janitor mode] Fix whitespace
051c7d400Willi Braun - added mixedSystem flag for nonlinear systems. Not used, yet.
42f5de67aLennart Ochel- remove obsolete attribute from SimCodeTV.SIMCODE
e56ba910dHenning Kiel#include if compiling rtclock.c for unsupoorted target
70efb94daOpenModelica Hudson[Janitor mode] Fix whitespace
3157ccca7Per Östlund- Some code cleanup.
7f91f596fVolker Waurich- activate CSE
e6993d81eMartin SjölundCompile OMEdit even if omc is configured without CORBA bindings
82f63c655OpenModelica Hudson[Janitor mode] Fix whitespace
be8b17965Volker Waurich- print number of merged tasks for hpcomDump
0b3a478feVolker Waurich- refactored mergeParentNodes
2f52b936bMartin SjölundGenerate the shared object directly in build/lib/omc
205dfffb4Martin SjölundTry allowing undefined symbols at compile time in OSX
02606a060Martin SjölundTry to build a dynamic omc on OSX
68397f7e5Martin Sjölund- Add capability to OMEdit to link directly against omc (gives a good performance increase especially if calling used functions directly without requiring parsing strings) - Add OMCOutput parser to OMEdit, to parse the most common OMC Values.Value outputs (no records yet; only sequences and values); the output is a QVariant - Update getClassInformation to use ModelicaBuiltin.mo - Add a mockup of the OpenModelicaScriptingAPI.mo we should be able to create from ModelicaBuiltin.mo, and OMC_API.{cpp,h} that should be automatically generated Qt/C++ files corresponding to the same API
7d1194ccaOpenModelica Hudson[Janitor mode] Fix whitespace
9afcf3092Volker Waurich- fix build - added Symbolic Gaussian to HpcOmEqSystems.mo
ce01598b8OpenModelica Hudson[Janitor mode] Fix whitespace
25e529273Volker Waurich- refactoring GRS, only mergeSimpleNodes for now
5afb32df8OpenModelica Hudson[Janitor mode] Fix whitespace
3186d69b0Lennart Ochel- Fixed dump of event information (Wrong event information were dumped for c runtime since event information are stored redundant to provide different data structures for different runtime systems.)
204dc3716OpenModelica Hudson[Janitor mode] Fix whitespace
44bc61fd7Willi Braun - #2975 fixed.
ddeeba38aOpenModelica Hudson[Janitor mode] Fix whitespace
cdfd5d09cMarcus Walther- splitted large generated cpp functions into smaller ones
d1dcc1cf7Martin Sjölund#2982 Sort if-expressions correctly in function context
1ff3a639eOpenModelica Hudson[Janitor mode] Fix whitespace
11cfa24e0Volker Waurich- added cse module
abfc842d4Willi Braun - a bit cleanup of the nonlinear solver
1b87e16b1Martin SjölundDisplay the error-message instead of the help-text
4d396dbb7Martin SjölundSimplify handling of result files
98e932b62Henning Kiel- fixed some types
4cc53996bHenning Kiel- improved performance of exp_real_array/exp_integer_array functions
a4bf59867OpenModelica Hudson[Janitor mode] Fix whitespace
c86dccd9dMartin FlehmigAdded function intRandom an interface to C/C++ rand function
5d15ce582Martin FlehmigAdded random scheduler to HPCOM module
96133c32fMartin SjölundUse the better randomness also during matching
d5f884af1Willi Braun - fix build warnings
cfca2acbcOpenModelica Hudson[Janitor mode] Fix whitespace
667f376daMarcus Walther- improved memory layout for fixed level scheduler (HPCOM) - fixed measure time: - cpp-runtime produces correct time values now that are mapped correctly to the task graph
5df37cbd5Martin SjölundFix System.intRand (low bits did not have enough entropy)
29141f0ddMartin SjölundChange the Modelica string to be implemented as a MetaModelica string (boxed) - Note: Some Modelica functions might have become slower if string literals were not put into the _literals file
fae56d99aOpenModelica Hudson[Janitor mode] Fix whitespace
5cce585b7Per Östlund- Fixed some code generation issues for subscripted crefs in tuples. - Code cleanup. - Updated and enabled some MetaModelica tests which had started to work.
6c836e660Martin Sjölund#2976 Add depends to _includes.h files
cf643e7ccAdrian Pop- fix File.write test fputs using EOF, seems to work on both Linux and Windows.
f78ab67a5Adrian Pop- fix File.write (why would you expect fputs to always return 1??!!)
416d9f181Martin SjölundChange to using Model_info.json by default
71b4e0006Martin SjölundOMEdit: handle equations also for Model_info.json files
0245655f9Lennart Ochel- Clean up some more patterns.
0c1daf162Per Östlund- Dump comments in the correct place for for-equations/statements.
126efba13Lennart Ochel- clenup pattern of createOdeSystem2
ecd3174aaLennart Ochel- Generate homotopy information for all systems. Until now, these information were only available for initialization and not for simulation. - Mark each system locally if it contains a homotopy call. Until now, there was only a global marker that indicates if there is a homotopy call at all.
5c27cbe12OpenModelica Hudson[Janitor mode] Fix whitespace
4bfa251e3Marcus Walther- forgot to add barrier file
1495f5309Marcus Walther- HPCOMLevelScheduling: - Tasks are now ordered regarding their executiontime, to handle big tasks first - CPP-Runtime Profiling: - getThreadNumber is now part of the main file, to make it available for profiler initialization - improvements - HPCOM LevelFixedScheduler: - uses a busy waiting barrier now - HPCOM: - fixed openmp deadlock in codegeneration - The array-module has now a reduce function, similar to List.reduce
5e98ba286Mahder Alemseged Gebremedhin+ Put correct types when vectorizing qualified assignments. - this used to send wrong types all the way to code generation.
81fbc2400Lennart Ochel- cleanup of traversingisDiscreteExpFinder
be43a219cLennart Ochel- fix comments
38e87a7e8Martin SjölundRefactor/remove some no-op code
21474792aMartin SjölundTry a different approach to speed up test-suite (parse files at the same time as before; on demand instead of parsing all files at the beginning)
ff215b5acLennart Ochel- typo
736de63b6Martin Sjölund- Fix loadFiles() when parsing only 1 file - Use loadFile instead of loadFiles in GenerateInterface since it always loads exactly 1 file
0611eee04Martin Sjölund- Add missing file in previous commit
3e9d57c2aMartin SjölundEnable parallel loadModel (gives 2~3x speed-up depending on CPU)
efcf9b574Adeel Asghar#2906 - Drop down menus for Enumeration and Boolean types. - Added a new API getBuiltinType.
7dc01b66fOpenModelica Hudson[Janitor mode] Fix whitespace
89f00133cPer ÖstlundFix for #2947: - Optimized usage of BackendDAE.VARIABLES in the backend to improve performance. - Some cleaning up.
da98a1f2aMartin SjölundParse all operations correctly for JSON
8d3347ad8OpenModelica Hudson[Janitor mode] Fix whitespace
68215995bLennart Ochel- changed r23269. relations/zero crossings get only dumped if LOG_EVENTS_V is used
024812dccOpenModelica Hudson[Janitor mode] Fix whitespace
74d0abdc3Lennart Ochel- dump relations/zero crossings after events
0501fdf14OpenModelica Hudson[Janitor mode] Fix whitespace
68693d61aNiklas Worschechfix for assert in cpp template
6aeb90081Martin SjölundAdd check for using reserved identifiers as components
4e9730ef4Martin SjölundRe-add check for duplicate names in enumeration
522c32439Martin SjölundSkip _= in front of arrayUpdate calls
ad5de84ffMartin SjölundRemove some unused calls, removed _ from some that are used
2dd6c8569Willi Braun - fixed #1228, by adding when equation also to other torn equations.
c02de7619Martin SjölundRemoved some calls that should not do anything
027cda71eMartin SjölundCheck performance when not adding replacements already in the hashtable
92b4dd462Martin SjölundSome HashTable implementation changes
7cbb7ad8eMartin SjölundSkip unused get call in VarTransform
8ace60b1eMartin Sjölund#2968 Treat function calls as a variable being used (if it is an unbound function pointer)
3c3d38e86Adeel Asghar- more typo fixes
c080d1632Adeel Asghar- Fixed typos in dassl simulation flags.
26b3ad3baOpenModelica Hudson[Janitor mode] Fix whitespace
40aef38c6Niklas Worschechmoved allocating of algloop vars in initialization
d5e447757Martin SjölundRefactoring `REC(_)=>REC()`
819a2ff17OpenModelica Hudson[Janitor mode] Fix whitespace
98e1440c2Volker Waurich- added flag +graphml to dump a bipartite graph after causalization and a task graph on SCC level. use yEd for visualization
1be83ab28Martin SjölundRefactor some more things away
79faad14dOpenModelica Hudson[Janitor mode] Fix whitespace
a279a4946Adeel Asghar#2190 - Added a new copyClass API. - Added GUI for new copyClass API in OMEdit.
263f1870aMarcus Walther- Peer Solver preliminaries added to CPP-Runtime
6f83bdcdeOpenModelica Hudson[Janitor mode] Fix whitespace
f9fb8f7ecMartin SjölundUpdated the refactoring script, handling `REC(name=_)=>REC()` - Ran the refactoring script
43dbce1dfOpenModelica Hudson[Janitor mode] Fix whitespace
8630439e9Niklas Worschechfix for paramater initialization, fix for allocating A matrix in cpp template
4385e1a40Martin SjölundUse lookupType instead of lookupClass to handle DIM_ENUM/DIM_BOOLEAN
72320b341Martin SjölundUpdate traverseType to not create a tuple in each step
ff43ec6a9Martin SjölundFix logic error in assertion (checking the level condition before it was assigned)
e41145dcdWilli Braun - fixed #2878.
485a7a1d5Lennart Ochel- Some random cleanups.
f8d6c7f44Henning Kiel- remove superfluous strlen() - add short description strings for builtin functions
e0e9c63b9Martin SjölundGuard against some domain errors for trig functions
ab77fa60fOpenModelica Hudson[Janitor mode] Fix whitespace
c4259c1bdWilli Braun- fixed #2867 by fixing the calculation of adjacency rows for ASUB expressions
d9892249cLennart Ochel- fixed compilation
a888b87bdOpenModelica Hudson[Janitor mode] Fix whitespace
3334f8e63Nils Menageradded call of initialization functions for the jacobian in cpp runtime
22beed0e9Volker Waurich- use partlintornsystem only flag controlled
4736f03b9Volker Waurich- extended simplification in partlintornsystem
aca8ab8e4Martin SjölundAdd SerializeModelInfo (JSON) version to the compiler, using +d=modelInfoJSON - JSON is faster to generate and parse than the XML format (roughly 10 seconds saved for running the testsuite) - Not enabled by default since: - OMEdit needs to fully support it - 1 test fails with different results: fmi/ModelExchange/2.0/HelloFMIWorldEvent.mos
989829789OpenModelica Hudson[Janitor mode] Fix whitespace
f3f25f688Volker Waurich- extended partlintornsystem
035e213fcOpenModelica Hudson[Janitor mode] Fix whitespace
cb6c65453Lennart Ochel- Added functionality to dump zero crossings during runtime
2fe6e0853Lennart Ochel- Removed obsolete functions from SimCodeUtil.mo (all these functions were protected and not used anywhere including comments): - filterNonConstant - extractDiscEqs - emptyHashTable - stateindex - createAlgorithmAndEquationAssertsFromAlgsEqnTraverser - bytesToRealMBString - indexSubscriptToExp - isMixedSystem - getCallPath - removeDuplicatePaths - Belonging auxiliary functions were removed as well
71756960bMartin SjölundOnly restrict root user from using the interactive interfaces (sockets/CORBA)
dc16af349Bernhard ThieleCollecting outgoing transitions of a mode/state in MODE data structure
42e772226Per Östlund- sourceInfo returns SourceInfo, not FileInfo.
1d01378a9OpenModelica Hudson[Janitor mode] Fix whitespace
a7e28ab1fBernhard BachmannImproved linear solver "LU with total pivoting" for solvable underdetermined systems
609a3454eLennart Ochel- Modified epsilon of event hysteresis - Remove unnecessary counter from BackendDAE.EVENT_INFO
cc239e281Per Östlund- Some cleaning up.
0ca107670Lennart Ochel- fixed dumped number of zero crossings and updated test cases
f6e576364Lennart Ochel- revert r23183 temporary
7f3ee651dLennart Ochel- fixed dumped number of zero crossings
d8535eba8Lennart Ochel- improve info message by adding current time value
b0599b43aBernhard ThieleAssigning equations to states
38dc646c9Volker Waurich- use list scheduler as default hpcom scheduler
0b2887491OpenModelica Hudson[Janitor mode] Fix whitespace
cdc647607Lennart Ochel- Collect all linear solver names and descriptions to provide automatically generated help text for available linear solver methods - Revised interface to new linear solver "totalpivot" from r23167 - Fix ls/nls description in simulation_options.c - TODO: This should be automatically generated
b8ab11659Volker Waurich- fix for partlintornsystem, debug dump for jacobian
e5f4fe1dcOpenModelica Hudson[Janitor mode] Fix whitespace
4fd863a3cBernhard Bachmannadded new linear solver based on LU decomposision using total pivoting - activated it also as default - updated some tests
ba4e44540Vitalij Rugeimproved output for optDebugeJac
e2436e3a5Martin SjölundWeird work-around for size(arr /* suze [0,2] */, 2) to return 0 at run-time (used by Modelica tables)
2155696d7Martin SjölundMake sourceInfo() testsuite-friendly
aed7ecd9eMartin Sjölundmake clean: remove generated templates
86e0233b3Martin SjölundFix r23156
8cd2a88fcMartin SjölundAdd sourceInfo() to all Error.addInternalError calls
64bbc7de0Martin SjölundRename flag "nodoSCodeDep" to "noscodeDep"
9fcdd6a70Martin SjölundRemove unused flag usedep
225ad80faMartin SjölundTail recursion
8592b2fe0Per Östlund- Got rid of some listArray/arrayList calls.
bb15576c6Vitalij Ruge-support min and max values by extraPolate -imporevd output for nonlinear solver
5a4ae1254OpenModelica Hudson[Janitor mode] Fix whitespace
51f68989ePer Östlund- Fix Array.map.
458751587Willi Braun - added flag for SKF TLM Master Solver Interface.
1505656a4Martin SjölundSome refactoring to use assignment to fields
148e7c737OpenModelica Hudson[Janitor mode] Fix whitespace
9002e08f7Per Östlund- Removed Array.append (since we have arrayAppend now). - Optimized some Array functions. - Some random cleanups.
d51b7bf84Martin SjölundDo not dump bindings to outputs in the interface functions
2569667d1Martin SjölundFix indexes of some metarecord literals (Susan does not warn you shadow the variable index with a new index)
8bd5d5b17Volker Waurich- rewritten partlintornsystem module
4066c642dVitalij Rugeimproved output for optDebugeJac
8e374aa39Martin SjölundPrint SourceInfo to MM definitions
e64cd0c31Martin SjölundAbsyn no longer needs to be its own dependency class (Util no longer imports Absyn)
fc59b4b37Martin SjölundSusan no longer depends on Absyn
b6f399e87Martin SjölundBig changes. You will need to bootstrap omc from scratch. - Added function `sourceInfo()`, which returns the file and positions of the call in the source code (useful to produce error-messages that point inside the compiler itself). - Changed all Absyn.Info to the built-in SourceInfo uniontype - Added SourceInfo to GlobalScript.IEXP (previously only statements had SourceInfo) - Changed System.readLine to fail if the file does not exist. The scripting function returns an empty string on failure.
6f72cec47OpenModelica Hudson[Janitor mode] Fix whitespace
073404243Martin SjölundSusan: Handle builtin uniontypes
72145782cVitalij Ruge- improved optDebugeJac compare analytical and numerical jacobian
5db24959bAdrian Pop- fix bug #2882 (careful with the evaluation of expressions having DAE.T_CODE type)
7ce663d03Adrian Pop- fix bug #2943 (the error was introduced in r23049) - added test: testsuite/openmodelica/interactive-API/Bug2943.mos
08ba06d65Martin SjölundFix code generation for assignment to metarecord fields
cee22a2a0OpenModelica Hudson[Janitor mode] Fix whitespace
8e56d0c3aHenning KielRecommit change from r23112 with appropriate fixes
cb6049377Niklas Worschechfix for dae exp reductions in cpp template, fix for memory leaks in cpp runtime
68dad5b2dPer Östlund- Reverted part of 23112 that broke the build.
cc1a03d04OpenModelica Hudson[Janitor mode] Fix whitespace
7a27ec3e2Per Östlund- Some optimizations in BackendDAEUtil.
820667c8bHenning KielFix some uninitialized values.
4e79073f3Martin SjölundRemove pointless call
29e81496dAdrian Pop- make distclean for gc on top clean
405cae2b1Adrian Pop- disable parallel mark for GC in Windows as it crashes dll loading - override CFLAGS in some places so the CFLAGS given at command line get propagated correctly - remove MMC_INIT from in_function generated for dll loading
b3d2e0e17Per Östlund- Removed arrayAdd, it's unused and very inefficient, and arrayAppend can do the same thing.
31303c737Per Östlund- Implemented builtin MetaModelica operators arrayAppend and MetaModelica.Dangerous.arrayCreateNoInit.
3747ceda2Martin Sjölund- Add new package Util/GC.mo. Moved functions from System into GC - Added new flag --debug=gcProfiling, which uses a new call to gc_prof_stats - Added GC_expand_hp to ModelicaBuiltin.mo; used it for the library tests - Disable munmap in the gc configure
03d7d9d6dLennart Ochel- moved BackendDAEUtil.analyzeJacobian to package SymbolicJacobian
dee4d7ceeMartin SjölundAlways dump builtin external declarations since it affects the interface
fa7bbfa91Martin SjölundMissing changes in CevalScript
53d85a2dfMartin SjölundStrip external sections and class comments for the interface files
385bedda2Willi Braun - fixed #2754.
6d0c42fdaWilli Braun - fixed nominal, min and max attributes for linear systems
4fd5ed201OpenModelica Hudson[Janitor mode] Fix whitespace
d47024867Willi Braunfixed #2868 and #2754 partially - by using the in BackendEquation.equationToResidualForm and SimCodeUtil the same function createResidualExp
c61d21022Adrian Pop- GC_expand_hp 150M for Windows, 300M for others
bc5386265Adrian Pop- merge cases based on output from rml -Eunify (https://dev.openmodelica.org/~adrpo/rml-unifications-original.txt) - increase size given to GC_expand_hp to 300M to get a bit more speedup
f6cf01353Vitalij Rugefixed optDebugeJac
a1d8cbe9aMarcus Walther- fixed analyzation_mode
e8cc177c9Vitalij Rugefixed optDebugeJac
eb682eb2eLennart Ochel- removed functions: - BackendDAEUtil.addAliasVariables - BackendDAEUtil.calculateSizes (and auxiliary functions) - moved functions to package SymbolicJacobian: - BackendDAEUtil.addBackendDAESharedJacobian - BackendDAEUtil.addBackendDAESharedJacobians - BackendDAEUtil.addBackendDAESharedJacobianSparsePattern - removed unnecessary match/matchcontinue statements - marked functions as protected if possible
757776589Lennart Ochel- removed obsolete functions: - traverseequationToResidualForm - calculateJacobianEnhanced - varsInEqnEnhanced - varsInEqnEnhanced1 - moved functions: - BackendDAEUtil.calculateJacobian -> SymbolicJacobian.calculateJacobian (and depending ones) - BackendDAEUtil.traverseEquationToScalarResidualForm -> SymbolicJacobian.traverseEquationToScalarResidualForm - marked functions as protected if possible - some more clean-up
43229ae41OpenModelica Hudson[Janitor mode] Fix whitespace
72429c5f4Ruediger Kampfmann-added some functions required for vxworks
19e6ea136Marcus Walther- fixed cpp runtime build
b7bd3c8a5Marcus Walther- moved Solver header files into the include folder to fix windows build
6f85d2ed2Vitalij Rugefixed 23080
b3b1e196aVitalij Rugefixed output
d1eb10784Vitalij Rugefixed output format
67f59119eMartin SjölundRemove RML references from the readme
bd6aa738cVitalij Rugeimproved debuging of the jacobian matrix in dyn. optimization
a4b691fd8Per ÖstlundFix for #2935: - Rewrote flag parsing: * Now handles both - and -- flags correctly. * -- now stops processing flags like most Linux commands, so e.g. omc -- -somefile works. - Changed + to - and -- in the help text to be more unixy (+ flags still work as usual) and removed text about runtime flags.
47ea0a53fMartin SjölundEnable Figaro
4b598ffa7Martin SjölundTweak arrayCreate (inline)
10b89b93fLennart Ochel- Enabled some error messages by default: don't hide error messages of failing functions as long as the function is not supposed to fail in certain cases - Fixed zcEqual and getMinZeroCrossings to also handle sample-calls - Cleaned up more patterns
faf7e0136OpenModelica Hudson[Janitor mode] Fix whitespace
f3bb4db31Martin SjölundClean CevalScript.compileModel
8666ba5deNils MenagerAdaptions for VxWorks and Bodas in Kinsol and AlgLoopSolverFactory and cleanup of files in cpp runtime
d8a615c84Lennart Ochel- Cleaned up more patterns
e4f7af7f6OpenModelica Hudson[Janitor mode] Fix whitespace
b1a2bc297Marcus Walther- improved scorep-support for c++ runtime profiling - fixed analyzation mode -> precompiled headers are used now - profiling sections can now be turned on and off in measure_time.hpp
174f34e65Vitalij Rugeadded option for debuging derivations
31624e1c0Adrian Pop- merge cases based on output from rml -Eunify (https://dev.openmodelica.org/~adrpo/rml-unifications-original.txt) - set G_SLICE to always-malloc - GC_expand_hp only 150M (1G is too much, maybe we should do it when we have plenty of memory)
c5e95d232Adrian Pop- merge cases based on output from rml -Eunify (https://dev.openmodelica.org/~adrpo/rml-unifications-original.txt) - time the bootstrapped compilation in Makefile.omdev.mingw
35ca2e96bMartin SjölundCall `GC_expand` in main to make the test suite 100% (hopefully)
201c5cd3fVitalij Rugefix indentation
ae867502cBernhard ThieleModelica state machines data structure extension
ddb11c91aOpenModelica Hudson[Janitor mode] Fix whitespace
2a8f86017Julian Opheyfix in cpp template for external functions
e567c70a4OpenModelica Hudson[Janitor mode] Fix whitespace
d6355a441Martin SjölundRemoved the old MetaModelica operators from the parser (+& ==& +. ==., etc)
38435b196Per Östlund- Some case merging and various improvements.
36d0f700eLennart Ochel- fix r23046
d50f4dbf6Willi Braun - fix printMatrix
7d7218be0Lennart Ochel- clean-up some patterns
9ae856bc0Lennart Ochel- Removed unnecessary cases - Merged cases if possible - Some more clean-up
9b94e295ePer Östlund- Improved Util.stringWrap.
a174a5927Martin SjölundStart removal of Debug.mo: Removed bcall* fcall* bprint* fprint*, etc
33fc8e5daBernhard ThieleRestricting special inner outer rules for variables in state machines to output variables
182def48bWilli Braun - fixed nominal, min and max attributes for linear systems
eb68f0c54Martin SjölundAdd System.dladdr for easier debugging of things that should not go wrong - dladdr returns the C name of a symbol in the file (typically a function pointer)
56fd672a0Per Östlund- Readd listReverseInPlace in List, doesn't seem to be the issue.
aa4758e35Per Östlund- Remove all listReverseInPlace to see if they are causing issues with FourBitBinaryAdder.
648f3bbeaPer Östlund- Removed some potentially unsafe listReverseInPlace.
d36312fafLennart Ochel- Merged functions collectZCAlgs and collectZCAlgsFor - Removed unused function arguments - Some more clean-up
64513156cLennart Ochel- fix documentation of one more function
7f15d5e97OpenModelica Hudson[Janitor mode] Fix whitespace
e4dba6c72Lennart Ochel- revise new 'math library' from r23023 - fix some wrong pointers - fix documentation
03e6c640eAdrian Pop- merge cases based on output from rml -Eunify (https://dev.openmodelica.org/~adrpo/rml-unifications-original.txt) - fixed e^-N where N is integer constant - fixed some other bad cases in Expression.mo and ExpressionSimplify.mo
808acc6d9Willi Braun - some preparation for linear solver improvments
3b464114eWilli Braun - more fixes for omc_math library
e95e40936Adrian Pop- fix Windows build
082b08a32OpenModelica Hudson[Janitor mode] Fix whitespace
e66ac81deWilli Braun - update lapack solver to use omc_math
d5fa00c67Willi Braun - added own small math library for vectors and matrix
52b690ec7Adrian Pop- update boehm gc to latest from github (via OpenModelicaExternal 3rdParty/gc) - rename 3rdParty/gc-7.2 to 3rdParty/gc
324e1bdb2OpenModelica Hudson[Janitor mode] Fix whitespace
0aca84eeaLennart Ochel- remove unnecessary lists
ed2525c98Lennart Ochel- fix Util.if_
4453b9091Bernhard ThieleReverted back to r23007 since last commit of file was unintentional
0b8a191f9OpenModelica Hudson[Janitor mode] Fix whitespace
4c603f1fcBernhard ThieleModelica State Machines module (not ready, yet). Module is not yet activated (entry commented out in Flags.mo).
e09fc1ac6Lennart Ochel- use BackendDAEUtil.mapEqSystem instead of BackendDAEUtil.mapEqSystemAndFold
676db7eeaLennart Ochel- don't search in shared object for zero crossings
8f96a65e1Lennart Ochel- don't search in initial equations for zero crossings
7a0948780OpenModelica Hudson[Janitor mode] Fix whitespace
891509c9fPer Östlund- List optimizations by using dangerous listReverseInPlace.
d0a8032feMartin SjölundReplace `Util.if_` with if-expressions
a7bb0f209OpenModelica Hudson[Janitor mode] Fix whitespace
f2f0c0c51Vitalij Ruge-imporved error msg for dyn. optimization -some fixes from static analysis
090e12d22Lennart Ochel- use zc::lst instead of listAppend({zc}, lst)
258654df9Nils MenagerAdaptions in Kinsol (Cpp Runtime) for VxWorks and Bodas
925a4248aMartin Sjölund- Add FileInfo to the top-level scope and fix the builtin environment to build the data structures needed to use this - Handle import MetaModelica in the dependency analysis
967779ca2OpenModelica Hudson[Janitor mode] Fix whitespace
9bc199fc9Niklas Worschechfix for get start value in cpp template
0ac8b0b6cLennart Ochel- Split up package BackendDAEOptimize (moved some stuff to new package SymbolicJacobian and other packages) - Marked functions as protected if they should be - Removed redundant/obsolete code - Removed symbolic matrix G that was used to improve old initialization approach, since it is deactivated for a long time and isn't working anymore anyway
c8ddc965fOpenModelica Hudson[Janitor mode] Fix whitespace
ca4471bf7Marcus Walther- added defines for measure time, to support scoreP - scoreP support to c++ profiling added
045378016Martin SjölundIncrease time limits for library testing
fe7c64eeaMarcus Walther- fix for hpcom analyzation mode
2ce864d35Volker Waurich- replace numArrayDim with ExpressionDump.dimensionIntString only in the simCodeVar and not in the backendVar - some dumpSimCode extension for constant and parameter vars
70ab734f1Martin SjölundReplace matchcontinue without accumulator with a reverse for-loop
fdf9cbab1OpenModelica Hudson[Janitor mode] Fix whitespace
17f361c58Willi Braun#2481 - added flags for better control of integration methods - flag for initial step size of dassl - flag for choosing jacobian of dassl - flag for no equidistant time grid -noEquidistantTimeGrid - flag to avoid restart dassl after an event - removed some of the old solver methods
66da7d0feMartin Sjölund#2932 Do not make protected functions static
f1208de2eOpenModelica Hudson[Janitor mode] Fix whitespace
6b7fbc97cNils MenagerCleanup of Cpp Runtime files
53333de85Lennart Ochel- some cleanup, removed unnecessary matchcontinue statements, ...
5b0863d86Volker Waurich- use the size instead of the Absyn.path in ExpressionDump.dimensionString()
f837a7bc9OpenModelica Hudson[Janitor mode] Fix whitespace
451184872Per Östlund- Fixed logic in Main.main2.
efdaa466dNiklas Worschechdeactivated function parameter generation in cpp template
1312a9bf0Martin SjölundUpdate tarball for partial function evaluation - Removed List.fold5 and List.fold6 (called directly using `List.fold(..., function f(x1=y1,x2=y2)`
3d5bf5be5Martin SjölundHandle metaarray when generating code
4037b0a74Lennart Ochel- Make more functions work with one-based indices: - List.replaceAt - List.positionOnTrue - List.positionList - Use listGet instead of listNth in some places - Add tests for List.List.replaceAt and List.replaceAtIndexFirst
de29fb103OpenModelica Hudson[Janitor mode] Fix whitespace
dff9b2540Per Östlund- Case merging.
20ca1f20aLennart Ochel- Unraveling some indices by making List.position work with one-based index.
d88ae5f86Martin SjölundRemove bootstrapping version text since RML is no longer in use
253cb4780Martin SjölundRemove RML references from configure
708c137ebMartin SjölundDo not expand-expand-...-expand crefs hoping this will change the results
4daf4d1e4Adrian Pop- merge cases based on output from rml -Eunify (https://dev.openmodelica.org/~adrpo/rml-unifications-original.txt)
8da37a600Martin Sjölundcppruntime uses cminpack
1a6526077Per Östlund- Fix previous fix.
41a675363OpenModelica Hudson[Janitor mode] Fix whitespace
d08bfbc47Per Östlund- Another try to fix build, avoid function partial evaluation.
fa69a34e5Per Östlund- Try to fix build, function partial evaluation seems a bit buggy.
194a5d1d6OpenModelica Hudson[Janitor mode] Fix whitespace
d8ea3a027Per Östlund- Rewrote List package to take advantage of bootstrapped features. - Refactored Util, moved some functions to new Array package, some to List. - Better handling of conditional components. - Various optimizations to handle larger models.
bd3faed4eMartin SjölundKeep System_isRML until we make a new tarball
9a56a9c69Martin SjölundRemove some RML stuff
76df8c9b2Lennart Ochel- Removed function List.delete, since it was just an rml workaround - Changed listDelete to work with one-based index (mm:#1623)
6690dc707Martin SjölundRemove generated susan files (should not be needed since we always have omc available)
24cec0328Martin SjölundRemove the NONE check from the parser; we no longer need special checks for RML stuff
7c246abb3Adrian Pop- no more rml_compatibility.h
f6a9a76c1Adrian Pop- more cleanup - use CFLAGS=-g -O2 -falign-functions on Windows
f1fee065aAdrian Pop- mk_* -> mmc_mk_*
102e4dacfAdrian Pop- more proper RML cleanup
a84edccfePer Östlund- Removed strict RML checks.
7268e5ccdAdrian Pop- more rml cleanup
9fd0b8990Adrian Pop- Compiler/omc_release is no more, nothing to clean
242e84445Martin SjölundDon't generate omc_release
6fbeedd30Martin SjölundRemove RML version of BlockCallRewrite.mo
8560c0e0bMartin SjölundRemove some RML stuff
386c20d2bAdrian Pop- build the omc-bootstrapped by default on Linux also
6bc74cdfbAdrian Pop- switch version to 1.9.2+dev
0a5b77a94Adrian Pop- update version to 1.9.1 release
0f60125e5OpenModelica Hudson[Janitor mode] Fix whitespace
2b5888f2aLennart Ochel- removed obsolete/unused code from package Differentiate - function getFunctionResultTypes - function differentiateExpCrefFunction - function differentiateExpCref - function differentiateFunctionPartial - function differentiatePartialFunctionwrt - function addElementVars2AllVars - function addElementVars2InDep - function addIndependentVars
3c69a09d7Lennart Ochel- marked some functions as protected - removed a few unused variables
c33345292OpenModelica Hudson[Janitor mode] Fix whitespace
2ab8ae445Ruediger Kampfmann-adapted cpp runtime files for vxworks
51a231834Adrian Pop- fix bootstrapping - fix UTF-8 encoding
42b5aebceOpenModelica Hudson[Janitor mode] Fix whitespace
c6c97bc07OpenModelica Hudson[Janitor mode] Set auto-props
e518546f1Ruediger Kampfmann-adapted cpp runtime includes for vxworks
fb4672a59Ruediger Kampfmann-added for vxworks
79dd4ff82OpenModelica Hudson[Janitor mode] Fix whitespace
5766264bcWilli Braun - added tranformModelFMU to scripting commands
f107cb633Per Östlund- Optimized the adding of connect equations to the DAE.
09bcd6563OpenModelica Hudson[Janitor mode] Set auto-props
729f0309fMartin SjölundUTF-8 fixes
01de4cf28Lennart Ochel- Update unit check module - Use of hash tables instead of lists - Minor fixes (e.g. messages)
a0315728aOpenModelica Hudson[Janitor mode] Fix whitespace
6178f9c77Nils MenagerAdditional changes in include files for Bodas and VxWorks in Cpp Core
e2824ca6eOpenModelica Hudson[Janitor mode] Fix whitespace
58510d575OpenModelica Hudson[Janitor mode] Set auto-props
cdd125a0bNils MenagerIntegration of Bodas and VxWorks functions into Cpp Simcore
64604bb5fAdeel Asghar#2480 - Added IntegrationAlgorithms.pdf to build/share/doc/omc/SimulationRuntime/IntegrationAlgorithms/. - Added references of Appendix C in sections 2.5.1 and 14.1.5 in users guide.
9934577faRuediger Kampfmann-added include for vxworks
2a9396c39Lennart Ochel- remove redundant functions
5d7c17cafOpenModelica Hudson[Janitor mode] Fix whitespace
40bcdea6eNils MenagerExtension for VxWorks and Bodas
222c7c105Lennart Ochel- add missing optmodules description
d78f14e7bLennart Ochel- fix indentation
01f4145eeOpenModelica Hudson[Janitor mode] Fix whitespace
1a6edc450Ruediger Kampfmann-added stepStarted method
474d83cb9Niklas Worschechfix in SimCodeUtil, correct number of outputs
0165625c1OpenModelica Hudson[Janitor mode] Fix whitespace
c7ac9f5ceNiklas Worschechadded library path to Simcode, used for external functions in shared libraries
eca612a81Martin Sjölund- Load dependent libraries when using the command-line (`omc a.mo Modelica` now loads ModelicaServices) - Allow calling the compiler without running any files (`omc +i=Modelica.Blocks.Examples.Filter`) - Print a parser error message if we fail to load a library from command-line (also if this is the "main" file)
213280cccMartin SjölundFix bootstrapping without updating tarball
c80fed2bbMartin Sjölund- Add loadFile(uses=false) to not use the uses-annotation to load additional libraries - Automatically call loadModel() if the model is missing when running the front-end
f612a2940Martin SjölundAllow failing to load a model from uses-annotation. Append the regular MODELICAPATH when searching for packages in uses-annotations
1fedf0520Martin SjölundMake loadFile("Modelica/package.mo") also consider the uses-annotation and load those packages (just like loadModel does, but with a different MODELICAPATH)
2406f9531OpenModelica Hudson[Janitor mode] Fix whitespace
1ee2d8543Julian Opheyfix in cpp template for external objects
1144193ffPer Östlund- Make continue work in cases also.
1dd6aa6b3Adrian Pop- fix bug: #2917 - handle protected sections better
231155d31Willi Braun - fix events in fmi 2.0 - added more tests for fmi 2.0
e4bb7632cOpenModelica Hudson[Janitor mode] Fix whitespace
848214c75Willi Braun - fixes for FMI 2.0 import and export - reorganize testsuite for fmi
51d7e25e2Martin SjölundAdd missing imports
3356e5d3fMartin SjölundCreate package Util/ClockIndexes (used to be part of Script/GlobalScript) in order to decouple susan from the front-end modules
48413dce9Per Östlund- More RML fixes (RML seems to be making errors up now).
8c7c8d2c9Martin SjölundRML fix
e53218167Martin SjölundAdd package BackendInline (the backend parts of Inline are moved there) - Marked more packages as using Interface="backend". Now only BackendInterface.mo has Interface="backendInterface"
dac27359ePer Östlund- RML fix.
1ad1ef980Per Östlund- More RML fixes.
6a7a33716Martin SjölundIndentation
41a7c0bffPer Östlund- Fix RML compilation.
d4a5709dcOpenModelica Hudson[Janitor mode] Fix whitespace
7e6f28e2cOpenModelica Hudson[Janitor mode] Fix whitespace
a88f41d7ePer Östlund- Added a backend interface package so that frontend modules doesn't use backend modules directly. - Moved some code around to further separate the frontend from the backend.
8c63eb91fJulian Ophey-fix in cpp-template for external objects/external functions
6551d11dfMartin SjölundFix compiler sources for r22831
f99931e41Martin Sjölund- Added support for a new annotation `__OpenModelica_Interface`, and the corresponding scripting function `checkInterfaceOfPackages` - Using this function and annotating every source package, it is possible to restrict and document which packages are part of the front-end and which are back-end modules - The interface types are given in the call to `checkInterfaceOfPackages` - Currently, too many packages have the backendInterface type (allowing front-end modules to call it even though it is a back-end module. Only one package should be a backendInterface once we refactor) - Improved Susan to be able to insert a custom class annotation at the end of the class (so we automatically add the required `__OpenModelica_Interface` packages) - Note that this requires installing an updated omc in order to compile susan files. (or run touch Compiler/Template/*.mo to skip trying to compile these, then touch the tpl files once you have an updated susan compiler) - Improved SCodeDumpTpl to include non-blacklisted class annotations without +showAnnotations - Removed the non-standard built-in function differentiate (re-add it as a scripting function if needed, or using bootstrapping tests to test differentiation)
fe5bb5a89Niklas Worschechfix for bat file in cpp template
42a9ba8f1Adrian Pop- fix bug: #2916 - ignore Connections.root and Connections.potentialRoot and Connections.branch getting crefs being arrays of zero size - return false from Connections.isRoot, rooted wich get crefs being arrays of zero size - do not consider potential variables having equality constraint as counting in connector balance (return 0 for T_SUBTYPE_BASIC with equality constraint) - do not simplify T_SUBTYPE_BASIC types with equality constraint - handle T_SUBTYPE_BASIC in CodegenC.tpl - proper error message in BackendDAEUtil.mo instead of print
6a0e3c39aPer Östlund- Updated swedish translation of OMC.
6528e5f99Willi Braun - #2911 fixed. replace also comma in a generated variable
012006740Willi Braun - fix some typos in fmi
1975f0e79Niklas Worschechfix for assign array in cpp template
408678069Adrian Pop- fix bug #2899 - partial fix for bug #2484 (still needs some work on dae declaring complex components, i.e. connectors inside expandable connector)
9ee276449Adrian Pop- fix bug #2877 - add "_total" to the dummy class that we build extending the class we want - actually unparse the modfiers on model extends X(mods) when dumping the SCode (ignored before) - always show the string comments, show annotations only if +showAnnotations is given
96b97c795Adrian Pop- fix FMI crashes?
ee0b6b9b8Adrian Pop- don't go searching where you shouldn't
ccaa86a14Henning KielFree allocated memory again.
3806e270dAdrian Pop- attempt to fix SimulationRuntime/cpp compilation on Win MSVC, target runtimeCPPmsvcinstall
019ae0028Willi Braun#2840 - added assertion handling to fmi1 and fmi2 export
9894e2c81Martin Sjölund#2898 ComplianceSuite should no longer need to delete classes
4a763fb24Per ÖstlundFix for #2898: - Made the compiler less sensitive to errors in unused models.
5568f743eMartin Sjölund#2889 Fix for r22769 accidentally reverting r22763
a327ab48fMartin Sjölund#2897 Implement continue statements in MetaModelica
b33cd4c69OpenModelica Hudson[Janitor mode] Fix whitespace
bbab77eb4Vitalij Rugeimproved r22777
f9f64b54eOpenModelica Hudson[Janitor mode] Fix whitespace
9c278624dVitalij Rugeadded some rules for simplification of residuals e.g. sqrt(f(x)) = 0 -> f(x) = 0, exp(x) - exp(y) = 0 -> x-y = 0
3bca16ee7Willi Braun - fix FMU makefile, to be able build a fmu just with the source directory.
447047ce3OpenModelica Hudson[Janitor mode] Fix whitespace
e963b0287Willi Braun#2888 - fix for #2888
9fedfd520OpenModelica Hudson[Janitor mode] Fix whitespace
c1aaa75dcMarcus Walther- moved SimCode.SimVar to SimCodeVar.SimVar to prevent circular dependencies in HPCOM - added SimVar object to dependency tasks in HPCOM - some updates for the measure time functionality of the cpp runtime - added measureTime to CVode - changed default hpcom-scheduler to levelfix and codegen to pthreads
7cdd71f3bMartin Sjölund#2897 Replace continue with cont (preparation for continue becoming a keyword)
ada0fdc17Lennart Ochel- revert r22764 (and r22765), since it breaks the bootstrapped stuff
6a2360f76Martin Sjölund#2896 Fix simplify asub when `array` types are involved
f118ef0bcLennart Ochel- Update unit check module - Use of Hash Tables instead of lists - Minor fixes (e.g. messages)
6eb97b4adMartin Sjölund#2889 Save default binding of SimCode.FUNCTION_PTR
3d22103a4Martin Sjölund#2890 Sort record declarations before generating code
71acece90Martin Sjölund#2885 Allow function partial application to be used as general expressions (MetaModelica only)
25fb0533eMartin SjölundFix parser for gcc
52ad96845Martin SjölundImplement #2886 and #2887 - Added try/else statements to MetaModelica (syntactic sugar for matchcontinue) - Added support for algorithm sections in match-expressions (equations are still possible to use)
bc9f9ad92OpenModelica Hudson[Janitor mode] Fix whitespace
4a29dfab7Mahder Alemseged Gebremedhin+ clustering support for the dynamic scheduler. Have been sitting on it for a while. + Some more minor fixes and timing informations.
5be18078eOpenModelica Hudson[Janitor mode] Fix whitespace
34f2e23bdMahder Alemseged Gebremedhin- Update task system dumping and reading of linear and non-linear systems.
c8f36f737Vitalij Rugesome fixes from static analysis
67ae81948OpenModelica Hudson[Janitor mode] Fix whitespace
188e8a413Niklas Worschechfix for const vars in cpp template
67f933519OpenModelica Hudson[Janitor mode] Fix whitespace
997af4edfNiklas Worschechadded string array to cpp runtime
f1c754b46Vitalij Rugeimproved solver rule for pow(f(x),y) = g(z) => f(x) = h(pre(x))*pow(g(z),1/y)
c03053603Vitalij Rugeadded rule for abs(-x) = abs(x) and pow(-x,2) = pow(x,2)
bd55949f6OpenModelica Hudson[Janitor mode] Fix whitespace
8391b5fc6Vitalij Rugesplit some function inside dyn. optimization
8caa26078Vitalij Rugefixed assert handling in dyn. optimization, thanks Willi
2402f4c8bPer Östlund- Made clang happier.
e29ce8cccMartin SjölundAdd tail recursion for NORETCALL in match-expressions
8f7a98399Niklas Worschechfix for fill array in cpp template
4d06274f8Lennart Ochel- separate Simcode from BackEnd
775458840Adeel Asghar- Fixed wrong documentation example.
4475b4c74Martin SjölundHandle connections of subtype of basic (Real)
fe688a6e2Per Östlund- Reverted part of r22716, fix wasn't good enough.
a4c55be82OpenModelica Hudson[Janitor mode] Fix whitespace
09965cd75Per ÖstlundFix for #2881: - Skip analysing recursive modifiers in NFSCodeDependency. - Fixed order of conditional expression and constraining class in SCodeDumpTpl. - Allow redeclare of non-replaceable components if the type isn't changed.
273e2e5bfMartin SjölundHandle arrays of mixed Integer and subtype of basic type (Real)
914b9fba6Martin SjölundFix simplify `{a,b,c}*0.0`→`{0.0,0.0,0.0}` instead of `0.0`
20601e0ecMartin SjölundUse --version for for checkSettings since -v is verbose in clang
63834ee94Martin SjölundSimplify `vector()` expressions
4723729ffPer ÖstlundFix for #2879: - Better implementation of r22703. - Also handles multiline strings in comments.
bf0ffe219Per ÖstlundFix for #2879: - Fixed Absyn, SCode and DAE dumping of multiline comments.
a5b51b637Martin Sjölund#2873 Implemented for-loop for MM arrays
df3fc54f0Martin Sjölund#2318 Use `_` instead of `{}` in lhs of equations
f64b0b10cMartin SjölundFix #2695, add testcase
6c91ee96cOpenModelica Hudson[Janitor mode] Fix whitespace
24a9ea525Volker Waurich- some optimization for partlintornsystem to get less equations
978e2327eMartin Sjölund1.9.1 beta4 was released
1c98030acOpenModelica Hudson[Janitor mode] Fix whitespace
183116553Mahder Alemseged Gebremedhin+ Improve r22851. Fix 2452. + Proper counting of algorithm section outputs. Make sure we don't count sections from array components multiple times.
dd53ee410Martin SjölundKeep flattening operation for array equations
61f7c21fbVolker Waurich- moved partlintornsystem to the post-opt-modules
0a904feacNiklas Worschechexpected output
e6f2e7651OpenModelica Hudson[Janitor mode] Fix whitespace
d346797e5OpenModelica Hudson[Janitor mode] Fix whitespace
62abd92c2Volker Waurich- fix for partlintornsystem
a1d9f8a81Martin Flehmig* Begin of MPI parallelization in HPCOM module.
6cfb6f53cAdrian PopFix bug: #2853 - more careful reverse lookup for functions
9084d05aeAdrian Pop- back to 1.9.1+dev
40487f5a6Adrian Pop- update version to 1.9.1Beta4.
9615d45cdAdrian PopFix bug #2871 - as the new env has references and destructive updates we need to clone it when returning it in Builtin.intialGraph
da5f75346Vitalij Rugesmall changes for expAdd and expDiv
e98009ce3Vitalij Ruge remove workaround inside equationToScalarResidualForm
6e4eecc6aVitalij Rugefixed BackendEquation.solveEquation for RESIDUAL_EQUATION
6f34b0ef9Volker Waurich- add functionpath to parameter crefs in function calls to get unique parameter crefs, only for CPP runtime
38a1dffc1OpenModelica Hudson[Janitor mode] Fix whitespace
8239c18e0Vitalij Ruge- added new flag for dyn. optimization - greating dyn. optimization became more user friendly with OMEdite - change default values like numberOfIntervals for dyn. optimization - added test for it - update application optimize
5e59cebf5OpenModelica Hudson[Janitor mode] Fix whitespace
21de29f1eNiklas Worschechfix in kinsol of cpp runtime for kinsol vectors
880e77247OpenModelica Hudson[Janitor mode] Fix whitespace
45e92f338Lennart Ochel- handle mixed systems using tearing (new approach) - remove poor handling of mixed systems from the back end (old approach) - remove unused record BackendDAE.MIXEDEQUATIONSYSTEM - remove flag +d=MixedTearing - update two result files - break Modelica.Fluid.Examples.HeatingSystem (msl32) due to non-linear solver issues - fix #1728, #2432 (and probably more)
0f55ac756Marcus Walther- disabled parallel write output to fix clang tests
6ad1c0dffMarcus Walther- fixed log and parallel writeOutput - parallel writeOutput is now enabled if boost::threads are found
842508659OpenModelica Hudson[Janitor mode] Fix whitespace
e7c9fd3adLennart Ochel- enable tearing for all systems
2d59380c4Niklas Worschechfix for tmp vars in cpp template
4ed0e6721Adrian Pop- back to 1.9.1+dev
14e6bd832Adrian Pop- update version to 1.9.1Beta3.
b279e11d6Adrian Pop- forgot some bad lines in there.
4e3b1498fAdrian Pop- remove Compiler/FrontEnd/Env.mo (bye bye, you served us well for quite some years now) (replaced everywhere by Compiler/FrontEnd/FGraph.mo and Compiler/FrontEnd/FCore.mo) - other minor changes - let's see how it goes and a 1.9.1 Beta3 will come next
86489508aMarcus Walther- small msvc fix for hpcom code based on openmp
4c66278c1Volker Waurich- moved reshuffling of systems of equations from Tearing.mo to ResolveLoops.mo, added post-opt module for this
37dfab03bVolker Waurich- remove resolveLoopsInCOmps from BackendDAEOptimize.mo
a29949742Vitalij Rugeadded rule atan2(0,x) = 0
eaa9d77b3Martin Sjölund#2862 - testing performance of not replacing `size(exp, 1)` with a non-constant expressions
b6301f4e3Martin SjölundFail at once if encapsulateWhenConditions fails. Print more error-messages on opt-module failures.
3d1405e9aMartin SjölundAdd line numbers to error-messages from RemoveSimpleEquations
65a1588d1Volker Waurich- comment out columark and mark in Tearing.tearingBFS
3f0ccddf8Volker Waurich- rewritten HpcOmTaskGraph.updateContinuousEntriesInList
181b5d0e2Adrian Pop- ignore illegal components in records and give a warning - display the restriction first, then the path in Types.unparseType - fix typo in testsuite/flattening/modelica/redeclare/Makefile - update test (Linux has 64 bit, use that)
f1d702dd7Martin SjölundHandle array-reductions with more than one dimension (as long as the inner dimensions have known sizes)
f04d176bfAdrian Pop- properly propagate attributes of components on redeclare - properly fill cref subscripts in Static.fillCrefSubscripts (still stuck in old days with T_ARRAY of only one dim) - show the connector components when there is a connection mismatch
1808e4601Martin SjölundPrint an error in the template instead of when compiling code
4e965d2b6Martin SjölundChange array_alloc_x_array to take `array_t` as input instead of `array_t*` (solves codegen issues for MSL trunk)
56b8c1556Martin SjölundSwitch the default flag for evalConstFuncs to true (`+d=noevalConstFuncs` now disables instead of `+d=evalConstFuncs` disabling (logic error))
b3bcf473eAdrian Pop- add proper error messages in some cases where print was used - handle DAE.INITIAL_NORETCALL in the BackEnd/BackendDAECreate.mo and FrontEnd/DAEUtil.mo (thanks to go to models: Buildings.Fluid.Chillers.Examples.ElectricEIR|ElectricReformulatedEIR)
1290f9c63Adrian Pop- partial fix for #2858 (does not yet work with for iterators indexing the array of records) * some tests are now actually giving correct results - partial support for Connections.uniqueRoot and Connections.uniqueRootIndexes * non standard operators: Connections.uniqueRoot and Connections.uniqueRootIndices are only partially implemented * Connections.uniqueRoot currently does nothing, only collects information * Connections.uniqueRootIndices needs to be implemented, it returns an array of ones (1) of size of first input * See specification for these here (Modelica_StateGraph2): https://github.com/modelica/Modelica_StateGraph2 and https://trac.modelica.org/Modelica/ticket/984 and http://www.ep.liu.se/ecp/043/041/ecp09430108.pdf * any takers for the actual implementation? is not that complicated :) - changed the way array types are printed out to be easier to follow
b4d050d5bAdrian Pop- all MSL 3.2.1 now compiles - add the previously failing tests to the testsuite
dd8afe7c9OpenModelica Hudson[Janitor mode] Fix whitespace
223969c9bMahder Alemseged GebremedhinFix #2452. Improve #2271 (and also #2112 maybe ?). Counting of algorithm section equation outputs involving arrays and records.
d42a6c3aeMartin SjölundChange the build script to not symlink or copy files into the build directory '''''Note: You will need to update the omc version that you are using to compile omc. The old one is unable to bootstrap omc. (It should also be possible to use the Makefile.sources from the tarball in order to skip this step as a temporary workaround if you do not want to bootstrap from the tarball.)'''''
41caac0bdMartin SjölundSimplify some record references in reductions Used in MSL trunk Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource. No test-case was added because models saved with saveTotalModel worked.
391e2eadcMartin SjölundDo not create a version scope for operator records
f57950343OpenModelica Hudson[Janitor mode] Fix whitespace
112569e1cRuediger Kampfmann-vxworks include
cedb83fdfRuediger Kampfmann-vxworks includes
5105e612fRuediger Kampfmann-vxworks includes
23d9d2daeRuediger Kampfmann-vxworks includes
de977fb38Ruediger Kampfmann-vxworks includes
030bc8d7dRuediger Kampfmann-vxworks includes
cb95afc03Ruediger Kampfmann-vxworks includes
bda162335Ruediger Kampfmann-vxworks includes
1f1710e19Ruediger Kampfmann-vxworks includes
0a007820dOpenModelica Hudson[Janitor mode] Fix whitespace
681310569Ruediger Kampfmann-vxworks includes
4989ebfe6Ruediger Kampfmann-vxworks includes
203f1ccd3Ruediger Kampfmann-vxworks includes
2ac436ea2Ruediger Kampfmann-vxworks includes
c28fb95b2OpenModelica Hudson[Janitor mode] Fix whitespace
853e5c275Ruediger Kampfmann-vxworks includes
b0fa405d4OpenModelica Hudson[Janitor mode] Fix whitespace
2e1cd0039Ruediger Kampfmann-vxworks includes
cd4b84000Ruediger Kampfmann-vxworks includes
352ad7636Volker Waurich- extend shuffling for torn systems
1b5b0b3e0Lennart Ochel- **workaround**: generate dummy attributes, since symbolic jacobians break generated c-code
ba20d9ab0OpenModelica Hudson[Janitor mode] Fix whitespace
ff45d32c5Lennart Ochel- provide additional information (nominal, min, max) for **linear** systems
34e26cc22Bernhard ThieleDifferent handling for "outer" variables if declared in a State Machine state instance
b9cb34e0aLennart Ochel- **ugly** fix for initialization of symbolic jacobians - add test for #2673
63abd6d0bMartin SjölundInclude the time taken to run each mos-script for debugging
cb8e7f88eOpenModelica Hudson[Janitor mode] Fix whitespace
47bcf276eAdrian Pop- hopefully properly silence the coding style.
2d25e014eVitalij Rugeupdate tests
1d605b23cAdrian Pop- silence the coding style.
1db8c0391Vitalij Ruge- update ipopt settings - update tests - added a flag for dyn. optimization for warm start - added test
aacc16cb2Volker Waurich- the hpcom GRS doesnt need so many iterations as before
2b970b673Martin SjölundAdd new option `readSimulationResultVars(readParameters=false)`, and use this for the reference file comparison
c4fbafd1aOpenModelica Hudson[Janitor mode] Fix whitespace
7502ca142Lennart Ochel- new unit check module (flag +newUnitChecking, disabled by default) - for all variables unspecified units get calculated if possible - inconsistent equations get reported in a user friendly way - new debug/dump flags for unit check module: dumpUnits, dumpEqInUC, dumpEqUCStruct - add some examples for testing
517958946Martin SjölundReset the alarm before the call to buildModel
215683e0fMartin SjölundNote about config
566b709e7OpenModelica Hudson[Janitor mode] Fix whitespace
e8f42564bMarcus Walther- added more parameters to codegencpp.tpl-functions, that allows us to remove some duplicated code in codencpphpcom.tpl - deactivated the "Deactivate profiling if you want to simulate in parallel" - feature, because performance benchmarks are now possible with hpcom
4407c7e8bLennart Ochel- fix fmi stuff
e8db5f148OpenModelica Hudson[Janitor mode] Fix whitespace
8b0f30e49OpenModelica Hudson[Janitor mode] Fix whitespace
8f3b64b0eLennart Ochel- fix non-linear system solver for iteration variables with bounded attributes (#2841)
7d61c46edRuediger Kampfmann-removed boost bind
492ea2d0fAdrian Pop- switch colors in trend plots (blue for compilation and green for simulation) to be more visible.
d5469bb95Lennart Ochel- make some dumps and record names less confusing
ed133b8eaAdrian PopFix 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
61e34ace9OpenModelica Hudson[Janitor mode] Fix whitespace
6eb5a8bdeOpenModelica Hudson[Janitor mode] Set auto-props
338b60a69Niklas Worschechchanged math library to shared library
1287830a2Niklas Worschech missing modified CodegenCpp.mo file
99742351cOpenModelica Hudson[Janitor mode] Fix whitespace
78d78b81fOpenModelica Hudson[Janitor mode] Fix whitespace
3e12519e6Ruediger Kampfmann-removed boost bind
bc86917b7Ruediger Kampfmann-removed boost bind
6aea557baLennart Ochel- improve +d=backenddaeinfo - show backendaeinfo for initial system - dump dae kind
377b9e2d5Ruediger Kampfmann-removed boost bind
4214eeb47Martin SjölundFMI 2.0 spec uses the horrible name darwin64 for the binary location of x86 code... Whatever.
e426d9050Martin Sjölund#2761 Add testcase for System2.mo from Buildings (used to generate a seg.fault)
e2f0debb4Adrian Pop- don't use System.gettext for Modelica constructs
070507520Adrian PopMerged branches/FFrontEnd into trunk/
2a3e9ebb5Adrian PopFix bug #2851 - handle named arguments for homotopy
3e6692efaMartin SjölundFix code generation for simulation executables (broken by r22482)
a9813ab1eMartin SjölundMake protected functions static in the generated code
e09b5f74eOpenModelica Hudson[Janitor mode] Fix whitespace
1f43726f8Niklas Worschechfix for typo in cpp template
d7e5c54a8Lennart Ochel- rise priority of imported start attributes compared with bounded start attributes (see #2673) - disable openmodelica/modelicaML/twotankmodel.mos since it seem to be wrong anyway for a while
41e2892a9OpenModelica Hudson[Janitor mode] Fix whitespace
535b5f285Niklas Worschechfix in array operations sum_array and dot_array
fc738ceccOpenModelica Hudson[Janitor mode] Fix whitespace
2c13e06dbRuediger Kampfmann-some changes in divide_array
7d936167cOpenModelica Hudson[Janitor mode] Fix whitespace
5f2e6abccRuediger Kampfmann-some changes in divide_array
838c7ea12Adrian PopFix bug #2837 - properly handle array equations in RemoveSimpleEquations.mo
82b1afbadOpenModelica Hudson[Janitor mode] Fix whitespace
451f9c622Ruediger Kampfmann- some improvements concerning array.h
29a894352Ruediger Kampfmann- some improvements concerning array.h
41f185b64Ruediger Kampfmann- some improvements concerning array.h
31835f52eLennart Ochel- fix indentation
73b078662OpenModelica Hudson[Janitor mode] Fix whitespace
65a2be73fRuediger Kampfmann-changed removed a senseless copy in the end of functions
935d23648Martin Sjölund#2832 Propagate annotations into DAE.EXTOBJCLASS
bde9d5975Martin Sjölund#2817 Handle unknown dimensions better when initializing a function variable from a binding
1704d24e4OpenModelica Hudson[Janitor mode] Fix whitespace
e8b466d47Ruediger Kampfmann- changed initialization of parameters in functions
4d007c662OpenModelica Hudson[Janitor mode] Fix whitespace
ea005e73fVolker Waurich- get thick lines in graphML output for solvable edges and thin lines for nonsolvable edges
fc23d1648Marcus Walther- fixed msvc build
e4a3ac81fMartin SjölundTail recursive filter1OnTrueSync_tail
cbc75e602OpenModelica Hudson[Janitor mode] Fix whitespace
a814f4ac0Marcus Walther- splitted the writeOutput-function to speed-up complile time a little bit - activated papi in cmake
1c72b31caOpenModelica Hudson[Janitor mode] Fix whitespace
4f8d431edVolker Waurich- added experimental functions to manipulate systems of equations (work in progress)
ccd5f2fb9Marcus Walther- fixed my previous commit
31f9503c4OpenModelica Hudson[Janitor mode] Fix whitespace
4f656e742Marcus Walther- optimized parallel write output - added profiling points for the write output functionality - added profiling based on papi counters to the cpp-runtime
487c23dbeMartin SjölundFix the type of list/listReverse comprehensions with multiple iterators
6c7ffee60Per Östlund- Fixed dependency analysis for classes redeclared multiple times.
ccbfa8130Marcus Walther- fixed hpcom
2f976ad68Per ÖstlundFix for #2834: - Don't print out builtin attributes in type mismatch errors, they just make the errors harder to read.
c612384b6Per ÖstlundFix for #2836: - Handle builtin types better in NFSCodeDependency.
c6d215bddOpenModelica Hudson[Janitor mode] Fix whitespace
4d4ba627eVolker Waurich- added stringVar as type for the communication type in hpcom - extended HpcOmTaskGraph.getUnsolvedVarsbySCC for strings and enumerations - some changes in graphML dump for systems of equations regarding indexing of nodes in torn systems
f1353a1c7Vitalij Rugesome fixes from static analysis
351ba91ebAdeel Asghar#2767 - If fmi2Terminate is called and then fmi2Reset is called then reinitialize the data.
1935535d1Adeel Asghar#2764, #2765 - Added the InitialUnknows section in modelDescription.xml
360abbc4eAdeel Asghar#2765 - Use StartString2 instead of initValXml.
fbc604ac9OpenModelica Hudson[Janitor mode] Fix whitespace
c2e5686b5Vitalij Ruge#2833 fixed - added solver rules for e.g g(.) + f(.)/h(.,x) = 0.0 - improved rule for x^r = x^(1/r)
898ec0055Lennart Ochel- update unused interactive stuff
10f0ca8d9Lennart Ochel- improve #2614
db42c3198Marcus Walther- temporarily disabled colord jacobian
0dbd5bedeWilli Braun - deactivate dae dumps for symbolic jacobians
c717716fbNiklas Worschechfix in dot array of cpp runtime
9f2caf5ebVolker Waurich- added flag to set tolerance for reshuffle algorithm +reshuffle=0/1/2/3
cfa38aae5Adeel Asghar#2767 - Fixed fmi2GetDerivatives & getReal. - Added LogCategories to modelDescription.xml
74ba08cc3Lennart Ochel- unfix #2830
d899f94a5OpenModelica Hudson[Janitor mode] Fix whitespace
991c2be7cNiklas Worschechadded terminate function to cpp tempalte
6795340c4Volker Waurich- added some functions to benchmark exeCosts for tasks in HpcOmSimCodeMain.mo
61d069a2cOpenModelica Hudson[Janitor mode] Fix whitespace
6e54882feMarcus Walther- tabified precompiled header file - made measure time functionality available for windows (mingw) - FORCE_INLINE is now defined for gcc and msvc
269a95a69Vitalij Ruge- remove cot,coth rulse // not exist in Modelica // thanks Martin - added some rules for e.g. sin/tan, sinh/tanh
d03b6e89bLennart Ochel- fix #2830
b739f823bMartin SjölundFix errorneous message for `String(format=...)` and expected output
e470e7f0eOpenModelica Hudson[Janitor mode] Fix whitespace
bec64d29aMartin Sjölund#2829 Print errors for missing arguments
d5497ec15Volker Waurich- removed print message
721d03a05Marcus Walther- splitted the getInt-Function - fixed HPCOM of CPP-Runtime
0bbf7dab8Marcus Walther- improved error handling - reactivated colored jacobian
b7d6d38f9OpenModelica Hudson[Janitor mode] Fix whitespace
b42e0c23cVolker Waurich- added variability to record constructors
a25546391Olena Rogovchenkoblockcall update
e46df41c5OpenModelica Hudson[Janitor mode] Fix whitespace
aa6621ccbVitalij Rugeadded rules for sinh,cosh,tanh,coth
d3891372aOpenModelica Hudson[Janitor mode] Fix whitespace
3475fc4a3Vitalij Rugeadded rules for sin, cos, tan, cot
76e345f0cAdrian Pop- don't expect that functions with the same name in different scopes are recursive extends! - fixes a model that Francesco is working on.
77735d58fMahder Alemseged GebremedhinCreate correct array types for complex type using the prefix dim info.
3d6fa3455OpenModelica Hudson[Janitor mode] Fix whitespace
30463bda5Adrian Pop- fix typo in r22359
455a00321Niklas Worschechfix for some modelica internal functions in cpp template
9a3a2cb7eOpenModelica Hudson[Janitor mode] Fix whitespace
8af57bb07Martin SjölundFixes compilation
162383d8aOlena Rogovchenkoblock call prototype
a8a35a4c2Martin Sjölund#2801 Propagate visibility to DAE.FUNCTION
701dc333bOpenModelica Hudson[Janitor mode] Fix whitespace
254816c01Olena Rogovchenkoblock call prototype
6ee8e5f06Olena Rogovchenkoblock call prototype
295dd47a3Martin Sjölund#2823 Speed up replaceLiteralExp for large lists
49c391b78Martin Sjölund#2827 Handle more MM types in code generation
fde96ad72Martin SjölundRML crap
69c7dea53Martin Sjölund#2824 - Create new internal foldName and resultName when simplifying reductions with multiple iterators
4b7f24ec7Niklas Worschechdeactivated call CVDlsSetDenseJacFn in CVode.cpp
ddff833fcVitalij Rugesome fixes from static analysis
655b3c7f3Vitalij Rugekeep extrapolate inputs inside bounds
37e475349OpenModelica Hudson[Janitor mode] Fix whitespace
889850611Vitalij Rugefixed output from dyn. optimization
238eaef46Niklas Worschechremoved includes in CVode.h
4a4b64982Niklas Worschechtry to fix compiler error for CV_JCallback
3db3d3362Martin Sjölund#2822 Also consider derived functions when looking for function to compile
19eead66fMartin Sjölund#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
9ef6f32b8OpenModelica Hudson[Janitor mode] Fix whitespace
c924d55c5Willi Braun - fixes for FMI dependencies calculation
5c5fbfac9Vitalij Rugefixed discrete vars and events in dyn. optimization
5f4bd3e1eOpenModelica Hudson[Janitor mode] Fix whitespace
3f57eed2bLennart Ochel- Change some back end data types for base-/sub-clock partitions - Change some names (e.g., INFERREDCLOCK to INFERRED_CLOCK) to match common code style - Update expected output
0f312a9b0Per Östlund- Made Types.matchTypes tail recursive. - Made Static.elabBuiltinTransition3 not fail.
2bd62ee2fOpenModelica Hudson[Janitor mode] Fix whitespace
47cd2a56dNiklas Worschechfix in cvode for write output
afc187003Per Östlund- More listFirst -> listHead.
c362bfdeePer Östlund- Fixed bootstrapping implementation of listHead/listRest so that they fail on empty lists instead of segfaulting (and are named correctly...).
9b8372928Adrian Pop- coding style utf-8 without bom use (C) instead of the Copyright sign
26f1abe1aOpenModelica Hudson[Janitor mode] Fix whitespace
48acc4b9cBernhard ThieleMoved all definitions for "Clock"-Type from Absyn.mo to DAE.mo: Probably cleaner solution since the "Clock" type is not part of the grammar.
27b0b0007Adeel Asghar- Updated to FMI 2.0 files.
474c547e7OpenModelica Hudson[Janitor mode] Fix whitespace
a63c70008Vitalij Rugefixed -lv LOG_IPOPT_ERROR for final cosntarints
77ef91366Vitalij Rugesome fixes from static analysis
9a91e9175Adrian Pop- fix bootstrapping
edf4a5e1cWilli Braun - fix c compiler warning
2c4594f8cOpenModelica Hudson[Janitor mode] Fix whitespace
806b1625cWilli Braun#2764 - FMI: added dependecies feature for derivatives and outputs
be7ef973aAdeel Asghar#2818 - Copy the model's experiment annotation values to the generated FMU.
7f2db9f8fOpenModelica Hudson[Janitor mode] Fix whitespace
84a82e444Marcus Walther- optimized measureTime
821b3a507Martin Sjölund#2815 Handle fold reductions of user-defined functions with polymorphic types - Also handle folding functions of type A,B->B, if the second argument has a constant default binding
dac1c9996OpenModelica Hudson[Janitor mode] Fix whitespace
dd75640eaMarcus Walther- measureTime of CPP-Runtime produces a valid json-file now - the hpcom json file reader will now exit correctly if the json file is invalid - fixed a bug in HPCOM-TaskGraph -- the execcosts of the nodes are correctly mapped to the json-file-values - moved execstat measure commands to the correct locations
ef99e6ccdAdrian Pop- fix build
de3b0ee53Per Östlund- Removed dependency on List _tail-functions in Static.
b7a5aca2fMartin SjölundAdd support for threaded reductions using +g=MetaModelica
299cdd869OpenModelica Hudson[Janitor mode] Fix whitespace
4f516aa60Michael Kloeppeluse umfpack only for (very) sparse matrices fix umfpack test's Makefile
6afa020c1OpenModelica Hudson[Janitor mode] Fix whitespace
35a6f78c1Mahder Alemseged Gebremedhin+ 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.
eb2b3eb11Per Östlund- Implemented isNone/isSome in the bootstrapped compiler.
0d3b421d6Martin Sjölund#2813 Allocate temporary variable used by the for statement *before* generating the body statements (prevents re-use of indexes)
f47b4c817Volker Waurich- fix in EvaluateFunctions.mo for empty tuple type in CallAttributes
19061898bOpenModelica Hudson[Janitor mode] Fix whitespace
a24658baaNiklas Worschechfix for int_max in cpp template
8a7f3086cVolker Waurich- fix for getEventTaskGraph
65ff40cd4Martin SjölundFix reinit of subscripted crefs
475bb7fdfMartin SjölundGenerate notifications for invalid typespecs like `list` already during the Absyn to SCode phase
2a5304427Per Östlund- C99 issues.
f53eacf38Per Östlund- Updated OM for FMIL 2.0.
7c6524178Martin Sjölund#2794 Add some error detection for div/mod by zero - Also added line information to external C functions - Moved external function includes to a separate file (`Model_includes.h`), and added #line directives so the debugger can point to these lines of code
936e526b3OpenModelica Hudson[Janitor mode] Fix whitespace
21563c0b0Vitalij Rugeimproved DynamicOptimization.mo
7e792af76Marcus Walther- disabled always_inline attribute, to fix msvc build
3b96e94b7Adeel Asghar- Keep arrayLength static inline. Gives performance. - New function for debugger mmc_gdb_arrayLength. - Use the new function in OMEdit.
364e40a87Adeel Asghar- Do not make the arrayLength function static inline.
2e7480a0eOpenModelica Hudson[Janitor mode] Fix whitespace
6a970489aNiklas Worschechfix for copy pdb files of cpp runtime
ea172c4b4Martin Sjölund#2811 Allow iterating over lists in for statements
13d19e020Marcus Walther- SimCodeTV.mo was not merged correctly
64fb00309OpenModelica Hudson[Janitor mode] Fix whitespace
57bfe738fMarcus Walther- redo changes of rev22212, but this time without circular dependency
5543876ffMartin Sjölund#2810 fix segmentation faults on case guards
302a6072eOpenModelica Hudson[Janitor mode] Fix whitespace
851e633caVitalij Rugefixed hessian in dyn. optimization
182b7a9a5Niklas Worschechfix for append array in cpp runtime
00f6b4034Martin Sjölund#2786 - Fix code generation for multiple iterators (threaded) - Ceval constant function calls in the front-end
63840b582Niklas Worschechdeactivated colored Jacobian in cvode
700695c28Martin SjölundRevert to r22211
b6cdd978eOpenModelica Hudson[Janitor mode] Fix whitespace
9f41cd4a6Marcus Walther- improved levelfix-scheduler of HPCOM - improved measureTime-functionality of cpp-runtime
8ad1c8e9bPer Östlund- Reverted accidental commit of wrong file.
aa7fea92dPer Östlund- Even more fixes.
90495a60aPer Östlund- And some more fixes.
08e94269aPer Östlund- More fixes.
8403fa8bcPer Östlund- Some more fixes for r22200.
00cda5940Adrian Pop- fix grep and replace from r22200
4b091f598OpenModelica Hudson[Janitor mode] Fix whitespace
bbc2331dcPer Östlund- Reverted (mostly) the previous commit due to RML grumpiness.
d276a6d45Per Östlund- Fixed builtin listEmpty and replaced List.isEmpty with it.
b6136b9aaVolker Waurich- added attr varKind to SimCode.Variable - some debug print functions
c6dfea856Per ÖstlundFix for #2806: - Remove input/output also from record components that are not top-level.
d54087515Adrian Pop- fix bootstrapping
4ba144b3fVitalij Rugeimproved scaling of goal function in dyn. optimization
4d1024b77Adrian Pop- proper MetaModelica (RML) fix (RML doesn't like things thaat start with "_": _complexity)
102855e68Adrian Pop- fix MetaModelica (RML) compilation
a7c0893c6Adeel Asghar- Add -g to CFLAGS if +d=gendebugsymbols is set.
87e118ff5OpenModelica Hudson[Janitor mode] Fix whitespace
16759baf5Niklas WorschechActivated colored Jacobian in cvode
ad491c9d2Martin Sjölund#2800 - Rewrote traverseExp and traverseExpTopDown to take a function with 2 inputs and outputs instead of using tuples
5e5591c15Willi Braun#2808 - fixed #2808
23d4ef9e1OpenModelica Hudson[Janitor mode] Fix whitespace
fe0711521Per Östlund- Fixed getVars in SimulationResultsCmp so that variable names don't get corrupted and make the Compare.mos test fail. - Got rid of Clang warning in optimization runtime.
2845735f0Per ÖstlundFix for #2806: - Remove input/output from variables which are not at top-level or inside a top-level connector.
198e349c1Volker Waurich- fix simpleResistor test
ad3a5bde8Volker Waurich- rewritten HpcOmTaskGraph.cutTaskGraph
fdc7cda15Marcus Walther- fixed RML build
5882315d0OpenModelica Hudson[Janitor mode] Fix whitespace
07ad137d7Marcus Walther- added var indices to hpcom-communication-object
a982de4ebOpenModelica Hudson[Janitor mode] Fix whitespace
c987ace0fVitalij Ruge- fixed start-values in dyn. optimization - added test
41534e650OpenModelica Hudson[Janitor mode] Fix whitespace
9eba35835Niklas Worschechexpexted output, fix for min max function in cpp runtime
582fe6849OpenModelica Hudson[Janitor mode] Fix whitespace
28ce7eea0Mahder Alemseged Gebremedhin+ Move includes from headers to the source files. Reduces binary sizes considerably. Every package/source includes all the headers it needs individually so there is no need to have the chain includes.
905362dd0Marcus Walther- fixed measureTime in CPP-Runtime
a091d5a4dMichael Kloeppelfix umfpack issues under windows
188060622Marcus Walther- fixed RML-build
c23611b74OpenModelica Hudson[Janitor mode] Fix whitespace
fcc7fbb1fMarcus Walther- removed ASSIGNLOCKTASK and RELEASELOCKTASK and added a new Structure called DEPTASK
821909b14Marcus Walther- removed deinitialization of measure time
b35e62d70OpenModelica Hudson[Janitor mode] Fix whitespace
a1813b01fNiklas Worschechfix for sum array in cpp template, reverted cvode changes for colored jacobian
baa065430OpenModelica Hudson[Janitor mode] Fix whitespace
e16a51947Marcus Walther- fixed segfault in measureTime
f0103e786OpenModelica Hudson[Janitor mode] Fix whitespace
ca69856b5Niklas Worschechfix for dot and div array in cpp tempalte.Colored Jacobian in cvode of cpp runtime
d9329e372Bernhard ThieleAdded clock constant in dispatch for Expression.traverseExpTopDown1
52a577ba6OpenModelica Hudson[Janitor mode] Fix whitespace
f61e67157Niklas Worschechfix for promote and transpose array in cpp template
1dc963914Vitalij Rugeadded a warning in dyn. optimization
3fa198cdcVitalij Rugefixed 22127
d78dc7d3fVitalij Ruge- added protype interface for external state estimation data //important for nmpc loops - fixed final constraints
2a078d6a2Lennart Ochel- fix sub-clock partitioning (sub-clock indices were twisted due to a wrong listReverse)
bb6001590Vitalij Rugeimproved derivatives for arctan2 and r^x
39206fcd2OpenModelica Hudson[Janitor mode] Fix whitespace
b34f41cf3Marcus Walther- dump graph to graphml can now be influenced with GraphDumpOptions
2e7834b41Vitalij Ruge- fixed r22109
ff2ea6887Vitalij Ruge- fixed cmake
5d4efc6c6Michael Kloeppelfix msvc build
344af77aaOpenModelica Hudson[Janitor mode] Fix whitespace
aa0ccf9d3Vitalij Ruge- support partial final constraint via annotation marker - added structure for final constraints - codegen for final constraints - modification dyn. optimization methode for final constraints - added tests for final constraints
59dee8ddfOpenModelica Hudson[Janitor mode] Fix whitespace
08750ba17Niklas Worschechfix for cat array function in cpp template
df6c40813Bernhard ThieleCleaned up code
3e89aea13Marcus Walther- fixed measure time linker error (GCC)
492f289d2Michael Kloeppelfix build
c4fb48576Michael Kloeppelfix build
c28f09961Michael Kloeppelumfpack related changes to Makefiles and CMake scripts
5867ce35cMarcus Walther- fixed clang build
d672ec9d9Marcus Walther- some more clang error fixes
fe5e6c28aMarcus Walther- fix clang build
bd015150eOpenModelica Hudson[Janitor mode] Fix whitespace
777ce4c02Marcus Walther- separated the communication variables of hpcom into int, float and bool
d7025f4d2OpenModelica Hudson[Janitor mode] Fix whitespace
9218d724bRuediger Kampfmann-fixed an error concerning colored Jacobians
970f5538aOpenModelica Hudson[Janitor mode] Fix whitespace
491439a27Ruediger Kampfmann-fixed an error concerning colored Jacobians
6022db6f9Ruediger Kampfmann-fixed an error concerning colored Jacobians
183696c86Adrian Pop- fix bootstrapping
ec7415ce7Bernhard ThieleImproved the elaboration of state machine operators
0674aabeeOpenModelica Hudson[Janitor mode] Fix whitespace
755749e14Ruediger Kampfmann- colored Jacobians
7de849d2ePer Östlund- Fixed CodegenCpp (no german characters please).
a8e227df0OpenModelica Hudson[Janitor mode] Fix whitespace
ed560c86fRuediger Kampfmann- colored Jacobians
04b92504cRuediger Kampfmann- colored Jacobians
ed0d9dbcbPer ÖstlundFix for #2793: - Hack to handle messed up cref types when checking subscript bounds for connects.
5bb2490c4OpenModelica Hudson[Janitor mode] Fix whitespace
a66c486e7Niklas Worschechfix for fill_array in cpp template
1c60034dfOpenModelica Hudson[Janitor mode] Fix whitespace
f4c5d09daPer ÖstlundFix for #2790: - Implemented type checking of array dimensions for array modifiers. - Fixed Types.getDimensionNth to work for all kinds of dimension configurations.
7b8fcc602Adrian Pop- fix bootstrapping
812fe69afOpenModelica Hudson[Janitor mode] Fix whitespace
7a145f490Vitalij Ruge- rewrite DynamicOptimization parts in BackEnd - create DynamicOptimization.mo - mv some parts inside DynamicOptimization.mo - added annotation marker for DynamicOptimization - update tests for DynamicOptimization
38a8d7f2aOpenModelica Hudson[Janitor mode] Fix whitespace
142c4e2f3Niklas Worschechchanged A matrix for linear systems to static array in cpp runtime
ad7669522Adrian Pop- compile without optimizations for bootstrapping - better handling of verification of if equations that do not "set" anything i.e. (x = y): if cond then reinit(v, 0); reinit(s, 1); else reinit(v, 2); reinit(s, 3); end if; maybe we should also check if the same reinit variables are used in the if branches (no idea what the spec says). unfortunately the back-end doesn't support yet reinit inside if equations in when clauses.
23bb4be53Bernhard ThieleAdded state machine operators to front end
71fefdc9cMarcus Walther- fix for clang
212781ecaOpenModelica Hudson[Janitor mode] Fix whitespace
528a33b18Marcus Walther- separated umfpack-include from cflags
97b3a93adMarcus Walther- oeprator() defined for SparseMatrix-type
47ae17a12Niklas Worschechfix for precompiled header msvc build
cbaeb876dMarcus Walther- excluded precompiled header just for msvc build
a50644976Marcus Walther- deactivated precompiled header temporarily to fix msvc-build
ceb830c9fMichael Kloeppelcorrected umfpack-clean target in Makefile.common
02d1168eaMichael Kloeppelallows to compile umfpack in 3rdParty and use it in cpp-runtime only the LGPL version in 3rdParty is used
40d25e00cMarcus Walther- fixed realDiv mistake
cbd0b02fdOpenModelica Hudson[Janitor mode] Fix whitespace
8a876879dMarcus Walther- removed the Include/Core - Folder from the Include-Path (this will break the CPP-Runtime on Windows with MSVC) - moved some header-files from cpp/Core to cpp/Include/Core - added experimental version of level-scheduler (levelfix) to HPCOM
73856dbefMartin SjölundFix 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).
fbbbf2ffcAdeel Asghar- Fix build.
5bdf0da90Adeel Asghar- Merged the debugger branch with the trunk. - Generate the GDB parser make files.
8e92d60a1OpenModelica Hudson[Janitor mode] Fix whitespace
beaf16057Per ÖstlundFix for #2789: - Restructured modifier handling to provide better error messages.
3cf1f11bdVitalij Ruge-updated and added new tests for the dyn. optimization
6844d5bd6Marcus Walther- fixed Expression.isCrefListWithEqualIdents
4111c3128Niklas Worschechfix for add array function in cpp template
691b01e75Martin Sjölund#2791 Rewrite multiple iterators to nested reductions
f15686dc2Niklas Worschechadded accidentally removed function in cpp template
2ca1f03e1Ruediger Kampfmann-changed input parameter in division from std::string to const char*
7d063dfaaRuediger Kampfmann-changed input parameter in division from std::string to const char*
3838fccf8OpenModelica Hudson[Janitor mode] Fix whitespace
9170c0fa2Niklas Worschechadded append method to array class in cpp runtime.
7055590f1OpenModelica Hudson[Janitor mode] Fix whitespace
4234f3a95Ruediger Kampfmann-changed passing of structs from call by value to call by reference
14a206557Per Östlund- Removed duplicated cref<->path functions in Static.
000242bedOpenModelica Hudson[Janitor mode] Fix whitespace
7b41e8929Per Östlund- Slight optimization of elaboration of EnumToInteger.
b94cd80a9Lennart Ochel- revert r21963 and change the test from #2788
1854729e1Lennart Ochel- partially revert r21426 to fix #2788
c0579fbcbVitalij Rugeimproved guarding for if-exp
574188afeLennart Ochel- hide sub-clock partitioning information by default
864744f3aOpenModelica Hudson[Janitor mode] Fix whitespace
585c4de31Lennart Ochel- sub-clock partitioning (each equation gets assigned an sub-clock partition index)
15a8310b3Jim NutaroAdded linear system solver to sparse FMI, working on events
e66c1dd3cVitalij Rugefixed #2787
23faeaaa2Vitalij Rugefixed pre sim in optimization
7c10ecf09OpenModelica Hudson[Janitor mode] Fix whitespace
eeb534f07Per Östlund- Actual commit of stuff that should have been committed in r21937 (accidentally only committed testsuite in that commit).
7e83e3b0bMartin SjölundFix the elaborated result tuples sooner, so moving the last statement works
cca816ac5Martin SjölundAdd error message for when SCodeUtil fails to translate an operator that uses class extends (which is lacks a valid legal use case and we thus lack a case for)
63643f304Martin SjölundStarted using elabExpInExpression instead of elabExp in many places (so functions returning multiple outputs work better) Note: This interferes slightly with the MetaModelica type system (things RML did not handle; so no changes needed). The changes cause MetaModelica models using equations with tuples to fail (but that is okay; we do not use MetaModelica in models)
8fb864aa5Marcus Walther- changed "#include " to "#include "
518d93a9dMarcus Walther- changed "#include " to "#include "
49aaadd88Marcus Walther- changed USE_THREADS to USE_PARALLEL_OUTPUT, because otherwise the boost_thread library can not be used by HPCOM - some updated for the hpcom testsuite
b7085cf8cOpenModelica Hudson[Janitor mode] Fix whitespace
8c1b40dceMarcus Walther- isCrefListWithEqualIdents - added to the expression-module, to check if a list of expressions uses the same cref-identifier
c29e1bad5Marcus Walther-rml fix
5795ae2deMartin SjölundFix configure script
0be828f33OpenModelica Hudson[Janitor mode] Fix whitespace
95d964bc8Marcus Walther- all String are now exported into a CDATA-Field in GraphML - improvement for level-scheduler added - debug output of HpcOmMemory changed - cleaned up the HpcOmTaskGraph-file
08f4d8d97Martin SjölundUse the file info from the binding when generating an error about type mismatch in the binding (since it is very hard to know where the binding is coming from compared to finding out the type of the declared component)
b6d6d2912Vitalij Rugeadded simplify rule
9fcdb695fVitalij Rugeadded simplify rule
8062860d0OpenModelica Hudson[Janitor mode] Fix whitespace
4d64e3fcaVitalij Rugeadded solver rule
9ff5f64f5Vitalij Rugeadded some simplify rules
10ac602daOpenModelica Hudson[Janitor mode] Fix whitespace
ce76a7e78Ruediger Kampfmann-changed declaration of temp strings
cf4120a42Martin SjölundSkip compressing some unnecessary files in the tarball
004e15f89Adrian Pop- fix omc-bootstrapped target for Windows MinGW (still some issues with un-tarring of sources)
34c844135Marcus Walther- fixed build of ANALYZATION_MODE
5e06d6bd0Martin SjölundAdded some tail recursion for the connection trie graph (moves some variables around in equations, and some equations too)
f040d6415Niklas Worschechfix for some function calls in cpp template
59389f97eMarcus Walther- some changes in the measure_time functionality - fixed stack overflow of MCP-Scheduler
d9e41cc84Vitalij Rugesome fixes from static analysis
2b2468252Martin SjölundTail-recursive instArray2 for DIM_INTEGER (at the cost of moving some equations around)
c5a0fedcaMartin SjölundTail recursive getMemberOnTrue
4f8d37dffMartin SjölundFix some tail recursion
2c2f5671cMartin SjölundImprove the error-messages for domain errors like `log(<0)` (make it part of the messages using the XML output)
c3e9a9662Marcus Walther- fixed i386 compilation of RDTSC
c61fb7afeMartin SjölundBootstrapping fixes
d2101dee9Niklas Worschechadded flag for use threads in cpp runtime
1a14a33fbOpenModelica Hudson[Janitor mode] Fix whitespace
e25466d39Marcus Walther- added profiling-support to cpp-runtime - fixed deadlock in hpcom-cpp simulation runs
c00fd0741OpenModelica Hudson[Janitor mode] Fix whitespace
d26ed5e43Jim NutaroMore work on the Sparse FMI back-end
e71ac1947Niklas Worschechrevert unfortunately check in cmake file
f69795357Niklas Worschechfix for function signature with no arguments in cpp template
7f9a89154OpenModelica Hudson[Janitor mode] Fix whitespace
75843b5dcNiklas Worschechfix for function output type in cpp template.
2fffcd458OpenModelica Hudson[Janitor mode] Fix whitespace
77960f409Niklas Worschechchanged datatype in TextFileWriter and MatFileWriter of cpp runtime
431bc1644Ruediger Kampfmann-changed functions from call by value to call by reference
26f9d7d71OpenModelica Hudson[Janitor mode] Fix whitespace
6b6993dceRuediger Kampfmann-exchanged some for loops with std:copy
30b499121OpenModelica Hudson[Janitor mode] Fix whitespace
9574839fbRuediger Kampfmann-changed functions from call by value to call by reference
f77677a0dRuediger Kampfmann-removed assign(0.0)
dad8e948dOpenModelica Hudson[Janitor mode] Fix whitespace
0fbe9568dNiklas Worschechchanged array type in function arguments to BaseArray in cpp template
e242b0408Marcus Walther- destructors of array-classes are now virtual - hpcom cpp-codegeneration is now generating the new array classes
7a66c38adMarcus Walther- fixed state selection bug
d9f1b3513Niklas Worschechfix in stateselection getAMatrix in cpp template
f736ef7f5Marcus Walther-fix rml-build
a69ec4c00Marcus Walther- rml-fix
511b2596cOpenModelica Hudson[Janitor mode] Fix whitespace
40f0496ddMarcus Walther- fixed hpcom-cpp-runtime integration - removed some spelling mistakes in CPP-Template - some array unrolling improvements for hpcom
d562959fcOpenModelica Hudson[Janitor mode] Fix whitespace
f9d96f635Niklas Worschechtemporary removed unused array classes
15bae9b30Ruediger Kampfmannsome errors fixed
559510931OpenModelica Hudson[Janitor mode] Fix whitespace
7a00d6afaVitalij Rugefixed jacobian index handling in optimization
cdc187504OpenModelica Hudson[Janitor mode] Fix whitespace
770492769Niklas Worschechfix for correct array variable names in simulation results file
6fe245cecRuediger Kampfmannsome errors fixed
d8af7859fRuediger Kampfmannsome errors fixed
260c6afc4Niklas Worschechfix in Array assign in cpp runtime
efa25b005OpenModelica Hudson[Janitor mode] Fix whitespace
51a5cccceNiklas Worschechadded assign operator to DynArray class
83a0ffc35OpenModelica Hudson[Janitor mode] Fix whitespace
80fb1b153Niklas Worschechfix for assign array from function return, adapted state selection for new array class
16787abf9Jim NutaroSparse FMI works for simple systems in state space form
619995e34Niklas Worschechfix in Array.h getDims
624bedde3Martin SjölundFix cpp tests (unisgned int != size_t)
91e2dd2d6Martin SjölundFix template indentation
397a9c6aeMartin SjölundFix C++ compilation...
f6cd1884fMartin SjölundFix bootstrapping
e9b77930eOpenModelica Hudson[Janitor mode] Fix whitespace
a0a287885OpenModelica Hudson[Janitor mode] Set auto-props
55155a312Ruediger KampfmannAdded new array class to cpp runtime. Changed arrays in cpp template.
18e2f163bMartin SjölundFix for compiling modelica3d on OSX (force libstdc++ instead of the default libc++ since OSG is compiled against libstdc++)
f9e20a539OpenModelica Hudson[Janitor mode] Fix whitespace
790055515Niklas Worschechseparated initialequations and getReal,setReal method in cpp template
83966e5e3OpenModelica Hudson[Janitor mode] Fix whitespace
6af96bbf4Jim NutaroMore work on SparseFMI
7387a820cMartin SjölundMake dimensionsKnownAndEqual not fail if the inputs are DIM_UNKNOWN()
12952dd16Martin SjölundAllow DIM_EXP on both sides of a matrix multiplication
a21efc595Niklas Worschechfix for typo in SimCodeUtil.mo
f21f70d83Martin SjölundAllow DIM_EXP():=DIM_EXP() (do run-time checks since we cannot do everything at compile-time)
cf88681a6OpenModelica Hudson[Janitor mode] Fix whitespace
2223624fbNiklas Worschechremoved some result output variables in cpp template
6939e8350Martin SjölundReport flattening errors in the coverage reports when there was an error instantiating the functions (previously, the function list would not be checked until the lowering phase)
e11cec6f1Lennart Ochel- listDelete is using zero-based indexing instead of one-based indexing as it should use. List.delete is added as a workaround. - for now, List.delete should be used instead of listDelete - I will push my fix to listDelete as soon as the rml stuff is gone
27aed168cOpenModelica Hudson[Janitor mode] Fix whitespace
e6c884a6dPatrick Marcel TaeuberModified Tarjan Matching a bit
e940461faMartin SjölundSome documentation
9862e2881Martin SjölundAdd scripting function stringVariableName Also made it possible to do things like `val(stringVariableName("b"),...)` or `v:=stringVariableName("b");val(v,...);`
557f2cd5fLennart Ochel- BackendEquation.mo - remove obsolete code, fix typos and comments, fix bugs (even if they did not appear yet)
c461bf7b9Vitalij Rugefixed some issues with optimization: - jac handling - memory - output
2278f0bbaLennart Ochel- fix rml compilation
2372f3c19Martin Sjölund#2757 Fix the types set when simplifying reductions
0d8f7259bLennart Ochel- review BackendEquation.mo
d88b430beVolker Waurich- replaced HpcOmTaskGraph.transposeTaskGraph with BackendDAEUtil.transposeMatrix
2f6a8ed2eOpenModelica Hudson[Janitor mode] Fix whitespace
57ef97138Vitalij Rugeadded rule x/(r*y) => (1/r)*x/y
1228cd4ccMartin Sjölund#2772 Do not exit the master thread when unloading FMU's. Cancel the worker threads in thread objects instead.
76aa90efaOpenModelica Hudson[Janitor mode] Fix whitespace
2d1f6c3b2Vitalij Rugeadded rules: - a*x*b + c*x = x*(a*b + c) - a*x + b*x*c = x*(a + b*c)
f3b69cc51Vitalij Rugeswapped args in hasOnlyFactors
7d9fa2e8eOpenModelica Hudson[Janitor mode] Fix whitespace
1ab69827eVitalij Ruge- added rule for a*x*c + d*x*e => x*(a*c + d*e)
aeaea6d24Marcus Walther- fixed Susan Indent level
ba6522566OpenModelica Hudson[Janitor mode] Fix whitespace
54311b27dJim NutaroMore work on the sparse FMI generator
feac7048aLennart Ochel- remove BackendEquation.equationNth0 since it is deprecated (equationNth1 can be used instead)
274adf08eMartin SjölundFix last commit (ModelicaReference does not need to be loaded)
4db9f7bf8Martin SjölundWhen generating documentation, also add a case-insensitive .zip for Windows systems
30c76ef54Lennart Ochel- fix r21757
2c48a9259OpenModelica Hudson[Janitor mode] Fix whitespace
f19450e7dLennart Ochel- don't use zero-based indexing for (equation) arrays
9c9308502OpenModelica Hudson[Janitor mode] Fix whitespace
0bd042181Vitalij Ruge fixed r21754
6ccc98676Vitalij Ruge- added some rules in ExpressionSolve
9bc19264bVitalij Ruge- improved some rules in ExpressionSolve
81cb9ea63Lennart Ochel- fix initialization of fmi example
58c09c91fOpenModelica Hudson[Janitor mode] Fix whitespace
f16047684Vitalij Ruge- added rule for simplify if
0a931426fLennart Ochel- revise some functions
73d78b46bMartin SjölundFix bootstrapping (broken by r21745)
4754df08cOpenModelica Hudson[Janitor mode] Fix whitespace
d78f5d939Jim NutaroAdded start of a sparse FMI generator for creating QSS compatible FMIs
01f715710Martin Sjölund#2768 Instantiate partial functions in the normal way when running checkModel
c5b3732c6Marcus Walther- update for msvc hpcom code generation
4968dc240Martin Sjölund#2769 Traverse the function body of used partially evaluated functions when looking for unused functions...
3b9a7c99eMartin Sjölund#2770 Handle vectorization of function calls with unknown array dimensions better
36a12e651OpenModelica Hudson[Janitor mode] Fix whitespace
5441ab153Marcus Walther- hpcom msvc support added - debug output for hpcomMemory included to find array unrolling issues
37959e229Martin SjölundImprove message for mismatching array dimensions
24d7c69efOpenModelica Hudson[Janitor mode] Fix whitespace
202151f72Martin Eitelanother buffer optimization in MatfileWriter.h
0ccc50e8eMartin SjölundTypo
41912ee23Martin SjölundSome refactoring
03a6c8a8dMarcus Walther- fixed bootstrapper
affaf685bVitalij Rugeadded some solver rules
07dc105ecVitalij Rugeadded solver rule for power
47406332dVitalij Ruge- solver rule for power
f8c335f97Lennart Ochel- break redundant calculations
212bc3034Lennart Ochel- cleanup and simplification - generate more efficient data structures - setupVarReplacements (former equationsReplaceEquations) is now only traversing marked components instead of all of them - function compsMarker - ... generates now also a list with all indices of the marked equations - ... will be revised completely in one of the next revisions
1f74e224cOpenModelica Hudson[Janitor mode] Fix whitespace
201e144abNiklas Worschechdisabled write parameter vars for csv in cpp template
86af412d4Lennart Ochel- avoid unnecessary recursions - avoid array to list conversions and vice versa
399467933OpenModelica Hudson[Janitor mode] Fix whitespace
21f3aafbcMarcus Walther- fix for hpcom: the hpcomMemory logic is now fully disabled if the hpcomMemoryOpt-Flag is not set - hpcom execstats slightly changed
82730c902Marcus Walther- fix for NOTFOUND - Bug if boost log is not installed
ac453cff1Vitalij Rugefixed r21710 (atan2)
aeb3692faOpenModelica Hudson[Janitor mode] Fix whitespace
7a48a1e54Vitalij Ruge- fixes from static analysis - uncomment diff(atan2(y,0)) rule
bd4ed227dOpenModelica Hudson[Janitor mode] Fix whitespace
66c0c054aLennart Ochel- merged revision(s) r21547-r21703 from branches/initialization/ - completely new initialization approach for under-determined, over-determined and simultaneously under- and over-determined systems - symbolic consistency check for over-determined (sub-)systems
100c73a21OpenModelica Hudson[Janitor mode] Fix whitespace
76f42ac47Niklas Worschechremoved unnecessary initialization in cpp template.
7e5a61edbOpenModelica Hudson[Janitor mode] Fix whitespace
c8d620cf0Vitalij Rugeadded some rules for atan2
c7a4c0deeMartin SjölundAdd function stringTypeName, the inverse of typeNameString
68b75685fOpenModelica Hudson[Janitor mode] Fix whitespace
66c25e78cVolker Waurich- replace crefs in nonlinear systems for tds
35e14af65OpenModelica Hudson[Janitor mode] Fix whitespace
b7b7440a3Marcus Walther- Cpp-Runtime: initializeParameterVars-function is now seperated into blocks of 100 variables - HpcomMemory: some more dump functions added
88badee9fOpenModelica Hudson[Janitor mode] Fix whitespace
285282dffVolker Waurich- some fixes for tds
a1a4b77f1Martin SjölundCevalFunction: Handle `size(arr,1)` where arr is an array with unknown dimensions (previously, 0 was used regardless if the array had been assigned to)
74ea2b776OpenModelica Hudson[Janitor mode] Fix whitespace
166ea80c9Volker Waurich. fix tds for systems with discrete equations
bfad62f19Willi Braun - fix differentiation of atan2
4de7557d7OpenModelica Hudson[Janitor mode] Fix whitespace
39f02fcb9Volker Waurich- reassign all indexes of simEqSystems when duplicating tasks
76475bdb5Adrian Pop- fix bootstrapping (BackendDAE.EQ_ATTR_DEFAULT_INITIAL is a constant, not a record constructor)
457763ab3Adrian Pop- fix bootstrapping (BackendDAE.EQ_ATTR_DEFAULT_UNKNOWN is a constant, not a record constructor)
641f1ad92OpenModelica Hudson[Janitor mode] Fix whitespace
180519f77Adrian Popimplement #2760 - allow comments with // only in the override file
445b5291bOpenModelica Hudson[Janitor mode] Fix whitespace
cbf20223fMartin Eitelusage of temp buffers in MatlabFileWriter.h optimized
cf3a305e4Willi Braun - fixed iterator variables for symbolic jacobians
bacb3f99aOpenModelica Hudson[Janitor mode] Fix whitespace
cb83b441bLennart Ochel- use predefined default equation attributes
c45cf3fc8Lennart Ochel- use predefined default equation attributes
895e19966Lennart Ochel- rearrange equation attributes - new equation attribute for sub-clock partitioning
ff35d4a20Willi Braun#2762 - removed findSimVar and replaced by findSimVarCompare
dc2841fbdOpenModelica Hudson[Janitor mode] Fix whitespace
473457990Volker Waurich- update equations in linear systems when duplicating tasks
e0b690d70OpenModelica Hudson[Janitor mode] Fix whitespace
bb93cf3dfMartin Eitelreduced the number of allocating and reallocating temp buffers
7b1e4349fOpenModelica Hudson[Janitor mode] Fix whitespace
013a42bf7OpenModelica Hudson[Janitor mode] Set auto-props
37b566e81Martin EitelAdded MatFileWriter to cpp runtime. Adapted cpp runtime testsuite for the new MAT file output.
a101ea1ebVolker Waurich- fix bootstrapper
59b2c4d85Marcus Walther- get condition system partially deactivated because it consumes to much memory - some time points renamed
9915dcc7eVolker Waurich- get schedulerInfo for levelSchedule
656cb22c1Marcus Walther- excluded boost thread and atomic versions lower than 1.54
c8e0b29d4OpenModelica Hudson[Janitor mode] Fix whitespace
ffa477f49Volker Waurich- don't calculate level in getCriticalPaths
bc51f02a7Willi Braun#2752 - fixed mergeZeroCrossings
56ff9ccf8OpenModelica Hudson[Janitor mode] Fix whitespace
b408a20b7Marcus Walther- fixed pThread and mixed code generation of cpp-runtime - updated the hpcom testsuite
b9a7d5454OpenModelica Hudson[Janitor mode] Fix whitespace
d8d01ca84Volker Waurich- generate complete DAE task-graph including asserts
65d11fa3dOpenModelica Hudson[Janitor mode] Fix whitespace
c07507f79Marcus Walther- we are now using boost_LIBNAME_found instead of boost_LIBNAME_library to check if the boost library was found on the system. This should fix the linux_nightly_build
ae4957c8cVitalij Rugefixed build
d8ac563efVitalij Rugefixed jacobian index in optimization
b7c173b6bOpenModelica Hudson[Janitor mode] Fix whitespace
6e0795ffaWilli Braun - fix compilation
621c5caaeMarcus Walther- removed circlar dependency between hpcomsimcode and simcode
03f640ed3Marcus Walther- removed circular dependency of hpcomSimCodeMain and hpcomScheduler
681a7582bMarcus Walther- some changes for the HPCOM Memory-Optimization - added the boolean variable useFlatArrayNotation to the cpp-runtime, which will access arrayElements by name_index instead of name[index] - another change of the cpp-runtime cmake-script which will hopefully fix the linux nighlty build
a21fd7de0OpenModelica Hudson[Janitor mode] Fix whitespace
35717019eLennart Ochel- new output-format "ia", which sends the simulation results to a TCP/IP server
ddb5824e8Rakhi WarriarModified python file for ngspice to Modelica conversion.
6eb641089OpenModelica Hudson[Janitor mode] Fix whitespace
cfe62e8e5Mahder Alemseged GebremedhinFix #2749. Indexed assignments with integer arrays
cffed7b58OpenModelica Hudson[Janitor mode] Fix whitespace
48a7df60bMahder Alemseged Gebremedhin+ Fix #2688. Removed replacing of loop iterator dependent crefs with ASUB expressions.
0bf696ce5Niklas Worschechfix for missing timer include in Modelica.h
d96be3cb6Marcus Walther- fix for non terminating stateSelection
52bcf3fcfNiklas Worschechremoved boost timer include
eabce4691Adeel Asghar- minor formatting and proper comment.
db1c138ddNiklas Worschechfix for fmu global settings in cpp runtime
ceee2fe9dOpenModelica Hudson[Janitor mode] Fix whitespace
5e0df259dOpenModelica Hudson[Janitor mode] Set auto-props
afbe38b4fNiklas Worschechfix for free system object in cpp runtime
cc973b39dOpenModelica Hudson[Janitor mode] Set auto-props
e1e8edcadRakhi WarriarAdded function ngspicetoModelica() to convert ngspice netlists to Modelica code.
5bb97160cVitalij Rugefixed r21575
13ef4000dVitalij Rugefixes from static analysis
ca8d66af7Vitalij Rugefixes from static analysis
ddebf3fd7Vitalij Rugefixes from static analysis
8fb3ad2fbOpenModelica Hudson[Janitor mode] Fix whitespace
951965855Vitalij Ruge-fixes from static analysis -added warning if jacobian matrix is singular
2992cc427Vitalij Rugefixed memory leak
630cb8063Vitalij Rugeadded case for extraPolate
154d6b16aVitalij Rugefixes from static analysis
05474c599Vitalij Ruge- fixes from static analysis
2fb3bdfd6Willi Braun - added improved newton solver with damping strategies - added -newton flag to simulation runtime to select different strategies
94f010849Lennart Ochel- fix expected output
b362d8b03Willi Braun - added TRACE_PUSH and TRACE_POP to all generated equations and functions
0c1f5dc38Marcus Walther- fix for linux_nightly_build
996d14353Lennart Ochel- analyze base-clock partition kind
ba5bcf17bOpenModelica Hudson[Janitor mode] Fix whitespace
fc0f72646Volker Waurich- added experimental scheduler single block schedule - updated hpcom tests for linear tearing
40385fa7aOpenModelica Hudson[Janitor mode] Fix whitespace
589e0a424Willi BraunActivate doLinearTearing by default, therefor - expanded SimCode.SES_LINEAR for directional derivatives - adjust all codegen templates - generates by default directional derivatives for linear systems in calculateStrongComponentJacobians. - added capacity to runtime lapack solver to handle that jacobians. - Ajusted tests. - Follwiong 3 examples start to fail now: - Modelica.Electrical.Analog.Examples.DifferenceAmplifier.mos - Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.mos - Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.mos so they run for now with nodoLinearTearing. - Also the 2 hpcom examples don't run with doLinearTearing. - Also for the Cpp runtime it's deactived for now and can be actived, when the cpp-runtime is prepared therefore.
c1a9b436cOpenModelica Hudson[Janitor mode] Fix whitespace
d28d6cb4eNiklas Worschechfix for set dimZerofuncs in SimManager
a9767e0dcOpenModelica Hudson[Janitor mode] Fix whitespace
faa5f83cfMarcus Walther- removed the get / setResultOutput-functions from the globalSettings - some more compile time optimisations for the cpp runtime
ecc780a40Volker Waurich- calculate the max range of addressed indexes in a for-loop if the index is a computable expression
97b0c594fNiklas Worschechfix for boost log lib name
6e2f48272Martin SjölundFix the templates
669acbc4dLennart Ochel- fix error message
86bff8bd4OpenModelica Hudson[Janitor mode] Fix whitespace
da9514b7dMarcus Walther- fixed missing _function member-variable in c++ - algLoops
f209f27eeOpenModelica Hudson[Janitor mode] Fix whitespace
950f8783bBernhard ThieleDeleted flag +synchronousFeatures and replaced it by checking for flag +std=3.3 or greater
12bda0411OpenModelica Hudson[Janitor mode] Fix whitespace
aa4ecad84Niklas Worschechfix for time in Functions of cpp runtime
4452976beOpenModelica Hudson[Janitor mode] Fix whitespace
dbe0c230cMarcus Walther- Update for MSVC-FMU makefile
389ad05bfOpenModelica Hudson[Janitor mode] Fix whitespace
a4ff4b5a4Marcus Walther- reduced compile time of cpp-runtime by including the cpp-files directly into a "meta cpp file"
bf22c5b3bOpenModelica Hudson[Janitor mode] Fix whitespace
24208434dMichael Kloeppelexcluded check for umfpack
a147e87e6Michael Kloeppelfurther bugfixes for umfpack-integration in CPP-runtime
3adc02481Marcus Walther- fix for windows build
aa070cc2dPer Östlund- Fixed bootstrapping.
13574ec3cVolker Waurich- fix expandCref for qualified crefs containing arraytypes of complex types
e951b61b5Lennart Ochel- merged r21292-r21522 from branches/SynchronousModelica/
3ab3f3c2fMarcus Walther- fixed state var reinitialization in CVode
e92fb0b54Martin SjölundAllow passing constant identifiers as inputs to external functions (dgees uses a protected constant array as dummy input to F77)
a4f66cff5Martin SjölundAlso print some nice information about the used packages
2bd708899Martin SjölundAdding script to read the .uses and .classes files from coverage testing
a4102c3ddMarcus Walther- find_package(suitesparse) fully disabled to fix OSX build - hpcom condition graph creation disabled to fix hpcom tests
be51e1b6aMartin SjölundIncluded class coverage when running BuildModelRecursive.mos (not part of the reports)
efc9a6be5Marcus Walther- fix for FMI tests
0e8a14f8fMarcus Walther- umfpack temporary disabled
9c8063449Marcus Walther- rml fix for HpcOmScheduler
8de9a4433Marcus Walther- hpcomTaskGraph fixed (I don't know why it is not producing these errors on my local machine)
423733555Marcus Walther- hpcomTaskGraph fixed
18f3391c7OpenModelica Hudson[Janitor mode] Fix whitespace
2dbbd849cMarcus Walther- equations to evaluate conditions added to simcode-structure (currently only available with hpcom) - the event-taskgraph exported by hpcom is now correct - conditions can now be evaluated with evaluateConditions instead of evaluateAll - prototype for asynchronous writeOutput added to cpp runtime - removed some stuff from the cvode-implementation (hopefully this will not damage any tests) - the boost log and thread libraries are now optionally included into the cmake build process - added logging for cvode if the boost log-library is available - the cpp runtime is now able to differentiate between varios output methods (write all output steps + event steps, just output steps, no output) - some comments and small bug fixes
6fbfb4e1dVolker Waurich- nodes can be blocked for the task rewriting system so that they are not going to be merged
24f083572Lennart Ochel- enable base-clock partitioning - new dump: +d=dumpSynchronous
74c35c499Adeel Asghar- DiscreteStates has been removed in RC2. - Generate FMI model structure for all sim vars.
a62d144a3Vitalij Rugefixed pre-sim for optimization
9ca15af52Martin SjölundAdding API call `getUsedClassNames`, which is a combination of `saveTotalModel` and `getClassNames(recursive=true)`
d2fcd6d9bVolker Waurich- added dump functions (output string) and print functions for all hpcom task and schedule objects
e80441887OpenModelica Hudson[Janitor mode] Fix whitespace
2dbb2737bLennart Ochel- base-clock partitioning (incomplete yet) - propagation of new attribute EQSYSTEM.partitionKind - new incidence matrix type: BASECLOCK
3467c6dddOpenModelica Hudson[Janitor mode] Fix whitespace
ba38758bcVolker Waurich- added some functions to analyse systems of equations
2d41741c9OpenModelica Hudson[Janitor mode] Fix whitespace
88176d847Volker Waurich- fixed graphML generation for resolveLoops
5f1c26cd7Volker Waurich- removed unreferenced function call
294fe934fOpenModelica Hudson[Janitor mode] Fix whitespace
d1301c2d8Volker Waurich- added bipartete and DAG graphML output for systems of equations
3a6590e31Niklas Worschechchange solver lower limit and simmanger end time tolerance of cpp runtime
2f853649aVitalij Rugeremove wrong rule
40b8b4abdAdrian Pop- fix bootstrapping
3a04273daOpenModelica Hudson[Janitor mode] Fix whitespace
1830f906cVitalij Rugeimproved rules for pow in ExpressionSolve.mo
bff32a8f9Volker Waurich- changed getGraphLevel to improve memory requirements
838343169OpenModelica Hudson[Janitor mode] Fix whitespace
13fd99112Vitalij Rugeimproved guarding rule in ExpressionSolve agianst sign and IFEXP
322f92bb5OpenModelica Hudson[Janitor mode] Fix whitespace
0268b2928Niklas Worschechfix in kinsol, change stability mode in cvode of cpp runtime
a90c0d19eVitalij Rugefixes from static analysis
873f788c4OpenModelica Hudson[Janitor mode] Fix whitespace
95c3a0726Vitalij Ruge- clean up ExpressionSolve (features from r21400) - guard IFEXP in ExpressionSolve against dependency in condition
bbb37c78dOpenModelica Hudson[Janitor mode] Fix whitespace
ca0bd020fJan SilarFixing c# template -- problem with intial values
6b1b493c4Martin SjölundAdd some documentation for dumpXMLDae
94e9edeaaVolker Waurich- fix bls for branchingDynamicPipes
0ca026b62Volker Waurich- extend printSchedule for EMPTYSCHEDULE
de7fe4356Volker Waurich- fix bls scheduler for taskgraphs with shorter critical paths than level
6a46745a4Volker Waurich- rewritten SimCodeUtil.getMaxSimEqSystemIndex
756ee90f7Volker Waurich- removed unused functions, added comments for bls functions
398aa7c94Martin SjölundHandle the inverse of log10. Rewrite ExpressionSolve to swap the arguments instead of writing two cases for each expression to solve for...
e1e2be202Volker Waurich- rewritten bls scheduler
cb80b9a98Martin SjölundWrite incomplete result-files, so it is possible to see the signals until the error was triggered
83e92ebf1Michael Kloeppelbugfixes for umfpack-binding
662bb3ad1OpenModelica Hudson[Janitor mode] Fix whitespace
aae287e9dMichael Kloeppelfix bug with non-existent umfpack.h
4193688b1Jan SilarC# template fix discrete variables, division
b79bb9825Michael Kloeppelfurther bug fixes for the sparse matrix format in cpp-runtime
a3a6fb47bPer Östlund- Fix RML compilation.
868301b81OpenModelica Hudson[Janitor mode] Fix whitespace
26bf7aa24Per ÖstlundFix for #2743: - Extended Expression.transposeArray to handle >2 dimensions. - Removed evaluation of transpose from Static and Ceval, let ExpressionSimplify handle it instead.
8f16a5d94Per ÖstlundFix for #2741: - Fix connector size count for subtypes of basic types.
4644d3a95OpenModelica Hudson[Janitor mode] Fix whitespace
6eb0c5790Vitalij Rugeadded rule in ExpressionSolve for sqrt
516d80e8dMichael Kloeppelfixes bug with sparse_matrix type
406ecfb82Martin SjölundFix the logic of min/max of integer arrays
fc96b9af9Martin Sjölundmin({}) is not 0...
dd1c2953aMichael Kloeppelallows to use the sparse linear solver umfpack in the cpp-runtime
03b5a946cOpenModelica Hudson[Janitor mode] Fix whitespace
62fb464ecVitalij Rugefixed #2682
b8c1db77aMartin SjölundOutput annotations on external declarations so total models are complete
8d4ad273bOpenModelica Hudson[Janitor mode] Fix whitespace
f94e6822eMartin SjölundFix order of prefixes (`discrete input`, not `input discrete`)
ee3a7f754Marcus Walther- CALCTASK_LEVEL_SERIAL removed -> the level-scheduler has a list of tasklist-items now, which can be serial or parallel (see HpcomSimCode) - Codegeneration for BLS-Scheduler added (seems not to work correctly at the moment)
8b67345edVitalij Rugefixed r21364
bc13138a0Vitalij Ruge- improved solver rule x = y^n
63931702dVitalij Ruge- fixed r21362
feac0c5aeVitalij Rugeadded solver rules for g(a)/f(a) = b
6bb67be09OpenModelica Hudson[Janitor mode] Fix whitespace
9b7183834Vitalij Ruge- improved solver rules - f(a) * b = c => f(a) = c/b - b / f(a) = c => f(a) = b/c solver for a
11ff408f2Vitalij Rugeimproved ExpressionSolve - log(f(a)) = b - exp(f(a)) = b
27511cb01Martin SjölundRML
9070d0edeMartin SjölundsaveTotalModel change - The exported model is added at the end of the file, extending from the base class and with the original annotations added (for experiment annotations) - showAnnotations=false (the default) will now only remove useless annotations like graphical annotations. experiment, Evaluate and other things not on the blacklist will pass through.
281175ea6OpenModelica Hudson[Janitor mode] Fix whitespace
e9b0cc46fVolker Waurich- fix analyseScheduledTaskGraph for serial level calcTasks
329dc6608Marcus Walther- forgot the suiteSparse-Package file
2fbbd22bfOpenModelica Hudson[Janitor mode] Fix whitespace
7fa0d9934Martin Sjölund`+d=execstat` now adds the information to the Error.mo buffer instead of stdout - execstat now records cumulative time - Boehm GC now reports memory consumption - Made the execstat report smaller (1 entry for sorting, 1 for matching, instead of 30000 entries for every small work item)
6bea75120Volker Waurich- fixed hpcom simEqSys mapping for SINGLECOMPLEXEQUATION components - added test Graetz
09100735eOpenModelica Hudson[Janitor mode] Set auto-props
7f0b6a33fMarcus Walther- SparseMatrix-Support added for umfpack-linear solver
10b2b6f0fMartin SjölundAdd more details about the system to the generated mos-files
bd46bfabeMartin SjölundFix the library last change line
8e7353fc5Volker Waurich- replace function longestPathMethod with getCriticalPaths - some clean up - predict speedUp for level scheduling
be7e0df81Vitalij Rugeguard atol again nominal <= 0
65e0b71caMartin SjölundFix the last compliance test for partially evaluated functions
70e7dcf45Martin SjölundHandle PARTEVALFUNCTION that specializes a variable rather than a function
7f0b1fbd4Martin SjölundAdd missing changes
9056c51d8Martin SjölundChange the error to a notification since sometimes we need to allow it...
f5cbe3bb8Martin SjölundImprove Susan error handling
aadb80dbbMartin SjölundDon't remove functions that are passed through CREF in the backend (partially evaluated functions use it)
216870200Martin SjölundGenerate correct boxptr code for `String[:]`
919b5577bOpenModelica Hudson[Janitor mode] Fix whitespace
19bb0032bNiklas Worschechfix in Kinsol of cpp runtime
b483b8461Martin SjölundFix template
88a4cc25aOpenModelica Hudson[Janitor mode] Fix whitespace
60b101823Niklas Worschechfix in cpp template for algoop evaluation changed zero crossing tollernce in cpp template change absolute tollerance in cvode
0d74baddaMartin Sjölund#1949 Changed implementation of DAE.PARTEVALFUNCTION - PartFn.mo was removed - We now create a closure in the code-generation instead
5c8950a83Volker Waurich- fixed level scheduling
1456d7c11Per Östlund- Fixed bootstrapping.
b2495eb1dOpenModelica Hudson[Janitor mode] Fix whitespace
1369dcaa0Per ÖstlundFix for #2738: - Respect fully qualified crefs in Static.elabCrefSubs. - Some random code cleaning in Expression.
98565f676OpenModelica Hudson[Janitor mode] Fix whitespace
b9c9d00c8Patrick Marcel Taeuber- fixed some problem with tearingSelect=always
3f7d5949dVolker Waurich- replace function makeCalcLevelTaskLst
9f87423c7Martin SjölundAdd some source info to the Susan error-message for number of arguments don't match
ca3621178OpenModelica Hudson[Janitor mode] Fix whitespace
7d223b31aVolker Waurich- fixed level attribute in graphml output for level scheduling - added serial level calc object - added bls scheduler
fedf084d6OpenModelica Hudson[Janitor mode] Fix whitespace
acfdc860bNiklas Worschechfix for Chuacircuit in Cvode an kinsol
01c76a6d6Per Östlund- Removed some redundant calls to simplify1 in ExpressionSimplify.simplifyBinaryCoeff. Speeds up instantiation of BatchPlant_StandardWater with 25% (4m45s => 3m30s for me).
a0c13ebdbMartin SjölundFix the type of a simplified `fill()` expression - Some additional debugging code for the `+t` flag
74ec2d697OpenModelica Hudson[Janitor mode] Fix whitespace
3396bc635Niklas Worschechadd missing interface method
2f2c19098Niklas Worschechadded get nominal state to cpp template, fix for redundant algloop equations
784f8ad3aMarcus Walther- fix for non terminating EventHandling in Cpp-Runtime
a141edbecMartin Sjölund#2731 Always append `/` for `classDirectory()` calls
0f68eb18bMarcus Walther- fixed HPCOM build
b3c3891eePer Östlund- Implemented BaseHashTable.copy and used it in InstExtends.fixClassdef, instead of the previous slow way of building a new hashtable element by element. fixLocalIdents went from 40s to 15s for BatchPlant_StandardWater for me.
a98159c70Martin Sjölund#2731 Append the path delimiter to the string returned by `classDirectory()`
f7982527eMartin SjölundC fix
69ea80d97Martin Sjölund#2641 Use C++ locale-independent functions when reading csv-files in OMPlot
a3569c4e2OpenModelica Hudson[Janitor mode] Fix whitespace
49ba3084bVolker Waurich- fix hpcom for algorithm components with multiple outputs - little clean up
0386b3bc0Martin SjölundRemove some more references
b48ffb26cOpenModelica Hudson[Janitor mode] Fix whitespace
4593c5265Marcus Walther- fixed some compiler warnings of the cpp-runtime build with gcc - added HPCOM_MEMORY_OPT-Flag to use experimental memory optimization - some simple optimizations for the cpp-runtime - papi-support to hpcom-codegen added
f6c5956caMartin SjölundRemove string_util.{c,h} since that version of strtod spins in too many cases. Going back to strtod, which is locale-dependent, but at least works as long as external C code does not set the locale.
ab3fa9bb4Volker Waurich- use matchcontinue in mergeSingleNodes
bda85c0adOpenModelica Hudson[Janitor mode] Fix whitespace
a7b82baa1Vitalij Rugeduplicate case from max to min
a475d6aaeMartin SjölundAdd options to CustomCommands.mos to make it possible to generate the directory structure of the MSL regression testing suite
0c605c9d6OpenModelica Hudson[Janitor mode] Fix whitespace
44edc3c51Volker Waurich- fix for distributeToClusters in mergingSingleNodes
1df5178c9OpenModelica Hudson[Janitor mode] Fix whitespace
129cfad5eVolker Waurich- level schedule rewritten, handles merged tasks - remove some unused stuff
cd397679dVitalij Ruge- improved optimization order 1
a98489390Vitalij Ruge- improved optimization - sorting
66700f86dMartin Sjölundm:r7723 fixes Fluid.Dissipation issues, so we no longer need to set the debug-flag
aaf147ec1Lennart Ochel- fix some runtime messages
774bc97c8Volker Waurich- fix mergeSingleNodes
fedd2f6c5OpenModelica Hudson[Janitor mode] Fix whitespace
78969c0a3Lennart Ochel- improve over-determined initialization approach - If it is necessary to evaluate parameters for the consistence check, the check will now be performed during runtime.
117a1c8bfVolker Waurich- activate mergeSingleNodes
1b1bac410Volker Waurich- fix bootstrapper
a0a33c4b7OpenModelica Hudson[Janitor mode] Fix whitespace
6f1340f20Volker Waurich- added new graph merging rule, mergeSingleNodes, not yet activated
f4c51dbe9Lennart Ochel- remove unused imports
9d71aea43Per Östlund- Fixed RML compilation.
90d2f883cOpenModelica Hudson[Janitor mode] Fix whitespace
8914fdea2Per ÖstlundFix for #2723: - Check for connect in when equations and if equations with non-parameter conditions. - Cleaned up some test cases.
ffd890ff2Lennart Ochel- attempt to fix #2708 (unquote q-idents)
7f9a6aee3OpenModelica Hudson[Janitor mode] Fix whitespace
8aa75448aMahder Alemseged Gebremedhin+ unquote more. make sure to unquote each ident and not just the whole cref/path string.
7beba6b9bPer Östlund- Made SimCodeUtil.setVariableIndexHelper tail recursive to fix some test cases for the bootstrapped compiler.
cd63ceb8aMartin SjölundBetter coding style fix
4a88d3475Adrian Pop- fix coding style?
fa824f63dMartin SjölundFix for xml logFormat where messages contain quotes
9e7a35982Per Östlund- Removed propagation of modifiers when instantiating equations and algorithms, since those can't be modified anyway.
f82d1766dOpenModelica Hudson[Janitor mode] Fix whitespace
cf469df0bOpenModelica Hudson[Janitor mode] Set auto-props
f6352ead4Adeel Asghar- Updated to FMI2 RC2 from FMI2 RC1.
94b99d60fVolker Waurich- limit the number of vars in the resolved equations
a86388de4Vitalij Ruge- imporved rule x/c1 = c2*x
3c1edf04cOpenModelica Hudson[Janitor mode] Fix whitespace
3a23460fbVitalij Ruge- improved optimization - evaluation derivations
120174475Michael Kloeppelfixed a bug connected with an empty _compiler_FLAGS variable
228d361ceOpenModelica Hudson[Janitor mode] Fix whitespace
10cd1f8a3Niklas Worschechfix in Kinsol, catch exception change evaluate call in cvode calcfunction
05cbd148dOpenModelica Hudson[Janitor mode] Fix whitespace
dffd80f47Per ÖstlundFix for #2729: - Don't try to evaluate crefs which are not function parameters when resolving default bindings in Static.addDefaultArgs. - Some random code improvements.
80df2297dOpenModelica Hudson[Janitor mode] Fix whitespace
995507763Marcus Walther- Analyzation Mode fixed
c310fe43eMarcus Walther- fix for CPP runtime
270650f96Martin SjölundUpdating ThermoSysPro to 3.1 - Note: 1 testcase now fails (TestStaticCentrifugalPumpWaterSolution). I cannot verify if the new results are in line with Dymola, so someone else should check it.
6f4798863OpenModelica Hudson[Janitor mode] Fix whitespace
c6031169fNiklas Worschechfix for init aliasvars in cpp template
1e289f80dMarcus Walther- updated the FMUGlobalSettings to the new IGlobalSettings interface
f4b199ce9Marcus Walther- updated the FMUGlobalSettings to the new IGlobalSettings interface
818e77e4aMarcus Walther- copy-command for LinSolverOMCFactory added
2c371ba6dMarcus Walther- copy-command for ILinSolverSettings added
379c97bb2Adeel Asghar- Make OpenModelica 2.0 FMUs work for Dymola.
df2d71f41Volker Waurich- added function SimCodeUtil.getAssignedSimEqSysIdx
5cde57e5aOpenModelica Hudson[Janitor mode] Fix whitespace
af4d8bb2cMarcus Walther- added forgoten file
74025114cOpenModelica Hudson[Janitor mode] Fix whitespace
1ab50888fMarcus Walther- linear solver interfaces for equation systems added - command line options for linear and nonlinear solver added ("-L name" and "-N name") - sparse solver format included - umfpack-solver dummy added (will be filled soon by mkloeppel)
681407b93Lennart Ochel- fix over-determined initialization (e.g. ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc)
0d9dee92eAdrian Pop- fix bootstrapping
55219bca6OpenModelica Hudson[Janitor mode] Fix whitespace
23c767338Adeel Asghar- Write derivatives dependecies.
f0a3a19d9Niklas Worschechfix for subscripts in cpp template
0c26cb2e7Martin SjölundFix balancing of XML tags with -w and non-linear system errors
2b55d3df9OpenModelica Hudson[Janitor mode] Fix whitespace
cd3a2f927Marcus Walther- removed some warnings of the gcc build - changed the globalSettings reference to a pointer (just a quickfix to get the ANALYZATION_MODE running)
b2f1e4f94OpenModelica Hudson[Janitor mode] Fix whitespace
9a58493c0Adeel Asghar- Generate the outputs & derivatives in the model structure section.
b0efe4eadMartin SjölundOSX fixes for Modelica3D
5995980b0Martin SjölundFix debugging line...
a1df5d5d1Martin Sjölund#2654 Use OSX-specific suffixes
2371918d3Adeel Asghar- Use variable_index instead of index to define ordered indexes for simvars.
84c869f1fAdrian Pop- revert r21108 as it breaks almost everything (1k failing tests and 2h53m clang runtime instead of 6m): https://trac.openmodelica.org/OpenModelica/changeset/21108
a5051976dOpenModelica Hudson[Janitor mode] Fix whitespace
713db2b82Adeel Asghar- Define ordered indexes for simvars. Used in FMI 2.0 model description xml file.
b6f65b913OpenModelica Hudson[Janitor mode] Fix whitespace
af660efe4Niklas Worschechfix for struct in cpp template
a6b54f382Willi Braun - added flags maxStepSize and maxIntegrationOrder for dassl.
cd0e9bdf4OpenModelica Hudson[Janitor mode] Fix whitespace
9a28c82b9Niklas Worschechfix for record return type in cpp template expected output
fb8e34064Lennart Ochel- fix for complex equations in over-determined systems
c495c2687Niklas Worschechfix in cpp template for missing evaluate
45b3430a2Niklas Worschechchanged linking order in cpp template
31a18eddeMartin SjölundAdd debug flag `+d=acceptTooManyFields` - The flag is disabled by default, and will accept calling a function with a record that has more fields than expected - This behaviour is considered breaking the Modelica spec in m:#1245 - The flag makes Fluid.Dissipation work again, and it is the default for library testing until Fluid.Dissipation is updated
51fbb1e1eWilli Braun - fix xml variables xml modelinfo
645af8572Martin SjölundLink to the correct OMC versions
d7f633450Martin SjölundMake the regression testing of library results work again
e56806656OpenModelica Hudson[Janitor mode] Fix whitespace
9f4703dbdMarcus Walther- the hpcom module can now create the serial code (designed for testing) - fixed the tbb-codegeneration
326c054cbAdrian Pop- attempt to fix bootstrapping, more assignments to inputs
16098af93Adrian Pop- attempt to fix bootstrapping, use mOut instead of mIn in: Initialization.manipulatedAdjacencyMatrix2
9929864afLennart Ochel- improve initialization approach for over-determined systems - add some test cases for over-determined systems
fa647283aNiklas Worschechdisabled boost log in cmakefile
e15119d69OpenModelica Hudson[Janitor mode] Fix whitespace
1dd34cffbNiklas Worschechexpected output updated boost in cpp runtime
8e0b025e8Martin Sjölund#2724 - Reject non-constructor functions returning an external object
21e64e6b8Martin SjölundFree allocated data
2396ae48fMarcus Walther- fixed segmentation fault
510ae9757Adeel Asghar- Fixed fmiNewDiscreteStates function.
c571ce20bMartin Sjölund#2722 - Generate function definitions in list(OpenModelica...) again - Cache the initial SCode.Program
2782105acVolker Waurich- append String to last ident instead of joinCrefs when duplicating variables - extended dumpSimCode
2a9f2ec98OpenModelica Hudson[Janitor mode] Fix whitespace
41abe648fVolker Waurich- use scheduled task graph to get scheduleInfo and CriticalPathInfo
4f5525a49Lennart Ochel- fix propagation of equation kind property
1401f1d88OpenModelica Hudson[Janitor mode] Fix whitespace
70e0221d1Lennart Ochel- propagate equation kind property
15206e375OpenModelica Hudson[Janitor mode] Fix whitespace
8ccd3386cPer Östlund- Fixed RML compilation.
439f7667fPer Östlund- Greatly speed up flattening of large arrays by using simplified lookup when prefixing.
fa611fab5Lennart Ochel- fix some include paths
996080989Marcus Walther- fixed build
7fafe6164OpenModelica Hudson[Janitor mode] Fix whitespace
76f6256c0Volker Waurich- update modelInfo for tds
d269c49beOpenModelica Hudson[Janitor mode] Fix whitespace
4547136abChristian SChubertsimulationruntime: doublecheck, that the number of allocated linear/nonlinear/mixed systems and statesets is greater or equal to the number used in the generated c-code Otherwise we get unexpected behaviour which is quite hard to find
90ed7d058OpenModelica Hudson[Janitor mode] Fix whitespace
7ea333a0aMarcus Walther- the hpcomMemory-Module can now handle contracted nodes and state variables - fixed the double description in graphML-files
482fa414eOpenModelica Hudson[Janitor mode] Fix whitespace
825776419Niklas Worschechadd variable description and paramter values to writeoutput in cpp template
241155c6bOpenModelica Hudson[Janitor mode] Fix whitespace
717b0571eVolker Waurich- insert locks in schedule with duplicated tasks
20917573aVolker Waurich- fix bootstrapper
aee9b982eOpenModelica Hudson[Janitor mode] Fix whitespace
07cfc7399Patrick Marcel Taeuber- manual selection of tearing variables now also works for omcTearing (see r20929)
9ee20c1c4Adeel Asghar- Set FMU model states according to FMI specifications.
233e4d9ccAdeel Asghar- Added empty ModelStructure format for modelDescription.xml - Added fmiEventUpdate.
1f8c58b3eOpenModelica Hudson[Janitor mode] Fix whitespace
161207b34Lennart Ochel- propagate equation kind property
7ec9b651dMartin SjölundPrint initial equations for the debugger better
0ece1f2adOpenModelica Hudson[Janitor mode] Fix whitespace
a4eb77ff5Volker Waurich- build a new task graph including duplicated tasks
6f06ccdfaAdeel Asghar- Implemented fmiSetContinuousStates, fmiGetDerivatives, fmiGetEventIndicators, fmiGetContinuousStates & fmiGetNominalsOfContinuousStates functions for FMI 2.0 export.
2b5e60a15Per ÖstlundFix for #2720: - Call external object constructors in the order as they are defined in.
3632c44a5OpenModelica Hudson[Janitor mode] Fix whitespace
aed9fe047Lennart Ochel- fix for impure built-in calls - define impure built-in functions in ModelicaBuiltin.mo - don't override isImpure attribute for built-in calls - somewhere is still an error for delay calls at least
945453e5eJim NutaroFixed problem with initializing if statements in the adevs backend
b670f88e1Willi Braun - added a inner ring-buffer for dassl solver to ensure consistent extrapolation data for non-linear loops.
f0e986fcfWilli Braun - fix bug #2718
53982805dOpenModelica Hudson[Janitor mode] Fix whitespace
7135e1c01Volker Waurich- add initial equations for duplicated tasks
368966f4fNiklas Worschechchanged evaluate call in CVode
9a672be46OpenModelica Hudson[Janitor mode] Fix whitespace
428164885Niklas Worschechchanged in Kinsol and CVode some tolerances
1f3b48e4aVolker Waurich- replace duplicated crefs in non-duplicated tasks
8116dbb7aNiklas Worschechfix for makefile in cpp template
fa69c6349Niklas Worschechswitched build of cpp runtime to release
c532c4753Martin SjölundFix the icon generation
4015c5049Martin SjölundChanged OMPython version from 1.0 to 2.0 - The 2.0 version uses session (OMCSession objects) instead of a global object created when importing OMPython
63f165058OpenModelica Hudson[Janitor mode] Fix whitespace
f24e33860Volker Waurich- generate new task graph for duplicated tasks
0563a9754Per ÖstlundFix for #2709: - Added functionality to propagate final prefixes from modifiers to components. Disabled for now, since it breaks some tests.
c2cf53e2dOpenModelica Hudson[Janitor mode] Fix whitespace
d29b2bbffMarcus Walther- hpcom level-scheduling fixed for windows - update for hpcom-tests
342209e10OpenModelica Hudson[Janitor mode] Fix whitespace
a14096aeaNiklas Worschechforgotten mo files of templates
be821c81aNiklas Worschechseparated evaluate in cpp template in update for ode- and zero crossing- and all equations
e99cf2fc9Volker Waurich- update indexes for LS, NLS, Mixed systems when duplicating tasks
e5576175eMartin Sjölund- Add some additional time to build models as some are rather slow - Do not fail to call `alarm(0)` just because some function set errno
c8d705871OpenModelica Hudson[Janitor mode] Fix whitespace
65dea6025Willi Braun - revised dassl implmentation - added additional rhs evalution to ensure a consistent ringbuffer for extrapolation - removed f2c binding - rename simData to data
83f1cca27OpenModelica Hudson[Janitor mode] Fix whitespace
1c453c133Mahder Alemseged Gebremedhin+ Separate discrete real variables in to a different list. No we know where they start and end i.e. will not be mixed and sorted with the rest of algebraic variables. will have to be changed later when we use index lists instead of variable lits. For now this should be enough.
3088027aeAdeel Asghar- Implemented fmiEnterEventMode & fmiCompletedIntegratorStep functions for FMI 2.0 export.
feb9a03ceVolker Waurich- fix for td scheduler
ed7f507caOpenModelica Hudson[Janitor mode] Fix whitespace
cdef825a5Martin SjölundSkip linking libgc for qtclients
6db80fa13Volker Waurich- task duplication scheduler codegen completed
aff0f3dafAlexander CarlqvistRemoved default values for exportToFigaro.
5208be46bAdeel Asghar- For *FMUstate functions just log that they are not supported right now and return fmierror.
bbc2a0362Martin SjölundFix compilation warning
4a864f189Martin Sjölund#1795 Remove `getExperimentAnnotation()` since `getSimulationOptions()` is better
f796418bbMartin SjölundReduce the timeout for buildModel since the times for simulating is no longer inclusive
934d6556aMartin SjölundUse alarm everywhere instead of ulimit in BuildModelRecursive.mos. This should make a slow buildModel followed by a slower simulation print simulation failure instead of a crash.
84f2f217dOpenModelica Hudson[Janitor mode] Fix whitespace
df4a8e1f1Alexander CarlqvistSignature of exportToFigaro updated.
44296ddb8Adeel Asghar#2509 - Use the omniORB specific parameters. They are different from MICO parameters.
af0a99338Mahder Alemseged Gebremedhin+ Fix #2708
01aeb1085Martin SjölundAdd license information
c525048a2Adeel Asghar- Implemented fmiReset, fmiGet* & fmiSet* functions for FMI 2.0 export.
4a863821cVolker Waurich-activated case in inlineArrayEquations.mo
d3290658aVolker Waurich- added case in InlineArrayEquations.mo
ba6b1115aLennart Ochel- attempt to fix r20930
c8fc287bfOpenModelica Hudson[Janitor mode] Fix whitespace
507088397Martin SjölundFix 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
baeb18dfeVitalij Rugepartial support of equal constraints
fc39e62e7Patrick Marcel Taeuber- introduced manual selection of tearing variables using annotations (works only for cellier tearing heuristic MC3 yet) -> attributes: tearingSelect = always: variable is forced to be iteration variable tearingSelect = prefer: variable gets better chances to become iteration variable tearingSelect = avoid: variable gets less chances to become iteration variable tearingSelect = never: variable won't be iteration variable as long as it is possible to solve for it algebraically (otherwise: warning)
31afef240Volker Waurich- choose which entries of the incidenceMatrix you want to get (all,positive,negative) via an additional input in SimCodeUtil.getSimVarsInSimEq and SimCodeUtil.getSimEqsOfSimVar
c6b09d554Volker Waurich- updated hpcom tests, moved predicted SpeedUp message to hpcomDump
a867dfa3eAlexander CarlqvistA small change in how we generate XML for the Figaro compiler because they changed some file names in the latest version of the Figaro compiler.
12b10d696Per ÖstlundFix for #2707: - Give MUL and DIV the same priority in Dump.priorityBinopRhs.
2603d6836Martin SjölundRead files >4GB of size on 64-bit platforms
19f4fb15dAdeel Asghar#2706 - Fixed the FMU memmory allocation & free memory issues.
bcc9fb24bAdeel Asghar- Implemented fmiSetTime function for FMI 2.0 export.
83a4d607bNiklas Worschechfix for HPCom cpp makefile expected output
86dc68ae6OpenModelica Hudson[Janitor mode] Fix whitespace
6e0d6731cMahder Alemseged Gebremedhin+ New sorting for back-end variables. - subscripts are compared only if the crefs match without considering subs. i.e. pushed to the end of the cref. + Fixed state-sets generation and initialization to use the correct indexing. - Used to be transposed.
28f4207a4Lennart Ochel- workaround for builtin functions that are impure, but not marked as impure - expected output (revert some bad changes from r20848)
19c184170OpenModelica Hudson[Janitor mode] Fix whitespace
11147ac26Niklas Worschechfix for empty discrete vars in cpp template
68d584c53Marcus Walther-fixed ANALYZATION_MODE of cpp-runtime
2c71800b4Marcus Walther-fix for hpcom-cpp codegeneration
6afafad6dNiklas Worschechfix for getStartValue in cpp template
057633b0bOpenModelica Hudson[Janitor mode] Fix whitespace
cd85a0624Lennart Ochel- workaround: sample-calls are not marked as impure
299a5e64dLennart Ochel- fix last commit
fd64d5649Lennart Ochel- make +d=iterationVars a bit nicer
3a1f4123eAdeel Asghar- Implemented fmiSetDebugLogging, fmiTerminate, fmiNewDiscreteStates & fmiEnterContinuousTimeMode functions for FMI 2.0 export. - Fixed fmiFreeInstance.
39c96f9f5OpenModelica Hudson[Janitor mode] Fix whitespace
5082112e6Volker Waurich- push current status for tds
f90dc5b45Adeel Asghar- Implemented fmiGetTypesPlatform, fmiGetVersion, fmiInstantiate, fmiFreeInstance, fmiSetupExperiment, fmiEnterInitializationMode & fmiExitInitializationMode functions for FMI 2.0 export.
8501fa397Willi Braun - added a further solver method "dasslsteps" - behave like our default dassl solver option, but without consideration of numberOfintervals or stepSize. Output point are internal dassl steps.
d8686029dOpenModelica Hudson[Janitor mode] Fix whitespace
f7ed18b9eNiklas Worschechfix for usub function in cpp template
cb7cfd150Volker Waurich-reverted 20880 since one model fails, will check this on monday
e81561270Niklas Worschechfix for include in KINSol
802d9187eVolker Waurich- added case in getScalarArrayEqns1 (improve enhancedAdjacency)
47a7b1bc8OpenModelica Hudson[Janitor mode] Fix whitespace
d775bd1d1Niklas Worschechfix for non returning Kinsol in cpp runtime
eb84611caAdeel Asghar- Fixed FMU makefile.
3a6328258Adeel Asghar- Only add the FMU version error if version number is invalid.
19f9947cfNiklas Worschechfix for typo
d6a16a208OpenModelica Hudson[Janitor mode] Fix whitespace
6dbc72c54OpenModelica Hudson[Janitor mode] Set auto-props
76a42040fOpenModelica Hudson[Janitor mode] Fix whitespace
b884ca8bfNiklas Worschechchanged initialization method for variables in cpp runtime removed unused files in cpp runtime removed some includes
62bedf356Christian SChubertmake SimulationResultsCmp obey runningTestsuite flag to fix test
24626a5c1OpenModelica Hudson[Janitor mode] Fix whitespace
05632880bPer Östlund- Fix RML compilation.
666cd0f0cPer ÖstlundFix for #2705: - Propagate inline annotations in derived component functions.
350780decPer ÖstlundFix for #2707: - Consider multiplication to be non-associative when dumping expressions.
b597c8798Christian SChubertmake SimulationResultsCmp fail, if a variable has not been found and add a test for it also add a test for constant singular linear systems which are consistent (or inconsistent) - currently both fail in omc
3fe28d6c7Adeel Asghar- Added FMI 2.0 Model Exchange export functions.
c273efbc7Adeel Asghar- Removed the index attribute.
4b2e78fe8Adeel Asghar- Add empty model structure tag to make the FMI 2.0 xml valid.
2222b7da2Adrian Pop- properly fix alarm stuff (use extern "C" when cpp is defined!)
f037d1868OpenModelica Hudson[Janitor mode] Fix whitespace
e374b55daLennart Ochel- attempt to improve r20789 (don't handle impure functions as constant)
9f1818aa9Vitalij Ruge- improved numerical hessian
879b880a4Vitalij Ruge- improved numerical hessian
c1af8e140Vitalij Ruge- fixed r20844
2d3d4cd72Vitalij Ruge- fixed keepHessian
7d241f21cAdrian Pop- ansi C
768e0be45Adrian Pop- attempt to fix windows build
fc625e46cPer Östlund- Added output of parentheses for if-expressions on the LHS in dumpers.
6166857edOpenModelica Hudson[Janitor mode] Fix whitespace
989f5f7d0Martin SjölundProbably fixes r20834
00dcba97fOpenModelica Hudson[Janitor mode] Fix whitespace
108f43ca6Lennart Ochel- add more TRACE information (to DASSL and event system)
c8b9ce0f6Lennart Ochel- fix missing space
f8032ded5Lennart Ochel- new debug-flag: +d=iterationVars - this flag generates a list with all iteration vars for both simulation system and initialization system
ffd0ca1d5OpenModelica Hudson[Janitor mode] Fix whitespace
c8e2d2f0bPer Östlund- Improved DAEDumpTpl and switched to it as default. - Untupled min and max in DAE.VariableAttributes.
76325345dMartin SjölundGuard against `arrayCreate(-1,...)` Use arrayCreate instead of `listArray(listFill(...))`
19ecbf746Willi Braun - fix uncertainties test
e12ae55b4OpenModelica Hudson[Janitor mode] Fix whitespace
675c65d69Volker Waurich- deactivate schedule repetition, provide backendDAE and SimCode for schedule method
e0ecf1b49OpenModelica Hudson[Janitor mode] Fix whitespace
0429f2ae8Lennart Ochel- remove cases for impure functions from function traversingTimeVarsFinder - mark delay as impure
753326756Martin Sjölund- Add -alarm=seconds as option to simulations, and start using alarms in the model testing to prevent spinning in the testsuite
8fcbb5157Marcus Walther- compareMode-enum to task graph comparator added
d6ff87b9fWilli Braun - an other attempt to fix IndexReduction
b71eb5174Martin SjölundplotAll/parametric fixes
5e85f457fMartin Sjölund#2701 - Fix plot() command not executing - Change vfork to posix_spawn since it is suggested by static analysis
0f22838f5OpenModelica Hudson[Janitor mode] Fix whitespace
aac910c59Lennart Ochel- fix printAllVarsDebug
adb9c5273OpenModelica Hudson[Janitor mode] Fix whitespace
299bcf181Niklas Worschechfix in cpp template for evaluate return value
b3899d5deLennart Ochel- expected output
483e4c3f8Volker Waurich- use the critical criterion to set up initial clusters
f4832947cMartin SjölundFix r20795 (didn't revert both revisions)
917e7deddMartin SjölundReverting r20742,r20792. Willi will provide better fixes for them next week.
f7efea49dOpenModelica Hudson[Janitor mode] Fix whitespace
1e3c1e6e2Willi Braun - partial fixes for IndexReduction - there are still more issues with array indexing - added also more debug output to bltdumps
203014cb5OpenModelica Hudson[Janitor mode] Fix whitespace
14e5c612dLennart Ochel- fix #2704 (don't handle impure functions as constant) - add TRACE information to dassl.c::functionODE_residual and solver_main.c::finishSimulation
3d977ef89Volker Waurich- fixed case in createTDSInitialCluster1
df8a9a372Volker Waurich- tds schedule using cluster compaction
57668fe2eOpenModelica Hudson[Janitor mode] Fix whitespace
80c82850cMarcus Walther- fix for hpcom-cpp-code generation
835624c84Martin SjölundAlso analyse user-defined reductions
d484592deMartin SjölundThe tokens should be in reverse order
6c7305938Lennart Ochel- remove unnecessary if(ACTIVE_STREAM(..)) statements
8183b054cLennart Ochel- fix messageClose
e113af902Martin SjölundAdd runtime checks for BackendDAEEXT.getAssignment (breaks the testsuite because it should not work at the moment)
5045d0669OpenModelica Hudson[Janitor mode] Fix whitespace
ee94a07a1Mahder Alemseged Gebremedhin+ Separate equation evaluation for the cpp runtime. Equations can be evaluated individual or in groups based on index. Needed for QSS solver implementation. + Moved some common code to CodegenUtil.tpl
838773594Vitalij Ruge- fixed 20771
8c8c74da8Vitalij Ruge- fixed numerical hessian - new flag for keep hessian constant
f5c5366b0Volker Waurich- create initial clusters for the td scheduler
7b886df5fOpenModelica Hudson[Janitor mode] Fix whitespace
ecd0ae83cNiklas Worschechchanged saveAll in cpp template and cpp runtime
5ace46082Volker Waurich- some functions to calculate task parameters for td scheduling, rewritten copmuteALAP - added function List.map2rm
fda69b23cOpenModelica Hudson[Janitor mode] Fix whitespace
65041cbdaLennart Ochel- fix a debug-message - add some additional TRACE information
419d7936fOpenModelica Hudson[Janitor mode] Fix whitespace
8c8d6c4efLennart Ochel- new statistics flag: LOG_STATS_V - LOG_STATS_V shows in addition to LOG_STATS the number of function evaluations for some selected functions - new TRACE output for dynamic runtime analysis
2d4249770OpenModelica Hudson[Janitor mode] Fix whitespace
233bf0b8dVolker Waurich- started working on task duplication scheduler, computation of est,ect,last,lact,level,fpred
7794f0a05Jim NutaroFixed problem caused by not recalculating parameter equations when calculating all other variables
52852791cMartin SjölundChange Absyn.REAL to store a String instead of a Real in order to unparse without changes
269695c77Vitalij Rugeadded rule for pow(x/y,-r) => pow(y/x,r)
8a26ac64fWilli Braun - fixed index reduction (kudos to Jens) - use higher order derivative index instead of just counting up
fac37181cMartin SjölundWhen traversing if-statements, preserve the reference pointer if nothing changed (bugfix for the else/elseif parts)
3cbe652c9OpenModelica Hudson[Janitor mode] Fix whitespace
bb4ad8d4cMartin SjölundAdd flag `+d=printStructuralParameters` to print the names of structural parameters evaluated by the front-end
9afe9f351Vitalij Rugeadded some rules - pow(x,y)*pow(x,z) = pow(x,y+z) - pow(x,y)*x = pow(x,y+1) - pow(x,y)/pow(x,z) = pow(x,y-z)
e49513a19Martin SjölundFix compilation
c063e82c0OpenModelica Hudson[Janitor mode] Fix whitespace
6520d2ffcVitalij Ruge- added some rules pow(x,y)/x => pow(x,y-1) (pow(x,y)*z)/x => pow(x,y-1)*z x/pow(x,y) => pow(x,1-y)
8d801b8e8Niklas Worschechfix in cpp template for init alias vars and smaller fixes
15a77d44eMartin SjölundRename libqwt to libomqwt to avoid conflicts on OSX
13101998dMartin SjölundHopefully fixes the Linux builds for qwt (shared version) - Also should add OMOptimBasis as a shared library
b1c14f768Vitalij Ruge revert 20715 there, some issues with clang build
e72e4df22Vitalij Rugeadded rule - e^a / e => e^(a-1)
ed27ece35Martin SjölundDo Adeel's work for him :)
d9b4bc8dcAdeel Asghar- another try to fix compilation.
b9065ee7eAdeel Asghar- build Qwt with clients
e6802f6d1Volker Waurich- reactivated hpcom tests using json files - always use the numProc given in the flag, output a warning on hpcomDump when this number is higher than the available number
084b52d85OpenModelica Hudson[Janitor mode] Fix whitespace
a1e2e8106Niklas Worschechfix for getNominalvars and initVars in cpp template
369cdeec9Volker Waurich- fix bootstrapper
901ac7c65Volker Waurich- annotations in graphML - use either profiling or parallel simulation
4c68c5b98Volker Waurich- perform removeSimpleEquations after partial function evaluation only if functions have been evaluated
8f4b10a33Willi Braun - fix issue with r20669 - correct spelling
268432320OpenModelica Hudson[Janitor mode] Fix whitespace
43d669d17Niklas Worschechfix for unknown type in cpp template
4f4aa15a4Marcus Walther- includes for ANALYZATION_MODE added, otherwise it's not working
202ff98d7Willi Braun - use negated value while handling alias variables - that makes the EngineV6 model working again
2cc797aedVolker Waurich- update type of evaluated function outputs
8d54d9306Volker Waurich- get all entries from the incidence matrix, even the negatives in getSimEqsOfSimVar
e0684f16dMartin SjölundAvoid simulating chattering models in the library testing - Also some tail recursion fixes
9d76aa64bMartin SjölundMake filterOnTrue_tail use `match` in case the optimizer fails to convert it
80df71b4aMartin SjölundVarious 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.
117216647Martin SjölundBump MSL version to match GITLIBRARIES=Yes
27d7cb77eWilli Braun - more fixes for differentiation module
5c07e18b5Willi Braun - fixing differentiation errors in annex60 and Buildings
0a03f0748Adrian Pop- fix bad negation logic
fe1e65d9bAdrian Pop- attempt to fix Windows build * remove coinmetis from the link flags * make sure you remove Ipopt-3.11.6/Makefile if there is no Ipopt-3.11.6/Ipopt/Makefile so configure is ran again!
9a13618f3OpenModelica Hudson[Janitor mode] Fix whitespace
98dddecd8Niklas Worschechfix in cpp template for semiLinear call
5f86b0de1Niklas Worschechbetter scaling for kinsol in cpp runtime
665d22270OpenModelica Hudson[Janitor mode] Fix whitespace
f4c0fece5Willi Braun - fix differentiate STMT_TUPLE_ASSIGN
b9ff83d05Vitalij Ruge- improved optimizer constraints for ode
db88c4919Vitalij Ruge- improved goal function evaluation
a56005df4Vitalij Ruge- improved gradient evaluation
4b7b99782Lennart Ochel- remove unnecessary call of saveZeroCrossings (which calls function_ZeroCrossings)
2d5772cb0Vitalij Ruge- improved numerical hessian
af2c8d751Vitalij Ruge- improved numerical hessian
8b54365dbVitalij Ruge- fixed some compiler warnings
794896058Volker Waurich- changed expanding of crefs and expressions of function inputs
b947590eaLennart Ochel- generalize zero crossing detection, so that continuous zero-crossing functions get detectable - fix error code of mixed_system evaluation (from -3 to -4) - minor code simplifications
5e5792685Vitalij Ruge- fixed some compiler warnings
e1ea7d6faLennart Ochel- improve last commit
dcc1f1d7bOpenModelica Hudson[Janitor mode] Fix whitespace
b0c21e09aVolker Waurich- made some fail-messages dependent on +d=evalFuncDump
3530a3fbdNiklas Worschechremoved some includes in cpp runtime add solve in Kinsol for linear system if linear tearing is active
7810845a1Volker Waurich- support array vars in getScalarVarSize (fix for Annex model)
e5459122aOpenModelica Hudson[Janitor mode] Fix whitespace
c5895d8afLennart Ochel- fix usage of storedRelations (formerly hysteresisEnabled) - new, more precise names: - array hysteresisEnabled renamed to storedRelations - function storeRelations renamed to updateRelationsPre - function updateHysteresis renamed to storeRelations - cleanup: - function printHysteresisRelations removed - function activateHysteresis removed
53c00b59cVolker Waurich- disable partial function evaluations with +d=evalConstFuncs
e2f4835c5Martin SjölundFix bootstrapping
b4d2fed62Vitalij Ruge- update Makefile for ipopt thanks Willi
e5087c287Volker Waurich- added annotation attribute to task graph graphML
afa162a80Lennart Ochel- small update to r20622
ca8beb53bWilli Braun - update message for 0^x to "Model error - 0^x is not defined" - moved also test
79c4c2389OpenModelica Hudson[Janitor mode] Fix whitespace
276403ac0Willi Braun - improved differentiation of functions - use partial differentiation for jacobians instead of total differentiation
7ddfa55b9OpenModelica Hudson[Janitor mode] Fix whitespace
83a8aeddbAlexander CarlqvistSupport for Figaro. exportToFigaro builtin added. New file Figaro.mo. New error message type. Important: import and call commented out in CevalScript.mo because else it will not build from trunk. The extension is made for the bootstrapped version.
2b4908e98Volker Waurich- activate partial function evaluation
cf5e16772OpenModelica Hudson[Janitor mode] Fix whitespace
8849a0836Vitalij Ruge- added rule a - (-b)*c = a + b*c
65da2d633OpenModelica Hudson[Janitor mode] Fix whitespace
618f2e018Vitalij Ruge- added rule - x*x = x^2
99105fca3Willi Braun - added an assert to real_int_pow - adjust tests
5043b8c8dOpenModelica Hudson[Janitor mode] Fix whitespace
cf2a74d2fVitalij Ruge- added error massage for 0^-n were n > 0 - added some cases for solve - a^n = c where n is odd - log(a) = b - exp(a) = b
2a436a68bLennart Ochel- update last commit - simplify macros RELATIONHYSTERESIS and RELATION and remove useless cases
7243544adLennart Ochel- simplify macros RELATIONHYSTERESIS and RELATION and remove useless cases
93e56b1eeMartin SjölundHandle transpose for matrices
587c82b59Martin SjölundHandle some additional expressions
f65455670Lennart Ochel- fix handling of relations, which triggered assertions in nonlinear system during initialization - msl32/Modelica.Fluid.Examples.HeatingSystem.mos starts to simulate
a6f348ba9Lennart Ochel- attempt to simplify makro RELATIONHYSTERESIS
69786a450Lennart Ochel- update "warning | While solving non-linear system an assertion failed." message again
34a69e31cVitalij Rugefixes from static analysis
feee3c035Martin SjölundInline.mo: Handle inlining of functions with record output that is split into assignments like: {{{#!mo output RecType rec; algorithm rec.r1 := 1.0; rec.r2 := 2.0; rec.r3 := 1.5; }}}
6c537e99fLennart Ochel- minor changes - add time point to "warning | While solving non-linear system an assertion failed." message
09dac6a18Per Östlund- Fix exponential complexity of Static.createCrefArray.
1933c5082Volker Waurich- do not declare complexEquations of size 1 to single equations(fix for kc_evenGapLaminar)
74f94a219Volker Waurich- fixed for loop evaluation for ASUBs
c0935681eMarcus Walther- fixed pthreads_spin code for cpp-hpcom-template
93571f516Vitalij Ruge- fixed some warning from static analysis
806486952Volker Waurich-reverted default function evaluation
f1b62de14Volker Waurich- another try to check what breaks when setting partial function evaluation as default (is going to be reverted)
47142e875Volker Waurich- fix for arrays in getScalarExpSize (partial function evaluation)
b0b56318fAdrian Pop- small improvements
0f012947aVitalij Ruge- fixed output - fixed warning for intial guess
c3b6abc9eNiklas Worschechadapted fmu cpp template
9a87450a2Marcus Walther- fix for wrong profiling results
94047a87dVitalij Ruge- fixed initial guess in optimization - added flag for initial guess file for externalInput - added flag for number of points in a subinterval in optimization - support approximation order 1 and 5 in optimization - added test for initial guess in optimization - creat result with order 1 - using the result for order 5
343c89f8bVolker Waurich- reverted changes in unparseType - added dump function for subscripts
a6c14087aNiklas Worschechfix for clang build of cpp runtime
b6dc2ed8cOpenModelica Hudson[Janitor mode] Fix whitespace
18c512e9aNiklas Worschechadded for msvc build in cpp runtime build type variable
0e21f594ePer ÖstlundFix for #2690: - Use spliced exp data when vectorizing discrete arrays.
549006018Volker Waurich- removed debug dumps from inlineArrayEquations stuff
1e7b97979OpenModelica Hudson[Janitor mode] Fix whitespace
732151a89Vitalij Ruge- some fixes from static analysis - improve structure for handling ode order in optimization
c0a60f820Vitalij Ruge- improve hessian approximation
47d09378aMarcus Walther- ModelicaUtilities library added to hpcomAnalyzationMode - fixed hpcom-list-scheduling of cpp-runtime
0912dbf7fMarcus Walther- added "-fPIC" - Flag to CPP-runtime (g++ build) - modified the includes of the hpcom-cpp-codefile
9daa946c2OpenModelica Hudson[Janitor mode] Fix whitespace
ef810e810Vitalij Rugeimprove memory handling
d9508f8a3OpenModelica Hudson[Janitor mode] Fix whitespace
073dbcd80Adrian Pop- test whitespace again
1a6bf90eeAdeel Asghar- Handle the new plot grid options in plotting APIs & OMNotebook.
fab8c2e41Vitalij Rugeimprove memory handling
9575907b7Adeel Asghar#2679 - OMPlot setup option to set titles. - Added the footer option to plots.
c6750ab40Volker Waurich- extend inlineArrayEquations for multidimensional arrays
884dd9e88OpenModelica Hudson[Janitor mode] Fix whitespace
631342f46Marcus Walther- I had to reinclude some headers to get the ANALYZATION_MODE running (sorry Niklas, maybe we can find a better solution soon) - Precompiled headers are now disabled if using ANALYZATION_MODE -> otherwise it will not compile with our tracing-tool
4e413d37dVolker Waurich- abort evaluation for reinit,terminate,return
33422b46eLennart Ochel- remove makro ZEROCROSSING
abb1ad9a7Marcus Walther- passing ANALYZATION_MODE-flag from top-level-makefile to SimulationRuntime/cpp/Makefile.omdev.mingw (can be used by invoking 'make runtimeCPPinstall ANALYZATION_MODE="true"')
1d68c7686Volker Waurich- do not consider wildcards when calculating equation size in partial function evaluation (fix for kc_evenGapLaminar.mos)
26a28998aOpenModelica Hudson[Janitor mode] Set auto-props
014309c7cMartin SjölundHandle replacement of qualified crefs when simplifying iterators - `{c.r for c in cs}` now simplifies to `{cs[1].r,...,cs[n].r}` - `{c.r for c in cs}` previously simplified to `{c[1].r,...,c[n].r}`
77053a02dNiklas Worschechadd Modelica.cpp file to cpp runtime
d53075eb8Lennart Ochel- dump relations
c499df07eVolker Waurich- fixed more models concerning partial function evaluation
e407b90c0OpenModelica Hudson[Janitor mode] Fix whitespace
23477a03eNiklas Worschechadded precompiled header for msvc in cpp runtime cmakefile and cpp template
45f69f42cOpenModelica Hudson[Janitor mode] Fix whitespace
03e89b57dWilli Braun - added non-linear mixed strategy (use first newton than hybrid) - improved newton solver
3b0c613f8OpenModelica Hudson[Janitor mode] Fix whitespace
527a78480Volker Waurich- do not remove an evaluated, constant function if there is an assert (fix for AssertTest6)
bcd66eeecMarcus Walther- some fixes to get the cpp-runtime running on our HPC machines using MKL
25251018dVolker Waurich- fixed more bugs in BackendDAE.Equation declaration for partial function evaluation (ThermoSysPro)
259963ea9Adrian Pop- reverted Static.mo changes from r20486
02316fb91OpenModelica Hudson[Janitor mode] Fix whitespace
f2bced529Martin SjölundRemove cjson from the rml makefiles
12b7158a4Volker Waurich- flag controlled dumps for partial function evaluation - fixed bug for wrong BackendDAE.Equation declaration (QualifiedCrefArg.mos)
a02065460Martin SjölundAdd cJSON to SimulationRuntime/c since the bootstrapped compiler and OSX won't fail to build (Hint: cmake never solved anyone's problems)
c7b395451Adrian Pop- generate correct target platform from CMake
89992fb08Adrian Pop- propagate flags from top level to CMake when building cJSON
f72ca580bAdrian Pop- add cjson to bootstrap-dependencies
1b4fa441fAdrian Pop- add -lcJSON to bootstrapped linker flags
234f3f76eMarcus Walther- another day, another try to add cjson to HpcOmBenchmarkExt.cpp
54312b83bVolker Waurich- reverted function evaluation, updated testsuite
4761dee79Volker Waurich- give it a try and see what breaks when using partial function evaluation as default (will be reverted after the tests)
5d2f43a37Vitalij RugeCleaned up optimization folder.
f516d9c6eVolker Waurich- function evaluation of Shared objects like parameters.just some first functions
3dd9ea842Volker Waurich- fix bootstrapper
616889709OpenModelica Hudson[Janitor mode] Fix whitespace
1e7543ad2Volker Waurich- try to fix bug at InlineArrayEquations.mo, lets see if it breaks something
de18331daOpenModelica Hudson[Janitor mode] Fix whitespace
6f0bf6cc0Vitalij Ruge- fixed initial guess in optimization with external input
a4023091fLennart Ochel- add time point to some log messages
d32dfb684Martin SjölundDon't inline simplify match-expressions that return tuples
43b666b4eMartin SjölundSimplify `match () case () then exp; end match` to `exp`
c4178ca17OpenModelica Hudson[Janitor mode] Fix whitespace
2f9ccd913Willi Braun - fixed debug stream print
437155695Marcus Walther- revert r20442,20445,20446,20450 and 20451
8f5fe9a2dAdrian Pop- add cjson to omc-rml deps too
d737ce962Marcus Walther- another fix
c42530623Martin SjölundForce binary for Windows
bafb80b94Marcus Walther- I still try to fix the cJSON bug...
d101bb489Marcus Walther- try to fix clang-build
6b739532cMartin SjölundHandle the case when we do not need to match against any pattern
ff310c721OpenModelica Hudson[Janitor mode] Fix whitespace
c6d05d8f7Marcus Walther- included cjson into build and HpcOmBenchmarkExt.cpp
d1b2327f3Vitalij Ruge- fixed merge 20440
b94a9ad42Vitalij Ruge- fixed 20413 Thanks Willi!
fc34bd124Martin SjölundChange Error_rml to do the same thing Error_omc does (it works as long as you call the functions through dynload)
bf16b2485Martin Sjölund#2683 Do not generate self-assignments for tail-recursive calls
b58e19d6fNiklas Worschechfix in cpp runtime cmake file for clang
fd5c79cb8OpenModelica Hudson[Janitor mode] Fix whitespace
9c7992487Lennart Ochel- fix debug output
966196939OpenModelica Hudson[Janitor mode] Fix whitespace
04463b5fbAdrian Pop- add a whitespace to check the SVN post-commit hook behavior
e0ccfbccfAdrian Pop- add a whitespace to check the SVN post-commit hook behavior
1df29e94ePer Östlund- Fix RML.
31de92b2ePer Östlund- Cleaned up some code.
a656c4cc9Vitalij Rugerevert -r 20413-20418
4c4f3c8ceMartin SjölundUse throwStreamPrint instead of assert to try falling back in case a non-linear solver generates asub indexes depending on guesses...
5b2a4141dVitalij Ruge- added header
241b839fdVitalij Ruge- added header
23b418963Vitalij Ruge- added header
7e1bd00f1OpenModelica Hudson[Janitor mode] Fix whitespace
418f45d64Vitalij Ruge- improve optimization - scaling - cheaper function evalution - improve data structure - preprocessing for derivations - improve evaluation goal function + constraints - mathematical background - improve hessian structure
eb9b6b45dOpenModelica Hudson[Janitor mode] Fix whitespace
9d1a1fac0Volker Waurich- added function: BackendDAEUtil.replaceKnownVarsInShared - extended Expression.getComplexContents for ASUB and cref defined arrays - extended ExpressionDump.dumpExpStr for ASUB BOX and UNBOX
2568dd346Volker Waurich- update partial function evaluation to fix CascodeCircuit
2056ca7f8Niklas Worschechadded cflag variable to cpp runtime CMakefile which is used in cpp template
a930ec6afOpenModelica Hudson[Janitor mode] Fix whitespace
42e7a122fVolker Waurich- some fixes for partial function evaluation (one dimensional records, tuple including scalar record values)
cdd4f6b02Martin SjölundSilence make clean
407db93feMartin SjölundThe linking to msgpack is not needed
14b3a650eMartin SjölundUpdate bootstrapping tarball
3856a1951Martin SjölundRemove the modpar library as it has been disabled for a long time
5a7e51c7aOpenModelica Hudson[Janitor mode] Fix whitespace
a00607566Martin SjölundFormatting
1d019a01dMarcus Walther- variable declarations to cref1 added (required for parallel calculation of jacobian) - changed get -> boost::get and added boost/tuple/tuple.hpp to algloop-header file
d9f313cc1OpenModelica Hudson[Janitor mode] Fix whitespace
a4a870872Marcus Walther- rereverting my previous commit, but this time without the c++ - code
13a2ea545Martin SjölundRevert r20364,r20365,r20367 - no boost dependency in omc.exe unless you add and compile all of it in 3rdParty No C++ code at all if avoidable (remove any C++ code you can replace with pure C)
0fb421abeOpenModelica Hudson[Janitor mode] Fix whitespace
5528a3a03Marcus Walther- Cycle based clock is now available for linux systems - HpcOmBenchmark module is now able to read execution costs from xml or json files
6b5f1d710Lennart Ochel- change LOG_SOLVER dump
d3c6bd8caPer Östlund- Added check for invalid modifiers on external objects.
4e6148b6dPer ÖstlundFix for #2681: - Make Expression.dimensionsAdd handle more cases.
fb5fc17b9Martin Sjölundgcc fix
cbfe92704Martin SjölundSilence clang warnings
65a0927ebMartin SjölundDo not generate unnecessary strlen variables
828ec551fNiklas Worschechadapted cpp runtime build to use configured installed gcc version
b760d0b93Lennart Ochel- remove obsolete functions
00c6b817cLennart Ochel- update last commit
fc4e5c28dLennart Ochel- fix/hack for #2563
fd7a5b9dfMartin SjölundRevert r20341 (breaks systems without g++-4.4 packages)
40c445022Niklas Worschechchanged g++ version for cpp runtime (workarround)
047d2a990Niklas Worschechadded debug falgs to cpp template
8ce953942Niklas Worschechtry to fix fpic error in cpp template
1cc8562cfNiklas Worschechreverted commit 20323
2e3ae6304Martin Sjölund#2680 - Fix for detecting unix
2f173e7fcMartin SjölundAdd PREFIX/lib/omc to the OSX rpath
e51f66425Niklas Worschechchanged build type in cpp runtime make file to release with debug info
cc1d513a5Martin Sjölund#2680 - Fix OSX OMEdit rpath
633502d43OpenModelica Hudson[Janitor mode] Fix whitespace
972856378Niklas Worschechfix typo in Cmakefile, fix in kinso for NAN in residum
5afa9fb9bOpenModelica Hudson[Janitor mode] Fix whitespace
e2868d387Volker Waurich- check initEquations for states when updating varKind
3985a57e3Lennart Ochel- experimental support of overdetermined initialization problems
397663485OpenModelica Hudson[Janitor mode] Fix whitespace
5172cf200Volker Waurich- extended partial function evaluation for various statement types - some bugfixes
e4b991a16Niklas Worschechadded cmake function to create precompiled header for cpp runtime for gcc
6b3ea471cMartin SjölundAdd new API call for OMEdit to query valid config flag options, like `getConfigFlagValidOptions("profiling")`
3949791c0Martin SjölundFix for gcc
8502e45d5Martin Sjölund- Transpose the profiling data for faster reading - Split into 2 files: uint32 and double in split files to transpose them easier - OMEdit can read the data, but the transformation widget has nowhere to display the graphs yet - Some minor fixes for equations that were not profiled - Handle profiling of noretcall
67ddee0bbMarcus Walther- removed scorep-tracing-commands
8af25fc12OpenModelica Hudson[Janitor mode] Fix whitespace
962072d3dNiklas Worschechfix in cpp template for heatlosses example
1a2c36b42Per Östlund- Got rid of some Clang warnings.
cd7688364OpenModelica Hudson[Janitor mode] Fix whitespace
39a749e45Niklas Worschechfix in Kinsol of cpp runtime
1c0f99d55Marcus Walther- some scorep-tracing commands added for performance-analyzation
3f070954eOpenModelica Hudson[Janitor mode] Fix whitespace
9eece3accMartin Sjölund- Change +d=measureTime to +profiling=none,blocks,all,blocks+html - Code generation switches between blocks and all equations - rtclock.h can now keep track of the overhead of calling the tick and tock (used to reduce the cost of very simple equations) - Handle assert(false) as the only statement in a function (skip reporting unassigned values) - Remove inline equations from the runtime - Started using the enumeration instead of integer constants all over the simulation runtime - Skip displaying non-linear equations in both top-level and as a child in the OMEdit transformations browser
f0a2ed8baNiklas Worschechfix for some array functions in cpp template and cpp runtime
1524561f0Marcus Walther- fix hpcom test
df2062218OpenModelica Hudson[Janitor mode] Fix whitespace
75df3a97fVolker Waurich- fixed bug at partial function evaluation
a9c8b6378Marcus Walther- try to fix bootstrapper
88993e114OpenModelica Hudson[Janitor mode] Fix whitespace
cbac82356Marcus Walther- fix for previous commit
f55a25cb9Marcus Walther- HpcOmSimCode -> HpcOmSimCodeMain - HpcOmMemory-module added for memory optimizations - simple renamings in HpcOmTaskGraph - checkCodeGraph function added for validations - RDTSC() clock is now available for linux-systems - fixed Analyation-mode for the cpp-runtime
ee1e767f1OpenModelica Hudson[Janitor mode] Fix whitespace
977978898Volker Waurich- rewritten ifStmt - prediction
fd0c1608dMahder Alemseged Gebremedhin+ Fix bootstrapping.
91f6ff41dOpenModelica Hudson[Janitor mode] Fix whitespace
090bdf63bOpenModelica Hudson[Janitor mode] Set auto-props
5c93afc09Mahder Alemseged Gebremedhin+ Added the task graph implementations.
a7a5c11fdOpenModelica Hudson[Janitor mode] Fix whitespace
de667642eVolker Waurich- rewritten evaluation of if statements - removed some unused stuff in EvaluateFunctions.mo
ff516f609OpenModelica Hudson[Janitor mode] Fix whitespace
42ce73752Marcus Walther- added kinsol support to ANALYZATION_MODE - simple scorep-trace macro for cvode-initialization added
1b251bed4Adrian Pop- use normal malloc / free as GC_malloc seems to have issues
deb3809f5Adrian Pop- crappy MSVC compilers do not know stack array of size given by input argument
1da8afabdMartin SjölundImprove make clean
8337c897bMartin SjölundFix the include directory
5145f408bMartin SjölundSome improvements to make qtclean
b9c8d32dfMartin SjölundWhen running the profiler, also output a smaller prof.json in addition to the xml - The OMEdit transformations browser will now look at the prof.json and display a summary for the profile blocks
67b87e28fOpenModelica Hudson[Janitor mode] Fix whitespace
61dfb88aeVolker Waurich- update partial function evaluation
e5e79f27eAdeel Asghar- Added variability, initial & derivative attributes for ScalarVariable tag for fmi 2.0 modelDescription.xml file.
3e723dcbfMartin SjölundAvoid using the susan_codegen directory since it does not use the configured OMC
b93d35ef4OpenModelica Hudson[Janitor mode] Fix whitespace
f67bc64f4Volker Waurich- added debug dump flag for partial function evaluation - fix for removing replacements in tuple assignments
90ba752baOpenModelica Hudson[Janitor mode] Fix whitespace
caa8811ccVolker Waurich- added function to output the SimCode.SimEqSys for a given var index
b0600d6edNiklas Worschechmodified Kinsol for cpp runtime (fix for NaN)
23d2543fcOpenModelica Hudson[Janitor mode] Fix whitespace
d6e70f57dVolker Waurich- update varKind after partial function evaluation
5490f3b68Martin SjölundFixes #2675 (functions returning function pointers)
70820de48OpenModelica Hudson[Janitor mode] Fix whitespace
6324d8f03Per ÖstlundFix for #2642: - Rewrote handling of builtin attributes to be less repetitive. - Added detection of duplicated modifiers on builtin types.
be7769ae8Martin SjölundReplace measureTime=true with +d=measureTime in buildModel/etc - Fix code generation for profiling of function calls (was disabled) - Fix the counter for number of profiling blocks so the profiling now includes the measured blocks again
7aebf91c3OpenModelica Hudson[Janitor mode] Fix whitespace
6ae89c337Volker Waurich- some fixes for tuple statements in partial function evaluation
e9abc0059OpenModelica Hudson[Janitor mode] Fix whitespace
09b5ee3fcNiklas Worschechmodified Kinsol for cpp runtime
decae7ffcMartin SjölundCannot refactor everything that the compiler gives notifications about
909f51a4dMartin SjölundFix for libraries that begin with the same prefix
1302eba4eMartin SjölundFix info.json-file - Generate all equation kinds - Tested by parsing all generated json in the testsuite - Generate function names
dc89026cdOpenModelica Hudson[Janitor mode] Fix whitespace
f3cfdd208Per ÖstlundFix for #2644: - Make iterators have precedence when evaluating interactive statements.
263877e19Niklas Worschechadded array functions for promote,transpose, create_from_shape
227a29bfaVolker Waurich- fixed getSimEqsOfSimVar for state variables
8128b724cOpenModelica Hudson[Janitor mode] Fix whitespace
f2352478fLennart Ochel- add EquationKind to BackendDAE.Equation
deae72268OpenModelica Hudson[Janitor mode] Fix whitespace
05a47013fAdeel Asghar- Added ModelVariables tag for fmi 2.0 modelDescription.xml file (not complete yet).
cc344daebPer Östlund- An empty matrix is always constant.
599f6c777Volker Waurich- some features for partial function evaluation: cast support, expand tuple equation
b4466e2f8Per Östlund- Fix tests.
abe375db2Per Östlund- Fix rml compilation.
bfefaaa45Per ÖstlundFix for #2668: - Fixed simplification rule for matrix +/- array so that it doesn't swap lhs and rhs. - Some optimizations for ExpressionSimplify.
7d6b0fb2cNiklas Worschechfix for Kinsol in cpp runtime, added scaling of variables vector
536a88f9bAdeel Asghar- Validate the FMU version argument.
0a4d7edfbOpenModelica Hudson[Janitor mode] Fix whitespace
e72c964b6Niklas WorschechFixes for KinSol in CPP Runtime (now default)
f7daf5c2bMartin SjölundCXX=$(CXX)
d0ce70122OpenModelica Hudson[Janitor mode] Fix whitespace
3bb32eb96Adrian Pop- replace list with Env.Env - FFrontEnd: * add names for edges * resolve component types after constrainedby and class extends
6bcf8a5c2OpenModelica Hudson[Janitor mode] Fix whitespace
bdc2615d4Adrian Pop- some small fixes and changes
5c052ac6aAdrian Pop- propagate build flags! - add more deps
253787831Adrian Pop- more dependencies.
f43464282Adrian Pop- more linking
3631fc065Adrian Pop- bah, of course the freaking bootstrapped stuff needs to be different.
b5e40d008Adrian Pop- add proper dependencies for GraphStreamExt*.c* - import Util, duh
654202451Adrian Pop- fix Linux build - call the viewer from share/omc/java, not 3rdParty
237be590aAdrian Pop- actually build libnetstream.a on Linux.
e8198d33fAdrian Pop- include unistd.h for sleep
a4e635a53OpenModelica Hudson[Janitor mode] Fix whitespace
635021119OpenModelica Hudson[Janitor mode] Set auto-props
4f9d823d7Adrian Pop- display graph on the fly via GraphStream (later we can support Gephi easily) - some minor changes to FFrontEnd/ files - i guess Linux builds will break but i'll fix them
884cfb421OpenModelica Hudson[Janitor mode] Fix whitespace
7b72abd2aMichael KloeppelFixes issues with some of the test cases
70778470bMartin SjölundFix the broken merge of r20192 and r20194
79ac4334bMartin SjölundRemove unused assignments
804a17570OpenModelica Hudson[Janitor mode] Fix whitespace
29db969acVolker Waurich- next working status for partial function evaluation
670d4afd0OpenModelica Hudson[Janitor mode] Fix whitespace
9be37e8beWilli Braun - fixes for fmi-export(#2664) - removed ringbuffer usage - activated logging - fixed InOutTest testcase
405996641Martin SjölundRemove some more unused bindings
102a3ad7eAdeel Asghar- Added TypeDefinitions & DefaultExperiment tags for fmi 2.0 modelDescription.xml file.
84d622cd7Adeel Asghar- Added ModelExchange tag for fmi 2.0 modelDescription.xml file.
fd129449aAdeel Asghar- Added model's description/comment to fmi 1.0 modelDescription file.
60e8e2a2dAdeel Asghar- Generate the fmiModelDescription tag for fmi 2.0
0cd7e1d12Per Östlund- Type fixes for outerProduct.
07a0428b2OpenModelica Hudson[Janitor mode] Fix whitespace
1a29f88d5Martin SjölundUpdated the script to remove a few more unnecessary bindings
d159d9ffdVolker Waurich- try to fix bootstrapper
65fb20795OpenModelica Hudson[Janitor mode] Fix whitespace
abee0671bVolker Waurich- addded functions getSimVarsInSimEq and getSimEqsOfSimVar
4f87cb23aOpenModelica Hudson[Janitor mode] Fix whitespace
1c5fc4c4dVolker Waurich- extended BackendMapping with matching information and dependency graph - added function getReqSimEqsForSimVar
d4bcfaa9cWilli Braun - fixed #2667
530fedfefOpenModelica Hudson[Janitor mode] Fix whitespace
63b588b14Per Östlund- Some cleanup of SCode.
876732adaMartin SjölundAlso ignore git directories
f30c28d31OpenModelica Hudson[Janitor mode] Fix whitespace
a8d62d9e6Martin SjölundMake hudson trim trailing whitespace in addition to replacing tabs with spaces - rtest was updated to allow whitespace at the end of a line
7331c110bLennart Ochel- move InlineSolver.mo to Compiler/Unused/
b5b94854aVolker Waurich- added SimCode.BackendMapping to store mapping information between backEnd structure and simCode structure
4a0fb3ffeAdeel Asghar- Generate separate include folders for fmi1 & fmi2. - Create a definition & make file for fmi2.
8f66424d9Adeel Asghar- Added fmu version argument to translateModelFMU (by default version is 1. Version 2 is not fully functional yet.) - Copy fmi2 files. - Started creating a modelDescrition.xml file for FMI2.0
454d886b3Martin SjölundUpdated the parsing of info.xml - Does not add a name for equations anymore. Added indexes to simulation xml output instead. - Does not need a hashtable lookup from string to variable (we just store a list of variable names since that is all we used it for)
c1e3cd238Martin SjölundStrip out some old copyright notices on donated code
8ace1b5a9Jan KokertCorrecting mail address in readme
72567e062Martin SjölundSkip assertion
e01dca8b4Martin SjölundFix bad typo
568de058cMartin SjölundActually pass a struct...
5d4cc5af0Martin SjölundImprove code readability
08493ff8dMartin SjölundRe-run susan to remove copyright notice...
fa5453374Martin SjölundUpdated copyright notices to 2014 - The script uses regex to update copyright notices since we have different years in there
aad940631Martin SjölundUpdate license headers
a54fce9f5Martin SjölundDisable SerializeModelInfo until we update the bootstrapping tarball
21476b875Martin SjölundFix unparsing of newlines in string comments
863ecbb33Martin SjölundUpdate runtime code to OSMC-PL 1.2 runtime license (BSD 3-clause, GPLv3, or OSMC-PL conditions)
dd13b0aa0Martin SjölundRML fix
c1eae01c5Martin SjölundVarious fixes - Fix bootstrapping - Fix unparsing of string comments - Update OSMC-PL header in Compiler/*/*.mo
62f4a2e3ePer Östlund- Handle caching of function type instantiation better.
80df834a3Per ÖstlundFix for #2662: - Remove equations and algorithms from base classes too when instantiating a function type.
c8275d3feMartin SjölundComment out import like I intended to
1eaa01350Martin SjölundSwitch the msgpack serialization for JSON using Util/File.mo
5b8623521Jim NutaroUpdates and fixes for the Adevs backend
a42b035a3Leonardo Laguna- Adds List.fold3r function
483c72e2fPer Östlund- Fix configure.
8410870ecWilli Braun - fix non c89 comments
b9be1dfcdWilli Braun - added some white lines to dumpeqninorder to make it more readable
61edba131Willi Braun - added differention rule for DAE.WILD()
97a7c2a58Michael KloeppelChanged step sizes in numeric evaluation of the Jacobian
3206e8e2fMartin SjölundAllow external objects to be passed in polymorphic function calls
c15067e49Adeel Asghar#2626 - Support fmiset* and type generations for the co-simulation FMUs.
931b06141Martin SjölundImprove error-message for type mismatch in function calls when there is only one candidate function
823982233Martin SjölundCheck the path without +d=failtrace
39d0daee6Martin SjölundOnly run templates if the omc executable exists
fcd664742Martin SjölundUse the nolink target
5890f748bAdeel Asghar#2623 - Use the extracted FMU path for resources.
6498a4c96Volker Waurich- do not take all useless statements in the partial function
ac1d0e91aMartin SjölundOSX fix
0b9695ef3Willi Braun - added zero cases for differentiation rule of pow
98a0a9ff0Adrian Pop- if -lcdaskr is part of -lSimulationRuntime remove it from config.h Windows linking flags!
a19abcad4Per Östlund- Functions are also classes.
0da428054Martin SjölundUpdate Absyn expression traversal - Takes two arguments instead of a tuple (to reduce the number of allocations) - traverseExp now just calls traverseExpBidir (with one argument being a dummy function) - This means some expression types not handled by traverseExp now works (like traversing match expressions) - Some fixes for using external objects in polymorphic functions
2cbc4481eVolker Waurich- optimized replacement management in partial function evaluation - changed BackendVarTransform.removeReplacement, it only needs a key and not a replacement
4c4d7061bMartin SjölundSince we use a static version of cdaskr, do not put it in build/lib/omc - We now put it inside the libSimulationRuntimeC.a object (it was already statically linked into the shared object versions)
4c5375f2dAdrian Pop- fix the debugger on Windows: the filenames changed to form: X:/path/to/file.mo instead of X:\path\to\file.mo due to some changes on handling realpath.
80dc8da80Adrian Pop- another attempt to fix OSX build
094125f16Adrian Pop- fix CPP runtime compilation on MinGW (static libcminpack.a on MinGW)
5da5b0469Adrian Pop- attempt a OSX build fix
1b661e9bdAdrian Pop- fix Windows MSVC stuff in SimulationRuntime/c/math-support/CMakeLists.txt as some files vanished
f66d1b88aAdrian Pop- attempt to fix non-Windows builds
afb13111cMartin SjölundFixed a bug where a polymorphic function input is a function variable returning two values, one of which is of polymorphic tuple type
cb9febecaAdeel Asghar- Link with static lib of CMinpack for Windows.
5e248e566Adrian Pop- attempt to fix Windows build (vasprintf)
1f888988dWilli Braun - switch non-linear solver hybrid from f2c version to cminpack version. - fixed some issues - removed old f2c version from math-support
5f020a04dVolker Waurich- added function BackendVarTransform.removeReplacement
31e17f097Volker Waurich- added debugflag implOde to activate implicite codegen
0783070feMartin SjölundAdd missing file
9c895fb5aMartin SjölundError 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()
df5e73719Adeel Asghar- Generate the multiple type definition code only once.
0adf6b6d8Volker Waurich- push next working status of partial function evaluation including: - correct path names for new functions - prediction of if-outputs with not-evaluable cases
a6b57e5a4Martin SjölundDo a real string unescape for the Include annotation
9941187ddVolker Waurich- preserve the element type in DAEUtil.varCref - added function DAEUtil.getTupleExps
ee92903faAdeel Asghar- Use the mapping function to convert integer to enumertation for generated Modelica code from FMU.
8956c5d10Martin SjölundAdding new DAE.Element: INITIAL_NORETCALL (for initial equation sections)
280dea420Lennart Ochel- fix typos - add functions to dump matching information
55169d205Adrian Pop- rename impure to impure_
8eba76618Martin SjölundUpdated the MessagePack implementation. - It handles everything now, but size is not much less than JSON due to being mostly maps and strings so I might re-implement it
a56f496d1OpenModelica Hudson[Janitor mode] Fix tabs
acc25bf27Willi Braunadded a damped newton heuristic
629c114caPer Östlund- Fix bootstrapping test.
b67654fd8Per Östlund- Attempt to keep RML happy.
0d2aecdeaPer ÖstlundFix for #2556: - Implemented support for qualified crefs as external function arguments. - Removed Static.isTuple (duplicate of Types.isTuple).
62ae24770Vitalij Ruge- fixed LOG_IPOPT_ERROR
4608a24aaVitalij Ruge- improve update model data in optimization - improve initial guess for inputs - fixed constant initial guess
1e5cdab03Lennart Ochel- fix typo
1aaf77d60Michael Kloeppel- fixed bugs in algorithm, which prevented the efficient solution of linear systems
4946a97b3Vitalij Ruge- improve update model data in optimization
3b5662acaPatrick Marcel Taeuber- remove unused inputs
a0e5c7f2dAdrian Pop- fix Cpp FMU handling on Windows: use mkdir.exe instead of mkdir in the makefile Compiler/Template/CodegenFMUCpp.tpl - better English in the error message about state select uniqueness: * SimulationRuntime/c/simulation/solver/initialization/initialization.c * SimulationRuntime/cpp/Core/SimController/Initialization.cpp - small comment fix in SimulationRuntime/c/simulation/solver/stateset.c
9cad2f6beAdrian PopFix bug: #2655 - check if the externalInput.csv is empty and exit if it is. - remove externalInput.csv in testsuite/simulation/modelica/solver/Makefile before running the tests.
34093c181Vitalij Ruge- improve evaluation of mayer term
d2792b295Vitalij Ruge- improve evaluation for hessian in optimization - objective function
86525841fVitalij Ruge- improve evaluation for hessian in optimization
f6a8c9a95Martin SjölundMaybe libgc.so not depend on mkbuilddirs since that makes it perform the copy even if it was not needed
449b40cb2Vitalij Ruge- improve evaluation jacobian,gradient in optimization
20e2c3d8aAdrian Pop- revert r20005 and r20009 as previous duplicate definitions from daskr are now prefixed since r20024
c6c2b6fdbWilli Braun - revert r20006
0560a88cbWilli Braun - updated the daskr package (added a prefix to all functions)
3bcd2165cLennart Ochel- keep tolZS > 0
af01810a4Martin SjölundMove the Modelica3D headers into the library instead of directly in the omc includes
bee0999ddMartin Sjölundextern "C" ifdef to ModelicaUtilities
3f42307ddNiklas Worschechadded getNominalReal to Algoop interface and hybrj solver in cpp runtime add empty as output format to cpp runtime time and cpp template
483db26f2Leonardo Laguna- Removing duplicated type declaration (breaks my code analyzer)
00541ba18Vitalij Ruge- restructure data for optimization - fixed indices for nonlinear constraints
b2e8146aeMartin SjölundUpdate to the modelica.org version of ModelicaUtilities.h
1418a0e8fVolker Waurich- function evaluation of tuple-functions, removeSimpleEquations after function evaluation, fixed bug with missing statement - updated tests - added function Expression.isTuple
84136718fAdrian Pop- change the order of libraries with duplicate symbols when linking otherwise the solver cycles forever. - use tee in windows testsuite
edc5e2147Martin SjölundRemove dlinpk.c since the nightly builds complain about duplicate symbols
b236ab867Willi Braun - fix cppruntime
e3cc6738dAdrian Pop- fix Windows simulation file linking: * add -Wl,--allow-multiple-definition because -lblas-mingw and -lcdaskr contain the same symbols * any other ideas on how to fix this? forcing allowing multiple definitions is rather bad
8f75537f7Adrian Pop- remove removed files from CMakeLists.txt
e1bc34a37Martin SjölundUpdate cdaspk with fixes for printing strings that are not NULL-terminated
66da2af5cMartin SjölundMake sure we use the new dassl by not linking in the old files (removed from svn to make sure)
1f16b0415Martin SjölundFix static analysis warning
50d55a606Adrian Pop- last ditch effort on trying to be clever
46dbc8573Adrian Pop- va_list is implemented in so many ways in different compiler, skip initialization as it doesn't work on all platforms.
c59b99dceAdrian Pop- fix Linux builds ... duh!
a802444d2Adrian Pop- fix Windows build: the order of imports matter somehow.
cd12582fdWilli Braun - changed order of linking libraries
7e332fbd3Martin SjölundVarious fixes - Expression.typeof now handles match expressions - Changed DAE.SOURCE.instanceOptLst is now instanceOpt (we only ever stored a list of 0 or 1 NONE() or SOME() element) - Fixes in the runtime for C++ compilation (extern C) - Updated MessagePack implementation
08d64f0b0Leonardo Laguna - Minor fix to uncertainties code
8dcadeafcOpenModelica Hudson[Janitor mode] Fix tabs
c5b1d0ff9Willi Braun - switch to newer dassl version (daskr without f2c) from 3rdParty - rename LOG_DASRT to LOG_DASSL
61ac42694Adeel Asghar- Handle the enumeration types in the Modelica code generated from FMU.
837128c1cVitalij Ruge- improve step size for numerical hessian
51904e408Martin SjölundFix bootstrapping
161dc4895Martin Sjölund- Only consider two records type-compatible if they have the exact same number of elements - For code generation, sort record elements so it is possible to pass records to functions without casting them (cast is a no-op)
953b0a516Adrian PopFix bug: #2650 - proper prefixing of outer when you have same name several times in the prefix. - added testsuite/flattening/modelica/scoping/InnerOuterSamePrefix.mo
27323cf2cAdrian Pop- re-enable MessagePack.mo and SerializeModelInfo.mo as now they work on Windows. - link with -lmsgpackc
e30ddd06cMartin SjölundUpdate msgpack-modelica.h for Windows
190f34b81OpenModelica Hudson[Janitor mode] Set auto-props
306e9d3aaAdrian Pop- delete all unused files - add README.txt
efd6fa0d3Adrian Pop- fix Compiler/boot for Windows (seems to work OK now) * propagate the $defaultMakefileTarget as is different for Windows/Linux * use forward slash in Parser.parse filenames * remove MessagePack.mo and SerializeModelInfo.mo from Compiler/boot/LoadCompilerSources.mos as they are *not portable* yet - add FFrontEnd files to the compilation * add builtin graph creation to Builtin.mo * add calls to FInst in CevalScript.mo
a66c321c7Adrian Pop- cheat the dependency analysis to get non-separate bootstrapping compilation working. - how did it worked before??!!
873860c94Willi Braun - belongs to r19965: adjust also numberOfIntervals
f54776b69Adeel Asghar- Some fixes for TypeDefinitions code generation.
60a8ecaa1OpenModelica Hudson[Janitor mode] Fix tabs
510bdf5cdAdeel Asghar- Support TypeDefinitions when importing the FMU.
726545cd1Martin SjölundHandle NORETCALL for reduction expressions
16192f6dfAdrian Pop- properly include omc_msvc.h on all paths so we have OMC_INLINE defined!
a8438dccdAdrian Pop- fix Windows build: include omc_msvc.h and use OMC_INLINE instead of inline
54c7e9d98Willi Braun - fixes for #2648 - added a threshold for minimal step sizes. - skip steps after a sample event, if the normal output point and the sample events time point are equal - added a header with some epsilons
d9e871583Martin SjölundAdd times for reading init.xml and info.xml to the stats
a5046fd4fAdeel Asghar- Fix build.
1ce25d1a3OpenModelica Hudson[Janitor mode] Fix tabs
d9b5fe6deMartin SjölundRefactoring: Remove some unused as-bindings
d3f12f6b9OpenModelica Hudson[Janitor mode] Fix tabs
7550ab732Adeel Asghar- Generate TypeDefinitions in the FMU modelDescription xml file. - This might break FMI tests.
9c14b9937Patrick Marcel Taeuber- deleted redundant functions in Tearing.mo - renamed Cellier-tearing from "tearingSystem1_1" to "CellierTearing" - set default heuristic for Cellier tearing to MC3
ac9e008aaMichael KloeppelFixed a typo which prevented the usage of the metis library when ./configure --with-METIS=DIR is used.
b0c8f3e6cMartin SjölundRemoving dead statements with the script
1a84f6f89Martin SjölundPrint the number of compared signals for verified results
f2aa44592Martin SjölundSome more inlining for arrays
33c7044f2Adrian Pop- fix coding style
0e76eb587Adrian Pop- partial commit FFrontEnd, more to come
629525159Martin SjölundWhy???
86bee880fMartin SjölundDon't pretend you are in svn, HpcOmSchedulerExt.unix.h.in
2a98995f5Martin SjölundCleaning up HpcOmSchedulerExt
85b63ea5eMartin SjölundConvert matchcontinue to match
a6c53f6c6Martin SjölundFix stringUpdateStringChar by writing the 0-char at the end...
5e17f81c5Martin SjölundFix string_array code to match code generation
72388bc6eAdrian Pop- way faster matrix creation (speedup of about 50% for some AVM models) - when using Boehm GC do not explicitely call GC_collect_a_little during simulation
ad5d5dff1Martin SjölundAdding a newer version of the refactoring script to Compiler/boot/refactor-fix-notifications.py - It is now a python script - It now checks that code compiles after performing the operations - Only the matchcontinue-to-match is performed at the moment
31852a8ccAdrian Pop- fix Windows build: WE DO NOT RUN configure on Windows! - rename HpcOmSchedulerExt.h.in to HpcOmSchedulerExt.unix.h.in - create a new file HpcOmSchedulerExt.h that includes HpcOmSchedulerExt.unix.h for anything but Windows
299f73803Willi Braun the evaluation of zerocrossings take now only needed equations into account - less equations are needed to evaluate function_ZeroCrossings, not the whole rhs) - Modelica.Fluid.Examples.Tanks.EmptyTanks.mos works again
b7e5c39daWilli Braun - fixed output of execstat
812018ad7Martin SjölundRML fixes
053a3631eMartin SjölundAdd various warnings if you try to compile with non-free packages
ac620a62fMartin SjölundFix code generation for TSUB(ix=2) and similar
efb025152Volker Waurich- fixed bug at evalConstFuncs when adding various constant functions
77f8d9ab9OpenModelica Hudson[Janitor mode] Fix tabs
a565e5d6aMichael KloeppelAllows to link against an existing metis or patoh library using ./configure --with-METIS=DIR or --with-PATOH=DIR These libraries can then be used as schedulers in the HpcOm module.
72d818bf7Martin Sjölund- Handle boxptr function with NULL arguments - Generate a temporary for tuple pattern-matching to avoid calling a function twice
f32668769Martin SjölundChanging the way functions are generated - No struct is returned. Outputs 2..n are passed by reference - We could implement isPresent in code generation if we wanted to now (but it was removed in Modelica 3.0) - Many array functions now take a value as input instead of pointer - Since we no longer generate a temporary for all called functions, we cannot pass the pointer of a temporary to the function - Most of the simple array functions should be inlined or macro'd and common functions moved to base_array.h - Fewer temporaries should be generated now. The compressed tarball is ~20% smaller - NORETCALL statements in match-expressions now remove statements without effect (`_ := boolAnd()` and the like can be optimized away) '''''Do make clean, especially if using 32-bit omc'''''
87d0fc343Niklas Worschechupdated cpp runtime tests
83c8ea93bVolker Waurich- added additional index to the pathname for the new partial function
188af0ad9Lennart Ochel- use named qualifier
2b046f678OpenModelica Hudson[Janitor mode] Fix tabs
70d62e589Patrick Marcel Taeuber-added information what tearing is used for to tearingdump (e.g. simulation, initialization,...)
b62f02cf8Per ÖstlundFix for #2643: - Remove default values on record members if the are given a binding by a modifier.
970ddecc3Vitalij Ruge- improve num hessian
866f0a0d0Adeel Asghar- Do not insert the ENUM comment in the XML file.
8b6168a7dVolker Waurich- moved partial function evaluation to EvaluateFunctions.mo
b7260c7f2Volker Waurich- added function Expression.isNotComplex and ComponentReference.crefInLst
3f9172d56Vitalij Rugefixed memory leak in scaling
e2345a558Vitalij Ruge- restructure data for optimization (continuing) - using stored alg vars for initial guess
29ce82eacOpenModelica Hudson[Janitor mode] Fix tabs
8edde0ca4Niklas Worschech - add cat_array and sum_array to cpp runtime
1fffee0cdVitalij Rugesome fixes from static analysis
39c217e00Vitalij Ruge- some fixes from static analysis
d52ecece2Martin SjölundFix UTF-8
efa43eee1OpenModelica Hudson[Janitor mode] Fix tabs
7810c2480OpenModelica Hudson[Janitor mode] Set auto-props
550af6e1bAdeel Asghar- Almost empty template for FMI2.0 export.
16e495b22Vitalij Ruge- independent memory for constraints,objective, alg vars in optimization
9c6572459Vitalij Ruge- added helper var - counter for collocation points
45b9a39f3Vitalij Ruge- independent memory for gradient in optimizatio
5b56d62aaVitalij Ruge- independent memory for jacobian in optimization
1b0cfe629Vitalij Ruge- Removed unused variables in optimization - restructure data for optimization (continuing) - diminsion counter for all variables - default value for gradient
2eb4aaf32Vitalij Ruge- improve numeric in hessian
19e43c422Martin SjölundFix the broken tests by outputting error messages thrown when trying to find zero crossings
2cac3cabbAdrian Pop- properly fold (don't loose stuff) when traversing SCode.ALG_IF in SCode.traverseStatements2
016bd4512Vitalij RugeRemoved unused variables in optimization
8db075200Vitalij Ruge- restructure data for optimization (continuing) - derivations - fixed small bug in sparse structure for hessian
7eb7b66dfVitalij Rugeimprove scaling, thanks Kshitij Kulshreshtha
aa117f8e1Vitalij Ruge- restructure data for optimization (continuing) - scaling - improve scaling - added helper var for interim results
93b83f3baAdrian Popvoid function should not return 0!
b9336a523Vitalij Ruge- Removed unused variables in optimization
9cd5abaa4Martin SjölundFix compiler warning
5154bd76fVitalij Ruge- restructure data for optimization (continuing) - bounds
cfb70f6b5Adeel Asghar- Renamed the interface file to avoid conflicts.
9795b80faAdeel Asghar- Fix fmi path for msvc simulation runtime.
0dcdffc98Adeel Asghar- Forgot to move files in the last commit.
7e3bb357aAdeel Asghar- make separate folders for fmi versions.
c6cf635a5Vitalij Ruge- restructure data for optimization (continuing) - helper pointer for collocation
9c0a69e39Volker Waurich- try to fix bootstrapper
a2ba67d2dAdeel Asghar- Fix Linux build
a6e0d46d0Vitalij Ruge- rm unsused variable in optimization - fixed preSim flag in optimization
d4a4718acVitalij Ruge- restructure data for optimization (continuing) - structure Jac, Hessian
4c7331d33Volker Waurich- push current status of partial function evaluation
90060e53dVolker Waurich- added some frontend-functions and some dump functions
6e21dee7dVolker Waurich- added function List.filter1OnTrueSync which does the same filtering synchronously on a 2nd list
f79e10301Adeel Asghar- Kill old FMI import.
bcbb3063dVitalij Ruge- restructure data for optimization (continuing) - time vector
5e6b3cdd0Adeel Asghar- Removed the old FMI import implementation.
eb9728ee8Vitalij Ruge- restructure data for optimization (continuing) - poly coeff
3954a9fe8Vitalij Ruge- restructure data for optimization (continuing) - time grid
fce0e09b2Vitalij Ruge- restructure data for optimization (continuing) - quadrature weight
b8e6fa3e1Martin SjölundSome fixes from static analysis
434954c29Martin SjölundUse noreturn attribute also for cppruntime
ce8190e8eMartin SjölundFix for some rpm-based Linux
eacff81a9Martin SjölundFix compilation errors
a424099c6Martin SjölundSome -Werror fixes (including missing headers, making sure noreturn functions never return)
6fba80d30Martin SjölundFix return type
1142ca225Per ÖstlundFix for #2366 and #2640: - Implemented evaluation of default arguments in function calls.
3bed79240Marcus Walther- simple changes in the makefiles to activate ANALYZATION_MODE more easily (Part 2)
8d9131faeMarcus Walther- simple changes in the makefiles to activate ANALYZATION_MODE more easily
75f20f703Marcus Walther- fix for analyzation_mode on Linux
15287c2f4Niklas Worschech- fix in cpp template for function calls with state vars
546d17c1dMarcus Walther- small fix for analyzation mode
8c06cc030Adrian Pop- attempt to fix OpenModelica_BUILD_AND_TEST_CPP_RUNTIME job
3fa2e4665Adeel Asghar- Fixed FMI memory leaks and warnings.
b1c5d8efdVitalij Ruge- rm num_diff_symColoredObject
ae6830267Martin SjölundFixed some compiler warnings
3ac1b311aVitalij Ruge- restructure data for optimization (continuing)
d27f938e5Martin SjölundUpdate installation instructions
9ebfb741aVitalij Ruge- starting restructure data for optimization
eccb8ebf1Vitalij Rugeimprove code for optimization based on (updated )static analysis, thanks Martin
3af86b8d9Martin Sjölundclang analyzer does not like reasoning about struct pointer member variables, so fix false positive
5268a6340OpenModelica Hudson[Janitor mode] Fix tabs
b5b0cda64Patrick Marcel Taeuber- Added some tests for new Cellier heuristic - deleted interface TearingMethodFunction
0b817b634Marcus Walther- improvement for level-scheduling added (is not working with mingw at the moment)
326a4347bMartin SjölundFix petrol test
13f3f2c95Vitalij Ruge- improve solver_main.c code based static analyses, thanks Martin - added missing SOLVER_LOGs for solvers
bc1af6783Martin SjölundAdded targets to handle runtimeCPPinstall dependency on msl-external-libs
e31f3af02Vitalij Ruge- improve solver code based on static analyses
81ab0f343Vitalij Ruge- improve code for optimization based on static analyse thanks Martin
2b3a32a02Adrian Pop- handle DAE.CAST in SimCodeUtil.createNonlinearResidualEquationsComplex [fixes an issue in a model from Tom Short]
80b91b326Adrian Pop- fix Windows build, ansi c
c83f3d09bAdrian Pop- this one was not so useless as dirname can play with the string
0cb84096bAdrian Pop- kill more GC nightmare code, move from getString() -> clearBuf -> printBuf to saveAndClearBuf -> restoreBuf
cc88faa4fAdrian Pop- remove more useless GC_strdup
5d071643aMartin SjölundMove stdarg.h include
eb6fe37a4Martin SjölundIt's called modelica_integer_max, not int_max...
5a52d24f7Martin SjölundAdd required includes
adb1b098aMartin SjölundRML compilation
8331cb158Martin SjölundCleaning up compiler warnings, generating code that should generate fewer warnings
f16bc7d30Martin SjölundGuard open_memstream better
471dd615aMartin SjölundTypo
7207f27d6Martin SjölundOSX fix
63ed05a88Martin SjölundFix OSX path
53bb71fe7Martin Sjölund- Look for msgpack headers in correct directory - Fix msgpack target dependencies
f8f300a76Martin SjölundAdd missing sources
44225e0b5Martin SjölundFix Patternm.mo ugly RML syntax
b01222b30Martin SjölundAdd non-symlink
716f7bc9dMartin SjölundAdd a non-symlink of MessagePack.mo
0b2a0bd57Martin SjölundAlso add the missing include
5a7130c3cMartin Sjölund- Removed unused Absyn/SCode/DAE.TRY/THROW/CATCH ('''make clean''' is recommended) - Changed the filtering of unused as-bindings to also check assignments to local variables, and catch a lot more occurances (earlier if a variable was used in any case it was not removed from cases where it was unused) - Added MessagePack.mo and SerializeModelInfo.mo to the bootstrapped compiler sources. - They are not called from any package, and do not work with RML
3300e29b0Adrian Pop- remove useless GC_strdup as the buffer will be copied yet again in *mk_scon
284ec25e7Adrian PopMakefile.in - compile GC with --enable-munmap=5 to return the free pages to OS after 5 GC cycles - hopefully it works fine in Linux too
69437bbeaAdrian PopSimulationRuntime/c/util/string_util.c - proper type sizes for 32 bit - fix cycle in reading of csv file for test simulation/libraries/msl32_cpp/Modelica.Thermal.FluidHeatFlow.Examples.ParallelPumpDropOut.mos
11261efeeOpenModelica Hudson[Janitor mode] Fix tabs
acf9488f4Jim NutaroCorrected code for initialization in the adevs backend
96d30c3f7Martin SjölundFix some warnings
46bb5711aMartin SjölundAdd runtimeCPP dependency
2e5aa8d76Martin SjölundCompile modelica3d with gcc instead of clang
a5be7e6c5Adrian Pop- kill GC nightmare code
d5d3490f2Martin Sjölundmatch new[] with delete[]
abdc145aeMartin SjölundBetter fix than r19761
dcb342896Martin SjölundMake a static variable to avoid returning a pointer into the stack frame
1636ff082Martin SjölundFix dangerous VLA declaration
272656e4dAdeel Asghar- MetaModelica array handling support for debugger.
e53b7a039Martin SjölundAdding attribute noreturn to relevant ModelicaUtilities functions
1cafe93caLennart Ochel- move ResidualCmp.mo to Compiler/Unused/
6aed0d060Adrian Pop- revert r19750 as it generates exp(NaN * ...) in the C code This is the diff for the C code after r19750: - tmp498 = exp((NaN * fabs(v))); + tmp498 = exp((-754.1940416432905 * fabs(v)));
d4834ee5eNiklas Worschechupdated cpp tests
ac2b965e4Adeel Asghar- Remove the unused definitions.
f72a26662Vitalij Ruge- missing rule
198232b40Adrian Pop- another attempt to fix the build.
e73c54bedAdeel Asghar- Removed the extra implementation of realpath. - Better debugging function. Just use 1 instead of 4.
c98c79fd6Adrian Pop- fix the emptyHashTable reference from the correct package.
b609b87adAdrian Pop- same package, don't use qualified references
98d89b461Lennart Ochel- move function getArraySubs from SimCodeUtil to ComponentReference - move functions getZeroCrossings and getRelations from SimCodeUtil to FindZeroCrossings - make some functions from package SimCodeUtil protected
3ba34e3f5Martin SjölundFix dylib version
07a7ae95bAdeel Asghar- Fixed Windows build. Added the required CFLAGS for msgpack.
afd379207Martin SjölundClean msgpack on make clean
0f58b4f75Martin SjölundAdding makefile target to build libmsgpackc
ca6a66926OpenModelica Hudson[Janitor mode] Fix tabs
807bc6fdaMartin SjölundActually add the files the last commit was supposed to add...
72629c018Martin Sjölund#2641 Added a locale-independent version of strtod (taken from ruby)
c11a138beVitalij Ruge- guard again c<0 for sqrt(c*e) => c1*sqrt(e)
0b8cea1a8Vitalij Ruge- added rule for sqrt(c*e) => c1*sqrt(e)
77826cf11Adrian Pop- avoid stringListStringChar like the plague in Util.stringReplaceChar (use System.stringReplace) - fix huge memory leak in System.stringReplace (basically the result was strdup-ed and never freed) - enable Boehm GC in MSVC. - still some issues with things like Util.xmlEscape as if the string is rather big (40Mb or so) we will run out of memory as Boehm GC will not kick in until the function returns as all the temps are on the local stack!
46bac05f4Adrian Pop- cleanup MetaModelica GC interface, remove obsolete files - use alloc atomic whenever possible - use alloc ignore off page for array allocation as they are quite big - register pointer displacement (0) and if RML_STYLE_TAGPTR is defined register pointer displacement (3) also
7049f6068Adeel Asghar- function to get all the information of the tuple element. Used by debugger.
fbf364c07Vitalij Rugeadded rule for (e * e1) * e => e1*e^2
83dd3edc4Martin SjölundGuard against str+str => 2*str
281b5e694Vitalij Ruge- fixed a + a = 2*a
ed42237c7Martin SjölundPrefer symbols defined in loaded shared objects over the ones in the executable - This prevents the bootstrapped compiler from using a local function, say List.map, when running a testcase that is supposed to test this function
340afbf03Vitalij Ruge- improve case 0/x for makeProductLst
46a684483Martin Sjölund- Split +d=rml into 2 different debug-flags: +d=rml (transforms arrays into lists) and +d=strictRml (checks that the function inputs/outputs are in the same order as the match expression)
e024c4f2eVitalij Rugeadded in makeProductLst two cases for x/0
a1d80593eAdeel Asghar- function to get all the information of the option element. Used by debugger.
9b6b0f640Adrian Pop- meta_modelica_real.* are gone.
c9800552cMartin SjölundTry to fix Windows builds
b135fe898Vitalij Ruge- simplifyBinaryCoeff -> checking for x/0 - fixed inverseFactors for 0/x (not possible 0/x)
ce485b04eLeonardo Laguna- Adds wrapper function Dump.unparseElementArgStr needed by MathCore
fb64da956OpenModelica Hudson[Janitor mode] Fix tabs
8b7ac24ccNiklas Worschechupdated cpp runtime tests
15c63b4abOpenModelica Hudson[Janitor mode] Fix tabs
a03fe4ebaWilli Braun - simulation throw now directly an error if a non-linear system isn't solved proper
73eb44c74Martin SjölundFixes for 32-bit Linux - boxptr-functions return a struct containing the outputs. Even for built-in functions. - This also goes for regular boxptr-functions accessed in the external C run-time and parser
c745e93ceLennart Ochel- make function replaceExp protected
06e7b61daLennart Ochel- minor code simplifications
7876872daMartin SjölundFixing boxptr for record constructors
fee49fb21Adrian Pop- more mmc_alloc_words_atomic for #if !defined(RML_STYLE_TAGPTR) - works much better in Windows where omc is a 32 bit process
ffe9a0c8aAdrian Pop- add "checkcompiler" make target to check the compiler sources using the bootstrapped compiler - very useful before making a commit to check if the sources work with the bootstrapped compiler
909fc761bMartin SjölundAdd the r19697 changes also for OSX
e4fc27634Martin Sjölund#2635 - Add rpath to qt clients using gc
5ad287832Martin SjölundMade Graph.allReachableNodes not spin infinity if we try to get the reachable nodes from a non-existing node
c63437001Martin SjölundFix separate code generation for boxing external objects and generating constructor/destructor functions
c05c10421Martin Sjölund- Avoid some unused expression warnings for failure(_ = fn()) - Fix the variableFilter regex for OSX
fdc58e2a4OpenModelica Hudson[Janitor mode] Fix tabs
835a63561Niklas WorschechExtended StateSelection interface in cpp runtime for second A Matrix added agloop solver code to Jacobian class if it has algloops added initialize method to Jacobian class adapted cpp FMU and HPCOM template
711af1cadAdeel Asghar- convert list item name to string.
b86a356cbMartin SjölundTry to fix OSX nightly
01bedd56aMartin SjölundUse $ORIGIN and $ORIGIN/../lib/omc as origins
b0cf76a38Martin SjölundUpdate the bootstrapping build scripts to support packages in packages (so we can create nicer package structures)
7fb3709f9Lennart Ochel- remove unused function differentZeroCrossing
cc7bdf269Marcus Walther- simCodeEquations are now ordered correctly when using taskdep-scheduling
aa7ab85c7Martin SjölundDump () for empty argument list in external functions
f98bfed0dAdrian Pop- ansi C.
899e0df1aLennart Ochel- remove space characters
d8071647bMartin SjölundTry to make msvc happy
714685aa1Lennart Ochel- fix #2633
12a4a19e9Marcus Walther- openMP 4.0 task dependency support added for CodegenC
0d881d0c1Martin Sjölund- Fix scoping issue for MatchDotNotation (wrong component env) - Added the new language extensions to Basic-Exercise-MetaModelica.onb
5dfb5d02eMarcus Walther- fixed generated code for level scheduling - cpp-codegeneration with enabled hpcom-flag is working again
ee1a077f6Adrian Pop- ansi C.
1b9cc0ae2Adeel Asghar- Properly get the length of the pointer.
c1d710c3aMartin Sjölund- Output fewer errors when doing partial function type instantiation
025b74ad4OpenModelica Hudson[Janitor mode] Fix tabs
f3a991d45Patrick Marcel Taeuberintroduced some modified heuristics to Cellier tearing
01f0579c4Per Östlund- Forgot to commit changes to AbsynDumpTpl.
0cce23791OpenModelica Hudson[Janitor mode] Fix tabs
12fe7dc9ePer Östlund- Added back unparseClassStr and unparseClassList in Dump.
3f792b805Martin SjölundHandle expression with aliases - Expressions like the following are handled - `match x as ... case REC() then x.field;` - `match x case REC() then x.field;` - An alias `x` is treated as an implicit input component inside the match-expression. It may not be re-assigned. - `x as pat` patterns are still explicit and need `x` to be declared as a component
03953a917OpenModelica Hudson[Janitor mode] Fix tabs
870fd2b5dOpenModelica Hudson[Janitor mode] Set auto-props
9fcf37bf8Marcus Walther- AnalyzationMode added, which will link the libraries statically. It can be used by adding "-D ANALYZATION MODE" in the makefile and by compiling your model with "+d=hpcom, hpcomAnalyzationMode"
9235b88bfAdrian PopAttempt to fix: #2627 - disable +a (+keepArrays) when evaluating the graphical API
795c77bbcAdeel Asghar- function to get all the information of the list item. Used by debugger.
e34d97f48Adeel Asghar- Do not return the value.
67adbd976Adrian Pop- ansi C please!
61b63ab42Martin SjölundDon't use empty dependencies...
4a990f9dbMartin SjölundTry a different guard so make clean works better
556e11c91Martin SjölundRemove Dependency.mo and AbsynDep.mo as they were unused in OpenModelica and replaced by more robust SCode dependency analysis
f07f98e43Adeel Asghar- function to get all the information of the record element. Used by debugger.
f97adf508Martin SjölundIntroduce new MetaModelica language feature: dot-access of as-bound records - See new testcase testsuite/metamodelica/meta/MatchDotNotation.mos - Some compiler sources were updated because you may no longer update some as-bound variables (like: `case x as REAL(_); equation x = INT(1);`) ''If you are still using rml-mmc, you will need to update to mm:r272''
ee6618fbbPer Östlund- Fixed compilation.
4519450b2OpenModelica Hudson[Janitor mode] Fix tabs
7f20c6eb0Marcus Walther- level scheduling structure is now using the task-uniontype - nodeMark-multiplicator will now be applied on dumping - added code generation and scheduler for OpenMP 4.0 task dependencies - remove comment-signs before "applyFilters..."
6037fc275Martin SjölundRevert r19617 to unbreak unix builds. Windows-specific copying goes into Windows-specific makefiles
4bff18935Adrian Pop- avoid recursive *public* dependency between AbsynDumpTpl and Dump as MetaModelica/RML will consume all memory.
941c2801fPer ÖstlundReplaced unparsing parts of Dump with templates.
4b2ca6a48Niklas Worschechmodified make file to copy minpack dll to build/bin folder
cbf706e1fOpenModelica Hudson[Janitor mode] Fix tabs
daad0c5cbNiklas Worschechadded call to state selection in CVode solver
0976f4121Volker Waurich- push an intermediate status of evalConstFuncs (mostly handling of if/elseif/else) - added function Debug.bcallret2_2
6c46801deLennart Ochel- move findZeroCrossings to FindZeroCrossings.mo
54716f492Marcus Walther- changed the boost_thread library to optional
9f0c09088Adrian Pop- push this in so I don't have to merge it each time somebody plays with the flags - cleanup the flags a bit - add new flags for upcoming front-end changes
69ffaa8dfWilli Braun - fix bad calculation of the range in zero-crossings search. (occured in #2621)
976905576Marcus Walther- support for boost threads added (required for hpcom)
b3a919971Marcus Walther- revert my previous commit
447c8a97eVolker Waurich- extended Expression.isConst for records
2bc497500Marcus Walther- support for boost threads added (required for hpcom)
f5a16f2fdMarcus Walther- analyzation flag for hpcom added - cpp code generation has now support for hpcom-pThreads
f9cffd583Lennart Ochel- move optimization module 'resolveLoops' to ResolveLoops.mo
1fd72aaaeMartin SjölundAdd missing sources
63c3e4c11Lennart Ochel- fix #2336 - move optimization module 'inlineArrayEqn' to InlineArrayEquations.mo - add description for optimization module 'inlineArrayEqn' - remove unused modules
989344c2aMartin SjölundCall destructors for external objects created locally in functions
872e61f32Martin SjölundAdd -lgc also for omplot. Add gc as dependency in the makefiles
0b2449d92Adeel Asghar#2598 - Fixed plotting of CSV result files.
0f3fa9c97Willi Braun - improved fix to #2510 and also the testcase for enumeration, interger and boolean.
9cf3f1ec7Vitalij Ruge- improve stepsize for num hessian
2c4aec27aVitalij Ruge- fixed LOG_IPOPT_ERROR
64360fd67Vitalij Rugeremove redundant case
7ded586f3Vitalij Ruge- split generation for jacobian structure in the optimization - improve output format for LOG_IPOPT_JAC
a2415e747Martin SjölundCheck for negative dimensions
fb92e2b51Martin SjölundFixes for ModelicaCompliance.Algorithms.For.BoolRange
ced95190cWilli Braun - fix for #2510. Substract one to map modelica index(1:n) to c index(0:(n-1))
b0931998dVitalij Ruge- improve sparsety structure for hessian
87c14b137OpenModelica Hudson[Janitor mode] Fix tabs
8a0c80341Niklas Worschech- added index parameter to stateset methods, in order to distinguish between different statessets - fix in hybrj for initialization of linear systems
6dc125be4Martin SjölundUse Absyn.pathCompare(...) instead of stringCompare(pathString...)
07bc649e0Martin SjölundDon't compare strings 3 times
42c9e6de7Vitalij Ruge- improve scaling
76f7f8d2bAdrian Pop- ANSI C please! - fix Windows builds (VS)
402280febMartin SjölundAdding function DAEUtil.avlKeyCompare instead of hard-coding this
ae0d26c1fLennart Ochel- add error message for #2614
47163a75dPer ÖstlundFix for #2616: - Handle DAE.DEFINE in InstUtil.moveBindings.
bbc022e64Henrik TidefeltFix/improve error messages for implicit Integer to enumeration conversion
b8df1614eWilli Braun - remove an accidentally commit change
038198339Willi Braun - more fixes DEBUG_OUTPUT, added debugStreamPrintWithEquationIndexes
7d7ec63fdWilli Braun - fixed compiling of DEBUG_OUTPUT further
35720bc17Adrian Pop- attempt to fix the coding style job.
37b1a3d42Willi Braun - fixed DEBUG_OUTPUT compilation
50b0d523bHenrik TidefeltAllow integer instead of enum constant when compiler is invoked with +intEnumConversion
180e7f58fLennart Ochel- fix last commit
7f9e35d6dLennart Ochel- some code simplifications
58557630bNiklas Worschechfix in cpp template initialize equations
9ea166d9bVolker Waurich- commented out 2 cases in Expression.isConst, that hopefully fix the tests
a59b19c6bMartin SjölundRemoved not needed import
dbdc4fa54Niklas Worschechfix in cpp tempalte for initvars
a3cd32541Volker Waurichhandle complex functions in evalConstFuncs
597dca7ccMartin SjölundDo inlining of arrayGet by default (halves the cost). - OMCC: Use unsafe arrayGet in the parser (eliminates the cost of arrayGet almost completely)
5c77736dbAdrian Pop- switch back to 1.9.1Nightly
c85f59eb8Adrian Pop- update version to 1.9.1 Beta2
73430dd7dMartin Sjölund- Added new annotation: `annotation(__OpenModelica_FileInfo=("parserModelica.y",718));` on something with file information (e.g. equation,algorithm,class) now changes the file and line - Changed the OMCC grammar syntax. You no longer define the types returned by each rule - everything is an AstItem (a uniontype containing all types). - The above changes allow us to use only 1 stack for AstItem (previously, we had to allocate memory for all 80+ types and push them for each reduction) - The grammar was updated (and tested on the given testsuite) - The grammar was also fixed. Some rules previously used $1 and $2 even though $1 and $3 were to be used. It worked anyway because $2 and $3 were in different stacks... - Halved the time Machines.mo takes to parse
21d3185b5Vitalij Ruge- improve output format
0d0aa16ebVitalij Rugefixed pre simulation for optimization
b68af4158Martin SjölundAdd -fno-stack-protector as a default flag since it messes with some systems
245ad85bcVitalij Ruge- fixed warning
13dec42c3Adrian Pop- support multiple indexes for ASUB (subscripting of general expressions like function calls) in XMLDump.mo
b7570b305Volker Waurich- added a case for record expressions to DAEDump.dumpExpStr
40537d65cAdrian Pop- fix Windows build include omc_inline.h to make VS happy
2c3d86a1aLennart Ochel- reactivate r19458 because it fixes some bugs - handling of different attributes in alias-sets is still not working correctly (this should become a ticket)
9be13ce01Per Östlund- More punctuation.
cc8c7df25Per Östlund- Punctuation.
c84bd029dVolker Waurich- added module to evaluate a function partially / check if the output or parts of the output are constant - added function BackendVarTransform.getReplacementCRefFirst and Debug.bcallret1_2 - added debug flag "evalConstFuncs"
374b6bb9fMartin SjölundUse newly added MetaModelica.Dangerous.listReverseInPlace to save a little more time in the OMCC lexer
31afccab1Martin Sjölund- Inline some more MetaModelica functions - OMCC: Combine the Absyn.INFO lines/columns into the OMCCTypes.TOKEN directly (1 fewer allocation)
fcd56fed3OpenModelica Hudson[Janitor mode] Fix tabs
9b9b39b57Niklas Worschechfix in cpp template for changed stateset jacobian names
fd641b4aeNiklas Worschechfix in cpp template for call of executable in Linux script
1f9d33c12Lennart Ochel- revert r19458, since it breaks working test cases
13f27fb71Willi Braun - changed merge of nominal values for alias variables - don't calculate arithmetic mean instead choose via componentReference depth (like for start values) - also don't negate nominal values - one testcase fails for some different reasons(non-linear solver), so deactived for now(Modelica.Fluid.Examples.BranchingDynamicPipes.mos).
3995d2cc9Martin SjölundFix whitespace
737761e27Martin Sjölund- Add MetaModelica.Dangerous.stringGetNoBoundsChecking - Change LexerCode.action to return a token with index=-1 instead of NONE()
9c23fef5dOpenModelica Hudson[Janitor mode] Fix tabs
0d172aecbNiklas Worschechfix for typo in cpp template
4d92d0668OpenModelica Hudson[Janitor mode] Fix tabs
b8b4f3870OpenModelica Hudson[Janitor mode] Set auto-props
7f9dae544Martin Sjölund- Change start state from Integer to list as an optimization (!). This variable was always used to re-initialize the current states (a list), by creating a list from the start state (costs 1 allocation). By always keeping it as a list, you do 0 allocations (not even when changing start state: all those assignments are constant values which are optimized). - Added new MetaModelica function, MetaModelica.Dangerous.arrayGetNoBoundsChecking which is also inlined by macro (saves a surprising amount of run-time performance)
c5a851089Niklas Worschechfix in cpp template for linux executable name
c2634e273Niklas Worschechadded modelicastandardtables build in cpp runtime CMakeFiles changed cpp runtime executable name with Main suffix added StateSelection class to cpp solver component added stateselection methods of cpp system in cpp template
7650787f4Martin SjölundAllow the user to override start-values and parameters in the JavaScript webworker - By sending {basename: basename, override: {r: 35, stopTime: stopTime, tolerance: tolerance, stepSize: +stopTime / intervals}}, all override variables are joined and sent as argv in the simulation
3c381255cVitalij Ruge- temporyry fix for optimization with output file
d0660ecc0Willi Braun - fixed initial guess for optimize
937b5ea4cAdeel Asghar- Removed PySimulator since it is moved to github. - Only creates the OMPython directories when user installs it.
0ee1e91d7Martin SjölundAdding MetaModelica builtin stringGet (returns a byte as Integer)
e782576d5Lennart Ochel- fix initialization by matfile
e90e5dee9Adrian Pop- optimize template unparsing a bit (mostly memory but also speed)
64794761eVitalij Ruge- improve output format
ac1dc0db2Vitalij Rugefixed time grid for optimization
0f18ca41bVitalij Ruge- fixed ipopt warning
97d283561Vitalij Ruge- cheking ipopt max iter
edaea71b1Per ÖstlundFix for #2607: - Take associativity into account when printing expressions.
dcedca09fMartin SjölundAdded substring as a MetaModelica builtin (it uses strlen as external "C"; this is incredibly slow compared to MMC_STRLEN) - Updated OMCC to pass around the entire file contents and token start/end positions (to replace passing around lists of integers that need to be converted)
9a2cdce8eOpenModelica Hudson[Janitor mode] Fix tabs
cfcb3b0c8Willi Braun - moved also calculation of jacobians of dynamic StateSet from SimCodeUtil to Backend module
1b3bdf22dWilli Braun - added testcase for external input via file for different solvers - fixed small bugs in external input reading - suppress prints of inputs to LOG_SIMULATION
438dc6e4aVitalij Ruge- fixed output format
db8c0342bVitalij Ruge- fixed output format
95bd57bcfMartin SjölundAdd mingw Makefile so make clean works
b3272f960Martin SjölundAdd code to generate a main entry-point easier
b7f69cdc8OpenModelica Hudson[Janitor mode] Fix tabs
a3e30c7c1Willi Braun - moved calculation of jacobian matrix for non-linear strong components from SimCodeUtil to module in BackendDAEOptimize. - moved functions (replaceDerOpInEquationList, replaceDerOpInExp, transformXToXd) from SimCodeUtil to BackendEquation, Expression, BackendVariable. - fixed bug with calculation of analytic jacobians in non-linear solver. - module is still deactived, since it needs more fixes to pass whole testsuite, further it conflict still with removeUnsedFunctions.
263c98e2bVolker Waurich- removed some comments, unused code and debug-prints from resolveLoops
ef10d3177Martin Sjölundmake clean bootstrapping
01e48735bVolker Waurich- resolve a loop when the no.outVars+1 <= no.InVars
ac33c30cdVitalij Ruge- changed default linear solver for ipopt
ade3134c8Volker Waurich- bugfix for sortPathsAsChain1 (resolveLoops)
f4f8e16ebPer Östlund- Got rid of datarootdir warning in Makefile.in.
95ab57761Martin SjölundShave a few seconds by not re-linking shared objects if nothing changed
adc729e8cVitalij Ruge- improve max_iter flag for ipopt
a7a1c4e3bVitalij Ruge- improve max_iter flag for ipopt - max_iter=1e6 now support
325a0db28Mahder Alemseged Gebremedhin- Moved to branch.
0dcb9033aVitalij Ruge- added LOG_IPOPT_ERROR for following max error in the optimization - added example for LOG_IPOPT_ERROR
549b7c824Vitalij Ruge- added flag: max_iter for ipopt
4b04b28d3Vitalij Ruge- improve external input
85dbfe27cMartin SjölundFix depends on shared library...
a8092ee6dMartin SjölundCopy the shared library for the shared version, not the static
a6d46c666Martin SjölundProperly build shared and static versions (were swapped before and the shared ALSO linked all objects)
b03eee1bbMartin SjölundAllow static linking
161a3192cMartin SjölundTry to guard against inclusion
3543bb0e3Martin SjölundUpdate targets for bootstrapping
35a65afb4Martin SjölundAdded targets to bootstrap with the new build system (Compiler/boot)
1379148acBill JanssenRemoved use of $ in XML element tags
4ab1c8effVitalij Ruge- fixed initial guess and pre simulation for optimization
c97e66afeVitalij Ruge- fixed intial guess for optimizer - fixed pre simulation in the optimization
06add8128Vitalij Ruge- fixed optimization - writing of results
4804f96c8Martin SjölundSome files to generate sources for bootstrapping
4540fdadfAdrian Pop- improve a bit the division by zero message
2a5d29a44Lennart Ochel- typo
17c718f2eLennart Ochel- recover r19259 and r19260
df9c73bbbMartin SjölundPartial changes for the new build system with more fine-grained dependency analysis - Sort of works already (generates C-code), but a few tweaks will be needed to sort out all dependencies (headers still #include other modules; we want them to be more independent) - Need to move files from testsuite to Compiler/ or somewhere nicer
dcfe9f62fWilli Braun - remove algorithms completely, if all statement are removed.
485654cf2Volker Waurich- detect loops that form loops, updated test
f92973774OpenModelica Hudson[Janitor mode] Fix tabs
1519d7524Willi Braun - added config flag for genaration of symbolic jacobian and linearization
b63a956beWilli Braun - fixed function differentiation for protected variables
88bb1ab07Adrian Pop- fix coding style * UTF8 encoding (mahge930 please set your workspace to UTF8 no BOM in Eclipse).
70cf37ff9OpenModelica Hudson[Janitor mode] Set auto-props
79453cee3Mahder Alemseged Gebremedhin+ Let the scheduler implement it's own executor.
39220e035Martin SjölundWorking on faster workflow for the bootstrapped compiler - Adding exportKind=OpenModelica.Scripting.ExportKind.MetaModelicaInterface to the list() interface (to be tuned) - Removed Makefile.sources (generated automatically during the build process) - Generate interface files to use for more fine-grained dependency analysis (no comments, etc) - We should be able to generate good enough signature files that we only need to load a small set of signature files to compile a package (instead of requiring all full files be used)
fcb3d1cc9OpenModelica Hudson[Janitor mode] Fix tabs
a7b6ececbVolker Waurich- output graphml for every equation system - fixed bug at partitionBipartiteGraph
c0e3abf51Marcus Walther- try to fix hpcom tests
d057cbe52Martin SjölundSend options to SCodeDumpTpl. Replace some old unparsing functions with the template ones.
3e21f104eMarcus Walther- GraphMLNew.mo removed from trunk
566d76791Marcus Walther- try to fix bootstrapper
09d6ec0dcMartin SjölundIncrease JS memory to 768MB
5f73ebef6OpenModelica Hudson[Janitor mode] Fix tabs
812366023Marcus Walther- moved the GraphML-Module to Unused/GraphMLOld.mo - renamed the GraphMLNew-module to GraphML - added some memory management logic to HpcomSimCode - cleaned up the HpcomTaskGraph-Module
c2b25f4deOpenModelica Hudson[Janitor mode] Fix tabs
5c6c2c68cMarcus Walther- changed GraphML-Dump to GraphMLNew-Dump
45f8d31ddVolker Waurich- some resolveLoops changes (resolveloops_main as matchcontinue, heuristic to priorize the equations that could be replaced)
4a0ef1899Martin Sjölund#2603 - Handle escaping strings where the string-length does not change
c9f5ab764Martin Sjölund- Copy expat.h at the correct place
0a61f6b45Martin SjölundBy default: do not output protected variables to result-file - To override: Add simflags="-emit_protected" - The library testing now adds -emit_protected if the compareVars is non-empty (and adds a variableFilter to only output these variables)
b84a10960OpenModelica Hudson[Janitor mode] Fix tabs
cb0c3634bVitalij Ruge- fixed input update - improve interpolation for input - improve initial guess
05b9ab59dVitalij Ruge- improve initial guess
af9978827OpenModelica Hudson[Janitor mode] Fix tabs
35279c32eVitalij Ruge- dev functionality for ploting structure of jac and hessian matrix
8240524d3Martin SjölundRefactoring
cee4d60caMartin SjölundRefactor code (remove duplicate sections)
755e452ebMartin SjölundConvert from int buffer to string; the nodejs function does not accept int buffers
391dc0245Martin Sjölund- JavaScript target: Use separate xml-files instead of embedding in the JS - Backend: Propagate "protected" boolean to SimCode
0650772bdMarcus Walther- adapted hpcom code to the cpp - class structure
7248a9d52Marcus Walther- openmp parallel code for all hpcom-scheduler now available
98e964d0aMartin SjölundAdd a "play" button to run a javascript-based simulation in the browser
15c7772caOpenModelica Hudson[Janitor mode] Fix tabs
8c08c7578Vitalij Ruge- improve initial guess
6720a2eebMarcus Walther- try to fix clang test
f7c051609Volker Waurich- changed handling of loops with variable-crossNodes (resolveLoops)
76e2d02e4Martin Sjölundmake emcc now downloads a minimal set of mdpad files
f420147c9Vitalij Ruge- improve initail guess
1a464fa54Marcus Walther- try to fix bootstrapper (forgot to upload one file)
154784115Marcus Walther- try to fix bootstrapper
c4d327974Marcus Walther- the cpp runtime can now be debugged with the g++ by adding "-D CMAKE_BUILD_TYPE=RelWithDebInfo" to the cmake file - changed System.mo:getOMPCCompiler -> System.mo:getOMPFlag to use the openmp-flag for the cpp runtime, too - added a new method to GraphMLNew.mo to get an attribute by name and target type - added hpcom level scheduling support to the cpp runtime
dc6a8d92eOpenModelica Hudson[Janitor mode] Fix tabs
702128142Vitalij Ruge- added pre simulation for optimization - using startTime from Optimica
4b581812eMartin Sjölundmake emcc in the root directory now installs all the dependencies
c57408b00Martin Sjölund- Partially revert r19289 (broken bootstrapping tarball) - Fix JavaScript target - Fix bootstrapping
d24eea441Adrian PopFix bug: #2412 - propagate program inside CACHE so we have access to it even if there is not symbol table available.
e44589430Adrian Pop- winter cleanup (preparing for front-end changes) * deprecate +scodeInstShortcut * moved Compiler/FrontEnd/F*.mo to Compiler/Unused * disabled Modelica.Media.Examples.R134a.* for now as it used +scodeInstShortcut and didn't work anyway.
42a4e11afMartin SjölundDisable the link-time optimizer. Download the binary files when doing make emcc
a391652ceMartin SjölundAdd description to FMU
e51ffea03Martin SjölundAdd description to the _init.xml
ebcf3b970Martin SjölundMore information in the logs
3e3ef6cc4Martin SjölundUpdate legend
3e11736adPer Östlund- Fixed character encoding.
1e3665b31Martin SjölundCopy to .so-files as expected
a67ca3a45Marcus Walther- pthreads_spinlocks are working again in hpcom
9e61d3179Volker Waurich- fixed small bug at resolveLoops (traverse partitions)
0de3ec08fMartin SjölundCreate the xml-file and then convert it to a C literal since Susan performance suffers if we do it in memory
7aeec1118OpenModelica Hudson[Janitor mode] Fix tabs
363d961cbOpenModelica Hudson[Janitor mode] Set auto-props
42c645bafMahder Alemseged Gebremedhin+ Added automatic parallelization implementation. - A generic task system. - A generic level scheduler. - Model representation for OM models. - An interface for OM model runtime. - support for loading model info from XML. Compile time loading to come. - dumping system graphs to graphviz and graphml formats.
fac68fe41Volker Waurich- changed evaluateLoop function for resolveLoops
0ada9915aLennart Ochel- revert r19259 and r19260, because it breaks the optimization
7f220c955Adrian Pop- fix typo
3da7db82cOpenModelica Hudson[Janitor mode] Fix tabs
d0ea8da4dVitalij Ruge- seperate output file for inputs vars
35d80c730Lennart Ochelnew warnings for alias sets with different nominal values - maybe this should be hidden per default and only displayed with some new flag
fe6d1e2eaLennart Ochel- minor simplifications - change "Alias set with several start values" warning
f747deccdLennart Ochel- move initSample call
10522ee1eLennart Ochel- remove obsolete workaround
6ef983831Lennart Ochel- remove obsolete workaround
313fb0335Martin SjölundAdd target to build libModelicaExternalC and libModelicaTables using the JS implementation
cc97e9cc7Lennart Ochel- fix *_init.xml file generation for variable attributes - fix #2597 - fix #2601
49f46e5ebLennart Ochel- move some post-initialization procedures - change stream for a assertion notification
b958f611aMartin SjölundJavaScript performance - less setjmp (limited max number of setjmp allowed in emscripten)
455c8486bMartin SjölundSome updates to the JavaScript target - pre.js is now included with the omc sources - It is now possible to use nodejs to run the generated code. An executable wrapper script is generated and the simulate() command now works - The XML files are embedded within the JS code now (just like we do for FMI) - We use -override arguments to pass stopTime,stepSize,tolerance and outputFormat instead of a full xml-file in a virtual file system
1a8e0b5aaVitalij Ruge- improve output - modefiy example final parameter in parameter
f0f56a3c2Lennart Ochel- fix incompatible pointer types
73061b18cBernhard BachmannFixed output format
0255d9ef9Vitalij Ruge- changes from Willi for r19242
9f9d3ed9eVitalij Ruge- changes from Willi for r19242
4d143e116Martin SjölundUse the chosen stopTime, etc in the javascript .md template
b743411b5OpenModelica Hudson[Janitor mode] Fix tabs
88767132fVitalij Ruge- improved preliminary functionality for external input file - initial point - added missing .h file to Makefile
1c4f6e60bWilli Braun - fixed solving tuples for correct variable - that break some avm models, but there for we need to fix ticket(#2599)
0d7e46f5aLennart Ochel- fix nominal values for the *_init.xml file (see #2597)
7339d12e2Martin Sjölund#2555 - Enforce casting of the value of a binding, in addition to the expression
f8de6d6cfOpenModelica Hudson[Janitor mode] Fix tabs
2dcb155c5Bernhard Bachmann- improved preliminary functionality for external input file
dc33e54aeVolker Waurichfor resolveLoops: - rewrote sortPathAsChain - bugfix at replacing heuristic
33aeef488Martin SjölundUse omc_error instead of the simulation streams (since expressions can be called from the function run-time)
9df053952Martin SjölundDo some run-time array bounds checking
d114913b2Volker Waurich- dump graphML after resolvingLoops - resolve paths which connect 2 simple loops - bugfix for sortPaths
55d079185OpenModelica Hudson[Janitor mode] Fix tabs
dd30eafe9Vitalij Ruge- added functionality: read external input from csv for dassl and optimization - for cheking input or initial optimization
f851f83c5Adrian Pop- additional rewrite rules support this is only applied via dumpXMLDAE with a rewriteRulesFile set. new interface: rewriteFrontEnd(from, to) or rewrite(from, to) -> applied on front-end expressions rewriteBackEnd(from, to) -> applied to back-end expressions before writing them to the .xml
2950d4546Willi Braun - revert r19222 for now, since some other issues raised with it
3765d7973OpenModelica Hudson[Janitor mode] Fix tabs
79aa7424aWilli Braun - fixed solving tuples for correct variable - added more cases for solving tuples
612854894Lennart Ochel- prepare time events
e94dab921Lennart Ochel- Oops! revert r19216 and r19217
599bd3286Lennart Ochel- update templates
0160ccce4Mahder Alemseged Gebremedhin+ Option to dump simulation systems as arrays of functions.
8cb5c9a4eLennart Ochel- fix inlineEventInfo - add missing 'or b3' - do not inline old data structure samples (cpp runtime should switch to new data structure for timeEvent, so that the old structes can be removed)
99a54fa19Lennart Ochel- rename attribute initial_ to start
a1cd02e14Vitalij Ruge- improve counter for hessian
39f36491aVolker Waurich- added function List.hasSeveralElements
a0184e023Volker Waurich- restructure resolveLoops - changed some heuristics to replace equation and to find the loops for resolveLoops
081b34fa1Lennart Ochel- add Modelica-like output for dumpindxdae using +d=dumpTransformedModelica (just a prototype)
47a684341Martin SjölundFixes for no kinsol
8f3cfe3dbVitalij Ruge- reduce one add in hessian
7dd064e92OpenModelica Hudson[Janitor mode] Fix tabs
febc91924Vitalij Ruge- improve counter for hessian - small changed in c-code (mv, del)
5be1a1d2bOpenModelica Hudson[Janitor mode] Fix tabs
bc1bf77d1Vitalij Ruge- reduce hesse elements - fixed output for constraints - fixed matching for constraints - active testcase for alias constraints
2ce1ebc90OpenModelica Hudson[Janitor mode] Fix tabs
747f9c8b9OpenModelica Hudson[Janitor mode] Set auto-props
e24b66303Mahder Alemseged Gebremedhin+ update missed configure script.
2a7e1e29bMahder Alemseged Gebremedhin- Rearrange parmodelica includes to the new include structure.
0a0a6bb66OpenModelica Hudson[Janitor mode] Fix tabs
6df0be9dfNiklas Worschechfix in CVode of cpp runtime, initialization of zeroSign vector was not correct
8dd444b98OpenModelica Hudson[Janitor mode] Fix tabs
13713d718Vitalij Ruge- print -Inf and +Inf for to big or to small numbers in optimization
3f82dc698OpenModelica Hudson[Janitor mode] Fix tabs
9ebde03deNiklas Worschech-separated calculation of Jacobian's of cpp Modelica system in extra class
04b7cf0ebWilli Braun - don't simplify in differentiationExp it's too slow - fixed differentiation of for loops - fixed differentiation of scalar product
bed94e98dMartin SjölundFix kinsol stuff...
78e890733Vitalij Ruge- useNominal = true, after update - fixed 19146 for start value - fixed output for optimization
f992efa7eMartin SjölundHandle Modelica.Utilities.Streams.error in simulations
1ea3bb055Martin SjölundFix kinsol dummy wrapper
ded5eebbdMartin SjölundMove ModelicaUtilities.h to the root of the includes, since the specification says it should be included with , not
81b38390bMartin SjölundFix MSVC crap?
9a0fc13c7Martin SjölundHandle NULL threadData
14e3ebd66Martin Sjölundmake clean now also cleans the bootstrapping directory
6528bd0b0Martin SjölundFix warnings
f33ace6f3Martin SjölundRemove the global jump buffers; do the jumping via threadData instead
0ffd50d45Per ÖstlundFix for #2587: - Added simplification rules -{e1, e2, ...} => {-e1, -e2, ...} and -[e1, e2, ...] => [-e1, e2, ...]. - Improved Static.elabMatrixCatTwoExp so it handles more cases.
2fb07f443Martin SjölundRevert r19152 (should be re-done without adding additional argument to all functions; keep ERROR_HANDLE inside threadData_t)
d9537dce0Martin SjölundMove the C includes to build/include/omc/c. Probably fixed bootstrapping
21306871fOpenModelica Hudson[Janitor mode] Fix tabs
412b2660eWilli Braun - passing error-handle round all runtime function to remove it from global scope
4ba83026aMahder Alemseged Gebremedhin+ Fix bootstrapping. Hunted down the culprit.
e3f3a873bAdrian Pop- spelling of: backend -> back-end jacobian -> Jacobian
31982035fMahder Alemseged Gebremedhin+ Update include paths for FMI/FMU and bootstrapping.
1408d0d0cVitalij Ruge- fixed initial guess for optimization
cf37d212bVitalij Ruge- fixed setting of bounds for input in optimization
303db6575Per ÖstlundFix for #2585: - Handle cardinality on arrays properly.
95a5c5b2cMahder Alemseged GebremedhinFix includes in Simulation runtime. Keep them relative. Keep simulation runtime header structure in build directory.
b4c99c488OpenModelica Hudson[Janitor mode] Fix tabs
51ac34f35Vitalij Ruge- join constraints and algebraic vars
dfe54a3fcMartin SjölundSome more Tpl functions now use match instead of matchcontinue
7784fdcbaMartin SjölundFix MetaModelicaDev tests
774eb5923Per Östlund- Only return the new classes in Main.handleCommand2, not all loaded top-level classes.
80d1ffa09Martin SjölundFix if-equation translation for omcc
a2baf5cd5Vitalij Ruge- add function for pick up input attributes - missng free
09f61ef1cMartin SjölundAdded a better error-message for using subscripts in modifiers
f1a8ed13fVitalij Ruge- new simplify rule for a + (-b)/x = a - b/x
83335f9d2Willi Braun - removed linear flag for SimCode.createEquation - allow also no-linear for jacobians - fixed function for linearization
413a0d99fLennart Ochel- remove unused flag +d=dumpderrepl - auto-enable +d=backenddaeinfo if either +d=stateselection or +d=discreteinfo is used
d19da6de8Vitalij Ruge- fixed r19122
4fc8a1680Lennart Ochel- revert r19122
84ce63388Lennart Ochel- fix r19111 - get ./simulation/libraries/3rdParty/ThermoSysPro/ThermoSysPro.Examples.SimpleExamples.TestJunctions4.mos working again
a862e2f33Vitalij Ruge- restruct constraints (optimization) - new VarKind for constraints - new SimVars for constraints
d55215513Martin Sjölund- Removed forgotten old print for torn systems (it's part of the error buffer now) - BuildModelRecursive.mos script now uses +d=backenddaeinfo by default, and colour-codes the links (red,orange,blue for error,warning,notify)
26d7bf3dbLennart Ochel- fix #2583
892ff1908Martin Sjölund+d=backenddaeinfo now prints to the Error.mo buffer instead of stdout
e3ce9bd5dMartin Sjölund#2580 - Don't clear the error-buffer if the simulate command fails (so it is possible to use the normal error commands to query errors)
cf70e5e73Martin SjölundDump info regarding linear system density
170cb6ca0OpenModelica Hudson[Janitor mode] Fix tabs
158b10e3bVitalij Ruge- split DAE and ODE in the context of event
33558ce92Vitalij Ruge- 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
f223a224fLennart Ochel- add "discrete states" to +d=backenddaeinfo - see #2397
4603d975aVitalij Ruge- removed duplicated simplification
436cded66Vitalij Ruge- simplify tsub
2d3b254e9Vitalij Ruge- fixed last commit
a4c0882a9Vitalij Ruge- checking const tsubs for derivations
f4bcb63f5Willi Braun - work-a-round for index reduction, don't differentiate tuple for now - fixes for avm models
690d22b7eVitalij Ruge- update initial guess solver
33f62ec43Vitalij Ruge- changed default values for ipopt
706b552eeWilli Braun - fixes for function differentiation handling - set correct header type for derivative annotation - handling of tuples - fixed sorting result in symbolic jacobian - moved getArrayCref from SimCode to ComponentReference
4a9f69dd9Lennart Ochel- move warnings for parameters from front end to back end - get rid of false warnings
26cc5078aOpenModelica Hudson[Janitor mode] Fix tabs
d62d21513Vitalij Ruge- fixed numerical gradient for lagrange term
57424fb07Vitalij Ruge- added numerical gradient for objective function
9e973d7c9Lennart Ochel- add new initialization test case for parameters - minor changes to LOG_INIT and LOG_SOTI
f23ff3bb0OpenModelica Hudson[Janitor mode] Fix tabs
c84465054Vitalij Ruge- improve last commit
05c949836Vitalij Ruge- added dense numerical jac
b6f1f207cOpenModelica Hudson[Janitor mode] Fix tabs
c37f13027Vitalij Ruge- num jac for optimization (num gradient missing) for compare num and sym jac
465ac1b71Lennart Ochel- update initial comment for generated *_08bnd.c files
16b774503Lennart Ochel- update function name to its new functionality (updateBoundStartValues -> updateBoundVariableAttributes)
9c04f9678Vitalij Ruge- remove unless code - optica flag don't break simulation code
d3308a600Vitalij Ruge- detailed output
250bc6292Lennart Ochel- second try: fix parameter dependent attributes (nominal, min, max)
c5f4afa63Lennart Ochel- revert r19076 (some cppruntime and hpcom tests seem to became non-deterministic)
ef4bdf650Lennart Ochel- fix parameter dependent attributes (nominal, min, max)
dfd56c58eMartin Sjölund- After suggestion by Adrian, order the pattern-matching in a smarter way: do cheap patterns before more complex ones
4011c6688Willi Braun - just function renaming from greate to create
0a7036fa7Vitalij Ruge- added warnings for optimizations flags
17615feeaVitalij Ruge- remove unused operation
78f21e855Lennart Ochel- fix duplicate warnings - there are still some duplicate warnings from the front end (Adrian is working on that)
e80d15456OpenModelica Hudson[Janitor mode] Fix tabs
3be0cff1fMarcus Walther- GraphMLNew added -> this module will replace the GraphML-Module in the next weeeks - The hpcom-openmp-code is now static - The hpcom-module creates another graph now, which contains cache-line informations (this is a prototype at the moment and will be extended soon)
620770693OpenModelica Hudson[Janitor mode] Fix tabs
a6179aff1Niklas Worschechworkaround fix for discrete relations in cpp tempalte reactivated jacobians in cpp template
16aeaf9ebOpenModelica Hudson[Janitor mode] Fix tabs
87bb6b3c8Vitalij Ruge-improve r19056
a005f08eaMartin SjölundThe order of the base classes matters
c5640a57cMartin SjölundDeterministic identifiers in generated svg
64d687f93Vitalij Ruge- split function
9a9ce0d3dVitalij Ruge- add warning for optimization
c81b058bdVitalij Ruge- split function
37546f505OpenModelica Hudson[Janitor mode] Fix tabs
796667a3dVitalij Ruge- split function
25b970a30Vitalij Ruge- remove function call
6d7ab38aeOpenModelica Hudson[Janitor mode] Fix tabs
88105019cVitalij Ruge- spliting function
e8b562a38Adrian Pop- small speed improvements in some of the connection handling.
54859fa68Willi Braun - add functionTree to shared
c8f9e5349Lennart Ochel- improve last commit
f1c2b5522Lennart Ochel- fix #2566
b3c758802Martin SjölundRevert accidental change in r19041
7676bdad5Martin SjölundBump MSL 3.2.1
7d5805374Vitalij Ruge- fixed constraints (thanks Willi)
f726aa176Martin Sjölund- Improved pretty-printing of list() API for when-equations/etc - Added equation comments inside when-equation/etc blocks instead of after the whole when-equation
b265ebb91Per ÖstlundFix for #2570: - Print parentheses when dumping empty annotation with Dump module.
84fc52336Martin SjölundGuard only the requested parts with rollback of error-messages (certain sequences would make omc exit because the top of the error stack was wrong)
b0f07aa1cWilli Braun - fixed #2574
7b818029bWilli Braun - fixed #2575
833fb628aAdrian PopMore heuristics for #2566 - if fixed=false, no start value, and a binding -> give a warning and use the binding as start value - if fixed=false, a start value, and a binding -> give a warning, use the start value and ignore the binding
ab1137d6cOpenModelica Hudson[Janitor mode] Fix tabs
2f845d711Vitalij Ruge- fixed lagrange term - new test for timetable
a1772cc42Adrian PopFix #2566 in the FrontEnd - report parameter T p(start = value, fixed = true) and use the start value.
bca2a7990Adrian Pop- apply evaluation of rooted and isRoot at the same time to save time.
8c34e0e5dMartin SjölundRevert r19001 (missing CodegenC.tpl changes and changes to the jmpbuf structure)
07a4d1589Martin Sjölundlis only create x-vector once
1ce72d5adOpenModelica Hudson[Janitor mode] Fix tabs
bdb0d222aPer Östlund- Added disableRecordConstructorOutput debug flag. - Handle matrices in min/max better. - Handle arrays with more than two dimensions better in product. - Fix array types when slicing vars with more than two dimensions.
7098ffa81Martin Sjölund#2571 - Return valid values for getSimulationOptions
182184fbeWilli Braun - try to handel simple division by zero errors
43d978704Martin SjölundRemove the third argument of the DIVISION macro, passing equation index instead (for debugging)
391cfbad0Per Östlund- Changed DAEDump to always print out modifications after the variable name instead of after the type name.
681db07baMartin SjölundFix some variables and comments for the documentation generation
ad9b86ae7Niklas Worschech fix for array state variable assignment in cpp tempalte activated sorting of simvars in SimCodeUtil for cpp runtime
4ed11eecfPer ÖstlundFix for #2062: - Better handling of cardinality.
01548be82Lennart Ochel- fix warning
3359575afLennart Ochel- fix #2566
15e7f395aMartin SjölundUncomment icons creation
ea0435474Niklas Worschechremoved no longer used functions from SimCode to calculate state variable index which were used in cpp template
3b2f89a90OpenModelica Hudson[Janitor mode] Fix tabs
609426244OpenModelica Hudson[Janitor mode] Set auto-props
9b5c701b5Niklas Worschech-separated writing of simulation results of cpp Modelica system in extra class
62aca377cLennart Ochel- fix #2561
0a3ae7e03Martin Sjölund#2554 make distclean instead of make clean
75feaf4bfLennart Ochel- fix #2504
6c9a31c2fMartin SjölundFix library testing script spinning
5a6fb3642Adrian Pop- implement alarm in Windows (using thread/sleep/kill process)
59ae47669Martin SjölundAdded new API alarm(seconds) - a timeout before omc is killed. alarm(0) unsets the alarm
8804e1eb8Martin SjölundRML compilation
7babbaf9eMartin SjölundAvoid matchcontinue
5190e5e4aMartin SjölundRenamed crefEqualStringCompare to crefEqualVerySlowStringCompareDoNotUse - crefEqual now uses crefEqualNoStringCompare - only cppruntime uses crefEqualVerySlowStringCompareDoNotUse
6b9437c43Martin SjölundTruncate before making the string valid xml
640c5c037Adrian Pop- switch back to 1.9.1+dev
29db00521Adrian Pop- redo 1.9.1 Beta1 (request by Adeel as he fixed some stuff in OMEdit)
1b6192ba9Adrian Pop- strange as it sounds -v affects -t in ulimit, remove -v
dfb0867c1Adrian Pop- ulimit -v -t doesn't seem to work for the given time in -t - trying ulimit -t -v and also added -v limit for simulation executable.
7e3423d1fAdrian PopFix for #2557 - propely display the warning message - add the line number information to the warning message too
d27739e9bOpenModelica Hudson[Janitor mode] Fix tabs
359e01cadVitalij Ruge- new initial guess option for optimization
9301cda44OpenModelica Hudson[Janitor mode] Fix tabs
3813fafa1Vitalij Ruge- added new flag: higher print level in ipopt
aa7ada5ffVitalij Ruge- added new flag for checking JAC and HESSE in optimization
2054cbac9OpenModelica Hudson[Janitor mode] Fix tabs
1fd7d441aVitalij Ruge- added flag: swtch hesse in ipopt e.g. BFGS
3c5c7da62Martin SjölundSet ulimit -v for BuildModelicaRecursive.mos
e7824ef7fMartin SjölundFix printing of negative real numbers that look like integers
9c81a0e6fMartin Sjölund- Changed lib/omlibrary/Modelica... to Modelica... for testsuite messages (to work better with build symlinked to /usr) - Added reading of env.var CC at start to be able to change CC in pre-compiled omc version
de9fa7f47Lennart Ochel- fix #2557
4f9caa5e8Martin SjölundTry to fix OSX weird problems
aa51830a1Adrian Pop- switch back to 1.9.1+dev
91640fbb5Adrian Pop- update version to 1.9.1 Beta1
46d772424Adrian Pop- reverted previous commit - simcode needs omc but omc was not copied yet from Compiler/omc_release to build/bin, however omc needs simcode (how does this work?)
4cede07aaAdrian Pop- susan_codegen needs omc!
8e51c2d3cMartin SjölundReturn the exit status we got from the simulation runtime
f78c9a686OpenModelica Hudson[Janitor mode] Fix tabs
afd9951c8Marcus Walther- try to fix bootstrapper bug
04bbc9fa1Marcus Walther- Template for hpcom-cpp target added to the template-folder - Changed EXIT(0) to return 0 in _main_simulation_runtime
8a17ec83bAdrian Pop- flag +d=disableWindowsPathCheckWarning (Disables warnings on Windows if OPENMODELICAHOME/MinGW is missing).
cf8385aeeOpenModelica Hudson[Janitor mode] Fix tabs
815a10b08Niklas Worschech-separated initialization of cpp Modelica system in extra class
f185de193Volker Waurich- round graphCosts - updated referenceGraphs
db09538d8Volker Waurich- round the values for serialTime, parallel Time, critical Path - always use num_threads from the flag +n=.. for level scheduling
1ef26bc65Martin SjölundOnly use --enable-64bit on x86_64 CPUs for antlr
c3a409912Martin SjölundTry to override LDFLAGS in case it in part of the environment
fc9b8131cMartin SjölundBump MSL 3.2.1
949c06d19Martin SjölundRemove antlr3 header on make clean (needed to actually make the gcc hudson job do a clean build)
c5cb3660aMartin SjölundPass the CC since antlr uses different typedefs and includes depending on compiler
0b9278941Martin SjölundEnable 64-bit code generation for antlr
302a02da0Martin SjölundChanges for FreeBSD compilation
219be0623Martin SjölundFix antlr compilation
6552ff462Martin SjölundAdding makefile dependencies
8a6f62f3bMartin Sjölund- Run ./configure in antlr-3.2 to ensure a valid configuration is generated
aee3534d6Martin SjölundSome updates to the README
742025b4dMarcus Walther- the hpcom speedup is now printed to stdout with an accuracy of two digits after the decimal point
45cfb62cfMartin SjölundNew revision for new nightly
82dded391Volker Waurich- output whole dae graph as graphml when resolving loops
ee566e39fLennart Ochel- revert r18840
ed4127751Lennart Ochel- fix #2553
e6fb779fdAdrian Pop- more fixes for Mac OS
b7ab08e5bMarcus Walther- debug output removed
3028466d1Marcus Walther- bootstrapper fixed (sorry, it took a little bit longer to localize the issue)
e9b98f0a8Adrian Pop- fix bootstrapping (some bootstrapping bug here, see my comment inside the code)
1ef176fa6Marcus Walther- bug fixed: hpcom taskgraphmeta is not longer invalid, if the model contains more than one EqSystem
6ff3ce88fAdrian Pop- fix bootstrapping - strangely SOME(outRules) := getGlobalRoot(Global.rewriteRulesIndex); does not work directly in the bootstrapped compiler, you get: Error: Invalid pattern: SOME(rules) of type ##T_UNKNOWN#
66a2bd9d6Adrian Pop- support for rewrite rules - the rewrite rules are only used in dumpXMLDAE if a rewrite rule file is given as last parameter (if interest exists we can make it part of the usual front-end chain) - example of a rewriteRules.txt file rewrite(abs('$x'), if ('$x' >= 0) then '$x' else -'$x'); rewrite('$x' ^ 2, '$x' * '$x'); // rewrite(semiLinear(0.0, '$x', '$y'), 0.0); // rewrite(semiLinear('$x','$y','$z'), if ('$x' >= 0) then '$x'*'$y' else '$x'*'$z'); rewrite(noEvent('$x'), '$x'); rewrite(Modelica.Fluid.Utilities.regRoot('$x','$y'), if ('$x' >= 0) then sqrt('$x') else -(sqrt(-'$x'))); rewrite(Modelica.Fluid.Utilities.regStep('$x',y1,y2,e), if ('$x' > e) then y1 else y2); rewrite(Modelica.Math.Matrices.isEqual('$x','$y','$e'), (size('$x',1)==size('$y',1) and size('$x',2) == size('$y',2) and sum('$x' .- '$y') == 0));
3a155cb93Adrian Pop- no .so on Mac OS, use $SHREXT instead
e35af1d47Adrian Pop- attempt to fix MacOS handling of libcminpack
c76c90f36Adrian Pop- copy to build/lib/omc not to build/bin! - also use 3rdParty/CMinpack/install/lib*/ as it might be lib64 on Linux!
db499b427Christian SChuberttry to fix build for cpp runtime with cminpack
f1b3a191fMartin SjölundPatch for emcc (javascript runtime) from tshort
31bf767dfVitalij Ruge- fixed constraints
3a339cee0Niklas Worschechfix for ticket #2548. Added case for msvc for external library directory linker path
d7c0e9cfcNiklas Worschechfix in cpp tempalte: gcc make file, link to ModelicaExternalC
f6f2ec04aVitalij Ruge- better time grid for optimization
0673e6cf5OpenModelica Hudson[Janitor mode] Fix tabs
e4bd0389cVitalij Rugefixed r18817
6cb7e3050Vitalij Ruge- free memory for analyticJacobians structure
a5e7a6a4bNiklas Worschechrenamed ModelicaExternalC lib in cpp runtime without prefix OMCpp
394f7c2a1Niklas Worschechadded clean in cpp runtime make files
c75d65f02OpenModelica Hudson[Janitor mode] Fix tabs
87168ff47Vitalij Ruge- missing free()
0e141acd4Vitalij Ruge- fixed constraints size
24c7c44a1Adrian Pop- reverted r18808 as it breaks some tests and make some tests run forever even if we have ulimit -t
7bde9cb76Vitalij Ruge- fixed constraints size
d535f310eVitalij Ruge- small fix for constraints in hesse
bae0da5cfNiklas Worschechextended cpp tempalte for external C- functions
17f07e748Volker Waurich- try to fix build_clang
3ff6740abVolker Waurich- implemented a heuristic whether to resolve a loop or not, some rewriting
359db39e8Leonardo Laguna- Reverted bad commit
4ed9d5ae0Leonardo LagunaFixing bug in VarTransform.replaceExpRepeated
f597bc5daChristian SChuberthopefully, this commit will fix the build of cminpack together with the cppruntime
635d750a4Martin SjölundOnly output variables that are actually in the reference results (use outputFormat="empty" if not checking reference files)
45c18232eMartin SjölundFix generation of all models again
d44efefcaNiklas Worschechfix in cpp template for algorithm array assign
a4e5e4b8aAdrian Pop- more fixes for Windows MSVC (int32_t header included) - fixed the filename in SimulationRuntime/c/simulation/results/CMakeLists.txt
b57e06c8aAdrian Pop- fix Windows build (htonl is in some other header)
493a89f77Martin SjölundRemove some unused headers
e3fdb3bf7Martin SjölundFix compilation
e407ad420OpenModelica Hudson[Janitor mode] Fix tabs
60040a048Michael TillerAdding support for wall files
7b0a94cf7Niklas Worschechadded -fPIC Compiler flag to ModelicaExternalC lib of cpp runtime
90ea88bdfMartin SjölundEnable tracing the flattening operation (from SCode to DAE)
7f4f0b166Niklas Worschechdeactivated hybrj solver again, clean Minpack build before does not help
2653de062Niklas Worschechsecond try of activating hybrj solver with make clean build of CMinpack
9c7538397Christian SChubertadded cminpack-clean to clean target, building cminpack with visual studio when building runtimeCPPmsvcinstall
d7b436cd8Niklas Worschechfix in cpp template for algloop file names.
d003fb126Niklas Worschechdeactivated hybrj because of build errors
22185ddb8Vitalij Ruge- update scaling hess
fc023bef5Niklas Worschech-Activated hybrj solver in cpp runtime -changed generated cpp file names with fileNamePrefix
578d38e6fNiklas Worschechadd find call for CMinpack library and header files to cpp runtime cmakefile
eb2f79bc5Vitalij Ruge- fixed indices for constraints (optimization)
23307a65bChristian SChubertattempt to fix windows build (strict checking of msvc regarding c coding conventions)
0348d0871Niklas Worschechchange ModelicaExternalC library from cpp runtime to use c files form MSL. Adapted cpp template for external objects removed unused files in cpp runtime
57aba426dVitalij Ruge- fixed constraints scaling
f5ba88d5fMartin SjölundHandle single quotes and spaces in URL's better
ef3e06d31OpenModelica Hudson[Janitor mode] Fix tabs
5a3d1aa4cOpenModelica Hudson[Janitor mode] Fix tabs
7fbf5e9a2Volker Waurich- additional output for -lV=LOG_LS_V
c5fc1bf47Vitalij Ruge- simplify constraints (optimization) - fixed jacobian size (optimization)
b5b9fb89cVolker Waurich- added a function to get the loops in a complex bipartite graph (just for testing)
80051776cOpenModelica Hudson[Janitor mode] Fix tabs
7f884c26aPatrick Marcel Taeuber- modified Cellier-Tearing to solve mixed Systems - fixed some problems with Cellier-Tearing
29bbd287eMartin SjölundGuard against divisions by zero
a16f99020OpenModelica Hudson[Janitor mode] Fix tabs
632f717e0Per ÖstlundFix for #2532: - Fixed slicing of qualified crefs.
81e2c12fcVolker Waurich- fix bootstrapper
0e1ead3c7Vitalij Ruge- fixed hessian for constraints (optimization)
3d90ff3a3Volker Waurich- rearranged code for resolveLoops - some bugfixes for resolveLoops - introduced resolvedLoops as a postOptModule that handles StrongComponents (not yet finished) - updated tests
2d017f179Vitalij Ruge- fixed hessian for constraints (optimization)
65c24df42OpenModelica Hudson[Janitor mode] Fix tabs
41253bc7dVitalij Ruge- support constraint block (optimica) - add example
9635f1c6eMartin Sjölund- Add numberOfIntervals and stepSize as input/output of getSimulationOptions - OMEdit now respects the Interval experiment annotation in the simulation setup - Enable output of the statements in the match equation sections (for error messages)
0cfe45fd0Willi Braun - removed global optimization functions
a31dc78ddMartin SjölundBy default don't export svg elements with display="none" since some renderers do not ignore these elements...
1923024e2Willi Braun - fixed issue of r18708 (missing function definition).
eb31a2e84Martin SjölundHandle in class comments
a99b042f9OpenModelica Hudson[Janitor mode] Fix tabs
351ffb9f1Vitalij Ruge- jacobians for nonlinear constraints (optimization)
7f5cfae4cJan KokertFixed CR/LF in script for Windows
213515f64Per Östlund- Preserve enum literals in Static.elabCrefSlice.
f8c15518bAdrian PopFix for bug: #2385 - expand array elements added to expandable connectors - add test: testsuite/flattening/modelica/expandable/ConnectorTest.mos
30ef637c8Willi Braun - removed rounding step-size work-a-round
095936ba1Adrian Pop- Implement feature #2542 - Use: +replaceHomotopy Replaces homotopy(actual, simplified) with the actual expression or the simplified expression. Good for debugging models which use homotopy. The default is to not replace homotopy. Valid options: * none (default) * actual * simplified Use with +replaceHomotopy=actual|simplified or setCommandLineOptions("+replaceHomotopy=actual|simplified") via scripting. - Added testsuite/flattening/modelica/others/Homotopy.mos for testing the new facility.
5d3e3be12Martin SjölundFixes #2376, simplification of slicing array crefs
853fb3ea8Volker Waurich- resolveloops: the resolved equation has the form 0 = ... in order to simplify the expression on one side - updated tests
a8b6da1f6Willi Braun - added fix for stepSize calculation and output intervals #2539
6a6b9fa19Martin SjölundFix LOG_INIT stream
d63e6a985Willi Braun - fix bootstrap compiler
f46533d92Willi Braun - added an interface function for partial derivatives of functions
f17a93849Martin SjölundUgly hacks for unelabExp of empty arrays
cd1847bbeMartin SjölundCheck for ACTIVE_STREAM vs. DEBUG_STREAM with LOG_DEBUG (used as both infoStream and debugStream; one is removed by the preprocessor)
79686896cMartin SjölundAlso fix CodegenFMUCpp
a79556e21Martin Sjölund- Fix OSX compilation of cppruntime - Fix name of ModelicaConfig.inc - Return 1 (failure) if the output format was not supported
38fa42224Volker Waurich- fixed resolveLoops (sort loop before resolving it) - updated tests - added test to Makefile
3fa48efacMartin SjölundHandle cppruntime in BuildModelRecursive.mos
676eb60beMartin Sjölund- Added API reloadClass to reload a class from file only if the file changed - Added getErrorString(warningsAsErrors=true), to report warnings as errors - BuildOMC.mos now fails if any warning is generated, even if it generates code (unbound variables, etc; let's keep the compiler sources strict to avoid potential problems)
e6da93e76Adrian Pop- added simplification of homotopy(e, e) -> e (maybe we should add a warning?) - commented out diff(homotopy(e1, e2)) -> homotopy(diff(e1), diff(e2)) in Differentiate.mo for now
030edbd84Adrian PopFix for bug #2537 - added diff(homotopy(e1, e2)) -> homotopy(diff(e1), diff(e2)) - added test also: testsuite/simulation/modelica/others/Bug2537.mos
d20eb0115Martin SjölundRemoving scodeInstShortcut from library testing
63b94594aLennart Ochel- minor changes
2371b9af3Lennart Ochel- remove attribute offset from structure SOLVER_DATA
dc089bb64OpenModelica Hudson[Janitor mode] Fix tabs
08bac5006Vitalij Ruge- partially using of hessian structure
c77bf6b59Vitalij Ruge- update calculation numerical hesssian - update calculation gradient
f6c36c996Vitalij Ruge- change handling for numerical issue for hessian
0c0009764Martin SjölundUse correct signature for pthread_once
e4d809e21Adrian Pop- strtok_r not available in MinGW, added an implementation for it.
ea4422a30Volker Waurich- rewritten resolveLoops module - added function listIsLonger and extract1OnTrue to List.mo - updated tests
e7fe28678Martin Sjölund- Add timestamp (mtime) to parsed files - Added getTimeStamp(className) that returns the seconds since epoch, as well as a string (as returned by ctime) - Don't initialise GC if we won't use it
613b2f6aeLennart Ochel- minor changes to LOG_STATS
b62a72fa9Martin Sjölund- Better error-messages for operator record requiring operator function members and the other way around - Fix LoadCompilerSources not setting echo(true) if echo was disabled
b4c810116Adrian Pop- attempt to fix Windows build in Compiler/Util/Util.mo - fix indentation a bit in Compiler/runtime/System_rml.c
bbeecc065Adrian Pop- reverted r18640 as it breaks builds and tests.
b41d27137Niklas Worschechadded link to minpack for hybrj solver in cpp runtime
965ad400cMartin Sjölund- Some small changes after investigating GC performance with different flags (enabling LARGE_CONFIG)
c5f1d8a7aMartin SjölundAdded threading support for loadFile(), called loadFiles(). Saves roughly 1/3 the time of loading the compiler sources using 5 threads.
499484a4aOpenModelica Hudson[Janitor mode] Fix tabs
368bda241Niklas Worschechfix for cpp runtime simulation call for windows, removed unused variables from CevalScript simulate
c3b3b0937Adrian Pop- ansi-C
f7b8c019bHenning Kiel- fix calls of assertStreamPrint() and throwStreamPrint() - fix some warnings - reduce scope of objects - "unsigned" -> "unsigned int" for better readability
c702a47a6Martin Sjölund#2530 - Handle identity() in functions better
2e94ffc2bMartin SjölundUse the generated shell-script to run Cpp simulations. Respect the fileNamePrefix parameter a bit more
b8c5a56a1Adrian Pop- some comments in the makefiles
ca4a3bf4cAdrian Pop- fix some meta tests on Windows (crashes because of gc parallel mark, now disabled in Windows) - update Global.rewriteRules index to 18 (as 10 is already taken) and renamed it to Global.rewriteRulesIndex
d3463dd55Niklas Worschechadded function to cevalscript to get script extension
474646521Niklas Worschechfix for cpp simulation Linux run script, removed typo
7626efc41Niklas Worschechfix in cpp template, changed linker order of cpp libraries
ce3f06bccMartin Sjölund- Changes to reduce the number of warnings -Wall gives for omc-generated code (unused labels, etc) - Changes that make more things thread-safe, including + Making tmpTick be thread-local + Making index 0..8 of setGlobalRoot actually be setLocalRoot (which I did not want to add to rml) - Removed the old fork method of building omc (while fast, it did not work the way you expect it to, actually restarting the build process several times) - Added a pthreads implementation that works well enough to bootstrap omc (not enabled by default) + NOTE: This is slow because GC halts *all* threads making spawning multiple processes faster despite parsing the compiler sources again. Tweaking libgc could help us though. As could adding GC_free where we know a temporary is no longer used You are strongly recommended to make clean if you were using the bootstrapped compiler before
2f5a43818Martin SjölundChanged realString to be thread-safe (using the old routines, but %.16g so results are mostly the same as dtoa). NOTE: You need rml-mmc r268 for all results to be the same (else ~8 will fail)
609efca71Niklas Worschechfix for cpp windwos simulation run script.
5ea6477dcAdrian PopFix bug #2505 - remove zero sized loops from the DAE - added test testsuite/simulation/modelica/arrays/ZeroSizeLoop.mos - updated test testsuite/flattening/modelica/arrays/EmptyArraySubscript.mo
64a283d82Adrian Pop- partial commit for rewrite rules: rule file loading and parsing
c14b7c056Volker Waurich- added debugFlag resolveLoops, - commented out some prints for debugging in resolveLoops
1a41b7c6cVolker Waurich- added some more function for the resolveLoops module
4838de336Adeel Asghar#2531 - Do not show the extends final modifiers in the OMEdit parameters window. - Added a new API isExtendsModifierFinal. - updated interactive_api_param.mo & interactive_api_param.mos
55c22a697Henning Kiel- revert loop index to signed type
5faa0243aHenning Kiel- fix some compiler/cppcheck warnings - fix a memory hole - fix a copy/paste error - fix some variable initialisations
786fe41ecVolker Waurich- fixed graphMLDump of equationSystems
a9460142bLennart Ochel- fix #2528 - add test case for #2528 - deactivate test case ./simulation/modelica/hpcom/Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.mos temporarily, until it is updated
d31849aa2Adeel Asghar- Fixed simcodedump.xml. Remove the extra quote. - Added the candidate tag in the parser.
9caf8be24Martin SjölundRemove extra `'`
e38e14174Martin Sjölund#2529 - Vectorize function calls with DIM_EXP() as dimension
5526c33d5Niklas Worschechadded generation of script file for linux to run cpp simulation with simulation parameter
fd01c6fe8Matthias Arzt- C++Target add methods for reading an writing algebraic variables in blocks removed methods for reading an writing single algebraic variables
c1c54c303Martin SjölundAdd support to compare without the tubes using a tolerance of 0
617a56300Christian SChubertbugfix CodegenCpp: OmCpp was added twice for mixed systems, Compile cminpack
a32d4f915Adrian PopFixes to #2524 - update Dialog annotation record in Constants.mo to Modelica Spec 3.2 revision 2 New components: parameter Boolean colorSelector = false; parameter Selector loadSelector; parameter Selector saveSelector; Where Selector is: record Selector parameter String filter=\"\"; parameter String caption=\"\"; end Selector; - build the instantiated environment if needed in Interactive.mo for getComponentAnnotations - added test DialogAnnotation.* - update interactive_api_annotation.mos
bddc47a17Martin SjölundUse the pooled allocation interface for the JavaScript target
2b989d0baVolker Waurich- try to fix bootstrapper
a7aca9c26Adrian Pop- attempt to fix bootstrapping.
ede22e767Volker Waurich- added some functions for resolveLoops, not yet finished - fixed bug for graphML dump of equationsystems - added makeTupleR to Util/Util.mo
2f5446f99Martin SjölundFixes for RML signatures
53721d995Martin Sjölund#2525 - Put initial array equations that are reductions in the correct section
cf784e669Henning Kiel- some fixes from cppcheck - pass parameter of size_of_dimension_*_array by reference to improve performance
df1d6e84dOpenModelica Hudson[Janitor mode] Fix tabs
cc38f83c8Alachew Mengist- Fixed #2410: XML Dump doesnot generate equation for Linear Systems and Non-Linear Systems. - Fixd Iinitial equations - Generate XML for delay function
e38217a5dAdrian Pop- fix compilation. - strange that ResidualCmp.createResidualCmp needs SimCode.MAKEFILE_PARAMS but whatever.
ffcb55fc7Niklas Worschechadded generation of script file for windows to run cpp simulation with simulation parameter
5a09ffacdVitalij Ruge- fixed lagrange term
e0c648190Volker Waurich- added some functions to partition the graph for resolveLoops
c20eca6d7Martin Sjölund#2521 - Don't try to correct the type of a correct subscripted cref
3d7b6b873Volker Waurich- added new preOptModule "resolveLoops", this is looking for loops of simple equations which can be resolved to create independent equations instead of a big equation system. (as far as I can see this can be applied to some electrical models to implement Kirchhoffs laws). NOT YET FINISHED
e36d6570fVolker Waurich- added function to dump a bipartite graph as GraphML for a set of equations and vars.
34d1ef0f1Niklas Worschech-added link against libdl in cpp template
a89cb1122Volker Waurich- added Util.arrayMemberNoOpt which does the same like Util.arrayMember but requires no array>
73473d7ecChristian SChubertcpp_runtime: added parallel compilation for mingw on windows. But only if testsuite is not running.
44d2365dfOpenModelica Hudson[Janitor mode] Fix tabs
20b03c43fNiklas Worschechfix: changed parameter of createSimulation method in cpp runtime
4997fac2aWilli Braun - fixed code-generation issues for #2494
e26706f88Willi Braun - bug fix for #2437
774b3daaaOpenModelica Hudson[Janitor mode] Fix tabs
eb43c96a3Niklas Worschechchanged cpp runtime generated output file names for system lib and cpp files generate executable for cpp runtime
cd5c42299Martin Sjölund#2401 - Don't accept partial functions in the parser except in function calls
fd504b6e9Willi Braun - added for evaluation of actualStream-operator smooth(0, exp) - actualStream-Operator should not generate events
f4fbe8cc7Willi Braun - added SimVars of Jacobian to *_info.xml files - moved collecting function from Codegen to SimCode
c70e23773Martin Sjölund#1732 - Check for invalid use of record components in external function declarations
83171158bJan KokertUpdated installation notes (my first commit)
96daed5f1Adrian Pop- Fix for #2519 - added the test from the ticket too
6e011358aVolker Waurich- dumpEquationSystemAsGraphML works for torn systems and equation systems
5e7849a0bMartin SjölundMaybe fix #2313 #2518
b212460dbPer ÖstlundFix for #2503: - Propagate visibility prefix to components of structured components.
f67dc27faPer Östlund- Fixed simplification rule |e1| op |e2| => |e1 op e2| (was => |e1 * e2|).
d5bef0557Martin SjölundFix OSX compilation
49b7807bfVolker Waurich- functions to dump a bipartite graph of linear torn systems (as .graphml, can be viewed in yEd)
7f73ad6d1Martin Sjölund#2513 - Propagate -lintl to rml-generated code
b3c3ab286Martin SjölundRemove debug print
1f2c13daeWilli Braun - fix numArrayElement for temp array simVars.
265602cacMartin SjölundFor csv output, don't output aliases of parameters since we don't output parameters
55f443624Vitalij Ruge- fixed time table for optimization - fixed setting of input-vars in optimization
8b157b092Henning Kiel- fix some findings from cppcheck
e44974e0bMartin SjölundAlso output that custom commands were used
90f60597aVolker Waurich- build a single equation instead of an equation system if the size of the torn system is one when using +d=partlintornsystem
803137e58Per ÖstlundFixed for new instantiation: - Fixed support for StateSelect. - Forbid subscripted function calls. - Added missing listReverse in List.findMap*.
278ccf632Volker Waurich- moved functions to handle equationsystems for hpcom to HpcOmEqSystems.mo
2f686d34eVolker Waurich- use analyticJacobian to solve reduced linear equationsystem when using +d=partlintornsystem
b875dff02Martin Sjölund#2508 - Don't enable output of variables unless they match the regex - Don't output all alias variables for csv and plt
cb9f6f325Per Östlund- Improved name prefixing in new instantiation.
b3b1f89f8Volker Waurich- added hpcom test
ee71ffb15Volker Waurich- fixed bug for varSCCmapping concerning tornsystems including records
d9f7d4a78Vitalij Ruge- fixed handling of time in optimization
2e4ce7372Vitalij Ruge- fixed memory leak
2bb2a8d5dOpenModelica Hudson[Janitor mode] Fix tabs
58a5c639dVitalij Ruge- fixed: coloring for gradient| Thanks Willi - mv Willi's solution from (newadol-c)branch to the trunk - acktivated: coloring for gradient
a3798cb31Martin SjölundBump me!
6217b6d3fVitalij Ruge- partial fix for gradient
1fb26528dMartin SjölundFix bug reporting URL
0942725a6Vitalij Ruge- partial for gradient - rename reference files in optmization
81fcbb94bMartin Sjölund#2498 - Add array variable references to the info.xml
bd20d99bbPer Östlund- Check more instantiation restrictions on components in the new instantiation.
7341889e5Per Östlund- Better error messages for lookup errors in new instantiation.
2781d7972Martin SjölundDon't strip so many stack frames from seg.fault messages
c83f8a959Martin Sjölund- Use -rdynamic for simulation code and enable backtrace on segmentation fault in simulations - Name eqFunction_ to ModelName_eqFunction_ to avoid name conflicts in FMU's (could also have used GCC attribute protected visibility to prevent the linker from merging eqFunction_4 in the FMU and the simulation code; but renaming the function is portable)
f8438b482Per Östlund- Fixed class redeclaration in new instantiation.
08de4e6dbVolker Waurich- added function removeSuperfluousLocks to HpcOmScheduler.mo
42f44f6e7Marcus Walther- additional execstat-informations are now available for hpcom
9a17df3edPer Östlund- More enumeration fixes for the new instantiation.
592451130Martin SjölundDon't recompile the parser all the time
a5815f9edLennart Ochel- don't try to generate a graph for the matching before the matching is actually performed
f024e35b4Lennart Ochel- make +d=graphvizDump working with +d=dumpdaelow
76c4c6359Per Östlund- Load builtins in new instantiation.
258a82cafMartin Sjölund#2501 Fix C-compiler warnings
4b7482b90Adrian Pop- fix Windows build
22b472d6cMartin SjölundMaybe fixes windows builds
46507bd83Martin SjölundTranspose with correct dimensions
788c611adMartin SjölundFix reading of csv-files, including caching and tranposing variables for increased performance
6e97464cbMartin SjölundUse a real csv reading library, libcsv (LGPL 2.1+), for reading CSV-files. This one handles variable names that are arrays, and more
ade2ad36bPer Östlund- Removed unused record NFInstTypes.PACKAGE.
706fc4179Per Östlund- Fixes for enumerations in new instantiation.
bc31e4e28Lennart Ochel- make +d=graphvizDump working with +d=dumpindxdae
4b6a5a2caPer Östlund- Removed Absyn.CREF_INVALID, it's not been used for a while. - Updated bootstrapping tarball.
f43cca064Per ÖstlundFixes for the new instantiation: - Added new package NFInstPrefix and moved the Prefix type and related functions to it. - Fixed several prefixing issues.
70054ad3bMarcus Walther- changed the HpcOmSchedulerExt interface to metis-style
df94d6dc6Martin SjölundAdd a PHONY target for the omc program or it might not recompile everything
64da6a11aAdrian Pop- fix Windows msvc build: ansi-c please
1e28a6a09Volker Waurich- arranged some additional output in function analyseScheduledTaskGraph
6ea80e01dMartin SjölundWrite equation indexes for NLS failures in the XML log
c1582632fVolker Waurich- added flag +d=hpcomDump that outputs additional information for hpcom
5262530e2Martin SjölundAdd support to load libraries not in the default directory
91d9d3148Martin SjölundDo .depend first
1a50a6fcdMartin SjölundDo DAE.c first also for the nolink target
3f52a211cLennart Ochel- remove temporary test template
74282703eMartin SjölundParallelize cpp runtime builds
ec2632d16Lennart Ochel- initial commit for GraphvizDump template - new debug-flag: +d=graphvizDump - this activates additional graphical output (as *.dot files) for backend dumps (currently only +d=dumpinitialsystem is supported) - this is currently only useable with small/simple models
9245adb28Martin SjölundAlso force .depend for the nolink target so we don't crash build machines again
0fb5c9779Martin SjölundTry to do more things in parallel
c44e86b13Martin Sjölund+d=infoXmlOperations now enables storing the operations in the _info.xml
7d310a955Martin SjölundDetect chattering models. Prints something like: ``
1529a8088Per ÖstlundFix for #2496: - Changed Susan syntax for arrays from Type[:] to array.
7e83e90f3Per Östlund- Committed generated TplCodegen.mo in Template also.
0bb412345Marcus Walther- fix for clang compiler
d4e113997Per ÖstlundFix for #2496: - Fixed code generation for arrays in Susan.
01c098b72Niklas Worschechadded workaround in cpp tempate: try to solve algloop discrete if it not solvable
96c81edc7OpenModelica Hudson[Janitor mode] Fix tabs
8ae89a17cMarcus Walther- interface for external hpcom-scheduler added
1f099bf12Leonardo Laguna- Changing the scope of a function used by MathCore
846d2fce6Volker Waurich- if num_proc flag is not set, a reasonable number will be offered. repeat scheduling iteratively
8715a6279Niklas Worschechfix for algloop event iteration -added isConsistent to IAlgLoop to check if a condition has changed moved setCondition and getCondition to SystemDefaultImplementation
324a485bbOpenModelica Hudson[Janitor mode] Fix tabs
6242b5dcfVitalij Ruge- update calculation of gradient for optimization
a71c72140Martin SjölundHandle some #ifdef'ed cases
dcacc9a27Martin Sjölund- Added option to the simulation runtime: +logFormat=[text|xml] - The XML-based format will make it possible to read most messages into OMEdit in a structured way. Some messages may need to be collapsed into a single call in order to treat it as a single call - The macros INDENT() and RELEASE() have been removed as they are specific to the text-based output. The message functions now take more arguments instead.
323f946f8Adrian Pop- copy omc_msvc.h also to build/include/omc/
43e351952Adrian Pop- include omc_msvc.h only if we're in the MSVC compiler.
55d8251fbAdrian Pop- use omc_msvc.h for the MSVC support in the previous commit.
6e748691eAdrian Pop- attempt to fix Windows MSVC compilation: + define __attribute__ only for GNUC + do not define inline for MSVC
1d852115eMartin SjölundChanged the log functions from macros to vararg functions (since vararg macros do not work very well and the current approach is not maintainable)
fd9b4a55bVolker Waurich- removed flag NUM_PROC in the codegen for hpcom
23687d179Volker Waurich- hpcom restricts or recommends the number of scheduled threads - functions to dump simCode on stdout (incomplete for some cases) - added case to simplify equations when partitioning linear torn systems
3d3c278ecWilli Braun - fixed removeSimpleEquations for TUPLE(WILD,cref)
33d355b23Willi Braun - do not inline functions for jacobians.
2c5a13d3bWilli Braun - added a first part of mapping from Backend equation index to SimCode equation index (strong components omit for now) - update equation in ZeroCrossings
a9be4d22fWilli Braun - fixed BackendDAECreate to create equations for something like DAE.TUPLE() = DAE.CALL() instead of algorithms - adjusted some relevant functions.
8d872fc8aMartin SjölundAlso clean cppruntime if we ask it to please make clean
8a87f916eNiklas Worschechfix event iteration for algloops
2cb3f6e71Adrian Pop- fix Windows clean
6d20718d2OpenModelica Hudson[Janitor mode] Fix tabs
933f341d7Niklas Worschech+added event counter in CVode +added event iteration for algloops
7fbb3195fMartin SjölundBetter clean
a112556afVitalij Ruge- new comand "optimize"
b16c2dc8aMartin Sjölund- Double fixes for f2c.h problems on OSX; always use our f2c.h
e5a8bfb9aPer Östlund- Fixed function name prefixing in the new instantiation.
68c3d9075Lennart Ochel- minor fix for dump of reinit
32a7b126dLennart Ochel- rename RK4 to RK4_DATA
2647c7febMartin Sjölund- Use boehm GC for HPCOM pthreads - Don't use boehm GC, but rather the chosen allocation scheme for create_index_spec
abf6fc421Willi Braun - improved LOG_EVENTS_V debug dump.
27577e053Per Östlund- Less magic in name prefixing in the new instantiation.
8b0c02524Willi Braun - changed log level for event iteration. - added testcase for debugDumps cruntime.
5b2754e7fOpenModelica Hudson[Janitor mode] Set auto-props
f70f34937Marcus Walther- fixed the mac os pthreads_spin_lock bug
1e4bd1e76OpenModelica Hudson[Janitor mode] Fix tabs
98244a059Vitalij Ruge- update heuristic for nominal in optimization
4f920952aWilli Braun - fixes for symbolic jacobians
0ebd1f972Volker Waurichchanged some output
0bf218f06Martin SjölundLook for flags needed for gcc 4.8 bootstrapping
444dfbaa8Martin SjölundUse system(..., outputFile = "...") to redirect seg.faults on OSX
d0e5caad7Volker Waurich-try to fix hpcom test using spinlocks for osx
3a34bec7fLennart Ochel- add case for BackendDAE.JAC_NO_ANALYTIC() to Initialization.warnAboutIterationVariablesWithDefaultZeroStartAttribute2
1c95a2c08Henrik TidefeltDefine new error Severity INTERNAL (aka ErrorLevel_internal)
6c48c58e8Adeel Asghar- Fixed the System.systemCall when its called with outFile argument for Windows.
b8853505fAdeel Asghar- Fix Windows build.
8645b50d8Willi Braun - fixed memory leak in LOG_JAC output
0836b8bdfMartin SjölundFix some compiler warnings
50fa1a7dcWilli Braun - added a case for SOLVED_EQUATION
660e07f86Vitalij Ruge- update heuristic for nominal in optimization
3824c3368Martin Sjölundhpcom now uses libgc functions directly in the runtime
e3cadabb8Vitalij Ruge- When ipopt fail, then try other strategy
44dba8b6eVitalij Ruge- changed default ipopt flags
b7db69abePer Östlund- Improvements to the new instantiation, mostly redeclare and modifier handling.
d00cafa4fMartin SjölundAdded argument to System.systemCall: output file (redirect stdout and stderr) - Fixes some issues with OSX not redirecting segmentation faults - Also added this option to Scripting.system()
e991939d2Volker Waurich- use GC_pthread_create instead of pthread_create
1ff443358Martin SjölundAdd an RPATH so the debian builds don't complain so much
ac745ec47Vitalij Ruge- update heuristic for nominal in optimization
3ba8975bfVitalij Ruge- update heuristic for nominal in optimization
5f2ae65c4Vitalij Ruge- fixed empty gradient
be707b759Martin SjölundGenerate working code for FMUCpp on OSX
bc0d6bd02Vitalij Ruge- changed expression sequence for (more stable?) hessian
a80d11779Martin SjölundLink in fewer libraries
d1114d012Martin SjölundDependencies
4da9e4e64Martin SjölundInclude LDFLAGS in the configured RT_LDFLAGS flags
ddb3c675bMartin SjölundLink in libstdc++ also for dynload since it contains the csv reader
464082a4eMartin SjölundTry to link fewer libraries
6b303cb7dHenning Kielrecommit fixed r18258
fe429659eAdrian Pop- fix linker flags for Windows
05fec6b88Martin SjölundCheck for -lrt
8ad363930Martin Sjölund- Moved where CFLAGS for generated code are defined (in configure instead of logic in the code generation) - Added configure env.vars RUNTIMECC and RUNTIMECFLAGS if the user wants different compilers for the generated code and omc itself (typically to use clang for generated code) - Always include delay.h in generated simulation code. Revert previous change that made Counter and Counter3 work (relied on the wrong delayImpl being used) - Moved performSimulation into the callback interface
13671067eMartin SjölundAvoid inlining problems
f3177c0c0Martin Sjölund- The interface to generated code is now in a struct callback, to avoid conflicting names when we load dynamic libraries (FMU's) - Fixed lots of clang warnings
c37015792Adrian Pop- revert changes to Compiler/BackEnd/Uncertainties.mo from r18258 as they break some tests.
421c1e8f6Henning Kielreplaced O(n) listLength(L)==0 by O(1) List.isEmpty(L)
7d2f4af40Martin Sjölund- Link against libf2c on OSX as it seems necessary
39667a8feMartin SjölundSkip libf2c on OSX too
caf6e9566Martin Sjölund- Put back the old FMI hack to work on Linux - Disable MSL3.2.1 cppruntime tests until their performance improves
f22b4dfc3Martin SjölundMove f2c linking as the Linux dynamic version has unresolved symbols
c78ce8738Martin Sjölundlibinteractive.a has not yet been copied into build/
08f9653e9Martin SjölundBuild and partially link a .dylib as simulation runtime (makes mixing different C++ and C compilers possible; for OpenMP on OSX, and more)
c4d18c67aAdrian Pop- update OMDev SVN url in the READMEs.
1329f2373Martin SjölundFix the system_parallel implementation
07461df75Martin SjölundStop using OpenMP in the system runtime - use pthreads instead to avoid problems with linkers and library versions trying to mix compilers
818db313cMartin SjölundChanges the way OpenMP is handled. Now there is a configure variable: ./configure CC=clang CXX=clang++ OMPCC="gcc-4.4 -fopenmp" will use clang as default, and gcc-4.4 when OpenMP is requested.
5be90bc63OpenModelica Hudson[Janitor mode] Fix tabs
4be61a18dVitalij Ruge- changed numiracl handling for hessian in first intervall
90332cca0Martin SjölundBump MSL
ea7c69c88Niklas Worschechadded delay to cpp template and runtime
229c35754Martin SjölundRegenerate OpenModelicaBootstrappingHeader.h also for the bootstrapped target
8c0e3c590Martin SjölundOSX fix
deeba585fMartin SjölundSymlink the dynamic library instead of messing with soname and install_name
37dfa1d6dMartin SjölundLoad shared objects with the correct extension on Mac
0ae6f3d6dMartin Sjölund- Skip loading the FMU dll/so/dylib in omc. It really messes up Linux/OSX and causes you to be unable to free the so/dylib
d4e3f0b8cMartin SjölundMostly OSX fixes for FMI
90b53fdebWilli Braun - fixed wrong adjacency-matrix for STMT_TUPLE_ASSIGN
7d0b872eeMartin Sjölund- Some fixes to the separate compilation - Some fixes to the (generated) omccp sources
f2883dd21Volker Waurich- fix hpcom (simEq-mapping for systems with nonlinear jacobians) - added test
7cf9e7ffeMartin Sjölund- Don't output type min/max values in the xml-file: This is handled when parsing the files using default values - Output variable type name and more in the info.xml - OSX fixes setting @rpath for .dylib files
179655e4dMartin SjölundRemove some code that should not be accepted
3a08dd841Martin SjölundLet configure check that BLAS is included when linking LAPACK
7da968f5cMartin Sjölund- Partest on OSX - Skip some unncessary steps for bootstrapping from tarball
6c4f01ae1Martin Sjölund- Compile --without-metis - Disable warning if the user has an empty LANG env.var
c919aef88Martin SjölundConfigure the fortran compiler
2927bb8b9Martin SjölundFix svn-clean script for symlinks to directories
67a40b3ddMartin SjölundAdding script to clean trunk (like svn-clean, but more platform-independent)
79db84ac8Volker Waurich- fixed hpcom for models with equations that cannot be solved and therefore are handled as nonlinear eqsysts - added hpcom test - updated hpcom test files (output includes size of ode system)
fd52bede4Volker Waurich- added warning if number of processors is not given when using hpcom
1109bab46Adrian Pop- do not compile ipopt on Windows as it is already part of OMDev.
a52835dccMartin SjölundFix Linköping
0f4f7b004Martin SjölundFix configure for locally installed ipopt
95257fbacOpenModelica Hudson[Janitor mode] Fix tabs
144777944Willi Braun - replaced the Derive.mo by a Differentiate.mo (and adjusted all relevant parts) - capability to differentiate Modelica functions. - now all differentiation rules are only once in the compiler. - adjusted some tests
0d6d5e2cdVitalij Ruge- fixed configure for ipopt??!
5ed87bcfaVitalij Ruge- fixed configure for ipopt?!
82c60ee13Martin Sjölund- Compile our own version of Ipopt (EPL 1.0 license; compatible with LGPL) - Fix copying of messages from the OMEdit widget
de9378587Volker Waurich- hpcom outputs theoretical speedup and theoretical max speedup - updated tests
71985f0f8Per ÖstlundFix for #2482: - Handle 'end' when used as subscript of qualified cref.
f99b5bb55Martin SjölundCompile DAE.c before we try to compile all files, in order to avoid using up all system RAM on creating srz files in parallel
14a1a4012Adeel Asghar- Fix the LOG_STATS output.
9b6274acfWilli Braun - add simplification rules for DIV_ARR and DIV_ARRAY_SCALAR
c9ee1aa4eMartin Sjölund#2483 - Partial fix for assigning to only some function outputs when the function is constant evaluated
5afaf5d29Martin SjölundRML crap
1f9c1403fMartin Sjölund#2250 Adding API function to convert between units
cd3a7bc42Vitalij Ruge- added missed return
15be53922Vitalij Ruge- numerical trick for hess
86724e36bMartin Sjölund- Updated SimCodeDump to include more accessible information in the XML - Added a Qt-based streaming XML parser so OMEdit can use the _dump.xml information for the symbolic debugging
e1e3296a7Vitalij Ruge- LOG_STATS adjust for optimiziation - codestyle for hess
46d48c133Vitalij Ruge- fixed special case( numberIntervall = 1) for optimiziation
65ca2bff3Vitalij Ruge- better evalution (object function) for numerical hess
06590ab4aVitalij Ruge- reduced evalution for numerical hess
8c322d6e9Adrian Pop- fix Windows build: use malloc/free instead of stack allocation for buffer and put the buffer definition at the beginning of the block (ansi-c)
5e12b424fJim NutaroUpdate to adevs backend to fix initialization involving fixed variables. Updates for new c runtime.
b9046ab73Willi Braun- fixed ordering of stateselect and jacobian equations in *_info.xml
2a207fb1dLennart Ochel- get rid of redundant function body (equationNth0/equationNth1)
93e239909Vitalij Ruge- better numerical hessian for first time point
b7b109b05Lennart Ochel- move BackendDAEUtil.equationNth to BackendEquation.equationNth0 - move BackendEquation.equationNth to BackendEquation.equationNth1 - remove unused module dependencies
65a750231Lennart Ochel- make dassl debug-output readable
62e433e7aMartin SjölundSafer new/free of the matlab reader. Should no longer crash OMEdit if an invalid mat-file is presented
d7632600fVolker Waurich- added case in createSchedule for non-ODE systems
07fc3f564Jim NutaroAdded state variable selection to initialization loop
090241eb1Willi Braun - added missing cases to ExpressionSimplify for Relations.
e588e20d7Volker Waurich- fixed bug at getFinishingTimesForSchedule
98141af5eMarcus Walther- with the help of the hpcomCode flag, you can now choose between pthreads and openmp code
e49715599Jim NutaroCode cleanup for the adevs backend
a8378095cVolker Waurich- fixed hpcom for some models with mixedEquationSystems
ee38c94c0Adrian Pop- fix +target=msvc test - add omc_msvc.h to model_help.c as we need round in there - fix definition of round in omc_msvc.h (the msvc test generated a HUGE .mat file before i killed it because round did not work correctly and the step was not advanced) - delete some more stuff in: testsuite/openmodelica/cruntime/msvc/Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.mos
394cca58eAdrian Pop- fix non-separate bootstrapping compilation (MainTest.mos) - beautify the C code a bit
32fc4ffbaAdrian Pop- fix Windows msvc build: ANSI-C please :)
f2505de81Willi Braun - added rounding of stepSize to hit the numberOfInterval point. - added cruntime flag(-noEventEmit) to suppress output at events.
983673152Niklas Worschechfix for array declarations in cpp template
701fa0267Volker Waurich- fixed bug at ALAP-computation and quicksort - added function getFinishingTimesForSchedule - added function predictExecutionTime - removed some debug prints
8d88013b9Niklas Worschechchanged minimal step size for cvode in cpp runtime fix for array assign for index spec in cpp template
fca59fd58Willi Braun- added isChangeableValue = true for states
f24069ad9Per Östlund- Fixed some clang warnings.
dbbc4ecaeMartin SjölundSort more sections
e60273282Martin SjölundSort some equations
44d6c1a53Martin SjölundSplit up the equations in the info.xml so it is possible to see which equations are initial
047694b29Martin SjölundUse dynamic omniORB on OSX, check that omniidl command exists
c5b2378cdWilli Braun - fixing build
176924ec5Willi Braun - added a flag for changeable parameters to *_init.xml file. - parameters that are not evaluated before and constant are changeable.
84ef2c324Martin SjölundFixes for not using RML-style pointer tagging (saves ~1% total time by being able to use atomic allocations)
c452aeaa4Martin SjölundPass FMI variables unmodified (unboxing may lose int precision; unbox+box may also alter the Integer if it was not a valid boxed integer to begin with)
2c3becb97Lennart Ochel- add tests for high-index initialization (provided by Francesco) - minor changes to compiler warning of over-determined initial systems
f4fc97142Adrian Pop- disable java finalization and gcj-support for Boehm GC
e29bbac67Vitalij Ruge- expand expression only if it can use for simplify
5bc1d6265Volker Waurich- new task graph scheduler modified critical path
bc15c5282Vitalij Ruge- evaluated value for error handling and function call (sqrt, log, log10) only once
6797940bdAdrian Pop- use MoveFileEx on Windows for System.rename - remove System.renameFile (as we have System.rename) - Causalize.mo do not create something that is not used!
784638e7cMartin SjölundUse a smaller size for the hashtable in Patternm.mo
b7b1556b2Martin SjölundDo pathHashMod without pathString to not tax the GC so much
eb95a4481Martin SjölundSmarter code generation for empty patterns
8da19c635Willi Braun- fix for XML stateSpace dump
010963fffVolker Waurich- reverted workaround for nonlinear solver problems
2cd8ee749Volker Waurich- re-added (not unused cases, see rev 17956) to ExpressionSimplify.mo in order to fix BranchingDynamicPipes on my machine (nonlin solver error)
63af40c78Martin SjölundLazily create the hash table (saves 6*10 seconds on the testsuite on dev; probably more for the bootstrapped compiler)
35a3b09fcMartin SjölundReset tmpTick also for each statement, and after pattern-matching
9179cfe8cAdrian Pop- comment for Print.writeBuf - dumpXMLDAE improvements: do not use Print.getString as the string is huge, just write it directly to file
51140fb98Martin SjölundRe-use some of the generated tmpMeta[] variables to save stack space and walk less data in the GC
04245ce76Volker Waurich- reverted previous commit
97ff5f057Volker Waurich- added new mcp task graph scheduler - added quicksort algorithm
15daf7104Adrian Pop- fix bug: #2243 - new section with containing containing containing any of reinit, assert, terminate, noreturn call - added test: testsuite/openmodelica/xml/BB.mos
d1fd3c678Adrian Pop- fix bug: #2454 - added testsuite/openmodelica/xml/SimpleTriggeredTrapezoid.mos
aab273a06Martin SjölundSkip printing the name of the component if the value is unused...
4c6af453cMartin Sjölund- Added Env.NO_CACHE(), which creates an environment faster than Env.emptyCache(), but also won't cache anything
f1a19a52dMartin SjölundDon't create the UnitAbsynBuilder unless the flag is set
8747410c0Martin SjölundSome fixes to be able to mix RML and MM datatypes (and change the MM representation with a #define)
5cf2076f4Martin SjölundReduce bucket size since there won't be very many bindings to update. Would probably be good to lower it even more, possibly making it "1" for length 0 or 1 in the list of components
878f90a00Martin SjölundMove the MMC_TRY outside the for-loop when searching for a case that matches the pattern. Avoids setjmp for each iteration of the loop.
608f3278bMartin SjölundUse goto instead of longjmp when a pattern in a case fails to match. We know the place we want to go to, so just do it :)
e3707349cNiklas Worschechfix in cpp runtime for the initialization interation. Calling initializeEquations instead of evaluate
93de7f734Adeel Asghar- Fix compilation.
75f0bfbf2Martin Sjölund- Added new API: compareFilesAndMove (compares two files and replaces the destination if they differ) - BuildOMC.mos uses fewer system() calls now, instead using built-in API functions - Fixed code generation of MMC_TRY for matchcontinue to use the faster MMC_TRY_INTERNAL instead (~2% performance gain for the bootstrapped compiler)
d89d4f90dMartin SjölundFix compilation
e6a5bf63bMartin SjölundPass threadData to Print.mo and ErrorExt.mo external implementations. Added local roots to store this in the the threadData
5096ce8faWilli Braun - bug fix #2399, mark all variable of a tuple in when-statemeants as discrete.
d9391085bMartin Sjölund#2458 - Remove json files and unused symlinks
0accc584dMartin SjölundUse match for valueExp
b2674e0b4Adrian Pop- remove envCache functionality as is not used and is actually slower
7eeb9b62eAdeel Asghar- Don't unset the measure_time_flag when user has explicitly enabled it via measureTime option.
a9084689dMartin SjölundPass threadData using OpenModelica.threadData() in external function calls
d5b507decMartin SjölundUse the configured omc to build the templates
f6837ce17Martin SjölundFix linking
6c80f56aeMartin SjölundRenamed some variables due to conflicts in namespace std:: (which apparently some CORBA header uses on OSX)
10931e1ceMartin SjölundBump main-static by default on OSX
e4c80c1ecMartin SjölundCompile omc-bootstrapped if --without-rml is requested
2b53879a5Martin SjölundHash the paths of the generated icons to dedup them
3de182463Martin SjölundAdded common function for simplifying binary expressions with lhs and rhs being binary expressions
0d318ae8bMartin SjölundSome minor changes to simplify (manually cache some isConstValue results)
00ebb6b8dMartin SjölundUse isConstValue instead of isConst for an 18 second testsuite boost
a486e4139Martin Sjölund- Remove useless case in simplify (makes code slower) - Removed some flattening tests since whenever a tiny simplify change is performed all thermosyspro and multibody flattening examples needed to be updated. They are simulated, and that is what is important.
ea663efbbNiklas Worschechfix for smooth in cpp template
49a08e6c0Willi Braun- added "stateSpace" option to dumpXMLDAE
4022739f4Niklas Worschech-pass tolerance to cpp runtime cpp runtime fixes -fix for condition initializations -fix for break -fix for arrays of arrays -fix for integer range - fix for when equations
40481196bOpenModelica Hudson[Janitor mode] Fix tabs
641fd6615Patrick Marcel Taeuber- Cellier-Tearing is now able to handle algorithms, equationarrays,.. - added new heuristics - added new models to testsuite
10f3ed21aMahder Alemseged Gebremedhin+ Added support for local/shared variables for ParModelica. + Added parallelism to function arguments. + More checks on scope to determine parallelism. + Allow assignment to inputs in ParModelica.
89eb97fd2Martin Sjölund- Support match->switch also for uniontypes with a default case (else) - Changed ExpressionSimplify to not create new expressions if the expression changed (using referenceEq instead of passing a boolean around) - Changed ExpressionSimplify to use switch semantics for the main case - Added env.var OPENMODELICA_BOOTSTRAPPING_DEBUG_FLAGS to set command-line options to be passed to the separate compilation script (e.g. to use +d=patternmAllInfo to see if match->switch optimisation was performed) - Disabled some cppruntime testcases because they now fail in code generation due to noEvent
3531c24fdAdrian Pop- remove assignment to inputs
ed7cb576dLeonardo Laguna- Adding new function to BaseHashTable.mo
2a9e82d9fMartin SjölundTraverse match-expressions, keeping the old expression if nothing changed
ea5d8d9d4Martin SjölundDon't create new reduction expressions when iterating
37a4fd837Martin SjölundDon't create new matrix expressions unless needed
92cae2725Martin SjölundTweak the diff algorithm, allow larger errors
a7c18feb3Marcus Walther- the hpcom runtime is now using the *_eqs_prof.xml instead of the *_prof.xml - file as input - some benchmarks were added to the hpcom-testsuite
628d80217Mahder Alemseged Gebremedhin+ Some fixes for ParModelica and g++ compilation.
5680cdd2eMartin SjölundActually set the tolerance set in the parameters
60168c0d1Martin Sjölund- Recalibrate time series better if we detect that the left limit of an event has already been used - Don't read time into every variable in the mat-file
c1d545a8dPer ÖstlundFix for #2448: - Handle redeclares in local short class definitions in the dependency analysis.
efeac38a4OpenModelica Hudson[Janitor mode] Fix tabs
de1eaa967Martin Sjölund- Change the mat reader to be able to read all data in one chunk also for transposed files (performance) - Moved the error calculation to its own routine
503bb29e2Henning Kiel- fix tail recursion to use both buffers
d4ce7d6d3Martin SjölundFix swapped x0,y0. Do manual tail recursion so the debugger gives sane output
e1246f921Martin SjölundRemove even fewer points
5b2d173c0Martin SjölundKeep more curves around, only removing points if they really do not matter
c299554e4Martin SjölundTail recursion
032163c5aMartin SjölundDo not remove local min or max points
bd0359158Martin SjölundTail recursion
fbed27516Martin Sjölund- Safer (but slower) removal of uninteresting points using a recursive algorithm - Previously we could remove a point because it could be reconstructed using linear interpolation of its neighbours... But those could also be removed. - Swap arguments to addRelativeTolerance (relative was absolute and other way around)
46612d5f3Martin SjölundFix event detection
dbbb1b3efOpenModelica Hudson[Janitor mode] Fix tabs
ace0694deMahder Alemseged GebremedhinHandling of dimensions for input arrays whose dimensions/type depend on the type/value of other input arguments. e.g. input Integer i; input Integer a[i];
68e7d697eAdrian Pop- partial fix for bug: #2385 give the correct dimensions in the DAE to the virtual component in the expandable connector still remains to expand the array component DAE into DAE for each array element
42457d3c8Adrian Pop- fix FMU build during testsuite run - there is no build/MinGW/bin during the testsuite so copy the required dlls to build/bin and in the FMU from build/bin -> platform/
ee0e6a863Martin Sjölund- Handle the case when the time scale is smaller than usual - Remove irrelevant time points from the plot - Pass correct relative tolerance (arguments swapped) - Don't remove as many points from the end (still sometimes too many points are missing and not compared, but it is better than before)
7ac7af8a3Martin Sjölund- Update the library testing: - Output both the actual signal interpolated and raw so we can see if interpolation did something odd to it - Add a tolerance setting for (max-min)*reltol to avoid problems comparing signals close to 0 - Added an API call that can directly output html instead of a csv-file (so we could serve html-pages directly from two result-files by doing the diff on-line)
617ff9799Adeel Asghar- Copy the libgfortran-3.dll to FMU binaries.
8d421d564Adeel Asghar#2441 - Do not add the comment to enumeration literals initial values.
d26d06568Martin Sjölund- Fixed svg generation for coverage script - Added generation of result verification xml to coverage script - Some tail recursion optimisations
6411e1a84OpenModelica Hudson[Janitor mode] Fix tabs
2beb8d7deMartin SjölundAdd getSimulationOptions as typed API call, and call this from OMEdit. A default tolerance, startTime, stopTime may be provided to prefer these over OpenModelica defaults if the experiment annotation is not present
da38ee747Mahder Alemseged GebremedhinRemoved operator record restriction. Now operator records are special cases of record restrictions. saveTotalSCode should work now for models containing operator records.
1a0d50853Per Östlund- Handle the special case of + being used without argument as flag to OMC.
cba5847ffMartin SjölundImproved the comparison with tubes - Add all time events from the target file to the base timeline in order for events to not be interpolated - If an event occurred, do not do an error check at this time point since it is probably off by eps in time and the tubes might not have expanded enough if the points are close enough in time
e5f4bd319Adrian Pop- uncomment the extra cases in Expression.containFunctioncall to fix SystemDynamics models: SystemDynamics.IntroductoryExamples.Gilpin SystemDynamics.WorldDynamics.World2.Scenario_5 - Mahder will need to find another way to handle record constructors
d82304a21Per Östlund- Propagate modifiers for derived types in new instantiation.
058183efePer Östlund- Better modifier propagation in new instantiation.
6c8663e5aLennart Ochel- remove empty lines
004983a58Martin SjölundTail recursion
3ba195b3bLennart Ochel- remove public function BackendDAEOptimize.inlineArrayEqnShared - remove 'remove simply equations stuff' from BackendDAEOptimize.mo (updateEquationSystemMatching, updateStrongComponent, updateEquationSystemComp, updateEquationSystemMatching, updateStrongComponent, updateEquationSystemComp, updateVarArray, updateEquationArray) - move BackendDAEOptimize.lateInlineFunction to Inline.lateInlineFunction - move 'optimize inital system' from BackendDAEOptimize.mo to Initialization.mo - move public function BackendDAEOptimize.getConditionList to BackendDAEUtil.getConditionList
319ec57abAdrian Pop- call GC_init first thing in Main.mo
fc8fd75e8Lennart Ochel- minor code simplifications
24eb7bf0bMartin SjölundTail recursion
e234a04d9Lennart Ochel- use Error.addInternalError instead of print in Matching.mo - minor changes in Initialization.mo
fffe8b5aaOpenModelica Hudson[Janitor mode] Fix tabs
a4df62079Martin SjölundAdding new simulation results comparison based on csv-compare
4c298a0e9Adrian Pop- fix +target=msvc (include omc_alloc_* in extern "C") - add clean target in the makefile for Visual Studio
ea039bd54Lennart Ochel- remove unused functions from IndexReduction.mo - function higerOrderDerivatives - function traversinghigerOrderDerivativesFinder - generateSelectEquationsMulti - setVarLstStartValue - generateSetExpressions - generateStartExpressions - generateStartExpressions1 - incidenceMatrixfromEnhanced - incidenceMatrixElementfromEnhanced - incidenceMatrixElementElementfromEnhanced - incidenceMatrixfromEnhanced1 - incidenceMatrixElementfromEnhanced1 - incidenceMatrixElementElementfromEnhanced1 - replaceAliasStateIncidence - getUsedStates - getEqnBlockMapper - getEqnBlockMapper1 - getEqnBlockMapper2 - generateSelectEquations - generateCondition - generateCondition1 - generateCondition2 - setStartValue - differentiateExp - traverseOrgEqnsExp - setSelectArray - unsetSelectArray - changeVarToStartValue - traverseOrgEqns - stateVar - transformJacToMatrix - removeZeroDetStates - removeZeroDetState - isStateIndex - stateSortFunc
8afe36d18Per Östlund- Fixed handling of modifiers for nonexistent elements in new instantiation. - Updated swedish translation of OMC.
c1fe31cc7Lennart Ochel- remove unused functions from IndexReduction.mo - function getDeterminants - function getDeterminants1 - function getDeterminantDigraphSelect - function solveOtherEquations - function solveOtherEquations1 - function traverseOrgEqnsExp - function hasDerivative - function processComps1 - function compareOrgEqn - function processCompInv - function processComp - function getOrgEqn - function getOrgEqns - function getCompVars - function selectDummyDerivatives - function selectDummyDerivatives1 - function selectDummyDerivatives2
a98130fe2Lennart Ochel- remove unused functions from IndexReduction.mo - function processComps - function processCompsWork - function processComps1New - function processComps2New - function processComps3New
7531301cfLennart Ochel- use Error.addCompilerWarning instead of print in BackendDAETransform
ab7bd526aLennart Ochel- use Error.addCompilerWarning instead of print in BackendDAETransform.splitMixedEquations
386ceb9a2Mahder Alemseged GebremedhinRecommit r17828. Updated expected outputs.
265931a12OpenModelica Hudson[Janitor mode] Fix tabs
48db1c398OpenModelica Hudson[Janitor mode] Set auto-props
b111129fdAdrian Pop- add test for bug #2429 - improve debugging in RemoveSimpleEquations.mo
c60d182a9Niklas Worschechadded hybrj solver to cpp runtime
64eae7cccJens Frenkelfix #2429 use original expression in case of parameter or time alias and negate for global negate
413f313e6Mahder Alemseged Gebremedhin+ Revert parts of r17828 for now until tests are updated.
f9a7bc6d0Mahder Alemseged Gebremedhin+ Fix #2387. Handle Matrix Multiplication of record types according to spec.
4797d694aLennart Ochel- make function SimCodeUtil.zeroCrossingsEquations protected - remove unused modules
b1033e043Lennart Ochel- move zeroCrossingsEquations to SimCodeUtil.mo - move expandDerOperatorto BackendDAEOptimize.mo
22bc5b324Lennart Ochel- fix identifier at start and end are different
2d5d6f8e2Per Östlund- Fixed extension of basic type in new instantiation.
61e745396Adrian Pop- fixes so un-proper compilers can handle the code.
1a10117faLennart Ochel- revert r17809
971d825bcMartin SjölundAdd a new memory pool for hpcom using a lock and no GC (string allocations are malloc'ed and never free'd)
c4fc2ac5cPer ÖstlundNew instantiation improvements: - Put modifiers in the environment instead of a separate table. - Moved NFEnv AVL tree implementation to it's own package. - Propagate basic type properties correctly.
e3ea789a3Lennart Ochel- move expandDerOperator to BackendDAEOptimize.mo
923b663cdMartin Sjölund- Fix System.snprintff - check for negative length - Pass positive length in hpcom
9a2f9b6d1Willi Braun#2360 - rewritten findZeroCrossings2 on a tail-recursive form
88d74678aMartin SjölundUse GC_malloc instead of GC_MALLOC to be consistent
74a8d3a3fMartin SjölundTail recursion
8c1da6b32Martin SjölundTail recursion and removal of RML-specific optimisation
0adccd7b2Martin SjölundRemove failtrace
75d4f854fAdrian Pop- fix Windows build
47380ae65Martin SjölundUpdate bootstrapping tarball Search for omc for bootstrapping Added targets omc-rml and omc-bootstrapped. The bootstrapped target will now use the tarball automatically if the configured omc is missing
116117790Martin SjölundRemove the memory pool, using GC_malloc in more places (including the bootstrapped compiler)
d634810b1Adrian Pop- add ModelicaBuiltin.mo and MetaModelicaBuiltin.mo directly to the initial environment in Builtin.initialEnv and NFSCodeEnv.buildInitialEnv - this way we avoid translating them and adding them to SCode.Program again - also, as a bonus we get saveTotalSCode to NOT display any classes from the builtin environment
8e76a86d9Martin SjölundTail recursion
2581ff0bfMartin SjölundBetter messages from +d=dynload
7f7ef637bMartin SjölundAdd the pipes...
059cb5a79Martin SjölundSupport checking csv format in the library test
ca9fe19efOpenModelica Hudson[Janitor mode] Set auto-props
b08fc0522Martin Sjölund- Adding support to compare results with csv-files - Adding python-script to convert the Buildings reference files to csv-files
10ab1de0cMartin SjölundLinux fix
6b9439948Martin SjölundAdded support for ModelicaStrings_compare, and fixed the ModelicaStrings_skipWhiteSpace implementation
c1beab116OpenModelica Hudson[Janitor mode] Set auto-props
7e434a61bNiklas Worschechadded ModelicaError to cpp runtime and template fix for function tuple returns in cpp template fix conditions in algloops removed defines for alias state vars fix for some array declarations with indices fix zero crossing initialization
df1e3ea84Martin SjölundLook for bad libraries containing both ClassName.mo and ClassName/package.mo - Sometimes this occurs on Windows when the installer fails to uninstall an old package and the structure changed
b69518519OpenModelica Hudson[Janitor mode] Fix tabs
5d8ac56edPatrick Marcel Taeuber- introduced new configuration flag (TEARING_HEURISTIC) for testing different modifications in Cellier heuristic (will be removed when finished testing)
cb1b2db99Mahder Alemseged GebremedhinFix #2285. Fixed issues with array slice assignments.
63d868032Martin SjölundTail recursion
b19b90d64Per ÖstlundFix for #2383: - Replaced class restriction with specialized class in error messages. - Use pretty-printing of class specialization in ClassInf.assertValid.
5224cb3c3Martin SjölundMake sure output is utf8
9911065c3Adrian Pop- dumpXMLDAE changes: + remove index=0 from variables as it told nothing + added differentiatedIndex="1" derivativeName="y" when we have that information for state + add new XML element aliasVariables to the XML file containing the alias variables + changed the output of the dumpXMLDAE API function to a tuple: output Boolean success "if the function succeeded true/false"; output String xmlfileName "the Xml file"; so we don't return the contents of the file anymore as is really not needed. also, you have to call getErrorString() after the call to dumpXMLDAE to get any errors displayed.
719ef8031OpenModelica Hudson[Janitor mode] Fix tabs
1d1a2dae5Patrick Marcel Taeuber- improved cellier heuristic considering the solvability - removed cellier2 - revised tearing testsuite
946e5e66cVolker Waurich -fixed bug at partlintornsystem
38e47dc48Marcus Walther- the hpcom module is now part of execstat - integer overflow in dumpGraphSccLevel fixed - benchmarksuite added to hpcom-testsuite
2f7a9c4bfAdrian Pop- do not crash the compiler on getComponents(Modelica.Media.Air.ReferenceMoistAir) from OMEdit. - execute graphical api with +d=nogen,noevalfunc
a5414f2b9Volker Waurich- longestPathMethod can handle contracted nodes
e617dd0bcMartin SjölundSkip generating the column for verified results if we don't have any result files set
c3c8d6f78Adrian Pop- properly display alias variables in XMLDump alias="" if there is no alias alias="cref" for alias alias="-cref" for negated alias
a4aa7c043Adrian Pop- get rid of some more wrong missing each warnings
0a72399c7Adrian Pop- fix bug #2422 send "" as prio in ClassLoader.loadFile as we really want that directory not another! - add *all* BackendDAE.VarKind in Compiler/Template/SimCodeTV.mo and handle them in Compiler/Template/CodegenXML.tpl
d7e8e3417Henning Kiel- remove() accepts '*' wildcards
8ecec00d1Per Östlund- Fix cref prefixing in NFInst.
52e4d0f7dAdrian Pop- fix the hpcom tests broken by my previous changes
db3395e73Martin SjölundSwap reference and actual (was wrong order in the result-file)
5a0bb6361Adrian Pop- fix bootstrapping
e3e3a9e4aAdrian Pop- fix the previous commit
a4e3fe989Adrian Pop- fix FMI on windows (both import/export) due to main C file split (also DllExport was only for MSVC and not for gcc in SimulationRuntime/fmi/export/fmiModelFunctions.h) - fix +target=msvc due to main C file split (fix makefile, forward equation functions, use extern "C")
fd1bbae1aVolker Waurich- fixed some bugs when +d=partlintornsystem - removeSimpleEquations for the disjointed linear torn system
65858667eMartin SjölundBump libraries
38ee5b620Martin SjölundGenerate the plot with the correct prefix
225d6a28bMartin SjölundUse old gnuplot heading (string headings are not supported on the test server)
778fde2f4Adrian Pop- when deducing unknown dimensions from modifiers handle also matrix, not only array.
aa38134a0Martin SjölundSome more fixes to build
e9be28f08Per Östlund- Inline rem() operator so it's not output in flat code.
677fc4ba7Martin SjölundTail recursion
af948b452Willi Braun- fixed bug for ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization, where endless assert were called
ceafebe11Martin SjölundTruncate long simulate logs. Change compression to gz (xz takes too long)
b19328cb1Martin SjölundSome fixes for the hudson version of gnuplot (I hope)
8a692bd8fMartin SjölundTerminate the command
add16ec2cMartin SjölundTerminate sed-command
e0dc55097Per Östlund- Added clearDebugFlags scripting function for consistency.
747b92306Niklas Worschechadded special zerofunctions for > and < relation
9b382731dMartin SjölundCopy to correct directory
36222c636Martin SjölundUpdated the model testing script to include the possibility of comparing simulation results
62f2dbafeAdrian Pop- remove wrong warnings about missing each - added test for this
4aa49f0a7Adrian Pop- 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
80315b1a0Adrian Pop- fix a bad typo in Parser/Makefile.common - add -Wall in Parser/Makfile.in
db20ab5c5Adrian Pop- update Parser/Makefile.in too :)
0c8e945cdMartin SjölundAdding API function diffSimulationResults, similar to cmpSimulationResults - Outputs a list of csv-files with the compared values (which might be interpolated)
8acb9a92cAdrian Pop- remove Parser/antlr-3.2 directory (we have it now in ../3rdParty/antlr) - support both ANTLR 3.2 and ANTLR 3.4 (add a lot of initialization of ast elements and locals to rules)
175c72fdaAdrian Pop- fix #2419 - getMessagesStringInternal will now return unique messages if (unique = false) is not given - added test for this in intractive_api_calls.mos - update test
699c8adc3Martin SjölundCevalScript.getConst: Use UMINUS instead of SUB for unary operator
faf6b1359Martin SjölundRun gcc in parallel by default when using buildModel. - Note 1: OMEdit should be updated with an option to set +numProc (in case the user wants to use number of CPU's - 1) - Note 2: OMEdit should not use the buildModel command. It should use translateModel and call make itself since this blocks omc for a shorter period of time
2f4ed9efaMartin Sjölund#2414 - Split the generated simulation into a more, but smaller functions in order to make GCC much more happy
93f5d58ffVitalij Ruge- reduction function call for numerical hessian - changed initial guess solver
b976b36b8Adrian Pop- fix bug #2418 + add test - more support for ExternalMedia library change the way we declare the external function prototype: + if there is an include annotation for the function DO NOT DECLARE the function prototype + if there is no include annotation for the function declare the function prototype
29ba71fa3Martin SjölundMove files to correct directory
eb23e31c4Martin SjölundUpdates to the javascript target
de022bdc6Martin SjölundRun test correct (updated) script
b6b83f55aChristian SChubertimproved html dump a little: you can try it out, if you use +d=bltdump +dumpTarget=log.html (or some other filename ending with .html)
0855a8d1fMartin SjölundNew convencience scripts for testing libraries
ef3990f2fMartin SjölundUse correct types
ad82e9e31Martin SjölundOutput the correct time on simulation failure instead of -1.0
ddb1cb161Adrian Pop- split initialAnalyticJacobian into several functions one for each sparsity pattern (gets the compilation memory down for Spice examples) - updated tests
219f10842Adrian Pop- update version to 1.9.1+dev
ca7288c21Martin SjölundLimit log size and print less output
a4781cb08Adrian Pop- OpenModelica 1.9.0 release + updated version number + updated documents
c1bb93faaMartin Sjölund- Handle skipped tests in the compile XML (checked wrong timer) - Less output (still get backend print statements that should be in Error.mo; but that is hard to avoid) - Use system-out also for failed tests since messages don't include newlines in hudson
ccd63d82aMartin SjölundAdd working OpenModelicaBootstrappingHeader.h - do not commit changes to this file if you have been running an old omc
196c9d3a7OpenModelica Hudson[Janitor mode] Fix tabs
5ac8e6975Vitalij Ruge- missing case for algebraic (objective)variables
03c21242eNiklas Worschechchanged event integration in cpp runtime - added discrete and continuous update type used during event iteration. - changed conditions handling for zero crossings, conditions are evaluate during discrete update - changed IEvent interface - adapted initialization on new update type
c0c33a444Martin SjölundSet the filename explicitly instead of using __BASE_FILE__ (seems to be broken for large files)
2576b2448Martin SjölundAlso do the substitution
99a9022d6Adrian Pop- link with -loleaut32 too (used by libExternalMedia.a)
daeed2fb5Adrian Pop- some support for ExternalMedia (some more work is needed for full support) - add function calls and external function inputs to dependency analysis in element sorting - use Inst.updateCompeltsMods just in Inst.instElementList2
2f33393aeMartin SjölundTry to include stdout for succeeding tests
7a2ef82ccMartin SjölundBuildModelRecursive.mos update: Now generates junit XML (to be tested on hudson)
e9e44d93cOpenModelica Hudson[Janitor mode] Fix tabs
482614a97Patrick Marcel Taeuber-revised backenddaeinfo, now related to recordstructure of BackendDAE.StrongComponent -fixed #2328 -revised Tearingtestsuite
d618a6b69Lennart Ochel- fix #2404
516d00712Martin SjölundUse __BASE_FILE__ instead of __FILE__ since __LINE__ messes up __FILE__
d207124f5Adrian Pop- additional fixes for r17574 - fix regexp for matching modelicaLine for Windows - fix escaping of \ in file names - get rid of perl calling in testsuite/openmodelica/bootstrapping/LinkMain.makefile.*
86c4faa0bOpenModelica Hudson[Janitor mode] Fix tabs
ca255008fAdrian Pop- reverted r17589 by request from Vitalij
e98e46ed3Vitalij Ruge- fixed Makefile
d684cd78bVitalij Ruge- numerical hessian rocking the optimization :)
4b41ce46bMartin SjölundSome tail recursion
b70897a48Martin SjölundPass threadData from runtime function
db8dbf845Martin SjölundDon't try to copy removed files
a32a7c89ePer Östlund- Analyse derived type dimensions in SCodeDependency.
ee395b8deOpenModelica Hudson[Janitor mode] Fix tabs
b33aae1fcMarcus Walther- external GraphML-Scheduler for hpcOm added - bug regarding mergeParentNodes fixed (hpcom) - bug regarding simEqSccMapping of createSimCode fixed - text of task graph edge-labels changed
f86856496Martin SjölundImplemented convert_lines.pl inside Print.mo
0b22bf8a4Vitalij Ruge- Codestyle - remove not needed function
ca5df488aAdrian Pop- correct the filtering of the modifiers for a redeclare Type x(ModsForSomeCompsNotInY) constrainedby Y; Now ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_B (and probably others too) started working.
b6ea4e5a5Adrian Pop- fix MDT debugging (add mmc_gdb_listGet & mmc_gdb_arrayGet)
c763ad5f1Adrian Pop- split Inst.mo into more packages to make it more manageable: + Inst.mo -> instClass*, partialInst* functions + InstVar.mo -> instVar* functions + InstFunction.mo -> instFunction* functions + InstDAE.mo -> daeDeclare* functions + InstBinding.mo -> makeBinding*, instBinding* functions + InstUtil.mo -> all other functions that are just support for instantiation
a3aaa0bb2Martin SjölundAdd example usage for Modelica3D
422d8e0e2Martin SjölundFix infinite recursion in configure
ab89f8109OpenModelica Hudson[Janitor mode] Fix tabs
17a4d7dedVitalij Ruge- added object function to DAE (Thanks Willi) - used symbolically gradient for optimization
37c7d92bcMartin SjölundTail recursion
f5f3408bcMartin SjölundFix potential read access to local stack memory after returning from a function
7b27796a9Martin SjölundDon't include omp.h unless -fopenmp is given on command-line. Don't include omp.h in headers if you don't use its types in the header.
916b92032Adrian Pop- fix bug #2403 (quite many changes, do make clean) - properly count tuple equation size in the BackEnd BackendDAE.ALGORITHM gets a new component called expand (DAE.Expand) which tells that this algorithm was translated from an equation as in this case we SHOULD NOT expand array crefs to the full size - added test for bug #2403 testsuite/simulation/modelica/algorithms_functions/ ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Channel.kc_evenGapLaminar.mos - fix counting of tuples in CheckModel.mo
64bf40e55Martin Sjölund#2375 - Pass around threadData* to all functions called rather than using pthread_getspecific()
72bfd0dc8Martin SjölundFix typo in configure (wiped CFLAGS)
98c9f2bacMartin Sjölund#2400 - Added a new expression type: DAE.RECORD (to eventually replace DAE.CALL for calling record constructor) - This is more tied to the record type than the constructor function (which does not take the protected components as input, and thus cannot represent records in a good way) - Minor changes are needed to the backend. Most is related to code generation.
677266725Adrian Pop- fix bug #2402
ffb07d759Adrian Pop- correctly unparse WILD for saveTotalSCode
b8a8b2ff1Adrian Pop- fix SimCodeTest.mos on test.openmodelica.org - fix ADD_METARECORD_DEFINTIONS typo (add missing I) -> ADD_METARECORD_DEFINITIONS
a8e870a9aMartin SjölundIncrease the timeout
09a4b3c09Adrian Pop- fix configure - fix tests
564cc1056Vitalij Ruge- used existing information for checking ipopt
ae04eb0dcVitalij Ruge- fixed fix
86beb299cVitalij Ruge- fixed pointer
9f1697e4dMartin SjölundBetter checks for -fPIC and -march=native
f613cfc8fMartin SjölundUpdated build system for cross-compilation (most libraries compile for mingw32 on Linux)
7eca9f483Christian SChubertimproved the output of LOG_NLS_RES a little
e5695c142Lennart Ochel- try to use more uniform error messages
e1c8aeb45Martin SjölundUse 5 minute limit for EngineV6 simulation, etc
e37d99ff3Adrian Pop- fix +target=msvc (more DLLExport)
f3e2188d8Christian SChubertintroduced new debug flag LOG_NLS_RES into simulation runtime, to monitor every evaluation of the residual function
1ffaf91eeVolker Waurich- inline function calls with asserts and add the corresponding assert statements to the BackendDAE
8315f23f0Adrian Pop- properly fix bug #2385 - expandable connectors are not that obvious. handling them is rather complicated (see ConnectUtil.removeUnusedExpandableVariablesAndConnections: 1. collect all expandable variables crefs 2. collect all expandable crefs used in the DAE (with the expandable variables THAT HAVE NO BINDING removed) 3. get all expandable crefs that are connected ONLY with expandable 4. substract: (3)-(2) 5. remove (4) from the DAE and connection sets 6. get all the connected potential variables 7. substract (2) from (1) 8. substract (6) from (7) 9. remove (8) from the DAE (5)
b776364e6Adrian Pop- fix bug #2385 - remove the expandable variables that are not used in the DAE. it makes things slower but more correct, before we only kept the ones used in connects. - add testsuite/flattening/modelica/expandable/ExpandableVariableUsed.mo
b4b605ba8Martin SjölundUse the latest FMIL (which should allow .a-files to be used without compiling a .so)
650a8accbPer Östlund- Handle assert in new instantiation.
69492b298Adrian Pop- fixes to get separate compilation to work on Windows.
2aaa3d787Martin Sjölund- Allow configuring ar
f305f80a4Adrian Pop- fix compilation.
6501baefaarunkumar palanisamyunparseElementattrStr() for unparsing parallel variables of parmodelica
5edd02ca8Christian SChubertadded openmp flag to msvc makefile if hpcom is enabled
06c835e98Martin SjölundFix FMIL (needs patch; can't compile only static version)
50d44a154Per Östlund- Handle more than one dimension in Static.getRecordPath.
6397875caMartin SjölundPass CC and CXX to more 3rdParty projects
96e93d05fMartin SjölundLinux mingw32 is case-sensitive
81790643cMartin SjölundAdded annotation `__OpenModelica_messageOnLoad=str`, which displays a custom notification when loading a library - Added disclaimer when loading TSP
fa1c4f37aPer ÖstlundFix for #2355: - Handle extension of local class with the same name as the extending class.
390afd3c3Martin SjölundFix parsing, update tests
34ae14cafMartin SjölundFix parsing
4a5e40b43Martin SjölundAllow parsing of non-UTF-8 files (give a warning, fall back to 7-bit ASCII)
eb302775bPer Östlund- Updated error indices to make them unique.
f539c4c84Martin SjölundFix bootstrapping
f80076e9aMartin SjölundHandle classDirectory() - returns the directory of the mo-file
d7a4b3c3cOpenModelica Hudson[Janitor mode] Fix tabs
c47380854Marcus Walther- Skeleton for external hpcom-Scheduler added - critical path' will now be displayed with gray edges in the task graphs - PN-Converter for task graphs added to the hpcom-testsuite - made some hpcom profiling updates
de38cd3c6Adrian Pop- unparse constrainedby in SCodeDumpTpl.tpl
effdcc96cMartin SjölundComment the change
ae16cc154Martin SjölundFix for compliance suite xml
30d77f8d7Niklas Worschechadded semiLinear Modelica function to cpp template
39f02c1a6Martin SjölundBoom! (Forgot to remove debug code)
d585de673Niklas Worschechfix in cpp template and SimCodeUtil for local variable, added modelica_mod_int to cpp template and enumerate
0325c8fc2Per Östlund- Improved handling of builtin functions in new instantiation.
8a5544f55Martin SjölundTry to avoid MPI-related errors in liblis
6d733744bMartin SjölundInverted message for expected failure (was printed for the wrong case)
71b34763fAdrian PopFix bug: #2374 - Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.mos now works and gives correct results - handle // ASUB(CAST(e)) -> CAST(liftArray(t), ASUB(e)) in ExpressionSimplify - handle CAST(cref) in SimCodeUtil.createSingleComplexEqnCode2
0b323a3afMartin SjölundFix for the diff script
f5a975af0Martin SjölundFix the new python parser to accept multi-line strings
5fe683a7dAdrian Pop- fix flattening of Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench - still some work to do to get it to compile (some wrong casting of non records to records)
38514cb10Martin Sjölund- Added new option for rtest (ulimit stack size) - Fix compliance suite error-messages
9a829f5b6Martin SjölundUpdated BackendDAEEXT_omc.cpp to be the same as the RML version (remember to update both functions if you make changes)
351a273b5Martin SjölundDo profiling of linear functions correctly
3c4408293Martin SjölundAdded new parser for OMPython (use OMPython.sendExpression()) - Handles the typed OpenModelica API, and returns basic Python types that are simple to use (dict,tuple,string,boolean,numbers)
9a538ab35Martin SjölundFix parsing error
ad19532a7Martin SjölundGenerate SVGs in directory Icons since we cannot tar this many files in one directory
39f1734faMartin SjölundFix from debugging
38867f242Martin SjölundBump version number
9ba0f97daMartin SjölundAlso generate icons for the index page
2fae61bb3Martin SjölundAlso upload the SVGs
b4162cb39Martin SjölundLink to the online versions of the release notes instead of having a copy of trac inside omc
8ca87be1dMartin SjölundBetter error-message when failing to parse a package
caf187f31Volker Waurich- some changes at the checkForExecutionCost function
86adaea75Martin SjölundRun the correct command from GenerateDoc.mos
7742c9dd1Martin SjölundSet a ulimit to prevent one package from spinning in place; the SVGs are not critical
fe9ea7934Martin SjölundPrint more relevant error-messages, handle UTF-8 text icons
0dfdd7f3bVolker Waurich- disabled checking of exeCosts in validateTaskGraphMeta
4f57a0902Martin SjölundGenerate documentation for all classes...
65fa5d8ecMartin SjölundFix compliance suite
019b5228bVolker Waurich- added functions to disassemble linear torn systems into various singleEquations and a reduced linear torn system - added the debugFlag partlintornsystem to use this - hpcom can now simulate in parallel without prof_xml file by estimating the task costs
e386e0435Martin SjölundAlso add message to the xml that says expected failure
bfcdc00aeMartin SjölundAdd links to the icons
ef64ad3a5OpenModelica Hudson[Janitor mode] Set auto-props
0b3231c44Martin SjölundThe documentation generation now uses SVG icons (instead of no icons) - The sample scripts now includes generate_icons.py - a script that uses OMPython to export SVG icons. The code is not perfect, but it works for many cases and should not be very hard to extend.
cfecabc24Martin Sjölund#2369 - Unparse Absyn.WILD() as "" in Modelica and "_" in MetaModelica
00e19a4c7Martin Sjölund#2368 - Fix generation of empty array
f357de4d6OpenModelica Hudson[Janitor mode] Fix tabs
56f809b52Niklas Worschechsecond try to fix event output in cvode , cpp runtime test should work now
061507900Niklas Worschechchanged event output in cvode, output before and after the event
6162b9de7Martin SjölundDon't rm stuff from the root...
5b704d5c8Martin SjölundResolve URIs correctly even when the loaded library does not have a version annotation (or a version annotation that does not match its directory name)
e7332bc4aAdrian Pop- fix for r17388: do not display commented smooth expression in CodegenC.tpl as it might be smooth inside smooth (used the Buildings lib) and that generates errors.
80c7fc005Martin SjölundAdd messages for the compliance suite
61808c2e2OpenModelica Hudson[Janitor mode] Fix tabs
328dd6276Niklas Worschechfix in covde for event output
e4edf216eAdrian Pop- more hacks to support relative file names when running testsuite + fix filename in loadFile and runScript + fix filename in ModelTesting.mos script
54f49e404OpenModelica Hudson[Janitor mode] Fix tabs
ea1676549Niklas Worschechfix in cpp runtime for time events, time events are reseted after handled
b11f5426aAdrian Pop- fix Cpp tests (use -fPIC for libOMCppMath on Linux)
2aabb85a3Adrian Pop- 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
2307c98f1Adrian Pop- fix the fix :)
ed535d8c3Adrian Pop- fix r17384, only prepends if directory does not exist as the sandbox is only used in partest and not regular make test.
6b4d7fb05Per ÖstlundFix for cppruntime tests: - Made compareSimulationResults more partest friendly.
17b3996f0OpenModelica Hudson[Janitor mode] Set auto-props
2e3bb3848Niklas Worschechadapted kinsol to changed algloop interfaces
088656b40Adeel Asghar- Added JavaScript in simCodeTarget help text.
c5d981fa0Martin SjölundFix last commit (commit from dev instead of laptop)
faacceaccMartin SjölundFix getClassInProgram to no longer spin for some cases
fd3299fe4Niklas Worschechfix for exception handling in cvode
d2a90beecAdrian Pop- fix Windows simulations, use double quote instead of single ones!
be7ea89eaAdrian Pop- attempt to fix MSVC runtime build. some files changed name from .c to .cpp (why?)
eb2eca9e2Martin SjölundAdd simCodeTarget=JavaScript, which compiles to .js and creates a .md-file
7b2a2ee73OpenModelica Hudson[Janitor mode] Fix tabs
ec7bcf9a8Martin SjölundGenerate LLVM bytecode of libraries for use with emscripten - Use make -C SimulationRuntime/c emcc && make
eea2544dfNiklas Worschechnumber of intervals is passed to the cpp runtime fix in cvode for time events activated dens out in cvode
c86ba8350OpenModelica Hudson[Janitor mode] Fix tabs
e5958c6afNiklas Worschechadded time events in cpp template for sample function BouncingBall test use CVode solver now
6bc93ebb8Martin SjölundUse lines in the graphs instead of linespoints
2e02fa950Martin SjölundFix array types for PartFn (fixes Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX)
6358903f7Niklas Worschechfix in cpp runtime cvode, used wrong cvode zerosearch return value
366607740Adrian Pop- make functions tail recursive (matchcontinue -> match) to fix some bootstrapping tests
158cc4c33Martin SjölundUse +d=initialization for tests
4f6352718Martin Sjölund#2362 - Fix scalar(size(x))
a15d51916Adrian Pop- more playing with alias set selection (consider also the depth of cref in the binding)
aeecd5e1dAdrian Pop- fix typo Aliasset -> Alias set - change alias start value selection heuristics, try to avoid zero.
a479465a8Adrian PopFix 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
1afb73fa6OpenModelica Hudson[Janitor mode] Fix tabs
c2e03fee9Marcus Walther- list schedule reverse added to hpcom - mergerParentNodes is a second filter-rule and now part of hpcom - GraphML-Nodes can now have multiple labels - GraphML-EdgeLabels can have multiple font-sizes - Some bug fixing - TaskGraph-Representation changed to achieve a better look
76bf098e4Martin SjölundTry to fix BuildModelTest.sh for empty packages
293c06d6eAdrian Pop- fix broken tests by including generic_array.h :) well, C thinks is something returning int if is not defined and it actually returns void*. - beautify some stuff in CodegenC.tpl
1e96fdd78Adrian Pop- fix bug: #2339 + add record constructor when you cannot look it up based on the type, connector ComplexOutput = output Complex will now generate a record constructor. + fix some issues in codegen with arrays of records to get the models to work. - now these models work: Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar
5b5f4f8adAdrian Pop- at least these models started to work: Modelica.Electrical.Digital.Examples.RAM ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A some models in: ModelicaCompliance.Redeclare.ConstrainingType.*
fa6f4da5dPer Östlund- Fixed broken connector balance checking.
be7d6c7bbVitalij Ruge- using pkg-config for checking own ipopt package
afc8f6dcePer Östlund- Added debug flag to disable generation of equations for unconnected flow variables.
83437fb05Adrian Pop- fix the inst of some of the failing new Media models (add locals to ht in classes with parts!) - fix some code generation issues for handling crefs of arrays of records. - some models might fail, I'll see.
2b8b41cf4Adrian Pop- fix bug: #2359 and added test
135c8dd9dAdrian Pop- dump class annotations in SCodeDumpTpl.tpl
57740a69fAdrian Pop- attempt to get the same output on any system by using fflush(NULL); where messages are printed
bec7e2677Adrian Pop- Fix for bug #2356 make the error message a warning and proceed with flattening. - add testsuite/flattening/modelica/others/ExternalObjectVariable.mo to test this.
7de6b1c7bAdrian Pop- attempt to fix +target=msvc compilation and test.
fa0b7b9d6Adrian Pop- fix +target=msvc (include msvc) fix copying of files needed for +target=msvc add needed files to SimulationRuntime/c/meta/CMakeLists.txt - fix copying of include files for Ipopt
afdd3eb19Adrian Pop- add testlogwindows in Makefile.omdev.mingw (to be used in the Windows job) - always link with -fopenmp on Windows MinGW in Compiler/runtime/config.h - convert integer array to real array if needed in SimulationRuntime/c/util/read_write.c
aee090450Adeel Asghar- Set the legend position to top by default gives more space for the plot curves. - Remove the title text "Plot by OpenModelica".
730c4fc62Jens Frenkeladd target testcmsvc to test cruntime with msvc
18ba6fe23Christian SChubertruntimeCPP: added #defines for state variables, so that they can be found when occuring in the source code
e8a4441caMartin SjölundAllow the normal case: no openmp and no hpcom
22790d878Per Östlund- Changed swedish translation of OMC: * omfattning => definitionsområde, räckvidd * utplattning => utflatning
b33ee6475Martin SjölundHPCOM fixes (run gcc in the testsuite instead of clang; removed some ugly hacks)
52d01ca82Adeel Asghar- Added a new LegendPosition option to plot command.
509176f15Adrian Pop- do not use cat, use fgrep -v "... ok" instead to filter tests that are OK.
62148f33aMartin SjölundAdded configure option to choose openblas target architecture - Reduced tolerance on rectifier to work on both nehalem and sandy bridge
c5c4e6721Willi Braun- added usage of pkg-config also for own ipopt package
ac5ecc58bChristian SChubertminor bugfixes for cppRuntime: sample needs to be implemented.
09a07969fPatrick Marcel Taeuber- Added comments and dumps to omcTearing - Added two non-linear tests to tearing-testsuite
6a1e56e84Christian SChubertcpprutime: added all input-, output- and aliasvariables to csv output. Now BooleanNetwork reports "Files Equal".
7ee6296d3Martin SjölundTry to build with the same CC to get more consistent results
72cde3252Martin SjölundFix configure script with openblas
3d9fd5ff9Martin SjölundCompile with our own libopenblas unless the user configures --with-lapack=-llapack or similar
030a5f4c0Martin SjölundThread safety for Print.mo
5f91e75dcPer Östlund- Updated swedish translation of OMC. - Added some comments to NFLookup.
71abb8ad2Lennart Ochel- typos
c599e4769Per Östlund- Fixed bootstrapping.
83b2d70b4Per Östlund- Reverted accidental change in SCodeUtil.
a31943df4Per Östlund- Changed NFEnv.Env to be a list of frames instead of one big frame. - Added checks for protected and partial elements in NFLookup. - Implement state machine to validate names found during lookup in NFLookup. - Made Util.applyOption human readable.
4842d7c87Martin SjölundOnly loop through the array
28261e261Martin SjölundFix windows initialization of the jump buffer using pthread_once
d599e36d7Per Östlund- Revert fix for System_forkCallJoin, seems to break bootstrapping.
17ef6595fPer Östlund- Fixed bug in System_forkCallJoin. - Some other minor fixes to keep clang happy.
f1ee883e4Christian SChubertruntimeCPP: save every time-varying variable in csv file. Needed for result comparison.
a3c9c53e9Martin SjölundThe error module now uses thread-local storage - Any spawned thread will have its own error-messages - It is not yet possible to push errors from one thread onto another
b987e654eChristian SChubertsmall bugfix in simulationResultsCmp: filename in error message was wrong and thus misleading
83bc76ca7Niklas Worschechfix for struct access in cpp template
c7c48adecChristian SChubertcppRuntime: install sundials libs, if enabled
716c82130Martin SjölundMaking the ANTLR parser thread-safe
e6af23d22Adrian Pop- include pthread for Visual Studio in simulationruntimecmsvc - copy the pthreads for Visual Studio to lib/omc/msvc - add libphreadVC2.lib for the +target="msvc" in the nmake makefile in Compiler/Template/CodegenC.tpl
6a33fbc92Martin SjölundUse the old forkCall functions instead of the new experimental one
ba5003782Martin SjölundFixed bootstrapping? If it doesn't we need a new tarball
ad8946e4dMartin Sjölund#2332 Fix thread safety for MMC_TRY THROW and CATCH
120917932Adrian Pop- fix error in previous commit \n -> <%\n%> in Template/CodegenC.tpl.
4c0e1a44eLennart Ochel- fix flag descriptions
24e30ae56Adrian Pop- TSUB(CAST(tuple)) -> CAST(TSUB(tuple))
f0d5ded5cOpenModelica Hudson[Janitor mode] Fix tabs
8d2a30cf1Martin SjölundFix end identifier
b2c954441Henning Kielimplemented builtin command remove() to allow for removing directories recursively
9e27e36efNiklas Worschechsolver method passed to the cpp runtime, (using cvode instead of dassl)
ae05b81beNiklas Worschechfix for divide array in cpp runtime
6f314e766Niklas Worschechfix for divide array in cpp runtime
08611e8cbNiklas Worschechfix for array access in cpp template
c623a9c0bMartin Sjölund#2341 Support loadString() parsing optimica
8d167da05Martin SjölundAdd optimica flag to listed grammars
cf072ef79OpenModelica Hudson[Janitor mode] Fix tabs
6a8337a75Vitalij Ruge- update optimiziation tests - compare results (used mumps) - delete removeAliasOpt (alias variable case is now in BatchRactor) - added flag "ls_ipopt": switch linear solver for ipopt - possible that configure must be changed (e.g. -lcoinhsl)
092831b90Lennart Ochel- update configure help text
65f84e221Willi Braun#2341 - fixed remove alias for optimica
fec031e21Lennart Ochel- minor code simplification
d619c21ffHenning Kielchange semantics of mkdir() command to match Unix "mkdir -p" (create subdirs if required)
f88ec56c5Volker Waurich- mergingSimpleNodes considers now endnodes
f9fa40eddWilli Braun - reorder and removed not used types in BackendDAE
1e2d24c16Lennart Ochelmake public functions protected: - OnRelaxation.dumpMatrix - OnRelaxation.transformJacToMatrix - OnRelaxation.dumpJacMatrix
a0d98c542OpenModelica Hudson[Janitor mode] Fix tabs
95f268187OpenModelica Hudson[Janitor mode] Set auto-props
9438ebbb7Niklas Worschechactivated Cvode in cpp runtime
f861d377dNiklas Worschechfix in cpp template for asub operator
fd3a43dbbNiklas Worschechfix in cpp template for range operator
036e81f8cLennart Ochel- upper and lower case
afa667726Lennart Ochel- minor changes (fix description strings, comments, typos, ...)
2fa4b4d5eHenning Kielimplemented builtin command mkdir() to avoid trouble using system("mkdir -p dir")
49885647eNiklas Worschechfix in cpp template for pre operator
6d055757cAdrian PopFix bug: #2338 - better handling of removal from sets of broken overconstrained edges. Compiler/FrontEnd/ConnectionGraph.mo Now models: Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar are balanced, however code generation fails for them, handing over to -> Mahder - overloaded operators issue. - better circular message in Compiler/BackEnd/RemoveSimpleEquations.mo
838279f6bOpenModelica Hudson[Janitor mode] Fix tabs
971a5bd3bNiklas Worschech-starttime,stoptime,stepsize are passed to cpp simulation. Added range to cpp template,
085acc2a1Per Östlund- Lots of changes to the new instantiation.
442b97ff6Adrian Pop- empty defines for some openmp functions if we don't have _OPENMP
854bb540bAdrian Pop- fix wrong negative logic.
26dfba7ccAdrian Pop- only generate #define HPCOM if compiler is not CLANG.
af0c4802dAdrian Pop- continue on fix ipopt linking flags on Linux using a quick hack for now
8275ecdf1Adrian Pop- empty defines for some openmp functions if we don't have _OPENMP
8d89e1cd7Adrian Pop- fix ipopt linking flags on Linux using a quick hack for now
2a1008592Lennart Ochel- fix comments (typos, ...)
587309249Adrian Pop- attempt to fix hpcom tests on CLANG by only adding -fopenmp if the compiler is not clang.
1937f1a57Adrian Pop- fix FMI tests - force static build of fmilib on Windows and shared build of fmilib on Linux/Other
1b92d899eLennart Ochel- minor changes (e.g. removal of unused local variables, typos, …)
8de2ae948OpenModelica Hudson[Janitor mode] Fix tabs
69f7755f1Marcus Walther- added a list scheduler to the hpcOmScheduler Module - cleaned up the hpcOmSimCode Module - changed the getCriticalPath method - modified the CodegenC including the SimCodeTV to create parallel code based on the list scheduling - added a config flag to switch between different hpcom-Scheduling algorithms - modified the hpcom testsuite
de6714716Martin SjölundDon't compile with ipopt if we lack kinsol
f8d945100Martin SjölundCheck if it is possible to link ipopt before we start using it
88beaf0a1Martin SjölundShared fmi lib breaks bootstrapping
2ca88f6e0Martin SjölundUse dynamic FMI library. Still keeping C-runtime static because otherwise the fmi library cannot read strings...
a949c35ebMartin SjölundFix configure on Ubuntu (ipopt on ubuntu is not linked against metis)
c6008727fLennart Ochel- minor fix for last commit
400de1dcfLennart Ochel- minor formatting changes
001e6e6c7Lennart Ochel- try to improve readability of optimization source code (using spaces, indention, …)
e0cc6ae52Lennart Ochel- move testsuite/simulation/optimization to testsuite/openmodelica/cruntime/optimization - include optimizations tests into testsuite - remove CPU time dump for optimization
9cae56ea1Lennart Ochel- mumps and metis are also needed for ipopt
24b1b9d88Adrian Pop- UPDATE your OMDev so you get Ipopt compiled with OMDev/MinGW - always use Ipopt when compiling with OMDev/MinGW - added ipopt libs in config.h - properly clean SimulationRuntime/c/optimization in SimulationRuntime/c/Makefile.common - add the ipopt include in SimulationRuntime/c/Makefile.omdev.mingw - the tests in testsuite/simulation/optimization/basic are all working now, they should be added to the testsuite. - TODO: link with ipopt libs only if +g=Optimica is active as the executables become quite large (11MB) we should discuss in how we can make it more consistent and homogeneous when we add new lib dependencies to OpenModelica.
9c2abed3cAdrian Pop- add include: INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/optimization so that MSVC can find interfaceOptimization.h
0e701321fChristian SChubertattempt to fix cppRuntime test, that I broke earlier
911461dd8Martin SjölundLook for ipopt by default
8991fcb25Christian SChubertsimulationruntimec: added #include "gc.h" as GC_malloc was unknown to msvc
c4cd06db6Christian SChubertfix compilation with target=msvc: compile gc and add it to the makefile
8c35341c1Martin SjölundNever define function implementations in headers. Use macros or something.
0651b8d01OpenModelica Hudson[Janitor mode] Fix tabs
13f8f8ee9Lennart Ochel- minor changes
c82b8854bLennart Ochel- remove unneeded defines because of last revision
342447ad6Vitalij Ruge- use ipopt function only if ipopt is known
3ceecf048Lennart Ochel- define types if needed (?!)
b5c1e529fVitalij Ruge- see r17086
5b9b40e35OpenModelica Hudson[Janitor mode] Fix tabs
aa7ffaac5Christian SChubertcppruntime: minor bugfix linear systems, copy rhs into residuals
1cd1da9caChristian SChubertcppRuntime: fixed build with msvc
227edf45bChristian SChubertminor bugfix cppRuntime: linear systems
b7699f9b6Niklas Worschechfix in cpp template for linear systems (wrong dim variable was used)
68d9e6f0cAdrian Pop- revert r17084-r17081 as it breaks way too many models. - please run the testuite before you do the commit and re-do the commit. - ExpressionSolve.mo: add more information to singular expression assert and make it a warning. do we need an error here?
bb33c63caVitalij Ruge- missig files for last commit
c2656a8e7OpenModelica Hudson[Janitor mode] Fix tabs
a87283914Vitalij Ruge- fixed simplify - added rules for jacobian - added optimization based on ipopt (thank everybody for help)
678e69bf3Christian SChubertminor changes to makefiles of cppruntime. Targets 'runtimeCPPinstall' 'runtimeCPPmsvcinstall' seem to work now. Running both of them causes CMake to fail as they share some paths.
aff2c245bMartin SjölundSome stack overflow fixes
d1b206e82Martin SjölundTail recursion
28b305075Martin SjölundTail recursion
b94ef7379Henning Kiel- fix syntax of PO file
b2985763bHenning Kiel- update german translation of OMC. - ignore generated files
77a305144Martin SjölundUpdate bootstrapping sources, strdup workarounds for string assignments
bbe882a7eMartin SjölundUse boehm GC_malloc for string allocation (TODO: Fix all weird workarounds in the C codegen since we don't need them any longer)
ad9706893Adeel Asghar#2327 - Don't force the MetaModelica grammar for MDT. Use the preferences value if you want to set MetaModelica grammar.
4997fd71cMartin SjölundStack overflow (instantiation of HumMod can now be done in 512kB stack on bootstrapped omc)
d65ed85fbPer Östlund- Fixed propagation of file info for duplicate enumeration literals error.
8967dd587Per Östlund- Updated swedish translation of OMC.
4dca48b9cMartin SjölundFix stackoverflow, expected output
f0b263ff8Adrian Pop- fixes to inner outer prefixing when prefix is Prefix.NOPRE (top scope). - testsuite/flattening/modelica/scoping/InnerEnumeration.mo to test the fix.
8fccb7469Lennart Ochel- public function evaluateAnnotation is not used. Should it be removed? - update some description strings
50f5219d3Lennart Ochel- remove unused debug flag "frontendInlineEuler"
f4b596a55Lennart Ochel- remove commented handling of if equations because this was already moved to the Backend (r12372?) - comment unused inline solver implementation (this is Backend stuff anyway)
024e3ea02Adrian Pop- there is no fsync for MinGW/Windows, use FlushFileBuffers
010089b9fMartin SjölundUse cat instead of echo ...
4aee6b75dMartin SjölundTry to fix complaince suite oddities
83b099e3dMartin SjölundTail recursion
ff44f4b56Martin SjölundFix FMU compilation
07c66dfe3Martin SjölundFix simulation builds again (both OSX and Linux should work)
ea30ceec0Adrian Pop- fix Windows build for simulationruntimecmsvc
bc1c42e42Martin SjölundOSX compilation fixes for lis
ec6b4feddMartin SjölundFixes for lis compilation on Linux
51307391eMartin SjölundFix stack overflow
c8d818767OpenModelica Hudson[Janitor mode] Set auto-props
749ffe608Marcus Walther- linear solver "lis" with sources added - please update OMDev if you are working under windows
71b529f44Adrian Pop- more classes needs to be deleted (because they generate errors in for different scopes).
da2d7981eHenning Kiel- fix for rev.17014 (pass option to linker via -Xlinker when using gcc/g++ as linker)
4d37e18ebMartin SjölundFix stack overflow
e8fc3c42cMartin SjölundParse the compliance suite using Modelica grammar, not MM
d7bf41a8dMartin SjölundFix for stack overflow
ff80dbe7bHenning Kiel- use "--export-all-symbols" instead of "-export-dynamic" for windows (PE targets) as suggested by the linker
31a73c9deMartin SjölundFlush stdout at end of execution since it's not automatically flushed when piped to files on Linux
1b2d4d0ecMartin SjölundDisable parallel marking (causes the process to spin at exit)
38fde2b91Martin SjölundSome fixes for valgrind crying wolf
515fbaeb4Adrian Pop- try to fix the Windows testsuite, add -lpthread to the simulation code linker flags.
88eea8647Martin SjölundFix a typo
68c41e1cbMartin SjölundFewer global symbols, compile fewer functions
2bc2eeb19Henning Kiel- fix infinite recursive loop (call Implementation instead) - include winsock2.h on windows, so that the code compiles there as well
ba2f50630Lennart Ochel- improving the code structure
49c8ab87dAdrian Pop- fix Windows build (include the needed headers).
a1213a100Martin SjölundTry new features for separate compilation - Fix socket implementation for bootstrapped omc (OMShell-terminal should now work)
5a53c2431Lennart Ochel- fix commented descriptions
b957f4ba0Lennart Ochel- remove irrelevant and often wrong information from some description strings
ccb775e57Lennart Ochel- attempts to get realtimeTick and realtimeTock for RT_CLOCK_BACKEND on the same level
e46db6441Lennart Ochel- fix last commit
a164f0a5aLennart Ochel- change some description strings
f4bd01211Patrick Marcel Taeuber- Cellier Tearing algorithm completed - Introduced modified Cellier Tearing (named: cellier2) - Tearing Testsuite revised
f6d0d146dLennart OchelReintroduce +d=doLinearTearing to keep backwards compatibility. This will be reverted after the next release.
7b82dba86Martin SjölundAdd text that "debug"-flags are also for experimental features
f1136af6aLennart Ochel- change +d=doLinearTearing to +linearTearing
569c48d4eLennart Ochel- update inner equations for nonlinear systems (fix for #2324)
7d177c117Adeel Asghar- Removed some unused stuff. - small fixes.
27a8a7dbaLennart Ochelimprove condition expression
d54a8f038Lennart Ochel64-bit windows api is not available in mingw
6d92f1f6dMartin SjölundTry to fix MinGW compilation
adde5c1aeOpenModelica Hudson[Janitor mode] Fix tabs
05a82d691Martin SjölundBootstrapping fixes for OSX and low-memory targets - Added API call to find out system memory size
b7a57ca26Lennart OchelConsider also the inner equations for nonlinear equations. These may also be nonlinear. This is necessary at least for some tearing approaches.
c5c8a913cMartin SjölundInitial makefile changes for osx bootstrapped omc (which crashes in the GC when compiled with clang)
3ec6af25cPer Östlund- Updated swedish translation of omc.
427555a24Martin SjölundBootstrapping fixes - Fixed stack overflow in backend - Return an error-message when separate code generation fails for a package that does not give an error-message - Don't free() before last use in system_parallel (sometimes gave wrong exit status)
6f7d794a3Martin SjölundFix for OSX
f9165fa97Lennart Ochel- fix for #2310
a15366d1dMartin SjölundEnable running templates in the bootstrapping target
318180c31Lennart Ochel- fix initialization of mixed system by defining additional macros for continuous-time variables 'xyz': - #define _$P$PRE$P'xyz'(i) $P$PRE$P'xyz' - #define $P$ATTRIBUTE$P$PRE$P'xyz' $P$ATTRIBUTE$P'xyz'
ac6599849Martin SjölundWindows compilation
18e300fecMartin SjölundAdded code to make separate compilation use dummy .stamp files instead of updating C-code. By comparing the generated code to the old, we only re-compile files that actually changed. Added new debug-flag to be able to turn off function inlining (made separate compilation non-deterministic).
291270ca3Per Östlund- Updated swedish translation of omc.
e7a3f5150Adrian Pop- added dumpSCCGraphML to dump Strongly Connected Components as GraphML.
cedad80caAdrian PopFix bug #2300 - remove statements containing arrays of zero - this also affects #1907 maybe we should keep the function call but remove the lhs (make it wild)
f7581ccaaLennart Ochel- fix last commit
d94b6f432Lennart Ochel- fix initialization of pre variables
166f1c157Martin SjölundDon't link hwloc against all simulations
5f0015839Martin SjölundMake DAE traversal function tail-recursive, possible to only call on rhs of statements
96b7fe8f7Martin SjölundRevert r16871 (needs lis source code for linux, or ifdef's to not compile against it)
23a9f28d4OpenModelica Hudson[Janitor mode] Set auto-props
1d12ed138Marcus Walther- linear solver "lis" added
8945a66b3Lennart Ochel- fix initialization of pre variables (at least for states) - fix #2263
44b1aa953Per Östlund- Updated swedish translation of OMC.
d1186fb7fMartin SjölundNew debugging functionality - Added MetaModelica debugging function: referenceDebugString (takes any function pointer as input and returns for example the name of the function symbol it points to) - +t now prints /*ASUB*/ for ASUBs
8fef82babMartin Sjölund#2316 Add -lblas to compilation command in order to work on OSX 10.6 and earlier
5cee30ab7Lennart Ochel- second try: add x = pre(x) for all continuous-time variables to the initialization system
835da1f5bAdeel Asghar- Return the correct number of components even if the placement annotation for a component is not found. - If the result count is not correct for some reasons don't allow the GUI to crash.
84c05899bNiklas Worschechfix in cpp template for print time in nonlinear solver error message
ad8a029ecMartin Sjölund#2309 - Print error-message specifically for ASUB on lhs expression
7e9628c49Martin SjölundTail recursion
26b7ec3a4Niklas Worschechfix for loading math lib in cpp runtime
5d8b92db9Martin SjölundBootstrapping fix
386c282a7Martin SjölundFix bootstrapping
05e4ab631Martin Sjölund- Make it possible to change ModelicaAllocateString to use garbage collected allocation in the bootstrapped compiler
2ceed8e81Martin SjölundAlso install CPP runtime for bootstrapping target
cab3a849bMartin SjölundUpdate scripts and code for separate code generation. It actually works (Makefiles updated for Linux) - Some external were commented out because no one wrote bootstrapped implementations for them or called them in any existing function. - Moved some stuff from Interactive.mo to GlobalScript.mo (type definitions)
48f74daaaLennart Ochel- revert last commit
4aaf327f0Lennart Ochel- add the equation x = pre(x) for all non-discrete variables to the initialization system
c5e0c5ebdLennart Ochel- remove irrelevant information from description strings (e.g. the identifier that belongs to the description string) - minor changes to improve consistent formatting
8af496667Lennart Ochel- change more description strings
fb8e31735Lennart Ochel- change description strings
ffe7ae6d3Lennart Ochel- change format of description strings
a8872933eLennart Ochel- improve error message for #2310 - minor formatting changes
336d018e6Lennart Ochel- fix constant declaration - change init_env to initEnv on page 95 in OpenModelicaMetaProgramming documentation
b8943cce6Adrian Pop- more -fPIC for Linux.
445e2676aMartin SjölundFix bootstrapping header
fd7ca0131Adrian Pop- more attempts to fix SimulationRuntime CPP build. - use -fPIC for UNIX - #include in GlobalSettings.cpp
2deda72b9Adrian Pop- more attempts to fix SimulationRuntime CPP build. - fix weird includes (what about Linux if you use defined(_WIN32) everywhere?) - use #error instead of error.
da5a08db4Adrian Pop- more attempts to fix SimulationRuntime CPP build. - fix weird includes
4a49ded40Adrian Pop- more attempts to fix SimulationRuntime CPP build. - fix ISimdata.h case, should be ISimData.h
ba364459dAdrian Pop- attempt to fix SimulationRuntime CPP build. - fix IAlgloopSolverFactory.h case, it should be IAlgLoopSolverFactory.h
28b2f429bAdrian Pop- attempt to fix SimulationRuntime CPP build. - fix stdafx.h case (not StdAfx.h) - fix UTF-8 encoding in stdafx.h files (removed some German comments)
e33fb175cHenning Kiel- use number of allocated elements to check if array has been filled completely instead of comparison of fill value. This avoids possible inconsistencies (for reals) and improves overall performance
dacfab91eOpenModelica Hudson[Janitor mode] Fix tabs
e2b9d381aOpenModelica Hudson[Janitor mode] Set auto-props
38d3208b9Niklas WorschechModified cpp runtime - outsourced object creation in own classes - changed some interface method names - removed unused interface methods - add get/set method to IContinuous for simulation variables - adapted cpp template - adapted cpp fmu template - added SimManager for time events and removed time event handling from solver - added SimController class to start stop simulation, create Modelica system
0d7c818a0OpenModelica Hudson[Janitor mode] Fix tabs
1199632c8Marcus Walther- added a mapping between simCodeEquations and BackendDae.StrongComponents to the createSimCode-method - fixed a bug in TaskGraphResultCmp.cpp -> the xml-file will now be read at once - enhanced code-generation for hpcom is now part of the c-susan-template - modified some nonlinearsolver-f2c-code -> i just removed some static keywords to be able to calculate more than one nonlinear system in parallel - modified some nonlinearsolver-c-code -> i changed some function-headers, to remove the simulationInfo.currentNonlinearSystemIndex-dependency between different calculations - improved the hpcom-Benchmark
c64a038dbLennart Ochel- fix Windows build
255677647Martin SjölundAdded API call numProcessors(), which returns the number of physical cores (if available), falling back to returning the number of hardware threads
1b2385b5bMartin SjölundFix index of metarecords when comments are used within uniontypes
1215d9664Martin SjölundSeparate compilation now works with dependency analysis. There are still some tweaks to be performed though.
170cc45c5Per Östlund- Fixed flag handling for +debug and added +h as synonym for +help.
80fdb9434Matthias Arzt- fmu c++ traget, fix bug introduced in revision 16736 when compiling on 64 bit linux
fa170fdb1Martin SjölundMore refactoring
d01eca7d4Martin SjölundMore refactoring
ea2e9d278Lennart Ochel- use consistent naming in uniontype Context - change comments to description strings
e9165df2fAdeel Asghar- added comments to parameters.
060316d81Lennart Ochel- fix indention
faa5d2ba4OpenModelica Hudson[Janitor mode] Fix tabs
e37a229c9Vitalij Ruge- CodegenC for Optimica
88b5afd8dAdeel Asghar- fixes for FMI co-simulation stand alone.
d265de4afMartin SjölundMore refactoring
fa87cc5d3Leonardo Laguna- Changing the scope of a function used by MathCore
44afde4a6Henning Kiel- ansi C fixes
1b03bf799Leonardo Laguna- Small fix for HashTable6.mo
2ce9bd595Martin Sjölund#2297 Remove some duplicate elements
18b53675dMahder Alemseged Gebremedhin+ Improved handling of logical operation on boolean array types.Improved r16724.
60d581532Lennart Ochel- remove unnecessary import statements
097a5ec86Martin SjölundMore refactoring (fewer inter-module dependencies)
6d4d62a75Marcus Walther- added a Scheduling-Module for hpcom - added a method to create a transposed hpcom-taskgraph
1f15fb499Lennart Ochel- count number of discrete reals for simulation runtime - fix numeric initialization of discrete reals - update test cases
f8a70e35fLennart Ochel- fix encapsulateWhenConditions (avoid additional initial equations)
23506aa5bLennart Ochel- remove unused modules after refactoring
1b53b39c2Martin SjölundSome refactoring
2739ef39bMartin SjölundSome refactoring to break dependencies
f27058c9eMartin Sjölund#2294 Simplify sign(constant)
aa1c0896eMarcus Walther- fixed index mapping between sccs ans simeqSystems for hpcom - added openmp sections to CodegenC.tpl for hpcom - extended the hpcom testsuite with a fluid example - added a small python benchmark-script to the hpcom testsuite
30bbe40c9Matthias Arzt- C++ Target and SimulationRuntime: add return value to "update" and "handleSystemEvents" which indicates if an state variable had been reinitialized.
a34bf4f56Martin SjölundFix code generation for subscripting record arrays in equation context
85638871dMartin SjölundReally turn off trying to find OM installation
a34e5598aMartin SjölundFix compilation with CORBA disabled
13c47a54fMartin SjölundTry to fix Windows build
6b2d5ea50Lennart Ochel- revert r16720 because it still causes errors
0d59bae91Henning Kiel+ Improved handling of unary not operation on boolean array (#2286) - does not work recursively (also for 'and' and 'or') - (a and b and c) fails - (not (a and b)) fails - (not a and b) fails - (a and not b) succeeds
f7c8e5a4cMahder Alemseged Gebremedhin+ Handle boolean array literals too, not just array crefs.
132720926Lennart Ochel- recover r16717
d0b51357fMahder Alemseged Gebremedhin+ Fix r16715.
efd48e56cLennart Ochel- revert last commit until Hudson is at least almost happy
a4ced5ee8Lennart Ochel- count number of discrete reals for simulation runtime - fix numeric initialization of discrete reals - fix encapsulateWhenConditions (avoid additional initial equations) - update test cases
260801a48Martin SjölundBump MSL version to RC1 (+1 commit so it parses)
579ef474bMahder Alemseged Gebremedhin+ Improved handling of binary logical operations on boolean arrays (fixed #2286).
a79ba421aMatthias Arzt- fix wrong string buffer size calculations in fmi import
8e822ec35OpenModelica Hudson[Janitor mode] Fix tabs
7808886c2Marcus Walther- critical path check is now part of the compareTaskGraphResults-method - added support for custom graph-attributes to the graphML-Module - updated the hpcom-testsuite
384bb3e61Adeel Asghar- Added a named argument useQuotes to getExtendsModifierNames. Returns the array of strings where each string is enclosed in quotes if useQuotes is true.
99d7b573aVolker Waurich- added new functions to dump information about criticalPaths and graph levels
5c4956227Marcus Walther- second fix for RDTSC(), hopefully this will work
75a43d735OpenModelica Hudson[Janitor mode] Fix tabs
82fd236b6Marcus Walther- fix for RDTSC() and visual studio compiler
45d9afe78Marcus Walther- added some comments to HpcOmSimCode.mo - removed the print output of the critical path - updated the hpcom testsuite
5eb2612ebOpenModelica Hudson[Janitor mode] Fix tabs
533b5897eMarcus Walther- Added some methods to create and handle parallel informations to HpcOmSimCode.mo - Extended the SimCode-Structure with simple parallel informations for HpcOm - An error message is now shown if the profiling-xml file is missing and the hpcom-flag is set - OpenMP based code-generation of HpcOm is now part of the Susan-C-Codegen - Added a new clock to the rtclock-structure. It is now possible to measure the time in cpu-cycles with RDTSC under Windows
336ab4b28Adeel Asghar- setlocale(LC_CTYPE, "") returns null when omc is launched via double clicking on OMEdit.app. This results in strdup(null) which leads to omc crash. Just check if setlocale(LC_CTYPE, "") is not null then use it otherwise use the default value.
a11f64745Volker Waurich- some changes on the taskGraph-function longestPathMethod to make it faster
32aedaf4dVolker Waurich- modified taskGraphTests - minor changes in the longestPathMethod
484d6ac10Volker Waurich-longestPathMethod can handle empty TaskGraphs
c0f43fe38Volker Waurich- add longestPathMethod for computing criticalPath and nodeLeveling on taskGraph - removed some unused stuff - fixed bug in rootNodes in taskGraphMeta for the ODE-system
7e78e90bcMartin SjölundFix assignment to records in tuple assignment calls
20239aa2fOpenModelica Hudson[Janitor mode] Fix tabs
87a1ebde6Marcus Walther- Renamed compareTaskGraphs to checkTaskGraph, because the execution and communication costs are now checked too
b177aba5aLennart Ochel- disable not used function modPar - experimental call graph for Main.mo
bfcf4be20Matthias Arzt- fmu export for c++ target, minor chances, make it compile with mingw on windows
03b2fa0c8Marcus Walther-fixed missing modification of GraphML.addEdge in FGraphDump.mo
a7ad7cf2dAdeel Asghar- getSimulationStepSize returns boolean value telling the user to take step or not.
4ab95c99bOpenModelica Hudson[Janitor mode] Fix tabs
157d533baMarcus Walther- Additional attributes for GraphML-Edges are now supported - Measure time function for the HpcOmBenchmark updated - HpcOm-Tests are now part of the testsuite - Added communication costs to graphml-taskgraph
439531cbeMartin SjölundBump MSL to latest
764d7b926Jim NutaroDerivatives in delay expressions were translated into wrong C reference. Fixed.
0a16d9fdfLennart Ochel- disable unused functions
027b39669OpenModelica Hudson[Janitor mode] Fix tabs
f69c19941Marcus Walther- Benchmark-function for equations added to rtclock - HpcOmBenchmark is now based on the prof.xml results - Extended countOperations method with a new Integer for trigonometric values - Mapping for SimEq -> Sccs added
083868226Adeel Asghar- Set FMU version text.
3ecc7b584Lennart Ochel- disable unused functions - Should these be completely deleted?
4eb195c01Lennart Ochel- disable unused code
604a534f0Volker Waurich- adapted communicationCosts for the subsystems in taskGraphMeta - improved nodeDescription for .graphml output
b8c2c562bLennart Ochel- make functions protected
5fe9366dbAdeel Asghar- Added function to get the step size value.
cb28bbc17Lennart Ochel- minor fixes
f2db4eaacLennart Ochel- fix #2288
c57d52b4bLennart Ochel- prepare postOptModule BackendDAEOptimize.addInitialStmtsToAlgorithms - this replaces the previously existing function BackendDAEUtil.expandAlgorithmsbyInitStmts
94d24b4e0Lennart Ochel- edit desc. strings
6affad563Lennart Ochel- edit desc. string
c550c7c57Lennart Ochel- try to use more uniform names
ea350d35cLennart Ochel- minor changes
ef9e32719Lennart Ochel- fix inconsistent flags iim and iom
ef81fa6f7Lennart Ochel- rename BaseHashSet.hashSetCurrentSize to BaseHashSet.currentSize
4686e7b65Lennart Ochel- minor improvements of "RemoveSimpleEquations" dumps
b3568813aLennart Ochel- add blanks to make the code easier to read
59907f9b7Henning Kiel- ansi C fixes - reworked string trimming - fixed horrible "do-not-free-constants" code - put single char directly into string instead of using sprintf
c305590a8Lennart Ochel- remove unused but imported modules
e41f1509eAdeel Asghar- Fix build.
45598efcbOpenModelica Hudson[Janitor mode] Set auto-props
d8e452bb6Adeel Asghar- Generate the Modelica code for FMI 2.0 Model Exchange fmus. - Added Wrapper functions for FMI 2.0 in libOpenModelicaFMIRuntimeC.
d7242d23fLennart Ochel- treat entire arrays as output if they are used as lhs of algorithm sections [#2271] - do not replace lhs of algorithms (due to array/scalar differences) [#2271] - prettify RemoveSimpleEquation dumps
63b7ba276Adrian Pop- trying to fix boostrapping.
e3d83f791Adeel AsgharLatest MAC versions assigns different tmp directories to different processes. So in order to have same tmp directory for CORBA object reference file we pass the tmp directory of OMClient to OMC via the config flag CORBA_OBJECT_REFERENCE_FILE_PATH. This makes sure that omc dumps the CORBA object reference file in the same directory where OMClient is trying to read from.
5c8ca8faeAdeel Asghar- Use SettingsImpl__getTempDirectoryPath for retrieving the temp directory path.
b1687ad5eJens Frenkel- add Tests for MSL32 Runtime CPP
960b1701cAdeel Asghar- flush the output.
70f7c069fLennart Ochel- fix format string
f5d1f9f82OpenModelica Hudson[Janitor mode] Fix tabs
6f17cfda4Matthias Arzt- fix segmentation fault on windows when OPENMODELICAHOME is not set.
98c9cf3cdVolker Waurich- fixed bug of the description of nodes for arrays - updated some functions for new datatypes
cf2e82de7Adrian Pop- small comment change
aade754deAdrian Pop- fix bug: #2283 - added test testsuite/flattening/modelica/declarations/TestPackageConstantHandling.mo
b65891fe4Lennart Ochel- minor change to error message "inverse algorithm needs to be solved"
db462287eLennart Ochel- do not collapse (initial) algorithms for dumping
23c210de8Adrian Pop- reverting r16595 for now until I investigate why it doesn't work.
3ba66edc8Lennart Ochel- fix default startTime value for function simulate and linearize
69aa46dedLeonardo Laguna- Fixing bug in VarTransform when using DAE.ASUB
e1ae03f2cAdeel Asghar- Fix FMI tests.
4d96b7c3fAdeel Asghar- Another Try to fix fmi tests.
e0c5d16edAdeel Asghar- Try to fix fmi tests.
7055ec230Adeel Asghar#1985 - Set the input variables. - Some changes in the generated code. - Fixed tests.
5671bfc5fAdeel Asghar- Add the start & fixed values to the exported ScalarVariable of FMU.
4719b1ddbAdeel Asghar- Free the FMU binary properly.
d9c6d6e4cLennart Ochel- move inactive stateset code to end of file (probably it can be removed)
330c629bbMartin SjölundSome sanity checks for linking script
2c4020875Adeel Asghar- Fixed some warnings.
761c5d66eAdeel Asghar- Fix bootstrapping test.
8609ed60eAdeel Asghar- Fix FMI tests.
5a2809565Adeel Asghar- Fix build.
773cccf11Volker Waurich- added functions to compute levels of nodes in the taskGraph - added function to arrange the taskGraph in these levels
a58c16c54Adeel Asghar#2131 - Try to initialize FMI import objects as the external objects. Do not use the static variables.
bdc372416Matthias Arzt- improvements and fixes for FMU C++ target - fixed broken number of zerocrossing functions in model description - add support for algebraic loops - add some tests
54abbc394Lennart Ochel- fix function rem (#2279)
38f8437f6OpenModelica Hudson[Janitor mode] Fix tabs
0d215487fMarcus Walther- Communication and execution costs added to taskGraph - CountOperations method was extended with an Integer for trigonometric values - Added a printComponent-method to BackendDump.mo - Filled the hpcom-benchmark with dummy values - Extended the c-code generation with a ode-measurement-function
a00188d9bVolker Waurich- added functions to contract simple nodes in the task graph - added function copyTaskGraphMeta in order to avoid overwriting of arrays
a7dcb6d14Adeel Asghar- Fixed the plotParametric parameters for OMNotebook.
cd8ffd013Lennart Ochel- remove annoying output
8594c6fa7Martin SjölundAdded function Global.initialize() to init roots that are expected to have a default value
b93853f5fMahder Alemseged Gebremedhin+ Fix for MetaModelica tests.
08710de8fChristian SChubertmsvc-build: removed missing ModelicaExternalC reference, fixed isnan for visual studio in radau.c
37d1c3865Volker Waurich- changed TaskGraphMeta handling
837a0af11Christian SChubertadded forward declaration to fix msvc build, still missing: ModelicaExternalC and linker complains about solver.lib(radau.c.obj) : error LNK2019: unresolved external symbol _isnan referenced in function _radau5Res
2e4fc6306Lennart Ochel- add support for homotopy (experimental implementation)
559436307Per ÖstlundFix for #2163: - Fully qualify the paths to equalityConstraint functions so they can be found properly.
a261bea8cVolker Waurich- added a testfunction to check the ODE-system in HpcOmTaskGraph.mo - changed pdf for the metaprogramming doc (see revision 16543)
a384b45d5Volker Waurich- filled nodeMark in TaskGraphMeta - changed intLt operator to < on page 312 in MetaProgramming documentary
0a240d2dcAdrian Pop- make the buffer size bigger.
04853662bVolker Waurich- added revised dumpAsGraphMLSccLevel
6bb685143Volker Waurich- fix bootstrapper
1fbb689cfOpenModelica Hudson[Janitor mode] Fix tabs
84f398290Pavol Privitzer- update to C# target template
9d2c48c31OpenModelica Hudson[Janitor mode] Set auto-props
77715602dMahder Alemseged Gebremedhin+ Handling arrays of records. + A new generic array structure to handle arrays of random types. + Underscores for qualified names too. e.g. _a._b. Needed for records like record R Integer int; end R; + recordArray[i].recordComponent works now. Deeper versions should also work. - Multi-dimensional arrays of records need more support for default values. Right now default values handled only for one dimensional arrays of records.
1dea272a6Volker Waurich- new type structure for the task graph (TaskGraphMeta and TaskGraph) - added additional information to TaskGraphMeta (nodeMark,costs...) - some useful dump functions
427219276Martin SjölundSeparate compilation: Adding API call to get dependencies of the packages (transitive closure of imports is too general; causing hundreds of packages to be recompiled on small edits)
a3ac10e69OpenModelica Hudson[Janitor mode] Fix tabs
20b485a25Vitalij Ruge- added simplify rule - changed radau output
1fc297c36Lennart Ochel- add some spaces
5b3ada20aLennart Ochel- fix failtrace message for function statementOutputs
4b34f64bbAdeel Asghar- Handle getClassRestriction case when the class doesn't exist.
4fd5493a0OpenModelica Hudson[Janitor mode] Fix tabs
5827a36e0Vitalij Rugeadd some simplify rules
7367ae887Martin SjölundAdding script to test parallel generateCodeSeparate (seems to work fine, but needs dependency analysis)
e3eb234baLennart Ochel- collapse warnings
2179a3320Adeel AsgharAdd output to clearCommandLineOptions definition.
195a85d3aOpenModelica Hudson[Janitor mode] Fix tabs
287769dcbVitalij Ruge fixed r16506 | Thanks to Martin.
8c5ed0f50OpenModelica Hudson[Janitor mode] Fix tabs
5e57ef311Vitalij RugeAdded missing case in ExpressionSimplify (see #2268 idea of Martin)
b62572e05Per Östlund- Added clearCommandLineOptions API command.
445c5d146Volker Waurichfixed the generation of the ode taskgraph (for torn systems and complex equations)
cf7ee504dMartin SjölundFix compliance suite
13b5428c9Martin Sjölund#2136 - Fix FMU export (compile the XML-files into the binary)
44acf0220Lennart Ochel- remove hack that suppresses +d=execstat during initialization
fb5462dcfLennart Ochel- minor fixes to initialization - minor cleanup
26e093e71Willi Braun - bug fix for linearization(modelname with underscore instaed of dot) - bug fix added uniqueEqIndex for symbolic jacobian for *_info.xml
60f958051Lennart Ochel- fix #2263
b7e370436Willi Braun#2209 - added differentation rule for smooth() - don't generate events for smooth()
98624ff72Martin SjölundFix and bump the compliance suite
a96f4b952Martin Sjölund#2262 Handle change(sizezero)
99ff8d2a4Leonardo Laguna- Changing the scope of DAEDump.dumpInlineTypeStr - Using Print.saveAndClearBuf for function ValuesUtil.valString - Applying replacements on ASUB subindices
e72f24538Adeel Asghar- Allow setting the curve style & width.
4b721b4edMartin Sjölund- Fixed the parser (quoted identifiers are only allowed a restricted set of characters) - Fixed XML escaping of variable- and classnames
d64f82fb8Per Östlund- Updated translation of OMC.
d22f74195Per Östlund- Fixed bootstrapping. - Fixed indentation in DAEDumpTpl.
077d2d76fVolker Waurichgets the taskgraph for the ode-system
214be052aLennart Ochel- change warnings
f1864a11eLennart Ochel- add notification for suppressed warnings of the initialization
87ca44c84Lennart Ochel- remove unused modules
1c2966315Lennart Ochel- restore accidentally deleted unused code
f8fe0ffe9Lennart Ochel- remove unused code
b918ed910Lennart Ochel- meger removeBindExp and setBindExp as well as removeBindValue and setBindValue
cf9a88a9aLennart Ochel- remove unused code - improve warnings (+d=initialization)
17f1f14ebLennart Ochel- remove unused code
df165d1deAdrian Pop- handling of EnumToInteger directly in Static.mo (just there and in Builtin.mo).
a466cecb1OpenModelica Hudson[Janitor mode] Fix tabs
233182ad8Marcus WaltherIncluded a taskgraph-testsuite with a taskGraph compare script-method Added a Benchmark stub for the hpcom project to the runtime Custom attributes for graphml-nodes added Some changes at the HpcomTaskGraph-module
960b41118Lennart Ochel- fix #2204
a3e1a2a2bWilli Braun - fix typo
164b1a67bMartin SjölundSeparate compilation: Do not instantiate functions until necessary
88701d32bLennart Ochel- new debug flag: +d=initialization
707203ba5Lennart Ochel- revise initialization - fix output of missing initial conditions (+d=pedantic) - remove all "Ignore unused variable" messages (+d=pedantic) - clean up SimCodeUtil
8596b82f8Martin Sjölund- Fix separate compilation - Add separate compilation test to the testsuite so people do not break it again
0809ddbd6Martin Sjölund- Bump MSL - Fix ClassLoader (if we have directory Test, no Test/package.mo, and Test.mo in a package)
d68b3931bLennart Ochel- fix #2253
570aaeebbMartin Sjölund- Changes to how OPENMODELICAHOME is handled on Linux and OSX: Use OS-specific functions to find out the directory of omc - Build static libraries on OSX since macports does not like rpath (it thinks the executable is linked wrong, but there is no problem trying to execute it)
f28e719b7Martin SjölundEscape $ for linux rpath
2c8a33b8bMartin SjölundFix rpath on OSX
0fc45a4adMartin Sjölundmake qtclients now works when configured --without-paradiseo
47959b9d6Martin SjölundSimplify asin and acos of constant expressions
751d7e051Adrian Pop- do *NOT* add the instantiated class to the symboltable because we will run out of memory if we have a script in which we instantiate really big models one after another!
6dd71101fOpenModelica Hudson[Janitor mode] Fix tabs
dd3c9f1bfAdrian Pop- fix Windows build (ansi C). - small fix to CPP Makefile.omdev.mingw.
388b23c1fWilli Braun - attempt to fix gcc test-suite
d133bbfc8Adrian Pop- better handling of EnumToInteger hack.
9447e2d29Willi Braun - fix r16390
1609ed00eMartin SjölundFix some unsafe code using setjmp/longjmp
8d1b09a28Willi Braun - fixed bootstrap
8af38bc8fWilli Braun#1515 #2237 - fixed handling of Modelica asserts by using setjmp and longjmp - added three different layers for exceptions: SIMULATION,INTEGRATOR,NONLINEARSOLVER - integrator tries to handle asserts by reducing the step-size - default non-linear solver tries to handle asserts by vary iteration variables - added and modified related tests
9607ebd11Leonardo Laguna- Optimized VarTransform.mo (do only perform union every 7th addition.)
7e1188679Leonardo Laguna- Reverting my previous commit to fix the test
a133bca6fLeonardo Laguna- Optimized ExpressionSimplify.simplify - Optimized VarTransform.mo (do only perform union every 7th addition.) - made DAEDump.dumpInlineTypeStr public - Improved Expression.isConst (now also returns true for constant CALL expressions) - Improved Expression.containFunctioncall (now also checks ASUB) - Improved Values.valString, now stores and resets Print buffer using handle. - Added VarTransform.addReplacementLst
f9e615bbcLennart Ochel- remove more „Ignore unused variable“ messages (+d=pedantic) - typos
a7f7f488aVolker WaurichtaskGraph supports now all types of StrongComponents
329062c7cLennart Ochel- initialize pre values of continuous variables - remove annoying „Ignore unused variable“ messages (+d=pedantic)
204c31033Alachew Mengist- Fixed XML for when conditions,Initial equations,,
f53765194Martin SjölundTypo
1bd2e3788Martin SjölundFix OSX compilation
f199620faMahder Alemseged Gebremedhin+ fix bug #2217. Consider subscripts when taking type from crefs for handling of pre() in initialization.
fdd8b23e0Martin SjölundSome fixes for separate compilation - Make sure all package are marked encapsulated since otherwise it does not work - Moved generation of literals to the body instead of the header (they have to be there since we want to include headers from other files)
2db502c45Martin SjölundClean-up for bootstrapped compiler
243917e98Martin SjölundFix some unused code for separate compilation
380bd65dfLennart Ochel- fix output
e0f7e6793Lennart Ochel- minor changes to codegen
fc11a83b9Volker Waurichcreate taskgraph for every eqSystem in list, assign a proper graphml name
c923767ccAdeel Asghar- Fix bootstrapping.
2a518db31Per Östlund- Updated the swedish translation of OMC.
b842e9156Martin Sjölund#2212 Fixed the remaining debug-flags (removed execFiles as it was unused) Updated some unused compiler sources (usually not compiled by the boostrapping since they are unused)
200939571Per Östlund- Fix flag spelling, coundOperations => countOperations.
912f6bd1dVolker WaurichgetAdjacencyList of TaskGraph, added comments, more SCC types supported
fcd2f9febWilli Braun - added description text to Flags.relidx
095e56524Jens Frenkel- Description for flag "paramdlowdump"
a79cb5469Martin SjölundSupposed to be nogen, not noevalfunc. Lots of stuff breaks if we do not eval functions ;)
bdd32c81cMartin Sjölund#2212 Documented the patternm debug-flags. Renamed a few of them.
13e21040eMartin Sjölund#2244 simulate now puts the output log in a file $prefix.log to avoid conflicts
7ab260e55Martin SjölundRevert r16351; seems hudson did handle the old code... It was just not updated yet...
65fd6d319Martin SjölundMake compliance suite set system-out so hudson will show it (doesn't show error type or message)
1304809e8Willi Braun#2242 - bug fix. Added mising case for tuples in Expression.factorsWork
d3b84a700Per Östlund- Make configure detect lrelease. - Updated swedish translation of OMEdit.
28be30930Henning Kiel- add/update some german translations
2a65306a9Martin SjölundUpdated compliance suite to output error-messages (for hudson)
7be877628Lennart Ochel- change default value of –ils to 1 - remove option –iom=nelder_mead_ex2 (use –iom=nelder_mead_ex [–ils=1] instead)
e11c9c774Martin Sjölund#2238 Document linearize()
3e4628a0ePer Östlund- fileds => fields.
cca247506Martin Sjölund- Generate assertions for log/log10 (which are still ignored by the runtime...) - ComplianceSuite: More quiet - OMEdit: SVG default, use OS-like choice of image formats
99face82bAdrian Pop- attempt to fix Windows builds
852b23af1Martin SjölundFix some formatting of the svg (y-axis range, lines between points, etc)
1ba45719fMartin Sjölund#2240 - Fix invalid xml (escape &)
352e2a362Martin Sjölund- (Hopefully) added the total number of models to the coverage test since these change over time - Added simflags option to the new model testing scripts
18b080a37Martin Sjölund- Compile MSL external libraries directly from the MSL trunk - Compile oldtables directly into the C runtime as it was always tool-specific anyway
f9b67a536Volker WaurichTaskGraph handles Algorithms, improved warnings
cf4aa90a2Martin SjölundDon't comment stuff out
96594a658Martin SjölundAdded script to run the compliance suite (to be added to hudson?)
e31243571Martin Sjölund- Fix not caching modified result-files
bcaed16f4Volker WaurichTaskGraph can handle SingleWhenEquations, improved eqDesc
cbf92e8a1Martin SjölundFix revision added
7529114d4Martin Sjölund- Adding new API calls: classAnnotationExists and getBooleanClassAnnotation - Some translation fixes
4b281cdfePer Östlund- Updated swedish translation of omc. - Some fixes for command line flags.
41748393dPer ÖstlundFix for #2215: - Replaced parenthesize algorithm in Dump with the algorithm from ExpressionDump.
d7d2eac5aMartin SjölundFix FreeBSD compilation
0542229f2Per Östlund- Fix some clang warnings.
bb3182a9cMartin SjölundReverting stupid change :)
9a3bbfa54Martin SjölundIncreasing execution time limit for no good reason
8d17ac8d1Lennart Ochel- stop printing failing nonlinear systems after the first one
01e3a8410Lennart Ochel- improve maintainability of NLS code
16eb2ccf0Per Östlund- Fix previous fix.
849bfba06Per Östlund- Attempt to fix some tests.
e47014720Willi Braun - fixed bug in non-linear solver dump
d14ffc3ebPer Östlund- Fix bootstrapping.
8e965b851Leonardo Laguna- Fixing a bug in for-statements
b9420ab8fPer Östlund- Fixed punctuation of error messages.
b170eeefcMartin SjölundCheck for pthreads
579c691a4Lennart Ochel- KINLapackDense is unknown (windows only) - using KINDense instead
3d838291ePer Östlund- Updated translation file.
79db711bcLennart Ochel- see r16266
22eca6658OpenModelica Hudson[Janitor mode] Fix tabs
2066caaf8Vitalij Ruge- check for inputs
5eebfb63fVolker Waurichadd a node description for the task-graph graphml output
e9e81a33cLennart Ochel- Improved warnings for failing nonlinear systems during initialization. Now, there will be a message that shows the used start-values of the iteration variables.
4c17980daVitalij Ruge- dumps for radau/lobatto solvers
e40a19af2Lennart Ochel- revise some dumps (LOG_EVENTS, LOG_ZEROCROSSINGS)
58ac55d6fLennart Ochel- rename sample event to time event - revise some DEBUG dumps
0b0197367Vitalij Ruge- search linear solver for Kinsol
63508ec6fVitalij Ruge radau/lobatto: - switch linear solver for small systems - error handling
19d3fe75eOpenModelica Hudson[Janitor mode] Fix tabs
76d656a04Vitalij Ruge- fixed infinity loop in the radau/lobatto solvers - removed slack vars in the radau/lobatto solvers
77c66e466Martin SjölundMake USR1 signal work once again
6ca4ee288Adrian Pop- remove ";" to get ANSI C
786e54e39Willi Braun - fixed bug in nonlinear solver - deactived ThermoSysPro.ThermoSysPro.Examples.SimpleExamples.TestTank.mos, since it fails anyway
b05053c9bWilli Braun- reverted flag change from r16236, since some model stop working
288cd9a37Martin SjölundFix png generation?
a4c54f0cdLennart Ochel- improve warnings for failing linear/mixed/nonlinear systems
c26945da2Lennart Ochel- fix one more comment
f0decbcc3Lennart Ochel- fix some comments - change type signature for check_*_solutions [* is an element of {nonlinear,linear,mixed}]
30d6761fbPer Östlund- Fixed bootstrapping.
a297e3c2eOpenModelica Hudson[Janitor mode] Fix tabs
125f87031Marcus Walther- added HPC back-end - added node-description to GraphML
97fa8dc09Adeel Asghar- don't copy the casadi scripts.
f77ff34deAdeel Asghar- install the casadi scripts to build/share directory.
c4d80180aAdeel Asghar- Moved the model based optimization scripts to 3rdParty casadi.
a35c2d34dOpenModelica Hudson[Janitor mode] Set auto-props
57a9a7560Alachew Mengist- Python script for model based optimization done by Vitalij
43fdee14dMartin Sjölundm:#622 outerProduct, skew, and cross now only give Real outputs
a16a4e7ebMartin SjölundMove some expressions around when you do simplifications only if this improves the complexity of the expression
3f3ec020bMartin Sjölund#2197 - Free some memory during initialisation instead of increasing the size of the memory pool
67c8c8efcMartin SjölundFix warnings
410710075Martin SjölundFix for OSX? Add an empty file to the tables library to make the linker function
22031d851Martin SjölundAdding the files lochel forgot to add (they were part of my patch, but you need to svn add them, too)
a1f262665Lennart Ochel- fix #2210. Thanks to Martin.
78419e693Per Östlund- Oops, bad auto increase.
14067e65dLennart Ochel- dump a short comment above all equations (containing the modelica representation)
d7ab0c46aPer Östlund- Restored +modelicaOutput flag.
404e0658bPer Östlund- Added descriptions to some debug flags. - Removed "unused" debug flags. - Got rid of some compiler warnings in OMI.
6db5477a0Martin Sjölund- Use ModelicaFormatError in tables.c to avoid the need use the OpenModelica-specific runtime (only ModelicaUtilities.h)
9226f7c9bMartin SjölundBump MSL before my flight. Someone needs to baseline a few of the failing tests. I ran out of time to do so myself.
da9151014Martin SjölundComment debug-flags
2c891e798Willi Braun - Removed unsed flags and updated some.
a914ef73fOpenModelica Hudson[Janitor mode] Fix tabs
45d2e3476Pavol Privitzer- updated C# target template - implemented zero crosing hysteresis, - event triggering math functions, - system metadata class, - nominal attributes, - fixed as attribute, - NLS pre-allocation and nominal attributes initialization - when Initial conditions - other minor issues - report an error in function SimCodeUtil.cref2simvar() on failed lookup - (!!)fixed again a bug that I fixed in rev. 15482 (5th march 2013) the generated library directories in makefiles should have this order: /Resources/Library/mingw32, /Resources/Library/win32, /Resources/Library/ see more comment in rev. 15482 - added ModelicaStrings_length as known external function to ceval - nonlinearSolverHybrd.c ... a copy-paste typo fix - CodegenC.tpl - some code(style) refactorings - template functionXXX_systems() fix to handle also empty cases when compiling with an ANSI prudent compiler.
71e507128Martin SjölundDo not try to ceval constants since they might become different constants (unknown type dimension-0 arrays, etc). Should possibly apply for Value in general, storing its type so these errors don't occur in the future.
d0229bcf5Martin SjölundMake aspell happy.
b1d1b1307Martin SjölundVerify that external object constructors are called with parameter input in model context (and evaluate them as far as possible since otherwise we have problems)
b58a33469Per Östlund- Fixed flag indices.
9b94b7834Per Östlund- Removed some unused flags.
b815594ceAdrian Pop- attempt to fix Windows build.
09a163e50Martin SjölundYeah... Forgot debug thingy
5bc3eacedAdeel Asghar- updated the text annotations for the generate FMU blocks.
c10048c99Martin SjölundFix documentation generation script
2a7233f0cLennart Ochel- tiny comment for STATE_SET_DATA
d5a685792Martin SjölundFix make clean
167dce10eWilli Braun- fixed one more line in dynamic state selection
b776aecbdMartin Sjölund- Bump MSL - Build ModelicaExternalC (and the new tables) from the latest MSL sources + Note: m:#1143 - there is a bug for the tables in MSL so some tests will fail. I had success with some of them locally. - Patched MSL to avoid printing warnings for some unused inputs in Tables - Patched MSL to link against the correct library (ModelicaExternalC) instead of ModelicaStandardTables (this is the same as the beta branch, but trunk does not yet have this fix) - Changed some tests using tables to use MSL 3.1 since then we can test the old table implementation (which is different)
338fbe460Willi Braun- fixed memory leak in dynamic stateselection
f47473b86Martin SjölundChanging list(exportAsCode=true) to list(exportKind=...)
e84d301d0Martin SjölundAlso upload the links
1b92a0745Martin SjölundGenerateDoc now lists the file a broken link was found in
936f4470dLennart Ochel- remove unused modules
9e60c214aPer ÖstlundFix for #2192: - Made ComponentReference.expandSlice fail silently, since it's used in places where it's expected to fail. - Fixed code generation for variable subscripts.
25322d739Lennart Ochel- catch unsolved (linear, nonlinear, mixed) equations systems during initialization - this is just a workaround and shout be replaced by a proper handling for such unsolved systems - 3 more failing tests due to singular linear systems during initialization: - ./simulation/libraries/msl32/Modelica.Electrical.Spice3.Examples.Spice3BenchmarkFourBitBinaryAdder.NAND.mos - ./simulation/libraries/msl32/Modelica.Electrical.Spice3.Examples.Spice3BenchmarkFourBitBinaryAdder.ONEBIT.mos - ./simulation/libraries/msl32/Modelica.Electrical.Spice3.Examples.Spice3BenchmarkFourBitBinaryAdder.TWOBIT.mos
9c059814eAdeel Asghar#2194 - get all the components dimensions.
a72e0aa23Willi Braun - fixed HeatingNPN_OrGate by adding a simplification for smooth.
c4b9526c5Per Östlund- Fix previous commit.
77e26596bPer Östlund- Removed some unnecessary failtraces.
bd0cafd36Per Östlund- Fix bootstrapping.
c3d083fbbPer Östlund- Implemented expansion of asub slices in ExpressionSimplify.
382efa8dfMartin SjölundClose some tags
7d5927872Adrian Poppartial fix for bug: #2106 - a bit of a hack, more work is needed recordArray[i].recordComponent does not work yet, just recordArray[i] directly. - generate array operations on all records in Model_functions.h - models that now compile: Modelica.Media.Examples.RealGasAir.MoistAir* Modelica.Media.Examples.Water95.*
300e1e25bAdrian Pop- fix Windows compilation: define setenv for MinGW and MSVC
3edb355f6Mahder Alemseged Gebremedhin+ Parmodelica: Fix array copy functions. - Compile position independent on linux. - Disbale NVIDIA cache.
f42fe4387Adrian PopCompiler/FrontEnd/InstExtends.mo - handle SCode.DERIVED (for class extends X) - strip environment prefix from crefs and paths. Compiler/Template/AbsynDumpTpl.tpl - handle Absyn.PARTEVALFUNCTION Compiler/FrontEnd/F* - add first draft of graph for SCode. - not used yet testsuite/flattening/* - fix tests due to environment strip.
c63a08dd7Martin SjölundAdded check for empty arrays to the parser
34f87e3c5Martin SjölundBump MSL. Adrian will make Hudson happy.
7a9641986Willi Braun#2189 - fixed bug in constLinearSystem for states
97b481a12Adrian Pop- partial fix for bug #132 - added TestPackageInheritance.* tests - we don't check subtyping of redeclared elements yet.
c85b0b3d8Martin SjölundLibrary changed name
6cef107cbPer Östlund- Better error message for missing else in if-equations.
4be8414b1Lennart Ochel- fix timer statistics
bfa1eea55Per ÖstlundFix for #2177: - Fixed some issues with code generation for arrays with enumeration dimensions.
43d6be440Martin Sjölund- Revert r16045 (flag wasn't removed yet) - Bump libraries for coverage test
d307bf4d2Lennart Ochel- improve readability of aliasset-warning for several free start values
67b5175faMartin SjölundRemove scodeInstShortcut from the build script
9571a8a46Willi Braun#2178 - bug fixes for non-linear system. - make jacobian calculation continuous - added reset for non-contnuous solving case
b1cec8996Willi Braun - fix model termination, when a system can solved in the final step.
00a238a43Willi Braun - fixed hysteresis relations.
d5572887cMartin SjölundBetter formatting for profiling
22ecd6e43Martin SjölundChange the help text
9e44f9ce6Adrian Pop- QUITE SOME CHANGES. Do make clean! - fix old inst to work with Media and Fluid by default with no flags. - got rid of some files and some of the error messages - i will still keep +d=scodeInstShortcut for a while longer until I test more. - Modelica.Fluid.Examples.IncompressibleFluidNetwork.mos segfaults on Linux, works in Windows, Modelica.Fluid.Examples.HeatingSystem does not work anymore (NLS problems again) I guess due to parameters moving around. I will investigate more these issues in the next days.
9cf1f2c3bAdrian Pop- ansi C. for pleasing MSVC
ec3d00239Willi Braun- bug fixing non-linear solver (updated 2 fluid models as they began to work)
6274b01b4Martin SjölundPrint better error-message if things go wrong
12aeb1150Willi Braun- fixed FMI for 32-bit linux. - the binaries directory should called linux32 instead of linux-i686
e87431d6fWilli Braun - bug fix for nonlinear solver. Restore mode for further iterations.
e355280b5Per Östlund- Fixed code generation for enumeration subscripts.
27c95affbMartin SjölundSome spelling/grammar (real numbers is more precise and easy to understand)
a16e62b76Jens Frenkel- fix #2095 handle valid circular equalities
c94cd5878Martin SjölundAlso export png-files of the trend
3df253eaePer Östlund- Added +scalarizeBindings flag, to enable scalarization of array bindings.
94a355e2aMartin SjölundAdded spell checking of strings marked with gettext() (for the CODING_STYLE job)
56ff5f170Henning Kiel- fix call of modelica_real_to_modelica_string() in C runtime -> makes ModelicaTest.Blocks.Continuous_InitialOutput compile
7d2a529a9Willi Braun- fix for r15980
883d1bc22Leonardo Laguna- Adding more warnings to the uncertainties extraction
93b58b35dMartin SjölundRemoving warning about fixed parameter without start-value or binding equation since the warning is often wrong. The check should probably be made in the backend if it is needed.
d0211c184Adrian Pop- move Compiler/BackEnd/GraphML.mo to Compiler/Util/GraphML.mo and made it way way waaaay faster.
bd65b8bb5Adrian Pop- NEW RML or NEW OMDev is required for this and make clean!
4afb2af7cWilli Braun#2172 - bug fix for detecting decrete varibales in algorithm
02778d96fLennart Ochel- fix #2112
ffb8b2cb2Matthias Arzt- Compiler/Template/CodegenCpp.mo: - Add "giveConditions" function to C++ Target again. - Add a call to "saveAll()" within Event-Iteration this will make Modelica "pre()" Operator act more like discribed in Modelica Specification. - SimulationRuntime/cpp: - moved AlgLoopSolverFactory.h to the more public Include directory. - Bug fixes and updates too the FMU C++ Target.
0f970e758Per Östlund- Forgot some changed files in last commit.
05c95cb96Per Östlund- Fixed output of class annotations when +showAnnotations is used.
cba6967dfMartin Sjölund- Handle ceval of tuple subscripting - Changed the UriLookup to return the error-message instead of printing to stdout since it is also used in simulations (and you really do not want it every time step; especially if the code looks for different modelica://-links to recover from Dymola not implementing the full ModelicaServices functionality)
bc75df2a6Martin SjölundC-escape the expression printed in the sqrt()-assertion
ce40b4d3dMartin SjölundHandle relative file:// and local files, always returning an absolute path
894a0e07dMartin Sjölund- Use -Wl,-rpath=/path/to/LibraryDirectory (finds .so-files without LD_LIBRARY_PATH) - Do not look for "." in Library annotation - check if the file exists instead
6e28a87eaAdrian Pop- fix Windows builds, cast int to size_t.
da09856f9OpenModelica Hudson[Janitor mode] Fix tabs
2d1492238Martin Sjölundfix-tab now actually contains a tab and not 8 spaces...
652bf9a97Martin SjölundRevert r15962 (accidently replaced 8 spaces with 2 spaces; was supposed to be 1 tab to 2 spaces but text editors messed up the command) Contact me if you have problems merging your working copy
111e61493OpenModelica Hudson[Janitor mode] Fix tabs
817d54c80Martin SjölundAdd target fix-tab
dfa6c26e2Martin SjölundUse varargs for throwing assertions so we can produce better messages in the code generator
0bf0af6aaPer Östlund- Added better error message for variable range expressions in for-equations.
51201a078Martin SjölundAdded missing DAE.DIM_BOOLEAN (analogous to DIM_ENUM)
705fc3f63Martin SjölundFix ceval of false:true
d480f1613Martin SjölundOutput a nice trend overview
ce460a3e8Martin SjölundDo not look for sundials_idas -- it is not actually used
40e106d77OpenModelica Hudson[Janitor mode] Set auto-props
3c8e7cdd5Mahder Alemseged Gebremedhin+ Moved the main simulation loop to perform_simulation.c. Included in and compiled with the generated code later. + OpenMP has its own version omp_perform_simulation.c + Easier to maintain this way.
63220cf4bOpenModelica Hudson[Janitor mode] Set auto-props
1c5314ae7Martin SjölundChanging the autoprops from find to a script that can parse the svn config [auto-props] format
b08629a9fMartin Sjölund- sample with first sample before start-time of the simulation is now treated correctly
f6441b610Adrian Pop- removed tab.
32c80fc81Willi Braunbugfixes for FMI: - added *_info.xml and *_init.xml to resoursses - therefore added default simulation options to translateFMU in CevalScript.mo
1927fb66bAdrian Pop- fix ANSI C (variable declaration before any other statements) to make MSVC compiler happy
d8af539b0Per Östlund- Got rid of some clang warnings.
bc0dd06c9Martin Sjölund#1863 Removed simulation options noClean and storeInTemp since they do not work and there are no tests for them
a214c4810Vitalij Ruge- FIXED: lobatto6 - FIXED: allocate for lobatto/radau solver
149437afeVitalij Ruge- BUGFIX: initial guess, scaling and nonlinear solver stragegy are more stable for radau/lobatto solver.
6d99b6c86Martin SjölundAbstract syntax change. make clean comes highly recommended. - Class annotations are now stored as a list of annotations at the end of a class (like the Modelica3 grammar says except we allow multiple annotations). - This is a transition so we can create warnings or errors later on. - No major changes can be seen except when using OMEdit or API that lists the position of annotations
c47607eafJim NutaroRemove arrayCref from test for array in the adevs code generator. Replaced this with a messier, but seemingly more reliable, ifdef to avoid duplicate definition.
f20bb42f1Per Östlund- Fixed spelling mistake in swedish translation.
193aecc37Martin SjölundPreserve function comments and annotations for external functions
302ba78c4Mahder Alemseged Gebremedhin+ Preparing the run-time for multi-thread execution. + Moved performSimulation from simulation runtime to generated code. + Fixed omp undefined references. + Generate extra equation info. Just the crefs used in equation. To build graphs later. + Hope nothing fails.
c88e38a47Leonardo Laguna- Added flag to return correct cref types
b23c6b116Vitalij Ruge- BUGFIX: now initial guess and scaling are more stable for radau/lobatto solver.
9230092ecMartin SjölundFix to rebuild all svg-files when running the MSL coverage
aadfa5109Vitalij Ruge- BUGFIX: initial guess for radau/lobatto solver
ee966ce44Martin SjölundCopy-paste error (always asks for the MSL revision; not the actual library)
daef9b7f4Adrian PopFix bug: #2089 [https://trac.openmodelica.org/OpenModelica/ticket/2089] - do not die on getComponents(Modelica.Media.Examples.*) - modifications of extends have to be fixed (qualified) in the env of extends and local names should not be qualified! - some more tweaks in testsuite/openmodelica/bootstrapping/LinkMain.makefile.mingw - test bug fix with: testsuite/openmodelica/interactive-API/Modelica.Media.Examples.getComponents.mos
da9910532Martin SjölundFix the build script
9dd327edeMartin SjölundFix the bootstrapping target
669297230Martin SjölundPushed BuildModelTest.sh into trunk instead of my home directory - Modified BuildModelTest.sh to be more generic (easy to add new packages) - Updated the BuildModelRecursive.mos to look for exact revision of the tested library (only works if building with the experimental package collection)
1ab0e772aAdrian Pop- fixes to support ExternalMediaLibrary better. - fixes to SCode dependency to not remove package constants that appear in external function declaration some external functions do not have any annotation but they do have external arguments in external "C": Example: replaceable function getCriticalPressure output AbsolutePressure pc; external "C" pc = TwoPhaseMedium_getCriticalPressure_(mediumName, libraryName, substanceName); end getCriticalPressure;
cd36f902eMahder Alemseged Gebremedhin+ revert r15893.
37464d004Mahder Alemseged Gebremedhin+ Preparing the run-time for multi-thread execution. + Moved performSimulation from simulation runtime to generated code. + Fixed omp undefined references. + Generate extra equation info. Just the crefs used in equation. To build graphs later. + Hope nothing fails.
84aecc208Henning Kiel- fix message string (DELETE_AND_LOAD) to display the referenced filename
fc8553e8dMartin SjölundPretty code
2a3e488cbAdrian Pop- ANSI C an unnamed C compiler said :)
4d37fb2deMartin SjölundFix test for clang
8c02217cdAdrian Pop- get rid of spurious warning about protected elements (https://trac.modelica.org/Modelica/ticket/975) we currently don't know from where the modifier came.
7d2713cd3Martin Sjölund(OpenMP) Use the memory pool of the current thread
ab7eb560eAdrian Pop#2129 - handle the projection of actual arguments to formal arguments better in functions with unknown dimensions that depend on the input parameters - better message when we cannot evaluate a structural parameter - added AdvancedDimensions.mo test (derived from some AVM model).
1b66bde0cMartin SjölundAdding new makefile Makefile.libraries - Try make GITLIBRARIES=Yes to check out the new build system for libraries
b3b07e20cLeonardo Laguna- (recommit) Eliminating error message when the StaticScript.elabCallInteractive succeds
c68246f5eMartin SjölundNicer BuildModelRecursive script (easier to change the library we build; prints the name and version of that library)
18a7d9aaaJens Frenkel- remove unnecessary lines of code
012ec582aPer ÖstlundFix for #2159: - Sort connector components before connecting them, to make sure that their order doesn't matter.
75b813bf5Jens Frenkel- remove unnecessary line of code
7173e4f87Martin Sjölund#2150 pack/unpack external C integer array
e8f00e61fAdrian Pop- fixed some Media tests by adding +d=scodeInstShortcut and regenerating result files where MSL changed - correctly split non-const modifiers out of redeclare - fixed PropagateRedeclareMod1.mo (part of ParameterBug.mos) + as far as I can understand from the spec the modifier on the chain is discarded (only the original mod is kept, plus the one given from the top) but we should check this a bit more
2ab07ad30Martin SjölundProtect from stack overflow in partialInstClassIn and instDerivedClasses - Sadly, the error-messages are rolled back in most cases, but it is better than getting a stack overflow in OMEdit
9bc4a5192Martin SjölundAllow non-structural parameters to be used as conditions in if-equations
aefba3b61Martin Sjölund#2155 Allow declaring a record component constant even if the elements have bindings
12f659928Per Östlund- Reverted r15866, since it broke some testcases.
96efeb232Per ÖstlundFix for #2159: - Only consider components in modifiers when sorting elements during instantiation.
879c931d9Willi Braun#2136 - generate _info.xml file also for FMU
362202ea9Per Östlund- Handle arrays of records inside records correctly in DAEDump.
42a0f2fbfAdrian Pop- don't build the initial env all the time.
a98fd3a45Adrian Pop- fix System.realpath on Windozz/Mingwz, was broken since its inception.
ff80ffab1Martin Sjölund- Fix tests by only rolling back language version if a temporary was requested
3fdcb1633Per Östlund- Don't replace enum dimensions with integers when checking the binding type.
c362dd790Martin SjölundGenerateDoc.mos now creates documentation for all loaded packages
953886e68Martin SjölundUpdated BioChem to 1.0.1
05ca6e201Martin Sjölund- Do not increase the recursion depth for the binary operators or if-expressions (1+2+...+n is represented as an n-deep expression in omc)
cc521029fMartin SjölundFix the recursive build model test (recursion depth was calculated for each expression in reductions instead of the depth)
d5733f83eMartin Sjölund#2158 Add a maximum recursion depth for Ceval.ceval
0080a4c3eMartin SjölundGenerate UTF-8 meta tag since apache doesn't host as UTF-8 by default
41b71124bMartin SjölundRevert r15847 (breaks testsuite badly)
0946a1347Leonardo Laguna- Added an error rollback when calling elabCall. In interactive mode some functions are elaborated by StaticScript.elabCall but the error messages are kept.
e32e10a00Per Östlund- Handle more cases for prefixing inner/outer arrays.
a903b4406Adrian PopFix bug #2139 - better handling of if equations counting if false then eq; end if; - add test for it: testsuite/flattening/libraries/msl32/testquasi.mo testsuite/flattening/libraries/msl32/testquasi.mos
4503757bdMartin SjölundAlso look for symlinks in the parser
1807a2ca4Adrian Pop- include to f2c.h
412f060f0Adrian Pop- use the appropriate types everywhere in SimulationRuntime/c/ f2c defines subroutine as typedef /* Subroutine */ int (*S_fp)(...); so use that as the type of the functions sent in to the solvers. - enable -Wall in MinGW makefiles and get rid of most of the -Wall warnings.
cf765cbadMartin SjölundBuild some more documentation if the libraries are available
56caed583Martin SjölundChange the parser to allow 31/63-bit unsigned integers as version numbers, max 6 levels deep (previous limit was 7-bit integers, max 4 levels)
970617bdcPer Östlund- Fixed generation of asserts for constant/parameter arrays in connectors.
5c1efe82bPer Östlund- Preserve the comment for the flattened class in the flattened output. - Don't translate enumeration literals to integers when simplifying asubs.
d5c187a1dAdrian Pop- partial fix for bug #2002 handle constant modifiers in class redeclare modifiers - update some tests
1fc5d896dPer Östlund- Fixed connecting components of deleted arrays.
d6c55d851Martin SjölundGenerate correct documentation for UTF-8
3050399e6Martin SjölundEnable MixedTearing by default (as it used to be)
2272097e0Per Östlund- Fixed inner/outer prefixing of array elements.
b2cfcb7e5Martin SjölundMake nogen default
c5a10ec20Martin Sjölund#2146 Fix previous commit (NO_GEN was renamed to GEN, etc for clarity in the code...)
c8cf98121Martin Sjölund#2146 Clean up debug flags, -gen and nogen are now the same thing. Debug flags can have default on or off set.
743bd7b2cNiklas Worschechfix in cpp template for initialization of bool variables
1597b909eAdrian Pop- consider that functions containing external declarations are complete.
e83358291Adrian Pop- second attempt to fix bug #2113, let's see how many tests we break. - added an error message for when we have a structural parameter/constant with no binding. - handle negative integers in fill. - handle non-local constants in external function declarations. - some left-out minor edits. - expected output: testsuite/flattening/modelica/arrays/NonExpArray2.mo testsuite/flattening/libraries/msl31/fluid/Modelica.Fluid.Examples.HeatingSystem.mos - added a test model for #2113 and a test model for unknown dimension due to a parameter with no binding testsuite/flattening/modelica/arrays/TestArrayUnknown.mo testsuite/flattening/modelica/arrays/TestFill.mo
d102cff91Adrian Pop- attempt to fix bug #2113, let's see how many tests we break. - is not 100% sure that the arguments to fill should not be known at compile time.
182b8deb4Martin SjölundMove test UriLookup.mos. Allow non-existing files at the time of compilation for UriLookup.
3f807f127Martin SjölundCoding style
1d7a5d0fcMartin SjölundChanged rand() to tinymt64 (Mersenne Twister). This implementation provides deterministic "random" matching. The randomness is always the same :) - A few more tests are failing, but some started succeeding. Probably only need to update expected results for the changed ones.
18db2056dMartin SjölundgetVersion(X) now returns "" if the library uses a non-string annotation
9323539f1Martin SjölundOSX compilation
c5d0cdce8Martin Sjölund- OSX compilation. Works with the NewTables package
e36a58563Martin SjölundChange to using the build system in OpenSourceTables
1128d9940Martin Sjölund- Re-add stuff for OSX
fd3518f69Adrian Pop- revision 6155 of MSL has changed "Lapack" Library annotations to "lapack" so we need to handle it also in the function evaluation via the internal Lapack module. - this was the problem with the huge time taken by the tests: testsuite/simulation/libraries/msl32/Modelica.Fluid.Examples.In*.mos
667ed0643Martin SjölundUpdated configure script slightly
56df3ec55Martin SjölundAdding NewTables for testing
d087b7b01Adrian Pop- revision 6155 of MSL has changed "Lapack" Library annotations to "lapack" so we need to handle both cases.
84e7ec8f7Per ÖstlundFix for #2143: - Print out element-wise operators in flattened code when appropriate.
c24c0e15cMartin SjölundAdded code gen for array-array multiplication
1a7a9542eMartin SjölundDo not try to evaluate cyclical bindings when deducing function return dimensions
4ea02ffadMartin SjölundForgot one important dependency
c1a9649ebMartin SjölundSome hints to build the kernel on rpm-based linux
81f3d590bMartin SjölundMake a new source tarball
643a8c6bbMartin Sjölund- Java is needed to compile the parser
df07e2fd5Niklas Worschechfix in cpp template for pre- variables in initial equations
e344a6c10Henning Kiel- fix some typos in strings - fixed calculation of escaped string length - optimized some string operations
baeebde24Henning Kiel- fixed bug in differentiation of tanh(x) in function differentiateCallExp1Arg - added missing derivatives for sinh,cosh,tanh to function differentiateExpTime - made some optimizations to other derivatives (like: (1/a)*b = b/a)
a128a40b4Martin Sjölund- Patch MSL 2.2.2 for 32-bit platforms
d501b6a6aMartin Sjölund- Fix wrong prototype used in some libraries
11e27ea42Martin Sjölund- Move f2c.h includes to implementation files. Should not be part of the default headers.
cf01109b2Niklas Worschechfix for VS build in Core/System CMake file
478134fabNiklas Worschechremoved tabs
28bbccf4bNiklas Worschechfix in CMakefile for core.system installation of AlgLoopSolverFactory.h file
276750e88Niklas WorschechAdded IStepEvent extended cpp template for symbolic initialization system fix in event iteration
8d7fa0ef6Martin SjölundGet a new revision to make a nightly build that works
263c5b5f9Martin SjölundUpdate README
81dff2b19Martin SjölundAdding rule for d/dtime tan(x)
1c390b130Per Östlund- Removed the last remains of subscripted modifiers.
b23a898b2Per Östlund- Implemented array subscripting and slicing for assignments in Interactive. - Restructured Main.handleCommand so that it only prints a parser error on an actual parser error. - Fixed List.findMap* to do what it's supposed to do.
67bc1921dMartin Sjölund- Adding highly useful +simCodeTarget=None
ce16b0d19Jim NutaroFixed update_vars to reset the init flag in adevs event functions
10e9d84ccAdrian Pop- tabs are not welcome here :)
a1edc4558Pavol PrivitzerUpdate to C# template - splits generated code into more files when model is too big (for VS) - a workaround (a HACK) to not generate useless start values assignments in FunInitialEquations() (we do not hold start values of states in any array, they are set in the model instance itself; so we need this workaround)
6472b18f8Martin Sjölund#2129 - Handles some more things when dimension sizes are expressions. * One thing we now handle is matrix multiplication where dimensions are expressions. * We also make size(a,2) return the known size of size(a,2), which might be size(a,1). Might help with some matrix stuff in MSL that uses this idiom to tell the compiler the input is a square matrix.
d0c69bbb7Matthias ArztAdd FMU interface for c++ simulation target. "SimulationRuntime/cpp/Core/System/..." Add a static library libOMCppSystem_static for linking with c++ fmu simulation traget. "SimulationRuntime/cpp/Include/FMU/..." Add FMU interface for c++ simulation target. "Compiler/Template/CodegenCpp.tpl" c++ simulation target, add member funktions for accessing values of algebraic variables and parameters. "Compiler/Template/CodegenFMUCpp.tpl" changed to generate new FMU interface for c++ simulation target.
6dac3ad8cMatthias ArztEventHandling.cpp: * Changed the implementation of "EventHandling::change" and "EventHandling::changeDiscreteVar" to a version, which works better for int and double. This effects Modelica "change" operator. * "EventHandling::IterateEventQueue" changed the order of function calls, which has been sensless before.
df65c8d97Martin Sjölund- Added API to get scriptable uses annotation
ade9352e5Martin SjölundChanged MSL 2.2.1 with OM modifications to MSL 2.2.2 from the maintenance branch on modelica.org
c5d799911Per Östlund- Added source information to some error messages.
2912dda04Martin SjölundAdded function elabExpInExpression which is guaranteed to return a DAE.PROP and never PROP_TUPLE. - This is useful for operators and actually most expressions since there is a very limited set of ways tuple assignments/equations can exist in Modelica - transpose now uses this (new) - min/max was rewritten to use this instead of multiple cases to especially cover this case - Many more operators still need to be updated
e51264c1cMartin Sjölund- Made WSM-internal flags INTERNAL, so OMC helptext does not include it - Stopped the madness of using matchcontinue for code that doesn't need it and is called a lot
e30f00fe9Martin SjölundWorkaround in uriToFilename for stupid omc bug
48764ecf6Leonardo Laguna- Adding a flag to run the MathCore testsuite
d847a9807Per ÖstlundFixes for #2126: - Fixed simplification of cat. - Fixed elaboration of identity.
960948719Martin SjölundAutomatic refactoring
98feb3397Martin Sjölund- Automatic refactoring
d7188515cAdeel Asghar- Set fileName empty as default for Bitmap record.
49de14135Per ÖstlundFix for #2124: - Reverse the iterators in reductions so we evaluate them in the correct order.
e404c0be5Martin Sjölund- Fallback from OpenMP to serial code on clang (by #ifdef)
971d8b5bcAdeel AsgharUse 2.0 as default value for Grid to stay consist with Dymola models. Nothing is standardized in Modelica specification for the default Value of Grid.
736116dfaJens Frenkel- bugfix type of constant
324be10bcJens Frenkel- add new functions to BackendVariable.mo
f0929b5efMartin Sjölund#2121 Changed the parser to not accept subscripted modifiers (not allowed in the parser) Also updated Absyn to use a Path instead of ComponentRef for these
3ef968007Martin SjölundInstantiate functions fully even when not in function context (to get the full type; previously we returned an empty DAE which seemed weird)
fe922ff10Per Östlund- Removed checks for duplicate elements and type names that are the same as the component name from SCodeUtil.
70ad1c02eMartin Sjölund- Revert r15544 (too many models stopped working)
622024193Martin SjölundDon't allow max(scalar)
3b365f0acWilli Braunadded minpack disclaimer to COPYING file
06810843eWilli Braun#2114 - fix codegeneration for array for pre variables
71f4f9817Jens Frenkel- add some functions, needed for further improvements
540b235d1Martin Sjölund- Use only make omc-diff, not make difftool
06e283c3cMartin SjölundAttempt to fix trunk by using non-standard placement of annotation
5e3b1aeb5Martin SjölundAttempt to fix testsuite with minimal effort
141f748b3Martin SjölundRemove workaround that didn't work as planned
474658397Martin SjölundOnly make omc-diff if the testsuite directory exists
9eabd1a35Martin Sjölund- Make *ModelicaBuiltin.mo possible to parse using MLS 3.1+ (annotations only at end of classes or external decls)
ab858e1a9Lennart Ochel- use c comments for our c-runtime! - uncomment unused templates
35e78af7fMartin SjölundReturn empty string as the documentation says
89238321aMartin Sjölund- Don't segfault if we have 0 libraries
ac903dff1Martin SjölundImprove documentation a little
c56bcd755Martin Sjölund#2111 - Handle ASUB for change()
5a9b75549Adeel Asghar#2108 - Retain the array dimensions of the component. - Don't trigger unnecessary updateComponent calls.
8c22aa8b6Adrian Pop- partially revert r15474 (ComponentReference.mo) - i will put this change back in when i fix more things in the compiler
362901b8fWilli Braun#2104 - fixed discrete expression detection
c63606a62Martin SjölundDon't use dots in new identifiers in functions
0168fca1dMartin SjölundTrim trailing whitespace
7b2605018Willi Braun - removed tabs
d30d55361Willi Braun - fix function definition
48a0ffd89Pavol Privitzer- Fix to a possibly nasty error (I've got it) when platform specific external libraries are located in their platform specific folders (e.g., mingw32/ and win32/) The problem is when compiling simulation code with g++ on windows and a .lib version library is found before its .a version e.g., for MyExternal library, if there is Resources/Library/mingw32/libMyExternal.a and Resources/Library/win32/MyExternal.lib Previously, the Library paths generated in the makefile was in the opposite order, so that Resources/Library/win32/MyExternal.lib was picked first by g++ ((wtf??) the lib was compiled by MSVC 2010) In my case, the difference was that simulation failed in time = 0.5 because of NLS solution failed ... really weird - Now, the library paths are generated in the expected order (back again), from the most specific (stating with mingw32 on Windows) to the least specific (this "bug" was introduced only lately by changing the order with more sophisticated conditional cons-ing ...) - using extern inline in model_help.c to prevent MSVC making the functions static - an update to CodegenCSharp.tpl
bff05d690Alachew Mengist+ added XML code generation for - islinear - component reference for Optimica - builtin function sin, cos and exp + remove extra line spaces between templates
e470f8d23Per Östlund- Fixed bootstrapping.
c2dde9de2Peter Aronsson- leftover from r15458 (VarTransform bug fix). This might cause performance problems since before the code was broken but now it works, which means that replacement rules will take longer time to create. If this is a serious problem, the VarTransform must be redesigned so that inverse rules are not kept as a list that must be taken the union of when updating rules. Instead a HashTable or avltree could be used. An alternative could be to have two data structures for variable replacements, one that is always kept transitive and one that doesn't have the transitive property.
6d1d4c0b3Peter Aronsson- Fixed stack overflow in r15458 (but left out change in VarTransform since I suspect that might cause performance problems, checked in separately to be able to verify).
861702fa2Per ÖstlundFix for ticket #2102: - Fixed reduction iterator handling in CevalFunction.
73141bce7Per ÖstlundFix for ticket #2099: - Fixed simplification of array multiplication. - Changed behaviour of Expression.arrayContainZeroDimension to do what the name suggests it should do.
75f0f149aJim NutaroAdded array assignments to code generated for residuals
a1ed8b86fPer Östlund- Fixed clang warnings in the compiler runtime.
4a537862fMartin Sjölund- Link with -llapack even if we don't find sundials
a2156b9bcJens Frenkelrevert r15456, other tests fail because one function was changed to be tailrecursive
22c02d904Martin SjölundRevert r15458 (causes stack overflows)
71b2bc41cMartin Sjölund#2103 - Don't generate commented-out expressions in the C-code (/* Real */ will end the comment)
6222a6fe7Jens Frenkel- uncomment changes from r15456, to much flattening tests to update, see also #1754
0e559ca14Leonardo Laguna- Fixing minimal error on function
d2be51607Peter Aronsson- Fixed wrong type in component references (was considering subscripts, but it shouldn't) - Inst.mo Fixed bug when Ceval fails for functions. The binding equation was then removed from the dae, now it isn't. - Print_rml.c: Added initialization of buffer in saveAndClearBuf - HashTable6.mo used crefEqualNoStringCompare instead of crefEqual - VarTransform.mo: Fixed bug in inverse mapping for variable replacements. Before, inverse rules were broken, causing makeTransitive to not work properly.
14aead2bbJens Frenkel- improve Simplification of Add operations by using HashTable instead of comparing all Elements in the list by List seach
df214ded5Per Östlund- Added Error.addMultiSourceMessage for errors with multiple sources. - Big update of new new instantiation.
00698301bMahder Alemseged Gebremedhin+ Allow instantiation of connectors deriving from records. + Remove unnecessary error message.
c4d11c39bMartin Sjölund- When doing static scheduling, filter out empty systems - When creating the loop for equation systems to solve, if size=0 or 1, unroll the loop
be4809c09Jens Frenkel- add functions BackendVarTransform: replacementCurrentSize,replaceEquationsArr,dumpStatistics
d9f86c662Jens Frenkel- fix bug in copyVariables
2775756d9Jens Frenkel- fix algebraic loop in algorithm for undifferentiable subsets
506b66ff7Jens Frenkel- make Tarjans Algorithme O(N)
1427fde92Jens Frenkel- remove useles listReverse, see what happens ;)
106f53cfeAdeel Asghar- get the modifiers for the derived classes. - New API calls, + getDerivedClassModifierNames + getDerivedClassModifierValue
d7d70c9f4Adeel Asghar- Add the complete dialog record as defined in Modelica specs.
dae62f443Adeel Asghar- fixed bootstrapped windows compilation.
ab855c6d7Adeel Asghar- Use the one defined in CevalScript.
994fb6a23Vitalij Ruge- radau, lobatto code style
117822fcaLennart Ochel- reverting revisions r15404-r15407 because Hudson complains of about 50 tests
52b9aaac0Jens Frenkel- try r15398 again but keep the order of variables with an additional listReverse
eea352df4Lennart Ochel- remove Flags.SOLVE_INITIAL_SYSTEM (+d=solveinitialsystem) - simplify initialization to prepare prospective revisions
23676ddabLennart Ochel- revert r15398 to fix testsuite
954c26527Martin Sjölund- Output at most one generic lexer error
3f1e6e9cbJens Frenkel- fix bug in copyVariable - use varsSize to adjust the hashtables of Variables - bugfix infinit loop for undifferentiable subsets
355c86671Jens Frenkel- speed up List.flatten implementation, now the already flattened list is not traversed again and again - add List.uniqueIntNArr, basically the same as List.uniqueIntN but the user has to provide the flag array, this is faster because the flag array needs no to allocated each time the function is called
3df58351eMartin Sjölund#2096 - Added special lexer rules for &&, ||, !, telling the user the proper Modelica keyword to use
53a9614b4Adrian Pop- this should have been part of r15029. - add all the new components to the CheckSettingsResult record (already populated by CevalScript.mo)
f0f9339d4Martin SjölundFix OSX compilation for real
d63ee45efMartin Sjölund- OSX compilation
9bffeaac0Alachew Mengist- Add a function that checks weather the referenced class has the restriction \"Optimization\" or not
36a8fcb7aWilli Braun - added dependecy of hysteresis tolerance to relative tolerance
1a049d16aLennart Ochel- disable USE_DEBUG_OUTPUT
1d0c4942cLennart Ochel- get rid of compiler warnings for c-runtime - minor changes (typo, spaces, ...)
b2a52008eLennart Ochel- fix LOG_DEBUG
d5c9a8208Leonardo Laguna- Including new simple equations elimination for uncertainties
8f88f457bMartin SjölundWindows compilation
e4eb8d43aLennart Ochel- remove some unused imported modules
788e3efa0Martin Sjölund- Added a nice little signal handler that can gracefully recover from stack overflows, but causes other segmentation faults to make the executable die. - Only implemented for the main function of the bootstrapped compiler. We will need to use some more code to make omc recover from a failed CORBA command or model instantiation, etc.
e5b28d39fLennart Ochel- small fixes for for-loops
bf560e38eLennart Ochel- fix #2088
c9369efc0Jens Frenkel- flag for usage of countOperations
2f25bc627Martin Sjölund- Revert r15347 (breaks Linux compilation, breaks setModelicaPath() API) - If this functionality is needed; do the caching for both Linux and Windows. And make sure setModelicaPath updates the cached path instead of just set the env.var
8275f3352Henning Kiel- use cached WinLibPath (fixed)
9e04fde31Adeel Asghar- Don't make the winLibPath static. It will get garbage the next time since we free it in settings_rml.c:142.
e735ef48cWilli Braun - fixed mixedSystem solver by removing simulationInfo.found_solution as it was a source of strange bahavior.
08434fbdfHenning Kiel- add some "static" keywords - stop file compare when first difference occured - use cached WinLibPath
427f1cc0fMartin SjölundSome tail recursion
fea785397Martin Sjölund- Use static libraries on OSX
06f4d98eeDaniel HedbergFixed bugs in unparsing of enumeration literals: - Allow enumerations with only one enumerator/literal. - Do not print a space after last literal if no comment is available.
a81e91aa7Jens Frenkel- continue FMU for Cpp Runtime
2d1f1df13Martin SjölundAttempt to make runInteractiveSimulation.mos fail less frequently
187bb26eaMartin SjölundDon't generate the tag for the C target
5f32c3afdMartin SjölundMake eq_functionXX static
878156ebbLennart Ochel- fix impure testcase by adding the keyword impure - add Boolean isImpure to DAE.CALL_ATTR - protect impure functions from evaluating to constant values
e61aa419bMartin SjölundSwitch back to using static simulation runtime until the FMI code is fixed (probably required to get OSX to run FMUs better anyway)
1245e6330Martin SjölundFix bootstrapping
efacaf7e1Martin SjölundFixes for bootstrapping
d8e9db898Martin Sjölund- Fix the print buffers
a105abc76Vitalij Ruge- fixed lobatto solver
725c4478cPer Östlund- Added missing flag +scalarizeMinMax.
79013a381Martin Sjölund- Compile FMIL before C-runtime
fb9af63b0Peter Aronsson-Changed to using Print.saveAndClearBuf and Print.restoreBuf in function textString.
6a02fca04Per Östlund- Added flag +scalarizeMinMax to enable scalarization of min/max reductions.
0cab705d6Martin Sjölund- Add new API setCFlags(str)/getCFlags
4617f01d2Per Östlund- Make +orderConnections=false work as intended.
07b9c8159Martin Sjölund- Clean-up location of FMI runtime library - It's now a library linked separate from other (not part of Compiler/runtime, which includes System.mo; not what we need for FMI stand-alone simulations) - Still, FMI for model exchange segfaults in testsuite, but it seems to be a valid error since a NULL pointer is sent around. Couldn't use valgrind to find it because the FMU template doesn't accept changing CFLAGS using env.vars (illegal instructions if using -O2)... - Probably messed up some Makefiles. I moved things around a lot
41173e1a8Martin SjölundGenerate smaller executables by using dynamic libraries in Linux/OSX
1d82356adAdrian Pop- fix tests and a minor printout of the ClassInf.STATE
fb23d2768Adrian PopImplement task: #2084, CHANGES TO FrontEnd interfaces!
25fd4fbe8Adrian Pop- attempt to fix Windows simulations (always link with -llapack-mingw -ltmglib-mingw -lblas-mingw for runtime)
6e0d7e066Martin SjölundSilly Windows crap
348cd0b45Martin SjölundRemove dgesv_aux
c1aebceefWilli Braun - switched to lapack library instead using internal copy - fixed some compiling warning (clang)
e2bb3100aJens Frenkel- if BackendDAE.NO_INDEX_REDUCTION() is selected use NONE() for index reduction method
312843f1aJens Frenkel- remove old tearing Implementation - remove old index reduction algorithm - remove unused flags TEARING,RELAXATION,TEARING_AND_RELAXATION
0bcc037c5Jens Frenkel- minor improvements
e3dfb2667Jens Frenkel- update Tests - remove old functions
66a0ee40fJens Frenkel- fix for unevaluatable fixed attribute
b0fad4399Jens Frenkel- switch to new evaluate parameter implementation
aead67e35Jens Frenkel- fix warning
4df56ebe4Jens Frenkel- reimplement evaluation of parameters (final and annotation Evaluate) - not yet aktivated - do evaluation of final and annotation Evaluate parameters together - improve BackendEquation.listEquation, less time and memory - add function BackendVariable.setVarAt
005d569eeJim NutaroFixed state selection and initialization problem in the adevs backend
f4f3c0533Jens Frenkel- minor changes, parameter evaluation, SparsePattern
018d4cef3Martin Sjölund- At least kill the damn executable after the interactive simulation runs (I found no way to actually make the executable exit...)
5010c4d9cJens Frenkel- speed up generation of linear systems by improve getRhsSystem funktions, generate zero replacements only once - do not clear matching twice
240506105Lennart Ochel- minor (static and const) fixes
3492485b3Lennart Ochel- revise command line arguments for c-runtime (third part) - better warnings. If a flag is used twice, we will now report an error. Previously we considered only the first one without any notification. - consistence check. If new flags are added without a description, we get an error (during simulation – that should be improved to an error during compilation). - it is no longer possible to introduce flags that do not occur in the help-text - now all flags (with values) can be used with <-f=value> as well as <-f value> - new debug-output to verify used and interpreted command line options (runtime needs to be compiled with #define USE_DEBUG_OUTPUT)
d95eb3ae4Jens Frenkel- speedup inlining of bind exp from parameters with chaching
c520accd1Martin Sjölund- Improve error-messages when ModelicaBuiltin.mo cannot be found - Force correct OPENMODELICAHOME while building the bootstrapping header
dd3e18550Martin SjölundUse CLOCK_MONOTONIC_RAW only if the platform has it available
9fd19ab60Martin SjölundTypo
6e75b8bc7Martin Sjölund#2070 Create help-text for "topics" and made that the default from scripting/interactive
bad30f513Martin SjölundFix usage of override flags in runtime
e0dd88616Adrian Pop- move assignments *AFTER* all the variable definitions to please ANSI C (MSVC).
6a61661f3Jim NutaroState selection seems to work.
9260697feWilli Braun - slightly changes to the implicit radau codes - added initial testset for radau codes
a7a2b727eJim NutaroCorrected problem with array allocation.
09d960056Martin SjölundUse svg thumbnails for measureTime (fewer gnuplot warnings, smaller filesize)
3bc88c45eMartin SjölundWindows crap
64517eee6Martin Sjölund- Bump MSL revision - Fix measureTime count graphs
11dea7d5bMartin Sjölund- Don't cast char* to string*
5a4cf8d91Martin SjölundFix Windows/OSX
68b8bb8a2Martin Sjölund#2073 - Only output one for a block of statements
cf5b4325eVitalij Ruge- added some implicit solver -- used kinsol for nlp
a4250b32eMartin Sjölund- Converted options.cpp to C89 code, and made it more memory-efficient - Added option -clock=CPU (or -clock=RT) for the simulation executable (in case the user wants a different clock on Linux)
a307afc0aJim NutaroFixed (I think) definition of and indexing into array variables in the adevs backend.
c938b16d5Jens Frenkel- add array information to stateset.x variable
e6eec9185Martin SjölundBump a file to re-run everything in hudson and make sure the server works fine before I leave for home
057630d01Martin Sjölund#2072 - Started looking for undefined outputs of record components in functions - Patched MSL 3.2.1 in the places we had these (mostly Spice3, some Fluid) - Updated tests that use this (mosty ThermoSysPro and Modelica 3.1; I don't care enough to make them run without warning)
b9d03911aMartin Sjölund- Also remove the preExp
56c25a3acMartin SjölundDon't add unused vardecls to the code
6ce9cb3efMartin Sjölund- Fix LibraryDirectory and IncludeDirectory defaults
120ce43a5Pavol Privitzer- fix: simulation_options.c deleted non-existing options in FLAG_DETAILED_DESC and FLAG_TYPE that was already deleted previously from FLAG_NAME and FLAG_DESC very strangely: it was not discovered by GCC ... but MSVC (2012) - an extern "C" enclosing in simulation_options.h for C++ - simulation_options.c/.h added to CMakeLists.txt
e5ca95eb8Per Östlund- Fix syntax in generated modelica code for FMI co-simulation.
166629b84Per ÖstlundFix for #2056: - Use 32-bit integer arrays for external fortran functions. - Added test case LapackInverse, and removed incomplete and broken test case JoinThreeVectors2.
595530c5eMartin SjölundUse background color instead of foreground to get a better contrast for yellow
baab5bbe6Martin SjölundSome tail recursion
4e1a57adeMartin SjölundBring back the last part of r15233 (but fixed so it works)
7749cda85Martin SjölundBring back part of r15233
b235e0972Martin SjölundRevert r15233. I'll fix the problems later and recommit it.
cc2355d06Martin SjölundSome more tail recursion
f0863f79eMartin SjölundReduce size of stack for a few functions
1ad68676eMartin SjölundHuge performance increase to the new hashing (factor >500 for MetaModelica expressions)
b679880e8Martin SjölundTry to make bootstrapping work with less stack
eb1f9b8f8Martin SjölundFix bootstrapping/tail recursion
4e6010701Willi Braun - a small tweak to transposeSparsePattern
42949c270Lennart Ochel- fix uninitialized timers
336967376Willi Braun - rewritten of getSparsePattern - suppress execStat while instialization
0979c347cPer Östlund- Fix bootstrapping.
9e6971c07Martin SjölundProvide more information for BuildModelRecursive.mos
66f04cbdbMartin SjölundRespect package.order
227e4eef9Peter Aronsson-Implemented ComponentReference.hashComponentRef that performs hashing of component reference without printing the cref, instead it hashes each part individually and accumulates. -Implemented Expression.hashExp in the same fashion (TODO: hashing of metamodelica expressions). -Changed all affected hashtable modules to use these instead.
f833686c6Pavol Privitzermore fix bootstrapping (complete tplCallWithFailError2, too)
e59c8b84cMartin SjölundFix bootstrapping
17de475e9Pavol PrivitzerTrying to satisfy bootstraping tests
fce8c42d4Pavol Privitzer- simulation_input_xml.cpp / doOverride() function uses omc_ModelInput in a mutable way which saves one copy constructor/destructor call (a lot of reallocations, all of the loaded params/vars, so a lot of time for HumMod model) - a small correction of SimulationRuntime/c/CMakeLists.txt (paths in macros now works also for an out-of-trunk cmake call)
886aa22caPavol Privitzer- a fix of asprintf() for MSVC snprintf() replaced with vsnprintf()
2967495d7Pavol Privitzer- fix: template functionInitialResidual() a stronger test for no residual equations it could produce an empty array initialization when there is only an "initial algorithm" section and no "initial equation" in the model (so that residualEquations is not empty {}, but it has no SES_RESIDUAL(__)) - fix: a copy/paste typo error in template literalExpConst() to properly count lengths of the unescaped strings
c66101311Pavol PrivitzerSusan now reports a template call failure as an error (to prevent confusion from other reasons of failure, e.g., simulation fail) - fortunately, it was not observed in current templates when some day a call of a function from within a template will fail, the added error message will say it happened (I've tested it will)
e3fc4eb8cAdrian Pop- there is NO "c" target, just "C"!
fa49e9f2ePavol Privitzer- Susan does not generate unreachable match cases for map expressions (a clean-up)
28bec13a0Pavol Privitzer- Susan uses "match" instead "matchcontinue" in generated template code - this is for Hudson test (I've tested locally that terstsuite run the same) Be aware: template imported functions MUST NOT fail to render the running template (imported functions are those imported via SimCodeTV.mo), otherwise the whole template call fails
6c1952b8eMartin SjölundDie tabs, die!
4a2125b15Adrian Pop- more fixes to CMakeLists.txt (no more _empty.c) - ANSI C (variable declarations are at the top of the function!)
336bc4ca0Willi Braun - added really all equations to *_info.xml what fixes the reading of the *_info.xml
378a179f7Willi Braun - removed simulation options that aren't used anymore more
5b2ea7267Adrian Pop- fix CMakeLists.txt due to changes from cpp to c.
8c61f42b8Willi Braun#2065 - removed LOG_ENDJAC
a42a65a11Adrian Pop- fix builds
a82b4d53eWilli Braun - attempt to fix interactive test
bf38a0b66Martin Sjölund- Be able to link without sundials/kinsol
55ffa298eMartin Sjölund- Made result-file interface pure C instead of C++ - Matlab code still uses a C++ implementation but csv and plt now use only C-code
6c5da28fcHenning Kiel- fix some prototypes - add "static" keyword for local functions
90dce966dWilli Braun - attempt to fix interactive mode - basic functions like start, pause, change parameter should work now
73857c3a1Adeel Asghar- handle the time alias var in FMUs.
b82a4f37fMartin Sjölund- Added support for help("topic") - Added help-text for topic "simulation", which outputs the simulation helptext
c052b6422Willi Braun - attempt to fix windows build
c703f4924Willi Braun - deactivate DEBUG_OUTPUT again
df5913380Willi Braun - get rid of matrix.h
6f2238547Willi Braun - rewritten mixed system solver from makros to functions
b6afa9ddcJim NutaroFirst version of dynamic state selection in the adevs backend.
bfbc1e460Martin SjölundDon't include our f2c.h if we link against the one from the system
9e26ff369Per Östlund- Fix includes for interactive runtime in Linux.
ffb5c5d0cMartin Sjölund"StateSelect =" to "stateSelect ="
1275dc4d9Martin SjölundDAEDump.tpl: Write "stateSelect =" instead of "StateSelect ="
da94025d8Adrian Pop- attempt to fix the Windows build, include for cpp.
78fe1a07bWilli Braun - next try to fix windows build
0af1544d2Willi Braun - reactivated compilation of interactive mode - updated interactive mode to the current c runtime structure
b0e1ac500Willi Braun - fix tabs
2c85ce1d4Willi Braun - added fogotten files
df4c38d44Martin SjölundAdding API getAvailableLibraries() => {"Modelica","ModelicaServices",...}
05ddf1078Willi Braun - rewritten the linear solver interface - updated the broken tests
32a0350e7Adeel Asghar- Use System.escapedString instead of System.stringReplace
7e534e478Martin Sjölund#2068 - Tail recursion for SimCodeUtil.elaborateRecordDeclarationsForMetarecords
e19266350Martin Sjölund- Don't build or include libf2c library/headers if we have a system version installed - Update Linux build documentation - Update svn:ignore
9a82b7a1aAdeel Asghar- kill tabs.
1c3e090d0Adeel Asghar- Someone has changed the #modelicaLine file path formats and as a result the debugger won't work anymore. Who has time to check the svn logs.... I have fixed the convert lines script to handle the new file path format.
d84dfb362Adeel Asghar- return file path with forward slashes or double back slashes. Forward slashes are more better and they won't break the test suite.
754e83794Adrian Pop- added $cpuTime to the identifiers known by OpenModelica.
43b3aa706Lennart Ochel- change $cpu_time to $cpuTime because of Adrian's preferences ;-)
0adb67cd0Lennart Ochel- revert 15140
bcf52e28bLennart Ochel- $cpu_time -> '$cpu_time'
c6c681666Lennart Ochel- cleanup
b103a256aLennart Ochel- minor fixes to DSS
a16fea9faChristoph HögerAdd fedora's qwt path to default search
19170657dPer ÖstlundPartial fix for #2056: - Keep expression dimensions when doing implicit function instantiation. - Added some more hacks to figure out the types of functions by using the input arguments. - Removed a couple of hacks that's no longer needed. - Updated a couple of tests which now work better, and added testcase from #2056.
7a7b39e04Lennart Ochel- fix gcc-warnings for c-runtime - introduce new flag -ils (c-runtime)
a84ef0688Mahder Alemseged Gebremedhin+ revert 15132
3dc277f22Mahder Alemseged Gebremedhin+ Fix for operators access in classes which derive an operator record. - Remove unnecessarily printed message to failtrace.
986949e69Adrian Pop- realpath is not present in MinGW, use the one in omc_msvc.h/omc_msvc.c omc_msvc.* should maybe renamed to omc_win.* later.
cd8bbbdc0Lennart Ochel- update LOG_INIT for old initialization
f66831071Adrian PopUtil.mo - fix testsuite on Windows (replace \ with / so relative paths are the same)
119c3301cMartin SjölundEscape FILE_INFO strings
3d7226a3cLennart Ochel- update NLS dump - try to stop singular models - that must be revised because of bad design - include MathematicalAspects into test-script
20bf1fc9cPer ÖstlundFix for #2057: - Evaluate the dimension when constant evaluating self-referential size expressions, instead of hoping that it happens to be an integer.
ef42c8210Adeel Asghar- Don't close the simulation result files. Use the closeSimulationResultFile() if you want to really close it. - fixed the csv file reading. Don't open the file twice just pass the file handle.
18fe274d2Lennart Ochel- update help-text
22054286cLennart Ochel- add -cpu support for plt and csv files
3a653ac73Leonardo Laguna-Fixed problem when extracting uncertainties with approximated equations
3d0f54f04Jens Frenkel- bugfix stateselection, selection of always states with known derivatives - dumpSystemGraphML: add case to dump strong connected component graph to yED, we should make this availible via phase module configuration
85a99447aMartin SjölundFix for loadFileInteractiveQualified.mos
f252efb56Martin SjölundFix remaining tests
ded5128a6Martin Sjölund- Some fixes to the parser. Will baseline tests after this.
860606c37Adrian Pop- forgot this change
2e31cf7f1Adrian Pop- fix windows build
c019bb335Martin Sjölund- Fix some tests by making the path for the Absyn.INFO not be testsuite friendly (so we can use the absolute path, etc) - Some other tests might break because of this change (readonly/writeable?)
a1972933dAdrian PopPATH_MAX has never been spotted in Windows :)
f066c759dLennart Ochel- update LOG_NLS and LOG_NLS_JAC
34143973aLennart Ochel- update LOG_SOTI
ab8581856Lennart Ochel- fix for renaming of DEBUG_STREAM
909b3bafeLennart Ochel- fix help text for -lv - fix dumps for LOG_DSS, LOG_DSS_JAC - patch from #2058 for SimCodeDump.tpl
75cd767abMartin SjölundNote to self: Bootstrapping + changing parser at the same time is annoying
2ff29f38cMartin SjölundFix bootstrapping damnit
b41ccc5fbAdrian Pop- fix the broken builds by adding the missing define. change the define if you wanted something else.
38235d9ddMartin SjölundAlways use full pathnames for file info of parsed files
10cbbda77Peter Aronsson-Added Print.saveAndClearBuf that temporarily clears the buffer but keeps a handle to the content. This can be restored with a call to Print.restoreBuf. Useful when the print buffer is temporarily needed while already in use.
ecd9bc491Jens Frenkel- bugfix stateselection, use nonscalar indizes to get Equations
579cc2832Lennart Ochel- minor changes - rename DEBUG_STREAM -> ACTIVE_STREAM - fix illegal stream-disjunctions
b0d2b7f60Jens Frenkel- fix for asprintf on windows mingw and msvc
99fa25e46Martin SjölundAdded what should be a version of asprintf that works in visual studio
a89bed24cJens Frenkel- fix windows build, asprintf: These functions are GNU extensions, not in C or POSIX.
99434461aJens Frenkel- update CMAKE for target=msvc because of r15072
8967307eeLennart Ochel- new flag (-cpu)
3a174573fLennart Ochel- care about const
d4118b915Lennart Ochel- update LOG_STATS
9b7d8468dMartin Sjölund- Tiny update. It won't break anything. I promise. - Moved some of the debug information to reading the generated xml-file instead of compiling it into the C-code - TODO: Read the names of all systems, instead of only nonlinear. Populate the FILE_INFO, etc
ffaefb0a7Leonardo Laguna- Updating data reconciliation tests
ba5f6eb46Jim NutaroPartial support for mapping Modelica arrays to C arrays
36f36343dJim NutaroStart of work on emitting modelica arrays as C arrays.
8c1636deePer Östlund- Fix bootstrapping.
b3ef4e92cAdrian Pop- remove tabs.
cb7380056Martin SjölundSet OPENMODELICAHOME for bootstrapped builds
17296b20dPer Östlund- Added some basic sanity checking of type errors.
afcb08d1ePer ÖstlundFix for bug #2033: - Rewrote Static.promoteExp to be more efficient and not mess up the types. - Added simplification min/max(multi-dim array) => min/max(flat array).
75e083709Martin SjölundDon't touch the grammar file (causes re-compilation if filesystem has high resolution)
d25d07e95Jim NutaroRemoved $ from generated variable names.
b4c9658f1Leonardo Laguna-Removing uncessary print statements
b8408cfe9Martin SjölundFix RML sources
2a1dce8cfMartin Sjölund- Modify makefiles to be able to compile omc without RML installed (configure --without-rml; make bootstrap-from-tarball) - Pray the RML makefiles were not broken
a274303e1Martin SjölundFix for FMU
084bee926Martin SjölundChange header file from _fileNamePrefix.h to fileNamePrefix_model.h
e792cd33bAdam BergmarkPartial evaluation/application: Fix variable name generation and positioning of partially papplied arguments. Enables partial application of single functions for normal and recursive functions.
7023944f9Jens Frenkel- speed up Indexreduktion: use List.uniqueIntN instead of List.unique for Integer Lists
5623c28adMartin SjölundAllow compiling without sundials again
775f734e9Martin Sjölund- Re-enable patching MSL
6e8695fd7Martin SjölundBump MSL version
48d5ac22fAdrian Pop- fix bootstrapping.
9c6bc44edLeonardo Laguna- Updating to the uncertainties algorithm. Dumping of steps uses Print.mo
3fb976433Per ÖstlundFix for issue #2043: - Handle extends when checking external objects in NFSCodeDependency.
f8646aaf4Vitalij Ruge- added new solver method: implicit Runge-Kutta (radau IIA order 5 for stiff systems)
cf8a00f2cNiklas Worschechfix for nonlin solver selection in cpp template
9c513f250Niklas Worschechfix for typo in cmake file
7d45756c8Niklas WorschechAdded Kinsol solver selection
01bfc57e3Adrian Pop- bump version number to beta4+dev.
5b0bd37e2Adrian Pop- change version to beta4 - improve checkSettings() + give the compiler version + show PATH variable - set Windows paths right after OMC is started + do some checks too to see if we find the needed MinGW things.
070bd1933Lennart Ochel- fix flag -port
3f3c8a692Niklas WorschechAdded Kinsol solver to cpp runtime
358bcc2d4Willi Braun - fixed memory leak in simulation results compare function - updated some tests
b37de6f1dMartin SjölundMake +simCodeTarget=Dump handle constant literals
b1602ed4fHenning Kiel- make local functions static - move if-condition out of for-loop - fixed type
88a539362Adrian Pop- fix CMakeLists.txt as some things moved around.
971da46c5Adrian Pop- library order hell fixed.
11eb0d9a2Lennart Ochel- minor fixes
d96e7479cMartin SjölundAdded symbolic tracing of array equation scalarization
aa77ae231Martin SjölundMove ModelicaUtilities into the default runtime instead of ModelicaExternalC (it is defined in the spec, not in MSL, and should be usable in any external function)
bc253a313Martin SjölundWrite dump to the chosen filename instead of the modelname (they are usually the same, but not always)
e40e4b265Henning Kiel- replace calloc by malloc where allocated memory is directly initialized - fix types - optimize round-up division - make local functions "static" - more aggressive memory allocation for realloc()
2d8c0159aWilli Braun - added symbolic jacobian support to newton solver - use newton solver for linear tearing systems - added tests for newton solver - suppress warning of non-linear solver
04fbc9594Lennart Ochel- revise command line arguments for c-runtime (second part)
2212f2105Martin SjölundFix MeasureTime.mos?
1d105cb87Lennart Ochel- revise command line arguments for c-runtime (part one)
e2bb812ffMartin Sjölund- Added option +d=shortOutput - Used +d=shortOutput in OMNotebook initialization
b350e81caMartin SjölundRevert r15004 (did not update tests; and is a bad fix anyway)
fa9868d73Martin Sjölund- +simCodeTarget=Dump now runs xsltproc on the code automatically
e10f19696Christian SChubertincreased stack size to 32Mb for executables on windows
dcb2cbfbeAlachew Mengist- shortOutput optional argument for simulate API - to return short simulation results
6be1b9fc5Martin Sjölund#2027 - Make linspace evaluate dimensions of parameter input third argument
e861589cbLennart Ochel- new c-runtime flag –w shows all warnings during simulation (warnings are hidden by default) - new c-runtime lv-option LOG_EVENTS_V shows even more than LOG_EVENTS - shrink dump from LOG_EVENTS
344d8ab13Martin SjölundMade typof work better for reductions
7fa439db6Willi Braun - added newton solver as non-linear system solver
b3f99d08dWilli Braun - fixed dumps of non-linear solver - fixed dump description - let warnings outputs always - changed some INFO messages to DEBUG
c6bf3531eMartin Sjölund#2039 - We now sort all equations before putting them in the runtime and verify that they are all there * This makes it possible to print the correct equation name for nonlinear systems * Fixed segfault for nonlinear systems - Removed the commented-out "simulation" command since it should not have been added in the first place
f5c30462bLennart Ochel- fix some event-dumps - fix description-enum
43c59af57Per Östlund- Converted a major part of the new instantiation to the new environment and lookup. - Enabled the scodeinst tests which now works again.
9986a1431Lennart Ochel- filter internal variables correctly
adf8aec6aMartin SjölundExpected output
82f7a46f1Lennart Ochel- filter internal variables correctly
d33e3161cMartin Sjölund- Re-merge r14982
50e390029Martin Sjölund- Fix performance issue with SimulationResultsCmp.c (quadratic-time memory allocation)
199fb4936Martin SjölundRevert r14982 (breaks 4 tests; 3 of them badly, 1 of them spins forever)
e797d7502Lennart Ochel- remove helpVars from Backend (was used to handle when-conditions and sample-calls) - revise event-system (c-runtime) - unfortunately break other runtimes (please contact me, if you need more detailed information)
b87a47ca8Martin SjölundMark subsequent builds not-beta3
b693c92baMartin Sjölund- Mark this build Beta3 in config.h. Tag this revision as 1.9.0 beta3.
73e51fa3bMartin Sjölund- 1.9.0 ReleaseNotes. Don't tag this revision.
7a828e29cWilli Braun - fixed bug with time measurements at runtime
7f88cd860Adrian Pop- in Windows copy PySimulator to build\share\omc\scripts\PythonInterface for now maybe we can find a better place later.
307a3933cMartin Sjölund- Added MLS 3.2 ModelicaVFormatMessage/Error - Made the DIVISION() macro use testsuite-friendly filenames
b73c5d97fPer ÖstlundPartial fix for ticket #2027: - Fix type of array reduction.
fec07cbffLennart Ochel- fix c/cpp comment
0fbe185afLennart Ochel- disable debug-outputs by default to increase performance
c01b4f79dHenning Kiel- adjust some paths (testsuite/ related) - fix some typos and formattings
cae0afd88Mahder Alemseged Gebremedhin+ Generate default value bindings for protected components of a record.
a14fcdba4Martin SjölundPrint longer filenames when running the testsuite (no more "which package.mo should I look in?")
77f95132bMartin SjölundFix regex usage
78af88c06Martin SjölundFix regex output for empty patterns
8ab86c9a6Adrian Pop- utf8 no signature.
620771299Adrian Pop- try to fix cppruntime. - do not use hidden attribute as it doesn't seem to work with clang and gcc-4.4: #define BOOST_EXTENSION_IMPORT_DECL __attribute__((visibility("hidden")))
8312787b3Adrian Pop- fix utf-8 without signature: SimulationRuntime/cpp/* - fix missing separator testsuite/flattening/modelica/redeclare/Makefile
766fa8737Adrian Pop- geez, stdafx.h actually exists but with small letters. fix case.
6bca731f0Adrian Pop- guard StdAfx.h with _MSC_VER #if defined(_MSC_VER) #include "StdAfx.h" #endif
732e758b7Willi Braun - fixed symbolic jacobians for tearing systems - removed some debug output from jacobian calculation calls (performance)
14d79f122Martin SjölundRemove BOM
30a693719Niklas Worschechfixed include names in SystemDefaultImplementation
55b0b5fb1Niklas Worschechconverted cpp an h files in cpp runtime to utf8
b5626d9f6Niklas Worschechfixed SimulationRuntime/cpp/Makefile
0a7df0329Christian SChubertone star for msvc
9c30bb68fNiklas WorschechReorganized cpp runtime folders. Simplified solver interface methods. Removed unused functions. Renamed interfaces
92b95b114Martin Sjölund- Keep using smart, fast code for GCC/Clang
2926298b0Christian SChubertupdated CMakeLists.txt to use regex.c/h for msvc
22dc3961aMartin Sjölund- Move regex() to utility.c - Better allocators (pass mk_scon or init_modelica_string to regex) - Never fail (pass 0 match and the error-message on failure; let the user handle it) - Removed #ifdef for regex (fix cmakefiles instead to get regex working)
f79148146Per Östlund- Disabled check for replaceable baseclasses for now, since it doesn't work correctly.
16f9fb768Christian SChubertCompiler/runtime: inserted changes so that msvc can compile it
68218f6e7Mahder Alemseged Gebremedhin+ Small fix for uncertainties attributes. Expect fully-qualified idents.
7aed191f4Martin SjölundDon't use ModelicaExternalC - we can use alloc_modelica_string directly instead
33c0f0d41Martin Sjölund- Fix simulation runtime handling of regex()
708ea5747Mahder Alemseged Gebremedhin+ Handle protected elements too when evaluating records.
49243825bPer Östlund- Add parentheses around subscripted expressions in ExpressionDump when needed.
179b3e802Jens Frenkel- comment out debug output
4d47da8a6Jens Frenkel- bugfix for use assigments from SingularSystemCheck
021b098feMartin Sjölund- Tons of API functions updated and/or added (regularFileExist uses ModelicaInternal now, etc) - Made it possible to easily change the error-messages to print more detailed file locations in the future (will be added today or tomorrow; will need to update a lot of tests) - Modified uriToFileName (it now uses the scripting environment and builtin functions that also work at runtime). The reason it works is that we can read the paths of each library at compile-time and use that information to resolve the URI at runtime. - ModelicaServices now uses uriToFileName to resolve URIs - More ModelicaExternalC functions have a builtin compiler implementation now - Assigning to arrays with unknown dimensions is now a little more stable at runtime - runtest.pl now knows of the directive partest-link: (see UriLookup.mos for an example)
0f80740e1Jens Frenkel- looks like some algorithms do not take care on already assigned elements
aa07511abJens Frenkeltabs
799cb8dc0Federico BergeroUpdating the QSS template and backend
daabcacc6Federico BergeroFixing some errors in the QSS template
5604dad8eLennart Ochel- minor speed up for models without when-clauses - expected output
67d6a898eJens Frenkel- add again
4d1de2cecJens Frenkel- use matching from singular system check for main matching - do not merge variable attributes of unreplacable variables
6d4270356Jens Frenkel- run tearing behind encapsulateWhenConditions, otherwise the torn systems are lost because matching information is thrown away
3375f15b2Jim NutaroAdded extra argument to sample function
2cc65e17cPavol PrivitzerUpdated C# template to the no-helpVars changes - fix: "inline" keyword macroizing is forbidden in C++ from VS 2012, see omc_inline.h (hope it'll work with VS2010) - fix: copy/paste errors when checking the results of map.find() in simulation_result_mat.cpp - fix: C++ string emptiness should be tested via size() (an error when run with the debug version of STL)
05295c9e8Martin SjölundAdd JS diff tool to the simcode dump
d7ec12fd5Jens Frenkel- add flag to run OnRelaxation
90674b392Per ÖstlundMore work on new environment and lookup: - Copied some parts of NFInstTypes (those that depended on NFSCodeEnv) to NFInstTypesOld, for use by the shortcut. - Copied the few functions from NFSCodeInst used by the shortcut into NFSCodeAnalyseRedeclare, and removed NFSCodeInst. - Added a couple of new packages, NFInst and NFMod, and changed CevalScript.runFrontEndWork to use NFInst instead of NFSCodeInst. - Disabled most of the scodeinst tests for now, will enable as I fix the new new instantiation. - Added some utility functions to List and SCode.
fbfafe0aeMartin Sjölund- Update tracing of symbolic operations for usability/readability
f5c9d7517Christian SChubertfmu: removed forcing of numerical initialization
894e1bcb9Lennart Ochel- move encapsulateWhenCodnitions to post opt. modules
1cc84c889Christian SChubertfmu: bugfix msvc target
c7e798157Jens Frenkel- remove special handling of $when, bassed on disscussion with Lennart encapsulateWhenConditions will be moved behind removeSimpleEquations in POST_OPT_MODULES
a81605a57Lennart Ochel- start using sample-lookup for codegen - remove unused function SimCodeUtil.failUnlessResidual
f4fef6355Jens Frenkel- BackendDAEOptimize.getConditionList1: report an error message - minor changes to statesorting - do not prever internal variables - add only used prevariables from not discrete variables to initial system
5253abac0Lennart Ochel- continue removing helpVars - fix $PRE.$whenConditionXY to pre($whenConditionXY)
8e12eda6bLennart Ochel- continue removing helpVars (from when-conditions) - try to group some functions - remove unused functions from SimCodeUtil.mo - generateHelpVarsInArrayCondition - selectContinuousEquations - getExpCref - isPartOfMixedSystem - getZcMixedSystem - generateEquationOrder - isNotBuiltinCall - appendNonpresentPaths
f079c9b8dPer Östlund- Initial commit of new environment and lookup.
897d61497Jens Frenkel- do not replace lhs of array assign statement - move unreplace constant variables to known vars
c4238882aLennart Ochel- start to rewrite handling of sample-calls
0007cdbe9Jens Frenkel- expand cref with range subscripts, this are intruduced when replace for iterators with the range expression.
bf9906688Jens Frenkel- export fmu generated with +target=msvc
3b3c2df89Christian SChubertfmu: initialization crashed because nlsMethod was set to NS_NONE. Now NS_HYBRID is used as default
eeaef3340Christian SChubertfmu: added missing include
b1b55919bJens Frenkel- bugfix traverseExpSubs, use changed list if references not equal
692818a69Martin SjölundUpdate documentation
abd81e0c0Jens Frenkel- report if variable was not found for result compare
88ed7fec2Lennart Ochel- remove some unused functions - fix sample arguments for BackendQSS
ed7373601Jens Frenkel- bugfix state selection
1097784d5Martin Sjölund- Create target to build 3.2.1 version of ModelicaServices modelica3d
dd96143d9Martin Sjölund- Make pre(matrix) have the correct type
ef0baad76Jens Frenkel- bugfix state selection
8140622adJim NutaroFixed name of PRE variables
72d9e536eJens Frenkel- bugfix for r14861
9c2232b48Jens Frenkel- happens if you try to solve more than one issue in the same time, - No Idea why it does not work, maybe Lennart knows why
de1f6a846Jens Frenkel- do not intruduce extra derivative variables while do index reduction - add information about derivative name to STATE - replace state alias variables - improve singular system check, use absoulte incidence matrix for check and not the one with extra information for states
72beca421Niklas Worschechadapted util/numeric include paths
650e9fbabVitalij Ruge- generate objective function in C for optimization
64fb040a3Mahder Alemseged Gebremedhin+ Record constructors: get default values from the original record declaration. Not from an instance (possibly modified) of a record.
45143ca28Jens Frenkel- add missing Types to statementOutputs
8edd0b123Jens Frenkel- add Types for all DAE.Statement to ppStmtStr
54c6d6854Mahder Alemseged Gebremedhin+ reverting changes from r14841
22b76c917Mahder Alemseged Gebremedhin+ Record constructors: get default values from the original record declaration. Not from a [modified] instance of the record.
c467b5dbfMahder Alemseged Gebremedhin- cleanup record construction. - see what fails
4a1ad7dd7Lennart Ochel- fix bug in preOptModule encapsulateWhenConditions - fix accidentally generated strong components
8391d741dLennart Ochel- fix bugs in preOptModule encapsulateWhenConditions - consider removed equations - fix handling of pre-statements
2c2db02a4Jens Frenkel- keep branche order for if equations
965cf4fadLennart Ochel- continue removing helpVars (now from when algorithm statements) - fix when-algorithms for numeric initialization - fix bug in preOptModule encapsulateWhenConditions for when/elsewhen algorithm statements
76435ebcdNiklas Worschechadapted cpp template on removed help vars
26d4b007fJens Frenkel- fix for if equations with internal as algorithm handelt equations - add Test IfEquation6 - Change Error for initial changing pivoting to warning
c4aa195d9Christian SChubertchanged makefile for msvc target: Added missing libraries given through annotations
3fd5cf624Lennart Ochel- remove internal vars from result-file
2381b611fMartin Sjölund- Added ParallelPRV test to the testsuite
0228571aeWilli Braun#2021 - removed second call of symbolic initialization. - fixes #2021, but break two other tests, which will be fixed, when help-vars for algorithm are finally removed.
6c9343ac2Jens Frenkel- fix parseCompilerSources
f2496676bMartin SjölundLoad-balance algebraics
0f7fc29e6Martin SjölundMade algebraic continous functions possible to run in parallel
3b3f5ce99Jens Frenkel- fix parseCompilerSources
4eb42a659Jens Frenkel- remove tabs
d8bf3844dWilli Braun - bug fix for BackenDAEutil.analyzeJacobian
da969ffc5Jens Frenkel- clean up in Tearing.mo
1e77d8bceJens Frenkel- move tearing to Tearing.mo, add new tearing methods, not yet finished
9e053581cPer ÖstlundFix for issue #2024: - Fixed cref expansion for qualified crefs with subscripts.
50df2999fMartin Sjölund- Make sure empty partitioned independent systems do not count as systems (filter them out)
ced7072d6Jens Frenkel- check systems with constant jacobian if jacobian has full rang (is singular)
1936643dfLennart Ochel- continue removing helpVars
05b4ea0deVitalij Ruge- forgote some outliers
4a5bfe4b9Vitalij Ruge- corrected and add math rules - Code Style
4babe3462Martin Sjölund- Make gnuplot output more robust
813a6e53aJens Frenkel- workaround for pivoting, report no error message if the first pivoting fails because of singulare jacobian, the default selection is used in this cases
73ccb09c5Lennart Ochel- continue removing helpVars from backend
4868c7355Martin Sjölund- Moved around some realtime timer indices (keep them together so we don't use the same index at the same place by accident) - Made the simulate() command faster, by using any qualified classname as it is, without looking in the symboltable - Enabled a few more tests
0dbb77330Lennart Ochel- continue removing helpVars from c-runtime
65df476d3Lennart Ochel- continue removing helpVars - when-coditions are checked without using helpVars anymore (c runtime) - testsuite/simulation/modelica/initialization/gaspropreties.mos fails, because updateDiscreteSystem is called before the symbolic initialization is done. This is related to some kind of annoying workaround and will hopefully removed soon.
b284623f7Mahder Alemseged Gebremedhin+ Set constants without bindings in records as input vars to the record constructor. + See which tests fail.
fa6c35f06Martin Sjölund- Rename keyword overload to $overload
4cd0a254eMahder Alemseged Gebremedhin+ revert changes from r14791.
17af5abddMahder Alemseged Gebremedhin+ Just to see if anything fails
37a68b9aaMartin SjölundFix bootstrapping
94bea6f79Martin Sjölund- Merge all annotations into one for external definitions (so we never miss one, or use the wrong one)
4c3f34d7eWilli Braun - fixed some tests by run symbolic initialization as a discrete step
736bf965cLennart Ochel- add unique indices to sample calls - this will help to replace the annoying helpVars - hopefully soon - equal sample-calls are getting the same index
d43df4ddaMartin Sjölund- Make the filename prefix of the simulate commands be the actual class if using reflections
7baa05102Martin Sjölund- Updated test-script and results (only use the error module, not printf) - Made BranchingDynamicPipes a lot smaller (suppress the output)
e8b019e11Mahder Alemseged Gebremedhin+ Type functions before typing classes.
12f58e4d9Martin Sjölund- Adding the new model-testing script
3d4a8da7bMahder Alemseged Gebremedhin+ Instantiation and typing of record constructors. + Small fix for call vectorization. + Implemented List.extractOnTrue.
9b8b46378Martin Sjölund- Changed translateModel to return a Boolean instead of text that is hard to parse - Changed compareSimulationResults to return an array of strings instead of sometimes a string and sometimes a list of strings
58601ef48Willi Braun- fixed stepSize bug in simulate builtin-call
acad1a82fLennart Ochel- upps
553f290f6Lennart Ochel- new preOptModule: encapsulateWhenConditions - this module encapsulates each when-condition in a boolean-variable - debug-dump with: +d=dumpEncapsulateWhenConditions
a5488d9a8Lennart Ochel- fix delay within symbolic initialization
268428d78Bill Janssenfixed bad close tags; change fun:Statments to fun:Statements
1426ac9adJens Frenkel- remove path from "Get Var " error message - incidenceRowExp1 matchcontinue -> match - add uode index reduction method, this is the underlying ODE without any constrained stapilization or projection techniques - add print message to unneccesary case in traversingincidenceRowExpSolvableFinder
6c81ce444Jens Frenkel- add state derivative var to knvars of jacobian state set
974a106b4Martin SjölundImprove errors when BackendDAECreate fails
8181f1fc7Alachew Mengist- removing unnecessary string name alachew
c17e202a6Martin SjölundMake -help work again
84e495e85Lennart Ochel- provide some more information if kinsol failes
354f2703eAlachew Mengist-API to translate a Modelica model for XML export from GUI
408935121Jens Frenkel- bugfix inlinesolve and nonlinear system, init also the nonlinear systems for inline solver - bugfix/workaround for nonlinear system and inline solver, set the nonlinear index also in odeequations - try to get fmu with state selection working -> no success - free stateselection data
49130652aJens Frenkel- SIM_PROF_EQ_ is a false friend, we have to do more stuff to get the nonlinear index also daeeqnslist
565ee5ef6Jens Frenkel- bugfix inline solver
034672330Jens Frenkel- bugfix nonlinear system - expected results - move pivoting before initialization, check after initilization if pivoting change and report error message
34eb99ca1Jens Frenkel- use Integer for Enumeration types in modeldiscription.xml instead of Real as type, this fixes the "Warning: Assuming fixed start value for .. " warnings - switch of debug output in IndexReduction - Update fmi/ModelExchange tests
df64af625Martin Sjölund- Read csv-file using C API instead of C++
adc44b09eJens Frenkel- bugfix for model fmi/ModelExchange, inital system was not solvable now it is
796c1feb4Martin Sjölund- Cleanup
9c7855211Martin Sjölund- Bump MSL version - Fix modelica:// for mo-files
05084741bMartin Sjölund- Force evaluation of fixed=...
12d6f2fefAdrian Pop- fix bug "Memory performance issue in 1.9.0 beta 2" reported by MathCore. + use internal RML allocation for Print.getString and Print.getErrorString + do not use strdup in Print_omc.cpp for Print.getString and Print.getErrorString
73a3f4f68Lennart Ochel- fix #2011 (sample breaks c-code)
24366f55dLeonardo Laguna- Changing the scope of functions used by MathCore modules.
1bcaac790Martin Sjölund- Bump MSL version - Fix MSL coverage test
dfa25bb2aMartin Sjölund- Fix time column for the SimCode phase
2de71a548Jens Frenkel- less output in case of unsolvable linear system
c807ab41dJens Frenkel- workaround for initialsystem to handle dynamic pivot better ToDo: reimplement initialization of simulation runtime for symbolic initial system
10dc7c39aJens Frenkel- add missing return statement - use minimal norm in case of 0/0
20e4e7a3fJens Frenkel- add error message for division by zero to initial equations - use c comments - better error message vor pivot.c
9f58e5deeMartin Sjölund- Bump MSL version Constrain Universal and Revolute now seem to fail
6581f59b2Jens Frenkel- bugfix dynamic state selection, start values for STATESET.A
d39091a99Jens Frenkel- _event_div_integer: check if value2 is zero before call ldiv - trunc for msvc
2ba0b384bJens Frenkel- bugfix dynamic state selection
366d77fe5Martin Sjölund- Increase buildModel time limit
c444a960fMartin Sjölund#1957 - Fixes for Elementar.Surfaces
968cbdb68Martin Sjölund#1957 - Handle Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.jet
5bb1ebbdcJens Frenkel- bugfix dynamic state selection
f49a670abJens Frenkel- bugfix dynamic state selection
53967ecf8Jens Frenkel- bugfix dynamic state selection
64e1d4636Jens Frenkel- switch to new state selection method, combines and improves the last two versions
2366ab0deJens Frenkel- report warning if solving of liniear system failed
a87054916Adrian Pop- use the proper server name: openmodelica.org instead of the old one: openmodelica.ida.liu.se
3fbb6a7f6Martin Sjölund- Bump MSL version
f4b28f262Jens Frenkel- fix bug from last commit
fc96530caJens Frenkel- improved state selection method, not yet aktivated
fecb58bf2Jens Frenkel- check if protected variables have record or array type, thous are not supported by VarTransform
dc09a612eJens Frenkel- switch of case for a^b = f(..) -> a = (if pre(a)==0 then 1 else sign(pre(a)))*(f(...)^(1/b)), because not all have variables get memory for pre in code generation
10f5f2517Jens Frenkel- remove unused parameters from BackendDAETransform.tarjanAlgorithm
5003b976fJens Frenkel- add information to store how often a state are differentiated - bugfix BackendVariable.hasContinousVar
b011ca9e7Jens Frenkel- work not as expected, switch back to old one
0601faa78Jens Frenkel- remove debug print
6f010a188Jens Frenkel- improve indicenceMatrix::SOLVABLE, if a function is inlineable check the inlined function - improve index reduction, differentiat less equations by checking the differentiated equation for needed derivatives - improve tarjans algorithm to handle also underconstrained system with full matching for equations
a76bdc8bcMartin Sjölund- Bump MSL version - Handle "import .A.B.C;" => "import A.B.C;" in Absyn->SCode
b1b36cfddMartin Sjölund- Increase simulation time limit to account for EngineV6 taking roughly 1 minute to simulate
bf017ba13Jens Frenkel- bugfix for generate dynamic state selection jacobians
0f47e0fbcJens Frenkelif absdouble(time-reftime) > reltol*reftime then report an warning
f85d43ba0Jens Frenkel- bugfix analys strong components, use the same function to check if discrete var is in the block also for splitMixedEquations
a3fa638fcMartin Sjölund- Fix compilation
efa6fae1cMartin Sjölund- Fix compilation
4a8cd21c4Jens Frenkel- bugfxi for avoid strange rml bug
2a95c5bd4Jens Frenkel- add Config Flag MAXTRAVERSALS, used to set the maximum number of traversals when looking for simple equations in the acausal System - delete Flag DYNAMIC_PIVOT - fix tabs - fix compilation (Initialization.mo) - expected output
d9a5dc6c8Martin Sjölund- Fix uriToFilename API
5f09b717eJens Frenkel- avoid strange rml bug
e752d49a9Lennart Ochel#2008
af4b13555Lennart Ochel- upps (fix for multiple definitions)
8453f3295Jens Frenkel- search simple replacements up to MAXTRAVERSALS - add coments, move all public parts upwarts and protected downwarts
5955e8748Martin Sjölund- Fix testsuite and new format of failure to open reference files
9628cc124Vitalij Ruge- Manipulation of the Runge Kutta equations for split StrongComponents
f20ce379dJens Frenkel- improve dynamic state selection, use both strategies, if the first fails try the second - get rid of the wanrings when build bootstrapped compiler - add some comments
f3e8ee3d5Martin Sjölund- Read matlab file with only 1 column for parameters (start and stop value are always the same; more compact format) - Simulation results now look for the "time" or "Time" variable before it does lookup on it (avoids error-messages added if "Time" was used)
763925fa4Jens Frenkel- report warning if simulationtime of result file is different to simulation time of model
58c283f10Martin Sjölund- Improve result-file messages
b889e053eMartin Sjölund- Fix builds using mico (hopefully) - Updated installation instructions
3e7dbe7aaMartin Sjölund- Some fixes for min/max defines and namespaces on older systems
a115e7e42Jens Frenkel- bugfix for delay
a0b372f49Lennart OchelCompiler/BackEnd/Initialization.mo - coding-style Compiler/Template/CodegenC.tpl - generate inlineVars again Compiler/BackEnd/SimCodeUtil.mo - minor changes to error messages - add case for SOLVED_EQUATION
ccdf0702aJens Frenkel- partition the state selection system
a74af1bdaJens Frenkel- equations with "delay" are not time indepentent
ef2b81dc3Jens Frenkel- collect also pre(var) of continues vars used in whens
d6da2dbe5Jens Frenkel- DELAY_BREAK_LOOP -> config flag, true by default - > update Tests - ExpressionSolve: add case for cr = start(cr), Integer(cr) = ... - if guid is not present in xml file report warning and simulate, this makes debugging easier
69c0fb5f6Martin Sjölund- Removed $Id$ from generated code (this should reduce number of times svn diff says you changed generated files)
47dc5c2f1Jens Frenkel- bugfix dynamic state selection
312252b48Jens Frenkel- bugfix bootstrapping - do not select discrete variables as tearing variables
df21287ffJens Frenkel- bugfix memset jacobian for stateselection
dbb69e83eMartin Sjölund- Fix logic for opencl runtime
478cf0b0dJens Frenkel- bugfix for selection of initial vars from statesets
3cf797541Martin Sjölund- Disable OpenCL if not found
20e29af57Jens Frenkel- keep differentiated equations as they are and replace state order der(x)=v, replace der(x) with v, only for state selection equations
7632aa070Jens Frenkel- do not replace crefs from initial equations
631a3b933Martin Sjölund- Reverting r14595 (r10048 is more important; Windows XP does not report exit status if /B is used)
d1efe0722Martin Sjölund- Fix to build using the apple built-in OpenCL headers
d09bbfbe9Jens Frenkel- do not replace unfixed parameter
257709841Jens Frenkel- fix for last commit
05ff008a7Jens Frenkel- add missing lapack lib for msvc Target - CodeGenC.expTypeFromExpFlag(flag=2): use modelica_string_t instead of modelica_string makes msvc happy
2d6d9f071Jens Frenkel- initialization: bugfix inline inaktive whenstatment - SimCode: hack for if-equation to if-exp when variable to solve for is not present in all branches
7da6cfa0cChristian SChubertCompile.bat: exit /b exits only from batch file and does not close the cmd.exe when run on its own
35da308c0Jens Frenkel- ignore inputs
3c1c685f8Jens Frenkel- Initialization: bugfix for inline when statements, report warning without flag for overdetermined systems
acf1e4712Jens Frenkel- bugfix solve y = x^2 -> (if pre(a)==0 then 1 else sign(pre(a)))*(f(...)^(1/b)) - report warning if reference file time not equal simulation time
4baac9b04Jens Frenkel- fix for last commit
ef1166b7eJens Frenkel- switch of debug outputs
ce4a65ab5Jens Frenkel- fix for last commit, move fixed pre to known variables to avoid equal equations var = pre(var), do not replace variables with pre
c1f28247fJens Frenkel- List.mo: intersectionIntN, setDifferenceIntN and unionIntN: use less memory, tail recursive, check inN - incidenceMatrix(SOLVABLE): consider only variables in if expessions uccure in then and else branche - Initialization: do not fix an underconstraint system to an overconstraint system
69f42eefeJens Frenkel- initialisation: generate for each variable of inaktive when statement branch an equation var = pre(var)
97395b4eaAlachew Mengist- New API for DrModelica
fc2503388Jens Frenkel- check whens and do not replace variabes set in when (equation and algorithm)
9a86c42cdJens Frenkel- change handling of inaktive when equations for variables with unused pre(var)
937453c05Jens Frenkel- replace initial() with true and sample(..) with false in initial system
78e1b8c45Jens Frenkel- consider type of cref when generate equation from aktive when equation - do not add variables with constant bindexpression to initial system
77dc3651dJens Frenkel- bugfix for last commit
0bff240dcJens Frenkel- bugfix emtpy Replacements, check also derConst replacements - add for time independent states candidates derConst replacement
cacb18086Jens Frenkel- do not add toplevel inputs to the initial system
4b6c9f4efJens Frenkel- switch to symbolic initialization - Bugfix dynamic state selection code generation, allocate enough memory
913366c67Jens Frenkel- bugfix for dynamic state selection
0c503bf49Jens Frenkel- add for each used pre(var) of an alias var an variable for code generation - bugfix for jacobian for dynamic state selection
291431116Jens Frenkel- use List.isNotEmpty for BackendVariable.existsVar - do not replace state set candidates - replace algorithm for selection of variables to set fixed=true in case of under determined initialsyst
57c94109aJens Frenkel- fix for last commit
2aa99bfefJens Frenkel- do not evalute the discrete system before symbolic initialization is done
1008d4d35Jens Frenkel- bugfix initialization
2eff5156eJens Frenkel- Initialization: collect discrete States, check when inline when if pre(var) is used in the time equations and var and pre(var) are used in the initial equations, if not set var fixed and report warning
d248ee75eMartin Sjölund#2000 - Make linspace simplify better
49e0f970fJens Frenkel- remove again inline solver vars from code generation because it generates duplicated names for Modelica.Mechanics.MultiBody.Examples.Constraints.ConstrainUniversalJoint +dynamicPivot (this is the new index reduction and will be aktivated as default soon)
857e2dc1dJens Frenkel- BackendDump: use capital letters for constants - RemoveSimpleEquations: do not replace discrete variables and do not merge fixed and start for discrete variables, fixes issues with symbolic initialization, (Modelica.Blocks.Exmaples.Interaktion1) - Initialization: bugfix for inaktive when transformation to equations if only one assignment
b3c3c1924Adeel Asghar- Allocate and free the proper fmi version structures. - some test cases.
9f327c429Jens Frenkel- do not call optimizeInitialSystem if +d=solveinitialsystem is used
fa316f927Adrian Pop- duh! RCONST instead of ICONST. holiday brain damage :)
c9a5da15eAdrian Pop- fix bug #1993 handle negative start times.
e31c5c406Lennart Ochel- generate variables for inline solver again (was removed in r14511)
35f5380a0Jens Frenkel- try to solve single assigment statements
0afa2d8a9Jens Frenkel- ignore state set variables for initial variables - add state set statecandidates to initial variables - convert single inaktive when algorithm sections to equations
ef1922bd1Jens Frenkel- partitionIndependentBlocks: dump no error message if throwNoError is true
52beda77eAdrian Pop- remove one extra run of buildModel done for no apparent reason (probably just a copy paste error). - add flags: setMatchingAlgorithm("PFPlusExt"); setIndexReductionMethod("dynamicStateSelection");
b4091f63bJens Frenkel- fix bootstrapping
7d5e346e8Jens Frenkel- splitt the initial system in independend subsystems to see easier what the problem is
42000e562Jens Frenkel- bugfix SimCodeUtil, do not ignore the previus generated tempvariables in createInlineSolverEqns and createInitialResiduals - add case for enumerations in addTempVars - add needed prevars from alias vars to simcode
e40736dc3Adrian Pop- do not print = twice in modifiers.
3e011e88aAdrian Pop- playing with modifiers to fix: Modelica.Electrical.Digital.Examples.DFFREGL and others. - do not apply redeclares in operators - make the error about modification or redeclaration of protected elements a warning plenty of models in MSL that have these! - display the dimensionality in the connect mismatch. - some models will fail, I'll deal with them next.
cda1a875bJens Frenkel- fix for last commit
66de325fbJens Frenkel- do pre replacements also in event info - check also alias vars for discrete pre variables for the system
033352e76Jim NutaroSimplified event handling in the adevs backend
592ed1084Jens Frenkel- help the symbolic initialization by calling simplifyTimeIndepFuncCalls after the initial system is generated
acd9d41bdJens Frenkel- Derive: add case for MUL_SCALAR_PRODUCT - check Flag for actuall index reduction version
224811520Jens Frenkel- Dynamic State Selection, add missing equations to the system if number of equations is equal to number of variables
18e62980fJens Frenkel- and switch back to old one
995f622a5Jens Frenkel- try new state selection
0090f5860Jens Frenkel- bugfix dynamic state selection, start value for A Matrix
d848adb69Jens Frenkel- fix tests - bugfix dynamic state selection, planar pendulum works now
203d1952fJens Frenkel- add missing forward declaration for generated code
7f247409aJens Frenkel- do not use the same names for inline vars, fix previous commit from bielefeld people
200cf4859Adrian Pop- fix UTF-8 encodings.
6e1f803ceJens Frenkeladd missing files
182dbae48Jens Frenkel- continue dynamic state selection
4b50aa8f9Adrian Pop- fix bootstrapping - dt is given as input so is not needed inside the function. also, you cannot assign to inputs!
8084d461eVitalij Ruge- collect inlineVars for code generation - symbolic to numeric coefficients for Lobatto IIIA - Lobatto IIIA equations must be better now
d08107fa4Lennart Ochel- again some inline solver stuff - propagate variables to code generation
a75a680b3Jens Frenkel- fix some bugs in sparse jacobian calculation to support NxM
e171af4c8Adrian Pop- do not split out the modifiers from redeclares in case of functions and records.
dab021a1fLennart Ochel- keep original states in the inline-solver-system
d073f5d0aLennart Ochel- small changes for indentations and comments
b8961616bJens Frenkel- continue dynamic state selection, try to get symbolic jacobian
c3cb7d005Willi Braun#1992 - fixed alias treatmeant outputFormat plt
6407ead21Vitalij Ruge- variable moved for simplification
4f0b83474Lennart Ochel- upps
bb3e0c606Lennart Ochel- further steps for the implementation of the inline solver
8a97e7780Adrian Pop- more fixes for bug #1956 for +scodeInstShortcut (should fix some of the AVM models)
c780843c0Adrian Pop- fixes for bug #1956 for +scodeInstShortcut. add test: testsuite/flattening/modelica/scodeinst/ParameterBug.mos - build omc-diff before omc.
7431019adAdrian Pop- RML/MetaModelica is too clever while being stupid (the result of the type inference is verified only at the end against the declared variable).
1ea63cbecLennart Ochel- edit some comments
ca099a321Vitalij Ruge- Add symbolic equation for Lobatto IIIA
b6f07bde8Martin Sjölund- Avoid printing error-message
e8c78b095Jens Frenkel- continue dynamic state selection dynamic pivot
d27793534Jens Frenkel- rewrote BackendDAEUtil.markStateEquations, less programm code to maintain - continue dynamic state selection dynamic pivot
a8d138f49Willi Braun - fix coding style
0098eaee5Willi Braun - fix last commit
b7c035699Willi Braun - added initial steps to support BackendDAE.IF_EQUATION - added missing case in most BackendDAE* files - added a new SimCode equation type SES_IFEQUATION - added cases to suppport this equation in SimCodeUtil - added one first test case for them
9cc08bacbLennart Ochel- testsuite/simulation/modelica/nonlinear_system/nanTest* - continue renaming - Compiler/BackEnd/BackendVariable.mo - remove unused function: getFixed - typos - Compiler/Template/CodegenC.tpl - minor changes to increase readability
67af2953fMartin Sjölund- Also remove .o-files
6f0f44b67Martin Sjölund- Update rtest so that it automatically removes all files generated by Tpl.textFile() and CevalScript.compileModel() - This makes teardown_command not needed for most tests
bad55cb27Jens Frenkel- force evaluation of fixed attribute
6ac7652ccJens Frenkel- bugfix remove simple equations, take care on statesets
08f4d9822Jens Frenkel- add StateSets to BackendDAE.EqSystem continue
900e14199Willi Braun - split up SimCodeUtil.mo in SimCodeMain.mo and SimCodeUtil.mo - SimCodeMain.mo is the entry module to create SimCode and is the only file that import Codegen* modules, since it took forever to load them. - SimCodeUtil.mo contains only public function that are called in SimCodeMain.mo. - started to sort functions in SimCodeUtil that belongs together.
342c410fdLennart Ochel- indentation
f4e3dfcefLennart Ochel- Compiler/BackEnd/Initialization.mo - minor speedup - Compiler/BackEnd/BackendDump.mo - make some dump-calls more clean
243cc2f85Jens Frenkel- add StateSets to BackendDAE.EqSystem
1a3f1e903Mahder Alemseged Gebremedhin+ New FrontEnd + Typing of calls. + Vectorization of calls.
178a4544fMartin Sjölund- Revamped +simCodeTarget=Dump. It now create $MODEL_dump.xml. Which, together with OPENMODELICAHOME/share/scripts/simcodedump.xsl produces a pretty html report. Will be improved further.
090dabf0cPer Östlund- Turn on redeclare splitting when +d=scodeInst is given (but only for components, class modifications aren't yet handled in scodeInst). - Make sure we stop if an error occurs during modifier merging. - Implemented List.findMap[1-3]*. Like map, but with the possibility of stopping. - Added test cases for duplicate modifications and redeclare modification propagation.
678b2927eJens Frenkel- rename delteCrefs -> removeCrefs - continue StateSelection
6d103d0e3Willi Braun - added support of analytical jacobians for non-linear solver(hybrid-method). - for now they can be activated by debug flag "+d=NLSanalyticJacobian". - added some new tests for non-linear solvers-
71032ce20Jim NutaroAdded alias variables and removed equations to generated code
2775ed35bJens Frenkeldo not yet build pivot.c with cmake
e747b5f90Adrian Pop- remove tabs, replace with 2 spaces. tabs are rather bad as editors displays them differently.
71a27e4adPer Östlund- Add forward declaration of DATA in simulation runtime to get rid of compiler warnings.
a8125b50cPer ÖstlundPartial fix for #1956 - Split redeclares into redeclare bit and modifier bit in SCodeUtil for easier error checking. - Fix modifier propagation in SCodeMod.
b12315262Christian SChubertimplemented a very simple (and presumably slow) complete pivoting procedure for rectangular matrices, to be used for the new dynamic state selection
4521e23d6Per Östlund- Add -lm when checking sundials support, so it works on e.g. ArchLinux.
824f98b63Jens Frenkel- BackendEquation.traverseBackendDAEExpsEqnOutEqn: special case for it initial() then ... else ... end if; only else branch needs to be checked
1fde75c60Jim NutaroAdded support for event generating functions to the adevs backend
9e84fa406Lennart Ochel- typos
c4b94918eVitalij Ruge- begin with the code preparation for implicit methods
16db86629Lennart Ochel- avoid needless copy-instructions for static nls data
917161a84Lennart Ochel- fix #1981 - why do we check for results, that are actually wrong? It is really annoying to figure out which tests really succeed.
846f86587Adrian Pop- duh, handle all cases: inner, innerouter, outer, regular!
c820da40aAdrian Pop- more fixes for dependency for inner/outer classes.
66093c796Adrian Pop- do not push these changes yet.
9244278f8Adrian Pop- attempt to fix bugs: #1987 #1988 - always consider inner/innerouter classes in *Dependency.mo - add inner classes to the InnerOuter.InstanceHierarchy lookup outer classes in the InnerOuter.InstanceHierarchy - right now the support for inner/outer classes is rather primitive. - added testsuite/simulation/modelica/others/Bug1987.mos to test for both bugs.
5c9cf4429Jens Frenkel- bugfix set variable size for dynamic state selection
e05e25531Jens Frenkel- switch back to old state selection
cd926be6cJens Frenkel- bugfix singular system error message, use nonscalar indices of equations
485ee4d96Jens Frenkel- do not check differentiated equations twice
df643ce38Jens Frenkel- try new state selection approach
9502f0fffAdrian Pop- fixes for Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator bad errors: Error: Trying to override final variable in component and scope Modelica.Electrical.Machines.Interfaces.InductionMachines.PowerBalanceSMEE by using modifiers: final - we might break a few tests as I changed the way we print modifiers and also send pre instead of NOPRE in Inst.mo
42b43b309Martin Sjölund- Expected output
5fd922082Martin Sjölund- Fix line-endings
3e8f17ff3Martin Sjölund- Coding style
00ce2524dMartin Sjölund- Bump MSL version
b39649de0Jens Frenkel- small speedup for index reduction in case of undiffable mss, stopp differentiation and continue with next set
c717b6918Lennart Ochel- some minor changes
4347c6543Adrian Pop- fix typos.
0e5818c48Lennart Ochel- rename LOG_NONLIN_SYS to LOG_NLS - rename LOG_NONLIN_SYS_V to LOG_NLS_V - add brief description for both flags
9f394d176Lennart Ochel- one more fix for nonlinear systems
adedb231bLennart Ochel- small fix for last commit
19fc2f392Lennart Ochel- add new nonlinear solver: kinsol (runtime-flag: -nls=kinsol)
59cd63912Jens Frenkel- add enumeration to some places
850e61611Willi Braun - fixed BackendDAEUtil.isDiscreteExp for initial() condition
d57b2d791Jens Frenkel- small speed up for Pantelides Algorithm: deselect all states without derivatives, because there is no case known where not all needs to be algebraic
a92ba1c79Jens Frenkel- add new case for not differentiable MSS, search for states without used Derivative in Global System
40f187a9aLennart Ochel- start implementing inline solver (for vruge alias vitalij)
42e80e4f4Martin Sjölund- Increase time limit
f3372c31bMartin Sjölund- Remember to print the warning
8cb7d67eaMartin Sjölund- Also handle tests that crash omc
87bb2e00bJens Frenkel- have a look at undifferentiable mss at the end - report warning about structural singulare set earlier - do not sort equations and variables, it is useless
9541ece38Jens Frenkel- improve error handling for matching algorithms, use one funktion to report error
f4889f44dJens Frenkel- fix minor mistace in removeSimpleEquations, in case of unreplacable variables were not all possible vars are replaced - add flag for equations to know if an equation was differentiat and should not differntiated again - remove useless code
1925ff9c3Adrian Pop- properly delete everything in omc_release - do *not* delete PantelitesSingulaer* as that will delete the failing log that we need for Hudson!
a8660aee9Adrian Pop- more fixes for fixes for bugs: #1917, #1983 :) isn't that recursive? - get rid of wrong error messages of type: [package.mo:4549:7-4549:59:writable] Error: Variable reference_X not found in scope Modelica.Media.Interfaces.PartialMedium.specificEnthalpy_pTX - let's see how many tests we break/fix now :)
1f4d159c4Adeel Asghar- First version for FMI 2.0 support. - Separate files for common, model exchange and co-simulation functions.
ad5bb7f73Jens Frenkel- dump Uncertainty attribute of variable
54c87b73fMartin Sjölund- I like typos
377cf5cadMartin Sjölund- Prettier reports
e79274177Martin Sjölund- Mark executable
d0b961e71Martin Sjölund- Adding a diff script for BuildModelRecursive.mos
17b1f2f71Jens Frenkel- add Singular System check before start to match the system to detect singular systems
d858fc8e9Adrian Pop- fix bootstrapping. - add testsuite/flattening/modelica/modification/FixedFalse.mo for bug: #1983
8f717694fAdrian Pop- fix build
5927c638cAdrian Pop- get rid of bad warnings/error messages of form: [Incompressible.mo:164:5-165:51:writable] Warning: Invalid public variable hasHeatCapacity, function variables that are not input/output must be protected.
5409cbf3cAdrian Pop- attempt to fix bugs: #1917, #1983 - quite some tests might fail, let's see how it goes. - if is a parameter component with a record type that has all bindings and the actual component has no binding build the binding from the type. - check for fixed = false for parameter before showing the warning. - Static.elabCallArgs2 do lookup class first as lookupType is much more complex!
183a4a92cAdrian Pop- attempt to fix bootstrapping: do less inlining when MetaModelica flag is active.
fb9470532Adeel Asghar- Fix FMI tests.
15306e23fJens Frenkel- fix copy past error from last commit
09fd39d2aJens Frenkel- try to support GenerateEvents Annotation - merge funktionalty of inlinecall and force inlinecall - fix for allAcausal
3bd3e725cLennart Ochel- some minor changes for simulation dumps - if unsupported -lv flag is used, a list of all supported -lv flags is shown
5ce247b3aJens Frenkel- remove old remove simple equations function - rename BackendDAEUtil.reduceIndexDAE -> causalizeDAE - remove unused code
12348dd38Leonardo Laguna- Minimal change to the uncertainties algorithm
67f865c02Lennart OchelSimulationRuntime/c - rename initialization flag -iim state to -iim numeric (hopefully I forget nothing: fmi, omEdit, ...) - improve the finale initialization dump - fix some issues with LOG_STDOUT (the dump stream should be selected much more carefully) - some minor code simplifications
7415d05b9Jens Frenkel- check for equal alias equations a=a
067829170Henning Kiel- fix memory leak (unfreed temp space) - removed unnecessary memset() where array is initialized directly afterwards
56fb09c6eLennart Ochelsome additional improvements for LOG_EVENTS
e3ce23eb6Lennart Ochelsome minor updates for BackendDump.mo
c0a91aac7Lennart OchelCompiler/BackEnd/Initialization.mo - fix for when-statements in algorithm sections - remove flag TRACE_INITIAL_SYSTEM - remove function analyzeInitialSystem1 (fix discrete vars to get rid of unneeded pre-vars) - fix under-determined systems with zero initial equations SimulationRuntime/c/simulation/solver/initialization/initialization.c - fix initialization of ringbuffer SimulationRuntime/c/ - some improvements for the readability of LOG_EVENT, LOG_SOLVER, LOG_DDASRT, ... - some minor formatting changes testsuite/simulation/modelica/algorithms-functions - adjust expected output to new initialization (symbolic)
7f13b6831Jens Frenkel- get rid of unnecessary "Not Enough Time Points Warning" - initialize rand for cheap matching (this could be done better once at the begining of omc's life)
c9b646276Jens Frenkel- speed up remove simple equations, use less temp variables
9884cec1cJens Frenkel- use type of cref for der call and not T_Real by default, solves issues with Unary(Uminus,Unary(Uminus_Arr,__))
9749e23e7Jens Frenkel- bugfix start value merging
b3cc11e9cJens Frenkel- bugfix for remove simple equations
7b9a32460Lennart OchelCompiler/BackEnd/BackendDAEUtil.mo - again: internally generated call start(v) depends not on v Compiler/BackEnd/BackendDump.mo - rename some functions to get consistent naming style Compiler/BackEnd/Initialization.mo - remove previously introduced fallback cases Compiler/BackEnd/SimCodeUtil.mo - remove some fucntions - fixInitialThing - simvarFixed - nonFixifyIfHasInit testsuite/simulation/modelica/initialization/ - test for additional initial conditions added by auto-fixed variables - move some tests from FAILINGTESTFILES to TESTFILES testsuite/simulation/libraries/msl32/Modelica.Thermal.HeatTransfer.Examples.TwoMasses.mos - expected outputs testsuite/simulation/libraries/msl32/Makefile - move some test from TESTFILES to FAILINGTESTFILES - Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.mos - Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.mos - Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.mos - Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.mos - Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.mos - Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.mos - sort tests alphabetically
a210f23c0Willi Braun#1979 - fixed codegen bug with mul integer product(maybe we need change more of that functions)
98c844c9fJens Frenkel- in case of variables with variable indices (for example u[i,1]) replace the indices with WHOLEDIM (maybe this could be improved by evaluating i) to get at least all potential variables in the incidence matrix
0c145d798Martin Sjölund- Disable inline of functions with protected variables (until we support it properly)
a2e8cf110Jens Frenkel- remove tabs
eb8d14e70Jens Frenkel- switch to new remove simple equations implementation
3df7186c7Martin Sjölund- Remove *.orig files left from patch
cf4c4aa77Martin Sjölund- Use System.intMaxLit instead of integerMax since it has a better definition
2a9efac9cMartin Sjölund- Use getconf instead of uname. It works even in chroot environments.
8df3751afMartin Sjölund- Bump MSL version
1f7803695Lennart OchelCompiler/BackEnd/Initialization.mo - introduce some kind of structure - first try - next steps to solve under-determined initial systems - add some fallback-clauses, to provide current testsuite (probably not so clever... ?!) Compiler/BackEnd/BackendDAEUtil.mo - improve validity of some names - internally generated call start(v) depends not on v - simplify some snippets Compiler/BackEnd/SimCodeUtil.mo - remove unneeded output Compiler/BackEnd/BackendEquation.mo - add function emptyEqns() - as listEquation({}) is often used instead testsuite/simulation/modelica/initialization/ - conform expected outputs to current messages for - underdeterminedTest1.mos - underdeterminedTest2.mos - new test for under-determined initial systems - underdeterminedTest4.mos - underdeterminedTest5.mos - underdeterminedTest6.mos
70a9142ebJens Frenkel- check if types equal for alias equation - expexted output - check if variables replacable
dc3a7aaf0Jens Frenkel- second try new remove simple equations - implement trunc for msvc
96f9da7c6Willi Braun#1975
89de4b108Jens Frenkel- Tearing: speed up numerical solver by sorting the residuals with direct dependency on tearing variables
71f0e6668Jens Frenkel- small speed up for tearing
0ebd2a240Jens Frenkel- small speed up for tearing
acbbc8eb8Jens Frenkel- switch back to old remove simple equations, the new implementation works fine but I am to tired to update the working tests
50e3fd8c3Jens Frenkel- bugfix for BackendVariable.existsVar
6d711fbd7Jens Frenkel- bugfix for RemoveSimpleEquations, generate equation if not replacable time independent variable.
68368b760Jens Frenkel- BackendVarTransform. add case for not Cr for when assigment - add case for jacobian for remove simple equations - add case for not(not(exp)) -> exp - add case for not cr = ... for CodegenC.writeLhsCref
bce7b1a9fAdrian Pop- remove tabs.
f9734c037Jens Frenkel- use startvalue from var with shortest name - start to check for unreplacable crefs - BaseHashSet.has: empty set containg nothing
85a837b4cJim NutaroFinished support (but not very good support) for delay functions to the adevs backend
5e8c6ebf0Jens Frenkel- bugfix for last commit
d47471dabJens Frenkel- try new remove simple equations
a81cba1cbJens Frenkel- make BackendVariable.vararrayNth protected use BackendVariable.getVarAt - add LOG_DEBUG Info to callExternalObjectConstructors - continue new Remove Simple Equations
5a5d4c6ceJim NutaroFirst try at support for the delay operator in the adevs backend
f0da33e0bAdrian Pop- fixes for Modelica3D, sort inner ModelicaServices first, then Modelica then others.
1d9aea5f3Jens Frenkel- add missing free, workaround for last commit
1df0bd6b8Jens Frenkel- fix for last commit, log messages needs memory in initData
7f3d80edcJens Frenkel- small fixes for modelica3d support, still dit not work on my computer, please can one of the modelica3d people have a look at it if it works in generall
3f6f37b5aAdrian Pop- activate dtostr in realString.c for MinGW32 too. - get rid of some warnings in SimulationRuntime/c/ + try to use existing defined types instead of casting as that might generate problems. int is rather a bad type on different platforms so use integer or fortran_integer directly instead of casting. - let's see if we run into any problems.
0af9f4780Adrian Pop- second attempt to fix bugs: #1405 and #1970 it will generate some missing each warnings for modifiers but it will work otherwise. i'll get rid of the warnings later. - added tests with both models and more: testsuite/flattening/modelica/arrays/TypeTest.mos - let's see how many tests will fail now.
dc12dd7daJens Frenkel- add RemoveSimpleEquations.mo again
eaed54f25Adrian Pop- handle also InlineAfterIndexReduction as this changed in the lastes MSL version from __Dymola_InlineAfterIndexReduction.
c2cea351dLennart Ochel- Compiler/BackEnd/BackendDump.mo These file is subdivided into several section: section for all print* functions section for all dump* functions section for all *String functions section for all debug* functions unsorted section Please follow the introduced naming style (above) and sort all new functions into the corresponding section (except unsorted section). - Compiler/BackEnd/Initialization.mo - small changes in pedantic output - new debug output via traceinitialsystem - testsuite/simulation/modelica/initialization - new test for underdetermined system
b503ae308Martin Sjölund- Increase time allowed for building an executable
9ed8fd1b5Jens Frenkel- fix potential bug for simplified if equations in old remove simple equations
a12238ce8Jens Frenkel- fix for Ticket #1971 add tes TestTwoOut.mos , val seems to do not work
f82316e5bAdrian Pop- not working yet, reverting.
228d02f9dAdrian Pop- attempt to fix bugs: #1405 and #1970 - added tests with both models and more: testsuite/flattening/modelica/arrays/TypeTest.mos - let's see how many tests fail.
b7955d1daAdrian Pop- reverting the commit by Jens and mine with tabs removal: r14251 and r14248 to see who broke what :)
b08ace6d7Adrian Pop- squash tabs in RemoveSimpleEquations.mo
03aa37e27Adrian Pop- and not or!
1ad15622bAdrian Pop- fix RML stupidity with types having the same name as the package.
14a3018e8Jens Frenkel- fix potential bug for simplified if equations in old remove simple equations - add new file RemoveSimpleEquations.mo - add new tests for singular systems
2f1609ebfAdrian Pop- mind your case please.
a42d5e274Adrian Pop- checks for bug #1972 in InstSection.mo with helpers in SCode.mo and Absyn.mo make the way we check the when equations and when statements more uniform. added testsuite/simulation/modelica/initialization/filterBlock1.mos back to test the error reporting for #1972.
c18a4bdecWilli Braun - fixed delay handling in non-linear systems
c9bc4555dMahder Alemseged Gebremedhin+ change operator on Multiplication of an array and a scalar.
337562e21Jens Frenkel- generatede file
377186220Lennart Ochel- indentation
b45fc7cdbLennart Ochel- a bit more output for unbalanced initial systems
80f54d13cLennart Ochel- Compiler/BackEnd - move some functions from BackendDAEUtil.mo to BackendVariable.mo and BackendEquation.mo - move code for initialization to Initialization.mo
f4bde4451Mahder Alemseged Gebremedhin- New FE: Expand arrays inside cast expressions.
217ea9cb3Willi Braun#1959 - added support for event triggering math function e.g. ceil,floor,div,mod,rem,integer
92b794e93Adrian Pop- rewrite weird code in System_rml.c isIdenticalFile - remove some warnings in FMIImpl.c
08b8f84f5Jens Frenkel- use intMax for repl Size, as in fact wanted
85e27ca3eJens Frenkel- buy time with memory, now the avm model finishes remove simple equations after around 15 Minutes (last try was not finished after 9 hours), so it was not a loop, we need a new implementation of BackendVarTransform because this is the bottleneck (the inverse hashtable, the lists crow dramatical) - use the model size to alloc memory for the replacements - remove unused code from Inline.mo - add new tests for index reduction
110405351Martin Sjölund- Bump MSL version (ModelicaServices moved)
6aa322964Martin Sjölund- Update MSL+OM to calculate the maximum integer size instead of using hardcoded constants
e9ed93df6Henning Kiel- moved some if statements out of for loops - avoid calloc if memory is directly initialized after allocation
941cf63faJens Frenkel- see what happens without old force inline implementation
c065581caJens Frenkel- first attempt to inline function with multiple statements
2e1aa11afLennart Ochel- Compiler/BackEnd/ - solve dependencies for parameters during initialization - fix for equations from bindings - Compiler/Template/ - print error message, if symbolic initialization is selected but not generated - SimulationRuntime/c - always dump error messages - testsuite/ - activate case for ticket #1964
2ffd4e0ffHenning Kiel- fix loop boundaries - remove unused variables
6f8e2b1d7Henning Kiel- rollback of file opening issue
d36ca8802Adrian Pop- handle CombiTable1D tables of 1 row only in tables.c Modelica.Blocks.Tables.CombiTable1D z(table = [0, 0.7]);
73afbf606Martin Sjölund- Fix to try scodeInstShortcut in BuildModelRecursive.mos. Only uses it if buildModel fails, and then succeeds with the shortcut. Green cells become yellow if the shortcut was used.
2d4c3d8e0Jens Frenkel- BackendDAECreate.lower3: add missing case for DAE.INITIALDEFINE - SimCodeUtil.createNonlinearResidualExp: add case for Enumerations - Expression.expAdd,expSub: add case for Enumerations
581555f6dJens Frenkel- break infintite loop in index reduction - update test - fix bootstrapping (that was not easy)
4336a117bMartin Sjölund- Update MSL version
653a80c0bAdrian Pop- fixes for bugs: #1946 #1969 - do not allow subtype(Tuple, nonTuple) - do type conversion of Tuple -> DAE.TSUB(Tuple, 1) when the actual type is tuple and the expected type is not. also check that the first type of the tuple agrees with the type of the non-tuple. - added tests for these bugs testsuite/flattening/modelica/built-in-functions/AbsIssues.mo testsuite/flattening/modelica/built-in-functions/MultiFunctionReturnValueUseOnlyFirst.mo - let's see how many tests fail :)
da3a85ebcAdrian Pop- attempt to fix bootstrapping.
fdaeb1025Jens Frenkel- BackendVarTransform.replaceExp: add missing cases for DAE.TSUB and PARTEVALFUNCTION
2ba52416eLeonardo Laguna- Fixed problem making the bootstrap test fail
0c7dcef74Leonardo Laguna- Update to the uncertainties algorithm
7e0b25f71Henning Kiel- optimize loops - fix memory leak
d74aed2abWilli Braun#1960 -fixed bug with integer valued zerocrossings
4a3d647dbMahder Alemseged Gebremedhin+ ParModelica: fix parallelism propagation, append omc_ prefix to parallel functions, change modelica_assert to omc_assert
5708e2a97Jens Frenkel- expressions with unfixed parameters cannot moved to simple equations because they are calculated before the unfixed parameter values are calculated, 2th try
f3e644a1eJens Frenkel- add model for Ticket #1964
ab9238b02Adrian Pop- bug #1963 cannot be fixed right now as the fix is breaking too many models. - to fix this bug we need to know in Static which parameters are final and we have no way of knowing that right now.
305e07affAdrian Pop- second attempt to fix #1963 constant with parameter index -> DO NOT CONSTANT EVALUATE. this time it should work fine, i even added a test: testsuite/flattening/libraries/msl32/Modelica.Electrical.Digital.Examples.DFFREG.mos
be5d1f88aAdrian Pop- attempt to fix #1963 constant with parameter index -> DO NOT CONSTANT EVALUATE. - i guess a lot of tests will fail, i'll fix them when i get the result from Hudson
b79b99a9fJim NutaroFixed problem evaluating pre() function in the adevs backend
685e0cf24Jens Frenkel- comment last changes out
38b7e65c8Jens Frenkel- expressions with unfixed parameters cannot moved to simple equations because they are calculated before the unfixed parameter values are calculated
289eb2285Jens Frenkel- traverse also subscripts of cref in traverseExptopDown
5856a42a2Jens Frenkel- missing function from last commit
60bef9f83Jens Frenkel- improve algortihm for handling undifferentiable mss - copy also lapack and blas for msvc debugging - comment for further developemnt to BackendDAE.STATE
aa6266aa4Adrian Pop- remove the tabs
c5d9436b8Jim NutaroAdded support for sample to adevs
67c873e3aJens Frenkel- bufgix for replace STMT_ASSIGN_ARR
7e15db00cJens Frenkel- improve collecting of equations for index reduction
890f1062fJens Frenkel- improve collecting of equations for index reduction
e7a18875cMahder Alemseged Gebremedhin- Coding style.
e253087dcJens Frenkel- CheckModel.statementOutputs: add Case for DAE.STMT_BREAK
0ba310576Jens Frenkel- do not report "Files Equal" if nothing was compared
6cd4a35b9Martin Sjölund- Fix unparse
e0a78f53eMartin Sjölund#1961 - Fix enumeration index for arrays of enumerations
8afb9afaeMahder Alemseged Gebremedhin+ Check proper numeric types for operators. + cast operands of pow to real before exponentiation.
c0dbed95bLennart Ochel- a more general implementation for when-clauses in algorithm-sections for the initialization
581283e75Adrian Pop- remove debugging printout in CodegenC.tpl daeExpIf because the expression inside /* */ can contain /* */ and you get a lot of issues add it back if you want to debug that part!
edaba5593Adrian Pop- add a warning about files and directories (containing package.mo) that are not present in package.order *AND ALSO LOAD THE ONES THAT ARE NOT PRESENT*. I've got bitten by this waaaay too many times to let it slide! Now we got 3 more test models in the AVM lib from this.
c19d13176Adeel AsgharFix testsuite.
e2fda47b3Adeel Asgharfixed tabs.
ef974c39cAdeel Asghar- Let the user decided whether he want input/output connectors or not.
dded62c96Adeel AsgharGenerate the connector pins for input and output variables. Give a standard annotation to the imported model.
18094901bAlachew Mengist- Added time Point value and index in XML code generation - Fixed XML code generation for Builtin functions
3e878e3afLennart Ochel- Compiler\BackEnd - handle when-clause inside algorithm sections for initialization - rename SimCode.mo to SimCodeUtil.mo in some error messages - testsuite\simulation\ - libraries\msl32 - fix expected output - modelica\initialization - add two cases for when-clause inside algorithm sections
e1cdc7660Jens Frenkel- next case for undifferentiable mss, select the first state candidate with unused derivative
e4d39c316Martin Sjölund- Fixes FMIImport on the bootstrapped compiler
5eb3d3d89Martin Sjölund- Merge some code in BackendDAEEXT so we do not have a different version for bootstrapped (it was broken, causing errors in libc malloc, making the process into a zombie)
650b06dfdMartin Sjölund- Fix the path
64db10c85Martin Sjölund- Fix to build on OSX
817befa6bJens Frenkel- remove unused code
35cbb9680Jens Frenkel- try to replace final vars in undifferentiable subset
a694b27d9Mahder Alemseged Gebremedhin- fix returned type.
11171a925Martin Sjölund- Fix copy/paste error in lapack
9ac1e2dccAdrian Pop- no GC for visual studio!
e6dce00daMahder Alemseged Gebremedhin+ Type checking for operators and operands for the new FrontEnd. + Arithmetic operations + Logical operations + Relations + Fix for type checking of assignment and equality equation statements .
073e9c451Adrian Pop- OpenTURNS.mo fixes: + do not reverse the wrapper inputs/outputs! + use the variable names in the description.
a658ebb84Adrian Pop- link with -lgc the generated code - link with -lgc omc.exe - add the gc includes to the Compiler/runtime/Makefile.omdev.mingw
18963d391Martin Sjölund- I promise one of these days make will listen to what I mean
85e597e12Martin Sjölund- Fix for parallel builds
d418bc892Martin Sjölund- Fix build
e7d12cc89Martin Sjölund- Enable boehm-gc by default
65bd171b8Martin Sjölund- Tail recursion
fc795ebc5Jens Frenkel- fix test - small improvements to OnRelaxation
93b67179dMartin Sjölund- Tail-recursion
ffc2cc51aLennart Ochel- generate initalsystem before replacing pre(alias)
d0552ca85Martin Sjölund- Back to using .a-file instead of .so since we cannot load the file if it uses so
26c1d722aMartin Sjölund- Use LinearSystems2 2.3 instead of 2.0
138b6fb6aMartin Sjölund- Let's create the directory before we copy to it
e50a3d4baJens Frenkel- bugfix for multidim constrained equations with no algebraic variables - improve error message STRUCT_SINGULAR_SYSTEM
5fbe6ed55Martin Sjölund- Updating makefiles so we can enable boehm when it works with dynamically loaded code
ca2d05d61Lennart Ochel- fix bad handled failure of new initialization
10f4f2bdcMartin Sjölund- Adding boehm gc 7.2d sources to 3rdParty since we need to compile our own version rather than the OS-provided
72a3d0b63Martin Sjölund- Tail-recursion
143d435f2Jens Frenkel- improve Pantelites algorithm to handle also not differentiable singulare subsets - move Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.mos to working tests - add flag to dump trace in HTML usage with +d=bltdump +dumpTarget=log.html it is a first try, shure we have to improve it but it can be quiet usefull in case of large trace files
0b5acc8b5Adrian Pop- add the global root for boehm gc also
fcb75cca9Adrian Pop- attempt to fix the cmake stuff.
4418a89bdAdrian Pop- rename SimulationRuntime/c/meta/gc.* to SimulationRuntime/c/meta/mmc_gc.* - to use the Boehm GC uncomment: #define _MMC_USE_BOEHM_GC_ in SimulationRuntime/c/meta/mmc_gc.h and recompile the SimulationRuntime/c and the bootstrapped compiler. note that you will have to link omc or the bootstrapped compiler with Boehm GC (for OMDev the flags are already in place but commented out, search for boehm in the Makefiles.omdev.mingw, also the compiled libgc was added to OMDev).
32662df6aWilli Braun small fixes to runtime - simulation_runtime.cpp - added correct solver to callSolver - dassl.c - use colored sparse structure for dasslwort - nonlinearSolverHybrd.* - added a case for using values as scaling factos - model_help.c - fixed uninitialized value - testsuite/* - adjust tests
cbe8ad64dLennart Ochel- fix memory leak
9122c2bb6Lennart Ochel- avoid compiler warnings
74da86d22Vitalij Ruge- fix error message
187769a0cLennart Ochel- improve readability of - some sample test cases - some dumps: LOG_EVENTS and LOG_ZEROCROSSINGS
2adb7b93fLennart Ochel- rename SCodeInst.instExp to NFSCodeInst.instExp
303478dfcAdrian Pop- fix template compilation.
4fce441e6Lennart Ochel- small changes for calculating parameters
97c1873d5Adrian Pop- naming frenzy :) - changed names of packages belonging to the new instantiation from NAME to NFNAME. NF=NewFrontEnd
61d3ea7f6Martin Sjölund- Load MSL 3.2 by default
158585958Adrian Pop- better failtrace message in Compiler/FrontEnd/SCodeFlattenRedeclare.mo - new functions for dimension comparison on Compiler/FrontEnd/Expression.mo not used yet in Compiler/FrontEnd/Types.mo as I did not want to allow Types.subtype(Type[0], Type[N]) to return true (we'll see if we need to allow it).
39d55ccebAdrian Pop- let's try this again to see how the tests are going. previously there were other issues with templates.
34cde47d5Martin Sjölund#1950 - Added symmetric() implementation
a39c5c714Adeel AsgharMark input variables, call fmiSet* functions for input variables.
ea6610d67Adrian Pop- revert changes to templates: Compiler/Template/CodegenC.tpl Compiler/Template/ExpressionDumpTpl.tpl as things started to break for no apparent reason! - revert changes to tests.
6d6ddeb58Adrian Pop- expected output - remove the merging of modifiers in SCodeAnalyseRedeclare.mo for now as it seems to have some issues with the AVM models.
221881a9aAdrian Pop- Fixes for bug: #1954
4a7500545Adrian Pop- fixes for bug: #1953
7e0a299e2Adrian PopFix attempt for bug: #1952 Compiler/FrontEnd/SCodeDependency.mo - call analyseClass on class extends in SCodeDependency.analyseElement
b23d520c1Adrian Pop- fixes for bug #1951 add DAE.TSUB to array(fcallReturningTuple for i in range) -> array(tsub(fcallReturningTuple, 1) for i in range) - handle DAE.TSUB in prefixExp - add testsuite/flattening/modelica/arrays/ArrayTuple.mo
b0097a641Adrian Pop- calling Env.mergeEnvConnectionSet in Inst.mo is not really needed.
d7da10e11Adrian Pop- do not failtrace on Env.mergeEnvConnectionSet
97dbafff5Adrian PopCompiler/BackEnd/Derive.mo - add der(sign(x)) -> 0 to Derive.differentiateExpTime
726d9594bAdrian Pop- send in the file info in BackendDAEUtil.checkAssertCondition so we know where the assertion got triggered
d9c000147Adeel Asghar- escape the generated code strings.
b97f1f43dAdeel Asgharhandle input causality for the variable.
97e9473b7Adeel Asghar- Make the FMI Export generate XML according to the specification.
894d61195Adrian PopFixes for #1946 - guard Types.subtype2(ty1, tuple(ty2, _)) -> Types.subtype2(ty1, ty2) and Types.subtype2(tuple(ty1, _), ty2) -> Types.subtype2(ty1, ty2) to be executed only for normal Modelica and not MetaModelica
89032e8c2Adrian PopFixes for #1946 - Types.subtype2: + check of tuple vs. type: i.e. abs(fcallReturningTuple) we try subtype of the first tuple element with the other type!
a07c9c2aeJens Frenkeltabs
4235b07ceJens Frenkel- continue translateModelFMU SimulationRuntime CPP
2c2be1649Adrian Pop- small optimization, use funcs directly do not call get func twice.
3fc65f514Lennart Ochel- remove some redundant parts of SimulationRuntime/c
3d93ab919Jens Frenkel- remove duplicated variable
475139e7fLennart Ochel- bugfix for: unfixed parameters were initialized with their start values, instead of what the initial system says
3f6bf6c72Jens Frenkel- bugfix for last commit
03c395586Jens Frenkel- additional fix for #1948
1e44e8f35Jens Frenkel- replace bind expression of final vars with evaluated expression
12a960153Jens Frenkel- bugfix for getEqnsforIndexReduction
75ad6b113Adeel Asghar- few minor fixes in the co-simulation generated code.
90c1c45b6Adrian PopComponentReference.mo - fix comment
82500ed30Adeel Asghar- removed some unused code. - documentation. - Some minor fixes.
094277800Jens Frenkel- fix tabs
3b0a97bc9Jens Frenkel- bugfix for singulare sytems, add test SingularePlanarLoop, Ticket #1948
911990780Martin Sjölund- Force gcc-4.4 for OMOptim builds
7868d92edPer Östlund- Disable SCodeLookup.crefStripEnvPrefix when the scodeInst flag is used.
ff8dbdadePer Östlund- Some enumeration improvements in the new instantiation.
ceb5e01a3Martin Sjölund- Don't link in sundials if it's not working...
c7de30d62Jens Frenkel- bugfix for array_algorithm, replace also lhs of array assign statement, test does still not work because values of parameters seems to be written to early (before initialisation) in mat file
6ae5bb381Niklas Worschechfix in Idas solver for event handling, added reinit before Idas call. fix in cpp template in event iteration if discrete variable has changed.
991b0366cAdrian Pop- fixes for bug #1947
89f929ffaPer Östlund- Some code cleanup.
bcd287cd9Per Östlund- Improved handling of package constants in SCodeInst. - Fixed function parameter order in SCodeInst.
14dde9706Adrian PopMakefile.common - remove testing from runtimeCPPinstall and move it to testsuite/Makefile to be part of the full test. - some build might fail, I'll fix them as it goes.
431c2f9e8Niklas Worschechfix for coping all cpp runtime libs to /omc/lib/cpp in CMake file
bb4662dd5Niklas Worschechfix in cpp template for correct jacobian tmp vars vector allocation.
6288e04d3Jens Frenkel- fix bootstrapping
e4144967dJens Frenkel- expected output
dedaa6a68Adrian Pop- attempt to fix bootstrapping.
1f6675571Jens Frenkel- partial support for Media Models - Matching.c: do not generate transposet incidence madrix if not necessary - move some Media Models to working group
9b48df584Martin Sjölund- Fix MeasureTime.mos
fa441d1c8Per Östlund- Got rid of GNU extension asprintf to please clang.
c5769daa2Mahder Alemseged Gebremedhin#1821 - Remove unnecessary error messages.
2b8bc0b50Per Östlund- Fix component order in SCodeInst. - Added a couple of tests I'd forgotten.
4de0aa57aMahder Alemseged Gebremedhin- revert r13984.
d31ed400cPer Östlund- Oh RML, why are you so lazy?
3dda9d88fPer Östlund- Fix compilation.
bf001f11aPer Östlund- Don't return the class from InstSymbolTable.addClass, it's no longer needed since classes are flattened in SCodeInst.instClassItem.
14915b6c7Per Östlund- Handle package constants in SCodeInst instead of collecting them in SCodeDependency.
d286b650fMahder Alemseged Gebremedhin#1821 - Remove unnecessary error messages.
69de9ca3cMartin Sjölund#1941 - Fix for outerProduct and other earlyInline functions with unknown dimensions in output
f6e7c7782Per Östlund- Fixed connect with multiple inheritance, in both old and new instantiation. - Added test case MultipleInheritanceConnect and updated Modelica.Fluid.Examples.HeatingSystem test which is now balanced.
2c58d767fPer Östlund- Fix bootstrapping.
09fafda99Adrian Pop- print more info on +d=showEquationSource - add more info from where the unconnected flow comes (add Element info to added inside flow) to get nicer +d=showEquationSource display.
8929a6530Adrian Pop- get rid of tabs once again.
8b72b3028Adrian PopSCodeAnalyseRedeclare.mo - do not crash omc on types containing functions referring to the type the testsuite now works without issues with +d=scodeInstShortcut and has 309 failures.
c5aec8131Jim NutaroCode cleanup in adevs backend
d4c7c4564Jim NutaroFixed minor problem in nonlinear system solver for adevs backend
789617ef5Jens Frenkel- ignore toplevel inputs for parameter bound equations
84b2c97fcJens Frenkel- size of enumeration type is 1
d64605320Jens Frenkel- fix for last commit, ignore constants
dc25bc533Jens Frenkel- fix for last commit, ignore constants
a998770c5Alachew Mengist- Added XML code generation for Optimica Extension
b3fb8f57aJens Frenkel- add in case of constant variables every time a parameter bound equation to the simulation code and in case of parameters only if it is not constant
e0f41a7f3Per Östlund- Removed some dead code from SCodeDependency. - Updated fluid tests.
9a2547acbPer Östlund- Don't add inside flows for empty arrays.
be531da0dJens Frenkel- add size of equation when dump equations - fix for sizeof(typeof(ENUM_LITERAL)) - add code to add the pre vars of alias vars (not aktivated)
d8d7974cdPer Östlund- Rewrote extends qualifying phase to handle more cases and do more checking. Now checks for inherited extends and checks all parts of the base class name for replaceability. - Added new package EnvExtends and put most of the extends stuff in it. - Added check for missing redeclare keywords when redeclaring classes (see MissingRedeclare1.mo test case). - Implemented better propagation of modifiers to multiple extends. - Renamed test folder flattening/modelica/inheritances to extends.
8e25f4285Adrian Pop- small fixes in OpenTURNS connection: write the input/output variables in the correct form (x.y not x_y) and order in the wrapper xml file
a0c994d60Martin Sjölund#1941 - Handle inlining of outerProduct() instead of treating it as a builtin call
27063fc7dMahder Alemseged GebremedhinFix output.
0606b02d7Mahder Alemseged GebremedhinParModelica: Check declaration of global vars in kernel functions. And add omc prefix to parallel/kernel functions.
e8c210e97Martin Sjölund#1941 - Added code generation for outerProduct
6c5ab518aJens Frenkel- test new remove simple equation implementation, switch off
76a03a43cJens Frenkel- test new remove simple equation implementation
29ff8d9f3Jens Frenkel- bugfix msvc compile - bugfix for last commit for result .mat
c866ca580Jens Frenkel- bugfix for alias a = time - bugfix for msvc compile
bfcaaaa4eAdrian Pop- set the type of T_UNKNOWN to "complex" (void*) when +g=MetaModelica and to "real" (modelica_real) when not. - have the type of the inStream operator to be T_REAL_DEFAULT as T_UNKONW reaches the code somehow.
0794b97cdAdrian Pop- assume real for T_UNKNOWN + a comment in the C code. wonder how many tests this will break :)
f56eff9d2Adrian Pop- don't do the second dependency analysis in CevalScript.mo and the third in Inst.instantiateClass when +d=scodeInstShortcut is active (it doesn't work yet in all cases)
ac2680ac4Adrian Pop- make models dumped with +d=scodeInstShortcut able to instantiate when loaded again in OMC. Check differently the last ident if __OMC__ is present otherwise you get: first element is: .Modelica.Fluid.Interfaces.FluidPort_a__OMC__70 port_a; second element is: .Modelica.Fluid.Interfaces.FluidPort_a__OMC__88 port_a;
b7a71957fAdrian Pop- mind your tabs please!
d6f21debdJim NutaroCode cleanup in the adevs backend
2027acf25Jim NutaroUpdated adevs backend
fbc30a8d5Jens Frenkel- switch replaceEdgeChange on
18145ecfdPer Östlund- Evaluate generated inStream calls too.
0a0f19382Jens Frenkel- add module replaceEdgeChange
1fde101baAdrian Pop- sort inners again to put inner Modelica.* component; first. - some tests might need changes, I'll do that next
7ecfb70fcAdrian PopFlags.mo - +d=showEquationSource to display where an equation comes from. easier for debugging of where the equations come from.
e528f23b4Alachew Mengist- Added XML code generation for Scalar variable type- min and max attributes
e1a595aedJim NutaroMixed generates usable code for Adevs backend. Need better test cases.
d6c1fa4acWilli Braun prevent throw for division by zero in non-linear system solver, since the solver can manage that.
234451a67Adrian Pop- no more tabs please.
6b899c369Martin Sjölund#1941 - Allow all sorts of weird stuff if external language is "builtin"
9913f6728Jim NutaroFixed initialization of matrix in the linear solver routine
68b26b762Adrian Pop- 5th version of the SCodeInstShortcut.mo (+d=scodeInstShortcut)
63fda3a3fAdrian Pop- fix bootstrapping.
4d2ce3aa5Martin Sjölund- Handle connecting arrays of records with different names
0bb157268Jens Frenkel- fix for replace not pre,change,edge with alias, still not enough to get all working because if edge and change will not be replaced tarjans algorithm cannot sort in right order
17fb90678Lennart OchelBackEnd - remove unneeded vars testsuite - add initialization test for ModelicaTest.MultiBody.FourbarVariants.JointUSR (#1929)
f52e7dcadAdeel Asghar- make the initial section balanced.
ab9d38361Jens Frenkel- bugfix for last commit
885570768Jens Frenkel- additional fix for last commit
ff9e8e76cJens Frenkel- get testsuite working back, Lennart can switch of simplifyTimeIndepFuncCalls module in backendpipeline
e3490e101Jens Frenkel- bugfix simplify change, edge
a395c3440Jens Frenkel- bootstrapping
0833cd105Adeel Asghar- fixing FMI.
945b98908Jens Frenkel- do not replace PreVariables with information from time-equation-systems - move simplifyTimeIndepFuncCalls behind solveinitialsystem to replace all the pre variables for code generation
0757b9d7cJim NutaroCorrections to adevs backend. Still does not support MIXED equations
f15694a28Martin Sjölund- Don't print this false positive
8a04612a5Lennart OchelCompiler/BackEnd - shrink/simplify BackendDAEUtil.analyzeInitialSystem1 - fix implicit pre-calls (e.g. edge, change)
1a6b1533aJens Frenkel- use a^b = f(..) -> a = sign(pre(a))*(f(...)^(1/b)) only for even integer numbers of b
2b4587a34Jens Frenkel- and switch off
0fda3e240Jens Frenkel- fix bootstrapping - try if relaxation of linear systems works
c5723164eJens Frenkel- ExpressionSolve: a^b = f(..) -> a = sign(pre(a))*(f(...)^(1/b))
92c84b1dcJens Frenkel- bugfix ExpressionSolve
933946103Jens Frenkel- bugfix for r13850, add when equations not to ode or algebraic equations
048d38f7aJens Frenkel- fix bug in ExpressionSolve
7faaff1fbJens Frenkel- continue redesign remove simple equations - BackendVarTransform add functionalety to replace der(cr), this is realy helpfull to handle states - redesign ExpressionSolve.mo
d956ca330Lennart OchelCompiler/BackEnd - improve warnings and dumps - move printSparsityPattern to BackendDump.mo
971bd5a49Willi Braun disable tearing of linear system as long as they aren't handled efficent during the simulation
bccc80f0dWilli Braun activate sparse colored jacobians for dassl as default solver
983e45b6eMartin Sjölund- Fix lexer to only add optimica keywords if +g=Optimica is used
821b9748aMahder Alemseged Gebremedhin+ Optimica: + handle Optimica vars with opt. instants in class attributes. e.g. x(finalTime) + 1, where x is a variable. + Added a new flag for Optimica. + Added new class attribute objectiveIntgrand.
adaad1dfcMartin Sjölund- Some fixes for evaluating bindings
a60c17830Lennart OchelCompiler - remove unneeded function BackendDAEUtil.addBackendDAEEqSystem - add warning to Expressions.containsInitialCall - remove most of the changes from r13894 regarding BackendDAEUtil.mo testsuite - move StateGraph tests to WRONGRESULTTEST, as long as the implementation let other tests fail
f997c47c8Martin Sjölund- Tail recursion
4bb3ae6c1Martin Sjölund- Remove unused ceval call with empty cache and env
4658793b6Jens Frenkel- get Modelica.StateGraph.Examples.ControlledTanks.mos working - move expandAlgorithmsbyInitStmts to SimCodeDump - improve Error Message "Inverse Algorithm needs to be solved for ..."
a9a81ab31Jim NutaroSwitching adevs backend to use the SUNDIAL solvers
2e45e9e48Jens Frenkel- get 6 from 7 StateGraph examples working with solveinitialsystem - collect all variables used in pre, and add equation for each unused pre var indroduced by a inaktive when equatin an equation pre(var) = var.start - BackendVariable.varStartValueType - ComponentReference.isPreCref - Expression.containsInitialCall: ... or Initial() - ExpressionSimplify: cases for a and not a > false, a or not a -> true, a and a -> a, a or a -> a maybe split simplifyBinary in simplifyBinary and simplifyLBinary
30af89366Adrian Pop- consider also variables with uncertain=Uncertainty.refine as inputs to the OpenTURNS wrapper.
4c0b5e137Lennart Ochelinitialization - continue with handling of under-determined initial system testsuite - add test for under-determined initial system - remove unneeded test
43689a20eLennart Ochelinitialization - first steps to solve under-determined systems testsuite - add case for under-determined initial system
0c9491b1aMartin Sjölund#1936 - Partial fix to make final modifications work on redeclares. Now passes front-end, but loses some modifications. Possibly related to #1922.
5b79e8de8Jens Frenkel- remove uneseccary case from replaceExp for pre(-a), because this is also done in simplify
d201a6a6dJens Frenkel- use Expression.splitRecord instead of trying to match all combinations of crefs and calls that are possible to split
d2e5bd1f1Jens Frenkel- do not change discreter variables in der-function to states - diverentiate also complex equations and records - continue redesign remove simple equations - rename MyModel->ParameterCycle to avoid conflicts
d753a1a10Jens Frenkel- becauase edge and change uses a and pre(a) do not ignore them - continue redesign of remove simple equation
a802fd21fLennart Ochel- fix collectInitialVars - edit compiler-warnings using +d=pedantic
a4f5f0fafNiklas Worschechfix for jacobian tmp var in cpp template
5b0d61b60Martin Sjölund- Add dumping of cast to records - Bumped MSL version
55611ee51Martin Sjölund#1922 - Handle type-casting from records with the same components but different names' - Improve scalarization of record equations in the front-end. Made it worse in the back-end (back-end does not handle cast of records)
eb1508919Niklas Worschechadapted modifications of jacobian to cpp template
e4dafeeb0Lennart OchelCompiler/BackEnd - fix symbolic initialization of discrete vars - fix handling of when-clauses during initialization - remove some misspellings from function descriptions - add debug-flag: +d=pedantic SimulationRuntime/c - fix a bug in evaluating residuals for global homotopy testsuite - add test cases for initialization of discrete variables - add testcase for initialization of fullRobot
17ab3a64aAdrian Pop- forgot to add this.
843c11a18Adrian Pop- add more error info on the issues that might appear.
f4d2ce63bJens Frenkel- avoid events in inlined functions
f63133cadJens Frenkel- bugfix for BackendEquation.aliasEquation
f26af9260Niklas Worschechfix in cpp template for set help var in update method
413c8ea38Martin Sjölund- Add code to codegen/dump cast to record types
ac81a22ccJens Frenkel- continue redesign of remove simple equations
efe2a7a17Jens Frenkel- Expression.iszero use List.mapListAllValueBool in case of matrix - improve BackendEquation.aliasEquation
b874cd64fJens Frenkel- Expression.typeof return boolean or array of boolean in case of relation, because relations return boolean values
0d5f9adcaJens Frenkel- CodegenC.expTypeFromExpFlag return {boolean,modelica_boolean} in case of relation, because relations return booleans values
b0a564a54Jens Frenkel- fix for fmu with nonlinear systems, call allocateNonlinearSystem before simulate - fixes to compile fmu with visual studio
09dcbcf6fJens Frenkel- do not throw information away
a93682646Adrian Pop- added EnumToInteger(Enumeration) -> Integer as a workaround until Dymola supports Integer(Enumeration) -> Integer.
79e5621e7Jens Frenkel- start to improve remove simple equations
db461f3abAdeel Asghar#1933. Fixed the exported FMUs fmiTerminate. Use functions.freeMemory instead of free.
6eaf18389Jens Frenkel- support array vars in when equations
2bfbbe8f4Jens Frenkel- support tuple equations in when equations with TSUB, this is not so good see Ticket #1932 - bugfix EquationSize for WhenEquations
d464706f7Jens Frenkel- support also nested if equations in if equtions then branches
eaa1955daJens Frenkel- basic support for if equations in when equations, still not supported nested if equations in if equations then branches.
feed3681eAdrian Pop- better error message for not handled when equation.
e07e8bebcAdrian Pop- use unparseType instead of printType in Types.printConnectorTypeStr as is more user oriented.
e96e9777aAdeel AsgharAllow user to set/unset debugLogging.
e65c84459Adrian Pop- fix bootstrapping
194d685acAdrian Pop- print types if components are not there in Types.printConnectorType - InstSection.validConnector now allows expandable connector components even if they are not connectors - print the type of the outer of a missing inner component (a couple of tests will fail, I'll fix them in my next commit)
2529bf677Adeel Asgharstupid copy paste. Use fmiModelIdentifier variable instead of hard coded value.
11d4c33baAdeel Asghar- call fmiSet* functions.
c0e818a3aMartin Sjölund- Fix for bootstrapping
c303f9f7dLeonardo Laguna- Adding option to dump all the steps performed when calling uncertainties extraction.
defe62832Adrian Pop- fix bootstrapping.
98add9f35Adrian Pop- fixes for expandable connectors (AVM 09 & 11 are working now): + do not delete the components already defined inside the connector + remove from DAE / connection sets all expandable variables that are not connected to real variables - use ComponentReference.crefEqualNoStringCompare in ConnectionGraph.mo - activate forgotten 07.mo in testsuite/flattening/modelica/expandable/ExpandableConnectors.mos - expected output for: testsuite/flattening/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.fullRobot.mos testsuite/flattening/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.mos
6ad962e28Martin Sjölund#1931 - Do not scalarize vector equations + Except constants, parameters, records, complex types, external objects, and maybe some more
9019f879fMahder Alemseged Gebremedhin+ Propagate class attributes for Optimica optimization classes to templates.
a3c53264ePer Östlund- Remove one of the two f2c.h headers to fix segfaults on some operating systems.
3e3b194bcMartin Sjölund- More typeinfo when dumping with +t
06ebe5c81Jens Frenkel- fix last commit
672a36fd4Jens Frenkel- rename flag more grammatical
ff129474aAdeel Asghar- Fixed FMI Model Exchange.
8b4077b7bJens Frenkel- start to implement stateselection during simulation via pivod function, add flag +dynamicpivod
8caaaf89dPer Östlund- Use the face stored in OUTERCONNECT instead of trying to determine it in InnerOuter.retrieveOuterConnections2.
8be162c88Martin Sjölund- Bugfix codegen for unary minus of array
ccf10b896Martin Sjölund- Added usub_alloc_real for expressions (we do not want to negate the source if it is used later...) - Added some debug info for use with +t
cb2f485a8Adeel Asghar- flow control.
015894c06Martin Sjölund- Calculate the constness of partevalfunc calls
2d454deb7Jens Frenkel- consider not pre,change,edge on rhs when equation is solved and rhs is checked for componentref
36e834a41Adeel Asghar- get rid of initial sections.
04336733fWilli Braun - add relative tolerance to zero-crossing hysteresis function - changed non-linear solving strategy a bit - update test-cases
e95573de9Adeel Asghar- minor fix.
817dc2bbcAdeel Asghar- Trying to fix FMI.
97cd6bbb0Lennart Ochel- initialization - always generate all the stuff for the numerical initialization (even if +d=solveinitialsystem is used) - add executable-flag [-iim symbolic] to solve the initialization problem symbolically (currently you also need +d=solveinitialsystem) - remove obsolete function: - ./Compiler/BackEnd/SimCodeUtil.addJacobiansToSimCode - SimulationRuntime/c - introduce new initialization option: -iim symbolic - improve dumps - remove c++ comments - remove unused vars - make some code fragments more readable - use comments - even for function descriptions! - use meaningful variable names - use spaces between arguments
4eae838f1Adrian Pop- use path equal as it might be fully qualified.
955d822c6Adrian Pop- add extendFrom to builtin API.
63dbb6ef6Jens Frenkel- solve small (less than 10 other equations) linear torn systems with linear solver, commented out because not yet testet
a11f48b40Willi Braun bug fixes - fixed zeroCrossings generation - initialize simulationInfo.discretCall - chnaged return values if initialization fails
53bad54d4Per Östlund- Remove debug printout.
b9444fb08Per Östlund- Flatten the class structure in SCodeInst.instClassItem, so we can avoid handling EXTENDED_ELEMENTS everywhere.
fb796ec0cMartin Sjölund- Correction for ModelicaTest version
1972b1407Martin Sjölund- Fix indentation of list() command for if-statements - Add comments to algorithmitem
a06d72bbcJens Frenkel- improve error report for index reduction
ea02d588dMartin Sjölund- Update MSL 3.2.1 (Complex and ModelicaTest are now version 3.2.1)
cbad69c40Martin Sjölund- Fix codegen of empty array
dabac3fb4Adrian Pop- fixes to connection of expandable connectors array instances (AVM 07 model works now). - added example with for equations testsuite/flattening/modelica/expandable/07.mo
64fe03a0fWilli Braun - decrease tolerance for zero-crossing
f8a637b15Jens Frenkel- DynamicStateSelection: start to implement new feature for quaternion constrained equation
1f06aedecWilli Braun - quite big change to c simulation runtime - solving non-linear systems (almost) always continuous - update debug output of non-linear systems - generate additional only relations - updated testsuite
71fa35872Willi Braun bug fixes - BackendDAECreate.mo fixed findZeroCrossings, scan when clauses with all other shared stuff - CodegenC.tpl fixed memory leak in updateBoundParameters.
1718ed497Adrian Pop- empty change to test Hudson configuration (OpenModelica*CLANG* should run on testone)
4637378bbAdrian Pop- a build document for Windows from Zsolt Lattmann - testing new Hudson setup
19b78f502Jens Frenkel- move zero size equations (terminate,assert,noretcall) to removed equations in initial system
4c30a3696Adrian Pop- fixes for Ticket #1923 - correct and way faster handling of overconstrained connection graph (not based on equation source which deleted more equations than it should have in some cases) now the broken connects are removed from the connect sets and the allowed ones are put back. - move the handling of overconstrained connection graph to ConnectUtil.equations so we do everything in one place. - fixes to testsuite/simulation/libraries/msl32/Makefile (USE THE FILE NAME NOT THE TEST NAME!) - probably a lot of flattening models will fail now because the equations will be moved around. i'll fix these when I get the output from Hudson.
b8269df1bJens Frenkel- avalute also parameters with start value and final=true - start to implement fmu export for cpp runtime
04f010ebaAdeel Asgharsome fixes for FMI initial algorithm section.
f9a344036Martin Sjölund- Handle comments in equation-sections
6612c1571Niklas Worschechchanged folder of cpp runtime libraries to lib/omc/cpp
bf4261e3aJens Frenkel- Reimplement DivisionByZero easier, solves Ticket #1895 - fixes vor msvc compile in case of empty residualEquations or zeroCrossings - fix order of Equations for DynamicStateSelection
f0c43cb29Lennart Ochel- minor code improvements - minor documentation improvements
1843547ffJens Frenkel- DAEDump: add missing elements to dump2
eaa8f3f30Lennart Ochel- set a uniform stop criterion for all initialization methods - always prompt an error, if the initialization fails
310bc2010Lennart Ochel- fix algorithms for initialization - disable some FMI/ModelExchange tests, as long as they are built on a buggy implementation of algorithms in the initialization
8e4e92ae9Willi Braun- fix test - fix for windows build
cff30ea09Willi Braun - moved all f2c code to math-support - moved nonlinearSolver interface to solver - fixed testsuite
37af1394cWilli Braun - fixed reinit in algorithm statements
71fc5e6b3Willi Braun event handling update: - zero-crossings are handled as hysteresis function - improved selection for sample or state event Testsuite updates: - updates to some result files - enabled Modelica.Mechanics.Rotational.Examples.HeatLosses - disabled Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects (has some issues with state selection and current event handling) - disabled Modelica.Electrical.Analog.Examples.NandGate (other results) - disabled Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc (non-linear solver) - disabled Modelica.Electrical.Analog.Examples.SwitchWithArc (non-linear solver)
37b07f11bPer Östlund- Fixed various issues with function instantiation in the new instantiation. - Added new package InstFlatten (work in progress). - Switched back partial instantiation to be an error in the new instantiation.
bfb4f3862Adeel Asghar- SearchClassNames API.
cb7dbf9eeJens Frenkel- better error message for sqrt
bbc0ebf90Adrian Pop- fix Compiler/BackEnd/BackendDAECreate.mo - use +locale=C testsuite/openmodelica/bootstrapping/LinkMain.makefile.mingw
e7bda3b65Jens Frenkel- BackendDAECreate: - remove asserts,terminates from if-equations - check type on EqEquations and Tuple-Equations when generate Equations - BackendDAEOptimize: - remove also termintates from if-equations
48fe5b834Niklas Worschechextended make file to build cpp runtime with visual studio
58ad511b6Jens Frenkel- BackendVarTransform: do not replace iteration variables from for loops, why is not CREF_ITER used for these variables, this would make thouse thinks much easier.
6aaa045a2Martin Sjölund- Let's also copy MSL 3.1 ModelicaServices...
24b950589Adrian Pop- fix build.
f9a824328Martin Sjölund- Parallel make omlibrary
038b4f72aMartin Sjölund- Updated MSL 3.2.1 to latest version (should improve selection of fixed variables for some more examples) - All MSL 3.2.1-related files are now picked from svn:externals and not just the Modelica package - Removed obsolete pltpkg.mo
413c74bdaJens Frenkel- switch partitionIndependentBlocks on
832bc5efaJens Frenkel- add postoptimization module to replace constants in the system - used for Modelica.Electrical.Spice3.Examples - switch off eqequation to alias - ThermoSysPro.Examples.SimpleExamples.TestJunctions4.mos fails because source.Q(start = 500.0) , source.Q(start = 100.0), sourceP.Q the same - PlanarMechanicsForTesting.Examples.SingleTrackWithEngine.mos - stateselection - PlanarMechanicsForTesting.Examples.SimpleCarWithDifferentialGear.mos - rename ERROR -> ERROR0 to avoid warning
f7770b1cfJens Frenkel- use eqequation to remove aliases in BackendDAECreate
62c473c90Jens Frenkel- fixes for solve inital system
b8858d02aJens Frenkel- c comment style // -> /* */ - bugfix for initalSystem and numberOfEquations
f1174e789Niklas Worschechextended cpp template, make file for visual studio
9ef3f0afeMartin Sjölund- Remove debug print
18a7648abMartin Sjölund- Ceval arrays with an unknown dimension size
4f5644c55Per Östlund- Implemented partial support for handling redeclares with multiple inheritance.
7096cd2d5Martin Sjölund- Simplify cast of cat
98f66ae76Jens Frenkel- fixes for solve inital system
3d3c19ef6Adrian Pop- small fix to extends from basic type.
1d312ab40Martin Sjölund- Fix for multi-dim array-literals
2f91bf2b1Leonardo Laguna- Changing the scope of a function
10cfa2fc0Martin Sjölund- Missing function to create a Real range in runtime
a393cde52Martin Sjölund- Also evaluate replaceable functions - Moved one fluid flattening test to failing
9138db430Jens Frenkel- report error only once
e7c9a72b9Jens Frenkel- use flag +d=solveinitialsystem to solve the initial system symbolical
fc61c16d2Jens Frenkel- switch Symbolic generation of initial System of to fix testsuite first
a5807245bAdrian Pop- removed Compiler/FrontEnd/SCodeTransform.mo replaced by Compiler/FrontEnd/SCodeInstShortcut.mo - added +d=scodeInstShortcut,showSCode flags to call the new SCodeInstShortcut package. - we might even get rid of passing class names around in SCodeInst as is not needed anymore. - first version of new Compiler/FrontEnd/SCodeInstShortcut.mo package works rather fine for some models and has issues with others. More context of qualified types is needed to fully make it work. - fix scodeinst tests. - allow input RealInput and output RealOutput in InstUtil.mergeDirection as this is used in MSL 3.2.1: Modelica.Blocks.Math.Add3 (maybe we should fix MSL?) - more flags in testsuite/openmodelica/bootstrapping/LinkMain.makefile.mingw to get rid of warnings.
eb697858fAdeel Asghar- For now don't generate Empty Array assignment statements.
c4a26ab02Jens Frenkel- fix compilation
709c8f2deJens Frenkel- fix last commit
bd6905cf9Jens Frenkel- remove debug print
faef3b110Jens Frenkel- solve the inital system symbolical in case of equal var and equation size - skip external objects from algorithm outputs - fix test Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier
0721299beJens Frenkel- move only equalityConstraint with array[0] return value to removed equations
d38fdc427Jens Frenkel- bugfix for last commit
9db75f93aJens Frenkel- move equalityConstraint equations to removed equations - move Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.mos and Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier to working test
b4ccec231Martin Sjölund- Fix scalar flag when using matrix constructor
f3b67f77eMartin Sjölund- Let +t print information if an array is scalar or not
e02d6b7b7Per Östlund- Print out a warning if a redeclared modifier element can't be found, instead of silently failing.
95d80ea5aPer Östlund- Fix propagation of redeclared redeclare modifiers in new instantiation.
e5bb25b10Willi Braun- added support for terminate() call in runtime - changed assert massage from warning to info
847cbb60eJens Frenkel- replace evaluated parameters in if-expressions before index reduction - move Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary to working tests
1604d5a67Jens Frenkel- fix test Modelica.Blocks.Examples.FilterWithDifferentiation - read_matlab4: doublepresision -> doublePrecision
cd529694fJens Frenkel- bugfix for OpenModelica.Scripting.compareSimulationResults: in case of empty vars compare all vars from reffile
1e1df2fcbMartin Sjölund- Easier code to maintain
8286edea8Jens Frenkel- use for mmcTypeShort in case of T_COMPLEX not error function because get an error but found not the wrong code seems to be odd
2a0652e4dJens Frenkel- use error function to report errors in CodegenC.tpl
ef848b5e0Lennart Ochel- initialization: fix lambda-control for nelderMeadEx - initialization: fix stop criterion for nelderMeadEx - initialization: fix rescaling during initialization - testsuite: update simulation results
e32c64f9eJens Frenkel remove initial algorithms from initial equations (they are called in bound parameter equations), I have no clue what the reason is but is was done before also, maybe Lennart know the reason
4f42fb0daJens Frenkel- added support for {cref,cref,cref,cref} = .... - improve residual code generation for array equations, calculate array equation only once and do not asub
acd321548Jens Frenkel- use ComponentReference.printComponentRefStr instead of ComponentReference.crefStr to consider subscripts for tempvariable
63415d50eJens Frenkel- bugfix SimCodeUtil.createNonlinearResidualExp for bool and string - bugfix SimCodeUtil.makeSES_RESIDUAL1, use createNonlinearResidualExp instead of Expression.expSub, this works also for bool and string - CodegenC.daeExpLbinary, report better error message
24286edbcJens Frenkel- improve implementation for residuals of algorithms, replace also array crefs with tmp crefs - ToDo: we need case for ARRAY({cr,cr,cr,...}) in CodegenC.writeLhsCref - add comments for missing cases for tuple equations
e1bdd99ccJens Frenkel- fix some tests, move some to failing
d32228497Jens Frenkel- avoid divisions by zero in residual equations - add parameter equations to equationInfo, because they could also have nonlinear systems - add listAppend to SimCodeTV, how it is posibble to append two list and store this list in a variable? - fix tabs f2c.h - improve test ParameterCycle, check results of var1 and var2
bf072eda3Martin Sjölund#1907 - Allow empty arrays on lhs of assignment
d2995bbcfNiklas Worschech-fix in cpp template missing initial method in algloop system
288d72d56Willi Braun - fixed bug in solving non-linear systems
c551b3548Jens Frenkel- bugfix for Modelica.Blocks.Examples.Filter - tap
be9016194Jens Frenkel- bugfix for tuple initial equations
0e22c331cLennart Ochel- revised dump system for the c-runtime
4f3d59befPavol Privitzer- C# CodegenCSharp.tpl fix for residual functions generation
5ffae1550Jens Frenkel- improve tearing, try to select equation with higest difficulty as residual equations
6f51bb7abChristian SChubertremove warnings in read_matlab4.c
abe7b9606Jens Frenkel- when generating the residual exp for nonlinear system avoid divisions by zero with a - b/c -> a*c-b, a/b-c -> a-b*c
564ad4e12Jens Frenkel- start to generate solveInitialSystem
6cfd21cb8Adeel Asgharremoved some unnecessary comments.
8a78a62b3Adeel Asghar- Use Real value for fmiValueReference instead of Integer. - some other minor fixes.
917a55af2Jens Frenkel- report less warning when merging alias vars start value
a768917bfJens Frenkel- bugfix local shadow variable
4fc99df54Jens Frenkel- DynamicStateSelection: do not change stateselect value when change var kind to state
05ece79ccJens Frenkel- bugfix mergStartValues, now use the fixed one, also if it has not an explicit start value
5eab378a4Jens Frenkel- bugfix adjacencyRowEnhanced - fix tests
4e24d9496Pavol Privitzer- C# template update toward the new zero-crossing treatment - rename of the mixed helper function nextVar() -> NextMixedBoolCombination() - better code for DIVISION()
f90a5ed22Bill Janssenremove extra semicolon
7fb90d8e3Lennart Ochel- fix initialization problems with fixed vars without explicit start-values
d51ac8c40Jens Frenkel- bugfix for Modelica.Blocks.Examples.FilterWithDifferentiation
2075575d1Jens Frenkel- fix commit r13617
ffb96c886Martin Sjölund- Only force ffloat-store on x86 (32-bit) - Also force fortran fpmath for solver files
d04399433Martin Sjölund- Force ffloat-store or mfpmath=sse for libf2c code
03580a197Martin Sjölund- Add MSL 2.x to versions that can load files with bad within-statements
4105a55d5Martin Sjölund#1906 - Added API commands: getCompiler getCXXCompiler getLinker - Added new OMEdit setting: Compiler
12a6c9c0dJens Frenkel- bugfix for runtime Cpp in case of incomplete arrays - remove testsuite/cppruntime because there is the same directory ad testsuite/openmodelica/cppruntime - fix tests
be79c29e0Willi Braun - nonlinear solver: don't start solver if is already solved. - now LossyGearDemo2 does work. - minor changes (fix some debug outputs and correct test)
5b8839017Per Östlund- Small fix for cref prefixing in SCodeInst, now even less magic \o/ - Added unary plus to ExpressionDumpTpl.
078333f6dAdrian Pop- SCodeMod.mo: add some more functions (remove Mod containing self reference, remove self reference ident from expression).
9acb77ff1Adrian Pop- Absyn.mo: add crefFirstEqual - ClassInf.mo: add stateToSCodeRestriction - Expression.mo: add DAE.ENUM_LITERAL in unelabExp - Inst.mo: try to handle Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces but it doesn't work yet.
775c7735fAdrian Pop- add List.applyAndFold1.
18336587cJens Frenkel- bugfix for pre(ASUB(..))
99852c841Jens Frenkel- fix bootstrapping
2606865b2Jens Frenkel- tab
9e432d472Willi Braun - change debug output for solver, event and zero crossings
834c214a9Lennart Ochel- fix compilation using ipopt for initialization
59276d0e3Per Östlund- Improved cref prefixing in SCodeInst, now uses less magic. - Changed InstTypes.Prefix to be a proper uniontype instead of a list, for no apparent reason. - Some small class extends improvements.
9bffa1945Jens Frenkel- remove Simple Equations, use BackendVarTransform.replaceWhenClauses to replace aliases in reinit - replace BackendDAE.DAEHandlerArg with BackendDAE.StructurallySingularSystemHandlerArg - bugfix dynamic State Selection, remove last subs and replace last type of set - report more information in case of Reference file has not enough time points - fix tests
3c9ddcb96Willi Braun - added config flag to deactivate tearing: +noTearing - added debug flag to deactivate tearing of mixed system: +d=noMixedTearing
01bffef52Lennart Ochel- add description-strings for initial residuals for improved dumps
f8dc98030Jens Frenkel- dump vars and Equations in case of mixed system with something else than EQUATION in discrete part
446f0e886Jens Frenkel- Expression: check type before add,sub,mul,div expression - ExpressionSolve.mo: cases for cr = exp, exp=cr, -cr=exp,exp=-cr,!cr=exp,exp=!cr - ExpressionSimplify: pre(a+b) -> pre(a)+pre(b) - move some test to working group
18167cd80Jens Frenkel- CodegenC.tpl: support pre(not(cr))
e24f22f16Jens Frenkel- bufgix IncidenceMatrix solvable for LUNARY
d6b219309Willi Braun - fixed one potential uninitialized value
c81b9f976Adrian Pop- display how many tests are OK.
a5d877506Adrian Pop- do not exit with failure so we can see the log.
92ce9f973Adrian Pop- show the entire testsuite-trace.txt so we see more info in Hudson.
adcf54a99Lennart Ochel- initialization: update some function descriptions for better documentation - Initialization: remove redundant data-structs - initialization: minor fixes (e.g. memory leaks) - initialization: do not longer handle hybrid system different for each initialization method - testsuite: initialization: add new testcase for discrete changes during initialization - testsuite: ThermoSysPro: update simulation results - testsuite: fix failing tests regarding the number of intervals - SimulationRuntime/c: avoid warnings
c438ad521Leonardo Laguna- Trivial fixes for compatibility with VC++
324cf7cf7Willi Braun - activate tearing of mixed systems
4eb60f9a4Willi Braun - fixed findZeroCrossing
dec4a284bLeonardo Laguna- Added dump of distribution type to the uncertainties extraction
7a4eeaee4Adrian Pop- mind your language please :)
2b94816ddJens Frenkel- bugfix for if-equations
9ce555eedJens Frenkel- fix tab
f8d8971b8Willi Braun Changes for event handling. - From now as zero-crossing functions are used the conditions instead of single relations. - main changes in BackendDAECreate.findZeroCrossings. - it collects now samples, relations and zerocrossings in different lists. - relations are still collected for cpp-runtime. - fixed also #1866
89bd92d4bJens Frenkel- fix tests, report less warnings Alias variables ... have start values ...
b9a2ad2c4Jens Frenkel- avoid Warning Alias Variable ... by improvement of expressionEqual
55607d072Jens Frenkel- try to remove aliases like state = state, but this needs some more thinks to do - keep zero start values - dynamicstateselection, prever states with short names - move some tests back to working group
7e8ca4d4dWilli Braunupdates for event handling c simulation runtime - mostly cleaning and restructuring of the code - preparation for changing zero-crossing treatmeant
1d5a279b5Willi Braun - a bit of clean up in c simulation runtime
5170f1cbbWilli Braun - fixed a bug in isExpDiscrete
560e06ee9Jens Frenkel- keep der(var) = const
61c86de05Adrian Pop- forgot to copy libexpat*.lib - add lib/omc/msvc to the CL lib search path as it contains sundials and libexpat libs.
1125a3f19Adrian Pop- switch to new lib directories for msvc.
e7027a25aAdrian Pop- we *really* need the RESULT from Compile.bat to know if we should report a build error in omc.
e8c30ecb6Adrian Pop- generate nmake targets not the vs projects! - copy the libs after build to build/lib/omc/ - why would we need in options.h??!!
44016cbd6Jens Frenkel- remove also constant derivatives from known vars as the other self generated vars
e3b0c69abJens Frenkel- keep dimension information of derived variable but check when sorting if all elements are derived.
cb3e316d6Jens Frenkel- change cmake files and add target simulationruntimecmsvc to Makefile.omdev.mingw to call cmake to generate msvc libs (does not yet work because camke does not configue nmake files)
82ffe89b6Jens Frenkel- improve Compile.bat to call also msvc target
c1043a54fAdrian Pop- make a real list out of TARGET choices.
e8b5f3007Adrian Pop- squash the tabs.
13bd8a35aAdrian Pop- add missing tab - add error handling for wrong +target.
1e0a1f852Adrian Pop- add the missing simulationCodeTarget in SimCodeTV.mo
320b523a3Jens Frenkel- add missing end match
4bb77db5fAdrian Pop- added case for SCode.EQ_NORETCALL in SCode.equationEqual2. fixes duplicate elements not identical error in model: Modelica.Mechanics.MultiBody.Examples.Constraints.ConstrainPrismaticJoint however, the model seems to go in an infinite loop in the back-end.
4c5200407Jens Frenkel- add case to generate nmake makefile for visual studio 2010 todo: copy libs libexpat.lib from OMDEV/lib/expat-win32-msvc to lib sundials_kinsol.lib sundials_nvecserial.lib from OMDEV/lib/3rdParty/Sundials/lib/release/vc100 to lib f2c.lib initialization.lib math-support.lib meta.lib ModelicaExternalC.lib results.lib simulation.lib solver.lib util.lib from OMDEV/lib/c_runtime_msvc to lib improve Compile.bat to call vcvarsall.bat and nmake in case of target=msvc add dlls (expat,kinsol) to path
650bcf449Jens Frenkel- ged rid of empty omc_equationInfo_reverse_prof_index to be compileable with vs2010
7c1d635b0Jens Frenkel- use brackets to avoid warning in tables.c - update cmakefiles and small change to simulation_runtime_cpp to get simulationruntime c compilable with vs2010
5f7927804Leonardo Laguna- Fixed small problem that was giving me segmentation faults
87fd5cc80Adeel Asgharmore documentation and release notes.
c3f965d89Jens Frenkel- add some code (commented out) to tear full mixed system
12ac05c21Jens Frenkel- move tests to failing
51d32f4e9Adrian Pop- fix UTF8 issues
d0ee6d4a4Martin Sjölund- Update releasenotes
7a9446e75Lennart Ochel- initialization: fix in scaling: use the solution of scaled initialization for final improvement of accuracy - testsuite: add new testcase for initialization of nonlinear system - testsuite: refine the description of case initial_equation.mos (previous: Initialization.mos)
5d92bf730Jens Frenkel- fix test - update cmake files for simulationruntime/c
4e041bca2Jens Frenkel- replace also parameters with evaluate=true annotation in variable attributes when evaluated
df40da611Per Östlund- Dump the type of untyped components in InstDump.
949be39b1Martin Sjölund#1895 - Fix codegeneration for reductions in simulation context
166b76748Jens Frenkel- Derive.deriveExp add cases for MUL_SCALAR_PRODUCT " {a,b,c} * {c,d,e} => a*c+b*d+c*e", MUL_MATRIX_PRODUCT "M1 * M2, matrix dot product"
8ff401539Jens Frenkel- remove newline from Warning Alias Variables ... - no warning in case of one fixed alias variable start value
e48ba85f2Per Östlund- Fix dependency checking of extends clauses.
ffd3cde20Jens Frenkel- evalutate also variable attributes (start,fixed) when evaluate final parameters
f8a2e08f8Willi Braun - fixed backenddaeinfo output for mixed tearing systems
2e61c96cbJens Frenkel- call other equations in residual functions via equation_indx and call them again after solution was found to set value of other equations to valid
5bd324687Martin Sjölund- Formatting
2cf5e2e4aMartin Sjölund- Update release notes
6381a4931Martin Sjölund- Bump version number
9f53f7a8bJens Frenkel- use startorigin attribute to merge alias start values
6374aedfeMartin Sjölund- Fix to loadModel(ObsoleteModelica,{"3.2"})
6c706cfedPer Östlund- Got rid of some more clang warnings.
35ab713ddAdrian Pop- uh, this was easier than I imagined. - added startOrigin to DAE.VAR_ATTR* which is set to: SOME(DAE.SCODE("type")) -> start comes from type SOME(DAE.SCODE("binding")) -> start comes from component binding NONE() -> no idea - use +d=showStartOrigin to show the startOrigin=... in the DAE output of instantiateModel. - Jens F., please see if you can use it for Alias selection (always prefer startOrigin = "binding"), seems to work correctly for the AVM model we talked about via email. Real differential_Open.env.heatCapacitor.T(start = 293.15, nominal = 300.0, startOrigin = "binding");
1bcee846bAdrian Pop- ALWAYS take the inner outer prefix from the original declaration not the redeclare which HAS NO inner outer (the grammar doesn't permit it!) + this fixes some AVM models: Class C2M2L_Ext.C2M2L_Delivered_Component_Implementations.Drive_Line.Gearbox_90_Degree.Test_90degree_Gearbox_VU has 243 equation(s) and 243 variable(s). 180 of these are trivial equation(s).
cffc3957aLennart Ochel- c-runtime: move all files regarding initialization to separate folder inside simulation/solver - testsuite: change if-condition to move event from simulation to initialization - initialization: switching off scaling nearby the final solution
c632e0369Per Östlund- Some more help text updates.
60f2e7c0cPer Östlund- Update help text for omc.
429c9e44dAdeel AsgharThe argument is "-ORBNoResolve" not "ORBNoResolve".
19a8afde2Per Östlund- Trying to fix corbaimpl on Windows.
744dcef06Adeel Asghar- fixed Windows compilation.
ed6827bf2Per Östlund- Removed the special case for Real casts when dumping expressions, since Modelica does not have a Real() function. - Some SCodeInst fixes. - Fixed compiler warnings in corbaimpl.cpp. - Updated testcases due to the expression dumping change.
41fc6a068Martin Sjölund- Fix r13427 also for constant elements in records
c88d76d36Martin Sjölund- Changed unparsing of DAE.T_FUNCTION
6383f796fMartin Sjölund#1875 - Do not report errors while doing partial record constructor instantiation
91f2e6053Adrian Pop- no more tabs.
0fc0da4cfAdrian Pop- utf8
eeccff47dAdrian Pop- move unused packages to Compiler/Unused
c1e89d51aWilli Braun- added linearize and simulate as builtin
aa38dc802Willi Braun- fixed build
801cd9d7dAdeel Asghar- Replaced the import FMU with the new functionality. importFMU => importFMUOld and importFMUNew => importFMU. - Updated some of the test cases. Few test cases still uses the old API.
f4d1837b3Adeel Asghar- Handle the case when we have no events.
504a63bcbAdeel Asghar- Differentiate among FMI warning, error and fatal error.
0e0144140Adeel Asghar- If a variable doesn't have a start value attribute then don't ask for start value.
0bf11d33bWilli Braun- updates to generation of sparsity pattern and linearization - updates for correct sorting of the sparsety pattern - added API call linearize() - updates the linearization tests
f44e7b8c5Willi Braun - changed just warning message for mixed system
8a766737bPer Östlund- Better handling of class extends in new instantiation.
4efd73f77Jens Frenkel- add cases for DAE.DEFINE and DAE.EQUEQUATION in BackendDAECreate.lowerWhenEq2 - add missing case of alias exp "not a"
3f6e9b667Jens Frenkel- System_strtok returns emtpy list in case of "" equal to rml version - BackendVariable: bugfix output Warning message
62b2cdac5Martin Sjölund- Change BuildModelRecursive.mos to only run ModelicaTest if asked for (will be a separate report on test server from now on)
26867a6a5Per Östlund- Apparently strndup is not supported by mingw, use strdup instead.
5a36a444bPer Östlund- Respect constness in FMIImpl.
522b1dfccWilli Braun- fixed terminal error in new fmi import
49a506deaAdeel Asghar- don't allocate memory. a minor fix.
5b5c3ba05Adeel Asghar- use appropriate variable names. - only write duplicate functions once.
79f21a842Jens Frenkel- fix for nonlinear system/tearing, generate code for all equations - switch tearing on in some tests (still fail Modelica.Electrical.Analog.Examples.CauerLowPassSC msl221 and msl31 see #1804)
b554cb56cMartin Sjölund- Update MSL 3.2.1 version for a spice3 fix - Fix some formatting in generated code
9c796c6fdJens Frenkel- check for cyclic bindings in start values while merging alias variables
d5e063afcMartin Sjölund#1883 - Check that command-line arguments are UTF-8 encoded. Convert illegal UTF-8 into 7-bit ascii for the error-messages.
681192d6bJens Frenkel- add missing thing for last commit
7b867741eJens Frenkel- check for derivatives of inputs
182ec2d54Willi Braun- fixed event handling in new fmi import
6864c6cb6Jens Frenkel- derivatives of variables with type array are not arrays, because not all elements may diverentiated
d5de58930Jens Frenkel- fix for #1827, maybe NORETCALL needs builtin attribut (if there is a buildin function with no return value)
f4c7884acJens Frenkel- traverse NORETCALL in PartFn and BackendDAETransform correct
1aa9316abAdrian Pop- circumvent bug in MetaModelica/RML use else_ instead of _else as it seems the .srz parser has some issues
e563d84afAdrian Pop- fix Compiler/BackEnd/BackendDAE.mo
2559181b9Jens Frenkel- use consOnTrue instead of Util.if_(res, e :: inAccum, inAccum)), save memory - fix bootstrapping
24df1964cJens Frenkel- coding stile
1da8fc397Jens Frenkel- support noretcall in when equation, add example but still not work because of undefined reference to `Modelica_Utilities_Streams_print'
39c18aa73Jens Frenkel- BackendDAECreate: - skipp asserts with condition=true - BackendDAEOptimize.removeSimpleEquations: remove asserts with condition=true from removed equations
32338ffd2Jens Frenkel- use Expression.makeScalarArray for dynamicstate selection equations
c9e0167f4Jens Frenkel- handle asserts in if-equations - removed unused code
cedaeaef4Adeel Asghar- handle the case when there are now continuous states and events.
52b029cb4Martin Sjölund- New procedure to update MSL 3.2.1: Update the svn:externals revision and run make omlibrary-diff to create the patches. Update the copy in build/lib/omlibrary unless you want to commit the patch upstream to modelica.org (only possible if you have an account there)
3b5d53560Martin Sjölund- Also clean ModelicaTest
8533668dcMartin Sjölund- Report also number of successful simulations
5531c7a33Adrian Pop- keep the version with find even in msys as hudson SVN kit is 1.4 (ancient) and has .svn directories everywhere.
7795bd931Jens Frenkelswitch off equality equations to alias variables in BackendDAE.create phase (fix failing tests befor switch on again)
a974b3828Jens Frenkel- switch on equality equations to alias variables in BackendDAE.create phase
828987899Willi Braun- bug fix for mixed system solver
049db2ee9Willi Braun - fix coding style
56c21908bWilli Braun - fixed coding style - fixed some warings in c runtime - fixed linearization test
0138cbc86Willi Braun - setup sparsty pattern calculation as postOptModule (not activated yet by defalt due to some issue with tearing module)
4e6debddfAdeel Asghar- fixed coding style.
0310a082eAlachew Mengist- Fixed XML code generation
fbc2ab6d7Jan SilarSolving mixed strong components in runtime not in generated code. Perhaps another bug comes out - some test moved to failingtests.
c06fc35bfAlachew Mengist- Fixed CodegenXML.tpl
4de934e51Adrian Pop- attempt to fix ticket #1876 - remove any components already declared in the expandable connector as they will be added anyway.
4fd98d4d4Niklas Worschechfix #1878 for copy_double_data_mem
723d9001dAdeel Asghar- Handle the new Windows system dependency of FMIL i.e shlwapi.
f00e0574dMartin Sjölund- Use dots instead of $P in function context
6ee75dd1cMartin Sjölund#1877 - Support size(cr) in codegen
2efbebb71Jens Frenkel- bugfix for SimCodeUtil.calculateIndex, keep ComponentRef of Var and use not the one from call expression
daf6f0b70Adrian Pop- faster libraries copy on Windows Msys to build/lib/omlibrary
cb11c4038Adeel Asghar- build all clients. - removed OMTools as is not required. - build instructions.
d1dadbcbbJens Frenkel- bugfix for SimCodeUtil.calculateIndex, keep ComponentRef of Var and use not the one from call expression
f06efbd13Per Östlund- Improvements to element redeclares in the new instantiation.
507c2de73Jens Frenkel- bugfix mergestartvalue for alias variables, use the value from the variable with less dots in the name according to MSL - bugfix variable operations for alias var
14c36aa08Jens Frenkel- fix bug for mergestartvalue, add missing negate of start value in case of a = -b - fix tests (delete some wrong warnings, see my last commit)
2b6d157a1Jens Frenkel- check if expression is equal before report warning about different start values in case of alias variables.
b8269efe3Bill Janssenfix for issue #1868 -- problems with CodegenXML.tpl
219dce8eaWilli Braun - added BugFix for #1872 Bugfix is for now a workaround that prevents the collation of STMT_WHEN conditions. Since I want to rewrite some of that helpVar stuff with regarding to Ticket #1866, this should work for now.
101924f5dAdeel Asghar- Terminate the FMI slave and model. - Free the slave and model instances.
fa3ccef24Adeel Asghar- build instructions.
443ee3eeaJens Frenkel- prever variable with long names as alias variables and keep variables with short names in system
33233fb8bMartin Sjölund- Fix UTF-8/Tab errors
8d7a56f61Alachew Mengist- Fix OpenModelica CODING STYLE
5ec767d7dWilli Braun- changed return code of simulation if it fails
d1afac420Per Östlund- Some cref prefixing fixes in SCodeInst. - Fixed lots of clang warnings in the C code.
e396bcf31Alachew Mengist- Fixed Makefile.in
1b6b7300cAlachew Mengist- Fixed OpenModelica CODING STYLE
29d60cbecAdeel Asghar- Don't Deinitialize data structures twice.
5818b68cbMartin Sjölund#1870 - Add built-in fail()
033054f92Adrian Pop- more updates
3c6703058Adeel Asghar- Added OMVisualize.
7b2c60100Adrian Pop- update to NSIS readme.
b6670981fNiklas Worschech-fix in cpp template init, save of all pre variables
260f6ab69Martin Sjölund- FIx typo
3cbdda3ebAdeel Asghar- Fixed some pointer cast warnings.
167bf76f7Martin Sjölund- Improve error-messages for operator deoverloading
807c294b4Per Östlund- Lots of connection handling in the new instantiation. - Cleaned up BaseHashTable a bit.
39baea0daPer Östlund- Fix order of extends in SCodeInst.
a9ec0cc61Henning Kiel- fix truncated library search path if $HOME is longer than 59 chars - malloc appropriate number of chars
9ec7a52e3Jens Frenkel- der(record constructur(..)) = record constructur(der(.),der(.))
34227bd0bJens Frenkel- handle also array crefs in reinit
c0eedd296Jens Frenkel- fix bootstrapping test
75a46b360Jens Frenkel- instantiate also reinit for array variables
edd3d77ebJens Frenkel- assign not to input
c8aada46eJens Frenkel- implement code to seperated the equality equations to generate alias variables direct from it but do not activate the code
0eb5e39ccAdrian Pop- fix the location as we no longer cd to the directory.
88687b0b1Jens Frenkel- bugfix for BackendDAEUtil.getAdjacencyMatrixEnhancedScalar in case of algorithms
ce3986177Willi Braun - fixed algorithms in NonLinearLoops
48c48712eJens Frenkel- fix rml-bug
252630455Jens Frenkel- fix tabs
4ac01013aAdeel Asghar- Generate code for co-simulation standalone.
ee8f6803aNiklas Worschech- fix in cpp runtime for CVode event handling. Modified CVode settings.
4308b4264Martin Sjölund- Documentation update
c5d683ab8Martin Sjölund- Better export of C-code + MSL 3.1 generates 600MB of C sources and a 350MB o-file. So it is too large to be shipped anyway. Not to mention it takes >30 minutes to compile and link
41ec89cf0Martin Sjölund- Added argument exportAsCode to list - This creates C-code that could be used to compile that part of the AST into an executable or library - But it is too large to be useful at the moment (a single 108MB expression for Modelica 3.1) - Could be changed to use more efficient C-code generation
e6a2c0c7eJens Frenkel- report times for frontend,backend,tpl and compile even if simulation fails
3dfb4e474Jens Frenkel- fix compilation
2221f83b3Jens Frenkel- remove some warnings
40c0a5761Jens Frenkel- update CMakeLists files
5c14805e5Adeel Asghar- debugging.
466acfb7cAdrian Pop- fix for Windows compilation: no getpwuid in MinGW32 however we do have HOME defined (at least I do) so we might just use that in the future.
6d2cc1d18Martin Sjölund- Added codegen for edge(not cref) since the backend makes those substitutions now
d596b41f9Martin Sjölund#1864 - Look for libraries in ~/.openmodelica/libraries
76dffc170Martin Sjölund- Don't use --whole-archive since OSX ld doesn't have it
c2a13db78Per Östlund- Allow inheritance of function parameters in SCodeInst.
bc2879ef7Adeel Asghar- fix stupid copy paste error.
5497eecdaAdeel Asghar- source code documentation. - some small fixes in the code generation.
57e684195Jens Frenkel- fix bug for if-equation simplification - implement inline var with less memory consumption in BackendDAECreate.lower - bugfix bootstrapping
e071cbc12Jens Frenkel- fix bug for if-equation simplification - fix bug for if-equation dump - simplify if equtions (if .. then a=.. elseif .. then a=... else a=.. end if) to a=if .. then .. else if .. then else ..;
eb2f03548Martin Sjölund- Update path
c6f6ab179Lennart Ochel- bug-fix: avoid infinite-loop in mapToDymolaVars
76a8dc2caMartin Sjölund#1855 - Handle also assertions inside an encapsulated class
0df382eb5Adeel Asghar- free the allocated memory.
b375f3e98Martin Sjölund#1851 - Check that outputs are (probably) defined at function exit
6a9214e5bAdrian Pop- empty annotation should be like annotation();
e2f0cac93Adrian Pop- fix the compilation
7cdee4efbAdrian Pop- correct unparsing of each.
6460a9c41Adeel Asghar- Functions to get/set Real/Integer/Boolean/String. - Some more code generation for FMI Import.
65c8b0f43Jens Frenkel- check expression type before transform to residual form in if-equation simplification. (do no transform boolean equations to 0 = ...), this causes my some tests to fail, but if a test fail we have to at a ticket in trac, the check is really necessary
661c8bf2bAdeel Asghar- breakprocess is moved from bootstrapping to openmodelica/bootstrapping.
a9ce313bfMartin Sjölund- Update build
0a8c7843bAlachew Mengist--Moved template test files from compiler/template to testsuite/template
6d62f6792Martin Sjölund- Added now working simulation test Modelica.Fluid.Examples.DrumBoiler.DrumBoiler + Note: The correctness of the results has not been verified, but it does produce results
9b1a4adaaAdrian Pop- fix MDT: do not expand the uniontypes anymore when parsing via loadFileInteractiveQualified as is done again via SCodeUtil.translateAbsyn2SCode (MetaUtil.createMetaClassesInProgram) and leads to duplicate definitions. Lookup of Absyn.CLASS paths will not work anymore via list(Absyn.CLASS) from MDT until we fix it in MDT.
0da4b68fdAdrian Pop- add -overrideFile functionality to the simulation runtime to be used when you have a lot of variables to override and the command line size does not suffice.
f869dbc07Martin Sjölund- Made a subset of libSimulationRuntime.a called libOpenModelicaRuntime.a + This can be used by dyn.loaded functions and omc itself without messing with the simulation runtime functions + Do partial linking of the object-files in these archives to prevent linking issues in OSX
0702547f0Jens Frenkel- try to fix test (why does thermoSysPro tests fail when selecting other alias variables?)
638441a6fMartin Sjölund- The magic word is: Fix the #%@! build
2990e7718Martin Sjölund- Fix build
7ae75f5f8Martin Sjölund- Removed old stuff we shouldn't use anymore
6d2f7be0fJens Frenkel- readd some functions from reverted commit 13013
d90f302ebAdrian PopFixes for bug: #1848 - handle (record cref, record cref) = fcall(...); - handle (RECORD_CONSTRUCTOR(x, y, z), record cref) = fcall(...);
860b04061Martin Sjölund#1847 - Look for duplicate elements in the package.order file
791bc88e4Per Östlund- Changed Util.swap to work as expected (i.e. swap on true).
eef66f966Martin Sjölund- Fix bootstrapping
00b67938aMartin Sjölund- Do type-conversion on conditions in if-expressions
916bce054Martin Sjölund- OMNotebook installation
7e259f434Martin Sjölund- Code-generation for Complex. Functions are now prefixed omc_ instead of _
0ba10f18fAlachew Mengist_ Moved 4 template file tests from testsuite/mytest to ../template and removed testsuite/mytest from testsuite
44fcd09ebAdeel Asgharwrapping some of the FMIL methods.
5759dff95Martin Sjölund#1833 - Enable check for shadowing local declarations before optimizations
13a290ad6Martin Sjölund#1833 - Elaborate match input in the correct scope
03d92f723Martin Sjölund#1833 - Enabled check for assignment to inputs - Fix remaining testcases
aafa18c73Martin Sjölund#1833 - Cleanup
2ef4dda9fMartin Sjölund#1833 - Cleanup
c17f4a798Martin Sjölund#1833 - Some code cleanup
523f71720Martin Sjölund#1833 - Some code clean-up
54713e413Martin Sjölund#1833 - Some code clean-up
224d629b1Martin Sjölund#1833 - Code cleanup
3c1063df8Martin Sjölund- Add configure option to disable OMNotebook (for OSX builds)
727570584Martin Sjölund#1833 - Code cleanup
f94658daaAdeel Asghar- update OMDev. FMI Import - Separated the FMI Interface and the FMI external interface. - Use more records for code generation. FMI Export - Don't print log if user sets fmiSetDebugLogging off.
7d3cce6fdMartin Sjölund#1833 - Code cleanup
d4c59efb6Martin Sjölund#1833 - Code cleanup
f882590d4Martin SjölundWARNING: You will need the latest rml-mmc to compile this MetaModelica code #1833 - Clean-up
7157aa8bcMartin Sjölund#1833 - Some automagic code clean-up using automagic - In Patternm.mo, elabExp uses false instead of allowTopLevelInputs - In Static.mo make checkAssignmentToInput2 succeed even on error - Create the log-file `omc +g=MetaModelica MainTest.mos | grep input | sort > log` {{{ #!/bin/bash
d5c1413cfMartin Sjölund- Added DAE.Const to typeExp
119a7a6c5Willi Braun- BugFix for Ticket #1830
ddf9c505aPer Östlund- Fix some varArgs annotation issues.
fcddc95fdMartin Sjölund#1829 - Fixes lookup of short class definitions in MetaModelica code
bceff4540Adeel Asghar- Removed tabs.
46ae3201eAlachew Mengist- Fix some bugs CodegenJava.tpl ,create flag for it and Merged into SVN
d1d8dc09aPer Östlund- Fix build.
f58fbb430Willi Braun - fixed SIM_PROF_EQ generation for mixed systems (no warnings anymore while compiling) - fixed a memory leak in struct equationInfo
64d35ec70Willi Braun- removed tabs
a3d71e70bPer ÖstlundFix for bug #1825: - Made handling of real ranges a bit more robust. - Moved some scodeinst tests to failing tests.
eff6aa597Willi Braun - changed event handling with dassl - while every dassl step the ZeroCrossings are tested - changed many results, since now the simulation is more accurate - changed the check for Modelica assert, now some models produce warnings for variables outside min and max values
bf90f2f42Martin SjölundReverse merge (revert commits) * svn merge -r 13001:12998 . Plus fixed some testcases
976176603Martin Sjölund- tab-error
efabe0d05Martin Sjölund- Spelling
b31925648Martin Sjölund- Configure check for OpenMP availability
347c04291Jens Frenkel- handle negated boolean alias in mat result file
ac90ad272Adrian Pop- preliminary typechecking in SCodeInst, much more will come later after testing. - add parent to InstTypes.PACKAGE to be able to get dimensions for a.b.PACKAGE.c through it + still problems here as bindings do not seem to have correct propagatedDimensions through package, Per, any ideas? + see scodeinst/eq9.mo - handle DAE.T_ARRAY(dim1::dim2::dim3) better in Types.mo conversion and subtype - Makefile.common wrap time ... into (time ...) to work properly in Windows.
f2aaa77c6Martin Sjölund#1823 - Evaluate constants in generated assertions from connections
2f52f7993Jens Frenkel- add alias a = not b, not a = b, not a = not b, -a = -b - fix write results for boolean alias, ToDo .mat
be020e1c2Adrian Pop- add -fopenmp when linking with omcruntime - add -fopenmp in LinkMain.makefile.mingw instead of libgomp-1.dll (that might change with a new MinGW GCC)
e2331a468Martin Sjölund- Added stringInt boxptr function
debd32d72Jens Frenkel- bugfix output varname
5dc309397Jens Frenkel- add missing function to last commit
08dd9a4cbJens Frenkel- try to select from EQEQUATION alias and generate not a normal Equation
a7e56f772Martin Sjölund- Added scripting call system_parallel - Made BuildModelRecursive.mos capable of generating a report while simulating models in parallel
a702cff2aMartin Sjölund- Fix bootstrapping (seriously, we needed this feature? so much work...) + Now we support codegenration for if-expressions returning tuples (comes from match-expression optimizations) - Enabled SusanTest.mos full test since tail-recursion makes it run fine - T_TUPLE is no longer simplified into a MetaModelica type - We can now handle code-generation for tuple-expressions (creates an anonymous record)
278139324Martin Sjölund- Added missing 'each' prefixes to more models - Made DAE.TYPED and DAE.UNTYPED modifications contain Absyn.Info and started using that whenever possible - This makes error-messages appear at the source of the modification instead of at the component being modified, which is better since it is easier to look up the component than to figure where the #!#&@ the modification came from
6b80f7747Jens Frenkel- do not remove dummy var because it is not there
fae269cf8Jens Frenkel- fix bootstrapping
782885fbeJens Frenkel- fix bootstrapping
40199daf1Jens Frenkel- move add dummy state to SimCodeUtil - remove BinTree from BackendDAE - BackendDAE.Value -> Integer - BackendDAE.Key -> DAE.ComponentRef - remove unused code
b2972fc15Adrian Pop- fix bootstrapping.
e4c13a596Adrian Pop- fixes for bootstrapping. - empty record constructor, not constant component.
8ee0ffb8eAdrian Pop- tab squashing.
8edded9ecJens Frenkel- fix compilation
18b155395Jens Frenkel- fix bug Ticket #1794 - speed up removesimpleequations - start to implement dae residual compare code generation
ff012aa25Leonardo Laguna- Towards more separation between Script and FrontEnd. - All the calls from Interactive and CevalScript to Ceval.ceval are concentrated through CevalScript.ceval. - All the calls from Interactive and CevalScript to Static.elabExp are concentrated through StaticScript.elabExp.
0169b56a5Per ÖstlundSome connection improvements for the new instantiation: - Print error message when connecting expandable connector to non-expandable. - Some prefixing fixes.
d4fcfd4edWilli Braun - fix the previous commit
af1ba772dWilli Braunchanged interface for solving nonlinear systems in the c runtime - get rid of macros for solving - easier itegeration of further solver - added scaling of error function - added x scaling
34f8bde92Per ÖstlundFix for bug #1819 - Only disallow assignment to input in functions.
8c530cc8aLeonardo Laguna- Fixed small problem causing failure in bootstrapping
462b08ef7Leonardo Laguna- Moved a few groups of functions from Ceval and CevalScript in order to minimize the dependencies between Ceval->CevalScript.
cd8cf6f15Martin Sjölund#1820 - Adding new API calls to get index reduction / DSS options and descriptions
751738d84Martin Sjölund- Made Parser use C-files instead of C++, which leads to fewer hacks
43d8b937dMartin Sjölund- Removed warning about group imports since they are part of Modelica 3.3
df9b78ec7Per Östlund- Fix prefixing of connectors in the new instantiation.
894b656fdJens Frenkel- Util.arrayExpand check if expansion is needed before alloc and copy array
0d86332d0Per Östlund- Update types of subcomponents in complex types in Typing.typeElement.
dfbe18a4eMartin Sjölund- OMVisualize linking
a86cca65cAlachew Mengist- Fix bootstrapping for windows
a39f9bbe3Niklas Worschech-fix in cvode calcfunction for exception handling.
59e3c473fPer Östlund- Implemented generation of asserts for constant/parameter connectors. - Lots of connection checking.
d06afad23Per Östlund- Add source information to illegal algorithm section error.
76a62a457Adeel Asghar- python interface build instructions.
ebc4cbbf5Adeel Asghar- few fixes. - small guide for Modelica3D.
5638aa0b6Martin Sjölund- Speed up Modelica3D (don't print whole lot of debug trace) - Don't add a (sim) link if we did not even run the simulation in the first place
e73134721Martin Sjölund- Rudimentary support for level=AssertionLevel.warning, also in the runtime - Do type-checking of msg in assert(true, msg)
0ada54c10Martin Sjölund- Test all models please
66a4c4cefMartin Sjölund- Skip linearize in BuildModelRecursive.mos
e7de5b64bMartin Sjölund- The buildModel script now include the log of the simulation executables
eb5668cd8Jens Frenkel- small change dynamic state selection
730ed42a9Martin Sjölund#1808 - Look for duplicate elements when parsing a file instead of later when it is too late (for functions)
c4c41f79fJens Frenkel- add rule for der(log10(x)) = der(x)/(log(10)*x)
c22336a96Niklas Worschech- fix in SolverDefaultImplemention init
9c9fe31fdJens Frenkel- add rule for r^x^ and simplify derivative expression of x^r^
f448d7549Niklas Worschech- fix for cvode initialization in cpp runtime
0efc288c8Martin Sjölund- Ignore HumMod utf-8 errors
bc7876db9Martin Sjölund#1798 - External C functions can now throw assertions by calling ModelicaError - Assertions thrown in function code now causes the function to fail() properly
36d2456c9Niklas Worschech- fix in cpp runtime loading math lib
03cc90f92Jens Frenkel- bugfix dynamic state selection
886aea0b6Niklas Worschech- fix in cpp runtime loading math library
186ab3f01Niklas Worschechremoved tabs
46a41ff6eNiklas Worschech- fix in cpp runtime for division, initialization of CVode
278f3c0aaJens Frenkel- bugfix dynamic state selection for stateSelect = StateSelect.always - add test for EngineV6 (compile and simulation time together around 1 minute but nonliniear solver has trouble)
0286fccd0Adeel Asghar- Wrapping the FMIL code for simulation.
dc540c3e4Jens Frenkel- speedup dynamic state selection (10 times faster)
c78f7e5b6Jens Frenkel- fix bootstrapped compilation
f377493beJens Frenkel- fix compilation
de7e4da51Jens Frenkel- fix taps - fix bootstrapping test
8ad320f66Jens Frenkel- replace residual replacements by adding varname = xloc[..] at the beginning of each residualfunction, this makes handling of complex and algorithm equations easier in residual systems
54908dd0cLeonardo Laguna- Added option to write output file when extracting uncertainties
f77d75ffbJens Frenkel- fix tests, switch of tearing for some models because nonlinear solver has trouble see Ticket #1804 - improve adiacency matrix, check if expressions branch variables - fix bug for determinant calculation in dynamic state selection - fix bug for temp variables in simcode
7ee040babAlachew Mengist- Added XML code generation module
e9540f269Martin Sjölund- Fix Windows compilation
75d667787Jens Frenkel- fix annoying bug for expand variables
af238d504Martin Sjölund#1801 - Fix problem with matrix-vector operations being converted into array-multiplication of vector and scalar - All tests that worked still work except for one: ./libraries/msl31/simulate/Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.mos, presumably because of a better solution now
048da25f4Martin Sjölund- Add support for +t in ExpressionDumpTpl.tpl operator printing
bf1850861Martin Sjölund#1343 - Pass front-end for AssertionLevel in assert-statements
49db3e717Martin Sjölund- Fix uninitialized oops for clang -O3
c85e1ad6cMartin Sjölund- Some compiler warnings
6aeac12d8Per Östlund- Fix dumping of for iterators in DAEDump.
0c7335542Jens Frenkel- take care of order of non residual equations in residual function
7e1231e2cMartin Sjölund- Fixed MM course tests
db1f9fd1bJens Frenkel- tear only time continues part of mixed equation system
5546db6e5Jens Frenkel- bugfix tearing
bf1821a9fJens Frenkel- bugfix code generation for torn system
1d14811feAdeel Asghar- fix tabs.
b43c708a0Alachew Mengist- Added template based DAE unparser
dda61acbeMartin Sjölund- Make sure we don't load Modelica3D if MS 1.0 was requested - Appended modelica3d to the version annotation of MS 1.0 modelica3d
0c2a77cdfJens Frenkel- bugfix for complex residual equations
b1cda5a32Martin Sjölund#1343 - Refactoring: Add expression for level in assert-equations
db38494fcJens Frenkel- move symbolic manipulation from tearing to SimCodeUtil
122e29f12Martin Sjölund- Use configured compilers for cmake crap
32692754cMartin Sjölund- Update Modelica3D documentation
c1931c810Martin Sjölund- Fix parsing
d80a1c155Martin Sjölund- Do not load ObsoleteModelica3. It causes many errors.
7e51e8a20Willi Braun- fixed small bug in BackendDAEUtil.adjacencyMatrixDispatchEnhancedScalar
2d89e8d53Jens Frenkel- fix tests
884b25201Jens Frenkel- add strongcomponent type TORNSYSTEM - keep matching information in constantLinearSystem
4dbc82626Martin Sjölund- Avoid recursive make clean
aa062d953Martin Sjölund- Enable configure for modelica3d
d2ed14e5cWilli Braun#1780 - BugFix for Ticket#1780
7c8a4171bMartin Sjölund- Fix to build on Windows
fc57a6dbfJens Frenkel- remove shared from incidence matrix calcualtion because it is not needed
3908d3f40Martin Sjölund- Don't create libexec on Linux
370d0c7c3Martin Sjölund- Adding makefiles for modelica3d
f5b690645Niklas Worschech- fix in cpp template for initialization of const string variables
2ba2c9e81Martin Sjölund#1799 - Do some code generation for tuple residuals
b7694e3b5Martin Sjölund- Adding stub for spanish translation
e45f83c32Niklas Worschech- fix in cpp for atan2,smooth init of const vars
c821e20c5Martin Sjölund- Fix wrong C logic (&& || priority)
acc43c3c8Jens Frenkel- remove selfgenerated vars - bugfix derivativeEquation
fbd9ea029Jens Frenkel- improve removesimpleequationsfast/past (less memory, faster)
a6f2c2104Jens Frenkel- fix tests
dbd87c19cJens Frenkel- improve removesimpleequationsfast/past (less memory, faster), remove unused implementation removesimpleequations
6b268af33Jens Frenkel- fix tests
f7a09735aJens Frenkel- fix tests
9c449b68aJens Frenkel- fix TaskGraph.mo
678461242Jens Frenkel- fix liniearization
b5b3be7b9Niklas Worschech-fix in cpp template giveZeroFunc for zero sign
2fc7253e8Jens Frenkel- remove unused flags VAR_INDEX,VAR_INDEX2 - remove unecessary code from removesimpleequationsfast - implement vararrayList2 tailrecursive - fix tests
30f812e08Martin Sjölund- Do not run readRealParameterModel in the recursive test
f10aa1effLeonardo Laguna- Added new implementation of uncertainty extraction algorithm
e7fce4cffPer ÖstlundFix for bug #1796: - Fixed correct order of dimensions in Inst.makeCrefBaseType and Inst.arrayBasictypeBaseclass.
4275eebe9Jens Frenkel- remove index from BackendDAE.Var
e0b9c6749Jens Frenkel- bugfix replaceDerEquations
47d4da7a2Jens Frenkel- fix tap
f17fbf05dJens Frenkel- use average of reference data values for tollerance belt in SimulationResultsCmp
7fa4173c6Jens Frenkel- implement equationDelete without sorting of intList
9fb09880eJens Frenkel- remove unused code (calculate indexes/translatedae)
1287cabf8Jens Frenkel- move translateDAE to SimCode and implement it O(n)
a54875b21Jens Frenkel- fix dynamic stateselection der({x,y}) -> {der(x),der(y)}
cb13dcfc1Martin Sjölund- Bootstrapping
1e5c4d29eNiklas Worschech- fix for array add in cpp template
0cf71a6fcMartin Sjölund- Look for StopTime instead of checking all weird stuff to decide on what models to run
c3aeacd37Jens Frenkel- fix tests
11c1edcb5Martin Sjölund- Force Modelica grammar for 3.2.1 since otherwise it does not parse
ea5df0602Jens Frenkel- fix tests
0f3e75e67Lennart Ochel- move log-verbose-level from LOG_INIT to LOG_DEBUG for some debug-messages
eb2719184Martin Sjölund- Fix assertion
ee460e90dJens Frenkel- splitt SimCode in SimCode for data types and SimCodeUtil for functions
ef59eacbbMartin Sjölund#1793 - Updated the C runtime for the loadModel command. We now look for targets in a better order, should be more robust, and we should now support loading any 3.2.x.y when 3.2 is requested and not found. Even on Windows.
2c00cc440Per Östlund- Removed tabs.
d5d90b6edNiklas Worschech-add division scalar array to cpp template
542d32738Niklas Worschech- fix in cpp template for divide, multiply array and asub operation
b928b9949Jens Frenkel- fix compilation
35b242662Jens Frenkel- start to implement new index calculation
bc5af8239Niklas Worschech- removed tab in ArrayOperations
41f673717Niklas Worschech-fix in cpp template for array assign
bc31b2813Jens Frenkel- collect simvars without listAppend - use markarray to unique equations of strong connected components
b969135bcAdeel Asghar- Moved gettext back to Util.mo
855a9a74cMartin Sjölund- eol-style
3481b9941Adeel Asghar- Return the TranslatableContent record from runtime. So that getMessagesStringInternal() can work fine. - Moved the TranslatableContent from Util.mo to Error.mo - Added a testcase for getMessagesStringInternal(). - Some minor fixes in FMI. - The translation file msgid and msgstr should be same.
f6b6eda49Martin Sjölund- Fix some issues with loading models (I hope)
b1c77aaddMartin Sjölund#1793 - Changed from an MSL based on 3.2 to 3.2.1 - Should not break the testsuite - Will break the testsuite
745d97305Martin SjölundDon't copy PythonInterface files to scripts on Linux. We already installed it so Python works...
088bfa641Henning Kiel- some more .de translations
c8d7c737dPer Östlund- Implemented check for flow/stream connecting to non-flow/stream for the new instantiation.
0572d7d12Per Östlund- Bug fix for flow/stream to non-flow/stream check.
4b3539394Jens Frenkel- replace der(dummy_state) -> der_dummy_state in shared only once
3fca9125eJens Frenkel- speed up index reduction
9cc6990d2Martin Sjölund#1707 - Handle splices with lhs expression dimensions that are not equal to the array dimensions
1b7051d6ePer Östlund- Added new package ConnectionSets to handle connection sets. - Lots of connection handling improvements. - Some updates of the omc translations. - Added case for SCodeInst to CevalScript.runFrontEndWork which mimics the old instantiation, to make it easier to compare the new and old instantiation. - Probably lots of other things too...
4536cb4c1Martin Sjölund- Fix compilation
1e7827f30Jens Frenkel- fix compilation
95c0350abJens Frenkel- change Inline.mo: - tailrecursive, generate less new objects - call lateInline only once
e4804f6dbMartin Sjölund#1670 - Updated help text
1af69cfeaMartin Sjölund- Fix compilation without omniorb
b801e726aMartin Sjölund- ReleaseNotes
a87c1a859Adeel Asghar- Added step to install python interface.
c49bebb48Adeel Asghar- 1.9.0 Release notes.
913a61116Jens Frenkel- switch back to old wights for tearing
63a6611ddJens Frenkel- bugfix sortStateCandidatesVars - improve dynamicstate selection, traverse system only once to replace all der(dummy_states) calls
7c364872bJens Frenkel- add Exp.ASUB case to BackendDAEOptimize.derive - minor changes in tearing var selection, check for unsolvable vars befor select tearing var - ExpressionSimplify add case for DAE.MUL_ARRAY_SCALAR with Zero scalar value - IndexReduction make state sorting heursitic easier, do not use the old one from dummyderivative
4e18667bfMartin Sjölund#1775 #1776 - Added detection of usage of unbound local variables in match-expressions - Set eol-style
1c86b566cMartin Sjölund- Fixed svn:eol-style
11a1b1f89Martin Sjölund- Make version number pretty
f07fd3405Adeel Asghar- added Beta to version.
9ffb7423dAdeel Asghar- Changed the version numbers. - deleted the old simforge url. - updated the build/setup instructions.
c3fceac8fAdeel AsgharFMI Import - option to define logging level. - more better code generation.
c0f5b663cLeonardo Laguna- Removed most of the unused imports warnings
7197c1ffcMartin Sjölund#1776 - Check lhs patterns for new variables that are bound, enable checks for MetaModelica (match excluded)
4de9d2736Martin Sjölund#1776 - Added detection of unbound variables in functions for Modelica. MetaModelica expressions will be supported Real Soon Now™
24a27f0a2Jens Frenkel- use strncmp instead of strcmp
741196c3dJens Frenkel- fix skip condition
0b29dafb1Mahder Alemseged Gebremedhin+ Don't compile OpenCLRuntime on Mac for now.
d81a29c06Mahder Alemseged Gebremedhin- fix typo.
71ac12641Adeel Asghar- fix coding style.
e67d806d5Jens Frenkel- fix bugs for runtime cpp - skip warning from initialisation about self generated variables
be5aa99c8Adeel Asghar- Only copy the required binaries. - Updated the NSIS setup readme.
2f9c749e7Jens Frenkel- fix bugs for simCodeTarget Cpp
3bf0dfc67Per Östlund- Removed space after first parenthesis when dumping asserts in DAEDump, to ease the transition to a template based dumper.
33a770de6Martin Sjölund- Improves r12695 by using an assoc list from grammar flag id instead of boolean (legacy code from when grammar was boolean metamodelica on/off)
505e3eba1Martin Sjölund- CPPFLAGS are PREPROCESSOR flags, not CFLAGS
99066b755Martin Sjölund#1789 - Fix table initialization. Seems to be a scope typo (indentation correct, curlies not).
38186adb5Mahder Alemseged Gebremedhin+ Finally found why setCommandLineOptions() doesn't work for a new grammar, pheew + 1 more API for getting the default device. + compile with -fPIC -O3
8e6b4b4ccMahder Alemseged Gebremedhin+ Don't compile OpenCLRuntime on Mac for now.
80118b5d7Jens Frenkel- implement read csv for SimulationResults - add test for msl31/mechanics runtime cpp (not yet activated)
afbc5f602Peter Aronsson-Changed implementation of unused (by OpenModelica) function expIsPositive to be based on expIsPositiveOrZero.
cb626fb62Leonardo Laguna- trivial modification to fix wsm compilation
5316903d5Martin Sjölund- Compile without omoptim
e53138664Martin Sjölund#1786 - Do not go into an infinite loop if using {} pattern on something that is not a list
a00b45b45Martin Sjölund- Remove r12679 / #1787 work-around - Do not add an = 0.0 binding by default to every paramater that lacks a binding
07c2bffedMartin Sjölund- cp -u is not a valid cp option - g++ is not a real C compiler - C does not support overloaded functions - g++ is not the system-configured C++ compiler
3052323d0Martin Sjölund- Also link with termcap
35938d9e3Mahder Alemseged Gebremedhin+ Added a flag and API to specify default OpenCL device. + Free dangling array after returning from a function. (y) + Show device selection only if default device is not set.
801a9332bJens Frenkel- fix tests
5589f2a28Jens Frenkel- fix tests - take care for liniear torn system that tearing vars not part of relations
69ec413daJens Frenkel- add case for simplifyIfExp as workaround for real and integer types, see Ticket #1787
6c41f5231Mahder Alemseged Gebremedhin+ Combined the makefiles + fix for 64 bit + detect vendors and enable extensions properly.
a85bb4148Jens Frenkel- remove some never matched cases from simplifyBinaryConst, fix bug for GREATEREQ, move true=positiveZero(e1)=negativeZero(e2) to simplifyBinary
83ea71a77Jens Frenkel- inline array=array before state selection - move Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.mos to working tests
6f8939d78Mahder Alemseged Gebremedhin- fix again
5517fbbb6Mahder Alemseged Gebremedhin+ fix build dir path
cca561ecaMahder Alemseged Gebremedhin+ Added ParModelica to the makefiles.
4d7a339b4Jens Frenkel- move Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.mos, Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.mos, Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.mos and Modelica.Mechanics.Translational.Examples.PreLoad.mos to working tests
5e26bd518Martin Sjölund- Fix for bootstrapping
8f300e167Per ÖstlundFix for bug #1774: - Better sorting of elements in Inst.instElementList by considering qualified crefs. - Added testcase Modelica.StateGraph.Examples.ControlledTanks. - Enabled the forgotten Modelica.Blocks.Continuous testcase.
bb341c98fMartin SjölundFixed #1749 - Do not print an error that rhs should be a function if it actually is a function
4f9b56c10Martin Sjölund#1772 - Do not evaluate a function that returns MM arrays
f6228ca5dMartin Sjölund- Fix for moved static readline location
ae0290fbeMartin Sjölund- Give correct revision for nightly builds
3aba1628bMartin Sjölund- Improved isPositiveOrZero - Used isPositiveOrZero for sqrt() calls in codegen to avoid adding assertions
35fe4983bJens Frenkel- use noEvent for y = semiLinear(x,sa,s1) -> s1 = if noEvent(x>=0) then sa else sb
c066aee2bJens Frenkel- add support for semiLinear optimization, see MSL Spec 3.7.2.5
d37731547Mahder Alemseged Gebremedhin+ added a new scope for parfor to handle it differently from normal for loop scope. + fix for non-built-in parallel function attributes.
32bd99350Mahder Alemseged Gebremedhin+ check calls to functions depending on function type and scope type, parallel functions can be built-in too. + changed some of the parmodelica built-in functions to parallel built-in functions
e80f44414Jens Frenkel- add BackendDAEOptimize.optimizeInitialSystem - move linearize/test_01 back to failing tests
6517df676Jens Frenkel- test only if all variables the algorithm should be solved for part of the outputs of the algorithm - move linearize/test_01 back to working tests
16612f8b6Jens Frenkel- fix tests dummyDerMatching
f1ef89d38Martin Sjölund- Added make target thumbsdb-error - Removed some Thumbs.db files - Added svn-eol-style on some text-based files in the standard libraries
f264deee7Martin Sjölund- Updated MSL 3.1 to latest maint branch
52cadd28fJens Frenkel- improve dynamic state selection, still problems with initialisation - move PlanarMechanicsForTesting.Examples.KinematicLoop_DynamicStateSelection.mos and PlanarMechanicsForTesting.Examples.KinematicLoop.mos to working tests
c9da59b83Adeel Asghar- fix tabs.
680faccebMahder Alemseged Gebremedhin+ Added built-in ParModelica functions. + fix parallelism propagation. + temporary fix on simulation settings for ParModelica case. + initialize OpenCL env only when needed. + sum fixes.
f6b3e2644Adeel Asghar- removed tabs.
bc3a0c345Adeel Asghar- Moved the FMI import code generation to susan.
f1a92b2e5Adeel Asghar- OMOptim paths were changed.
3c4d95ba8Jens Frenkel- fix compilation
15f3ef7e0Jens Frenkel- fix derivativ of min/max, ToDo implement derivative of min/max for more than two arguments - bugfix dynamic state selection, state changes during runtime works now well - improve calculation of jacobian - improve analysation of jacobian - move BackendDAEUtil.jacobianTypeStr to BackendDump - improve calculation of liniear system rhs - move Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.mos and Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.mos to working tests
d64f97534Adeel AsgharThere is no default log level for jm callbacks. Set it to jm_log_level_debug while initiaizing.
1c7cc9f42Adeel Asghar- uncommented code generation.
bf2136b12Adeel Asghar- Free the memory in case we return early because of some error.
5ac8d268eAdeel Asghar- Generate model variables code by reading the modelVariables section from modelDescription.xml. - Fixed the external objects code.
32762000bJens Frenkel- bugfix for dynamic state selection
fc9058045Jens Frenkel- change SINGLEARRAY,SINGLEALGORITHM,SINGLECOMPLEXEQUATION to have only one equation index instead of a list
d0e8c5fe7Jens Frenkel- remove Hash mapings from alias Variables, because they not needed anymore ->(AliasVariables now Variables) - small fixes for dynamic state selection - move Pendulum.mos and DummyDerMatching.mos back to working tests
c7aaa603fMartin Sjölund- Fixed order of elements loaded by loadFile() - Added API setDocumentationAnnotation()
4f2105444Jens Frenkel- rename SimulationRuntime/c/inline to omc_inline to avoid confilct with Inline.h from Compiler/Inline.mo
3ef441a49Jens Frenkel- int writeOutputVars -> void writeOutputVars - use %li for modelica_integer in printf
2e0975568Jens Frenkel- report warning if reference time array is to small - move Modelica.Electrical.MultiPhase.Examples.TransformerYD.mos to working tests
d30736060Jens Frenkel- remove Boolean output from past optimisation modules (modules have to change matching of equation system if rerun of matching algorithm is necessary)
6e4bd2443Jens Frenkel- bugfix BackendVarTransform.replaceEquations - move Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.mos to working tests
01359fbabJens Frenkel- geep information if replacements is performed in equation array - use matching of equationsystem to decide for new matching
b16c70352Martin Sjölund- Don't copy so many includes. Only a few are needed
75bbe2cafMartin Sjölund- Copy headers for fmu tests
c1b64e209Martin Sjölund- Compilation
5bfb92c36Martin Sjölund- Only copy essential headers to the installation
b109731baMartin Sjölund- Copy also the directories
08cf155c1Martin Sjölund- addClassAnnotation has been moved to the typed API - Added OpenModelica.$Code.Expression - Added support for named arguments that have Code type
da0b8860cMartin Sjölund- Detect people who cannot spell Linköping correctly
ab3bbe0c4Martin Sjölund- Fix testsuite
9c81b9dd0Martin Sjölund- Disallow local variables shadowing in/out
ba976eb04Jens Frenkel- bugfix alias of alias is constant
81ae70257Jens Frenkel- fix bootsrapping
871a1a084Jens Frenkel- remove local variables with same name as inputs - fix tests
2f089f664Adeel Asghar- Minor fixes.
099185e16Adeel Asghar- Fix build.
3b78a556fJens Frenkel- do replacements also in known aliases
7f96e622eAdeel Asghar- Free the memory properly.
49d163339Martin Sjölund- Do not link RML files in OMC runtime
96215c371Jens Frenkel- change handling of alias vars in remove simple equations -> good speedup
ae4a87ebdAdeel Asghar- Generate some test code for FMI model exchange.
de0b7047bMartin Sjölund- Avoid creating the DAE.RELATION x >= 0.0 to generate code for sqrt. Now we simply generate the expression and check if it's >= 0.0, else use it
9226133d5Martin Sjölund- Do not evaluate lhs of tuple-assignments (fixes testcase) - Make generation of sqrt(abs(x)) smarter - do not generate code for events and stuff if it is known to be a positive argument
94e408cdbAdeel Asghar- Don't generate extra libs. Just use the Compiler/runtime.
6e6bffc38Adeel Asghar- Generate makefiles.
c9e0300d1Martin Sjölund- Safer make commands (cd nonexisting; make) causes infinite loop
1c54ea2ddAdeel Asghar- Add fmiwrapper files.
2936776a1Adeel Asghar- Compile FMI stuff separately. - Create fmiwrapper lib.
f0d0cdcb4Jens Frenkel- take care for state selection to select derivatives of dummy_states as dummy_states - move Modelica.Mechanics.Translational.Examples.InitialConditions.mos to working tests
ac03fd5cbPavol PrivitzerThe Second part of the potentially buggy places in .tpl files due to the (confusing) semantics of iteration expressions and the "empty" option - made explicit "empty" option on all the suspicious places (those that are not obvious to produce an output for every iteration) - CodegenC.tpl and CodegenCPP.tpl covered so far - some small code styling in CodegenCPP.tpl
177f01b4dMartin Sjölund- Changed FMIL to build in separate directory again
555798514Martin Sjölund- Give as many strings as there are %s directives in the error-string
49600db99Jens Frenkel- bugfix mixed equation systems - move Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.mos Modelica.Electrical.Analog.Examples.ShowVariableResistor.mos Modelica.Electrical.Machines.Examples.DCSE_Start.mos Modelica.Electrical.Analog.Examples.HeatingResistor.mos Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.mos to working tests
259a8bda8Mahder Alemseged Gebremedhin+ revert memory pool to 4 mb.
4dc9ef702Mahder Alemseged Gebremedhin+ Generate ParModelica code for function (non-simulation) case too. plus some fixes.
d3c469b70Jens Frenkel- take care tearing var is not used in relation for mixed systems - move Modelica.Mechanics.Translational.Examples.Friction.mos back to tests
f1ab752fdMartin Sjölund- Flatten and generate correct code for: algorithm (,x) := f(time);
3b1aa9fa5Pavol PrivitzerFirst part of the potentially buggy places in .tpl files due to the (confusing) semantics of iteration expressions and the "empty" option - only for CodegenC.tpl yet
63461b2cbMartin Sjölund- Generate readable generated code
ec63c6afbMartin Sjölund- Fix warnings
25ab8c107Jens Frenkel- improve tearing var selection
f81bd5aacJens Frenkel- handle pre,change,edge in adjacencyRowEnhanced1 better
b862e14d6Jens Frenkel- BackendVarTransform: use inFuncTypeExpExpToBooleanOption everywhwere - BackendDAEUtil: bugfix adjacencyRowExpEnhanced1 - SimCode: move skipPreOperator to BackendVarTransform
00682cf1cJens Frenkel- fix tab
c50a564f8Jens Frenkel- bugfix tearing for mixed equation systems
9d4b82173Jens Frenkel- bugfix SomCode.solveTrivialArrayEquation
e757b127fJens Frenkel- Tearing: handle array equations in nonlinear case
989a7ca41Martin Sjölund- Removed some unused variables - Set LF line endings - Updated refactoring script to contain more profanity (fuck yeah!)
57cd95b3cMahder Alemseged Gebremedhin+ Back-end and code generation support for parfor loop.
24e1cfdbaMartin Sjölund- Fix syntax error
748da59d1Martin Sjölund- Refactoring
aaad0c749Martin Sjölund- Fix typo
1852e5d20Martin Sjölund- Ran automatic refactoring
e312b0c05Martin Sjölund- Add LDFLAGS to the ones the simulations use
c8aa34051Martin Sjölund- Print errors in flags instead of fail execution
2d23f00c7Martin Sjölund- Added test for case guard-conditions - Fixed a bug where tail-recursion rec(i-1,i) would cause rec(i-1,i-1) to be used instead
0bab03584Martin Sjölund- Added CPPFLAGS to makefiles
3e1027535Jens Frenkel- check for unsolvable before select tearing vars
18a093473Jens Frenkel- fix tests
c310bb92bMartin Sjölund- Added support for guarded case-patterns
c4826a3a8Per ÖstlundFix for bug #1773: - Make sure that we fail properly when we get a type mismatch on a binding, instead of returning UNBOUND.
e487ab793Martin Sjölund- Tail-recursion optimization on if-statements
2a67dda36Martin Sjölund- Make Debian cmake handle fmil
afba3480fMartin Sjölund- Don't print so much in colour; it makes us dizzy. Stupid cmake destroying things.
4f2a12693Martin Sjölund- Translation update
3f93801caMartin Sjölund- Look for gettext headers
f57b222a8Martin Sjölund- Fix compilation of ASUB in non-function context, too
b4926da45Martin Sjölund- Fix linkage
e2d66c186Martin Sjölund- Make compilation a little faster
56973c0b3Martin Sjölund- Added COPYING file
a3419d121Martin Sjölund- Configure now handles libqwt5.so (from arch AUR)
585ce8e94Jens Frenkel- bugfix linearize: - generate at least one print commant to have the same index and avoid the strange side effect
03864ced9Jens Frenkel- fix for linearize
254b211cdAdeel Asghar- Use the static lib of FMIL.
1959d7b2eAdeel Asghar- Updated the debug and profiler makefiles.
17d3bc9cbMartin Sjölund- Fix Linux compilation
b40e6bb7eAdeel Asghar- Compile FMIL.
060c012eeMartin Sjölund#1764 - Improve sorting of package.order elements + Actually sorted now + Handle MSL 3.2-style Math.mo where elements may be inserted in the middle of the package.mo
ab1f64c3eJens Frenkel- bugfix compilation
32d6c2491Jens Frenkel- remove unbound local variable
7e07b3ef9Adeel Asghar- Update OMDEV. - Replaced the FMI reading code with FMIL utilities.
25978d294Martin Sjölund- Bootstrapping
265a4e902Martin Sjölund- Improve error-message if we do not have CORBA but try to use it
9cf5b4531Martin Sjölund- Removed Absyn.ELEMENT.name (redundant and wrong) #1764 - Changed ClassLoader to respect package.order + This means most packages are parsed differently than before and many tests (especially Media) changed
ebff3f790Martin Sjölund- Some simulations start working again after ocl commit
a2e390639Martin Sjölund- Remove tabs
df5c6f1dfMartin Sjölund- IF I SAY DON'T BUILD OMOPTIM, DON'T TRY TO BUILD OMOPTIMBASIS *STABBB*
8d45a2f4aMahder Alemseged Gebremedhin+ ParModelica extensions. BackEnd and Code generation for parallel functions and kernel functions. + Some fixes in runtime.
5601ca5b0Martin Sjölund- Fix modelML models and classloader - Expected output
19db90721Martin Sjölund- Bootstrapping - Expected output
b24c1a079Martin Sjölund- Fix bootstrapping - Fix ThermoSysPro library errors - Disable within checks for language standard 1.x
248f7c3e3Martin Sjölund- Fix loading of MSL 3.1 by fixing ClassLoader and the MSL 3.1 package
23379875aMartin Sjölund- Added checks for loading mo-files in same directory as package.mo
105ea3b7fMartin Sjölund- Added some checks for loadModel() package.mo-files: * 1 class * correct within * correct classname
cef3e1a89Adeel Asghar- FMI import.
f65d90014Adeel Asghar. Fix Windows build. No langinfo.h for mingw.
7a6225ebfMartin Sjölund- Fall back on en_US locale since it is rather common
e2a86e41bMartin Sjölund- Look at the user's previous environment to get a UTF-8 LC_CTYPE locale if possible
2558d0ee7Martin Sjölund- Fix compilation damnit
b339a59baMartin Sjölund- Fix compilation
6fde1b6d0Martin Sjölund#1757 - loadFile("package.mo",encoding="xxx") now takes the chosen encoding into consideration * Note: package.encoding overrides the argument in the function call
01ca5d7b0Martin Sjölund- Fix UTF-8 locale
8981df9d6Martin Sjölund- Updated the copyright notice
3cdac3b10Jens Frenkel- BackendVariable: - bugfix existsVar - add isVarNonDiscrete
178b2781eJens Frenkel- SimCode: handle also complex equations like "Record(x,y) = f()" if solved for x,y - List: add map1rAllValue and foldAllValue
cb45e0fe3Jens Frenkel- BackendDump.printEquation use equationStr - SimCode: handle also Record(..) = f(..) for nonliniear systems
a76050347Martin Sjölund- Installation path
637c11419Per Östlund- Merged the cases in SCodeInst.instFunctionCall, since RML unifies them incorrectly.
3ec058838Martin Sjölund- Makes omc search for more locales than the given one (to make a good effort of getting LC_CTYPE=UTF-8)
e0be5b5cbJens Frenkel- workaround for nonlinear torn systems
bd25e9ec3Jens Frenkel- bugfix tearing for nonlinear systems
abfdb04c2Jens Frenkel- bugfix tearing for nonlinear systems
4cb5597c6Martin Sjölund- Fix gettext charset when not using +locale=..., relying on env.vars instead
3597a7e3aAdeel Asghar- gettext uses environment variable so don't use setlocale for windows. - Pass the OMEdit locale to omc.
d6219051fJens Frenkel- bugfix unbound local variables - reimplement BackendDAEUtil.getEqnsysRhsExp - Expression.add case for a+(-b) = a-b - Expression.sub case for a-(-b) = a+b and -a-b=-(a+b)
7a44ca111Martin Sjölund- Finished swedish translation
6cb08dbd9Martin Sjölund- More translations
06e4cffdcPer Östlund- Changed the configure check for qwt to include qwt6.
671edab42Jens Frenkel- save time, do not update incidence matrix
c09d41bb2Jens Frenkel- bugfix removeSimpleEquationsPast
e1fa93f92Martin Sjölund- Improved translations
d1b80fa7aJens Frenkel- tearing, bugfix for array equations
e378b33e0Adeel Asghar- Fixed build for windows.
0ad152d18Per Östlund- Removed some cases for handling stringified crefs.
52e981188Martin Sjölund- Marked some files in the runtime as translation targets
f6276e959Per Östlund- Merged Flow and Stream in SCode and DAE into ConnectorType.
fe7aeda66Martin Sjölund- Enable interactive/interactiveCorba modes again
849786604Martin Sjölund- Avoid printing multiple copies of the usage if +help is given on the command-line
206157a7dMartin Sjölund- Enable translation strings for many config flags
60d29cd7bJens Frenkel- fix uninicialised variable
f931d19daAdeel Asghar- Fixed setlocale warning for windows.
6f956338eJens Frenkel- implement handling of array equations in BackendDAEOptimize.derive
24da7fb72Martin Sjölund- Updated translation guide
cb16a9a1fMartin Sjölund- Adding German language stubs to the translations
b28cd7939Martin Sjölund#1767 - Marked strings for translation in Error.mo - Removed some useless whitespace from a few error-messages
66d0c0029Jens Frenkel- do not exceed next time step while search forward for event in reference
0a66154f6Niklas Worschech-fix in cpp template for algortihm no retcall
acb3222a3Jens Frenkel- improve SimulationResultsCompare, now the left and the right value of an event are compared
a9433deccMartin Sjölund#1766 - Only set locale for messages so we do not screw up numbers
b19c0e44bJens Frenkel- update Loop handling
f22664567Jens FrenkelDo not hand over the scalar incidence Matrix because following modules does not check if scalar or not
57188b47bJohanna SchneiderBackendDAEOptimize.mo: An other heuristic for the tearing is now implemented. The residual equations are solved using Newton’s method: u_{n+1} = u_n – (f‘(u_n))^{-1}*f(u_n). During each iteration, the linear system f’(u_n)*du = -f(u_n) is solved for du. Thus, the Newton step can be rewritten in the form u_{n+1} = u_m + du, where du is the solution of the linear system. The function “tearingSystem1” now creates this linear system and solves for it using the function “tearingSystemNew”. Flags.mo: a new flag „tearing_and_relaxation“ is added to activate the above system in BackendDAEOptimize.mo. BackendDump.mo: added the case for RESIDUAL_EQUATION in “printEquation” and “dumpEquation” Expression.mo: added the function “makeDifference”
71e0caa43Martin Sjölund- Check for gettext
e89017774Martin Sjölund- Fix clean command (OMOptimBasis)
85dad2356Martin Sjölund- OMOptimBasis path
0a96687e5Martin Sjölund- Fix OMOptimBasis paths
74f857533Niklas Worschech-changed simulation arguments to program_options, modified CevalScript for cpp simulation call
d6af7698aMartin Sjölund- Remove debug print
c30941ab0Martin Sjölund- Added a System.gettext() call - To try out localization of the omc kernel, see directory Compiler/Translation/README. Run make on it after setting up the strings to be translated and your language since we do not run the target by default.
c4c5f0e83Martin Sjölund- Adding directory for translations of the omc kernel
ca6738c09Jens Frenkel- avoid memory leaks - use absdouble()>epsilon for double==double in SimulationResultsCmp
1ff5a0153Martin Sjölund- Remove results from list of keywords
0f1e19989Jens Frenkel- get rid of bootstrapping warnings
59eac3b4bJens Frenkel- remove unused local variable with same name as input to avoid segvault by bootstrapped compiler - remove fastht from BackendDAE.Variables
9d23a7f4fNiklas Worschech-changed cmake file for lapack and blas lib
973149ce2Niklas Worschech-removed tabs
62257c622Niklas Worschech-renamed cpp shared libs and executable with OMCpp prefix -changed executable call for cpp runtime in CevalScript
52320a7c4Adeel Asghar#1421 - no more duplicates of annotation by addClassAnnotation. - Look for annotation in all parts of the class. If found just update it. - If no annotation is found then add a new one in public section.
ae17f83ddJens Frenkel- fixes for if-equations
593c7bedfMahder Alemseged Gebremedhin+ Remaining support for Class Attributes (objectives) for optimization class of Optimica extension.
1c4cd274cJens Frenkel- add missing functionality for if equations
1d6b0ee09Adeel Asghar- New API call to check if the nested class is protected or not, + isProtectedClass
0353c9ff9Jens Frenkel- add BackendDAEOptimize.simplifyIfEquations - move evaluation of parameters with annotation evalute=True to backend - move handling of if equations to backend
7c852ac0dJens Frenkel- remove transformDAE,mapTransformDAE,transformDAEWork,restartMatching from BackendDAEUtil.mo
97174c459Jens Frenkel- test new interface for index reduction
cd759d139Niklas Worschech-changed loading algebraic loop solver library in cpp runtime
8b3d44bc8Niklas Worschech-added exception for not supported output format
55b08f092Niklas Worschech-fix removed space in include string
f7f18de28Niklas Worschech-changed simcall in CevalScript for cpp runtime
382a3bb83Niklas Worschech-fix in cpp template for algloop include's
679c347d0Niklas Worschechchanged instantiation of Algloops in cpp template because of assembler errors
ace519069Adeel Asghar- If the adding component class is partial then declare the added component as replaceable.
7d4e0bc92Pavol PrivitzerC# codegen template little improvements - proper enum support - initial algorithm for bound params support - added (my old) Susan_TODO.txt
8c8a1bd94Jens Frenkel- rename evaluteParameter -> removeevaluteParamters - add evaluateFinalParameters and evaluteParameters,
e490c51c6Lennart Ochel- fix sparse jacobian for initialization
084eed4acLennart Ochel- add interface to get real sparse jacobians - use sparsity pattern for initialization using ipopt - correct indentation in CodegenC.tpl
1761dd059Jens Frenkel- bugfix rooted
6dcf76789Jens Frenkel- implement evaluation of "rooted" in ConnectionGraph.mo
79639569dPavol PrivitzerCleaning of the internal stuff out of the susan_codegen/ - delete susan_codegen/SimCode - move SimCode_design.txt to susan_codegen/
03ae782cbJens Frenkel- get some loops working
4fc487a3eLennart Ochel- generate constant indices for each symbolic jacobian
6669fcd72Lennart Ochel- fix tests using simflags
524e70702Jens Frenkel- continue loop handling
a532cf7f0Niklas Worschech-fix in cpp template giveZeroFunc
b0d80ac58Jens Frenkel- grammer
9f7cbb1bcNiklas Worschech-fix in cpp template for make file generation
556cae34cLennart Ochelfix for ipopt in std-directory
6df315f7cLennart Ochelfix tab-errors
cf7164653Lennart Ochel./configure - add ipopt configuration (usage: --with-ipopt=DIR) ./Compiler/BackEnd - add symbolic generation of jacobian for initialization (usage: +d=symbolicInitialization) - reorganize initialization code (move from SimCode to BackendDAEOptimize) ./Compiler/Template - generate unique jacobian indices ./Compiler/Util - add debug-flag symbolicInitialization ./SimulationRuntime/c - add initialization-method ipopt using ipopt (usage: -iom ipopt)
87f08c25eJens Frenkel- update OnRelaxation for loops
8743e3270Adeel Asghar- New API calls to check class restriction, + isOperator + isOperatorRecord + isOperatorFunction
f385d68ffNiklas Worschech-fix for algorithm for loops in cpp template
0568425ccNiklas Worschech-added struct and Literals generation to cpp template
b8e5f018eJan SilarFixed bug in C# template - FunDAE - mexed_equation_system. Redundant "," causing nonbuildable generated code.
8c27a19e7Jens Frenkel- add Flag to set cheapmatching algorithm - bugfix for pantelitis index reduction
8e7c9cf15Jens Frenkel- bugfixes index reduction and matching
1be7d9640Jens Frenkel- fix bugs
1b7e191beJens Frenkel- remove tabs
b1383453fJens Frenkel- listNth -> listGet - update old matching and index reduction to new interface - update DynamicStateSelection, Pantelitis for wrapperles code
01262d233Jens Frenkel- try some things for loops
3e72ebd93Niklas Worschech-fix in cpp template for algorithm tuple assign and start values
24f9b1079Jens Frenkel- add module removeFinalParametersPast
58657c17fJens Frenkel- rewrite some set functions
8b7c5e50aJens Frenkel- add cases for unaray and asub to Expression.mo - do basic simplification for expAdd,expSub,expMul
da3ff3266Jens Frenkel- search also in simple and initial equations for zerocrossings
2f5e8a580Martin Sjölund- OMOptim build fix
8ec5db594Jens Frenkel- remove unused when clauses from BackendDAETransform.traverseBackendDAEExpsEqn
8c3708589Jens Frenkel- remove index from WHEN_EQ and keep condition of when equation in when equation - install-openturns depends on mkbuilddirs
949b38a68Jens Frenkel- fix tabs
a50d8c840Jens Frenkel- add code for multi body relaxation, not yet finished, kinematic loops still fail
ffe7af586Martin Sjölund- Look for paradiseo build directories as well
c7eaf7910Martin Sjölund- Added index to FOR_EQUATION
5530d12cbMartin Sjölund- Added utils directory as well
258f730beMartin Sjölund- Some paradiseo autoconf
a15367081Jens Frenkel- bugfix evaluate parameter evaluate=true
ac364ddffJens Frenkel- bugfix if equation for elabelements
a244a6675Martin Sjölund- paradiseo "help"
f29ff6625Jens Frenkel- handle if equations in Derive and BackendDAETransform.traverseBackendDAEExpsEqnWithSymbolicOperation
0e09cc7b6Jens Frenkel- handle if equations in inline
7c4868e85Jens Frenkel- handle if equations in incidence matrix
fdf9c9487Jens Frenkel- add condition to when equation - handle elsewhen branches in incidence matrix
6e0a8ade1Jens Frenkel- add size information to when equation
28ac9962cMartin Sjölund- Check for include/qwt5, then check the header for QWT5 macro (using grep)
2caa5f56aJens Frenkel- inline condition of when equation only once
eec678d11Jens Frenkel- bugfix tests
e5b37d52eJens Frenkel- bugfix tests
f316bf652Jens Frenkel- add some more support for if equations in backend - add module for evaluate parameter with evaluate=true annotation
b175adc46Niklas Worschech-removed tabs
1334d9776Niklas Worschech- adapted numeric/bindings header files
361d05618Niklas Worschech- extended cpp template for sparse jacobian
ff050fe41Jens Frenkel- switch evaluateAnnotation on
dbffe8ce8Jens Frenkel- change implementation of removeFinalParameters and removeProtectedParameters to handle several equationsystems
1f83bf326Jens Frenkel- remove some unused imports - add Env.Cache and Env.Env to BackendDAE.Shared
021f21cc3Jens Frenkel- use traverseBackendDAEExpsNoCopyWithUpdate to geep the simplified expressions and not the old one
4668b42fcJens Frenkel- bugfix Tearing
ee7a7024fJens Frenkel- Bugfix getVar - Bugfix BackendDAEEXT.setAssignment - use vars and eqns for BackendDAEUtil.analyzeJacobian - bugfix Tearing
f4a7b4125Martin SjölundFix testsuite
91d7bfb78Martin Sjölund- Added Integer index to for-stmt (in DAE and InstTypes) as well as CREF_ITER - This allows us to assign a unique index for each local scope, making it easier to traverse/replace expressions in later phases
e17f1ac63Martin SjölundSome minor documentation updates
f00a8738fMartin SjölundAdded expansion of if/for, fixed some expansions of algorithm sections (expand the whole sections instead of individual statements)
543b49ff1Jens Frenkel- fix comment for systemSize - fix counting of algorithm outputs
abb60e1bbJens Frenkel- BackendDAEUtil: avoid Zero entries in JacMatrix - fix order in equationToExp for arrayEquations - fix order in createNonlinearResidualEquations for arrayEquations
13c4858e1Jens Frenkel- remove debug output - update tearingnew
4a4eea2d8Jens Frenkel- fix tests
8cc472bc8Jens Frenkel- fix tests
fc6d3b175Jens Frenkel- fix tests
131854b3fJens Frenkel- fix tests
74443b896Jens Frenkel- fix constant liniear system
996dc805eJens Frenkel- fix initial equation issus with function equationtoScalarResiduals - add some util functions
fb4dede5dNiklas Worschech- Switched CVode as default solver for cpp runtime - removed unused cpp case in SimCode createEquationsForSystems - added test model BouncingBall to cppruntimetest- folder
041f44001Martin Sjölund- Added missing testcase function1.mo - Do not expand array-assignments (keep non-expanded as it is not needed to scalarize them)
ef3d89cfcMartin Sjölund- Fix typing of [:] in function context - TODO: Fix this also for expression, not just declarations of components
40e107ff3Per ÖstlundPre-vacation code dump: - Added List.accumulateMap. - Replaced InstUtil.print* functions with the template based InstDump. - Lots of connection handling and other fixes.
b3ed55815Niklas Worschech-removed tabs
0abd27dc9Adrian Pop- more equation printing in InstUtil.mo - more expansion (not quite right) in SCodeExpand.mo - fail again in Typing.mo in typeFunction.
a0dfae958Jens Frenkel- filter constant initial expressions
adb7fd657Adrian Pop- ignore deleted components in Typing.typeConnectorCref2. - better error message in SCodeExpand.mo. - V6 engine gets to expansion now but fails there.
1ec5cf297Niklas Worschech-changed output format of cpp runtime to csv
bf927bc44Jens Frenkel- fix compilation
dbaa16041Adrian Pop- set operator type to T_BOOL_DEFAULT for logical and relational operators in instOperator - select the type of the operator if is not T_UNKNOWN in typeExp - more builtin functions - use args instead of pos_args in instFunctionCall (copy/paste error?) - instFunction: add instead of addUnique as get(path) uses a non fully qualified path and it does not work. - do not stop in typeFunction (for functions with unknown dimensions it fails but we should type these somehow, maybe starting from the call arguments). - instEngineV6 gets further but still not working.
fff85d6a9Martin Sjölund- Check linking before we assume sundials is recent enough
8be4c2a35Adrian Pop- handle some of the builtin functions - handle records - add a Compiler/FrontEnd/TypeCheck.mo for type checking (does nothing for now, more will come later).
f59164e58Jens Frenkel- revert some pices of last commit
f1d941b02Jens Frenkel- fix compilation
3ee3517aeJens Frenkel- the End of the WRAPPER Era
63ed8ca64Martin Sjölund- Added typing of array allocations
7d0bb6d02Martin Sjölund- Add dependency not to assign to an array before it is allocated
721f3b063Jens Frenkel- fix count of equations, Expression.sizeof, add a fiew more types
c7fede3d6Martin Sjölund- New inst: Added topological sorting of array dimensions, some expansion rules for functions (allow unknown dimensions) - New DAE statement: Array allocation (for new inst only) - TODO: Expansion of statements in functions - TODO: Topological sorting of init statements+array dimensions
130424a7cNiklas Worschech- fix for algorithm if and reinit statements in cpp runtime
7a95b67acJens Frenkel- use CheckModel for checkModel
0d932bd6dJens Frenkel- fix coding style
3b84ccfcdJens Frenkel- fix compilation
e58222a52Jens Frenkeladd CheckModel.mo: does the Model check without the backendend. Need less memory, should be faster, changes in backend affect less testcases add HashSet.mo, BaseHashSet.mo: copy implementation from HashTable but without a value
dfebfce82Jens Frenkel- Inline.mo,BackendVarTransform.mo bugfix for Algorithms - ExpressionSimplify.mo: symblify Range(1,5)+2 -> Range(3,7) - BackendDump.mo: bugfix print If-Equations
155704895Niklas Worschech- fix for algorithm when statements in cpp template
dc2c4fb6fAdrian Pop- better help for the generated simulation code on -? or -help - support -override x1=v1,x2=v2 -output a,b,c for the generated simulation code which will override the values already in the Model_init.xml file and output a, b, c on the command line at the end of the simulation. - massive OpenTurns connection speedup using Model -override -output (no temp directory generated, etc) - enable full example in testsuite/uncertainties/CantileverBeam_MC-template.py as now it only takes 15 minutes instead of a lot of hours before. - add testsuite/uncertainties/TestModels/ThermoSysPro/package.encoding to circumvent loading errors issues. - delete all generated files in testsuite/uncertainties/CantileverBeam.mos - small fixes to Compiler/BackEnd/OpenTURNS.mo (we should maybe give the distribution order in the OpenTurns OMC API).
8902cbf7cJens Frenkel- fix compilation
9e6d2118bJens Frenkel- Inline.mo: add inlineExpOpt and use it in inlineVar - BackendDump: add dumping of If equations
c10ebf002Martin Sjölund- Sort initial bindings of variables in functions
f6c20d426Jens Frenkel- fix bugs in BackendVarTransform.addExtendReplacement, prior not all necessary extendsions added
34dfc7dcfJens Frenkel- fix bugs in BackendVarTransform.addExtendReplacement, prior not all necessary extendsions added
7b1fb8d5cJens Frenkel- add boxptr_arrayUpdate, to use arrayUpdate with List.fold1r
097a678c6Adrian Pop- this change is to enable querying of Modelica Standard Library 3.2 which has a class called Code. - changed Code quoting to use $Code in Parser/BaseModelica_Lexer.g + allow $Code in END_IDENT token (to be able to use type $Code end $Code; in ModelicaBuiltin.mo). + changes in Compiler/FrontEnd/ModelicaBuiltin.mo to use $Code instead of Code. + documentation updates in doc/OpenModelicaAPI-Howto/OMC_API-HowTo.tex and doc/OpenModelicaUsersGuide.doc + changes to Compiler/FrontEnd/Dump.mo to dump CodeNode using $Code. + changes everywhere where Code was used to use $Code (.mo, .mos, .onb, .c*) + updated OMEdit and OMOptim to use $Code. + more interactive tests in testsuite/interactive/interactive_api_calls.mos (from doc/OpenModelicaAPI-Howto/OMC_API-HowTo.tex) + show statements in more testsuite/interactive tests. + update the Parser/omcc/* files - removed testsuite/HumMod directory - removed doc/OpenModelica-TortoiseSVN+Putty-HOWTO.doc as is way old and not useful anymore.
6e0ef54f2Martin Sjölund- Only look for duplicates in the current scope when adding elements
bf7c4b41cPer Östlund- Added variable declarations to function_sampleInit.
34fafeaeaMartin Sjölund- Some more function typing
7be649f76Jens Frenkel- fix partitionIndependentBlocks for nowrappereqns - continue nowrappereqns
d9f46ecc2Jens Frenkel- fix testsuite
510b58568Jens Frenkel- fix bootstrapp compilation
0c31730f9Jens Frenkel- fix bootstrapp compilation
e1a0b1bd5Jens FrenkelExpressionSimplify.mo: add simplifyList1, condsymplify Expression:mo : add replaceCref DAEUtil.mo: add replaceCref BackendVarTransform.mo: replaceEquations tailrecursive and with less simplify of expressions BackendEquation.mo: add equationSize, equationOptSize, equationLstSize BackendDAEUtil.mo: add equationArraySize, incidenceMatrixScalar BackendDAEOptimize:mo: rename lateInline to lateInlineFunction BackendDAECreate.mo: use inlineVar not inlineVarOpt Inline.mo: do less simplify (simplify not if there was nothing do inline) continue to get rid of wrapper equations
583428032Jens Frenkel- start to ged rid of the wrapper equations
4649fe617Jens Frenkel- BaseHashTable.mo: print also key string in case of an error - Util.mo: add function consN to concate n times an ellement
35225bb0aNiklas Worschech- fix in cmake file for Modelica system
181efacaaJens Frenkel- ComponentReference.printComponentRefStr us match - ExpressionDump.printListStr use stringDelimitList and List.map
395fe1207Jens Frenkelremove tabs
469a679a3Jens Frenkel- remove last idea for dynamic state selection
ed5eb02f3Jens Frenkel- bugfix dynamic state selection
58c5b513cNiklas Worschech-fix for linking new windows boost libraries in Simulation.exe
cda4cb344Jens Frenkel- finish symbolic calculation of determinant of a square matrix
7c4ee0d61Jens Frenkel- switch to dummyderivative - remove unneeded code
6c6c59e2aJens Frenkel- try improved dynamic state selection
2917868b2Per Östlund- Added comments to InstSymbolTable and BaseHashTable.
8c72acd0fMartin Sjölund- Tab cleansing - use burning fire
64bab5bf0Niklas Worschech- Added cppruntime test folder
355925933Jens Frenkel- and switch back to dummyderivative
b3820bad1Jens Frenkel- remove Old getVar helpfunctions - fix bug for dummy state selection - try dummystateselection
7edba3c72Niklas Worschech- modified boost version to 1.49 for windows compilation
5c98b7e60Jens Frenkel- print more information in case of pure discrete equation systems
2fa354c81Jens Frenkel- and switch back to the old dummyderivative
691223420Jens Frenkel- try dynamic state selection
5450e132aJens Frenkel- fix expandCref for Records
b57bced03Jens Frenkel- fix expandCref for Records
0013def2dJens Frenkel- fix expandCref for Records
569873a87Jens Frenkel- fix expandCref for Records
0accc51bbJens Frenkelfix compilation
1e4f28e18Jens Frenkel- speedup expandDer - improve BackendVariable.getVar - rewrote a fiew functions tailrecursive in SimCode.mo
1e1e6f84fJens Frenkel- move a fiew functions to CodegenUtil.mo - add some dependencies in makefile
4df27f04fAdrian Pop- add Compiler/BackEnd/MathematicaDump.mo to testsuite/bootstrapping/LoadCompilerSources.mos - fix output parameters in Compiler/BackEnd/MathematicaDump.mo
478d80371Jens Frenkel- remove print from call simulate
0615b00fdJens Frenkelfix tests
c35b460c5Jens Frenkel-fix loading of settings file in cpp runtime
769634149Adrian Pop- use only Windows commands to get rid of "pause" in pyot.bat.
8b0083c86Jens Frenkel-fixed linker path in cpp template
5438bcb03Adrian Pop- tab removal.
970705de1Niklas Worschech- fix equationInfo field
aef44310aJens Frenkel-fixed dynamic libarary loading with path names
ce3718871Jens Frenkel-fix include names in cpp template
51fb58f95Martin Sjölund- More expansion of functions
9d6cd1c83Niklas Worschech- fix testsuite - add CodegenUtil.tpl/.mo
1c52a6104Martin Sjölund- Start of function expansion
66acada68Leonardo Laguna- Implemented MathematicaDump.mo for uncertainty calculations
2e98d0e66Per Östlund- Fixed compilation.
9f2d46d74Per Östlund- Added some List utility functions. - Progagate more Absyn.Info in SCodeInst. - Fixed propagation of visibility for extends in SCodeInst. - Added arguments to builtin Connections functions.
c80f0935bNiklas Worschechfix tests
acfec95dcMartin Sjölund- Fix compilation
01b1c8603Niklas Worschechfix tests
c7b91e6d5Niklas Worschech- move tpl from susan_codegen to Template
bbf4a5ffeJens Frenkel-fix for calling cpp simulation exceutable
7852a63a4Martin Sjölund- Make string escaping also handle Windows-style newlines
3ce6b809fPeter AronssonFixed bug with parameter being evaluated when building openTurns interface.
e95a418fdNiklas Worschech- fix for algloop include names
630a8dc72Jens Frenkel- fix testsuite
d172acde3Niklas Worschech-fixed include names in cpp template
f55679845Jens Frenkel- fix testsuite
3462e9ecdAdrian Pop- remove some extra checks.
95145e06dNiklas Worschech-fix in Euler CMakefile additional library dependencies
e24d43708Adrian Pop- fixes to OpenTurns to support parallel execution.
1fd2900feJens Frenkel- fix cpp installation
458b21cbdJens Frenkelfix runtime cpp for compilation Makefile Source/*.*
334a77213Mahder Alemseged Gebremedhin- Fix for unallocated arrays in records. And some passing tests.
af4d6d4dbNiklas Worschech- fix testsuite
4eed977d3Martin Sjölund- Fix iconv errors
67c7e9d65Martin Sjölund- Add a HT
ccce539e8Jens Frenkelreplaced includes of Settingsfactory with SettingsFactory
0a02ede57Jens Frenkelreplaced all utils/extension includes with Utils/extension
038cbb305Per ÖstlundFix for bug #1750: - Fixed propagation of visibility for extends.
400994e76Martin Sjölund- Finished propagation of FunctionHashTable
73da0ea11Jens Frenkel- add targets for runtimeCPP
c0ca49e19Jens Frenkel- add make files for cpp runtime call cmake
2caac13c4Martin Sjölund- Propagate functions further
a52e23f2dMartin Sjölund- Updated OSMC License
f9aed1733Jens Frenkel- fix testsuite
7aa712a9dJens Frenkel- fix tests linearization
45b1d2425Martin Sjölund- cmake is stupid and evil, and people write as poor cross-platform files as make, why use it?
9cea235f7Jens Frenkel- generate for each equation only one function in c code
5377f98e0Jens Frenkel- use state index direct instead of search for it in markStateEquations
85006083cNiklas WorschechMoved boost::extension to Source/utils/ folder
331b859d5Martin Sjölund- Propagate more functions
a50e841dfMartin Sjölund- Fix bootstrap compilation
57acd81adJens Frenkel- continue to implement uniqueEqIndex for simcode
f7d423673Jens Frenkel- start to implement uniqueEqIndex for simcode
4d47482efMartin Sjölund- Don't install-openturns on sane systems
8931a07f4Martin Sjölund- Propagate more functions
4256d35a2Adrian Pop- fix windows compilation.
0077476cfJens Frenkel- add index to each SimEqSystem
97e830fc5Martin Sjölund#1751 - Changed the ModelicaInternal_getenv definition to match the declaration
f19610cf6Jens Frenkel- fix bug in calculaton of jacobian, in case of state jacobian have to generated for der(x) not for x
fa0fa4e24Adrian Pop- finishing up the OpenTURNS wrapper. - templates in share/omc/scripts/OpenTurns with all the needed stuff - added runOpenTURNSPythonScript to run the python file - everything works fine now on windows, can be easily adapted for Linux! - see testsuite/uncertainties/CantileverBeam.mos - fixed warning in solver/solver_main.c
afa4ea5e4Jens Frenkel- and tearing off after test
bee4633a6Jens Frenkel- try testsuite with tearing
356756e09Jens Frenkel- and tearing off after test
feac7ea84Jens Frenkel- try testsuite with tearing
d9cbf5179Jens Frenkel- fix bugs for tearing
15a3d75ebJens Frenkel- and switch back to tearing off
eeaa1e032Jens Frenkel- test how many tests fail if tearing is used
cc9ce655dJens Frenkel- minor fixes for tearing
975079a54Per Östlund- Fixing the testsuite again.
8bc10898bJens Frenkel- fix some bugs for tearing
4b30bc791Per Östlund- Forgot to commit Error.mo.
19ef8f063Per Östlund- Added error message when trying to redeclare nonexisting element.
cf6d6f111Jens Frenkel- dump more tearing information
fd49aaed1Jens Frenkel- minor changes to derivall for tearing - remove depug outputs from tearing - bugfix AdjacencyMatrixEnhanced - dynamic state selection, set start value of contition not static
acd39ae9aWilli Braun- updated non-linear systems solving algorithm - changed extrapolation data - added nominal values for scaling - adjusted the strategy of solving - marked some more ThermoSysPro examples as working
2fe083b7aJens Frenkel- fix strange infinit loop in c_runtime by reverse the order of the equations in strong component
9abd2daecJens Frenkel- remove BackendDAEExt from tarjanAlgorithm - use function transformBackendDAE in Uncertainties
56f61ec00Martin Sjölund- Propagate some more information so we can store functions in the future
52d7c5144Leonardo Laguna- Updated algorithm for equations extraction in uncertainties calculations. Note: no test has been added since we haven't defined the final output
edb69954fPer Östlund- Fixed prefixing of function variables in SCodeInst.
4b7fc6bb3Martin Sjölund- Added tail-recursion for NORETCALL statements
1b69f3c07Martin Sjölund- Started work on sending additional options to simplify
b9f3dbe53Jens Frenkel- fix compilation
2783af706Peter Aronsson-Implemented xml file for Uncertainty interface with OpenTURNS.mo -Updated CantiliverBeam.mos testcase
9462043d0Jens Frenkel- use simplifyTimeIndepFuncCalls module
2357b68daJens Frenkel- minor fixes for new dynamic state selection
1e14e3ef4Jens Frenkeladd module simplifyTimeIndepFuncCalls
710c46785Jens Frenkel- fix bug for loopIndexTester model from forum
c04aee278Martin Sjölund- Inst&Type if-statements
6cead72adMartin Sjölund- Typing/Expand of algorithm sections are now propagated properly (but only for some of them)
349bad682Jens Frenkel- fix compilation
110776292Jens Frenkel- continue new dynamic state selection
0bd16d6c0Jens Frenkel- fix compilation
97f1cf63eJens Frenkel- remove (again) all the unnecessary local BackendDAE.BackendDAE variable declarations
d2a450976Martin Sjölund- Fix compilation (double errors 2 commits ago; fixed only 1)
e505b35bfMartin Sjölund- Fix names of outputs to correct ones
af510b4edPeter Aronsson-Added generation of covariance matrix to openturns python script. Currently there is a limitation due to insufficient support of records inside vectors, so the covariance matrix must be defined using an algorithm section and the size must be declared as a constant, like this:
357d5dcffLennart Ochel- treat each initial_residual with a scaling factor of zero as unscaled initial_residual - [kinsol] switch globalization strategy (applied to the Newton method) to linesearch if the default one fails - introduce scaling for kinsol initialization method - fix invalid free-call after exception (THROW-macro)
97dfd9f96Martin Sjölund- Fix tab errors
8584f8261Niklas Worschechfix in cpp template for array of models code generation
5b2989524Adrian Pop- MODELNAME is not required.
e8851d88cAdrian Pop- use a defined variable for the wrapper name.
20220de35Per Östlund- Some conditional component improvements in SCodeInst.
151d50bb8Per Östlund- Fix connector type check in SCodeInst for connectors derived from basic types.
d85b676c1Jens Frenkel- fix compilation
60679287aJens Frenkel- remove local var declaration
6144e7981Jens Frenkel- remove tabs
380711895Jens Frenkel- remove tabs
7ce136c80Federico BergeroFixing bug in QSS target
6aa7a95fcJens Frenkel- bugfix compilation
3e36ec303Jens Frenkel- add AdjacencyMatrixTEnhanced - C-Implementation of Matchingalgorithms from Kamer Kaya, Johannes Langguth and Bora Ucar see: http://bmi.osu.edu/~kamer/index.html - improve tearingNew - fix coundOperations -> countOperations - minor changes to dump functions - remove getNumberOfEquationArray, is the same like equationSize - add new dynamic state selection module (not yet finished) - add source info for division by zero - add GraphML.mo (dumps grahml files see http://www.yworks.com, Matching.mo (some Matching Algorithms DFS,BFS,MC21A,PF,PFPlus,HK,HKDW,ABMP,PR_FIFO_FAIR,cheapMatching), IndexReduction (dynamic state selection, Pantelides index reduction)
4e69e96dcPer Östlund- Removed tab.
6b855d615Per Östlund- Added support for x = func(...), where func returns multiple values. - Some fixes for expandable connectors in SCodeInst.
ec56b8530Martin Sjölund- Tabs are evil
44545c5e6Peter Aronsson-Added attribute to builtin classes real and integer for uncertainty distributions called distribution with record definition: record Distribution String name; Real params[:]; String paramNames[:]; end Distribution; -Improved BackendDAEOptimize.removeParameters. Now also visits attributes of builtin classes (needed for uncertainty tests) -Introduced aliases in BackendDAEUtil so you don't have to write so much when declaring new variables from BackendDAE. -Added function BackendDAEUtil.getAllVarLst that retrieves all variables (incl. parameters) from the dae. -Added testsuite folder for uncertainties -Added functions BackendVariable.{setVarAttributes,varDistribution,varHasDistributionAttribute} -Added package Backend/OpenTURNS.mo and begun implementation of python script generation (distributions added) -Added script function buildOpenTURNSInterface(className,templateFile)
9f551390cMartin Sjölund- Fix dependency analysis
8e0c50c42Martin Sjölund- Refactoring EQ_NORETCALL (store Exp to simplify implementation/traversal)
b2e4ae1d0Martin Sjölund- Added support for varargs-style functions in SCodeInst
face260e2Martin Sjölund- Refactoring: SCode.ALG_NORETCALL now takes an expression to simplify traversal
c00395c75Martin Sjölund- Updated examples
2e3b512c8Martin Sjölund- Send enumerations to a function expecting enumerations instead of strings - Use the correct function header - Added bounds checking Thanks to Curt Siffert for reporting the bug
7578b392eJens Frenkel- BackendEquation.mo: add functions equationUnknownCrefs and traverseBackendDAEEqnList - BackendVariable.mo: splitt function createpDerVar in createpDerVar and copyVarNewName avoid side effects in mergeVariables by copy var array
9c77c45b1Jens Frenkel- Inline.mo: splitt function inlineEqOpt in two functions (inlineEq,inlineEqOpt) - Expression.mo: add functions traversingDerAndComponentRefFinder, expHasDerCref, traversingexpHasDerCref
70ec769a0Niklas WorschechAdded Ida solver to cpp runtime
d1234c096Per Östlund- Allow expandable connector components in connects for SCodeInst.
e38f3d7faMartin Sjölund- Instantiate more statements
2be404c5dMartin Sjölund- Changed structure of SCode.ALG_FOR to be nested instead of a list of iterators (to mimic the EQ_FOR structure)
f0b40291aMartin Sjölund#1753 - Fix typo
2303359b1Martin Sjölund- Fix compilation
9a78726fdMartin Sjölund- Fix compilation
1bb2a3119Martin Sjölund- Changed the range of a for-loop to Option to account for implicit ranges in a more visible manner
e3731e0dcMartin Sjölund- Handle inst of if-statements
865f64424Martin Sjölund- Fix the getInstanceName() documentation
11d183393Martin Sjölund- Also generate MetaModelica documentation
335369433Martin Sjölund- Added documentation for referenceEq - Made Builtin.mo load MetaModelicaBuiltin.mo using the correct filename+line numbers - Added fileName argument to val()
c041b9434Martin Sjölund- Do not rebuild sample client every time
7299a6571Martin Sjölund- getClassNames now handles classes with a constrainedby clause
c01ab90aaPer Östlund- Forbid Real priority in potentialRoot calls.
5268c978bMartin Sjölund- Adding a function type
f2a813367Adrian Pop- attempt to fix testsuite on Windows and Linux CLANG
55104a48dLennart Ochel- fix undefined behaviour
6b6046014Lennart Ochel- fix memory leaks
ee222fb2cAdeel Asghar- match constrainedBy clause with NONE().
609d55e47Adeel Asghar- Check the constrainClass while fetching the classnames.
b16c5da1fJens Frenkel- bugfix compilation bootstrapped
f8b12c5adJens Frenkel- bugfix compilation bootstrapped
c0a638da7Jens Frenkel- add modules tearing, coundOperations
8021e9fc2Adeel Asghar- Fixed a missing { in getExternalFunctionSpecification. - Also updated the test.
c49b9d26dAdrian Pop- added: getShortDefinitionBaseClassInformation(path) -> returns: {} if no base class or no short definition or not found or {path, ""|"flow", ""|"stream", "unspecified"|"discrete"|"parameter"|"constant", "unspecified"|"input"|"output", {dimension}}
7302fe482Per Östlund- Instantiation/typing of functions for SCodeInst.
5c26799e9Lennart Ochel- undo changes in initialization.c from last commit
271ff37cdLennart Ochel- minor fixes - add initialization test case
ae62475a8Pavol Privitzer- assert() support in C# simulation code
a5ca9b17cLennart Ochel- fix for last commit
9e28fc06cLennart Ochel- removed start-values from initial_residual - moved lambda from initial_residual into SimulationRuntime - split initialization up into several files - provide information inside SimulationRuntime whether start/nominal values are used or not - some minor fixes
681afab45Per Östlund- Cleaned up checking of connector types and added warning for connecting two sources. - Moved visibility attribute from DAE.Var to DAE.Attributes. - Removed direction prefix from components created by expandable connections, since we can't determine them reliably yet. - Other minor fixes to connections.
cba45016eMartin Sjölund- cp -u is a GNU extension; we support non-GNU systems...
7426d6a4dAdrian Pop- attempt to fix Windows compilation and testsuite.
80f8fda03Martin Sjölund- Do not add LDFLAGS twice
ff0642d75Martin Sjölund- Link with Sundials only if requested
419bf192aMartin Sjölund- First step towards compiling without sundials
50ab12a56Jim NutaroFixed event handling in the adevs backend
535901daaJens Frenkel- bugfix linker realRand, intRand
6cf9f7cdbMartin Sjölund#1746 - Fix for asub in functions
b4cf1fbf9Jens Frenkel- add function getVarDAE
b6eae6c62Jens Frenkel- bugfix tearing
2395631dePer Östlund- Fix iterator typing in for equations for SCodeInst.
1335932baNiklas WorschechResolved name conflicts for some member variables of AlgLoop System in cpp runtime.
9f5bf0993Mahder Alemseged Gebremedhin+ Part of support for Class Attributes (objectives) for optimization class of Optimica extension.
82e875258Per ÖstlundFix for bug #1738: - Check variability of first argument to reinit.
c2e589d32Martin Sjölund- Update the UTF-8 error message
3f54593e4Niklas WorschechResolved name conflicts for some member variables in cpp runtime.
837aa467bMartin Sjölund#1744 - Add OMDEV to checkSettings() result
8bde5e65aAdeel Asghar- fix testsuite.
22aba21a3Adeel Asghar- Try -rdynamic instead of -ldl.
74ecd440eAdrian Pop- no -ldl on MinGW! duh.
5283f2ae7Adrian Pop- mind the space.
d8759fd64Adrian Pop- attempt to fix the testsuite? - add -ldl with -whole-archive
341fc7a1aAdrian Pop- squash the tabs.
f26242429Bill Janssenremove extra 'apply' around matrix XML dumps (bug #1743)
e3e74f773Adeel Asghar- load all symbols defined in libSimulationRuntimeC.a into the simulation executable.
8da1bda64Niklas WorschechFix in event iteration of cpp runtime
45829f7e5Adeel Asghar- Run convert lines perl script on Model_functions.c file as well. - Don't generate #modelicaLine and don't run convert lines perl script unless user sets +d=gendebugsymbols flag or the grammar is MetaModelica.
b593b626fPer Östlund- More cats.
3ad7dd323Adrian PopOpenTURNS changes - added Makefiles for mingw. - updated to OpenTURNS v1.0. The wrapper .dll generation now works.
3454ba71ePer Östlund- Adding missing file.
1ba159f2bPer Östlund- Implemented a new template based expression dumping. - Updated test suite.
0fb15e7b5Adrian Pop- removed tabs in CodegenAdevs.tpl
81edf9cf6Jim NutaroUpdated and cleaned-up the Adevs code generator
05c977e38Adeel Asghar- Fixed lapack linking for FMU code generation.
8040c5117Adrian Pop- fix to make OMC happy.
b290a51e7Federico BergeroFinal version for article. All three example working
5214007c8Adeel Asghar- Fixed simulation for windows. -llapack is called -llapack-mingw on windows.
1d97dc78fWilli Braun - changed THROWS back to WARNINGS (it seems that not all variables, a present in a dymola result file.)
902ff5813Lennart Ochel- get rid of some type mismatch warnings
dcbeb28cbBill Janssenfix for #1740, typo in string literal
dce291e9aLennart Ochelresolved dependencies between math-support and simulation/solver
94f3d6e49Adrian Pop- remove the nominal warning for now. Lennart, please put it back when ready.
fba9e0744Adrian PopCompiler/susan_codegen/SimCode/CodegenFMU.tpl - fix the FMU linking on Windows to Sundials Makefile.omdev.mingw - copy only the .a from OMDev Sundials to not use .dlls
942a72d0cAdrian Pop- NOTE: update OMDev from Subversion! - fix the broken compilation in Windows (add the OMDev/lib/3rdParty/Sundials/include in the proper places) - use copy -pu to only copy newer files - get rid of omdev_qtdeps as they are no longer needed since a while now because sendData is no longer. - include events.h in initialization.c for initSample function and add the proper include flag. - copy the Sundials libraries to build/lib/omc as they are needed by the generated simulation code (initialization) and they also should be part of the new OpenModelica build.
1b4113b1bFederico BergeroFixing replacement error
0648c1a11Federico BergeroCreating the makefile
39cc21d02Federico BergeroWorking prototype
ffee0ad74Lennart Ocheladded new initialization method: -iom kinsol NOTE: new OMDev needed, do Subversion update on your OMDev!
e58fd6f3cMartin Sjölund- Recommend omniORB in configure
0bf736710Martin Sjölund- Add -I. to MICO CFLAGS
bca6824a5Jens Frenkel- dump id for matrix row
02a26d2bdJens Frenkel- take care of replace <,>... everywhere in dumpXMLDAE
f54f7f145Martin Sjölund- Fixed getInstanceName() to work for packages and top-level models
9a201720cJim NutaroUpdate to Adevs code generator for new simulation runtime
8e78c88adWilli Braun- fixed testsuite for last commit
3bc9c3534Federico BergeroUpdating algebraic loop code
3f8f48005Federico BergeroUsing crefEqual
bb6a96ce7Willi Braun- improved Backend compile time for big models with many parameters a lot. +BackendDAEUtil.mo - shifted evaluation of depending parameters to runtime as it's much faster than at compile time. +SimCode.mo - actually nothing. +BackendVariables.mo - removed a sorting function for translateDAE instead sort by merge sort from List module. It scales much better.
736d0dedaPer ÖstlundFix for bug #1733: - Fixed connection of complex arrays with subscripts.
7977c3302Per ÖstlundFix for bug #1731: - Fixed connection of arrays with subscripts. - Updated testsuit due to changed equation order for connects.
49b2b3327Willi Braun - fixed debug output for symbolic jacobians
a328249daJens Frenkel- bugfix coding style
413ad7244Jens Frenkel- bugfix coding style
14467ca3dJens Frenkel- compareSimulationResults: report vars in case of file not equal and print error messages if command failed - msl31/simulate: delete all generated files
677602dbbMahder Alemseged Gebremedhin+ Fix windows compilation. update r11840. random and srandom. Moved defines to openmodelica.h.
b4af0a115Jens Frenkel- XMLDump: fix implementation to handle also several indipendent systems - BackendDump: add function debugStrEqnStr
318847e50Martin Sjölund- Use srand/rand instead of srandom/srand on non-POSIX platforms
677e97b1bWilli Braun - fixed array exp in symbolic jacobians
9f106c1aaWilli Braun- fixed coding style
a104c51efWilli Braun - created PastOptModules for Symbolic Jacobain and Symbolic Linearization. They can be actived by "generateSymbolicJacobian" or "generateSymbolicLinearization" - Imporoved the performance of generating sparsity pattern - added therefore symbolicJacobian to BackendDAE
f9251d861Martin Sjölund- Added better System.*Rand functions based on srandom() and random()
731cb1bc7Per Östlund- Added check that the first argument to reinit is a subtype of Real.
67041ced1Per Östlund- Removed failtrace from Expression.subscriptIndexExp, since the function is expected to fail sometimes.
4fe6b1f07Willi Braun - included functionTree to BackendDAE - create from removeUnusedFunctions a pastOptModule
1fc44f219Adrian PopBackEnd/BackendVariable.mo - use ComponentReference.printComponentRefStr to also print the subscripts.
8edc12ecdAdrian Pop- undefine macros if they exist because we really need to replace them in that context because the already defined ones contain references to undeclared variables.
bf89fcdd6Adrian PopBackEnd/BackendVariable.mo & FrontEnd/DAE.mo - better error message for variables with values outside the [min, max] interval.
6b08675e6Adrian PopBackendVariable.mo - display the min/max limits for the variable in the assert message.
0393072a1Jens Frenkel- add boxptr_intMin - bugfix setPastOptModules -> postOptModules
f7a34983bJens Frenkel- minor changes to dummy state selection heuristic
26ba7dcddJens Frenkel- BackendDAEOptimize: doReplaceScalarArrayEqns more generic - BackendDAETransform: simplify code, use stateorder for differentiated equations - PlanarMechanics: set initialconditions - Update testsuite
0ce3c23c8Jens Frenkel- add function rand to System
4c54d9382Jens Frenkel- move ModelicaConfic.inc to /include/omc/cpp
6f4640950Jens Frenkel- use full path to include ModelicaConfic.inc - copy LibrariesConfig.h to OM_HOME/include/omc/cpp because this is in include path
691577ee5Jens Frenkel- fix typos
f81249ea1Jens Frenkel- improve handling of complex equations - improve evaluation of parameters with Evaluate=True annotation - add built in functions to set machtingalgorithm - update testsuite
60da35af4Adeel Asghar- Fixed the spaces problem.
e1994a78ePer Östlund- Fix for previous commit.
9cd50de1cPer Östlund- XMLDump fixes from Bill Janssen.
b36aabf08Federico BergeroGenerating a linear algebraic loop solve function and a header for parameters
994de6d36Per Östlund- Fixed compilation.
f1861b7e3Per ÖstlundSCodeInst fixes: - Improved instantiation/typing of equations. - Handle deleted components in connections. - Improved propagation of prefixes, now also propagates class prefixes.
8526c9481Martin Sjölund- Only enable python interface if we use omniorb
ae54abfe1Federico BergeroMinor modifications to code
056549099Jens Frenkel- fix testsuite
2f5cb926bJens Frenkel- bufix bootstrapp compilation
bfef39edbFederico BergeroGenerating when handlers
33a4aa37bWilli Braun - removed some tabs
158fe0827Willi Braun#1728 - added proper message to findDiscreteEquation - added some failure cases
2bb07f700Per Östlund- Fixed bootstrapping, and improved an odd error message.
c9ecce66dPer Östlund- Replaced tabs and converted files to UTF-8.
fcd72635fPer Östlund- Added Util.arrayFold. - Implemented a phase in SCodeInst which marks all structural parameters, to allow proper constant evaluation.
78c1eb6fdPer Östlund- Replaced even more tabs.
f34139457Mahder Alemseged Gebremedhin- Moved the OpenCL runtime to SimulationRuntime
22be9a1aePer Östlund- Replaced tabs.
0c2bb2ff0Niklas WorschechFix for Idas Solver. Initialization of idas memory,initialization zero functions, added RTol and ATol to solver settings.
fdecfb39cFederico BergeroChanges to the QSS target. Replacing variables and discontinuities
19513ae28Martin Sjölund- Apply the iconv if using non-UTF8 target
bc30c30f2Mahder Alemseged Gebremedhin- Adding support to enable XML export of Optimization Modelica models (Optimica Extensions).
92d539dd3Adeel Asghar- Removed ptplot.jar and ptplot_license.txt - some translations.
055ec874dAdeel Asghar- Removed plot2, plotparametric2 and the script files associated with it.
21c4acdb8Leonardo Laguna- Fixed small bug in setPos function. - Changed the scope of map1r to public
45597ea68Lennart Ochel#1721 fix for initial()-operator
a2df03be8Martin Sjölund- Added testcase for checking a recursion limit of any class (maximum depth=100)
ac26004f7Martin Sjölund- Avoid segfault on UTF-8 error
26432f3d9Martin Sjölund#1723 - Automatically load dependencies of a model (uses annotation) upon instantiation
fed810e18Per Östlund- Save modifiers that only makes a component final in Absyn2SCode. - Handle modifiers that does nothing in SCodeMod.
f1d436a16Martin Sjölund- Add PARTEVALFUNCTION to the list of called functions in a function
077e74844Adeel Asghar- Fix hudson.
4529c6ea0Martin Sjölund- Check Absyn->SCode before accepting a string or file as valid abstract syntax
5e1236c1eAdeel Asghar- Fixed isReplaceAble API. - Added testcases for some APIs. - Added French & Romanian to language dropdown. - Moved the translations file to OMEdit/OMEditGUI/Resources/nls/.
b54e2b3b4Martin Sjölund- Don't return loadFile("package.mo") success on error
a7e47bab6Adeel Asghar- Fixed getNthImport.
09edc2e4ePer Östlund- Fixed better messages for modifier errors in SCodeInst. - Added better control over constant evaluation in Typing.
50badcf74Martin Sjölund- Revert r11711 as it is plain wrong
d080b848eAdeel Asghar- Changed the utf-8 error to warning. - getErrorString() only returns messages that have severity = ErrorLevel_error
3193c2df4Martin Sjölund- Fix for the type system when calling getGlobalRoot with a non-boxed lhs
fd71517efJens Frenkel- replace some matchs again inputs with wildcard
bcb9f9b67Jens Frenkel- BackendDAE.mo: add Comment - extend Backend pipeline with functionalety to select matching algorithm - Bugfix for DynamicStateSelection, in function BackendEquation.equationAddDAE do not throw incidenceMatrix away - add function BackendVariable.daenumVariables, return the number of Variables in BackendDAE
ce6c2eb85Martin Sjölund- Move the printing of some config flags around - Added +help=flagName option
faa326d47Jens Frenkel- add flag "matchingAlgorithm" to select the MatchingAlgorithm
c7d541910Martin Sjölund- OMPython docdir removed
80d1c3d5aJens Frenkel- bugfix removeSimplequation alias der - bugfix alias a=der(var)
3d29be7d7Adrian Pop- fix equalityConstraint function return type.
1fafe8a46Adeel Asghar- PTII environment variable not required anymore. - Changed PTII to OMPTII. - Removed OMPython-UserManual. OMPython documentation is moved to OpenModelica usersguide.
ab4cf0b0aJens Frenkel- got rid of bootstrapped warning
df6fd9f43Martin Sjölund- Install OMPython documentation
2e5c84c3bMartin Sjölund- Fix testsuite
554a5b320Martin Sjölund- Some fixes to dumping as corba string
fedb0ed60Per Östlund- Changed simplification of scalar-array operations with an empty array to return an empty array, instead of an array with one element.
cf18e072ePer Östlund- Fixed correct types on array-scalar and scalar-array operations. - Updated test cases due to changed operation order.
afb5d6095Martin Sjölund- Added API call setInitXmlStartValue
88e8c362eMartin Sjölund- Make checkSettings() less verbose
fa893b27eMartin Sjölund- Set OPENMODELICAHOME
af2f6103aMartin Sjölund- Fixed the Java DefinitionsCreator
2c46dcc01Adrian Pop- added isShortDefinition API and tests in testsuite/interactive/interactive_api_calls.mos for it.
5c616980cAdrian Pop- fixed "setParameterValue" API in Interactive.mo to update the program. - added tests for this functionality in testsuite/interactive/interactive_api_param.mos
89af2bc97Adrian Pop- fix so that loadModel works fine; geez, this was a weird one, libModelicaExternalC.a re-defined (badly) opendir, readdir and some other dirent.h functions, but MinGW already has them. This made SystemImpl__getLoadModelPath to fail.
37f28bed4Martin Sjölund- Some fixes for Java interface
9ee95e059Martin Sjölund- Added scanReal ceval
754b7f902Martin Sjölund- Handle Modelica.Utilities.Streams.* external functions without generating so-files
e88393991Per Östlund- Renamed members of DAE.RANGE to something sane. - Added various List.threadMapReverse functions. - Added BaseHashTable.addUnique. - Instantiation/typing improvements for equations in SCodeInst. - Various other SCodeInst improvements.
eebdf96dbPer Östlund- Fix RML compilation...
5d9e5f5c2Per Östlund- Fixed bootstrapped compilation.
405a23f23Martin Sjölund- Fixes for getAstAsCorbaString
de0e2daa8Federico BergeroChanges in the QSS version.
091ea5112Martin Sjölund- 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)
c9c91e389Martin Sjölund- Make omniidl command more suitable for parallel jobs
a654e8cf9Martin Sjölund- Fix make install
ef74725f1Martin Sjölund- Install OMEdit nls files
1c211bbb6Adeel Asghar- Release notes.
d27a35615Willi Braun - optimized fmi-export calculations - added support input and output vars for fmi-import and a test-case - added a better flow control for fmi-import models
42954a3f1Martin Sjölund- Expected output, etc
44dd6b969Martin Sjölund- Fixed some of the testcases (tries to simulate packages, instantiate functions)
dc0a8fab1Martin Sjölund- Add a check for uses-annotations being fulfilled before starting inst/translate model
3711751e4Mahder Alemseged Gebremedhin- Compact free_memory. Check parallel variable type in Template. Generate one more file for ParModelica.
4263885cfPer Östlund- Better error message for non-connectors in connections.
cdc61a948Mahder Alemseged Gebremedhin- Proper naming.
91fa00685Martin Sjölund- More detailed parser error
d0a3630b4Mahder Alemseged Gebremedhin+ Added the OpenCL runtime.
823d9287eWilli Braun- fixed coding style
6b95e134bWilli Braun - changed compilation flag for fmu-export from -O2 to -O - added String support for fmu-import - added MultiBody.DoublePendelum test
f1ede9923Mahder Alemseged GebremedhinFix error in template and remove Tab.
e88c8c845Mahder Alemseged Gebremedhin+ Handling of parallel variables in the Back-end. Mostly fall-through. + Limited handling of parallel variables in Code generation.
8cb443b58Per Östlund- Remove tab.
07e5ba7b4Willi Braun - fixed some fmi-export memory leaks
7f531f226Niklas WorschechFix for assert expressions in cpp template
8045440beJens Frenkel- fix tests
ba32d939cWilli Braun -fixed CODING_STYLE
4e31a8a44Willi Braun - fixed FMI-Export Alias variables
e0432cedaJens Frenkel- add comments to flags, add flags - bugfix removesimpleequationspast - update teststuite msl31/simulate - add experiment annotation for M.M.Rotational.ElasticBearing
466b80da6Adeel Asghar- More documentation. - New chapter for OMPython in OpenModelicaUsersGuide.
539c9e65fJens Frenkel- add function dumpEqnsSolved, to dump the equations in the order of calculate them
c5f65169eJens Frenkel- Bugfix codegeneration for tearing system, use index from original system
65242fc32Willi Braun - removed some tabs
daa007878Willi Braun- aded fixes and tests for fmu-export and fmu-import
1a77c3ae3Per Östlund- Initial support for equations in SCodeInst.
fd1e6c09fMartin Sjölund- Also look for package.encoding in the library directory if the file is a mo-file and not a directory of its own + Note: This affects all packages stored as file in this directory
4f93a145aMartin Sjölund- Parser now supports the BOM
6e22793e8Martin Sjölund- Added option to loadFile(..., encoding="ISO-8859-1"), to convert from one encoding to UTF-8 - loadModel(): Added support for package.encoding (OM extension)
7fa8efee4Adrian Pop- force UTF-8 encoding in project: .settings/org.eclipse.core.resources.prefs - get rid of tab in Compiler/runtime/SimulationResultsCmp.c - fix expected output in failing tests in testsuite/libraries/msl31/simulate/*
0824b1146Martin Sjölund- Use system isnan
7a57eee00Adrian Pop- do NOT define isnan in a header! it will conflict with other C headers.
2a7729336Jens Frenkel- BackendDAEOptimize.mo: improved Aliasvar selection, check if var is generated by omc (Dummer_der) and prefer other candidate - SimulationResultsCmp.c: prepair all to report vars with different values in time @Adrian: ToDo: return string with variables - Update msl3.1/simulate examples - add check for NAN while divide, torn on with define CHECK_NAN
dee3a7408Martin Sjölund- PythonInterface make clean
c6c7d60bfAdeel Asghar- Fixed some path issues. - Generate two packages OMPython and OMPythonIDL. - Generate _OMCIDL instead of a very generic name _GlobalIDL. - Fixed Popen problem. - Write omc output to a log file.
38855c87fMartin Sjölund- Added simplify all expressions before/after optimization phases - Removed odd hacks that assume Expression.isConst is actually Expression.isConstValue + The difference is that you need to simplify a const non-value for it to become a value
b3bc4aa16Martin Sjölund- Add flag so we can --disable-python-interface
6683e2808Adrian Pop- fix the UTF-8 encoding.
98b6610e1Adrian Pop- add new heuristic to Compiler/BackEnd/BackendDAEOptimize.mo if two aliases have different start value choose the one more closer to the top of the instance hierarchy. - add ComponentReference.crefDepth in Compiler/FrontEnd/ComponentReference.mo' - fixed testsuite/mosfiles/nonConstantParam.mos output
16097f140Adeel Asghar- Support for simulation flags.
a577b75d7Martin Sjölund- Succeed on success
41368a7e6Martin Sjölund- Use suffix .in for in-files
eb24dfa95Martin Sjölund- Conversion to UTF-8
c13c989b3Martin Sjölund- Verify that string literals are encoded in UTF-8
42f2f7e5aPer Östlund- Got rid of tabs.
0d38da2ebMartin Sjölund- Converted the older libraries to UTF-8
8633dd7edMartin Sjölund- Fixed the encoding of the remaining files (added .tpl, fixed some illegal chars in interactive)
00aca314eMartin Sjölund- Fix encoding in CPP and interactive
b2e92d22dMartin Sjölund- Fix C-runtime encoding (UTF-8)
28a8d0f4cMartin Sjölund- Converted some files to UTF-8
49db26a92Martin Sjölund- Added make target utf8-error
d34760991Willi Braun - fixed Makefile for FMI
0f1d979bbWilli Braun- fixed FMU-Export - fixed FMI-Import - moved FMI-Import to SimulationRuntime
64677d456Adrian Pop- report an user understandable error message when trying to instantiate or check an model that does not exists.
544986d32Martin Sjölund- Fix typo
d1def1447Martin Sjölund- Remove tab
32253b8f3Mahder Alemseged Gebremedhin- Coding style.
3c58c05b0Mahder Alemseged Gebremedhin+ Added filing of arrays from range expressions. - Avoid previous unnecessary array copies.
2f9db908cMartin Sjölund- Moving python interface
8d132413aMartin Sjölund- Added simulate(..., simflags="flags") option. It will be passed to the simulation executable in the future
ad42b2901Adeel Asghar- Auto generate the stub files for clients. - Added/Updated README.txt files for all clients.
5f273efe6Per Östlund- Added check for connect equation in initial equation sections.
49a099eb0Martin Sjölund- Better SimCodeDump for when-equations
f514b5aeeMartin Sjölund- Fix for linear systems with the same index (why add these in the first place?)
a4da03bd7Per Östlund- Got rid of more compiler warnings.
b671be503Martin Sjölund- Added crefs to linear systems in the simulation info (same as for non-linear systems) - Added system sizes to the description of linear and non-linear systems
51a70884fMartin Sjölund- Simplify matrix+asub {{...},...,{...}}[1,2] => ...
91baa06d9Per Östlund- Get rid of some compilation warnings in interactive.
6ebabb3ecMartin Sjölund- Fix segfault
6fdb6d64dPer Östlund- Added checks for valid class types of components in SCodeInst.
c1a751939Martin Sjölund- Some fixes for the gnuplot connection and log-scale of zero measurements
ac140bdfbMartin Sjölund- Adding some more function calls to the profiling
fc93863f0Martin Sjölund- Some fixes for gcc 4.7
5cb466fcaPer Östlund- More improvements to cref prefixing in SCodeInst.
7f88639f1Adeel Asghar- Generate code with +d=gendebugsymbols flag.
920611fdcPer Östlund- Fix compilation.
ae31ec6b4Per Östlund- Preserve subscripts when prefixing crefs during instantiation.
b70132948Per Östlund- Fixed broken compilation due to RML stupidity.
09eec6356Per Östlund- Implemented better handling of component names in SCodeInst.
d2a27b490Mahder Alemseged Gebremedhin+ Merging the parallel extensions. + Traversal and analysis of parallel for loops. Checks all component references in the body and makes sure they are valid. + parallel and kernel functions are handled in the Front-end now. + parallel variables are handled in the Front-end now. - some checks and restrictions remain, but nothing that affects the normal OM compilation. * so far so good.
09e244b36Jens Frenkel- remove taps
2a829f1a5Jens Frenkel- fix compilation
aca6b7ab0Jens Frenkel- BackEnd/BackendDAETransform.mo: remove some unused matches, cleanup code - BackendDump.mo: new function debugStrCrefLstStr - SimulationResultCmp: use C style comments - add flag "stateselection" to dump selected states of the model, use it with flag "backenddaeinfo" - fix CMakeList files - read_matlab4: - improve reader, read now also latest dymola files with single pressision
10b0e8ff5Willi Braun - inverted +v flag. By default are all arrays crefs vectorized. One can set a still a Limit to aviod that.
47ea9e78dAdeel AsgharFixed python API Interface for Linux.
6ed8d93e3Adeel Asghar- Fixed typo.
b5a78a95bAdeel Asghar- Generate python stubs in stubs folder. - Added the setup.py script to install python API.
60cef440dAdeel Asghar- Fixed hudson build.
e427f8f43Adeel Asghar- Changed Parser to OMParser.
c52b87c41Martin Sjölund- Allow omniidl-python fail on OSX
110242405Martin Sjölund- Fix to make sure python interface is built - Check if using omniidl, else don't create it
c34408d61Martin Sjölund- Better copying of ompython
5d7f83e6dMartin Sjölund- Don't ask me why it does not work, but I had to ifdef out the THROW in division.c or linking fails on OSX
72982a62eMartin Sjölund- Renamed error.h to omc_error.h
6f0de69d5Adeel Asghar- Fixed build.
eac486867Adeel Asghar- Added +d=gendebugsymbols flag to generate code with debug symbols for standard Modelica.
e7a9b1405Pavol PrivitzerSmall C# template update
8b6b2b214Adeel Asghar- Updating OMDEV is required. - Added ompython to Compiler/scripts (From Anand).
6b764044aAdrian Pop- fix a case of "how the beep did it worked until now"? - EQ_NORETCALL should be returned instead of ALG_NORETCALL
cacbb9296Jens Frenkel- bugfix for complex equations in strong connected components - add test for complex equation in strong connected component
e3481167cMartin Sjölund- Create the result.xml in the correct directory
84f65b602Per Östlund- Refactoring of SCodeInst.
66e74ab3eHenning Kiel- remove stray "*/" - change calloc to malloc for immediately initialized memory
99c6b7505Henning Kiel- remove typo
f6fcb08b4Martin Sjölund- Fix columns
7abb904acMartin Sjölund#1408 - Removed support for min/max(string) as only enum,bool,int,real are allowed
4006b9ddaAdeel Asghar- Fix the tabs :)
225778b2cAdeel Asghar- Fixed the importFMU. - Removed the moGenerator::getDecompPath(), omc should sent the right output directory to fmigenerator.
bd1da5c33Martin Sjölund- Fix coding style
07d4c53cdMartin Sjölund- Increase ulimit
5750dc42dMartin Sjölund- Changed order of cells
001cbb08aPer Östlund- Fix application of redeclares in SCodeInst.instExtends.
367e8e772Martin Sjölund- Try to run the simulation in BuildModelRecursive.mos
a6da3c246Martin Sjölund- Terminate the find regex so we do not find .h0 files on some OSes
fe108e6b1Martin Sjölund- Remove some tabs from sources
dbd429c42Martin Sjölund- Improved tab detection
b5a0193a7Martin Sjölund- Added make target tab-error
72a80eabfMartin Sjölund- BuildModelRecursive.mos now sets a ulimit on time
b11e136c2Per Östlund- Removed invalid 'external' prefix from external functions in SCodeDump.
86b309d22Jens Frenkel- implement new remove simple equation modules (removeSimpleEquationsFast,removeSimpleEquationsPast) speed up around 40% for backend - use IncidenceMatrix BackendDAE.SOLVABLE for Matching - function vararrayList is protected use BackendDAEUtil.varList - fix tests
42e2194eaJens Frenkel- bugfix derivative of ASUB
d1b07d89fMartin Sjölund- Make sum(scalar) an error
1db0c8881Jens Frenkel- fix for Bug [# 1596] Simple equation not found - fix name problem for mosfiles/BouncingBall2
84994474fJens Frenkel- remove unused code
0bdd5fe78Jens Frenkel- fix test
20e9f4a2eJens Frenkel- break loop in Derive by providing information about inline success
1facf25e3Jens Frenkel- ~10% speedup for removeSimpleEquation
220370b51Martin Sjölund- Removed support for enum and Integer being compatible types - Testsuite still runs - But probably still problems in MSL31
e04e6ccacMartin Sjölund- Expected output - Removed support for type-conversion from integer to enum * Note: Integer literal to enum is still in use. It will be the next to go, but MSL needs some more updates
581b865d2Martin Sjölund- Moved connect(a,a) warning to Inst instead of SCode
a0e391040Jens Frenkel- report Error Message in case of Discrete Equation Systems
936176605Jens Frenkel- remove rule for min/max (enumeration, int)
145c6ffd5Adeel Asghar- Changed UTF8 to UTF-8.
7399c0c01Per Östlund- Improved handling of bindings and deduction of array dimensions in SCodeInst. - Added List.lastN and List.stripN.
f440455aaJohanna Schneider- bugfix tearing
e01ca0430Per Östlund- Implemented class extends support in SCodeInst.
0be4f0feaMartin Sjölund#1710 - Check filename for invalid characters
92118aa88Jens Frenkel- simplify min/max(enumeration) - set min max from enumeration for variables (maybe should be done in frontend)
51d48dfacAdrian Pop- fix the CodegenC.tpl for T_ARRAY (be more specific). - expected output in testsuite/parser/ParseFullModelica3.1.mos
76c40398eAdrian Pop- MAKE CLEAN is highly recommended!
f0ec20670Jens Frenkel- lower enumerations to discrete vars like integers
8d091bca6Jens Frenkel- Var is either continous or discrete
44cf4ed1cAdrian Pop- division.h: switch __FILE__ and __LINE__ in DIVISION macro as they are expected by division_error function.
3588d1c90Adrian Pop- replace array constants with their binding (maybe we should only do that for package constants). - added testsuite/3rdParty/TestMedia [from Francesco Casella] which now works to simulate too. - 17 more Modelica.Media models now work, 3 left. NOTE HOWEVER that simulation fails in some cases due to divisions by zero or other issues, but at least the models compile.
a1420dff5Jens Frenkel- fix test
34e306bdaJens Frenkel- fix compilation
348541cc7Jens Frenkel- add Incidencematrix type SOLVABLE - add compleqs to traverseBackendDAE and checkBackendDAE functions - use traverseBackendDAE in PartFn -> easier maintainance - more information if createOdeSystem fails
fdedaa2f4Lennart Ochel- fix for mapToDymolaVars
666585e4aAdrian Pop- OpenTurns updates.
3ea6b2962Adrian Pop- consider also partially evaluated functions and also do union as we seem to get duplicates.
af5e49a0eAdrian Pop- also consider external functions! duh :) - expected output for some tests.
13085f10dJens Frenkel- remove unused functions Bug [# 1708] - move Modelica.Media.Examples.TestOnly.IdealGasN2.mos Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.mos Modelica.Media.Incompressible.Examples.TestGlycol.mos to working test - update CMakeLists.txt
810dea936Lennart Ochel- import from matfile supports now variables with dymola names
64c3e3396Jens Frenkel- simplify size operator helps media
ffdf6c750Per Östlund- Removed some deprecated code from SCodeInst.
79b0f32eaJens Frenkel- break loop in Derive
c9c77b7fcLennart Ochel- stop the simulation, if an error occurs
285bca3c2Per Östlund- Partially implemented error message for cyclic dependencies in SCodeInst.
12cc2f8d7Jens Frenkel- fix for bug [# 1693] , use type of expression for mul when calculate the derivative of DIV_ARRAY_SCALAR
afbf0902bLennart Ochel- minor fix
2f1ad8bb3Lennart Ochel- add two optimization methods from OM1.8.0 (simplex and newuoa)
5c4f06cc2Per Östlund* SCodeInst fixes: - Instantiate cref subscripts. - Correct instantiation of function names.
e319c11e6Martin Sjölund- Parse comments in correct order
0eb0a969eJens Frenkel- bugfix blt, do not check continues vars in relations - update path in interaktive readme
298dabc55Jens Frenkel- if derivative of function does not exist force inline to get media examp working
5e46962e9Jens Frenkel- force inline again for complex equations but check function has only one assignment - check while inline if all inner variables are replaced - 3 Media tests back in game
0486c5507Jens Frenkel- add missing code for functions return records in optimisation modules
b053c7736Jens Frenkel- do not force inline for complex equations helps TestMedia
a0dac2654Adrian Pop- changes in backend considered in XMLDump.mo too - dependency seems to be broken, i think we also need to consider protected imports.
9b8585efaJens Frenkel- implement support for functions return records down to code generation, code generation works for record = f(); f() = record
bd395b598Adeel Asghar- Added OMOptimLib.pro
7c07c88e3Adeel AsgharFix for bug #1705 #1706 - Added the flag to set plot silent +plotSilent=true (if true then outputs the data instead of showing the OMPlot). - Some fixes for OMNotebook plotting. - Fixed the file saving issue.
f0cdf47dcMartin Sjölund#1707 - Add support for functions returning arrays of strings
8fe51640ePer Östlund- Fix correct propagation level for modifications in extends in SCodeInst.
061d24bfcAdeel Asghar- Fixed isReplaceable API, check separately for public and protected elements. Added case for the extended classes as well.
3f54d84aeMahder Alemseged GebremedhinModified the generated Makefiles for models. - "clean" should not be a dependency for the main target. If we have multiple threads making the target then they will try to clean and compile at the same time. - do "clean"s explicitly - Made sure that *_records.c is compiled always. (i.e. The executable will be compiled too) - Also the main target(executable) should be dependent on ModelName_functions.c since this is not compiled separately but is included in the ModelName.c file.
9468fdc14Adrian Pop- update OpenModelicaBootstrappingHeader.h broken some commits back.
f4f0e99dbAdeel Asghar--new-window flag for visualize API.
ef257dcbcMartin Sjölund- Fixed M.E.D.Delay.TransmissionDelay - Not fixed in MSL because other tools do not support Integer(enum) yet (in spec since Modelica 2.1)
309dc85f5Martin Sjölund- Fixes illegal xml generation when using measureTime=true
b6b1210c9Martin Sjölund- Fix for external noretcall functions
65d9d4578Lennart Ochel- fix init-file for constant expressions - fix initialization by mat-file
25fb5ebe3Per Östlund- Fix MainTest.
1dc0ec2c2Per Östlund- Implemented filtering of duplicate extended components in SCodeInst. Needs more work, just assumes all elements are equal right now. - Fixed handling of conditional components that contain other conditional components.
5a7544b20Jens Frenkel- dump Statistic about the system with +d=backenddaeinfo
e894cf84cAdrian Pop- expected output. - got rid of print in Inline.mo
807dd761fAdrian Pop- check subtyping of T_ARRAY(dims = list_of_more_than_one) as we can really get these types now after the removal of DAE.ExpType. - don't be lazy and do better checking in Inline. - testsuite should be ok now? Hudson will tell us :)
480165cb8Adrian Pop- do not do equiv type checking when MetaModelica as they might be not! - fix some of the expected output in some models.
10dac1503Jens Frenkel- remove forgotten dump call
468ee7cb3Jens Frenkel- check if extension of records was succesfull - remove forgotten dump call
4110066f0Jens Frenkel- compare types before inline expression
0461f31edKaie KubjasFixed a bug in CodegenCpp.tpl
bbcd20245Adeel Asghar- Fix build.
3fbfd1dcdAdeel Asghar- Fix OMOptim Compilation. - Don't add \ at the end of the last item in .pro file. - Build OMOptimBasis in the bin directory of OMOptim. - Added OMOptimBasis to OMTools.
e8bed5e4dPer Östlund- Implemented better handling of extending basic and array types in SCodeInst.
023983e80Martin Sjölund- Don't remove single quotes
307f047b3Mahder Alemseged Gebremedhin+ Merging the parallel extensions. + parallel and kernel functions are handled in the Front-end now. + parallel variables are handled in the Front-end now. - some checks and restrictions remain, but nothing that affects the normal OM compilation. * so far so good.
c0817019fMartin SjölundPartial fix for #1702 (enum == Integer is not an allowed relation) - This was also updated in MSL
47166c1c2Per Östlund- Implemented prefix propagation in SCodeInst.
66179bbb6Niklas WorschechModified interface method giveZeroFunc in cpp runtime, eps parameter is not needed. Fix in CMake file of Modelica System
bcc2d830eMartin Sjölund- Added target bom-error to test for BOM in files
fff231e84Kaie KubjasFix typo in AlgloopsolverFactory class
6fc393323Martin Sjölund- OMNotebook now depends on OMPlot
2b1f1721eAdrian Pop- remove forgotten unused SimCodeC.tpl.
dced95389Martin Sjölund- Updated auto-generated file
e0455397eMartin Sjölund- Added support to parse line/block-comments as class elements (similar to annotations) - Any comment in an expression is moved out of the element and put on its own line
0cbef5676Niklas WorschechModified event iteration in cpp runtime. Using checkConditions instead of setZeroState from solver
4c24901a2Niklas Worschechfix for mixed system iteration in cpp runtime fix in CVode for calculation of event state
83b420370Per ÖstlundFix for bug #1700: - Fixed type of sum.
0338eebfcLennart Ochel- update for importStartValues
c53eb8477Jens Frenkel- copy table to avoid loss of data by memorypool
e7233912aPer Östlund- Fix type dimensions in SCodeInst.
a963de49eMartin Sjölund- Added rule exp[] => exp (ASUB'ing nothing does nothing) Finds diff like the following for Modelica.Media - 190.56[],0.01604246[],9.86e-05[],0.011[],0.0[] + 190.56,0.01604246,0.0000986,0.011,0.0
8e46ab316Martin Sjölund- Added rule Real(i1:i2) => Real(i1):Real(i2)
62a9eca19Martin Sjölund- Added rules for string and boolean relations (==,<>,>=,>,<,<= where applicable) - Added rules for element-wise matrix mul,div,pow - Added rules for element-wise vector pow - Added rule for {} X => {} (for certain operations)
1712a6b05Adrian Pop- gee, shouldn't we return what we compute??!!
fc18a625eAdeel Asghar- some changes in the Plot API family to support OMNotebook embedded plots.
c05306dafPer Östlund- Implemented expansion of bindings in SCodeExpand.
5656a89bfMartin Sjölund- Simplify ew array division/multiplication ({1,2}./{2,2}={0.5,1})
2ea4635faKaie Kubjasadded 2 flags and made some small changes for reduction methods
1625165c2Per Östlund- Changed structure for storing the result from SCodeInst from lists to a tree. - Added new phase, SCodeExpand, which expands the result from SCodeInst into a DAE.DAElist. - Implemented inner/outer support in SCodeInst, not complete yet.
d3b5a74cfMartin Sjölund- Gave MODELICA_TERMINATE a complete type (gcc ignores)
bdb511f38Niklas Worschechchanged prefix of variable names in cpp runtime
920b75ca0Martin Sjölund- Fixed the fix-bom command (removed some BOM)
6dca03acdMartin Sjölund- Added fix-bom target
3c2a60ba7Niklas WorschechAdded get and set method for conditions vector in IEvent interface
dca4dc436Martin Sjölund- Re-enabled generation of mosh/src/Makefile
f3d5af857Martin Sjölund- Added LD_LAPACK to configure.in
6ca9d13e4Niklas Worschechmodified cpp runtime CMake file for system initialization
715ea486fAdrian Pop- got rid of references to c_runtime in configure.in.
f9041571fAdrian Pop- GOT RID OF the old trunk/c_runtime and old templates SimCodeC.tpl/SimCodeFMU.tpl - HIGHLY RECOMMENDED make clean - renamed SimCodeXXX.tpl CodegenXXX.tpl - merged the needed things from SimCodeC.tpl into CodegenQSS.tpl. - all tests except the usual mishaps go. - targeted all trunk/c_runtime references used in Makefiles / C (Qt OMPlot) / Other files to their SimulationRuntime/ counterparts.
c5bda889dNiklas Worschechchanged implementation of condition variables for zero crossing variables in cpp runtime
57e3faca5Adrian Pop- copied qss files from c_runtime
b4830e501Mahder Alemseged Gebremedhin- Collected all function kind restrictions(normal, external, operator) in to one restriction with its own attributes. R_FUNCTION() -> R_FUNCTION(FunctionRestriction), FunctionRestriction(FR_NORMAL_FUNCTION, FR_EXTERNAL_FUNCTION, FR_OPERATOR_FUNCTION, FR_RECORD_CONSTRUCTOR) This will also help for more compact function handling when the ParModelica parallel and kernel functions are added. + Added FR_RECORD_CONSTRUCTOR restriction to SCode so that we can handle record constructors differently.
999ea7004Lennart Ochel- avoid initialization and use start values instead: simulation-flag "-iim none" - avoid initialization and use existing results instead (matfile): simulation-flag "-iif -iit
25a986ff8Adrian Pop- fix typo in CodegenC.tpl - use CodegenC instead of old SimCodeC in SimCodeDump.tpl - fix some of the deps.
9104bf817Martin Sjölund- More logical sorting of paths
ad7d0f90cPer Östlund- Fixed redeclare with qualified crefs in the modifier in SCodeFlatten, which broke all MSL 3.2 examples. - Added a MSL 3.2 example to the test suite.
954bf435eMahder Alemseged Gebremedhin+ Merging The parallel extensions. + parallel variables are handled in the Front-end now. - some checks and restrictions remain, but nothing that affects the normal OM compilation. * so far so good.
5af302a05Adrian Pop- empty commit to test that OpenModelica subversion repository post-commit hook trigger Hudson builds ONLY when we commit in trunk and nowhere else.
50395e721Adrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
70cf07cbfAdrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
7f4c22e55Adrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
dfedc49a6Adrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
7a7f496edAdrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
bb1b66fdfDietmar WinklerNo need to replace %20 in FindFiles.sh since this was taken care of somewhere else.
19ea7b7c4Per Östlund- Implemented handling of conditional component in SCodeInst.
9006250f3Martin Sjölund- Some more toHtml()
eb6f743f4Martin Sjölund- Sort output
74d6c60b4Martin Sjölund- Filename-escape
e3992743fNiklas WorschechAdded ISystemInitialization interface to cpp runtime
399b8824cAdrian Pop- empty commit to test Hudson
eebc1f156Adrian Pop- empty commit to test Hudson
b68b1fbe2Per Östlund- Initial support for enumerations in SCodeInst.
8ef0418d9Adrian Pop- empty commit to test Hudson
412bdeafbAdrian Pop- empty commit to test Hudson
6dcab2eb0Martin Sjölund- Fix some illegal generated html - Add
 tags to LAPACK again
a152ea8acMartin Sjölund- FIlter out EngineV6
21b678a6eDietmar WinklerMake Tidy.py a little bit more talkative and remove usless lines.
94b3371f6Adrian Pop- do not depend mosh on omc!
302790fb2Martin Sjölund- Only run soup if tidy says the file is ok
3c93052a5Adrian Pop- added testPar target.
47332a776Dietmar WinklerSynchronised with the changes done for the MSL release script.
31537d801Per Östlund- Improved modification handling in SCodeInst.
fe1db8828Martin Sjölund- Also load ModelicaTest in the mos-files
e62562ae8Martin Sjölund- OMPlot: Build lib before exe so parallel builds succeed
c07be781aLennart Ochel- minor initialization fix
b3f715237Lennart Ochel- minor initialization fixes
29256d675Dietmar WinklerStyle sheet modifications to make the headings look nicer.
853b481dbMartin Sjölund- Partial fix for LineForceWithTwoMasses (preprocessor macros now do not fail)
28ecd8de6Martin Sjölund- omc +t now dumps info about unary ops
9d09d7696Per Östlund- Ugly, ugly hack to keep anyString and getTypeOfAny from segfaulting on function pointers.
39f9b13edMartin Sjölund- Changed location of java_interface
63308b779Mahder Alemseged Gebremedhin+ propagating parallelism for variables through SCode. Everything just falls through.
2bec83baaMartin Sjölund- Add ModelicaTest if running MSL3.2 - Skip BaseClasses
98d51a535Niklas Worschech-fix in cpp writeoutput template, variables has the correct order now, modified giveZeroFunc cpp template, zero functions can not be exactly zero now.
59efbbec9Martin Sjölund- Symlink the correct path
e82116a26Lennart Ochel- fixed detectImplicitDiscreteAlgsStatemens for tuples
3b6880c5bMartin Sjölund- Wrong order in header
a12c3afd9Martin Sjölund- Build all models
dac7bc3d4Martin Sjölund- Avoid problems if omc crashes
e1689be8aHenning Kielfix array access out of bounds static variable buf does not allow reentrance here (would be better put on stack = not static)
2bdf3ac4aNiklas WorschechAdded fix to KinSol solver for linear systems
a1bba53b2Niklas WorschechAdded improvement for event handling to CVode solver in cpp runtime
e36aff93cMartin Sjölund- Print user-friendly times (not 7.83e3 sec...)
d9d3bb3a8Willi Braun - update the algorithms for coloring and sparse pattern
36886ee3eMartin Sjölund- Add total time taken to BuildModelRecursive.mos
0c3dc3912Martin Sjölund- Fix MainTest.mos
be69cddafMartin Sjölund- Filter out some more models that are auxilliary
716645992Martin Sjölund- Updated BuildModelRecursive.mos - Outputs a pretty colour-coded html table - Added some more realtime clock functionality to the API
6440acdc9Martin Sjölund- Added ceval support for String(real,significantDigits=xxx)
796ae91fdMartin Sjölund- Removed debug output
72b69e88aMartin Sjölund- Forgotten file in last commit
535053df6Martin Sjölund- Add more realtime timers and an internal scripting query so we can ask for approximate timing in a mos-file even if the API call does not return the times
bf8cf55d6Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
d1106dbbdAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
dd6b85881Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
a45356b3cAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
bf0d92a96Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
8a53c25f6Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
1cc48694fAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
88b095f9aAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
9f6cabbdbAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
287ffe38fAdrian Pop- test building
7a3e5684eAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
8e007b8cbAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
21322e3d6Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
48089d136Adrian Pop- do not clean java_inteface as it no longer exits!
30ce1bd5dAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
ce5510eb0Adrian Pop- rebuild SimCodeC.tpl in the susan makefile. - update SimCodeC.mo
d53817d2bAdeel Asghar- fixed a typo.
1c7cfc282Willi Braun#1687 - added some algorithm fixes - added algorithm without output vars nevertheless to the solved system. (See Bug 1687) - fixed Bug 1687 - fixed algorithm to initial the lhs values by - A non-discrete variable is initialized with its start value (i.e. the value of the start-attribute). - A discrete variable v is initialized with pre(v). - removed functionAliasEquations, since it contained only algorithms without output vars - fixed CodegenC LHS cast value
69aa66923Martin Sjölund- Log what files we have started writing to so we can see the progress
b57a908aeMartin Sjölund- Symlink Modelica 3.1 to Modelica in the directory we try to run BuildModelRecursive.mos in order to avoid problems with the Modelica.Utilities tests
7614b72f1Martin Sjölund- Added scriptable API functions: isPartial isModel regularFileExists - Added script BuildModelRecursive.mos to systematically try to build every example in MSL
297cb69f5Martin Sjölund- Die with fire
32fcf0db8Per Östlund- Implemented deducing of array dimensions from bindings in SCodeInst.
cec3f45f6Adeel Asghar- Don't close the simulation result set since we have a caching to mat format. - closeSimulationResultFile() :: Closes the current simulation result set. OMEdit uses it for windows to close the result file. - some minor fixes in OMPlot.
dde7ac139Martin Sjölund#1684 - Generate code for assignment to record
35b0ff2a6Martin Sjölund- Removed the static keywords from the ModelicaExternalC C-files instead of using preprocessor macros since that messes with OSX
fdb858363Martin Sjölund#1681 - Add an error message when Lookup.lookupClass(msg=true) is used - Made msg=false for some functions that assume msg=true generates no error-message (they were all written by gremlins who hacked the system during the night)
af9f206eaPer Östlund- Fixed error message in BackendDAEOptimize.partitionIndependentBlocksSplitBlocks for over/underdetermined equation systems. - Updated dependency/Modelica.Mechanics.MultiBody test.
7e7a4fbfdMartin Sjölund- OSX cp doesn't have -u
e015a73efPer Östlund- A lot of changes to SCodeInst, mostly related to typing of components. - Hijacked SCodeMod and moved modifier handling code from SCodeInst there.
ebce39fcdPer Östlund- Added applyOptionOrDefault and applyOptionOrDefault1 to Util. - Added Util.nextPrime to find the nearest larger prime number to a number. - Added printGraph and printNode to Graph, useful for debugging graphs. - Cleaned up BaseHashTable by declaring all hashtable types as package types.
0fe4c1b9eAdeel Asghar- We should close the simulation result file after reading the results e.g variables, val, dataset etc....
8b99f1835Per Östlund- Applied patch from forum user janssen to close MathML if-expressions correctly in XMLDump.
c608e2ca5Martin Sjölund#1686 - Added a parse error for connect found in an element list
68a85db1bPer Östlund- Changed the unbalanced connector error to be a warning.
09b24f96cNiklas WorschechAdded Kinsol solver source to cpp runtime
a13f06f05Henning Kiel- fixed function protottypes
7bc545093Adeel Asghar- Some minor fixes.
7b8adf8b9Adeel Asghar- Added some new APIs to get equation and algorithm items.
7bb82a710Adrian Pop- first draft of OpenTurns wrapper for OpenModelica generated code with uncertainties
98b818e85Henning Kiel- move if condition out of for loop
9e1537d81Henning Kiel- substitute goto statement by do-loop
02614d27cAdrian Pop- copy replace-startValue* with the other scripts.
434824ddaMartin Sjölund- Inline homotopy since it's not yet supported fully
bbaa32eefMartin Sjölund- Includes
d83e26162Martin Sjölund- Fix Makefile.in
c8c428580Martin Sjölund- Configure error
0d582c601Adeel AsgharFixed the makefiles for simulationruntime
f8832fa35Martin Sjölund- Fix compilation errors
8a285a344Martin Sjölund- Some descriptions of optimization modules
41a885223Adrian Pop- one for Windows too.
d9a7d55d5Adrian Pop- homogeneous line endings
f6b4e160cAdrian Pop- more Linux stuff
e51468b7aAdrian Pop- support any type of value
a30239eacAdrian Pop- not .exe for Linux sake :)
26b770d30Martin Sjölund- Fix for bootstrapping
4c66abd9aAdrian Pop- small comment update
1e68f8280Adrian Pop- a XSL script and a driver to change a start value inside a Model_init.xml
122db4999Martin Sjölund- Some documentation updates
c10da1f17Martin Sjölund- Simplify CAST(-arr) = -{CAST(exp),...}
b8b909170Martin Sjölund- Fixed codegen for boxed non-uniontype records containing function pointers
41817020eMartin Sjölund- Updated GenerateDoc
1245a5626Jens Frenkelevents.h: bugfix function definition generational.c: avoid warning (vs)
0239c8e47Jens Frenkel- bugfix remove simple equations for uncertainty computations, nobody knows if i or j is the variable or the derivative
849c04a82Willi Braun- removed OMC_SEED_HACK - improved evaluation of jacobians
4c9afd1ddMartin Sjölund- Fixed compilation of MainTest.mos, but some warnings remain
7d5a2bf35Martin Sjölund- Fixed some uncertainty compilation errors
dd5d12c5bNiklas Worschech- fix in cpp template for non linear systems, replacement of state variables
c32f65583Leonardo Laguna- Implemented support for uncertainty computations
0ddc05772Martin Sjölund- Better error message for equationToExp failed
1905f0a38Niklas WorschechFix in cpp template in mixed systems discrete vars iteration
80577716cLennart Ochel- fix dump-messages - fix scaling-coefficients
18068ccc7Niklas WorschechExtended cpp runtime and cpp template for mixed systems
72e3c81abPer Östlund- Handle time in SCodeDependency.
208e97dcfPer Östlund- Improved notification on language standard changes.
c7de83f0cJens Frenkel- update CMakefiles
10df2537dMartin Sjölund- Renamed trunk to 1.8.1
cc4f7d0d8Adeel Asghar- compile the c runtime with debug symbols. - changed the -ggdb flag to -g. - Updated the version numbers in .onb, .doc, .pdf and config.h file. - some small changes in the Users Guide chapter 10.
5463c7de4Martin Sjölund- Flush some more
a9e94a13dAdrian Pop- add a prototype for void *mmc_alloc_bytes(unsigned nbytes);
9392b5ac2Jens Frenkel- change AC_PREREQ([2.65]) to AC_PREREQ([2.63]) to support also CentOS
9a7889986Adrian Pop- port the changes to meta and GC to the new runtime. not on yet and not all changes added. - some fixes to linking for FMI on windows - do not set the x=x before tailcall. - fixes to the new runtime to be able to compile using VS - use the safe real (union of words).
de4f237b8Mahder Alemseged Gebremedhin+ Support for overloading of Modelica element-wise operators. Now these are deduced from the scalar versions whenever necessary. + Normal operators can also be vectorized now if there is no other option. That is: when there is no exact match found for operating on arrays but there is/are some for corresponding scalars. + This is full support for operator overloading. + There are some deviations from the Specifications. See comments in testsuite/records/OperatorOverloadComplexArray.mo and Static.mo
03e55d563Martin Sjölund- More robust GenerateDoc.mos
941864be6Lennart Ochel- removed redundant equations for initialization - removed unused code - renamed SIMCODE attribute initialEquations to startValueEquations (in order to avoid confusion)
7f04f5fc3Kaie KubjasIn SimCodeCpp.tpl fixed a bug with arrays and extended functions for doing reduction.
9ea937014Mahder Alemseged Gebremedhin+ Improved operator elaboration. (normal and overloaded)
6df54792cLennart Ochel- fixed generating of initial equations - removed unneeded stuff from BackendDAEUtil.mo - renamed functions: initializeDataStruc_X_ -> setupDataStruc initializeDataStruc_X_2 -> setupDataStruc2
25030ded4Martin Sjölund- Warn about : in generated code
9379161c4Lennart Ochel- clean createInitialResiduals - fix debug outputs
3b0cc4102Adeel Asghar- geClassNames accepts a new named argument showProtected to list the protected classes. getClassNames(Modelica.StateGraph.Interfaces.PartialStep) => {} getClassNames(Modelica.StateGraph.Interfaces.PartialStep, showProtected = true) => {OuterStatePort} - checkAllModelsRecursive also accepts a new named argument checkProtected to check the protected classes as well. - visualize API now calls the OMVisualize.exe by passing it the visualization filename and the result filename. OMVisualize will be added to trunk soon. - some other minor fixes.
d70a82f01Lennart Ochel- fix under-determined initialization without initial equations - fix error output for nonlinear systems
71cfa4ffeWilli Braun- fixed bootstapping MainTest.mos
0c6ae42a4Willi Braun - fixed compilation error for Main.mo - fixed bootstrapping MainTest.mos
42ecbb121Martin Sjölund- Use BeautifulSoup (Python HTML library) instead of Perl html::Parse since that library destroys too much formatting
d36c58395Willi Braun- fixed FMU testsuite
b000ddba6Willi Braun - added graph coloring algorithms to utilize the sparse pattern for a faster evaluation of the analytical jacobians - usage by solver method="dassljac"
41894316dAdeel Asghar- A minor fix.
49946676fAdeel Asghar- set named annotation values.
b18704989Martin Sjölund- modelicaLine with extra #
afacb1200Martin Sjölund- Switch back to as_HTML as as_XML breaks some HTML entities
9181dd002Martin Sjölund- Use as_XML instead of as_HTML as it doesn't seem to move stuff around as much
cd403aca8Martin Sjölund- Fixed parser errors
ba99769afMartin Sjölund- Add transitional doctype
e1191e900Martin Sjölund- Some more documentation
e1e3e3381Lennart Ochel- fix for under-determined initialization problems - update initialization-tests
d7ac56798Mahder Alemseged Gebremedhin+ Removed parallelism related stuff that affects the API. parallel is there but is used only internally. Can not be modified with the API.
8dffb4fcaMartin Sjölund- setStackOverflowSignal is now inlined in bootstrapped omc
c5ed3e637Martin Sjölund- autoconf
b5fbfe71eMahder Alemseged Gebremedhin+ Small fix for slowly failing expressions due to search for overloaded operators + Always Print 2 digit exponents when running testsuite. exponent digit differences between Windows and Linux. 1e005 vs 1e05 makes actual mismatches easier to locate.
f07bc3046Mahder Alemseged Gebremedhin+ 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.
539bbe69fPer Östlund- Fixed List.toString so that it always prints out the list name. - Better handling of modifiers in SCodeInst. - Partial implementation of variable typing in SCodeInst. - Various other SCodeInst changes.
25bfcc6a8Martin Sjölund- Some header dependencies
41a2c53e0Martin Sjölund- Documentation fix
497478d5dJens Frenkel- implement smoothness=Smoothness.ContinuousDerivative for CombiTable2D using Akima interpolation
e05fb1a19Jens Frenkel-Update CMake Files
b7cccec95Lennart Ochelrenamed functions: - bound_parameter -> updateBoundParameters - initial_function -> updateBoundStartValues
9f113c7c9Jens FrenkelBug [# 1678] fix return value for Modelica.Blocks.Tables.CombiTable2D if input signal is out of bound - add warning if other smoothness than LinearSegment is used
70fe4f8d3Adrian Pop- ö changes
92a2699afMartin Sjölund- Use liblpsolve55_pic.a when using static linkage
43056701aMartin Sjölund- Don't link every file against ModelicaExternalC; the modeller is supposed to add this dependency
c42a1f288Martin Sjölund- EOL style on templates
9d62fe282Adrian Pop- revive the ö in LinkÖping - remove the Windows.h include.
6d34cda4fMartin Sjölund- Don't send 0 memory states when using dynamic number of OMP threads
b1e6a82a9Martin Sjölund- Tail-recursive pop_message
56a2aa903Martin Sjölund- Set svn-eol-style on a few files
d16b2cbfaMartin Sjölund- Make clean now cleans up a bit more of the mess
29c14adefPer Östlund- Implemented handling of attributes of builtin types to SCodeFlatten.
fcd8489c5Martin Sjölund- Remove file before ar to be sure nothing remains
0112e0d69Martin Sjölund- Also clean a-files
30a250a64Martin Sjölund- make clean now cleans all files in the simulation runtime
8ad59d32cMartin Sjölund- Do static inline
a0fc944d6Mahder Alemseged Gebremedhin+ testsuite fixes for parallel extensions. + Added parallelism attribute to all variables.
61607e3c6Lennart Ochel- removed temporary prefix _X_ from DATA-structure
0f7ced876Willi Braun - added determination of sparse pattern
1b48768dbMartin Sjölund- Removed configure script as all systems have access to autoconf
1c5e33f76Martin Sjölund- Fix for OSX compilation (Error.h exists in multiple places)
4804f625bMahder Alemseged GebremedhinAdded parallelism attribute to all variables.
c4f26c7f8Martin Sjölund- Link ModelicaExternalC with dynamically loaded functions
32c65ac0eMartin Sjölund- Push to the memory pool when using dynamic function loading
2ed111519Martin Sjölund- Clean make now succeeds again
8bb948d30Willi Braun - switch function generation also to new simulation runtime - linking Compiler/runtime to new sim runtime.
9ff6a5576Per Östlund- Redesigned handling of redeclares in SCodeFlatten so that redeclares are replaced in the correct order.
deccb2df5Martin Sjölund- Include builtins
70fbe866eMartin Sjölund- Added check for non-array iterators in for-loops - Added codegen for pre(matrix[sub1,sub2])
3dda2810cMartin Sjölund- Only copy headers once
0832aaf76Martin Sjölund- Fix MetaModelica testcases using the new runtime
1e6d78601Willi Braun - Switch to new SimulationRuntime as default SimulationRuntime. - all simulation tests work as before. - This will break interactive and qss stuff.
dd053729aAdeel Asghar- Fix compilation. - Remove bin directories from trunk as they are created automatically after qmake.
d9519270eAdrian Pop- remove sendData.
72e361c98Martin Sjölund- Removed OMPlotWindow as it uses the old plot commands
e420ac352Martin Sjölund- Removed sendData from the compiler
7d03d7a9fMartin Sjölund- Removed 3D support from OMNotebook
2f1435ad1Martin Sjölund- Moved isPackage to the scripting enviornment - GenerateDoc now splits the index page between libraries and builtin environment
48b5d5915Martin Sjölund- Make it an error if we fail to fully load a library (if a within-statement is fault for example) - This was previously printed to stdout and silently ignored
f54383b8cMartin Sjölund- Fix configure for without-static-readline
8424e02feMartin Sjölund- Added configure option --with-static-readline
9788eb126Martin Sjölund#1674 - Fix dimensions of splice expression
37b502279Martin Sjölund- dtoa fix for 32-bit Linux
e5bbbb1ffJens Frenkelfix for bug Bug [# 1608] - functions with inputs (parameters and discrete) have zero derivative - Derive, BackendDAEUtil, BackendVariable - BackendDAETransform: update Debug code
45b6ecebaJens Frenkel- otpimize DAE.IF_STMS while do replace Bug [# 1503]
0a154cfa6Martin Sjölund#1673 - Reject models that contain external declarations
c094e25e0Jens Frenkel- bugfix last commit
760ad7170Jens Frenkel- fix for Bug [# 1671], use real last type
882102593Jens Frenkel- fix for Bug [# 1671], look for crefs without last subscribt
0abaa7703Martin Sjölund#1672 - Allow empty config string lists (pre/postOptModules)
eaa36f766Willi Braun[newSimulationRuntime] - fixed bug with delay and string parameter
186231086Lennart Ochel- cleanup
56ca4a771Lennart Ochelintroduce scaling-coefficients for initialization
9564748f7Niklas WorschechExtended cpp template for solving linear systems
73d3b28e9Lennart Ochel- erroneous commit fixed in solver/solver_main.c - avoid pitfalls in error.h
659417320Martin Sjölund- Documentation update
1c9fb12bdMartin Sjölund- Added debug option +d=delayBreakLoop - If the delay has a bounded lower limit, we allow it to break algebraic loops
977f2a4a8Martin Sjölund- Don't run modpar if +d=openmp is used
a80c5eca5Henning Kielmake simple functions static inline to save the jump instructions
97a1bb2e9Henning Kielremoved obsolete file (is integrated in openmodelica.h)
f209e4dc9Lennart Ochel- activate new_cruntime again
ed7fd2d2cMartin Sjölund- Disable new_cruntime while compilation errors are being sorted out
198b4993fMartin Sjölund- Handle paths with dots in the (quoted) identifier
91dcf7d60Martin Sjölund- Documentation, ReleaseNotes
81bc7ab24Willi Braun[newSimulationRuntime] - activated jacobian in DASSL again - added some memory frees to get rid of valgrind claims
0e1e27b9bHenning Kieluse malloc instead of calloc becuase memory is immediately initialized after allocation
9c2869a4dHenning Kielthere is no element d_type in OMDev's struct dirent put #ifdef around code section to make file compile again in OMDev
353df92fbPer Östlund- 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.
6da4e719cMartin Sjölund- getNamedAnnotation now works on ENUMERATION
f6bff07d5Martin Sjölund- Don't try to load txt-files as if they were packages stored as library (in fact: we ignore them)
c1f50f8c1Martin Sjölund- Small typo
3daeb7da1Martin Sjölund- Meta-documentation
70be4aedbMartin Sjölund- Comments should not strip valuable characters
da1b5856dMartin Sjölund- Updated documentation
c8b77402bMartin Sjölund- Added list API to get short class definitions only
cb882043bMartin Sjölund- Removed old ModelicaReference as they are not needed (trunk version of ModelicaReference is safe to use as it contains no models)
67ad62a60Martin Sjölund- A function with no public elements isn't really a function; it's only used to take up space
1bc3c0d4aKaie KubjasFixed a bug in SimCodeCpp.tpl:outputIndices.
1d0871d41Martin Sjölund- GenerateDoc: Use an html-parser in perl to (much slower) replace modelica:// links (but doesn't replace documentation that tries to tell the user how modelica:// should work) - Added version annotation to ModelicaReference - Send symbolTable in elabCallArgs (so now we can call writeFile(getSourceFile(M),list(M)), etc
a13dd0bf9Per Östlund- Changed Dump to print out 'constrainedby' instead of 'extends' for constraining classes.
b42d921c3Per ÖstlundFix for broken media tests in r10763: - Do not use the cache in CevalScript.evalCodeTypeName, for it is subtle and quick to anger.
4dde283fdMartin Sjölund- pdf links now work in GenerateDoc.mos
cd7f07926Martin Sjölund- Massive performance gain for GenerateDoc.mos
64052b38eMartin Sjölund- Additional speed-up for GenerateDoc.mos
9c15aba0dMartin Sjölund- Faster GenerateDoc.mos
7f7d3500aMartin Sjölund- Moved evalutation of typenames from static to cevalscript
0f3330b7cMartin Sjölund- Also look for pdf's, report duplicate resources
9f9faf75bMartin Sjölund- Strip annotations when listing the interface
6af8413c0Martin Sjölund- Don't use debug-version...
422a85c28Martin Sjölund- Documentation generation now adds a function interface when appropriate
4477b309bMartin Sjölund- Added option list(func,interfaceOnly=true), which only lists the public parts of a function
4ecf20eeaJim NutaroUpdates .mo file for SimCodeAdevs
6e8a01317Jim NutaroFixed return type for sqrt in adevs backend
24321feedMartin Sjölund- loadModel() documentation
279353712Martin Sjölund- Compilation errors found by make clean (not found by RML dep.analysis)
88956c8dbMartin Sjölund- Some more documentation
d14ffa97cMartin Sjölund- Some more documentation
694602a01Martin Sjölund- getNamedAnnotation now works on overloaded functions - Improved rooted() description
a2e5daecfAdrian Pop- details on "rooted" operator
437b6a5b0Martin Sjölund- Some documentation annotations
dde9374d9Martin Sjölund- Fix for bootstrapping
28ab0ef3fMartin Sjölund- Also generate documentation for OpenModelica
116346e09Martin Sjölund- Also add library versions
33fbc6feeMartin Sjölund- GenerateDoc now generates and executes one single script for all regex
6356a78deJens Frenkel- Update CMakeFiles
09de863f1Martin Sjölund- getVersion(className) now returns the version-annotation as string
3f96430e3Martin Sjölund- Fixed copyright notice - Added some more libraries to generate documentation for
2383a5142Martin Sjölund- Interactive.buildEnvFromSymboltable now caches its result
301951015Kaie KubjasAdded interface for ReduceDAE algorithm -SimCode.mo: added args input for removeTerms algorithm in translateModel, generateModelCode and createSimCode -SimCode.mo: added labels for generateLabeledDAE algorithm in ModelInfo and createModelInfo -Flags.mo, Config.mo: added configuration flags and wrappers for generateLabeledDAE and removeTerms algorithms -CevalScript.mo: changed compileModel from protected to public -Interactive.mo: added cases for generateLabeledDAE and removeTerms algorithms in evaluateGraphicalApi_dispatch -SimCodeCpp.tpl: added template functions for ReduceDAE algorithm
49340eb5bAdrian Pop- fixes for Visual Studio
ec0661079Adeel Asghar- getLocalVariables(M1) - Returns the list of local variables defined in a match exp. Returns the same output format as getComponents.
f4afedc81Martin Sjölund- Don't mangle non-link modelica:// references
c952ca061Martin Sjölund- Dereference symlinks
e93ad2eecMartin Sjölund- Added basename/dirname API calls - Updated GenerateDoc example to generate an index page and copy the images to the tarball
9a72a543dAdrian Pop- const va_list doesn't work in VS and clang/llvm, so it has to go because without it it works in GCC too.
7bb0f98c9Adrian Pop'*' cannot be part of a filename in Windoze.
2cd73bbf6Adrian Pop- msys fixes (') becomes part of the file, eh, is not *n?x.
7ee1dd7bbMartin Sjölund- Added a simple documentation generation script I worked on at the MDM to the examples directory
b750dc5c4Lennart Ocheladd min/max/nominal attribute to ./SimulationRuntime/c/
5fd55195ePer Östlund- Implemented prefix propagation for redeclares in SCodeFlatten.
cab1614abPer Östlund- Added System.appendFile to bootstrapped runtime.
35c28959bPer Östlund- Updated debug flags with descriptions from Jens.
0176633b8Martin Sjölund- Added sort=bool option to getClassNames (which sorts the paths)
0ff0d373aMartin Sjölund- Added append file API
c103c3ec2Adrian Pop- GOT RID OF ALL ASSIGNMENT TO INPUT FROM THE COMPILER please run testsuite/bootstrapping/MainTest.mos always before commit! or the testboot make target (which is the same) - used the strict double with padding from RML (a union instead of directly the double) - refactored a bit the GC and added the generational GC (not on yet) DO NOT PORT IT TO SimulationRuntime/c yet, i'll do it myself later. - use the old realString for Windows for now - removed Windows.h include from modelica.h - stop generating junk in OMDev\tools\mingw\bin (fixes in Compiler/scripts/Compile.bat) - fixes to some tests - some fixes so that the bootstrapping works with VS.
844634cadAdeel Asghar- Added the preferredView annotation.
78ea4b7acMartin Sjölund- Added some more scripting functions
7db42bb34Mahder Alemseged Gebremedhin+ Operator overloading for OpenModelica +Precedence RA + RB 1- Left side -> RA.'+'(RA, RB) IF NOT THEN 2- Construct right side -> RA.'+'(RA, RA.'constructor'(RB)) ELSE 3- Right side -> RB.'+'(RA, RB) ELSE 4- Construct left side -> RB.'+'(RB.'constructor'(RA), RB) ELSE FAIL
f5f484f70Adeel Asghar- getImportCount(M1) and getNthImport(M1, 1).
cbc06b8dbMartin Sjölund- Ninja edit
9c1cd55efMartin Sjölund- Allow typenames to be retrieved from the symboltable a:=$TypeName(Modelica); list(a); // equiv. to list(Modelica)
c17501038Martin Sjölund- Fix for getDocumentationAnnotation
6e8f6e762Martin Sjölund- Made some builtins impure
0b6fd346bLennart Ocheladd min/max attribute to *_init.xml
628f3dcc7Mahder Alemseged Gebremedhin+ Operator overloading for OpenModelica + Supported operators + overloaded constructors 'constructor' + binary and unary arithmetic '+', '-' (subtraction), '*', '/', '^', '-' (negation) + unary and binary logical operators 'and', 'or', 'not' + relational operators '==', '<>', '>', '<', '>=', '<=' + String() 'String' Precedence RA + RB 1- Left side -> RA.'+'(RA,RB) if not then 2- Right side -> RB.'+'(RA,RB) else fail
1eac5e224Martin Sjölund- Moved getDocumentationAnnotation(...) to CevalScript
583310878Henning KielSimulationRuntime/c/util - complete overhaul implemented some missing functions
e42a5506eHenning Kielc_runtime: complete overhaul implemented some missing functions
5d5b70468Henning Kieloptimized for loops replaced calloc by malloc where allocated space is immediately initialized by function
b09af2ccfAdrian Pop- check assignments to inputs in patterns. - only top level patterns in cases are allowed to be inputs (maybe we should disallow that too)
2fd29574fAdeel Asghar- getComponents API now takes a named argument useQuotes, getComponents(M1); // returns the result in the same old format getComponents(M1, useQuotes=false); // returns the result in the same old format getComponents(M1, useQuotes=true); // returns the list of strings with all elements enclosed in quotes. - Some new API calls, + isEnumeration(M1) // returns true/false + getEnumerationLiterals(M1) // returns the enumeration literals as list of strings. + getNthComponentCondition(M1,1) // returns the Nth component condition. + isReplaceable(M1, "withinClass") // returns true if withinClass is replaceable.
f2cec718fMartin Sjölund- Some clean-up and testing of the priority queue working for static scheduling
19e27d93cWilli Braun[newSimulationRuntime] - fix compile with senData
3e4acff2bMartin Sjölund- Ran autoconf
19bde3ddfWilli Braun[newSimulationRuntime] - fixed compilation for windows
d72b578c4Willi Braun[newSimulationRuntime] - solved some unneeded dependences, thefore reorganised some functions - rewritten Makefile
7cc859876Martin Sjölund- Started using priority queue for greedy static scheduling
0711327cdAdeel AsgharOMC - Changed the omniOrb message size limit to 2GB. - Changed the getComponents API output. Now all elements are enclosed in quotes. - New API calls added. + getAnnotationCount(M1) // returns the number of annotation in the class. + getNthAnnotationString(M1,1) // returns the nth annotation string. (non flattened annotation). + getClassComment(M1) // returns the class comment + getComponentComment(M1, x) // returns the component comment. Takes the class name and component name. OMEdit - Added the new method unparseArrays to parse the omc arrays based results. - Updated code to accommodate new format of getComponents.
6c5d843cbMartin Sjölund- Added a basic priority queue
ac13eb076Per Östlund- Call Static.canonCref before prefixing the cref in InstSection.instAssignment2, to get rid of some failtrace. - Changed unbalanced connector warning to an error.
d9a3eb5fdPer Östlund- Rename redeclared class declarations in InstExtends.updateComponentsAndClassdefs2 so that their names are correct. - Stop iterating in Inst.matchModificationToComponents when we get an empty modifier. - Added another Siemens test (not working yet).
203000fabPer Östlund- Handle element redeclarations in SCodeInst too.
cea9f4283Per Östlund- Fixed assignment to record in CevalFunction so that Ceval can find the binding. - Added makefile for siemens testcases.
57c22bc7eMartin Sjölund- Some documentation
3b60260b3Martin Sjölund- Provide loadString(..., encoding="...") option
a789be661Per Östlund- Fixed handling of partially bound record in CevalFunction.
7812ec39eMartin Sjölund- Added routine to translate token names to string - Fixed output of ANTLR3_UNWANTED_TOKEN_EXCEPTION
3c991ba50Adrian Pop- YOU WILL NEED TO UPDATE YOUR OMDEV FOR THIS! - fix iconv.h header and systemimpl.c - do not copy the libiconv-2.dll as we now link with the static one.
82db98b85Adeel AsgharFix OMC compilation, - Removed the extra */ - Copy the iconv-2.dll
b07837e66Adrian Pop- windows fixes, switch includes.
905a165baAdrian Pop- fixes for windows (const char*) - added -iconv to link with omc.
3ee93e893Martin Sjölund- Added scripting function iconv(str,from,to)
dde1e5821Per Östlund- Added SCode instantiation prototype.
937ed80a5Martin Sjölund- Disable debug checks
f6ac1dc92Martin Sjölund#1663 - Fix for data_of_integer_array on 64-bit platforms (copy the array before sending it to the external function)
24f9b90efLennart Ochelfix for parameters with nominal-attribute
cbbf705e3Martin Sjölund- realString: Output 0.01 instead of 1.e-02
c512d51f7Martin Sjölund- Fix correct length in realString
231ced32dMartin Sjölund- Only simplify max(real,real) if the arguments are real
bb59ec774Martin Sjölund- Do MMC_CHECK_STRING just in case
a0ec292ceMartin Sjölund- Fix issues with too small buffers, etc
c9a746e41Martin Sjölund- Do not do mk_scon() on a MetaModelica-style string ;)
91683667fLennart Ocheladd nominal-values to xml-file
eb898faa4Martin Sjölund- Use new dtoa-based realString
01af979dbMartin Sjölund- Use the old simplifyIfExp as it's "better"
9bbb249dbWilli Braun - update generated FMI import model (works now with new CSimulationRuntime also on linux) - adjust FMI export for new CSimulationRuntime
1f6ccae08Jens Frenkel- Expression.mo -add missing case for enumeration - ExpressionSimplify - report if ifexp is simplified
70c7e8d38Martin Sjölund- Removed use of unsafe unification in matching
9b09476f6Willi Braun[FMIimport] - added forgotten header for va_arg(function logger)
468602b39Willi Braun[newSimulationRuntime] - update FMU Export code - fixed bug in initialization
1054196e5Willi Braun[newSimulationRuntime] - added and adjusted FMU export for new simulation runtime(need more work)
1ac926dd1Martin Sjölund- Do not use unification in functions with potential side-effects ;)
45d0d7c6aJens Frenkel- fix for bug [#BUG-1661]. Now BackendDAETransform.differentiateEqns check if a equation has continuous variables before differentiting it.
23dbef25fAdeel Asghar- new API calls, + getInitialAlgorithmCount + getNthInitialAlgorithm + getInitialEquationCount + getNthInitialEquation
0f5a3e24dAdeel Asghar- Fixed getAlgorithmCount and getEquationCount - New API call getNthAlgorithm and getNthEquation
3c72b9023Per Östlund- Removed check for redeclaration of protected elements, since it's actually allowed. - Implemented support for cardinality of connector arrays.
cd44d7a04Martin Sjölund#1662 - Type-check == <>
eeac5b79dNiklas WorschechAdded CMakefiles for Idas an Cvode to cpp runtime
93011dfe9Martin Sjölund- Fix loadModel() for modelica.org trunk
17c7503e9Martin Sjölund- Remove the last expressionsimplify fixpoint iterations reached in the testsuite
363b450cbPer ÖstlundSome fixes for flags: - Consume -- so that it works as expected for the boostrapped compiler. - Print error messages for unknown long flags.
e96b091bdMartin Sjölund- Avoid failure to reach fixpoint for some simplifications
7c7dcc21eAdrian PopHUGE 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!
33c500088Adeel Asghar- new API commands getAlgorithmCount(M1), getEquationCount(M1)
3690dce8aMartin Sjölund- Some rewrite rules for a*(b^(-r)) => a/(b^r) and similar expressions
6f300fb79Martin Sjölund- ExpressionSimplify: Added new rules: - a^e*b^e => (a*b)^e - a^e/b^e => (a/b)^e
dacb29d0aMartin Sjölund- simplify: sqrt(x^2) => abs(x) (abs previously not present)
78cdd8a12Martin Sjölund- Added flag +d=checkSimplify, which tries to estimate if the simplified expression is actually simpler (usually the case) or not (more common than it should be)
bdb83cb60Martin Sjölund#1658 #1657 - Removed use of unary operators .- and .+ - Removed operator DAE.UPLUS and DAE.UPLUS_ARR; these are handled directly by elabExp
d0948deb8Martin Sjölund- Fix ExpressionDump: -(a+b) is now printed correctly (previously was printed as -a+b)
4c39590e6Willi Braun[newSimulationRuntime] - removed old globalData object - adjust most files - most test cases are working now (only some fails most due to different output) - more work on initialization needs to be done
896f16af7Mahder Alemseged Gebremedhin+ Merging The new parallel extensions. The new keywords can be enabled by using +g=ParModelica. Actually enabling +g=MetaModelica also enables the ParModelica keywords, but not the other way around. I couldn't find a way to enable them completely separately. I will fix it if I can. But it will not cause problems since the new keywords are not common words. The testsuite didn't report any errors related to the new keywords. But just make sure not to use them from now on while programming in MetaModelica. + The keywords don't have any effect now. They are just consumed by the parser. + the keywords are - parallel - parglobal - parlocal - parkernel - parfor
590fbc336Mahder Alemseged Gebremedhin+ Merging The new parallel extensions. The new keywords can be enabled by using +g=ParModelica. Actually enabling +g=MetaModelica also enables the ParModelica keywords, but not the other way around. I couldn't find a way to enable them completely separately. I will fix it if I can. But it will not cause problems since the new keywords are not common words. The testsuite didn't report any errors related to the new keywords. But just make sure not to use them from now on while programming in MetaModelica. + The keywords don't have any effect now. They are just consumed by the parser.
193778ee9Per Östlund- 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.
ff47d105fPer Östlund- Changed nX to : in some functions in PartialTwoPhaseMedium to make them work as intended.
c9512f366Martin Sjölund- Allow long strings sent over CORBA on Linux
99ca4798dAdrian Pop- YOU WILL NEED A NEW MMC-RML for this (>= revision 223)! svn up OMDev on windows, svn up rml on Linux or wait for a build. - moved setStackOverflowSignal to RML. - various other fixes so the bootstrapped compiler works with MSVC. - hashtable for DaE.Type -> DAE.ExpType (unfortunately doesn't work to use it in Types.elabType as is slower than the current solution) - removed the above hashtable from the compilation as is not used. - other small code edits (mostly comments).
a9d2ad348Martin Sjölund- Disable newsimruntime
39ae73b54Per Östlund- Changed behaviour of setCommandLineOptions, which now appends debug flags instead of overwriting them. +d=-flag can now be used to disable a flag instead. - Updated MetaModelica exercises.
04649a907Martin Sjölund- Removed operators from DAE.mo: scalar .+ array => array .+ scalar array .- scalar => array .+ (-scalar) scalar .* array => array .* scalar These are equivalent and reduces the code we need to maintain (duplicate cases, etc)
6fdd71fecAdrian Pop- FMI fixes: + run unzip in quiet mode (no more file names) + do not exit in freeElement with EXIT_FAILURE, just return as we need fmiimport to exit with code 0. - updated tests.
8af2054a2Niklas WorschechFix for division in cpp runtime and cpp template
cc6446f82Per ÖstlundNew compiler flag handling: - Removed RTOpts and OptManager packages, which are replaced by Flags and Config. - Updated all source files to use the new flag handling. - Split Parser into Parser and ParserExt, so that extra arguments can be sent to the external functions. - Added some string manipulation functions to Util.
dd9cf7400Per Östlund- Reverted changes from r10570 and fixed *only* System.tolower.
d12bdf0fePer Östlund- Fixed System.tolower.
7d94895f2Willi Braun[newSimulationRuntime] - ported bug fix from r10562 - fixed some alias and results bugs - mosfile 30 of 155 failed
16f170237Adrian Pop- function to check if a list has exactly one element.
4bdbbf311Adrian Pop- remove commented code as is no longer needed (already present in Types).
5c0e49df2Willi Braun[newSimulationRuntime] - added dassl support
f57a34db5Adrian PopFixes for BUG: #1652
ff2eef6aaMartin Sjölund- Do not output #line 0 as it's disallowed by clang
35884404eAdrian PopError.mo - typo fix
a3f224d14Adrian Pop- update a bit the omi_Calculation.cpp with things that are done before callSolver.
d088e81a2Federico BergeroRemoving stand alone solver from the runtime
287ba6b0eFederico BergeroUpdating code for QSS
fc230f878Adrian Pop- add fmiclean target.
c78aeee86Per Östlund- Changed List.filter*OnTrue and List.removeOnTrue to fail if the given functions fails.
4c3edef3ePer Östlund- Fix broken compilation due to r10543.
bfecc2a20Niklas WorschechExtended cpp code generation for Modelica Tables
56f15b75cWilli Braun#1651 - fixed Bug [#1651] - added test case
114161ff7Willi Braun - fixed compiling error
927a7d35cWilli Braun[newSimulationRuntime] - switched completely to new structure - adjusted solver(rungekutta, euler), eventHandling, input and results - changed rotation direction of the ringbuffer remains TODO: initialization, dassl, algebraic systems, minor bugfixes
eea2f4eedWilli Braun[newSimulationRuntime] - fixed csv output - fixed lookup in ringbuffer - fixed solver(euler,rungekutta)
7ecc74d8dWilli Braun- revert r10533 it break the fmi testsuite and anyway it overwrites many correct fixes!
99518f228Wuzhu Chen-- some bug fixes -- new functionalities for parsing model description file -- some warning messages removal
0af1212e9Willi Braun[newSimulationruntimeC] - setup the solver_main to work on new data structure
97349d63bLennart Ochel- provide lookup for ringbuffer
4e96a46acWilli Braun - updated FMI import and moved fmu to test suite
2c4aa8ceaWilli Braun[newSimulationRuntime] -added support to read all static varinfo data from xml file
2c4b496d6Adeel Asghar- testcases and getDocumentationAnnotation fixed.
b61ff1efdAdeel Asghar- getDocumentationAnnotation returns {"info","revision"} with info as the first element and revision as the second always.
9cfa56cefAdrian Pop- 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
f17c30eb7Adeel Asghar- Documentation annotation fixes.
8b1653135Martin Sjölund- Avoid stack overflow in all CORBA calls
0bda1359cJens Frenkel- copy fix from r10507 to SimulationRuntime/c
cfa3f1d6cAdrian Pop- check for connect(A, A), give a warning and ignore it! (a model from VI-Grade contained something like this). - added testsuite/mofiles/ConnectTheSameConnector.mo to test it.
1c702b44eAdrian Pop- last resort fixes for the memory_pool.c (to get the fmi not to crash when calling stuff from the generated dll).
61d7295d5Martin Sjölund- Added getClassNamesRecursive(void) API call
a4502e86cJens Frenkel- finish results implemention based on new data structure
af1c551e8Adeel Asghar- Create sections for documentation. So we know which HTML section belongs to info and revisions.
37c2ae568Martin Sjölund- Use the resul*t*s instead of the resuls
3bae6aa75Martin Sjölund- Don't #include as there is no such thing on some platforms... - Use stdlib.h from the C standard instead
d9b8b1887Wuzhu Chen-- more tested FMU examples -- fixed of bugs -- test version under windows
606d2f12dJens Frenkel- update simulation resutls (TODO mat,plt)
d744768abLennart Ochel- update_DAEsystem() -> update_DAEsystem(_X_DATA *data)
52e023a10Lennart Ochel- _X_DATA-initialization update
31c4f1a12Jens Frenkel- bugfix parameter value definition
0f826323eJens Frenkel- set variable filter for _X_DATA
ab1b03bbdLennart Ochel- _X_DATA-initialization update
be22ddcccJens Frenkel- add _X_DATA to functiondefinitions
242ad1eb2Willi Braun[newSimulationRuntime] - for now deactivated DASSL to rewrite solver_main
d4c469555Jens Frenkel- rename deInitializeDataStruc -> callExternalObjectDestructors
735368b2bLennart Ochel- continue using new simulation_data struct in initialization
4842db01bJens Frenkel- do not use this very good vararg macro
b307ca9a5Martin Sjölund- make clean now does not run the depend command
8f16f7b93Jens Frenkel- update bltdump - fix fmu generation for multiple backendaes
92510be84Willi Braun [newSimulationRuntimeC] -added static data from xml-file
a28ccf94bLennart Ochel- start to use new simulatio_data struct in initialization - fixed log-messages
18af01166Jens Frenkel- bugfix tables read csv file
57d142b8bJens Frenkel- bugfix tables.c - try to implement csv file support
7cdb59b88Lennart Ochel- add some debug-outputs - fix deleted else in simulation_runtime
3fc4fe383Adrian Pop- show the number of failed models and the models that failed.
19fc8eef2Jens Frenkel- bugfix mercurial mingw error for static arrays
8a022491dWilli Braun[NewSimulationRuntimec] - added ASSERTS for calloc
f0bc1d04dWilli Braun- [newSimulationRuntime] - fixed bug in initial DASSL Data
90731d39bWilli Braun- changed max and min to fmax and fmin
5c9bf5afbWilli Braun- changed solver_main to c - added a lot of bugfixes
59171cd23Lennart Ochel- bugfix in error.h
2e56a5bd5Jens Frenkel- add header to some Makefiles - us ld for long int - tables.cpp -> c
f976eff65Lennart Ochel- bugfix in list - introduce type-free list
156e678c4Willi Braun - update makefile for ModelicaExternalC
a572f5b25Jens Frenkel- continue tables.cpp convert to c-style
45412eee2Lennart Ochel- update delay
ff4e6dab0Lennart Ochel- some error-output macros
21b9b9787Martin Sjölund- Unix compilation
3b0265509Martin Sjölund- Unix compilation
c0278601aAdrian Pop- more fixes so it compiles.
1ef7611e4Jens Frenkel- start to convert tables to c-style
c13417ad2Adrian Pop- make the new sim runtime C at least compilable.
f8e50e19fLennart Ochel- some utility functions
f7ef6355bLennart Ochel- adjust makefile for interactive
68ea632b2Jens Frenkel- update cmake files
41a821879Jens Frenkel- update cmake files
5078739a2Jens Frenkel- update cmake files
b635c344eJens Frenkel- use ${CMAKE_CURRENT_SOURCE_DIR}
679f18da3Jens Frenkel- add nosendData
eaba34907Jens Frenkel- sendata CMAKE build not sendata if QT is not Found
dc0503147Jens Frenkel- sendata CMAKE build not sendata if QT is not Found - bufgix solver_main
f37c42a03Jens Frenkel- function predefinition
f15b1a782Jens Frenkel- events: do not free if not malloc - error msg style
fde99a0b4Adrian Pop- fixed memory pool (init states both in the generated code and in the executable!). - do not cat the testsuite-trace.txt as it can be very large and kill eclipse.
310f22c3eLennart Ochel- renamed some math-support files
3ab735ad1Jens Frenkel- bufix missing link
018a1ee22Jens Frenkel- add Makefile.common - use longjump in simulation_main - start with _X_DATA
2acad3995Martin Sjölund- M.E.D.E.Adder4 now compiles
ef52124d3Martin Sjölund- Some fixes for parameter enumerations
2e9be046dMartin Sjölund- Unix compilation
7fc7cf5e0Martin Sjölund- Use the configured CXX
3d3facc86Martin Sjölund- Configure fix
c766a7cb1Jens Frenkel- fix compilation
25cab0525Jens Frenkel- make list usersave ;)
e647c8d91Jens Frenkel- Bugfix MakeFile
69c783c7bPer Östlund- Moved global root indices to Global.
b0290130aJens Frenkel- update CMakeFiles
3558e1570Lennart Ochel- moved math-support
925266a2dLennart Ochel- first try of defining new structs for simulation datas
9795f9862Martin Sjölund- Clean compilation
3d57a3000Jens Frenkel- ged rid of sum waring - use time to call storeDelayedExpression, so globalData is not needed in simulation_delay
7530c3bc2Niklas WorschechAdded code generation for extern functions Functions.h in cpp template
d8afd1f0bJens Frenkel- get rid of some warings (mostly size of data type not equal) - clear includes
0327ac93dPer Östlund- Removed inline for alloc_elements in memory_pool.c, for clang compatibility.
1e3d8b181Per Östlund- Fixed mistake in DAEUtil.mergeSources.
a6dd9ac3dJens Frenkel- improve setTermMsg
bd108c900Willi Braun - added some more fixes for Makefile
ba58cf645Jens Frenkel- bugfix list.c - bugfix TermMsg
25be6da04Jens Frenkel- bugfix free
befd9e440Jens Frenkelgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10418 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
bceb1f8e0Jens Frenkel- bugfix c-standard - add utility.h
410231c0cJens Frenkel- bugfix print debug - assert to exit
0b8e2513aJens Frenkel- bugfix list init in simulation_events - bugfix TermMsg
b704e3199Willi Braun - merged some fixes
c5f5038dcLennart Ochel- bugfix for initialization
595315e5bMartin Sjölund- Add some equation info to the generated code - Comment out some useless code :)
c630f5ce3Jens Frenkel- simulation_events.cpp -> c - add list for simulation_events
a92e82366Lennart Ochela small fix
128900d9fChristoph HögerFix PHONY targets
efb65ea9fLennart Ochel- .PHONY fix for makefiles
8e059bb4dJens Frenkel- c-stile comments
242bfaf27Jens Frenkel- simulation_delay.cpp -> c
6aa3db78eJens Frenkel- update CMakeFiles - simulation_init.cpp -> simulation_init.c
a9d22fbdeJens Frenkel- bugfix mscv
1a75e6dc6Lennart Ochel- conert ringbuffer from cpp to c
77d3ba76bNiklas WorschechAdded fix from Adrian for ModelicaTables to cpp runtime
880e4f0ecJens Frenkel- add CMakeFiles to SimulationRuntime
704f50baeAdrian Pop- more info about a base array - give a warning if the tables are not monotonously increasing in the time column (c.f. Modelica spec).
efc63a610Martin Sjölund- Use long as modelica_integer type
5694905b1Willi Braun - added once again Makefile
452e009d6Willi Braun - added again Makefile to SimulationRuntime/c
f647f871cWilli Braun - added one Makefile more to SimulationRuntime/c
a06ec3127Willi Braun - some more fixes on SimulationRuntime/c for testsuite/mosfiles (only 7 tests failed)
2e88f66d0Jens Frenkel- copy bugfix to SimulationRuntime/c
dfdc7a56cJens Frenkel- update makefile
79dcdcd01Jens Frenkel- update makefiles
231c25e3eJens Frenkel- fix makefile
4cc9bbdb2Willi Braun - more SimulationRuntime/c
89b21cb53Willi Braun - changed the Codegen for SimulationRuntime/c
6bda1dc89Jens Frenkel- fix install
934becbaeJens Frenkel- fix warnings
0984349deWilli Braun - more Makefile stuff
3210774f4Jens Frenkel- fix warning
da4f41007Willi Braun - get rid of tons waring massages
598443942Jens Frenkel- fix clean
49bbb298dJens Frenkel- build SimulationRuntime/c
257b1ebfcWilli Braun - correncted Makefile.common in SimulationRuntime/c
eb8cb5afaWilli Braun - added Makefiles for simulation folder
dd2512a62Jens Frenkel- update makefile
8332b2bc5Martin Sjölund- OMDEV compilation
367b40291Willi Braun- fixing Makefiles for SimulationRuntime/c
2b0794d7cMartin Sjölund- Share some matrix literals
fd67fccdaJens Frenkel- update CMakeFiles - include inline.h in memory_pool.c - bugfix for vs us sqrt(double)
7f94d3c79Martin Sjölund- Use the configured make command
17721d85bMartin Sjölund- Add MAKE=xxx to the configure script (to be used to change the make version used by OMC)
c5ec63c4bLennart Ochel- bug-fix inside the ringbuffer, because of losing the order during expanding
05ce47c0dAdrian Pop- table data does not have to be monotonous increasing, it can be equal too!
6e30627adMartin Sjölund- Ceval the cref without subscripts if we have variable subscripts
e0885ad6aWilli Braun-fixed compiling issues in SimulationRuntime/c/meta
f9e871e1aMartin Sjölund- MetaModelica: Use C89 instead of C++
7be63b313Lennart Ochel- sync with c_runtime
aba4452f5Niklas WorschechAdded ModelicaTabels from c_runtime to cpp runtime
90316a77fMartin Sjölund- Fixed compilation of util package
f7a407d35Willi Braun-added the forgotten openmodelica.h
99fa31e85Willi Braun- added Makefiles for building every subfolder an own library
4eaabe1cfLennart Ochel- changed default optimization-method for initialization
520b5cceeMartin Sjölund- Moved read_write back to c_runtime as it seems to break things after a make clean
6cd3a9467Martin Sjölund- Use multiple regions for the memory pool
376161084Willi Braun- added TerminateSimulationException class to tables.cpp
eaca23572Martin Sjölund- The memory pool now uses only one buffer for all data
bad8ce57bMartin Sjölund- tables.o should not use odd defines
681b03a52Martin Sjölund- Configure the SimRt/c makefiles
470b349feWilli Braun -added Makefile.in to SImulationruntime/meta
ed9a4d7ccMartin Sjölund- Copy read_write.h to the headers
219575954Martin Sjölund- Fix clean compilation
6d4bfd9daWilli Braun - added updates for new c simulation runtime
b718cec52Willi Braun - added new structure in SimulationRuntime/{c,fmi}. Copy almost all stuff from c_runtime to SimulationRuntime.
aca7f575eLennart Ochelbug-fix for handling initialization with command-line arguments
1a0059f19Martin Sjölund- Moved read_write to Compiler/runtime
5e9628b37Niklas WorschechAdded Idas Solver source code to cpp runtime
ccc702a5eMartin Sjölund- Create temporary functions for all equations as GCC runs a lot faster on this code
d92ec2a01Martin Sjölund- Do not configure with OPENMP as the macro is broken on OSX
3c8b3498aPer Östlund- 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.
91346164cWilli Braun- added new CodegenC for redesign the c_runtime. New directory Simulation/c will use for that. For developing it can used by the flag simCodeTarget=c.
a9d1bd6d1Jens Frenkel- yet another try at making Compile.bat work correctly (adrpo)
36d045b45Niklas Worschechadded Cvode solver source code to cpp runtime
05ffb34c0Federico BergeroCalling function_initMemoryState
40420cbb7Martin Sjölund- Restructured memory pool (it's now an array of pools)
cbbe21ecfAdrian Pop- fix to bootstrapped compiler
ff9527b25Martin Sjölund- translateModel now works more like buildModel
0194570f0Martin Sjölund- Avoid segfault when init-file does not exist
8c56b8956Adrian Pop- YOU WILL NEED A NEW RML FOR THIS: Windows (svn up on OMDev), Linux (svn up and compile or wait to update to a new one). - do NOT die if there is a stack overflow in Inst.instantiateClass, continue on. try this script with the Buildings library: loadModel(Buildings); getErrorString(); instantiateModel(Buildings.Airflow.Multizone.Examples.NaturalVentilation); getErrorString(); 2+3; 5+6; ------------ you will get something like this ----------- SCodeLookup.lookupSimpleName SCodeLookup.lookupSimpleName2 SCodeLookup.lookupInLocalScope Stack overflow! Failing the current function stack chain until the stack overflow signal is caught! "" "Error: Error occurred while flattening model Buildings.Airflow.Multizone.Examples.NaturalVentilation. The compiler got into Stack Overflow!" 5 11 - OMEdit will no longer die (but will not display parts of the model).
7b22ec155Adrian PopInteractive.mo - run all graphical API commands with checkModel, nogen and noevalfunc ON. - merge graphical API handling functions into one.
f738129b7Adrian Pop- logging is not good unfortunately for the soul of the testsuite.
bca75f907Adrian Pop- pushd doesn't understand any string with forward slashes, use cd instead. - add more info to the log files so we can debug a bit if needed. - force just the paths we need and NOTHING else.
d8f21effaAdrian Pop- be consistent with execstat v.s. execStat.
523e3a8dbNiklas WorschechAdded forgotten AlgloopsolverFactory Interface
8d937a027Adrian Pop- update 3.4.5 to 4.4.0 (this might be the problem for the people that get libgmp-3.dll issues).
ff571fc77Willi Braun- FMI-Import: added first FMI import test(really simple) and it works for now only on windows.
a65d9720bNiklas Worschechfix in algloopsystem of cpp runtime for Modelica function calls
c216f8e70Per Östlund- Add crefs from component modifier in Inst.updateComponentInEnv to get rid of some error messages.
1e9dab7d3Martin Sjölund- Fix for rml (prim_once returns the success/failure status, not the value...)
81b004505Martin Sjölund- Parse der(cr) := exp; Inst needs support for this though...
3c2b1dcf3Martin Sjölund- ClassLoader: Do not load a library if a subpackage fails to parse
5bad00091Adeel Asghar- Fix start col for first row.
ba6258dd5Willi Braun- FMI-Import: changed name of the generated file
b9e658156Per Östlund- Fixed stack overflow in IncompressibleFluidNetwork by only updating untyped modifiers in Inst.updateCompeltsMods. - Filter out unique outer crefs in InnerOuter.printInnerDefStr to get better error messages. - Added List.unique and List.uniqueOnTrue.
ebc5d32abWilli Braun- fixed makefile for FMI-export.
0019bda88Martin Sjölund- Parse first token correctly
f0c7fc754Willi Braun- fmi-import: get rid of some warnings
e39bb1444Willi Braun- fmi-import: more fixes, correct indentation, adjust debug informations
154542221Willi Braun- added fix for fmuBoolean to Modelica Boolean
995ec6cf2Willi Braun- fmi-import: fixed some more bugs
ed846cc17Willi Braun- FMI-Import: fixed some more memory leaks
14cd37ad1Willi Braun- FMI-Import: fix almost all calloc calls by swap arguments
3784b12f1Adrian Pop- fflush the log and error messages in c_runtime. (is good for knowing where things crash).
4abc68847Martin Sjölund- Better fix than r10268 (but we keep the debug print disabled)
79bc48354Willi Braun - fixed bug with array with size 1. - uncommented print of communicate status (breaks the testsuite)
e370306e8Martin Sjölund- OMEdit/simulation: Use -port XXXX to send status updates to OMEdit. TODO: Implement this in the GUI (Adeel)
66c9c5332Martin Sjölund- Added preOptModule: residualForm
3643c727fMartin Sjölund- Spelling of SIGUSR1
b1a8e79b6Willi Braun#1641 - added fix for Bug 1641 (constant linear system) write the constant value also as startvalue - added testcase
ae97eb5e1Per Östlund- Fixed infinite loop in DAEUtil.evaluateParameter. - Updated test suite.
782a606e2Per Östlund- Fixed correct type when elaborating the builtin cat operator.
fcf291596Per Östlund- Added balance check for connectors extending a basic type.
5e34f0d61Adrian Pop- re-enable the SCode.DERIVED case in the Inst.instClassdef2 as it gives way better function names (correct environment) and error locations. also, we would have a function name clash in the function tree if we have two short class definitions with the same name, same base class, but different modifiers! - for SCode.DERIVED elaborate the modifiers in the parent scope both for full and partial inst! this fixes the error for derived functions with modifiers. - better location in call to Inst.matchModificationToComponents. - get rid of some commented unused code.
c1abafcd0Adeel Asghar- copy required FMI header files.
827fa0582Niklas WorschechFix for compiler error in SimCodeCpp.tpl for new ode equations structure
d4ebcac45Niklas WorschechExtended cpp template for generating code for non linear systems
8ae91bcb8Niklas WorschechExtended cpp runtime for solving non linear systems
4ff09533aWilli Braun- Added bug fix for algorithms. Not all algorithm outputs are discrete.
c55719265Per Östlund- Fixed stack overflow in HeatingSystem fluid model by replacing Static.buildExpList with List.fill. - Improved List.fill a bit by only checking bounds once, and printing a failtrace instead of using print if the count is negative.
7c32c3f4fMartin Sjölund- Fix clang warnings
b673ae98cMartin Sjölund- Revert previous changes as they cause heisenbugs
abced6f9dMartin Sjölund- Avoid clang warnings and segmentation faults (see r10238)
e50520c8ePer ÖstlundFix for function modifiers: - Added source info to unbound parameter warning in Static.elabCref2, since it doesn't cause any real problems anymore. - Added a case to DAEUtil.bindingExp to use the evaluated expression if it's available. - Commented out the case for derived classes without array dims in Inst.instClassdef2, since it solves some problems and makes the compiler faster. - Added test case mofiles/ModifyFunction1 to test function modifiers. - Updated test suite.
1d2087700Martin Sjölund- Avoid clang warnings...
b409f87f0Per Östlund- Fixed bootstrapped compiler by implementing setLanguageStandard and getLanguageStandard in bootstrapped runtime.
22e50bcbbMartin Sjölund- Fix error kind for COMPONENT_NAME_SAME_AS_TYPE_NAME
32255d671Adrian Pop- do not evaluate functions if we do partial instantiation - handle smooth in Derive.mo (needed for Modelica.Media) - replace constant with binding even if you cannot constant evaluate - BackEnd/BackendDAECreate.mo (fixes to make some Media models simulate) + force inline of record = functionCall(...) in complex equations + handle normal equations in extendRecordEqns (as we have a recursive call) - split function evaluation/generation outside of Ceval.cevalCallFunction to be easier to manage.
e5e4238daMartin Sjölund- Do not rollback the memory pool in external functions as the output still needs to be allocated
fb922206aMartin Sjölund- Makefile parameters should contain the include dirs, not the include itself
ab2cc4cf8Adrian Pop- allow protected constants in functions to be able to compile functions such as Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3b_ph.
3c8db167aPer Östlund- 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.
87267eb17Martin Sjölund- Improved error message
0a920d372Martin Sjölund- Install nls files correctly
1c6205386Per Östlund- Fixed redeclaration modifiers for arrays, i.e. 'each redeclare'. - Implemented SCode dumping of defineunit. - Updated test suite.
173b79077Martin Sjölund- Fix mix-up severity and type for error-messages - Also made a very short message string (only the message itself) for internal messages
d8b24ababMartin Sjölund- Open errLogFile before trying to use it
84159c5f8Martin Sjölund- Fixed profiling report title (TITLE was not that great...)
0d7e17ab1Martin Sjölund- Moved setClassComment to ModelicaBuiltin.mo
cb6673ebeMartin Sjölund- Fix last commit (compile error)
457797c6fMartin Sjölund- Added loadFileInteractive{,Qualified} to ModelicaBuiltin.mo
729013309Martin Sjölund- Refactoring
2675f8ce1Martin Sjölund- Moved getPackages() to ModelicaBuiltin.mo
ea58f1211Martin Sjölund- Moved getClassNames() to ModelicaBuiltin.mo
8271ad7dfMartin Sjölund- Moved get/setSourceFile to ModelicaBuiltin.mo - Slightly changed their output (from Ok/error to true/false and filename to "filename") - Updated OMEdit to consider these changes
2bc3b27fdMartin Sjölund- parseFile defined in ModelicaBuiltin.mo - List OpenModelica package in OMEdit
8e14aeb2eMartin Sjölund- listVariables now part of ModelicaBuiltin.mo
563c8387eMartin Sjölund- Don't strcmp NULL-pointers
7b0e7fe00Adrian Pop- chain the redeclares.
e6403a62fWilli Braun- fixed small bug in calculate analytical jacobian
1a3f8529fPer Östlund- Add info to some error messages in Ceval.
274f961c8Per Östlund- Allow unknown array dimensions for now, since it fixes some problems with Media and Fluid because we instantiate stuff without modifiers.
b4ac1924bPer Östlund- Simplified Inst.updateComponentsInEnv2 a bit.
58636bc6dMartin Sjölund- Fix for bootstrapped compilation
222b369eaMartin Sjölund- Fix binaries directory of FMU to linux32,linux64 as in the FMI spec. We use the openModelicaPlatform() name on unspecified platforms (i.e. darwin-x86_64)
cccd4625bMartin Sjölund- Use log-scale for measureTime=true
771a3d8a9Martin Sjölund- Fixed typo
289d9975aMartin Sjölund- Avoid some more double-free
636f8ef0eMartin Sjölund- Allow external objects to pass through simcode
af7d25e06Martin Sjölund- Bootstrapped compilation
692de30d5Martin Sjölund- Avoid some double free so we don't cause segfaults
33e3a2b17Martin Sjölund- Call fmigenerator directly from ModelicaBuiltin.mo
27114a7a5Martin Sjölund- C89 FMI compatibility
a2cad9addMartin Sjölund- Fix some compilation warnings
733f3851eMartin Sjölund- Only copy fmuWrapper.h to the include directory - Moved some header includes around to avoid including unnecessary headers
1da1595d7Adeel Asghar- Copy required FMI header files.
8fd3f97d8Martin Sjölund- New getMessagesStringInternal() API. Example session :) skew({1,2,"",3}); errors:=getMessagesStringInternal(); size(errors,1); // 2 currentError:=errors[1]; currentError.info.filename; currentError.info.columnStart; currentError.message; currentError.kind; currentError:=errors[2];
038857d9aPer ÖstlundFluid fixes: - Better handling of redeclare modifiers in SCodeDependency. - Updated DrumBoiler tests and moved them to working tests.
77c7ea13bAdrian Pop- got rid of some of the warnings in Compiler/runtime.
1df805c2fWuzhu Chen-- fixed variadic arguments compatibility
bbf77e724Adrian Pop- missed one
e310e5ebcMartin Sjölund- Refactoring of Error.mo: Use uniontype/enumeration to send message type/severity instead of strings
43d9b4a42Martin Sjölund- Added draft of better getMessagesStringInternal API (less client-side parsing)
7cd5f1b04Martin Sjölund- Moved functionODE_residual to the runtime instead of templates (compile once, link many times)
d2ad9d91eMartin Sjölund- Disable Werror
cb745f392Martin Sjölund- Force generation of headers before trying to compile fmi
03f37fb71Adrian PopFixes for bug: #1637 - commented out the first case in Static.makeIfexp (thanks to Martin for pointing it out). case (cache,env,e1,DAE.PROP(type_ = (DAE.T_BOOL(varLstBool = _),_),constFlag = c1), e2,DAE.PROP(type_ = t2,constFlag = c2),e3,DAE.PROP(type_ = t3,constFlag = c3),impl,st,_, _) equation true = Types.semiEquivTypes(t2, t3); c = constIfexp(e1, c1, c2, c3); (cache,exp) = cevalIfexpIfConstant(cache,env, e1, e2, e3, c1, impl, st, inInfo); then (cache,exp,DAE.PROP(t2,c)); - all tests go.
1233674e9Adeel Asghar- Output Directory can be specified for importFMU.
5fe1e82c0Martin Sjölund- OMEdit: Check getErrorString() after loadModel()
8ca6eb2e8Adeel Asghar- Don't append errors to the error file. Always write the current import errors.
b6a6c1bbfAdeel Asghar- Changed fmuWrapper.a to libfmuWrapper.a - FIX fmi compilation on windows
4a6f96809Adeel Asghar- don't return error for default case because then the API will fail.
8463e0affAdeel Asghar- getLastError() is wrong its GetLastError.
f0d4f62e0Martin Sjölund- Some fixes to equation index of distributed systems
6598124ceMartin Sjölund- Some fixes
7edea585cMartin Sjölund- Use unzip
b54a03559Martin Sjölund- FMI fixes
4489df75cMartin Sjölund- FMI fixes (use .a-files)
b7c50d473Martin Sjölund- Added +d=openmp, which slows down simulation in most cases (at least on 2-CPU systems)
3c35df178Martin Sjölund- Fixes to compile using clang
f56a2b590Martin Sjölund- Fix moGenerator compilation errors
0a7336852Martin Sjölund- Remove unused
659511db5Wuzhu Chen- Some bugs fixed in moGenerator, unzip cannot handle recursive directory creation - Remove excessive amount of warning messages
b61cecd68Martin Sjölund- Refactoring
b52a7b4d9Willi Braun- added new solver: Dopri5. An implementation with step-size control and dense output by Thomas Schmidt @ FH Bielefeld.
8eb97e06aAdeel Asghar- breakprocess section in Makefile.common - step to create BreakProcess.exe
33d8fa6e3Per Östlund- Fixed stack overflow in ControlledTanks fluid test by qualifying redeclares properly in SCodeFlatten. Also gets rids of some other error messages.
10ceab47cMartin Sjölund- Disabled collapseIndependentBlocks by default as the whole backend+code generation now handles independent equation systems
0e9b0ae9cMartin Sjölund- XMLDump now working for independent eq.systs
f156cfecaMartin Sjölund- Some fixes for indep.eqsyst
9cb4f58dcMartin Sjölund- Fix for createParameterEquations when not collapsing indep.eqsyst
e0e66730fMartin Sjölund- Reset tmp ticks more often in generated code
9cd410a2aMartin Sjölund- Do not generate duplicate statements for functionAliasEquation when partitioning independent equation systems
692c5ccfcPer Östlund- Fixed record component assignment in CevalFunction. - Removed nogen and noevalfunc flags from fluid tests that don't need them. - Removed some unused code.
cd7b1fa1bMartin Sjölund- Adding Modelica 3.3 draft spatialDistribution to the builtin env
0965a5ca3Martin Sjölund- Fix bootstrap comilation warning
3e9703061Martin Sjölund- Added Modelica 3.3 (draft) operator getInstanceName()
86a21e464Martin Sjölund- Added some documentation
af2b8548dPer Östlund- Implemented RTOpts.setDebugFlag for the bootstrapped compiler.
4705f66afMartin Sjölund- Fix POSIX compilation
19a95dab9Martin Sjölund- Include malloc
1e057ab63Wuzhu Chenlog file generation, platform dependency handling, more functions for xml parsing
7c3c183d8Martin Sjölund- Use ModelicaBuiltin.mo to describe skew
9fc8fde9aMartin Sjölund- Added cross to ModelicaBuiltin.mo
aea416c98Martin Sjölund- Force nogen for Interactive.getComponents
ad6d3aea5Niklas Worschechfix in cpp template for generate matrix code
12ffd6becMartin Sjölund- Remove uesless config lines
90c935284Martin Sjölund- Reduce the number of warnings clang gives about the GC macros
1084a94beMartin Sjölund- Added support for quoted identifiers in functions
6a526fc1fMartin Sjölund- Removed the Compile script on Unix platforms (call make directly)
160e54254Martin Sjölund- Fix C++ compilation error (it's ok to call functions with too many arguments in C apparently)
7f7316ba7Adeel Asghar- step to create fmigenerator.exe
96affb022Adrian Pop- disable instantiation as basic type for anything other than type and connector (causes 1 test to fail). - some fixes for expandable-expandable connection (should be the union of all of them).
0fd12a150Adrian PopFixes to FMU (mingw commands conflicting with Windows commands) - force cmd.exe to choose mkdir.exe instead of mkdir - use && instead of ; for command separation.
37722d687Adrian Popbug #1159 - do not use /B in Compile*.bat as Windows XP will crap out - delete .log .exe .dll when compiling.
fd1d479c9Martin Sjölund- Use System.getExeExt instead of hard-coded values
b401db03bAdrian Pop- fix compilation on Windows. - delete also .log to be sure is actual.
e6528fcc5Per Östlund- Fixed stack overflow in Inst.updateComponentInEnv for some fluid models.
58380b828Martin Sjölund- Remove file before compilation starts and check that it exists after
55b2ec3afPer Östlund- Relaxed the check for cyclic dependencies in Inst.instElementList, to avoid false positives when if-equations are used.
02a5d558bPer Östlund- Fixed elaboration of stream operators on empty arrays, which fixes flattening of some fluid models.
8d49c6a27Martin Sjölund- Removed some unused functions, fixed some compiler warnings
db7d701b0Martin Sjölund- Removed some old stuff from Builtin.mo
72f94538eMartin Sjölund- Implemented linspace in ModelicaBuiltin.mo
c7c8a9a09Martin Sjölund- Added outerProduct as external "builtin"
c351b69d6Adeel Asghar- minor fixes of FMI import
9768d6b8dAdeel Asghar- SIGUSR1 not really defined in windows. - use systemCall instead of spawnCall. - Removed the FMI bin and include folders. Not really needed. - the fmuModelica.tmp is used as fmuModelica.h. check the make file.
062132f18Martin Sjölund- Removed .substring from the Builtin env
0d49175aeMartin Sjölund- Generate header from template
cc0cb7779Martin Sjölund- Set LF props
cec9b11e3Martin Sjölund- Removed elabBuiltinRem elabBuiltinMod
74f12aa48Martin Sjölund- Removed elabBuiltinDiv
dc9ce930dMartin Sjölund- Moved abs() from Builtin.mo to ModelicaBuiltin.mo
26182070bMartin Sjölund- Removed boolean() from Builtin.mo as it is not a legal Modelica call
511f0b789Martin Sjölund- Implemented function overloading
4e36173b9Martin Sjölund- Add dumping of overloaded functions
d35462f01Martin Sjölund- Fix for vectorized delays
5be56ad0cMartin Sjölund- Some more compiler warnings
865b1f3bcMartin Sjölund- Fixed some compilation warnings
abbd90fcbAdeel Asghar- using unzip instead of 7z.
983ae1fe7Martin Sjölund- Fix for vectorizing delay() calls
a4a6f5997Martin Sjölund- Some fixes for FMI import to compile under UNIX
2bf3a71b4Martin Sjölund- Corrected linking order
b89a5e2bcMartin Sjölund- Fix OSX compilation
e32c441e5Martin Sjölund- Make USR1 print some simple simulation status to stdout
e7e92831cAdeel Asghar- FMI Import updated. - Added the new importFMU API. - fmuWrapper.o is removed. - fmi section is added to the makefile.Common. - build fmi in order to get the executable and required files.
c9cbf43ecPer Östlund- Remove Util.stringDelimitList, since it's builtin now.
d40243659Martin Sjölund- Re-enabled the check for functions defining all slots - FunctionArg now stores the default expression in it so we can use it very fast
8707c5b2aMartin Sjölund- Added List.selectFirst1
70c8c9711Martin Sjölund- Fix bootstrapped compilation
2c9c7cb91Martin Sjölund- Improved the error for imbalanced systems (prints all of them instead of only first)
82a6ca0c4Adrian Pop- for no GC use macros so we don't waste C calls for nothing. - you might need to do make clean for this to work.
b46a25160Adrian Pop- media fixes (allow instantiation of partial functions for now) until we can check if a class is basic type before we do the damn instantiation - we cannot fill all slots if the function has extends in it so SCode.getElementName will fail, so don't check if ALL the slots are filled in Static.elabCallArgs2 - most of Media models flatten now, we still have to test them a bit - we have one failtest in plus now due to these changes.
64af87d2eAdrian Pop- use Types.elabType instead of Algorithm.getTypeExpType - use match instead of matchcontinue in ClassInf.getStateName
80e91894ePer Östlund- Changed the error messages from constant id + lookup list into just message constants.
83222b18aPer ÖstlundFix for bug #1627: - Pass the subscripts correctly in elabCrefSubs so that the bounds checking works correctly on qualified subscripts.
346ba57a6Martin Sjölund- Fix extraPolate
9d8abbd81Martin Sjölund- Some compiler warnings
c5aba3341Martin Sjölund- Changed the extraPolate macro so we don't get warnings because variables contain $-signs
3ba4b5ca8Martin Sjölund- README update
b36be1c17Martin Sjölund- Allow compilation without Java
97412445fPer Östlund- Updated the OMC usage text.
e26d09a47Martin Sjölund- Added ceval of stringDelimitList
ed85bf655Per Östlund- Allow connectors to inherit from records. - Removed the ModUtil package, because it mostly contained duplicates and unused functions, and had a confusing name. The only three functions that were used (pathEqual, innerOuterEqual and pathStringReplaceDot) have been moved to Absyn instead.
43c3ef904Adrian Pop- getting the testsuite closer to 100% - more fixes are on the way for redeclares.
ba4a7a809Adeel Asghar- New visualize2 API. - writes the file .visualize with the information about the visualization objects. - Later it needs to be extended to call the visualization tool and then pass the simulation result file and .visualize to it. - removed an extra print from getElementName. - OMEdit: the modelbrowser window take less area now.
8cde145ceJens Frenkel- remove unused parameters from functions
0a8d302a3Martin Sjölund- Patternm: Only output a single error for patterns
160a956d8Martin Sjölund- Added boxptr_stringDelimitList
b44374d9cPer Östlund- Added check for components with the same name is it's type specifier. - Enabled testcase mofiles/Lookup8.
0bd84d81aMartin Sjölund- Added missing function boxptr_listDelete
6f8d93557Adrian Pop- WARNING: NEW RML is needed for this revision! Update your OMDev for Windows and RML for Linux. - stringDelimitList is now a runtime function.
94fea1212Adrian Pop- small typo fix
6790a17ffAdeel Asghar- Information about AccessControl plugin.
c6a8a6264Adrian Pop- SimCode.mo do not use listReverse on libs as List.union does not reverse the list anymore. this is needed to fix the wrong library order for linking. - update to version 1.8.0
a749d6b67Wuzhu ChenFMU_Import: some files missing
01475ee72Wuzhu Chenprototype, refactoring still in process
8a6cd47a7Per ÖstlundFix for bug #1621: - Handle enumerations inside modified models correctly.
70f68a650Per Östlund- Added test validation tool, useful to check tests when equation order changes.
923f0c08ePer Östlund- Changed the error message for public non-formal parameters in functions to be understandable without reading the specification.
c3a0e9ebbPer Östlund- Moved list functions from Util to a new List package.
f645074d0Jim NutaroRemoved dead code from the adevs backend.
2b1497ffaMartin Sjölund#1623 - Produce a good error-message when a pattern variable is not found in the local scope
05d8fa755Adeel Asghar- Fixed the line conversion problems.
9b1171e75Jim NutaroCode generator works again. Still needs to have unnecessary code removed.
7a361e34aJim NutaroFixed issue with lambda, still working on other problems
f465197ccMartin Sjölund- Some fixes for indep.eq.syst
26a92ba8dWilli Braun - replaced the calculation of the jacobian by a fast column-wise method
d0ee53db8Martin Sjölund- Don't inline functions for clang to work
014bb8429Martin Sjölund- Added builtin function stringDelimitList to MetaModelica
0b034fd3cMartin Sjölund- Some bugfixes for indep.eq.syst
70fdddd71Martin Sjölund- partitionIndependentBlocks now succeeds all the way to codegen. Will need to check if it produces the correct result, too
3fddbaef7Martin Sjölund- Force #endModelicaLine at the start of match-expressions for the debugger
9ef59e2c3Martin Sjölund- Builtin functions no longer use the weird _rettype crap
ff88ecaccMartin Sjölund- Parallel eqsystems
5e18b957cMartin Sjölund- getPathedClassInProgram now also looks for builtin classes (making MDT display builtin functions in any project)
ac416a742Martin Sjölund- Fixed codegen for if-expressions of array crefs
ba37dd0e5Martin Sjölund- Skip writing huge comments for each rhs in generated code
5b6ab9490Martin Sjölund- Some more changes for indep.systems
6a10ec02aMartin Sjölund- Fix convert_lines.pl so we can debug files that have digits in them...
c77d682a6Martin Sjölund- Added API call reopenStandardStream(OpenModelica.Scripting.StandardStream.stdin,"program.txt"); for MM course + This way, we do not need to redirect stdin in eclipse
1a251ee11Adeel Asghar- change the standard streams buffer size.
8915aefc9Martin Sjölund- Made changeStdoutBuffer run also on Linux
71828982bAdrian Pop- update to MinGW gcc 4.4 (use -static-libgcc to not require additional gcc .dlls) - SCodeUtil: check for duplicates separately in absyn and loaded builtin functions (to allow MDT to load the builtin files without issues).
d5cbf060dMartin Sjölund- Some more refactoring
ae112f623Martin Sjölund- checkInitialSystem fixed for indep.systems
5fd8b44e5Adrian Pop- added stdio.h for gcc 4.4 compilation.
405f3aeb9Martin Sjölund- SimCode.generateHelpVarInfo now works for indep.systems
15b4e6944Martin Sjölund- The createSimCode handles independent eq.systems a little better (still not close to done)
7e7490d7cMartin Sjölund- Some additional changes for independent eq-systems in SimCode.createSimCode (needs larger changes later on)
bfbfaff31Per Östlund- Added check for public non-formal function parameters, and fixed the compiler code and test cases.
c65a89ca4Martin Sjölund- matching,index-reduction and past-opt modules now handle independent eq-systems
d2369cca8Per ÖstlundFix for bug #1619: - Implemented support for boolean ranges.
115cd2ebcMartin Sjölund- Refactoring: Started using the BackendDAE.MATCHING for sending assignments/strong components in some places
f1f06d355Per Östlund- Cleanup of tests in mofiles. Activated some working tests and deleted some invalid/redundant tests.
f61b7df1bPer Östlund- Changed argument order of Util.listMap01 to conform to the map(list, function, extra args) convention.
f4cc8a791Per Östlund- Removed the scalar field from DAE.MATRIX, because a matrix should always contain scalars.
2001c11b5Martin Sjölund- Minor refactoring, adding field for storing matching information in each eqsystem
fab1baa33Per Östlund- Fixed some issues with elaboration of the matrix operator. - Changed Static.elabMatrixToMatrixExp to only convert 2-dimensional arrays to matrices. - Fixed some type issues and added type checking of empty arrays. - Added Types.verifyExpressionType which can be used to check that the type of expressions is correct. - Moved Epidemics1 and DimConvert from failing tests to working tests in mosfiles, and corrected some invalid tests.
3ab68877bMartin Sjölund- Fix bootstrap compilation
d272489e0Willi Braun - get rid of tabs in source code - corrected indentation
338855a0fWilli Braun - revised generation of jacobian matrices - now they are generated column-wise(speed up while compilation) - expand BackendDAE with a type - add some debug flags for jacobians in dassl
1dcb9f567Martin Sjölund- Refactoring of matching/index reduction to take EqSystem/Shared as input instead of the whole DAE
d77c79a6bMartin Sjölund- Fix for exptype of crefs in connections of composite names
652905155Adrian Pop- updates to FMI import (from Wuzhu Chen)
b193e6386Martin Sjölund- Better error-message for createEqSystem when the system is imbalanced
3b8711424Martin Sjölund- Fixes for bootstrapping
80b1a83abAdrian Pop- added the first draft of FMI import (from Wuzhu Chen)
fd6be1c16Azam ZiaFixed FMU makefile.
4f1a8f049Lennart Ochel- revised initialization -- including full support of start-values -- including scaling
6a8212703Martin Sjölund- Do not generate code for known external C function like Modelica.Math.sin
b88c1a217Martin Sjölund- Minor performance increase by reordering modules
38fbc3d38Willi Braun#1617 - workaround for bug 1617 restart matching if it fails after dummyder method has applied and matching is wrong.
8f1cbdd37Martin Sjölund- Added support for collapseIndependentBlocks, made the (default) preOpt modules support this and enabled the partitioning of equations by default
c619bed04Niklas WorschechFix in cpp template for accessing array elements
9e3bf3caeAdrian Pop- set properties - small typos fixed
4e999c5daAzam ZiaCorrected FMU Makefile.
b81bca261Willi Braun#1614 - added fix for Bug 1614( delay with events) - added testcase
89aead2d4Niklas Worschechfixes in cpp template for Modelica functions and arrays
345db746dWilli Braun - added small fixes to isDiscreteExp
28ea55c3bWilli Braun- fixed some bugs in event handling - changed debug output for events fprintf
93295ed70Martin Sjölund- Added check for unused variables in the partitionIndependentBlocks optimization module and enabled it by default (it simply does these checks for now; it does not partition the system)
fbdf37d43Per Östlund- 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).
3c1fa652dMartin Sjölund#1609 - Fixed reductions that contain a constant if-expression
32ac96ce3Martin Sjölund#1607 - Use a nominal type system for external objects
b34aab415Per Östlund- Added check of function variable types.
1a4e8055dMartin Sjölund#1610 - Rewrote the ANTLR parser to use END_IF END_FOR, etc tokens in order to produce sane error-messages + Note: 'end /*EVIL COMMENT*/ if' will no longer work due to lexer conflicts
79c5c2416Per ÖstlundFix for bug #1601 - Implemented support for using Boolean as array dimension.
85560f4a8Jim NutaroCorrected a save/restore issue in the adevs backend
a64bd948bWilli Braun- added sample events support for FMU export
35b3e52feAdeel Asghar- changeStdoutBuffer, Mingw based gcc has block buffer policy for stdout. we need to change it. Windows crap!!!!
e223f613fPer ÖstlundFix for bug #1104 - Report error on recursive definitions.
bbf897adfPer ÖstlundFix for bug #1605 - Report error for duplicate redeclarations in the same scope.
e390e8e06Martin Sjölund- Fix to allow reading from result-files given an absolute path
dcdf16c8fWilli Braun - fixes for fmu export. Event-based model like BouncingBall should now work. Right now only time events are missing like sample.
97eaef03cPer ÖstlundFix for bug #1602 - Fix vectorization of parameter arrays with slice subscripts.
960a23984Martin Sjölund- Do not allow enum(A) to be assigned a value of type enum(A,B)
2536ca02dWilli Braun- changed fmu export for event handling - added bug fix in event handling - removed one old unsed variable
362a6c725Per Östlund- Fixed elaboration of scalar to work on any array, not just 1- and 2-dimensional ones.
956eb40f7Per ÖstlundFix for bug #1598 - Implemented elaboration of matrix function.
51544515aMartin Sjölund- Backend refactoring: Initial Equations stored with shared data (as they are not handled in the same way as the ordered eqs)
019df3a1eJens Frenkel- prefer as alias connector variables and avoid record or array elements, the result equations are much better readable
efb606424Martin Sjölund- Some minor partitionIndependentBlocks changes
eccb9df54Martin Sjölund#1597 - DAE.MATRIX refactoring (it now has a Boolean scalar instead of storing this with each element in the matrix). The matrix was also renamed from scalar to matrix as this is more appropriate.
f12ddbeacPer Östlund- Reimplemented connection handling to be more efficient.
7b2e829e7Jim NutaroFixed problem in the linear system solver for the adevs backend
bcd894846Martin Sjölund- Removed support for sum(scalar) as it is not valid Modelica
36e007de3Martin Sjölund- ndims() now always returns constant variability (as it always returns an integer literal)
48a0d39feMartin Sjölund- Additional sum fixes
14c8dc10bMartin Sjölund#1595 - Simplify sums better
d618069fdAdeel Asghar- getOptionValue is changed to isOptionNone.
de132dc4cJim NutaroFixed initialization problem in adevs backend
6ac62c65aMartin Sjölund#1372 - Fix codegeneration for Modelica.Math.Matrices.norm (tuple subscript among other things) + Added testcase from the bug report
d46b225e1Martin Sjölund- Added runtime function identity_alloc_real_array
5c71435abAdeel Asghar- getOptionValue to return NONE or SOME based on option's value.
a4862ff93Martin Sjölund- Fix some F77 code generation issues (char* vs. char**, etc)
e1cb93735Martin Sjölund#1591 - Don't check if a singleton record in a uniontype has the correct CTOR; we can just assume they match up
ae1c9cd57Martin Sjölund#1595 - Do not be overly optimistic about the number of dimensions in elabBuiltinSum (now works also for 3-dim arrays)
d3e8bf293Martin Sjölund#1594 - Fix types when simplifying arrays/matrices with 3 dimensions
ca0858f1bMartin Sjölund- Add template error if vector() calls remain
00ef3d822Martin Sjölund- Removed unused code
4d98cc020Martin Sjölund#1591 - Removed calls to typeOfValue for crefs (ceval does *not* change the type)
f134901a7Martin Sjölund- Improved crefVectorize (data[:].b)[2] => data[2].b instead of previously (wrong) data[:].b[2]
62fd636dcJim NutaroSet number of interpolation points for the adevs backend to the recommended number
1bde1e311Martin Sjölund- Fixed potential loop with simplifyAsub
9e3b3af5dMartin Sjölund- Remove commented code
40acb4bb8Martin Sjölund- Do not do unsafe operations like saying ceval arr[i] = arr just because we are in a for-iterator scope...
0b1b5b332Martin Sjölund#1591 - Don't convert a value into a type just to get its dimensions
27c139951Adeel Asghar- getTypeOfAny modified for record type. Instead of returning the complete record it only returns the record name. - getRecordElementName to return specific element name on request.
1b7761ceaJens Frenkel- us -O2 by default for FMU
b036421dbJens Frenkel- bugfix fmu - check sim_result before calling - clean object files in fmu.makefile
a8b3ec81cMartin Sjölund- Backend: Trace expanded derivatives
d88b51ed3Jens Frenkel- c-interace for fmu
0b473d49aJim NutaroUpdates to Adevs template
96df5232aJens Frenkel- call main_initialize from fmu::fmiInitialize - generate modelname.def for dll generation to export only necesary functions - generate for fmu only modelname.c modelname_record modelname_functions - small changes to simulation_init and solver_main to avoid linker problems
68de43136Martin Sjölund- MetaModelica: Create a new scope when inst'ing a metarecord
828a4febaMartin Sjölund- Backend refactoring: Moved Inc.Matrices into the EQSYSTEM (it's passed with the dae instead of extra arguments now)
2f1855c74Martin Sjölund- Add support to print zero-length arrays
d379a94d8Martin Sjölund- BackEnd: Refactoring
bd7434051Martin Sjölund- Removed now unused linear system macros
793add88eMartin Sjölund- Linear equation systems are now allocated on stack instead of the memory pool
d90df7d81Martin Sjölund- BackEnd refactoring
f3ed07bf6Martin Sjölund- Refactoring
73c24ebf4Dongliang Liupdate cpp template
f39e6905dMartin Sjölund- Backend refactoring
173cc05bfDongliang Liupdate cpp template
8034f362dMartin Sjölund- Refactoring
8bc8b7cafJens Frenkel- check allocation of Samples in initSample - do not use large number of simulation time in fmu, causes error in allocation Samples in initSample
183a19ae7Jim NutaroAdded bound_params function to the adevs backedn
d7684500bAdeel Asghar- removed unused functions. - fixed bootstrapped compilation for windows.
eb130e4e0Jim NutaroMore work on automatic intialization for the adevs backend
4bbd5941bMartin Sjölund- BackEnd refactoring: Grouped the common fields in the DAE into a single uniontype to ease sending only these to functions without tuples, multiple inputs, etc
f79a08871Martin Sjölund#1590 - Correct truncation on 64-bit platforms
4eac2fbd6Martin Sjölund- BackEnd refactoring: Now uses list of equation-systems instead of only one - No optimization module, etc can handle this yet (only lists of length=1), but this will change soon enough
b0a15bc40Jim NutaroAdded automatic initialization to the adevs backend
c282f9660Martin Sjölund- Backend refactoring of ordered vars/equations
c35b42df0Martin Sjölund- boxptr_arrayGet
50509fa0dMartin Sjölund- Fix comment for removedEqs
3f87492bdMartin Sjölund- Fix compilation using real C-compilers
3a8bbf979Adeel Asghar- getNthListItem function to return the particular index value of a list.
5b58e020cAdeel Asghar- getTypeOfAny function to check the datatype. - lisCount function to return the size the list.
e15c17ef9Martin Sjölund- Removed duplicate line (same function ran twice)
dba7b34d8Martin Sjölund- Unused pattern
e5d81e8cfMartin Sjölund- New preOpt module stub: partitionIndependentBlocks + Finds independent blocks of equations (and does nothing with them except prints a pretty dump if more than 1 block was found)
262a3bc55Per Östlund- Fixed compilation of bootstrapped compiler.
378877d6eMartin Sjölund- Util.listContains -> listMember, etc
ce64bda92Martin Sjölund- Mark ceval'ed parameters as final
3332e62e2Adeel Asghar- OMEdit connector types updates. - Users guide updated with new features of OMEdit.
24cd6c5d0Jens Frenkel- fmu: replace . with _ in MODEL_IDENTIFIER
9d4208c82Martin Sjölund- Also return the updated cache in elabAD2...
e4ed7fd9bMartin Sjölund- Use updated cache in elabArrayDims2
76587ad8cMartin Sjölund- Renamed the SimCodeDump target to Dump
3d74a8e01Martin Sjölund#1503 - Optimize elseif statements in the traversal
9be4ddfbeMartin Sjölund#1503 - Optimize if-statements a bit when traversing the DAE
dede75fc9Martin Sjölund- Indentation
8189f9584Martin Sjölund- Fix OSX compilation using macports gcc
0fe2bee22Martin Sjölund- changeToTempDir now tries to execute the correct path; full path names returned by simulate() except when running testsuite
e55033d3cMartin Sjölund#1407 - OpenModelica extension: Functions now accept "parameter input" and "constant input", which simply requires an argument to be a parameter/constant expression
3bfbff050Martin Sjölund- Some fixes for loading SimpleVisual
c49129381Martin Sjölund#1407 - Added DAE.Const to DAE.FuncArg - To be used to check variability of input expressions (needed e.g. for the sample() operator)
25c2a8889Martin Sjölund- Removed unused constants
9b214bb34Martin Sjölund- Configure with static Coin/SoQt
aa65adb35Martin Sjölund#1420 - min({time,...,time}) = time
703d525c7Martin Sjölund#1420 - Share constant literals in generated simulation code
bd7926d40Martin Sjölund#1420 - Added initial support for sharing array constants (stored as pointers instead of being constructed at each reference) + Currently only done for called functions, but will be extended to simulation code
05abc5e7fMartin Sjölund- traverseExpTopDown: Handle DAE.PATTERN
33fb64c02Dongliang Liupdate cpp template for modelica function part
d9bb936d8Martin Sjölund#1588 - Avoid putting crefs to empty arrays in the flat Modelica
8651ec988Willi Braun - changed BackendDAEUtil.calculateValues to reduce Backend compile time - fixed small bug from r9599
ca19e212dMartin Sjölund#1587 - Fix codegen for allocation of 0-length boolean array
5e9228d06Martin Sjölund- Error-handling
8e5177554Willi Braun#1584 - simulation terminate now if non-linear systems are solved wrong
8d824b737Adeel Asghar- API CHANGE for getNthConnectionAnnotation. It was only working if connection annotation starts with Line primitive, but now it will return the list of all annotations. ------------------------------------------ - Test (see new output below): ----------- test.mos --------------------- loadModel(Modelica); getErrorString(); getNthConnectionAnnotation(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.fullRobot, 6); getErrorString(); getNthConnectionAnnotation(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.fullRobot, 9); getErrorString(); adeas31@IDA-LIU085 /c/OpenModelica/trunk/build/bin $ omc.exe /c/TestModels/test.mos true "" {Line(true,{0.0,0.0},0,{{-5.0,35.0},{20.0,35.0},{20.0,14.5},{33.5,14.5}},{0,0,0},LinePattern.Solid,0.25,{Arrow.None,Arrow.None},3,Smooth.None)} "" {Text(error), Line(true,{0.0,0.0},0,{{-80.0,-10.0},{-79.0,-10.0},{-79.0,-15.0},{-62.5,-15.0},{-62.5,-45.0},{-25.0,-45.0}},{255,204,51},LinePattern.Solid,0.5,{Arrow.None,Arrow.None},3,Smooth.None)} "" ------------------------------------------ - The output shows Text(error) because OMC was unable to elaborate graphics expression of such kind :: connect(controlBus.axisControlBus2, axis2.axisControlBus) annotation ( __Dymola_Text( string="%first", index=-1, extent=[-6,3; -6,3]), Line( points={{-80,-10},{-79,-10},{-79,-15},{-62.5,-15},{-62.5,-45},{-25,-45}}, color={255,204,51}, thickness=0.5));
ad14f12f1Martin Sjölund- Spelling error not caught by RML
e577801daWilli Braun - added bugfix for dassl tolerance - added relative comparison for testsuite
9a3ec0019Martin Sjölund#1447 - Vectorize calls with one foreach argument, even if its dimensions are unknown
8e8159183Jens Frenkel- update dynamic state selection
719afa259Martin Sjölund#1583 - Fix codegen for asubs of if-expressions
3e96aaeeaMartin Sjölund#1582 - Don't ceval ranges that are not constant
f9e6d6718Per Östlund- Removed cref filter argument in call to Inst.instClassIn in Lookup.lookupVarInPackages. This makes the whole test suite ~35% faster, and some media tests ~97% faster. - Updated test suite.
182730c39Martin Sjölund- Configure fix
5819dfd08Martin Sjölund- Better error message
3a509ada5Martin Sjölund- Make searching for rml.h simpler
adfb3dc12Martin Sjölund#1562 - Some F77 fixes
1c60eb9a6Martin Sjölund#1580 - Type-check fill(), just in case someone wants a String[:,:] as array dimension :)
8cb721172Dongliang Liupdate part of Modelica function in cpp template
fffbb3eccMartin Sjölund#1579 - Simplify cast(fill(1,...)) => fill(1.0,...)
4c31b5e03Martin Sjölund- Added fill_alloc_real_array
0988891b3Martin Sjölund- Added simplify rules for the cat() operator
15ec366e5Martin Sjölund- Fix type of 2D-matrix integer matrix that is type-converted to a real matrix with first dimension of unknown size
bfafe339fPer Östlund- Fixed bootstrapped compilation.
3e52b7228Adeel AsgharNew README-BUILD-RELEASE-NSIS.txt file.
90ca7f268Jens Frenkel- clean up code for dynamic state selection (add comments, remove unused code, change function names)
b0db4ba77Martin Sjölund#1578 - The cat() operator now does basic type checking :)
7206d4dafMartin Sjölund- Added preliminary support for type-checking dimensions with e.g. size-expressions - This is not checked due to MSL not adhering to all rules :)
a031d7dadJens Frenkel- improve dynamic state selection
04b57c47eDongliang Liadd list for constant variables; update cpp template for arrays
8f061bdccJens Frenkel- handle vars with StateSelect.prefer as states
77883d13fMartin Sjölund- Added boolean array fill function
a75415cb8Martin Sjölund- 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]
23c26141eMartin Sjölund#1576 - BinTree update using hashing
d42e30ecbJan SilarSimCodeCSharp.tpl - changes to zeroCrossing template - the domain zc approach
c8f688095Martin Sjölund#1574 - Fixed indexing using non-constant subscript in simulation context - Also, made this fast by indexing the double* directly instead of creating an intermediate array+vararg addressing
c4986d003Martin Sjölund- Fix for deleteConnection where the equations have subscripts
9db2da6b0Jim NutaroCompleted (I think) the support for when clauses
523077eecMartin Sjölund- Tail recursion
ee3d89b58Martin Sjölund- Tail recursion
08f4798d3Jim NutaroMore work on when clauses for the adevs backend
372af652aAdrian PopFix bug: #1538 -------------- - API CHANGE for getComponentAnnotations (see new output below): ----------- ann.mos ----------- loadModel(Modelica); getErrorString(); getComponentAnnotations(Modelica.Blocks.Sources.RealExpression); getErrorString(); getComponentAnnotations(Modelica.Blocks.Sources.IntegerExpression); getErrorString(); getComponentAnnotations(Modelica.Blocks.Sources.BooleanExpression); getErrorString();
6c16ff171Jim NutaroMore work on when clauses for the adevs backend
13df74781Jan SilarSimCodeCSharp.tpl - case NEQUAL added to daeExpSimRelation
fc7632f13Martin Sjölund- PartFn.elabElements tail recursion
a69084ec4Martin Sjölund- Tail-recursive listMap3
49b0dfd6fMartin Sjölund- Reverted part of r9497 as it does something funky with the bootstrapped compiler
c5d445e06Jim NutaroStarted work on support for when clauses in the adevs code generator
fa1f725f8Jan SilarChanges to SimCodeCSharp.tpl - templates daeExpRelation and daeExpSimRelation.
e7ea55090Martin Sjölund- Code generation: Create an array of (void*) for temporary boxed types - This should speed up garbage collection a lot, especially if the runtime is rewritten to store (void*,size_t) instead of just (void*), since then push/pop are faster
e78392f1cFederico BergeroRemoving edge function call
d6435e231Martin Sjölund- Added check for unused input variables in external functions - Also added a disabled implementation for regular functions, which has some quirks left to solve (and lots of problems to fix in the compiler sources)
ef519b747Martin Sjölund- Removed old stuff
50d33beacMartin Sjölund#1572 - Added check for external function output assignment
51e05564cMartin Sjölund#1572 - Check external function for illegal sections ([initial] algorithm)
7c597c0c4Martin Sjölund- Some backend tail recursion for checkEngineV6.mos (many equations)
93de92220Martin Sjölund- More tail recursion
924490e15Martin Sjölund- More tail recursion
c505f9130Martin Sjölund- More functions on tail-recursive form
1ae2f26acMartin Sjölund- DAEUtil.getParameterVars tail recursive
25af17e0fJens Frenkel- fix initialisation of models using dynamic state selection
d28fcbaadJens Frenkel- BackendDAEOptimize.mo: move equal code in one function - BackendDAETransform.mo: update dynamic state selection (passes now testsimulation, not all with same results as old method but all simulate :) )
08f233be3Martin Sjölund- DAEDump.dumpEquationsStream tail recursive :)
a4dd44398Martin Sjölund- Tail-recursive splitElements
faccd9c0fMartin Sjölund- Fix an additional test for bootstrapping by making RML output NaN regardless of platform - Note: This requires RML r213 to work, but should mean the testsuite will work on both OMDev and Linux (previously only Linux worked fully)
85d6d37ddMartin Sjölund- Fix for ctor index -1 (bootstrapping C runtime)
494b3108eMartin Sjölund- Fix for bootstrapping
948d8ccafMartin Sjölund- Fix boxptr_intMax for negative arguments
0356ec001Martin Sjölund- Some fixes for LAPACK routines in the bootstrapped compiler
16f30cd42Dongliang Liupdate cpp template for array part
2f66a5438Martin Sjölund- Missing external argument
2c70d222cMartin Sjölund- Fix a problem for bootstrapping
7fe9408efMartin Sjölund- More tail-recursion is needed than before since the size of the stack frames have grown
09c169cf5Martin Sjölund- Made the bootstrapped testsuite more deterministic
b882cdc61Martin Sjölund- Avoid overly optimistic switch-optimization
36a38dc88Martin Sjölund- Bootstrapping: Fix SimulationResults.close()
e4ac0ea5aMartin Sjölund#1568 - Check class inference for function/non-function of some statements: - reinit - when - return
acc80178cMartin Sjölund- Fix testsuite
9c491c113Martin Sjölund- Warning; not error
bd591d981Martin Sjölund- Fix testsuite
93b7a2377Martin Sjölund#1520 - Added check for shadowed function input variables before performing tail recursion optimization - Removed all such occurances from the compiler sources
0752e1b71Jens Frenkel- update new index reduction method
0c6ddd997Jens Frenkel- Util.mo: make function listRemoveOnTrue more abstract
5f2a665c6Martin Sjölund#1520 - Removed shadowing local declaration - These mess up the tail recursion implementation since it needs to assign to the input of the function
ac899b371Martin Sjölund- Fix some bootstrapping issues (unassigned outputs in external function)
208cdfd17Martin Sjölund- Added tail recursion of match-expressions
b6c608893Martin Sjölund#1520 - Added tail recursion of if-expressions
8dc2c987fMartin Sjölund#1520 - First working tail recursion testcase - Limited to the last statement being an assignment to a recursive call; but adding if-statements, if-expressions and match-expressions should be a minor addition
b21dd74e1Martin Sjölund- Moved fields in DAE.CALL around; started tail recursion optimization
47a0be732Martin Sjölund#1555 - Too many error messages
13dea54a1Martin Sjölund- Added warning for multiple algorithm-sections in functions
ba26c9e4fJens Frenkel- BaseHashTable.valueArrayList2: add case for empty last element from hashtable
af1d9649bMartin Sjölund#1555 - Produce an error message for variables with unknown dimensions and no binding equation
e5fcba5a1Martin Sjölund#1559 - Fix code generation for sum(real_array), ranges that are not integers without explicit step
9773df5aeMartin Sjölund- Removed Option (dim) from Ceval.ceval as it is no longer required
0deae749dMartin Sjölund#1567 - Only calculate duplicate delay-expressions once
a65b92fb3Martin Sjölund#1567 - Simplify some delay-expressions
ab5415af4Martin Sjölund#1566 - Only parse a mos-file if it exists
1e0235e0bPavol Privitzer- C# template progress
f720dc6fbPer Östlund- Allow if-expressions in constant functions to be non-constant, because Lookup is stupid. - Updated test suite.
027af3bd7Per Östlund- Added Absyn.Info to Ceval.Msg for better error messages from Ceval. - Updated test suite.
29375de8bPer Östlund- Removed some debug prints in Types.removeMod, which made the test suite about 20% faster. Some of the larger Media models became almost 40% faster. - Updated some tests due to the previous SCodeDump changes.
c2a177acbPer Östlund- Added a missing space in dumping of external functions in SCodeDump.
8b3d1a215Per Östlund- Added API call saveTotalSCode to dump the result of SCodeFlatten to file. - Use the +showAnnotations flag in SCodeDump to determine whether to dump annotations and comments or not.
51ff59679Per Östlund- Added some missing bits in the runtime to get bootstrapping to work again.
dc9884df9Per Östlund- Small fix for modifiers in SCodeDumpTpl.
ba0d37cacPer Östlund- Optimized Env.getEnvPath to speed up some Media models a bit.
a5af394c9Per Östlund- Changed instantiateModel to only instantiate the class once, and not twice if it fails the first time.
815b27c5cPer Östlund- Fixed lookup of components in constant class array instances again, but correctly this time (I hope...). - Updated Modelica.Media test. - Changed test mofiles/EndIllegal to status incorrect.
eb8bcb559Martin Sjölund#1559 - Some fixes for unknown end-expressions by removing DAE.END(), replacing it with calls to size(cr,dim)
bfa10f889Martin Sjölund- Crazy indentation, tabs
a3d29836bMartin Sjölund- Add checks for record/connector containing algorith sections
d688cabdcMartin Sjölund- Changed class inference for found equations,constraints slightly (all in one record)
c2b717b86Per Östlund- Changed print in Types.typeToValue to failtrace.
7335ea970Per Östlund- Added flag to Inst.instElement to ignore failed elements, which is used by Inst.partialInstClassIn to allow Lookup to find elements in packages that contain components with unknown dimensions. - Updated test suite.
f936496c5Adrian Pop- BREAKING 16 tests in the testsuite with this commit: ==== Log /tmp/omc-rtest-adrpo/biochem/log-BiochemModels.mos ==== Log /tmp/omc-rtest-adrpo/bootstrapping/log-SimCodeTest.mos ==== Log /tmp/omc-rtest-adrpo/interactive/log-Rename.mos ==== Log /tmp/omc-rtest-adrpo/mofiles/log-ArrayModification13.mo ==== Log /tmp/omc-rtest-adrpo/mofiles/log-Constant9.mo ==== Log /tmp/omc-rtest-adrpo/mofiles/log-Discrete2.mo ==== Log /tmp/omc-rtest-adrpo/mofiles/log-Modification9.mo ==== Log /tmp/omc-rtest-adrpo/mofiles/log-Overwriting3.mo ==== Log /tmp/omc-rtest-adrpo/mofiles/log-Overwriting4.mo ==== Log /tmp/omc-rtest-adrpo/mosfiles-nosim/log-FinalTests.mos ==== Log /tmp/omc-rtest-adrpo/mosfiles/log-BuiltinMath.mos ==== Log /tmp/omc-rtest-adrpo/mosfiles/log-CheckEvents.mos ==== Log /tmp/omc-rtest-adrpo/parser/log-CheckSourcesForTabs.mos ==== Log /tmp/omc-rtest-adrpo/parser/log-ParseCompilerSources.mos ==== Log /tmp/omc-rtest-adrpo/redeclare/log-RedeclareFunction.mo - i will fix them in the next days (they are not that problematic) - quite big commit, some fixes for Media 255/26 instantiate/check now. i'm still loosing redeclares in some cases (mostly weird restrictions like connectors), i'll do some more chasing for redeclare mods in Inst in the next days. - running the Media testsuite with nogen and noevalfunc (for now as even so takse ~10 minutes) will fix function problems later. - plenty of other new stuff: + some partial Graph implementation Edge.mo, Element.mo, Instance.mo, Node.mo, Reference.mo, SCodeGraph.mo, Visited.mo + general stuff Scope.mo, Name.mo, NamePool.mo, Relation.mo (moved to Util), more stuff in AvlTree.mo + global data structure which could be used anywhere (Global/Global.mo) + collecting all files in SimCode.mo (i had also send them to templates, but i will not push those changes as the templates get more complicated). - added Values.EMPTY and DAE.EMPTY to be returned when we do not have bindings. - many more things i forgot about.
4a4fe6388Adrian Pop- fflush(stderr);
008a480acNiklas Worschechsmall fix for typo in event iteration of cpp simulation runtime
baaec60f3Jim NutaroAdded support to the adevs code generator for mixed nonlinear systems.
23ac647ebPer Östlund- Implemented constant evaluation of Lapack external functions. - Fixed dimension count in cat_alloc_real_array for less division by zero. - Added test case Modelica.Math.Matrices.LAPACK to test Lapack functions. - Updated test suite.
091670f5eNiklas WorschechAdded new Euler methods to cpp simulation runtime
f4b9d8857Adrian Pop- C comments not C++ comments in a C file - set some vars to 0.
775f1ffc6Adrian PopFixes for BUG: #1370 - Compiler/susan_codegen/SimCode/SimCodeC.tpl + fixed iterators for functions not returning anything (added empty) + added more comments to the C code to understand where are things coming from (we can remove them later) + changed the order in which we evaluate function arguments and function variable declarations + changed the order in which we evaluate external function: vardecl->bivar->extArgs. + removed duplicates in the list map of extFunCallVarcopyF77 + changed handling of default value in extFunCallBiVarF77 + fixed handling of modelica_string send to Fortran (should not be prefixed by &) + changed algStmtTupleAssign to have a preExp and afterExp (before the preExp in writeLhsCref was never unparsed anywhere as <%preExp%> was before it??!!) + scalarLhsCref used daeExpCrefRhs??!! which was rather totally wrong for anything besides scalar component references; now it uses a new daeExpCrefLhs which has the causality reversed (for some parts as I haven't implemented all cases). + all *Lhs* templates now take an afterExp buffer instead of preExp to do more things after the actual statement (such as array slicing, etc); used in heavily in Modelica.Math.Matrices.mos, i.e. (eigenvalues[:, 1],eigenvalues[:, 2],eigenvectors, info) := LAPACK.dgeev(A); first we bind the call outputs to temps, then update the arrays slices using indexed_assign_<%type%> as an afterExp. - more error messages in the array handling inside c_runtime - added test to test Lapack and BUG #1370 in testsuite/mosfiles/TestLapack.mos - added test to test Modelica.Math.Matrices in testsuite/libraries/msl31/Modelica.Math.Matrices.mos - moved main from functions to the actual generated code for the model. - add SimCodeAdevs.mo to testsuite/bootstrapping/LoadCompilerSources.mos - all tests go.
5fe246582Adrian Pop- meaningful error message.
4b6d03b2dJim NutaroFirst working version of the backend for adevs
c6508117fAdrian Popc_runtime - merged libsim and libc_runtime into libSimulationRuntimeC - renamed some of the functions in c_runtime fortran generated files to avoid name collision. this also helps to avoid multiple definitions when we link with blas and lapack. We should really get rid of the fortran generated files and link directly with blas and lapack. - removed main.o from libf2c/makefile.mingw (to avoid multiple main definitions) - now libSimulationRuntimeC does not have a main anymore, the main function is generated with the model and calls _main_SimulationRuntime. - libSimulationRuntimeQss is now generated instead of libsim_ompd
cc0c1f43aPer Östlund- Fixed type mismatch errors for checkModel in Modelica.Media. - Updated Modelica.Media test case.
32cffc21eAdrian Pop- more complains :)
a1580cc8dMartin Sjölund- Fix last commit
6ce0e5b30Martin Sjölund- omniORB configuration
546618875Adrian Pop- update SVN props.
877f707cfAdrian Pop- some updates to some readmes.
ae887192eFederico BergeroRenaming Simulator class to SimulatorQSS
89e66c6cfMohsen Torabzadeh-Taritested the Linux/unix FMI export
dd3301026Willi Braun - added workaround for algorithms from modelicaML models - added also a testcase for that issue
1fdf39328Azam ZiaAdded linux compilation commands to FMU makefile.
e59c02837Azam ZiaUpdated FMI Modules. Simple models without events are working now. Removed try catch from fmu_model_interface.c as its not standard C.
107969283Per Östlund- Added boxing of arrays to Types.typeConvert to fix the 'setState_pTX not found' errors. - Added ten more working or partially working models to the Modelica.Media test case.
dffe067cdPer Östlund- Fixed invalid type in BackendDAETransform. - Updated testsuite.
2f56d942aPer Östlund- 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.
b256c6f32Adrian Pop- small improvements to Relation.mo
c88cb2c7bJens Frenkel- update new index reduction method
08153c5bfPer Östlund- Get rid of annoying types.
eb8fd4c9cPavol Privitzer- updated C# template - fix C template: use Util.escapeModelicaStringToCString() (instead System.escapeString()) to escape also \n in comments of SIMVARs in globalDataVarInfoArray() template
72e099e39Adrian Pop- found another bug in the RML compiler, it doesn't check for duplicate names, just takes the last one.
1f9812166Adrian Pop- a generic relation Relation.mo between two objects.
76662889bAdrian PopA NEW OMDEV and RML (2.5.0 revison 209) is needed for this (svn up or wait for your update) - generic AvlTree.mo (not tested yet, but it compiles fine) - small additions to Pool.mo - some more stuff in Util.mo - note that these generic files are not yet added to the Makefile.common, will come soon more.
dc17354f5Per Östlund- Print attributes for derived classes in SCodeDump.
5050a94dfAdrian Pop- YOU WILL NEED A NEW OMDev (svn up) or a new RML (svn up or wait for update) for this! - Added Pool.mo as a generic Pool of objects. - I've not added Pool.mo to the Makefiles yet, will come in a next commits.
9235d769cFederico BergeroAdding simulation_input_xml to the object list of the QSS runtime
ba160a327Jens Frenkel- bugfix getIndexReductionMethod
1bdb63570Jens Frenkel- minor changes to reduceIndexDummyDerX
1a42c08dfMartin Sjölund- Use configured flags
8ac6f1077Per Östlund- Some SCodeDependency fixes for modifiers and derived classes.
86cd2567aPer Östlund- Added more error checking for size.
deb79237aJens Frenkel- bugfix fmi, set and get real variables - ling FMU not with interactive
f1e8bf24aDongliang LiAdd list of string in SimVar, for the number of element in array
53a3c19e9Niklas WorschechFix for calculate zero crossing index in collectZC and collectZCAlgs
69943013eJens Frenkel- change MIXEDEQUATIONSYSTEM, now it is easier to handle algorithm and arrayequations in compination with discrete equaitons
71a22c506Jens Frenkel- add type for MIXEDEQUATIONSYSTEM to StrongComponent
05ee96ba0Martin Sjölund- Check for expat.h
c8d9c4386Jens Frenkel- use flag for debug print in reduceIndexDummyDerX to run testsuite
e44740f40Jens Frenkel- add error msg for expressions "der(der(DAE.CREF(_))", see Bug [#1551]
779da9d99Jens Frenkel- enable optimisation module constantLinearSystem by default, passed testsuite without errors
6762574bfJens Frenkel- bugfix constantLinearSystem, works now for model from bugtracker
c859da473Martin Sjölund- configure: Added flag with-static-sqlite
781997c79Jens Frenkel- add fmi feature dynamic external function, for more information have a look at https://www.modelica.org/events/modelica2011/Proceedings/pages/papers/14_3_ID_162_a_fv.pdf
0185aaa6eAdrian Pop- .pro.user files should not be in Subversion as they are different for each user. - add OMPlotLib.pro to OMTools.pro
fb1c0ad70Per Östlund- Don't link with -lregex on Linux.
04012d706Adrian Pop- link with -lregex and -lexpat on Linux too.
3e680ed76Adrian Pop- BIG CHANGE! - generate Model_init.xml instead of Model_init.txt - clean objects in Model.makefile before compiling (Make doesn't seem to get that Model.c is newer than Model.o if we issue two simulate commands for the same model, even if the model changed via loadFile.) - check the result of fflush in systemimpl.c and printimpl.c - fflush in c_runtime/linearize.cpp - added c_runtime/simulation_input_xml.h and cpp to read the Model_init.xml file. - link the generated code with the XML parser library -lexpat as libc_runtime needs it now - Model.c and Model_init.xml will now contain a GUID which is used in c_runtime/simulation_input_xml.cpp to check if the Model_init.xml is matched with Model.c (Model.exe) - The Model_init.xml is based on FMI but with much more information that we need for OMC. - The Model_init.xml file it has no schema yet as it may change in the near future to include more things that are now static in the generated code (Model.c). This will make compilation of generated code faster. - disabled testsuite/interactive-simulation/runInteractiveSimulation.mos and added only a compilation test (more work is needed to make the run test more robust). - updated tests and compiler files with the name change from _init.txt to _init.xml.
30e2616a9Martin Sjölund- Added testcase for using initial() in blocks that are constant during the initial step
bf7109e7eMartin Sjölund- Fix unparsing of MSL 3.2
b2609f2ffMartin Sjölund- SCodeUtil: Give errors if Absyn to SCode fails
044d2d8ecPer Östlund- Optimized Types.elabType by relaxing equality checks for types.
67aa41eaaMartin Sjölund- Removed Interactive list(cr) functions as their result differs from CevalScript * TODO: Make sure OMEdit list() command handles strings correctly
e287609ddPer Östlund- Some small SCodeDumpTpl fixes.
dab454f46Martin Sjölund- Simplify also (e*e1)+(e2*e)=>e(e1+e2)
3b3acac66Jens Frenkel- update CMakeList files
de7409091Per Östlund- Added missing SCodeTV.mo. - Normalised Absyn.ComponentRef.
60e8daf2eMartin Sjölund- Add simplification (e*e1)+(e*e2) => e*(e1+e2) (for +/- and swapping argument order)
00b5b1d95Martin Sjölund- Changed order of some simplifications (commutative rules)
2098ee0e6Per Östlund- Implemented SCode dumping template. - Changed some functions in SCodeDump to use the new template functions. - Updated test suit.
f556790c6Martin Sjölund- Added ExpressionSimplify.simplifyBinaryCommutative - To be used for commutative rules so we do not forget these cases in the future
57afb3f14Martin Sjölund- Fix compilation
222ed2d8bJens Frenkel- start to move solving of constant linear systems to BackendDAEOptimize
b9416e9b0Martin Sjölund- simplify: exp * sqrt(exp) => exp^1.5, exp^exp2 * sqrt(exp) => exp*^(exp2+0.5)
e6761593eAdrian Pop- fix quoting of XML strings in SimCodeFMU.tpl
a94b8fa24Adrian Pop- small fix for modelIdentifier in FMU export.
0b9d8941cMahder Alemseged Gebremedhin- a note that OMDev needs to be updated
822877035Jens Frenkel- Inst.mo: - fix bug of number of output arguments - change implementation of strongconnected components, use now special types insted of list>, ToDo: move tearing and handling of constant equation systems from simcode to preoptimisation phase - fix testsuite for new implementation of strong connected components
8c486f1caAlexey LebedevBase of modification processing for non-expanded arrays.
71a7143b5Lennart Ochelreorder include files to avoid unknown references
bf514a58bMartin Sjölund- simplify sin^2(x)+cos^2(x) = 1
9a4e01b35Martin Sjölund- Added simplify rules for some trig.identities * asin(sin(x)) => x * sin(2*x) = 2*sin(x)*cos(x)
4552e821aMartin Sjölund- Some simplification rules, e.g. sqrt(e)^2.0 = e
599ce04c8Per Östlund- Translate Absyn.ConstrainClass into SCode.ConstrainClass in translateAbsyn2SCode. - Updated some redeclare test cases.
56010579fMartin Sjölund- Link with libsql3
625bb6b42Adrian Pop- moved trunk/OMTools/bin and trunk/OMTools/qtdlls to OMDev/tools/OMTools/
7aebef980Adrian Pop- YOU WILL NEED A NEW OMDev FOR THIS revision, just do SVN update on OMDev - moved some binaries from /trunk into OMDev. + liblpsolve + libsqlite3 + liblapack-mingw.a + libblas-mingw.a + lib/libtmglib-mingw.a
be4552ca7Martin Sjölund- Moved part of deinitializeDataStruc from SimCode to simulation_runtime
9ed4b378eMartin Sjölund- Moved part of initializeDataStruc to simultion runtime instead of generated code
db180d4ecPer Östlund- Translate Absyn.ExternalDecl into SCode.ExternalDecl in translateAbsyn2SCode (because Absyn.Annotations are annoying).
3e1463f55Martin Sjölund- Removed getNameReal, etc from SimCodeC.tpl
a3f7696dcMartin Sjölund- Don't link readline with omc
c6c7527acMartin Sjölund- configure: include lp_lib.h or lpsolve/lp_lib.h depending on platform
8a36c715bAdrian Pop- first db implementation, un-comment the new added deleted lines in Main.mo and Inst.mo create a db (called omc.db) with a table Inst.mo(path, time_to_instantiate)
b3db90114Willi Braun - added fixes for initialization (Bug [# 1537]) - fixed builtin function semiLinear()
48aa63bd6Adrian Pop- YOU NEED TO UPDATE YOUR OMDEV FOR THIS! - linked with static libregex. - Error.mo feeding my alignment issues.
d393ac198Martin Sjölund- Forbid assignment to inputs when using +g=Modelica
4aa74350eAdrian Pop- removed SCode.Accessibility element from SCode.Attributes and DAE.Attributes and the entire compiler. - Static.elabCref now returns DAE.Attributes instead of the SCode.Accessibility so one can check the flags in there, (flow, stream, direction, variability, etc).
01d3515c5Martin Sjölund- Fix for omlibrary being updated properly
732a6522dMartin Sjölund- Integrated the uses annotation with the loadModel command
2d3378abcMartin Sjölund- Fix read_matlab4.c
d6b5e90a2Martin Sjölund- Makefile dependencies
b649ab792Martin Sjölund- Added description to matlab reader
e443e0cc8Adrian Pop- moved all c_runtime/meta_* files to c_runtime/meta/ (also rml_compatibility.h) - changed all the required makefiles in Compiler/runtime/ and Parser/ - added SCodeFlatDump.mo. - implemented a first phase in SCodeFlat.mo.
ae268a211Martin Sjölund- OMEdit: Load the ModelicaReference library (latest release preferred over 3.1 version)
fd0de5944Martin Sjölund- Prefer ModelicaServices 1.0 over 1.1 (MSL 3.1 > MSL 3.2)
97362566eMartin Sjölund- Fix priority MSL 3.1 > MSL 3.2 - Don't always copy omlibrary (test -d instead of -f)
11273d1fcMartin Sjölund- Changed the installed library structure to omlibrary/Modelica 3.1 instead of omlibrary/msl31/Modelica - Testcases now use loadModel(Modelica,{"3.1"}), etc, instead of env.vars
1f9b57e8cPer Östlund- Renamed tplAbsynExpEEquationLstLst to elseBranches in SCode.EEquation.EQ_WHEN.
2558fdd88Per Östlund- Fixed SCodeFlattenRedeclare.addElementRedeclarationsToEnv for components.
f6ebe49c5Adrian Pop- add SCodeFlat.mo to compilation. - fixes for MinGW compilation of systemimpl.c
cf2cb8f7eMartin Sjölund- Added extra argument to loadModel(Class,{"3.1","default"}) - We can now store multiple versions of the same library on the MODELICAPATH
10890d8a0Adrian Pop- forgot to add two files in the previous commit.
80f65f7e5Adrian PopFixes for bugs: #1430, #1432
52d049ddcParham Vasaielyfix: changeParameterValues fix: changeSimulationTime
99b95da8ePavol Privitzer- update of C# templates: removed Sample zero-crossing generation
7bfbc4140Per Östlund- Fix for instantiation of empty arrays.
27d4f5e5dPer ÖstlundFix for bug #1529: - Don't evaluate non-fixed parameter subscripts. - Added test case mofiles/NonfixedParamSubscript.
b1f67dd94Dongliang Lifixed errors for revision r8974
b9f8fd8aePer ÖstlundFixes for bug #1528: - Add simplification rule pre(constant[index]) = constant[index]. - Implemented code generation for cref asub with one subscript.
94ef3f59bPer Östlund- 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.
b57d7e448Parham Vasaielyfix: reinitialization after stopSimulation fix: wrong references on ssdArray update: setResultData and getResultData update: resetSSDArrayWithNullSSD update: initializeSSD_AND_SRDF
6ff024548Adrian Pop- fixes for linking with lpsolve in c_runtime - compiled static lpsolve with mingw and used that to link with omc.exe and c_runtime. - todo: move it to OMDev.
2ba6ed755Martin Sjölund- Added rule to simplify x+x+x-x-x=x
42ef95b0bJens Frenkel- continue to move analysation of strong connected components directly after blt algorithm, change modpar and TaskGraph to use new strongcomponent type
4d1cbd3d0Adrian Pop- fixes for boostrapping on Windows (missing an "l" in -lpsolve55) - copy Compiler/runtime/lpsolve/lpsolve55.lib $(builddir_lib)/omc/liblpsolve55.a as the runtime is needing it now.
b4b039223Jens Frenkel- continue to move analysation of strong connected components directly after blt algorithm
5f5e414f5Jens Frenkel-start to move analysation of strong connected components behind blt transformation
6d8d04beePer Östlund- Element redeclare fixes in SCodeFlatten. - Updated Modelica.Media test case with new errors and enabled now working WaterIF97 example.
f0fd4424aMartin Sjölund- Use simplify1 instead of simplify as it is marginally faster (simplify does nothing extra for DAE.CALL and DAE.ASUB anyway)
7d3842026Martin Sjölund- Disable debug print that fails 30% of the testsuite
c7aa9199eParham Vasaielyfixed stopSimulation
4eb13170bParham VasaielyDebug stopSimulation function and changeSimulationTime v2
f8c62c884Martin Sjölund- Fix compilation (merge conflict that was ignored instead of resolved)
e998252daParham VasaielyDebug stopSimulation function and changeSimulationTime v2
88793abdeParham VasaielyDebug stopSimulation function and changeSimulationTime v2
e8c0ca008Adeel Asghar- Fix abs_path for Windows-msys.
5eed94a9aMartin Sjölund- Added optimized codegen for ASUB(DAE.ARRAY(__),{index}) (only evaluates the index we are interested in)
5469f7990Martin Sjölund- Fix compilation
c78932da2Parham VasaielyDebug stopSimulation function and changeSimulationTime
5bf4aeecbMartin Sjölund- Use abs_path or gdb gets cranky
d20110322Per Östlund- Propagate replaceable/redeclare prefixes for modifier elements from Absyn to SCode.
4ab151fb5Martin Sjölund- Fix stringCharInt returning negative integers
127a714d5Adeel Asghar- Changed Cwd::abs_path to File::Spec - Added the sub routine for trimming the string, otherwise the regular expressions fails.
920892ff0Per ÖstlundFix for bug #1526: - Implemented support for logical operations (and, or, not) on arrays. - Added test case mofiles/ArrayLogic.
b2186fe8fPavol Privitzer- updated C# templates - little re-formulation of some Susan errors
935d00fe3Per ÖstlundFix for bug #1523: - {} is no longer allowed in Modelica code, since it's not allowed by the specification. - Added test case mofiles/EmptyArray and updated the test suit.
61e5592e1Martin Sjölund#1499 - Rewrote external function handling to use the FunctionTree and real external C functions - This means we now support array arguments for external objects
3364065f4Martin Sjölund- Added lpsolve55 binding to System.mo
06d706a01Per ÖstlundFix for bug #1522: - Consider size of arrays in function to be variable, since their size might depend on input arguments. - Added test case mofiles/FunctionEval12.
e1dccc47aPer ÖstlundFix for bug #1516: - Fixed bad indentation in Dump. - Updated test suite.
a3ddf9cf0Martin Sjölund- Added simplify rules for change(constant) and edge(constant)
b93a1ba24Martin Sjölund- Fixes for CombiTable1Ds
b49347f4cPer Östlund- 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.
8f1ffda90Willi Braun - added fix for Bug [# 1508] terminal() support. - moved mosfiles-msl22/LossyGear1.mos to failingtest
57403244aMartin Sjölund- Revert revision r8974
ab8962104Martin Sjölund- Disable debug trace
7f0ce46dePer Östlund- Removed some inline annotations from SCode, because apparently the bootstrapped compiler doesn't like them much.
4b1b0d1d1Adrian Pop- remove duplicate declaration.
08ed23c8bDongliang LiAdded code generation functions for cpp template for update, handling event and make file. Modified the simcode for cpp code generation, added a flag for createEquation in a different way and sorting state variables. Modified the index generation for relations. Added a flag to call the simulation executable in a different way for cpp simulation run time.
802882cf9Martin Sjölund- Fix bootstrapped linking
36f52f8dbMartin Sjölund- For safety, include math.h
ad0775d16Martin Sjölund- Check if install directory is sane
478cb3e50Martin Sjölund- Fix for Linux versions that do not include NAN/INFINITY
4bddb6337Martin Sjölund- Fix for translateFMU
bc3f96980Martin Sjölund- Changed simulation code from C++ to C - ~80 seconds faster testsuite - pre(),edge() and change() operators no longer need to search for the array they are located in
740949c19Federico BergeroIncluding the cross detector in the makefile
7c0b54a51Federico Bergero* Updating the generation of the pds and code
c695b434dFederico BergeroUpdating the generation of the pds and code
e165ab4eeMartin Sjölund- Made headers more C-friendly
8612206eaFederico BergeroImplementing QSS2
314180103Martin Sjölund- Fix compilation
fc764b872Martin Sjölund- Add Lapack libs to bootstrapped runtime
d457e2eaeNiklas WorschechModified cmake files for build of the Modelica system with generated make file
0b23a14e5Martin Sjölund- SimCodeDump: Print solved linear eq.syst
9ed804c8eMartin Sjölund- Fix for OSX
0717b1fa9Martin Sjölund- Bootstrapped compilation
6245b06a4Jens Frenkel- continue new DAEHandler, works now for multibody elementary pendulum example
4164f5947Martin Sjölund- Retain elementsource for linear system of eq's
ba572492bMartin Sjölund- Evaluate constant linear equation systems in SimCode (wrong place, but that's where it currentlt fits)
f4688aa30Martin Sjölund- Fix for (some) polymorphic functions using array
d576632d1Martin Sjölund- Solved segfault when creating 1-long strings where the character has the high bit set (unsigned/signed indexing issue)
a06c70b18Federico Bergero* Updating structures for the stand alone solver
b6da021f2Federico Bergero* Adding discontinuities
24d584812Jens Frenkel- start to move analysation of strong connected components directly after blt algorithm, this has the advantages of speedup(because analysation is done only once), reporting kinds of appearing systems and easier implementation of new optimisation algorithms for this systems(simply as preoptimisation modules)
412f6bbf4Per Östlund- Better propagation of flow and stream prefixes for structured components, and better propagation of attributes overall. - Cleaned up instElement and instVar a bit. - Added some new test cases.
ff55efa96Jens Frenkel- update Workplan-status-estimates
195abdbe4Martin Sjölund- Fix initial value for rhsConstant (previously always returned false)
322f9a088Adrian Pop- fix compilation error on Windows.
e8f4a0406Martin Sjölund#1512 - Added API call solveLinearSystem (same functionality to be used in the backend later)
c1606e7feMartin Sjölund- Use calloc+free instead of new+memset+delete
0cd1cc6b3Jens Frenkel- BackendDump: dump also whenclause - continue with new index reduction method, works now for simple pendulum example /testsuite/mosfiles/pendulum.mo
3a08d790eXenofon Florosbug fixed in creating empty DEVS structs
c7f3db729Martin Sjölund- Do not use inline functions for pow as it makes gcc a bit slower - Use special cases for x^2,3 or 4
1b23e5011Martin Sjölund#1518 - Implemented faster power operator for known integer exponents using squaring
7fbbbd51fMartin Sjölund- Added codegen for x^0.5 = sqrt(x) instead of pow(x,0.5) as it is faster
ab0cc371dJens Frenkel- continue new DAEHandler
d90fa6aacJens Frenkel- continue with new index reduction method
2afc1b012Xenofon Florossome more optimizations
ea125f14bFederico BergeroRuntime for the QSS methods
88a031557Federico BergeroCode generation for the stand-alone solver of QSS methods
4a5b83f22Xenofon Florosoptimizing-using tail-recursion in functions
7bf4d71f0Martin Sjölund#1517 - Made Integer^Integer return a Real number as per the Modelica spec - Added simplify rule (e1^e2)^e3 => e1^(e2*e3)
5ee65d20bAdrian Pop- small comment change.
ceff61011Adrian Pop- small naming change and some other small things.
0b60ab9a1Adrian Pop- space before comma.
7cdfeabbaJens Frenkel- continue new DAEHandler
1f9a79891Jens Frenkel- update array only if element is updated
9d7562d4cAdrian Pop- got rid of BackendDAE.StringIndex and array> strIdxLstArr from BackendDAE.VARIABLES as is not used anywhere. - ~5 minutes speedup for the testsuite (and a bit less memory consumption).
5355467cdMartin Sjölund- New +d=execstat; defined in Debug.mo and includes memory consumption
197e17506Jens Frenkel- continue with new index reduction method - add function setIndexReductionMethod to ModelicaBuiltin
7a82a8f0cMartin Sjölund- Changed Error.mo filenames to be patched in the parser instead (so parser errors do not refer to "bad" filenames when running the testsuite)
1d08c184aPer ÖstlundFix for big #1224: - Added dumping of function comments to DAEDump. - Updated test suit.
eeee312e5Per ÖstlundFix for bug #1513: - Changed CevalFunction to fail if it can't evaluate a function parameter binding instead of giving it a default binding. - Added test case mofiles/FunctionEvalFail.
6c7904083Per ÖstlundFix for bug #1492: - Only propagate final prefix if the component is declared final.
d86729f86Martin Sjölund- Added builtin function stringReal
61e1aea77Martin Sjölund- Fix bootstrapped compilation
c8b0f5db2Jens Frenkel- improve DAEHandler interface - start to implement new DAEHandler
50813533cMartin Sjölund- Some README updates
034ee89d8Martin Sjölund#1511 - Replace ASUB/CREF subscripts in BackendVarTransform - Do not perform empty backend variable replacements
351d55384Martin Sjölund- Also traverse cref subscripts bottom-up
a33997d62Martin Sjölund- Dump linear equation systems
5e78c504dMartin Sjölund- Fix compilation
29702b7cdMartin Sjölund- Relax patternm checks
c72de263aMartin Sjölund#1510 - Check that a CALL pattern defines all fields
52203b5b7Adrian Pop- fixes to Compiler/BackEnd/BackendQSS.mo to be able to compile. WARNING! i don't know if my fix is correct!
5f2e4583bXenofon Florossmall changes
aa9716cdeXenofon FlorosDEVS structure generated correctly for whens-reinits-samples This is only a first version. To be updated soon.
8d01c2762Martin Sjölund- Fix compilation
ebdcf5779Martin Sjölund- Generate residual functions for nonlinear,mixed systems
5924dbb32Per Östlund- Better element redeclare support in SCodeFlatten.
640ba8c82Martin Sjölund- Create external objects one by one and free the stack after each object has been initialized
b11b429efAdrian Pop- use gcc instead of g++ because of c++ mangling.
1c0eb55bfMartin Sjölund- Use correct extrapolation for CombiTable1D
5e47e9b92Martin Sjölund- Use CC+LINK for dynamic function loading (so we can use gcc for the C-sources and g++ as the linker on Windows)
f447ed658Jens Frenkel- speedup when no optimisation is done
339322cc0Jens Frenkel- compare calls to Debug.fcall and Debug.fprint, --> speedup
4d2f7c5bdAdrian Pop- fix bootstrapping on Windows.
ecd7cbba7Martin Sjölund#1509 #1085 - Make elabArray a little smarter (for Digital)
4c6737583Jens Frenkel- remove old flag for EliminationLevel, cause it is not used anymore - implement last part of the equation system pipeline (index reduction handler), add new flag +indexReductionMethod to select the method for index reduction - remove some old error msg from Derive.differentiateEquationTime
01d2bb776Martin Sjölund#1085 #1509 - Do some fun hacks when elaborating fully-qualified enumeration matrices - We simply compare the name of the cref to the type of the enumeration. Saves a lot of lookup (66% speedup for M.E.Digital.mos)
f0f8eab10Per Östlund- Fixed AVL tree in SCodeEnv so that it's correctly balanced.
81ccc53d5Martin Sjölund- Set linker for OSX qtclients - Fix compilation on OSX/g++-4.5
f6e0140feMartin Sjölund- configure libf2c
f5c2a2b10Martin Sjölund- Use the configure-script to create the LinkMain.makefile
dc15eec58Martin Sjölund- Dynamically loaded functions are now compiled using CC instead of CXX - Some minor changes were needed to literals due to C being more restrictive
aa6a7b5f8Martin Sjölund- Fix for clean, parallel makes :)
305031210Martin Sjölund- Use the configure C++-compiler as the default compiler
1ae726d8bMartin Sjölund- Fixes for OSX
3bae3e96dMartin Sjölund#1509 - 40% speed-up of Modelica.Electrical.Digital.mos by elaborating a matrix once instead of twice :)
1c2a4089eMartin Sjölund- Use the proper AssertionLevel name in ModelicaBuiltin.mo
02b25dd83Jens Frenkel- remove unused code - bugfix BackendDAEOptimize: remove unused parameter and variables, traverse also whenclauses
72bb96fa4Martin Sjölund- Fixes for modpar+bootstrapping
15c34446bJens Frenkel- Simcode: use only vars from equations for subsystems
8fa44e1eaMartin Sjölund- Build the difftool by default
b7c336a34Martin Sjölund- @DEFS@ is unused, so don't clutter our make logs with it
81a31541eMartin Sjölund- Use referenceEq in traverseExp() so that we do not construct new expressions identical to the input - Theoretically, this should reduce the load on the GC (since less records are constructed), but due to RML oddities, we will create new garbage regardless. This new garbage will have 0 references and resides in the young region, which leads to it being removed early. Memory consumption should decrease for larger models.
59e29ccf3Per Östlund- Added function SCodeFlatten.flattenCompleteProgram which flattens a whole program, and use it to flatten the initial classes (ModelicaBuiltin, etc.). - Added case for Absyn.Code to Absyn.traverseExpBidir.
376d175d4Per Östlund- Removed erroneous check for non-replaceable class definitions in Inst. - Added test case redeclare/FinalRedeclareModifier2.
89d344125Martin Sjölund- Some simple changes to makeProductLst
282603e25Martin Sjölund#1507 - Made ExpressionSimplify more stable
d9a1c37d9Martin Sjölund- Use @CC@
7fce268a4Martin Sjölund- Update README
2ffeb31bfAdrian Pop- make BaseHashTable.valueArrayList2 tail recursive.
a0a9f3f19Adrian Pop- updated Compiler/FrontEnd/SCodeHashTable.mo
4392dec3fAdrian Pop- use -O3 for omc_release and -pg for omc_profiler - have an (key,value) array of 70% of bucket size in hashtables instead of size/10! - faster false = Expression.expHasCrefs(e) to be used instead {} = Expression.extractCrefsFromExp(e); - smaller hastable sizes in SimCode.translateFunctions - Hashtables do not take second size anymore, just bucket size.
8659c1b99Martin Sjölund- Bugfix simplify() - only return true if the expression changed
2ea91aa61Jens Frenkel- CevalSrcipt use BackendDAEOptimize.countSimpleEquations for checkModel (speedup testsuite)
2aab27523Jens Frenkel- BackendDAEOptimize: add function to count Simple Equations. This function count the simple equations on the form a=b and a=const and a=f(not time) in BackendDAE.BackendDAE. Note this functions does not use variable replacements, because of this the number of simple equations is maybe smaller than using variable replacements.
ad9067f32Jens Frenkel- DAEUtil.mo: add function getNominalAttr - BackendDAEOptimze: - add optimisation module to remove unused parameters ("removeUnusedParameter") - add optimisation module to remove unused variables ("removeUnusedVariables")
20a565877Per Östlund- Check for protected or constant elements when handling redeclare.
66c19a3f5Jens Frenkel- add heuristic state selction rule "state=var+param" - Expression.mo: add function traverseCrefsFromExp - fix testsuite
81e3f4930Martin Sjölund- Use @CC@
9139e42ebMartin Sjölund- Add wrapper to traverseBackendDAEExpsEqn to reduce the code needed to maintain the compiler
2fd7adb8aMartin Sjölund- BackendDAEOptimize.replaceExp now traces symbolic operations
365c28887Per Östlund- Implemented checks for correct prefixes when redeclaring elements in modifiers. - Added test cases to test the new error messages.
050cb68d9Martin Sjölund- Handle removeEqualFunctionCall for unary minus properly
b23f6149dMartin Sjölund- Force 64-bit double precision only for the files that require it
ba3c5deecMartin Sjölund- Fix compilation
b97d88bafJens Frenkel- use fixed attribute for stateselection (fixes msl31/simulation)
8cf994c19Per Östlund- Fixed bug which occured when an error message token contained %s, in which case it was replaced by the next token. - Added new positional index directive to error messages, see package comment in Util/Error.mo for details.
487f7a748Martin Sjölund- Some extra type-casting for C++-mode
601d72329Willi Braun - added bugfix for Bug [# 1501] and corresponding testcase - clean up directory mosfiles
b1587761cPer Östlund- Cleaned up SCode.makeEnumType.
2d410db67Per Östlund- Enabled SCodeFlatten by default. - Updated the test suite to comply with SCodeFlatten.
25b333862Jens Frenkel- use derivativeNamePrefix from DAE - use function ComponentReference.crefPrefixDer
5d15256baMartin Sjölund- Use @CXX@ for C++ when linking omc
f0c913cdeMartin Sjölund- Add @CFLAGS@ to more Makefiles - Use gcc instead of rmlc to compile generated C-sources
a35a731beMartin Sjölund- Add tracing of symbolic operations for derivative - Consolidate multiple substitutions into a single operation
ff321a519Niklas Worschechadd CMakefile to build generated Modelica System
bbf48c81cJens Frenkel- speedup implementation of BackendDAEUtil.incidenceRow, around 10% for DoublePendulum example
796d5721dMartin Sjölund#1502 - pre(constant) = constant
69b725a26Martin Sjölund- Track some symbolic operations for index reduction
314463b43Jens Frenkel- remove old unused code
fb700187cMartin Sjölund- --with-paradiseo=yes is now default instead of =check (yes now does what check used to do)
1f5c97c77Jens Frenkel- improve SimulationResultCompare
cfb350e5eJens Frenkel- improve SimulationResultCompare
a79bdd8ecMartin Sjölund- Configure using --with-qwt
1772952f8Martin Sjölund- Added error-messages for invalid lhs of external declarations
cb65eaaf1Martin Sjölund- Types.unparseType now prints the name of T_FUNCTION types - External object constructor/deconstructor is now fully-qualified
31c17a20cMartin Sjölund- Added support for array-expressions used as input to external "C" functions/objects - Support for F77 functions that take arrays
ce32b1dc5Martin Sjölund- Add default declarations of external object constructor/deconstructor
ca1339ec0Jens Frenkel- bugfix for last commit
b786569edMartin Sjölund- Fix compilation + tabs
632de6556Jens Frenkel- bugfix infinite loop
8df8bb9f9Jens Frenkel- fix testsuite - add minmax, nominal asserts to simcode, use type of var because type of componendreference is sometimes wrong (for example for stateselect) - BackendDAEOptimize: merge minmax attribue, and add compiler warning if min > max - DAEUtil: add setMinMax - Expression: add case for enumerations to expReal, add functions expMaxScalar, expMinScalar
aa5a7af1eXenofon Florosgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8729 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
5140748cfJens Frenkel- fix some bugs to extend arrays only when necessary - add msl31 simulation to slowlogs
f270b01e1Jens Frenkel- VarTransform.mo: remove unused code - BackendVarTransform: change implementation to replace arrays and records. For example if there is a variable a.b[3] to replace all crefs a.b will be extendend to {a.b[1],a.b[2],a.b[3]} and a.b[3] will be replaced, same for records
ae4a261edMartin Sjölund- Added some extra checks in SimCodeC.tpl
500d33dcbJens Frenkel- fix some bugs to extend arrays only when necessary - move minmax and nominal asserts to simcode, the check is still done in BackendDAECreate
c8be69467Per Östlund- Added analysis of external declarations in SCodeDependency.
9c258b069Per Östlund- Removed abuse of external declaration to mark class extends in SCodeFlatten. - Added some comments to SCodeFlattenRedeclare.
b4677441ePer Östlund- Changed SCodeFlattenImports to also update and return the environment.
c8fbbfd74Martin Sjölund- Use $(MAKE) instead of make (enables parallel make)
28aa187d7Martin Sjölund- Improve performance of the Interactive API by adding initial support for SCode caching
555475ed9Jens Frenkel- do not add variables with stateSelect=StateSelect.prefer to states - update testsuite
3ac3548f8Martin Sjölund- OMEdit does not depend on OMNotebook anymore
4cd825563Jens Frenkel- bugfix removeSimpleEquation, do not remove toplevel inputs
47066f282Per ÖstlundSCodeFlatten 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.
872e82963Martin Sjölund- loadModel(Complex) in OMEdit - Fix unparsing of operator XXX in OMC
f47093da3Per Östlund- Fixed indentation of record constructor result parameter in DAEDump.
b31251419Federico Bergero* Implementing discontinuities
d6e7781e5Jens Frenkel- bugfix fmi - add test for fmi export
66f31fab7Xenofon Florosbug in generating connections fixed
867ffa377Martin Sjölund- Fix SimulationResultsCmp.c (use 2-pass algorithm with only 1 malloc) - Fix some read/write errors (strncmp,etc)
5bdbb7e98Adrian Pop- handle DAE.ENUM_LITERAL in several places where it was missing.
c3e989f80Jens Frenkel- BackendEquation.mo: bugfix equationToResidualForm - PartFn.mo: remove DAEDUmp - SimCode: get rid of BackendDAEUtil.equationList
c5cf5354aPer Östlund- Changed Absyn.pathString to add a dot in front of fully qualified paths. - Added Absyn.pathStringNoQual with the old pathString behaviour, and replaced calls to pathString in some places that depended on the old behaviour of pathString. - Updated test suite.
c9344955cJens Frenkel- BackendDAEOptimize.mo: - add failtrace prints, add missing case for traverseIncidenceMatrixList - bugfix SimulationResultsCmp.c - update msl31 simulate
9c1bc6877Martin Sjölund- Added support for #define-macros used in external "C" functions
d50ad5173Jens Frenkel- bugfix SimulationResultsCmp.c - update msl31 simulate
a96b53541Adrian Pop- sane naming - a missed \" inside Env.mo comment killed the parser (no error).
fed024eedMartin Sjölund- Remove references to Cygwin in the README
4ae387b90Martin Sjölund- Fix compilation on Linux (assert.h) - Expected testsuite results - Remove tabs
fb3dd3a78Jens Frenkel- CevalScript: Bugfix Interval, calculation of stepSize - simulation_init.cpp, use "&&" instead of "and" makes Visual Studio happy - bugfix SimulationResultsCmp.c - update tests msl3.1 simulate
c436c10c8Adrian PopFixes to bug: #1488 - propagate final correctly to the back-end and the DAE. - testsuite/mosfiles/FinalPropagation.mos
7a7e2c3f6Adrian Pop- fixes to c_runtime so no more crashes on Windows (even better on Linux)! - matrix.h (double assigned to modelica_boolean) *loc_ptrs[i]=values[cur_value_indx*size+i]; loc_ptrs is a array of pointers to doubles which is set to addresses of modelica_boolean then at those addresses a double is copied (values is a double array) - other files + initialize most variables to 0 or NULL or "". - flagSet now returns integer instead of bool! - fixes interactiveSimuation -> interactiveSimulation.
d7292c4a6Jens Frenkel- bugfix SimulationResultsCmp.c - update msl3.1 simulation tests
06cfc2a2aJens FrenkelBackendDump.mo: dump final prefix
1d79b465eXenofon FlorosAdded structure/blocks for zero-crossings and cross-detectors
3acad5dffWilli Braun - added some bugfixes for initialization and update some testcase to currect values
677af6194Jens Frenkel- handle events better in SimulationResultsCmp.c
b4673301dFederico Bergero* Updating template for the QSS methods * Conditional compilation of some part of the global data of the cpp file
1dab30d79Jens Frenkel- bugfix simulation_result_mat
20c886092Jens Frenkel- add missing try catch block
6fd9b0914Martin Sjölund- removeEqualFunctionCalls now also finds non-CALL expressions
4f15dd7eeJens Frenkel- BackEnd/BackendDAEUtil.mo: change implementation of updateIncidenceMatrix -> speedup testsuite
2760f3b03Jens Frenkel- add abstol parameter to Simulation Result compare - Bugfix remove Simple Equations (this should speedup testsuite)
4cc96f2a5Martin Sjölund- Changed simplify1 to a fixpoint algorithm - No testcase changed result, but more cases in the backend are now covered
769d81378Adrian Pop- changes to Absyn, SCode, DAE, Env! - Absyn.mo + Parser/Modelica.g + fixed some of the weird naming - SCode.mo + SCode.Class is gone, SCode.Program is now a list of elements + SCode.Attributes are now in DERIVED instead of Absyn.ElementAttributes + grouped the element prefixes into SCode.Prefixes and put them both in SCode.CLASS and SCode.COMPONENT + added visibility attribute to all Elements (extends, import, etc)! + replaced some false/true flags with real records for easier following of patterns or expressions. - DAE.mo + use flags instead of false/true - Env.mo + better naming for fields - SCodeHashTable.mo + new file to help with SCodeFlattenExtends.mo + more to come here.
47b0b5f35Niklas Worschechchanged make files for cpp simulation runtime to cmake removed all old build files
1eb0bfbedMartin Sjölund- Fix compilation
1f8430185Martin Sjölund- Added API calls parseString and loadString (analogous to parseFile/loadFile)
9165321a7Jens Frenkel- BackendDAEOptimize.mo: - remove old remove simple Equation - add remove equal function calls equations module - use new remove simple Equation for Linearization - BackEnd/BackendDAEUtil.mo - change incidenceMatrix, now it generates the incidenceMatrix and the transposed incidenceMatrix at once - use removeFinalParameters,removeEqualFunctionCalls,removeSimpleEquations,expandDerOperator as default preOptModules - BackendDump.mo: add function debuglst - update testsuite
0b60fe6ceMartin Sjölund- Fix for Windows hanging when trying to parse 0-length files
cff400725Federico Bergero* Updating the QSS structure and c_runtime
c5dd73852Jens Frenkel- bugfix BackendDAETransform: traverseBackendDAEExpsEqn and traverseBackendDAEExpsWhenClauseLst
111bbb6b0Xenofon FlorosDEVS structures generated for NON-discontinuous systems
a6e1a0d23Martin Sjölund- Remove garbage
96f010d73Martin Sjölund#1484 - Do cyclic dependency checks also for conditional expressions of parameters and constants
64a0b3dd7Martin Sjölund- Changes to OMPlot (more sane interface now)
fa17737f9Per Östlund- Fix invalid free.
235f58723Federico Bergero* Updating the SimCodeQSS template
699bbd6d5Jens Frenkel- Main.mo: update usage - SimCode.mo: delete unused code - BackendDAEOptimize.mo: delete unused code
929b0c246Jens Frenkel- remove old module removeAliasEquations, functionality is now part of removeSimpleEquationsX
622abd8a5Jens Frenkel- use removeFinalParameters,removeSimpleEquationsX,expandDerOperator as default preoptModules - use lateInline,inlineArrayEqn,removeSimpleEquationsX as default pastoptModules
00f4f9190Jens Frenkel- bugfix for compare SimulationResults , Dymola uses a[1, 2], OMC use a[1,2] (no white space)
394041268Martin Sjölund- Remove the crap known as tabs from C sources
b87231229Martin Sjölund- Fix compilation
f4f60c56eFederico Bergero* Adding QSS runtime solver * Creating a new library libsim_ompd for the QSS/PowerDEVS runtime(is similar to libsim.a but without the main function)
80f7527a9Jens Frenkel- bugfix read_matlab4.c - bugfix compareSimulationResults
537e594b3Martin Sjölund- Installation of manpages (added the old ones from 1.4.5 to svn)
099cddaf8Martin Sjölund- Made the matlab reader/writer more portable (int32_t instead of int) - Use calloc+free instead of new+memset(0)+delete[]
5a23323feMartin Sjölund- Get rid of warnings
9537409c1Jens Frenkel- SimulationResultsCmp.c: - write result/log file
6012c8cb2Martin Sjölund- Fixed a type error in compareSimulationResults C-function
97e8f1831Jens Frenkel- add function to compare simulation results (May not work yet,ToDo: test,remove debugprint)
74d246c9bMartin Sjölund- Added tracing of the new symbolic operations (alias/simple eq) - Removed unreachable cases in Ceval (evaluation of integer matrices cast to Real scalars, etc)
60950a13eFederico BergeroAdding functions to the QSS backend
9cd05e0fbFederico BergeroUpdating QSS templates
bcd0cc1ddMartin Sjölund- Simplify after doing type-conversion
ccdddf944Martin Sjölund#1477 - Generate proper array crefs for a[1].b.c (previously it turned into a.b.c)
027b2999dMartin Sjölund- Added information about the inline operation to SimCodeDump - Solved memory leaks and segfaults for read_csv
52b9f5a73Jens Frenkel- use structure for simulationresults functions, make them global in the files including SimulationResults.c, this is usefull to load several result files at the same time
32205946dMartin Sjölund- Added SimCodeC.tpl error when we fail to write an initial value to the text-file
81b7d9806Martin Sjölund- Fix testsuite
9fd9b2eafAdeel Asghar- Added the CSV file reader that returns the list of variables for readSimulationsVars.
b412a5dd7Jens Frenkel- added support for dymola mat files
7d68d0f7eFederico Bergero* Adding an extra argument to the template function to pass QSS info
469933933Federico Bergero* Updating the QSS template and adding functions declarations in the SimCodeTV
d768433f7Federico Bergero* Adding functions needed by the template for QSS methods
ad5ea08c0Martin Sjölund- Added support for annotation LateInline=true as an alias of __Dymola_InlineAfterIndexReduction and __MathCore_InlineAfterIndexReduction - With priority LateInline > Inline > EarlyInline This line, and those below, will be ignored--
772acb996Martin Sjölund- Added simulate() option cflags = "" - Also added a field for this in the OMEdit simulation widget
059b1a648Jens Frenkel- BackendDAEOptimize.mo: - replace in all equations exclude the "der(a) = b" equation der(a) with b - add module to remove final parameters
8af055893Martin Sjölund- Disable running perl on normal simulations
6e087b407Martin Sjölund- Unescape comments in Interactive.getClassComment
e3b014323Martin Sjölund- Class comments
b0d15c480Martin Sjölund- Add class comments in Susan-generated code
52d2d1bedMartin Sjölund- svn:keywords
9f2f24d99Martin Sjölund- svn:keywords
d065ef7deMartin Sjölund- Some class comment changes. Some svn properies set.
c1c5a6465Martin Sjölund- Added support for NORETCALL in Interactive statements - Added new API call writeFile (analogous to System.writeFile) - Added ElementSource to SIMVAR instead of Info - Added files to generate html documentation out of our packages
0473f21d5Martin Sjölund- Added support for variables with quotes in the name
e5391b2b3Martin Sjölund- Made the Parser.mo interface a little safer (no more returning invalid AST's) - We no longer need to print as filename for ModelicaBuiltin.mo
b96c79fbeMartin Sjölund- PlotWindow now uses time as index=1, so the scale is correct
422ebcd08Martin Sjölund- Store negative alias variables in a separate array in the Matlab reader
09e6d3144Martin Sjölund- Fix for mat-files that contain alias of the time-variable
ae30379faMartin Sjölund- Fix indentation (no tabs!)
455641da3Jens Frenkel- improve matlab file writer/reader to handle alias variables accurate
da0326610Martin Sjölund- Added support for plot(der(x)) type-checking
98e8aef82Martin Sjölund- Made System.spawn return 0 on success in Linux - Added sane minimum width/height for OMPlot
8fa923c36Martin Sjölund#1472 - Fixed wrong solving of expressions where one factor is 1/x - See testsuite/mosfiles/TestSolve.mos
875e474cdMartin Sjölund- Print some more debug information
ea5c2849aMartin Sjölund- Use simplify1 instead of simplify in many places of the FrontEnd - simplify now returns a Boolean that signifies if the expression has changed
5e72d747dJens Frenkel- bugfix simulation_result_csv
1bc9bba4cJens Frenkel- BackendDAEOptimize: -improve merging of start values
594521e39Pavol Privitzer!! this update will most likely need 'clean' or deletion of omc.exe as your old Susan parser will complain on the updated SimCodeC.tpl ... sorry for the inconvenience - Susan keyword 'from' is changed to 'fromindex' (according to the last Susan specification) - some other errors are now reported with correct source location (string conversion, argument type check, options type check, function/template lookup).
ba7d37d54Xenofon Florosprints removed
1af3c9da2Xenofon FlorosDEVS Structure generation for NON-discontinuous models (probably correct)
66b1de93cMartin Sjölund- Disable type-checking of functions in the CORBA loop
e705affe8Martin Sjölund- Changed replaceExp to return a Boolean that signals if a replacement has been made - This should also be using less memory than before due to not constructing data-structures if nothing changed
43d582e49Per Östlund- Some small fixes in SCodeFlatten.
bc9497a0cMartin Sjölund- Run simplify on any algorithm statement generated
14f63d362Jens Frenkel- BackendDAEOptimize.mo: - removeSimpleEquationsX now removes all time independent equations
5f9defac3Adrian Pop- updates to mark-and-sweep GC c_runtime/meta_modelica* - fixes for VS to Compiler/runtime/systemimpl.c
d3ad836fbAdeel Asghar- All clients runtimes are moved to OMTools/bin - All required qt libs are moved to OMTools/qtdlls - Some updates in OMPlot and OMEdit - plotParametric3 and plotAll3 is added.
410b0c70bJens Frenkel- Bugfix removeSimpleEquationsX, now testsimulation passes all tests
a3b28a14dMartin Sjölund- Disable simplify after elaborating reductions
f647c6aacMartin Sjölund- Disable running simplify after each unary elaboration - Traverse each instantiated equation using simplify1 - cevalIfConstant on VAR variability expressions now does simplify1
12953dad3Per Östlund- Fix small mistake in previous commit.
8110c5f59Per Östlund- Fixed detection of recursive short class definitions. - Fully qualify all extends to avoid exponential lookup complexity. - Handle fully qualified names in SCodeLookup.lookupName. - Updated parallel test script to not run msl221 tests twice.
c14a5defeMartin Sjölund- Guard against some div-by-zero simplifications
a77f153cbMartin Sjölund- Check result of spawnCall in plot3 case
abaa59938Martin Sjölund- Changed ExpressionSimplify to use traverseExp instead of its custom traversal
a8f22b244Martin Sjölund- Make plot3() match plot() API
1fbab5ed9Martin Sjölund- System.spawnCall no longer waits for the process to finish on Linux
45490d23aAdeel Asghar- Fixed the OMPlot path.
73cc6b08fAdeel Asghar- Added a new command plot3 that uses OMPlot - plot3(x, true/false(externalWindow), filename, title, legend.....) - added spawnCall function in system.mo since system method blocks the execution so using spawn instead. - small update in plotwindow
0c30aa889Jens Frenkel- Bugfix removeSimpleEquationsX
d982adc7aFederico BergeroFixing indentation (using spaces)
202d14e97Willi Braun - added bugfix for parameter initialization and activated the testcase - added and changed some debug flag in matrix.h for LOG_NONLINSYS
4db34f5acMartin Sjölund- Remove tabs from sources
2008434d6Federico BergeroAdding functions to the QSS Backend
45344cdb1Federico BergeroAdding function UpdateDiscrete
b46b438bbPer Östlund- Fixed SVN info for SCodeDependency.mo.
3235bfe3bMartin Sjölund- Make code pretty
6c26094d8Per Östlund- Removed unnecessary key check in BaseHashTable.get1.
24fcd2b02Martin Sjölund- Made code pretty
f3cff4e67Martin Sjölund- Flat Modelica now uses "and, or, not" instead of "AND, OR, NOT" - This is to match actual Modelica syntax
621ea261aMartin Sjölund- 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)
d2e1d2d25Martin Sjölund- Remove tabs
ff13e7e50Jens Frenkel- BackendDAEOptimize.mo: - bugfix removeSimpleEquationsX
cc416738eMartin Sjölund#1467 - Disable envCache by default - Performance not affected - Added previously non-working testcase Constant12.mo
0aa00ea2eJens Frenkel- Bugfix removeSimpleEquationsX - Bugfix initialisation c_runtime windows - Util: bugfix arrayMapNoCopy_1 - add testcase testsimulate
011d188bcXenofon Floros- updates to BackendQSS.mo
ead962b34Xenofon Florosmodified the SimCode.callTargetTemplates to include correctly the generation of extra info needed for QSS simulation
bd1033a98Jens Frenkel- do not generate code for constant startvalues
1f708d6c0Jens Frenkel- improve BackEnd/BackendDAEUtil.updateIncidenceMatrix
6d5d46015Martin Sjölund- Indentation
ebc9dc0f5Martin Sjölund- In unelabMod, call simplify before trying to unelab the expression
5bd5f683fPer Östlund- Fixed infinite loop in Inst.updateCompeltsMods for Media models. - Added more redeclare test cases.
00b44917fMartin Sjölund- Started removing assert(true, ...) from algorithm sections (functions)
9ed78954eJens Frenkel- Bugfix removeSimpleEquationsX
102967442Martin SjölundNew runtime option (instead of debug-flags): $ omc +simCodeTarget=[C|CSharp|QSS|...]
56fd274cfJens Frenkel- BackendDAEOptimize.mo: - bugfix removeSimpleEquationsX
cc945f641Willi Braun - fixed Bugs in AliasEquations for clean testsuite - added testsuite case to call only simulation tests
66cc37a3aMartin Sjölund- Fix bootstrapping compilation
7e24d46b5Martin Sjölund- Removed tabs from sources
0dbeef007Jens Frenkel- BackendDAEOptimize.mo: - bugfix removeSimpleEquationsX, use var direct to update aliasVars - SimCode.mo: - use flag "qssinfo" to generate structure code QSS
56f845923Jens Frenkel- replace Debug.fcall("..",print, .. crefStr(..) .. expStr(..) by adding print functions, this is a speedup because the unused string generation from crefs and exp are avoided - Bugfixes removeSimpleEquationsX
dcc8c7681Jens Frenkel- continue to reimplement remove simple equation stuff using information of the incidence matrix
0f90cf3acJens Frenkel- continue to reimplement remove simple equation stuff using information of the incidence matrix - Util.mo: add function arrayMapNoCopy_1
a7c1a9d49Xenofon FlorosDEVS structures added
1c5d117a3Federico Bergero* Functions to replace zero crossings on whens * Functions to replace zero corssings on equations
60e920591Federico BergeroUpdating QSS template code generator
16e9fb010Jens Frenkel- continue to reimplement remove simple equation stuff using information of the incidence matrix
9965e4463Jens Frenkel- start to reimplement remove simple equation stuff using information of the incidence matrix
ce6fd3debMartin Sjölund- fill() is not a valid MetaModelica call (fix for bootstrapped OMC)
312f27176Martin Sjölund- Added ElementSource to some of the SimCode eq-systems
1110df9e9Jens Frenkel- DAEQuery.mo: delete functions varList, vararrayList and vararrayList2, using BackendDAEUtil.varList
236ad3ec6Jens Frenkel- BackendVariable: reimplement moveVariables and deleteVar using traverseBackendDAEVars -> speedup because arrays only traversed onc instead of twice because of generating a list from the array, add function deleteVars
f1c5aae5dWilli Braun - for testsuite mosfiles-msl22 separated and actived some tests (initialization) - clean up testsuite - deactived print call in BackendQSS.mo, since it break the testsuite
90e1efdabXenofon FlorosAdded functions to split equations for each state variable
4b55dd75eWilli Braun - bugfixe for generation of jacobian variables
c0ccd696cWilli Braun - fixed bug in last commit - added AliasEquations testcase
5995f48c3Martin Sjölund- Use the configured CXX also in the generated code
b37aa8a8fMartin Sjölund- Accept CC/CXX flags in more files
d4ef0587bMartin Sjölund- Support CC/CXX flags in Parser/Makefile
6903d1dceMartin Sjölund- Use -lf2c on OSX since -Wl,-Bstatic doesn't work with the OSX linker
ac6c3a1c7Martin Sjölund- Fix some compiler warnings
e7fb28855Jens Frenkel- SimCode.mo: remove case local declarations, use names of record items for match case, user ComponentReference.makeCrefIdent
d30077e29Jens Frenkel- delete BackendDAEUTil.daeEqns use BackendEquation.daeEqns - delete Expression.getCrefFromExp use Expression.extractCrefsFromExp - SimCode.mo fix Warnings (local Declarations)
34063dc8aMartin Sjölund#1461 - Added support for LibraryDirectory and IncludeDirectory - The paths search are the default ones according to the Modelica specifiction, plus mingw32 on Windows and uname -sm | tr "[A-Z] " "[a-z]-" for other OS'es
41441b75dDongliang LiSimCodeCpp.tpl is added. Entry for SimCodeCpp in susan_codegen/Makefile is added.
d74b9fae9Dongliang LiFirst part of SimCodeCpp.tpl. Generate code for Modelica system header file. Generate implementation for init, writeoutput method, constructor code and System default implementation methods. Extended VarInfo structure for dimension of first and second order state variables. Added variable index to SimVar structure.
8f9314b05Willi Braun- Bugfixes for RemoveSimpleEquations - Bugfixes for Intialization - Support for Alias Vars in result files
9f6997430Adrian Pop- fixes to boostrapped compilation
13bdba976Adrian Pop- fixed the boostrapped compiler compilation.
f0baebb10Adrian Pop- third version of GC, still disabled for now. - still about 2-3 times slower than RML. - returned to the struct implementation of mmc_mk_rcon (and intercept the MMC_REALHDR in sweep_page). - made VC++ happy by returning values from functions that should do that in RTOpts_omc.cpp
99283e06dPer Östlund- Fixed parser so that modifiers declared as 'redeclare replaceable' gets a proper Absyn.Info instead of NULL, which caused a segfault in Error.addSourceMessage.
95e550f6aMartin Sjölund- Added API function uriToFilename (takes file:// or modelica:// and produces a filename, if one exists) - Based on new functionality in System/CevalScript (to be used to generate Makefiles with -I and -L-flags set) - Added support for grouped import-elements (import A.B.{c,d=e}, etc; these generate a warning for now)
933828bf9Martin Sjölund- Added pure/impure to the parser. Fixed the column-numbers of some lexer errors.
18b749245Martin Sjölund- Added warnings for numbers that have the form .XXX (they should be written 0.XXX according to the specification)
b3c3a9534Jens Frenkel- optimise tearing algorithm
8cec25085Adrian Pop- removed duplicate target for SimCodeQSS.mo
3e8cc6dfbJens Frenkel- BackendDAEOptimize.mo: remove simple equations b = der(x) - Bugfix for removeParameterEqns - new module removeProtectedParameters - update testsuite cause of new case for remove simple eqs
3e73985c2Jens Frenkel- uncomment debug print
ad338da44Xenofon Florosinitial qss packages
145af3b8eFederico Bergero* Adding a BackEnd implementation for QSS solvers
751cc0087Federico Bergero* Adding the template to the QSS solver target
f3ad84d5cPer Östlund- Changed popTimerStack in systemimpl.c from double to void, since it doesn't return anything. - Added missing RML_TAILCALLK(rmlSC) to System__setDataPort.
d4a7efb80Martin Sjölund- Added System.timer functions to bootstrapped OMC
45d5b2429Martin Sjölund- Fix off-by-one error in System.substring
a7a942330Martin Sjölund- Fix for corbaSessionName not being NULL as it is supposed to
7476b8ea3Jens Frenkel- improve bltdump, dump variable names in the order they are solved
2e11e8a29Martin Sjölund- Add MMC_{TRY,CATCH} to in-functions generated for external functions
a2e1d4c67Martin Sjölund- Add support for Array
4d65f0b76Martin Sjölund- Added support and testing of bootstrapped System.getCurrentTimeStr
34a736c85Jens Frenkel- ExpressionSimplify.simplifyBinary: add case for (a*b)/ b = a, (-a*b)/ b = -a, (a*b)/ -b = -a, (a*b)/ -a = -b and test SimplifyBinary.mo
6f3a55579Jens Frenkel- add script functions to set pre and past optimisation modules, ToDo implement function to get pre and past optimisation modules
5de12e975EDGAR ALONSO LOPEZ ROJAS- Some fixes for bootstrapped System.{substring,regex}
f21a9ed20Martin Sjölund- Removed tabs from sources
5ac85b64cJens Frenkel- simplifyBinary: add case for (a*b)/a = b and (-a*b)/a = -b
4111c1f48Jens Frenkel- implement runtime options +preOptModules and +pastOptModuels, now it is posible to select the optimisation modules for the backend via flag, use for example +preOptModules=removeSimpleEquations,removeParameterEqns,expandDerOperator or +pastOptModules=lateInline,inlineArrayEqn,removeSimpleEquations,removeAliasEquations ToDo: implement a script function to set and get the optimisation modules - dumpComponentsGraphStr is now availible via the pastOptimisation flag use +pastOptModuels=dumpComponentsGraphStr
0f97b0355Martin Sjölund- Better ./configure --help
00919be57Martin Sjölund#1460 - Fixed noretcall in algorithm-sections
7c3fb86daMartin Sjölund- if-equation to if-expr residual translation now ignores NORETCALL, and prints a warning
4e04df2b5Martin Sjölund- Added support for code generation of M.U.S.substring
22114c6f0Martin Sjölund- Use Makefile instead of Makefile.omc for mmdev - Rewrite PAMTRANS using Susan - Use less RML operators in the mmdev examples - Added configure option --disable-omshell-terminal - Added boxptr_stringLength - Added optimization for removal of unreachable branches in if-statements
5e2827faaJens Frenkel- bugfix tearing,relaxation
407a2ee3cJens Frenkel- add optimisation module inlineArrayEqn, this inlines multidim eqs from type array = array, -> smaller equation systems for multibody models
7c6abda27Jens Frenkel- fix outpus for int and bool from result csv
0b4ebcb67Per Östlund- Store SCode.Element.CLASSDEF in SCodeEnv.Env instead of SCode.Class.CLASS, so that we have access to redeclare information. - First attempt at handling element redeclarations in SCodeFlatten, still needs more work. - Updated the Modelica.Media test with more working models.
57741360aMartin Sjölund- Allow \r in the lexer
7792d250fWilli BraunBackendDAECreate.mo: - deactivated minmax and nominal assert, due to the fact that Bug [# 1454] is caused. SimCodeC.tpl: - changed measure_time_flag to be able activate it by simulation flag "-v" SimCode.mo: - added case for generation only the "jacobian" dg/dx with debug flag "+d=jacobian" BackendDAEOptimize.mo: - adjusted to SimCode.mo "+d=jacobian" solver_main.cpp and simulation_runtime.cpp: - activated "euler" solver again, was deactived for some reason. - added additional solver names : "dassljac" and "dasslnum" for using a symbolic jacobian and own numerical jacobian in dassl. - clean up some things. testsuite: - deactivated some tests that initialise wrong, due to the Bug [# 1455] - update some tests to correct results.
8b4f5a369Martin Sjölund- ./configure now always sets prefix
758e769daJens Frenkel- ExpressionSimplify: bugfix for simplifyVectorBinary0 - fix first part of testsuite
cf6a74322Martin Sjölund- Deleted svn:executable from some source-files
3069ea40dMartin Sjölund- Fix for when libf2c is installed on the system - Also, don't compile our f2c if it is
a003abd30Martin Sjölund- Support setting CC in c_runtime/
1ba9b64e2Jens Frenkel- do not add function return values, now Pendulum simulates
54373244dMartin Sjölund- Implemented ceval of multiple for-iterators
3607af852Per Östlund- Fixed correct type when instantiating equations where the lhs is a record reference and the rhs is a record constructor.
38b59b208Jens Frenkel- improve annotation evalute handling, now equations from MultiBody examples looks better - do not propaged the dummy fixed attribute, do merge them -> ToDo
a5be963e6Jens Frenkel- BackendDAEUtil.checkEquationSize: add case for BackendDAE.SOLVED_EQUATION and COMPLEX_EQUATION
6cf81dd12Martin Sjölund#1457 - Fixed and added test for using Include="#include " for external objects
46a27d319Jens Frenkel- add check size of equation left and right hand side are equal, use +d=checkBackendDAE
1eab902adPer Östlund- Code generation fixes to get Modelica.Media test to work again after r8322.
7d2fb3c1aMartin Sjölund- Suppress GCC warning
9286934f5Per Östlund- More fixes for set/get global root.
9e82f8183Martin Sjölund- Use error() more in Susan
123de492dAdrian Pop- fixes for set/get global root (they use mmc_GC_state->global_roots, so mmc_GC_state cannot be null.
0f9d6b133Jens Frenkel- bugfix for multibody, generate also code for bind expressions of function variables
678e0015cAdrian Pop- SettingsImpl__getInstallationDirectoryPath and SettingsImpl__getInstallationDirectoryPath now return paths with forward slashes on Windows!
105bcdabdPavol Privitzer- Susan now reports unresolved bound values with proper source code location (Eclipse MDT plugin will mark the error lines) (remaining errors are still "reported" the old way, ...)
434028da7Martin Sjölund- Also look for index>0 when evaluating subscripts
f9bc7e469Parham Vasaielyupdate support for dassl2 update communication algorithm between runtime server and environment client update English comments
d3011a703Adrian Pop- possible fix to OMI interactive simulation. - use timeValue instead of lastEmittedTime.
2f3e797fdAdrian Pop- fixes to code generation for MultiBody, generate "world__gravityAcceleration" instead of "world.gravityAcceleration"
98015cdf7Martin Sjölund- Added OSX icon-file for OMOptim (only 256 px resolution as I couldn't find an icon with full resolution)
5b39b94deMartin Sjölund- See previous commit
4e5c37162Martin Sjölund- OSX fix due to GNU-specific command arguments
611d4a90aMartin Sjölund- Fixed compilation/configuration of OMOptim on Linux
7ae03d09aPer Östlund- Replaced SCodeLookup path prefix fix for imported functions with a better fix, since the old fix caused some problems. - Fixed wrong name in failtrace in BackendDAECreate.mo.
dca55e4f9Martin Sjölund- Added support to change the plot format of the performance analyzer (since PowerPoint apparently does not know that the svg format exists)
291cb2d7aAdrian Pop- fixes for Linux
1d8ff494eAdrian Pop- fixes for Linux
b3c585841Adrian Pop- improvements to mmc GC (still disabled for now as is still slow) + added roots management to SimCodeC.tpl - make VS happy by + having an array of 1 records without fields (Unparsing.tpl) + moving includes around - new file SCodeCheck.mo (more will come here) - better display of elements in SCode.mo - added RCS lines to some files.
4a31b87c6Martin Sjölund- Off-by-one error
a8484fb5fJens Frenkel- remove alias variables: merge var direction - BackendVariable.mo add functions etVarDirection, used for merge var direction
b4b62ebd4Willi Braun -fixed the bug, that breaks the simulation testsuite last night.
753f997e2Jens Frenkel- remove debug call from wrong possision
c0b753634Jens Frenkel- FMU: do not set default startvalues, this is already done
232d724cdMartin Sjölund- min/max typo :)
e58e26ce4Per Östlund- Propagated redeclare prefix for elements from Absyn to SCode.
4041547e1Jens Frenkel- add platfrom to MAKEFILE_PARAMS - FMU: generate directory from platfrom string - FMU: copy source files and delete others
033ec4165Adrian Pop- Fixes to Patternm.elabResultExp2 to NOT ASSIGN THE INPUTS. - This had a really bad behavior in the bootstrapped compiler: Util.splitTuple2List({(1,2),(3,4),(5,6)}) -> ({}, {}) instead of the correct: ({1,3,5},{2,4,6})
592ab3263Martin Sjölund- OMEdit compilation on real OS's
55f711624Willi Braun -added some dassl stats for debugflag -v - added more debug verbose level in simulation -lv {LOG_STATS,LOG_SOLVER,LOG_EVENTS,LOG_NONLINSYS,LOG_ZEROCROSSINGS,LOG_DEBUG}
53d870f5bAdrian Pop- small fixes so that OMC bootstrapping works!
8b8523503Azam Ziaupdated makefile to create .fmu zipped file with proper directory structure. I have added code that creates .lib file to make it compatible with dymola import. Now we can export small models and import them in dymola.
2c634e105Pavol Privitzer- removed templateError() imported function (from my previous commit) ... to be replaced by the new approach: - introduced new magic builtin function sourceInfo() that returns contextual Absyn.Info structure based on the position in template files. The sourceInfo() can only be used as a direct parameter into a template/imported function,... no let binding of its value is possible for now (to be possible when full semantics of the let will be implemented) - added two Tpl functions Tpl.addSourceTemplateError() and Tpl.addTemplateError() to SimCodeTV.mo which can be used to implement user defined templates for reporting template errors, - see error() and errorMsg() example templates in SimCodeC.tpl and one usage of error() in literalExpConstBoxedVal() template - Susan compiler now fully captures source info for every expression, so the proper semantic errors are on the way "to be really soon ..."
76eb52300Willi Braun- rewrote the generation of the analytical jacobian -> gain the performace a lot - fixed bug in solver_main - added "dassljac" as solvername that use the analytical jacobian for simulation
71df6bc5cJens Frenkel- bugfix remove alias equations
4002af628Jens Frenkel- BackendDAECreate.mo: do not add asserts for min,max,nominal if const true - BackendDAEOptimize.mo: merge nomnial attribute - BackendDAEUtil.mo: bugfix checkinitialconditions for remove alias equations - BackendDump.mo: dump min,max,fix,nomial,start - FMU: bugfix alias equations
b24474cd6Per ÖstlundFixes for Media: - Fixed Inst.makeBinding so that it correctly handles records. - Commented out recursive calls to simplify2 in ExpressionSimplify.simplifyBinarySortConstants and simplifyBinarySortConstantsMul, see bug 1450. - Changed declaration of sat in Modelica.Media.Water.WaterIF97_base.BaseProperties to be a modification instead, since it already exists as an inherited component (see ticket 505 on the Modelica Issue Tracker). - Updated test cases due to different simplifications. - Added test mofiles/RecordConstant4 to test the record binding fix.
c4ce2274fMartin Sjölund- The performance analyzer now outputs correct XML (replaces invalid characters in XML)
519a8ba16Azam Ziafmi eventindicator fixed, makefile changed to create directory structure.
a029c9a48Martin Sjölund- MetaModelicaBuiltin now uses List and short syntax (no subtypeof) for all builtin functions
5f6a1ad93Martin Sjölund- Remove tabs from fmu_model_interface
e70ec3f89Azam ZiaAdded code for eventupdate function.
954dff916Pavol Privitzer... continuation from the previous commit (I hit enter accidentally) - added templateError() imported function to be used inside templates to report an "unexpected template error", usage is like this:
f7550cfa0Pavol Privitzer- added templateError() imported function to be used inside templates to report an "unexpected template error", usage is like this:
c7a71fb1aMartin Sjölund- Made the configure script not use [0-9] since [ and ] are special in autoconf
ac1c7fe65Martin Sjölund- Added support for List<> and Tuple<> instead of list<> and tuple<>
b82acce7cMartin Sjölund- Added support for short form of declaring type variables (MM 2.0) - See testcase Polymorphic2.mos
092bdef19Martin Sjölund- Added support for MetaModelica 2.0 "all wild" pattern REC(__) - Has testcase AllWild.mos
0f85d4948Martin Sjölund- Don't use std::{min,max,abs}; use C99 functions instead since that makes VS-users happy
94684abb6Jens Frenkel- fmu: - bugfix - BackEnd/BackendDAECreate.mo: - generate asserts for min/max/nominal not vor constants
c08919278Martin Sjölund- configure now puts the revision into the getVersion command (not working for OMDev since they don't ./configure or use command-line svn)
b19e00fbcPer Östlund- Fixed lookup of components in constant class array instances. - Added test mofiles/RecordConstant3.
6f22f48ebMartin Sjölund- Changed DAE.REDUCTION to contain a list instead of just one - Static, Simplify and Ceval do not yet use these, but should in the future
1920e4532Martin Sjölund- mmc_mk_rcon and mmc_unbox_real now do not use a padded struct for allocation/access of data
0991a6016Per Östlund- Fixed lookup of components in constant class instances. - Cleaned up SCodeFlatten by removing some unnecessary code. - Renamed badly named protected_ to variability in DAE.ATTR. - Added test cases mofiles/RecordConstant1 and mofiles/RecordConstant2. - Updated Modelica.Media test with Modelica.Media.Air.SimpleAir.
70807bb0aMartin Sjölund#1446 - OMEdit now uses
 for non-html documentation
49dfc7681Martin Sjölund- OSX /bin/echo does not support the -e flag (GNU extension)
6441bb648Martin Sjölund- Re-enabled QMake macports workaround (it's still present with default MacPorts CFLAGS)
83d472aadMartin Sjölund- Removed the QMAKE workaround for OSX, as MacPorts has now solved the problem
fac56716dMartin Sjölund- Use DIM_UNKNOWN() when a reduction has a guard-expression
d02d19c1eJens Frenkel- check Min, Max, Nominal asserts of constant false
f66835684Martin Sjölund- Fixed codegen for reductions using guards (except for array-reductions)
39fa6f6d6Jens Frenkel- fmu: fix bugs - add new functionality removeAliasEquations (usable with +d=removeAliasEquations), the alias equations are removed from the knwon equations TODO: implement output of alias equations in simulation_result_(plt,mat,csv) - add Alias vars to BackendDump.dump - use DAEUtil.setFixedAtt for function BackendVariable.setVarFixed - add function BackendVariable.setVarStartValue - use BackendDAEUtil.numberofZeroCrossings to generate SimCode.createVarInfo -> speedup because calculate size of states, algs, bool, ... only once
93b914dbeJens Frenkel- add new functionality: - add asserts for basic types attributes min, max and nominal (see ModelicaSpec3.2 page 46)
f2e258b1fJens Frenkel- fix testmos use trunc/testsuite/mosfiles
fcc64fabcMartin Sjölund- Improved Ceval of reductions without default value (use the first non-filtered value) - ListReductionCodegen now fails because I added the above as a testcase (the generated code will select the first expression regardless if it is matching...)
b1529ce5fMartin Sjölund- Ceval now handles custom reductions (including guard-expressions)
4a1885df4Martin Sjölund- OMPlot now compiles on Linux - Made OMPlot not crash if too few arguments are given
fc52f5e05Martin Sjölund- Improved Ceval of reductions a bit
adeca3e8cMartin Sjölund- 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
18e8d8bc5Azam ZiaAdded code for getEventIndicator function.
c2312aae8Jens Frenkel- start to remove alias equations from simulation calculation, not yet finished
e442e91d0Martin Sjölund- Added codegen test of reductions (list/listReverse/min/max/sum/product/array), using both lists and arrays as the input - Note that array-reductions now work in generated code - TODO: More general reductions (sum of strings for example)
3ca1659d2Jens Frenkel- update fmi because of new solver interface
ed77d99eaWilli Braun- removed old dassl solver - adjust testsuite
9f0dc048fPer Östlund- Fixed checkSubscripts to handle non-constant ranges as subscripts, which previously caused CevalFunction to fail for some functions (this speeds up the Modelica.Media test). - Fixed stupid check in bootstrapping/LinkMain.makefile.
980b25af2Per Östlund- Don't remove path prefixes when looking up imports in SCodeLookup if we're in an encapsulated scope.
913f539aeMartin Sjölund- Made System.int/realMaxLit external "builtin" again (because external "C" is limited to 32-bit int, while our longs are 64-bit) - Plus some fixes to the runtime system (declaring them in a header, since external "builtin" does not do that for us)
33cb4eb14Adrian Pop- add missing System.removeFile
45a522b40Adrian Pop- fixed compilation of the bootstrapped compiler
a824af443Martin Sjölund- Added rules for DAE.REDUCTION in ExpressionSimplify instead of Static - Removed the hack used for multiple iterators (DAE.REDUCTION should support this rather than only supporting constant ranges of multiple iterators) - This causes the synthetic tests using multiple iterators to fail; they will be fixed at a later date - Added Option to DAE.REDUCTION instead of having multiple versions of the start-values in the compiler
36910f39bJens Frenkel- bugfix dumpXMLDAE, uncomment generation of Tags hashTb and hashTbOldVars because implementation of dumpXMLDAE is not correct, add a fiew error msgs
dc5f8cc6dPer Östlund- 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.
d3e2bf018Jens Frenkel- Derive: - differentiatetime: add case for records and arrays
3ce145399Adrian PopFixes for bug: #1446 - fixes bug: https://openmodelica.org:8443/cb/issue/1446 - get the info annotation from external declaration in a function! - added testsuite/interactive/showDoc.mos to test this.
a523ca654Martin Sjölund- Added support for list comprehensions using guards
fd5c9d5a0Martin Sjölund- Changed Absyn.ForIterator from tuple to uniontype, and added a field for guard (only parsed when +g=MetaModelica is enabled; and doesn't do anything yet)
9bbe9e75aMartin Sjölund- Rewrote Expression.replaceExp using traverseExpTopDown
83d12977eJens Frenkel- FMU: avoid warnings
efa1adebeMartin Sjölund- Remove tabs from C sources
77ee5f835Martin Sjölund- Added support for list and listReverse reductions - listReverse builds the result using cons - list builds the result using destructive cons-operations - Neither way uses listReverse or allocate more cons-cells than required
4ef9549ccJens Frenkel- FMU: - use integer as type for enumerations, until implementaion is not complet - do some more tests, add flag for calculate outputs/dependend variables
916e7f474Per ÖstlundFix for bug #1438: - Fully qualified parent classes InstExtends.instClassExtendsList2 when handling class extends. - Added test case mofiles/ClassExtends5.
44dd99308Martin Sjölund- Added call count graphs to the profiling report
ab30fc030Per ÖstlundFixes for bug #1436: - Replaced the dependency analysis in CevalFunction with a new that uses the Graph package, to fix bug 1436 (and probably more too). - Added traversal function Expression.traverseExpBidir. - Added function ComponentReference.crefEqualWithoutSubs, which compares two crefs but disregards their subscripts. - Extended Expression.subscriptExp to handle more cases, and added subscriptIndexExp that has the old behaviour of only handling DAE.INDEX. - Added test case mofiles/FunctionEval11 to test fix for bug 1436.
7943317acPer Östlund- Removed Interactive.traverseExp and replaced calls to it with calls to Absyn.traverseExp instead.
a8807711ePer Östlund- Changed fail case in Algorithm.makeAssignment to use failtrace. - Updated test cases.
80505f9cfPer Östlund- Added warning message in Inst.instWholeDimFromMod for when we can't deduce a variables dimensions from it's modifier (to avoid failing without an error message). - Updated test case libraries/msl31/Modelica.Blocks.mos.
b64b46cb6Martin Sjölund- measureTime=true now does the timing of the non-linear solver based on the whole time (incl. the solver itself, not only the time of the residual function)
0b1cd57b2Martin Sjölund- Made it a simulation error to an output-format that is not known instead of defaulting to plt - Updated the measureTime option to print outputFormat and data sizes - Improved handling of simulate() errors (now prints the contents of output.log when the simulation executable signals an error)
f6d365639Martin Sjölund- Fixed compilation of OMPlotWindow
8e038e785Martin Sjölund- Fixed compilation of OMNotebook
37e8d617cMartin Sjölund- Fixed compilation of OMShell (changed paths in makefiles)
cabc171e0Martin Sjölund- Removed Windows-specific generated files that interferes will other OS'es
564540498Adeel Asghar- Added OMTools, used to built all tools OMEdit, OMShell, OMNotebook and OMPlotWindow
892a4054dAdeel Asghar- Removed VC++ stuff and now mingw is used to compile omnotebook and omshell.
ab0dc8cd6Martin Sjölund- Removed tabs from sources
a15e54871Adrian Pop- more updates
7f9d895a3Adrian Pop- update the readmes a bit.
04cedc4c8Adrian Pop- README-WIN32.txt is no longer actual as we only compile the release with MinGW and OMDev and only create the .msi from these executables. - Look into README-BUILD-RELEASE.txt to see how to build on windows.
c0d0d6d3cJens Frenkel- fix typo
3e9baabb0Jens Frenkel- improve fmiSetExternalFunction
c4b7b4c89Martin Sjölund- Set OPENMODELICAHOME in Main.main to work around issues with sendData
dad6a1d5dJens Frenkel- use cref because #define A.B is not allowed because of "." error C2008 (Visual Studio)
88befc8caMartin Sjölund- Use vfork instead of Qt's process creation in sendData (on OSX/Linux) as it causes weird issues
366ed4e47Jens Frenkel- implement causality for fmu
ad122088dMartin Sjölund- Improved configure finding qwt when guessing it existing in $PREFIX
17d636bbfAdrian Pop- first MetaModelica GC draft, disabled for now - see more in c_runtime/meta_modelica_gc.h - added GC bindings to: Compiler/susan_codegen/SimCode/SimCodeC.tpl, commented out for now - made all structures non-constant to allow marking/unmarking.
e6ddb2e10Adrian Pop- fix the gnuplot on Windows in simulation_modelinfo.c - get rid of the warninging in simulation_result_mat.cpp
cf3e03871Martin Sjölund- Hardcoded xsltproc and gnuplot paths for simulations on Windows
a05f00982Adrian Pop- fix Linköping - fix missing %s in print.
55a301244Adrian Pop- IN WINDOWS YOU WILL NEED A NEW OMDEV (just do svn update on OMDev) OMDev is now in Subversion here: https://openmodelica.ida.liu.se/svn/OpenModelica/installers/windows/OMDev - now we copy xsltproc and gnuplot directories from OMDev/tools to build/lib/omc/libexec - Linux/Mac users are unaffected.
c2c31c5e1Martin Sjölund- simulate option measureTime=true is now working; testcase MeasureTime.mos has been added
a80e39aa7Martin Sjölund- Added configure checking of libqwt
0b05027f5Martin Sjölund- Fixed the field names of DAE.ExternalDecl (the names and types were off-by-one since the translation from RML)
e35732679Jens Frenkel- compile dll for fmu
25f0b5794Martin Sjölund- Fixed line endings of several files
f04455326Martin Sjölund- Fixed issues when looping over ranges with step=0 (add assertion), negative step (inf.loop in CevalFunction) and zero-length ranges (the generated C-code would iterate once anyway) - This is tested by testsuite/mosfiles-nosim/ZeroRange.mos
c80960148Martin Sjölund- Removed tab from fmu_model_interface.h
d908592b2Azam ZiaUpdated variable ids for c and xml files.
e387022e5Jens Frenkel- get first fmu example running (no event handling)
f4749463dMartin Sjölund- Added simulate() option measureTime=false - Not used for now, but will replace the -mt option of simulation executables
e0f32bf01Martin Sjölund- Use -O3 -falign-functions for simulations (our users should not run LARGE simulations with -O0...) - Use -O0 -falign-functions for dynamically loaded functions (we generally only execute this code once) - falign-functions is needed in order to make garbage collection work
2ccc988cdJens Frenkel- update c_runtime/CMakeLists.txt - fix bug for FMU DefineDerivativeVariables no ";" at the end of derivatives
f9b8da9d8Martin Sjölund- Removed unused CevalScript functions
03b43735fMartin Sjölund- Don't use globalData in modelinfo.c
e186a008aMartin Sjölund- Added a fix for debugging longjmp on any platform (the debugger needs to be a breakpoint on file Catch.omc:1 in order for step over to work) * meta_modelica.c needs to be compiled with debug symbols for this work, but that's a minor issue
dd89f9da8Per ÖstlundFix 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.
fca7b301bMartin Sjölund- Changed tuple-assignments to use subtype instead of matchType (since the type-casting rules do not become part of the DAE) - All testcases still work (because only MetaModelica uses this feature, and when using MM, we have access to pattern-matching assignments, which do work properly)
4c043e587Jens Frenkel- remove unused functionality
f49830edcJens Frenkel- run remove simple equations also in past optimisation phase
9c202be76Martin Sjölund- Time measurements now use a binary format instead of csv (a format description is part of the generated xml)
9f2dcd2a6Jens Frenkel- remove unused code - rewrite collect zero crossings function interface to run it only once(not in lower and matching)
8898c8f3eJens Frenkel- bugfix for MinGW (undef ref to assert)
f370a087cMartin Sjölund- Fix compilation on OSX
6124afecfJens FrenkelBackendDAETransform.mo,SimCode.mo: - remove unused function calls Main.mo - bugfix typo
f10a6fef4Adrian Pop- fixes for MinGW windows
e55546c16Martin Sjölund- Added better output when doing time measurements of simulations. - For now, I use xsltproc and gnuplot for transforming an xml representation of the time measurement (in addition to png thumbnails and svg plots)
42a3a82eaPer Östlund- Implemented dependency sorting of constants in instElementList. - Rewrote Util.listDeleteMemberOnTrue to be more efficient and to return also the deleted element. - Updated some test cases that changed because of the dependenc sorting. - Fixed some errors and test cases due to commit 8048.
7d828b16fJens Frenkel- first part of new interfaces for equation system pipeline ToDo: DAEHAndler part
8ffaa4d7bPer Östlund- Enabled removal of unused constants in SCodeDependency. - Rewrote Util.listIntRange* to be tail-recursive and to better handle all cases, to get rid of the stack overflow in test bootstrapping/UtilTest. - Replaced implementation of ExpressionSimplify.simplifyRange with call to Util.listIntRange3. - Removed Absyn.optPathAppend because of duplicate functionality in Absyn.joinPathsOpt. - Removed test case mofiles/Function3, because it was incorrect.
6942d2021Martin Sjölund- Use .mat outputFormat when using the +s option to command-line omc
920eb526bMartin Sjölund- Fixed compilation on a clean trunk
ded5d0f06Adrian Pop- use PERL=perl instead of PERL=\"perl\" - updates to clients OMNotebook.exe, OMPlotWindow.exe, OMShell.exe
973a06709Martin Sjölund- Fixed a bug with plt output when variableFilter is used - Added Absyn.Info to SimCode.Function - Started working on -modelinfo flag of simulation executables - Removed "bin" output format as mat has similar performance, and also contains headers so we can access the data
43260560fMartin Sjölund- Don't let the CORBA implementation free() tempDirectoryPath
9cd836275Martin Sjölund- Always filter the dummy derivative from the result-file
dea972f82Martin Sjölund- Fix result-file containing names C.der(x) instead of der(C.x); the first one is not a valid Modelica identifier and won't parse... - Fix plotting in OMEdit (send "filename.mat" instead of filename.mat)
f2c1d042bMartin Sjölund- Install .app's to /Applications/MacPorts
91c8a72afMartin Sjölund- Install .app's to /Applications instead of prefix/Applications
d5ac6e4c8Adeel Asghar- added cplusplus macro to the read_matlab.h so that it can be linked against c++ files. - Changed the simulate command to use mat as default. - Changed the plot API accordingly.
e42fc636aMartin Sjölund- Install .app's instead of executables in OSX
e275c992dMartin Sjölund- Only link omniORB statically on OSX; it gives -fPIC errors when building shared objects on 64-bit Linux
a1d04dfc3Martin Sjölund- Fixed a plot/plot2 typo
36bf735b0Martin Sjölund- Statically link omniORB on OSX/Linux
867a83b55Martin Sjölund#1399 - Moved the remaining scripting functions from CevalScript.cevalInteractiveFunctionsOld to cevalInteractiveFunctions2
1738ca1aaMartin Sjölund- Moved the getBuiltinAttribute functions to ModelicaBuiltin.mo - Enabled the mosfiles-nosim/attributes, which still fails - This is due to CevalScript.getBuiltinAttribute apparently not working correctly
41928da12Martin Sjölund- Updated enableSendData(true) to use the variableFilter option of simulate() instead of using the setVariableFilter API call - Removed the setVariableFilter API call
5cb457560Martin Sjölund#1399 - Moved plotParametric{,2} to ModelicaBuiltin.mo
7986a00c8Martin Sjölund- Moved plot,plot2,plot2,plotAll and visualize commands to ModelicaBuiltin.mo - Their API changed slightly (this will be announced when plotParametric also has been moved to ModelicaBuiltin.mo, and documented in trunk/doc): * Instead of plot(className, {x,y}), you now call plot({x,y}, "className_res.mat") * This is because className is usually used as a default argument, and thus should not be the first argument since then you cannot call plot({x,y}) * Also, we use the filename of a result file because then we can plot renamed files or files that were created using the fileNamePrefix option of simulate()
2719121b0Martin Sjölund- Added support for the variableFilter option when using outputFormat="mat" - This does not filter parameters (this matrix is rather small anyway)
fc2f87fe0Martin Sjölund- Fixed assignments in Interactive.mo to use the value to determine the type of a binding (since the elaborated type may contain unknown dimensions, but the Value certainly does not) - Fixed a bug in the handling of readSimulationResult (if the input size does not conform to the expected value, we now fail instead of writing to the error buffer and succeeding anyway) - Moved list() to ModelicaBuiltin.mo - Added support for default bindings of type OpenModelica.Code.TypeName
ae0fa6cf6Jens Frenkel- Bugfix replaceExp RELATION - use mosfiles-dassl for testmos (cause mosfiles does not exist any more)
bf39adc16Martin Sjölund- Added OpenModelica.Code.VariableNames since the type system cannot handle arrays of Code expressions or vectorization of these - Added readSimulationResult to ModelicaBuiltin.mo instead of using a special handler
f452c9a33Martin Sjölund- Fix compilation of bootstrapped OMC
41c372bf0Martin Sjölund- ModelicaBuiltin.mo formatting
36c394692Martin Sjölund- When calling val() on a .mat file, use the right limit if we find an exact match of a time stamp
dbb175359Martin Sjölund- Call SimulationResults.close() before running a new simulation
7a39a8e7aMartin Sjölund- Updated the default outputFormat of simulations to be .mat - Only mosfiles-dassl/Sample2.mos changed its output; this seems to be because we have an event at the last time-step. I'll see if we can change the interpolation to always find the right limit
ab52ae8b0Martin Sjölund- Added support for readSimulationResult using .mat-files - This is ~5x faster than reading .plt even for files with few variables
57334028bMartin Sjölund- Disabled some debug tracing in InstExtends.mo
7693ab6e6Martin Sjölund- Added API call readSimulationResultVars(filename) - The visualize call now uses this functionality (which works for both plt and mat files)
9184a0fd4Adrian Pop- add -lregex to the compilation in Windows.
909f7c1d6Per Östlund- Added function Util.listMapAndFold1. - Rewrote updateComponentsAndClassdef in InstExtends and SCodeFlattenExtends to use Util.listMapAndFold1, to make it tail recursive and easier to understand.
7abfd0de4Martin Sjölund- Added readSimulationResultSize support for .mat format
24b8a3534Willi Braun- bugfix in differentiation rule for abs() - added some improvments in the c_runtime - adjust the SimCodeC.tpl for the c_runtime - adjust some testcase and moved some from msl221 examples to failed testcase, because they not simulate correctly anyway.
6494fa9d7Per Östlund- Improved dependency analysis of crefs in SCodeDependency.
ab5f4afd8Martin Sjölund- Expression.terms now uses an accumulator instead of listAppend
eaed403e5Per Östlund- Better handling of class extends in SCodeDependency. - Added test case mofiles/ClassExtends4.
6dbfa8407Per Östlund- Rewrote Expression.terms to always return the input argument if it can't do anything else, so that terms are not lost. - Added test case mofiles/Simplify2.
5dbf28750Per Östlund- Added DAE.BOX and DAE.UNBOX to Expression.terms, so that they don't disappear in Expression.simplify. - Added test case meta/Simplify1 to test the fix.
6615bd1daMartin Sjölund- Added a new SimulationResults.c - It only supports val() for now, but handles both .mat and .plt - It caches the last file opened for .mat (and the read variables). This should make it rather fast when scripts use a lot of val() commands. Especially since the whole Time vector is stored in memory (2 fread required for each val command; searching for a variable is done in log(n) time since all variables are sorted, etc). - NOTE: Someone should test simulate(A); simulate(A); on Windows. The file might need to be close prior to each simulate command (add a call in System.mo if this is the case) - TankPID.mos now tests val() on .mat-files - val() now returns NAN on error, and sets the error buffer instead of printing to console
b4b23497fPer Östlund- Added missing SCodeDependency file.
3d07acba6Per Östlund- Added new module SCodeDependency for SCode dependency analysis. - Added new debugflag +d=scodeFlatten to enable SCode flattening. - Removed environment path when printing error for components with same name, since it sometimes printed nonsense paths otherwise. - Updated test cases that changed due to above change. - Renamed absynExpOption to binding in SCode.Mod. - Added function Util.listMap02. - Added some more builtin Modelica functions (assert, constrain).
f73b1bfe4Martin Sjölund- Some bugfixes for read_matlab4.c
ea5b1ee4aMartin Sjölund- Added C runtime for reading the .mat format
818ab5995Martin Sjölund- Fix for .mat output-format on 64-bit Linux (use uint32_t instead of long)
cc2fb5f8fMartin Sjölund- Fix default x-label of the plotParametric command
bae39ab50Martin Sjölund- Calculate better start-values for the init-file by interpreting function calls in the backend
b6ef61defMartin Sjölund#1317 - Added support for simulation option fileNamePrefix (in the simulation runtime) - Added support for quoted identifiers in generated code - See for example testsuite/mosfiles-dassl/JapaneseBouncingBall.mos
8740ef5bfMartin Sjölund- Added support for boolean min/max operators
805990a27Willi Braun- changed default solver to dassl2 (or from now it's called dassl) - for now old default solver renamed to dasslold
eb204c4d6Martin Sjölund- Added option variableFilter to translate/buildModel/simulate commands/simulation runtime - This argument is a regular expression; any variable that matches this expression is present in the result file - The default value is ".*", which matches _any_ variable - The regex provided is treated as: ^(%regex%)$, i.e. you are forced to write regular expressions that match the complete name (no substring matches) - Currently only implemented for plt/csv formats with mat coming in the near future
c32a130beJens Frenkel- Update CMakeLists.txt files for c_runtime
83123033dAdrian Pop- added README about 3rdParty directory move.
fd27a4645Martin Sjölund- Now runs convert_lines.pl in simulation and function makefiles
ceb9d8aebWilli Braun- fixes for testsuite dassl2 and modelicaML - rewrote assert and terminate process for solver - added function checkForAsserts() - added asserts for sqrt(<0) changes in detail: - boolean_array.* -- added function for print modelica boolean - options.cpp -- fix bug for using options in simulation programm - simulations_events.* -- rewrote searching process - simulations_runtime.cpp -- added flag for solver switch (-s ) - solver_main.cpp -- adjustments to other changes - BackendDAEUtil.mo -- check RELATION for discrete Variables - SimCode.mo -- added searching for sqrt-asserts, some other adjustments - testsuite -- adjustments
c7c474f78Martin Sjölund- Added stringCharInt, intStringChar boxptr-functions
5b166cb0dAlexey LebedevProcessing of fill(val,dims) with parametric dimensions in the case of non-expanded arrays.
71863724fJens FrenkelFix for bug/tasks: #1429 - replace the function with an additional variable with type of return value. Maybe some models of the testsuite using checkModel does now not work but my laptop is to slow to run the hole testsuite.
c1dcbb7b5Per Östlund- Fixed incorrect type when generating if-equation for actualStream. - Added test case streams/ActualStreamCodeGen to test the fix.
4798b5a97Jens Frenkel- add space in init file to number of parameters line, now looks like the others
ed30b830fNiklas WorschechAdded cpp simulation runtime SimulationRuntime/cpp Binaries copied to trunk/build/bin/cpp and trunk/bin/lib/omc/cpp
39f9ad19bAdrian Pop- Absyn.crefHasSubscripts has a new function to check if a component reference has subscripts
3aef3ef63Martin Sjölund- Added check for ClassInf.trans when instantiating equation-sections - Packages and functions containing equations now fail
d98da61dfMartin Sjölund- Fixed handling of string literals: - elabExp will now unescape any string to canonical form - calling MM stringLength on a string now returns the actual length of the string - calling expEqual on strings now works correctly - using CevalScript now returns properly escaped strings; for example "ab\"c" is now displayed instead of "ab"c" (which would not parse) - Note: list() in CevalScript and Interactive is different! The one in Interactive will not escape output strings - This seems to make OMEdit work as expected, but the function should probably be fixed - Note: Any elabExp-style function (takes Absyn.STRING as input) should now use System.unescapedString on the given string to make it canonical - System.unescapedString will only break string sharing if the string has to be modified (if it has no sequence to unescape it returns the old string)
8676882c3Adrian Pop- add -lregex for linking in Windows.
dcfef2fc3Per Östlund- Implemented constant evaluation of array reductions in Ceval.
b62b79373Martin Sjölund- Added regex and regexBool scripting functions, and a testcase
bd0622417Per Östlund- Added support for wildcard assignments in CevalFunction.
375e398b3Per Östlund- Fixed problems with local function variables with flexible sizes in CevalFunction. - Added test case mofiles/FunctionEval10.
684d308b2Martin Sjölund- Added initial implementation of scripting function regex (we might make this part of the MetaModelica builtin environment because it is so nifty...) - This version lacks some features (only returns true/false, but it does set Error.mo so even if it looks like it succeeds you should check it)
b21bfeff6Martin Sjölund- Added scripting function readFileShowLineNumbers - It's implemented in OpenModelica script instead of MetaModelica itself
4535d12edPer Östlund- Added symbol table to CevalFunction.
9154341d4Per Östlund- Fixed correct limits for reductions on 64-bit platforms. - Added simplification of reductions of an array with one element. - Updated test mofiles/NonConstantReduction.
c52165770Per ÖstlundFix for bug #1412: - Removed error message for non-constant reductions. - Added test case mofiles/NonConstantReduction. - Fixed test case mosfiles/val.
6d4cd6094Martin Sjölund- Added Absyn.Info comments for statements in the generated C-code
005aa8816Per ÖstlundFix for bug #1422: - Fixed incorrect type on ranges when doing type conversion. - Updated test mosfiles-dassl2/nonConstantParam and added test mofiles/SimplifyRangeInCall.
2d7a8ce1fMartin Sjölund- val() is now part of the builtin environment
5d8d0ec8bPer Östlund- Fixed proper handling of encapsulated in SCodeFlatten. - Fixed test mofiles/Sequence and added mofiles/Encapsulated4. - Detabbed some comments.
140bca3dbMartin Sjölund- Moved more scripting functions into the builtin environment - Some even have a bit of documentation attached now
a767bd176Per Östlund- Fixed correct scope type when adding new classes to the environment in SCodeFlatten.
d08c03d99Per Östlund- Added support for enumeration redeclarations in SCodeFlatten.
83f902cfcMartin Sjölund- Added support for OpenModelica.Code.TypeName - checkModel can now be represented in the builtin environment
264187dfbPer Östlund- Added flattening of array dimensions to SCodeFlatten.
be6bcd243Per Östlund- Fixed flattening of short class definitions with modifications that depends on the extended class.
6137bfd8fPer Östlund- Added a new type of cref, Absyn.CREF_INVALID, which is used for crefs that could not be looked up in SCodeFlatten (which might still be valid, as long as they are not used). The error reporting for crefs that could not be found is now delayed until elaboration instead. - Removed some code for checking optional conditions, which is no longer needed because of CREF_INVALID.
9dbc91dc4Martin Sjölund- Propagated cache+env to BackendDAEUtil
d44c008a3Martin Sjölund- Some fixes for compiling SCodeFlatten using bootstrapped OMC
5579ef703Per Östlund- Fixed extends so that imports are not inherited in SCodeLookup. - Added error message for extends-clauses that depend on inherited elements. - Added test case mofiles/InvalidExtends1 (disabled for now until SCodeFlatten will be used). - Fixed invalid use of extends in test mosfiles-nosim/FinalTests.
0909f0ecePer Östlund- Renamed SCodeFlatten.flatten to flattenProgram and added flattenClass. - Added flattening of functions in Interactive (disabled by default). - Renamed some functions in SCodeFlattenImports to be grammatically correct. - Added fail as a builtin MetaModelica function in MetaModelicaBuiltin. - Added missing declarations in test case parser/MetaModelicaMatchElse.
8a15ea471Per Östlund- Fixes for redeclare modifiers in components for SCodeFlatten.
fca3700bbPer Östlund- Propagated Absyn.Info from Absyn.ElementSpec to SCode.Element in SCodeUtil. - Replaced print with proper error message in SCodeEnv.checkUniqueQualifiedImport;
5b99a68b8Alexey LebedevModified non-expaned array processing so that DAE.RANGE is not used anymore.
d9dcf7513Martin Sjölund- Added Absyn.Info for Absyn.IMPORT(...)
16a6f00b2Martin Sjölund- Removed some warnings about duplicate variable info being generated by not generating these anymore.
3f0f24654Per Östlund- Better comments and error messages in SCodeLookup.
3285478fbPer Östlund- Implemented better support for match/matchcontinue expressions in Absyn.traverseExpBidir. - Fixed better error messages from SCodeLookup.lookupName.
098890ec2Martin Sjölund- Added printing of Absyn.Info when assertions happen in the simulation runtime, i.e. + e.g. [StringTest.mo:8:1-14:56:writable] Simulation call assert() at time 0.11 ...
21e74d6c6Per Östlund- Implemented better support for MetaModelica in SCodeFlatten.
744f70aa8Martin Sjölund- Added a guard against algebraic types in the Modelica3 parser (list<...> only available with +g=MetaModelica)
5951d7e3cMartin Sjölund- Fixed codegen for some reductions - ExpressionSimplify: + min/max({exp}) => exp + min/max({exp1,exp2}) => min/max(exp1,exp2)
df8e10c39Martin Sjölund- Added Absyn.Info to Absyn.REDECLARE and updated SCodeUtil - Fixed a bug in ExpressionSolve.mo
d68edcfffPer Östlund- Changed SCode.COMPONENT to have an Absyn.Info instead of an Option. - Changed print to proper error message in SCodeEnv.avlTreeAdd2. - Updated some test cases due to better error messages.
186a48fbfPer Östlund- Added simple check for recursive short class definitions in SCodeFlatten, to avoid stack overflows.
99e9e864eWilli Braun- correct a mistake from r7788
6e177f3a7Jens Frenkel- bugfix for BUG-1409 introduced in 7745
8e17c9f19Willi Braun- Bugfixes for generation of jacobian matrix added testcase for that issue
f3fe405e2Martin Sjölund- Added expression simplification for asub of ranges, e.g. (1:2:10)[2]=>3
487f97bd9Per Östlund- Changed SCodeFlatten.flatten so it uses the correct variables. - Changed SCodeEnv.printEnvStr so it prints the whole environment instead of only the last frame. - Implemented support for derived classes in SCodeFlattenImports.
a640039d7Martin Sjölund- Added ceval of more arguments to scripting functions
610c8b6d1Adrian Pop- split SCodeFlatten.mo into several files: SCodeEnv.mo SCodeLookup.mo SCodeFlattenImports.mo SCodeFlattenExtends.mo SCodeFlattenRedeclare.mo
e9026c2cbPer Östlund- Implemented redeclaration of variables in SCodeFlatten.
7cd722c3dPer Östlund- Fixed small mistake in SCodeFlatten that caused compilation to fail.
7375f067aPer ÖstlundSCodeFlatten fixes: - Fixed path-merging bug when looking up through imports. - Propagated Absyn.Info where needed and replaced some print-calls with proper error messages. - Added evaluation of conditional expression when lookup of a component fails.
06dd617faMartin Sjölund- Updated Absyn.Modification to store an EqMod instead of Option. This also contains Absyn.Info. - Moved more scripting functions from Interactive.mo to CevalScript.mo, and defined them in ModelicaBuiltin.mo - Some of the scripting functions are defined in the builtin environment instead of special rules - getEnvironmentVar now returns "" instead of "error" - Removed MetaModelicaBuiltinImports.mo (defined in MetaModelica.mo as builtin instead of import X=Y) - Added simplification of String() - Fixed a bug in getTmpDir for RML
dc9e35642Per Östlund- Added spliceFunction as a builtin function, since it's used in Modelica.Fluid (it's probably a Dymola builtin function).
2d127f0f7Per Östlund- Fixed bug in SCodeFlatten.qualifyRedeclare where the merged path was incorrect.
0fcde286aPer Östlund- More redeclare fixes in SCodeFlatten.
b1a94324cMartin Sjölund#1399 - Removed set/getClassNamesForSimulation from Interactive.mo - Moved strictRMLCheck() API call to CevalScript from Interactive
3ff621713Martin Sjölund#1399 - Added some CevalScript functions to ModelicaBuiltin.mo - This means we now get vectorized builtin operator, and ExpressionSimplify - CevalScript still does not Ceval the inputs + loadFile(intString(1)+".mo") might not work + loadFile("a" + ".mo") will now work + loadFile({"a.mo","b.mo","c.mo"}) works + setCompilerFlags("singleFlag") now works as the function is vectorized instead of taking an array of strings as input
13f57d124Martin Sjölund- When converting from match to switch, (x as _) is treated as _ to determine if a column of patterns are WILD or not - Also, the last case is excused from this check as it may be a default case
1fd271475Martin Sjölund- Added support for a "default" case when doing the match->switch translation - intString now checks for numbers 0-9 and returns the literal directly, based on the fact that most (99.9995%) intString calls use these numbers (see below)
359dce1e1Lennart Ochelfixed handling of known variables for symbolic jacobian
6d93004b6Martin Sjölund- Added match->switch conversion for integers. - There are very few cases using this, but they are used for lookup and the performance increase seems good
de971455dJens Frenkel- bugfix for r7745
31a72ac43Martin Sjölund- More inline calls
2c6a6eeb4Martin Sjölund- Cleaned up boxptr-functions for record constructors
6524d68f0Jens Frenkel- perform remove simple equations also for removed equations - check if there are inputs insight the parameter equation candidate
6597f8487Martin Sjölund- Generate if-expressions as (cond ? tb : fb) in C-code if pre-exp of tb and fb is empty (less temporaries is always nice)
7b83fd41fMartin Sjölund- Moved elabType of "complex" types that have a regular base type (no longer uses a slot in the memory)
0e97306a2Martin Sjölund- Added inlining of Util.if_
1bdae17eeAlexey LebedevImprovement in non-expanded array processing; new testcase.
6cf97d712Martin Sjölund- Fixed inlining of function pointers that do not return boxed data - Added expression simplification for "if cond then true else false => cond" and "if cond then false else true => not cond" - This found more simple equations in mosfiles-nosim/Model{1,2}.mos
83125e9b5Martin Sjölund- Annotated a few functions with __OpenModelica_EarlyInline - A NEW (r204+) OMDev or MetaModelica/RML is needed for this (older RML version do not parse annotations in regular functions): OMDEV: http://www.ida.liu.se/~adrpo/omc/omdev/mingw/ Debian/Ubuntu Linux: apt-get update && apt-get upgrade rml-mmc OSX: port update && port upgrade rml-mmc - Also fixed a bug where inlined call expressions were not boxed - TODO: Propagate the inline annotation of functions in crefs that are pointers to a specific function
92d5d031dWilli Braun- Bugfixes for ZeroCrossing in algorithm for loop - correct ident in simulation_events.{h,cpp} and solver_main.cpp - add testcase for ZeroCross in for loop and adjusted some other testcases
73ce75c86Martin Sjölund- Removed more Builtin.isXXX functions (Modelica.Math.min/max/cross/transpose do not even exist!)
b7d1f952dPer Östlund- Fixed handling of redeclares in variable modifications and extends clauses in SCodeFlatten lookup. - Ported optimizations from Env for the AVL tree to SCodeFlatten.
b90a913daMartin Sjölund- Removed some Builtin.isXXX functions that should not be used (pattern-matching is a lot faster and we no longer need it in order to look for sin or Modelica.Math.sin)
a6fc8daceMartin Sjölund- 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
70f444bb3Martin Sjölund#1397 - Declaring for example Modelica.Math.sin as external "builtin" now works as expected - The compiler will treat this as a call to the builtin function sin() - This means Derive.mo and Ceval.mo will work properly without dynamically loading the function or requiring special rules that check for MyPackage.sin or sin - Added testcase ExternalFunctionBuiltin.mo
8d6fbe077Martin Sjölund- -mt now generates profiling information for nonlinear, linear and mixed systems - meta_modelica_string_lit.{c,h} is now in svn instead of generated by sh (the script has problems supporting multiple platforms)
b725b2e3fWilli Braun- modified comments for findZeroCrossing
9d8fddaf7Martin Sjölund- Fix Dynload sending boxed reals on OMDEV
53dd8459eMartin SjölundChanged impl. of boxed reals for OMDEV
eeb50b327Martin Sjölund- Fix meta_modelica_gen_string_lit.sh for Windows
cc0a0d3c5Willi Braun- added index DAE.Relation that are ZeroCrossings(for models e.g. CheckEvents.mo) therefore rewrited BackendCreate.findZeroCrossing and adjusted simulation_runtime and Compiler/*.mo files -> all testcases from mosfiles works also with dassl2
7e046aad7Martin Sjölund- Use failtrace when generating Template files, but only display the log if susan fails (because the failtrace is huge even if Susan succeeds)
12cb779e8Per Östlund- Fixed bug in SCodeFlatten where for-equations didn't create a new scope. - Implemented support for class extends in the SCodeFlatten lookup.
f741d6767Martin Sjölund- Made valueEq faster by not comparing the names of uniontypes (only the index), as well as comparing the headers of boxed types directly instead of checking if lhs and rhs are both list or option, etc... - This made checkEngineV6_analytic ~10% faster for the bootstrapped OMC
f55523c05Martin Sjölund- Started using System.stringHashDjb2Mod instead of intMod(stringHashDjb2 for most hashtable functions - Tested using a hashtable instead of linear search for Types.elabType, but this seemed slower
0add8133dMartin Sjölund- Added support for converting cases with matching distinct strings (that also have distinct hashes) into a switch-case over their hash - Only matches elabBuiltinHandler for now since there are problems with escaped strings
7b76dc394Martin Sjölund- Added optimization that converts match-expressions (for-loop searching for matching pattern) to switch (jumps to the correct case at once) - Works for records - Seems to be broken for strings so I disabled it (it uses string hashing, and DAE.SCONST is a bit weird at times so it needs more debugging)
365d36ea0Martin Sjölund- Display "no classes loaded" instead of instantiating builtin class OpenModelica when calling OMC from commandline
e5c0caaa6Martin Sjölund- Don't disable ceval of builtin functions when +d=rml is activated
1229bcb9fMartin Sjölund- Split setsEqual into multiple functions
e3e57c70aMartin Sjölund- Rewrote crefPrefixOf, crefEqualNoStringCompare and setsEqual using match instead of matchcontinue (~20% speedup of checkEngineV6_analytic for bootstrapped OMC)
21a4faf0aMartin Sjölund- Removed DAE.ExpType from DAE.LIST/CONS - Added some expression simplifications for MetaModelica (cons, listReverse, listAppend)
381791690Per Östlund- Fixed Static.makeASUBArrayAdressing so that it doesn't create unnecessary ASUBs. - Added test case ArrayIndex2 that tests indexing of arrays with arrays.
cb757c5b9Martin Sjölund- Changed malloc.h to stdlib.h since malloc.h does not exist on OSX
04e43da67Martin Sjölund- Removed some useless stuff from Builtin.mo
57a2a1c4aMartin Sjölund- Avoid gcc warning about malloc being implicitly defined
bb7b666ffPer Östlund- Fixed lookup of builtin functions and variables in SCodeFlatten. - Fixed lookup bugs in SCodeFlatten. - Split SCode.traverseEEquationExps into traverseEEquations and traverseEEquationExps to be able to correctly handle for-equations in SCodeFlatten. - Added traversal function Absyn.traverseExpBidir, that can traverse an Absyn.Exp both top-down and bottom-up. - Added more builtin function to ModelicaBuiltin.mo. - Fixed test case interactive/interactive_api_param so that it uses valid Modelica.
860d89202Martin Sjölund- Use initialized data in rtclock.c on Windows/OSX
91b6d0f62Martin Sjölund#1402 - Added checkpoint/rollback of error messages for if-expressions when they are used like combitables (condition is a parameter expression and one branch is invalid)
9f7b6288aMartin Sjölund- Changed envCache from array> to Option> - Instead of using OptManager for every cacheGet/cacheAdd, we now check if the option is SOME() or NONE() (it's set during creation of the cache)
2d6c77685Martin Sjölund- Added support for expanding the number of RT clocks during runtime
94241c8a0Martin Sjölund- Fix some gcc warnings for mmc_mk_bcon, etc
2d5115fe2Martin Sjölund- Added function names array in the simulation runtime - These are output with -mt on a simulation file (in addition to execution count and time of each function for every timestep)
7026706a3Martin SjölundFix rtclock compilation on OMDEV
6526b397eMartin Sjölund- Moved rtclock from Compiler/runtime to c_runtime - Started using the rt clock to do time measurements in simulations
74fba7ec1Martin Sjölund- Added the tests for doing compiling bootstrapped C-files separate. - The file does not link due to referencing previously unused external functions
c3673a52aMartin Sjölund- Added file missing in last commit
597b34dd1Martin Sjölund- Made the pointers to intAdd, etc functions part of the C runtime - They are now either function pointers or inlined; SimCode was updated to ignore builtin function pointers
eb41dbe88Martin Sjölund- Started implementation of generateSeparateCode() API call - Generates code for all loaded packages at the moment - Fixed OMC source code where this new API call found errors (Main.main only found errors in functions that were actually used by the compiler)
cf2900c5cMartin Sjölund- Added support for inlining code that has function pointers as input
a81dd749eMartin Sjölund- Started removing pattern inputs that are never used (OMC dead code): case (1,_) ... case (2,_) => case 1 ... case 2 - We have a lot of these because of RML forces us to put all inputs of the function as the inputs of a match-expression - This makes more match-expressions simplify into if-expressions - Made all packages encapsulated (and fixed Susan so it outputs encapsulated packages) - This should make dependency analysis on OMC work better
d8d188bd9Martin Sjölund- Enabled expression simplification for assignment statements - Added simplification for 1-input match-expression with a single true and false pattern and no body (result is an if-exp)
eed9d43e1Martin Sjölund- Tabs to spaces
3a29506a5Martin Sjölund- Reverting tab changes to Template/*.mo as Susan needs them
4236ad05bAzam ZiaWorking copy for setstartvalues function
7557fc461Azam ZiaAdded code for initialize and setstartvalues function.
391e07f96Martin Sjölund- Minor fix in generated code (deinitializeDataStruc would try to free output vars if input vars was requested; but the code is only used when everything is requested so no bug could be triggered before)
441450c9aMartin Sjölund- Replaced tab characters with 2 spaces (mostly in C sources since Eclipse/MDT usually manages to avoid using tabs) $ svn diff Compiler/ | grep ^- | grep -v ^--- | wc -l 4771 $ svn diff c_runtime/ | grep ^- | grep -v ^--- | wc -l 13365 $ svn diff OMNotebook/ | grep ^- | grep -v ^--- | wc -l 17341 $ svn diff OMShell/ | grep ^- | grep -v ^--- | wc -l 582
19223511aMartin Sjölund- The last unused local declarations have been removed (had to split some lines, fix tabs, etc in order for the script to find some of these)
067386cfbMartin Sjölund- Removed more unused local declarations
e6a88b74dMartin Sjölund- Removed ~30 more unused local declarations
3923591b1Martin Sjölund- Removed a few hundred more local declarations
b1633d9e1Martin Sjölund- Removed another ~1800 local declarations
e38940cf6Martin Sjölund- Removed another 1014 local declarations
e8fd45ed6Martin Sjölund- Removed 138 more unused variables
bd8db466fMartin Sjölund- Removed 1213 unused variables (automatically, using testsuite/bootstrapping/refactor-mc-to-m.sh)
2ba0e58b7Martin Sjölund- Added debug flag to disable moving the last statement of a match case into the result expression
dabab7b9eMartin Sjölund- Added debug flag to not remove as-bindings from case patterns if they are unused
d8c14bd6bMartin Sjölund- Ran the automatic matchcontinue to match script - OMC now detects empty cases at the end of the case list and safely converts to match anyway - The script disables the rest of the dead code elimination since it's not safe to convert these without also removing cases in the middle of the cases
f8d81a29fMartin Sjölund- Added pattern simplification (mostly tuples that do not match against anything; they can be replaced with a single wildcard pattern)
9f4ab8af0Martin Sjölund- Removes as-bindings that bind local variables (these never have any effect; the compiler finds 1927 such instances) - Also, fixed a bug in traverseExp for DAE.ASUB
365cde402Martin Sjölund- Changed DAE.STMT_ASSIGN_PATTERN into the regular STMT_ASSIGN - Added DAE.Exp.PATTERN (so we can traverse a DAE and collect all variable refernces; including DAE.Pattern.PAT_AS) - Started detection of unused local variables; around 6000 were found
f660cf5a5Martin Sjölund- OpenModelicaBootstrappingHeader.h now uses constants for records without fields
a3af0e565Martin Sjölund- Added Absyn.Info to each case in a match-expression - Started dead code elimination in match-expressions (removing empty, failing cases) - This can detect that more matchcontinue expressions can be translated to match (it's not safe to refactor all of these without first removing the dead code)
35804023fMartin Sjölund- Use Static.makeBuiltinCall in more places
eebc8d9c4Martin Sjölund- Some more Makefile dependencies
1f34bff1fMartin Sjölund- Increased the size of the types memory array
733c42e2cMartin Sjölund- Added some constant string literals to the runtime - Codegen and mk_scon now both use the same literals for 1-length strings - Some more matchcontinue to match
97766f5cbMartin Sjölund- Automatic translation of matchcontinue to match (1448 hits) - testsuite/bootstrapping/refactor-mc-to-m.sh is the script that can perform this refactoring automatically
929edbc78Martin Sjölund- +g=MetaModelica now enables makes all strings boxed in the runtime - This breaks MatchCaseInteractive2.mos (and Uniontype7.mos); regular records used as input of dynamically loaded files crash - checkEngineV6_analytic now works (using only 7GB of virtual memory) - + some matchcontinue->match
998029534Martin Sjölund- Added codegen support for "case ... then fn()", where fn() has multiple outputs - Added simplification for match expressions: (cr1,...,crn) = exp; then (cr1,...,crn); => then exp; - GCC should handle this, but if we need to do special optimizations for tail recursion in the future, we need to be able to access the last expression of a case quickly
6f37ffb17Martin Sjölund- Added pretty-printing of the cases in match-expressions (which used to be ignored)
f93f6ba7aMartin Sjölund- Improved BackendDAEUtil.treeGet slightly for bootstrapping (more efficient, but not tail-recursive) - Made BackendDAECreate.lower tail-recursive
4292e8406Martin Sjölund- DAEUtil: Stopped using matchcontinue in addComponentType,traverseDAE2,transformIfEqToExpr
fa268c253Martin Sjölund- BackendDAECreate: Add start-binding as eq-binding of parameters without binding.
d6f37991fMartin Sjölund- Fixed SimCodeTest using bootstrapped omc (force grammar in the test so it's not shared when loading the shared object) - Plus some matchcontinue to match, and less listAppend in some functions
aca8e5a9bMartin Sjölund- Changed printimpl.c from having static "global" variables since they got unpredictable behaviour when dynamically loading bootstrapping examples in the bootstrapped omc. - Now, all copies will share the _same_ print buffer, which means using Dynload.mo to run a function may change the internal state of the compiler (mainly print buffers). - Debug flags, etc are not shared though (I think). We don't test these much anyway.
be2e4a00dMartin Sjölund- Some matchcontinue to match
c44ddfc85Martin Sjölund- Removed the DAEUtil.getAllExps functions (use DAEUtil.traverse* instead)
cbbe3065fMartin Sjölund- SimCode.getCalledFunctionsInFunction now uses a HashTable; this is a lot faster for large functions
13d4651ebMartin Sjölund- Use true = listMember instead of _ = Util.listGetMember
463476f6dMartin Sjölund- Fix System.setVariableFilter
78335a35fMartin Sjölund- Fix order of tokens for the system() error messages
c0130a82eMartin Sjölund- Added optimization: If a case in a matchcontinue expression is followed by a (list of) cases that do not have overlapping patterns with the first one, an optimization can be made. If we match against the first pattern, we can jump a few positions in the loop!
923375656Martin Sjölund- Fixed continue->match optimization for uniontype patterns - Added a testcase for this
5fcca706bMartin Sjölund- Rewrite of Lookup.lookupMetarecordsRecursive, using HashTable instead of linear search in a list
f38d290f7Martin Sjölund- Improved mmc_alloc_bytes (still no GC, but does allocation in 512MB chunks instead of many small calls) - This is a big performance improvement for bootstrapping: Before: == Total: 20 out of 1365 failed, 32.05 minutes (single thread) After: == Total: 17 out of 1365 failed, 27.88 minutes (single thread)
3dbe67400Martin Sjölund- Added an optimization doing automatic matchcontinue->match translation if it is safe to do so. - This made 5 more tests run in the 300 second limit I set for bootstrapped OMC testcases - Now only 20 tests fail for bootstrapped OMC (8 tests fail for regular OMC)
f67498258Martin Sjölund- More match less continue
82d4aa132Martin Sjölund- More match, less continue
390840341Martin Sjölund#1396 - Use vfork/execl instead of system for the System.systemCall implementation on Linux - This does not sometimes spin in an endless loop using bootstrapped omc
1c39d0600Martin Sjölund- Performance improvement for valueEq on strings
26181b828Martin Sjölund- Rewrote listAppend without using listReverse (using 1 malloc instead of 2*n)
029f481efMartin Sjölund- Some matchcontinue to match
0a4ec0a89Martin Sjölund- Replaced Types.searchInMememoryLst with Util.assoc
e9b8cfba5Martin Sjölund- Fix System.getHasExpandable/StreamConnector (output was unbound, i.e. false, in the bootstrapped omc)
764b530feMartin Sjölund- Removed unused (duplicate) code
c8e185b7eMartin Sjölund- Updated multibody tests to use teardown_command instead of system (which sometimes blocks the bootstrapped omc)
a635b8917Martin Sjölund- Made the testsuite deterministic when running bootstrapped omc
46ab4d40dMartin Sjölund- Some matchcontinue->match
383ae1947Martin Sjölund- Improved SimCode.addMissingEquations for bootstrapping (goes from >5 minutes to <1 second for some simulations)
5003f5ed6Martin Sjölund- Rewrote parts of Env to use match instead of matchcontinue (while the performance gain is small per call, Env is called millions of times so it adds up for the bootstrapping implementation)
f0591263dMartin Sjölund- Added MetaModelica optimization for matchcontinue expressions with only one case (then we use match instead)
3cb39b938Martin Sjölund- Rewrote part of BackendDAECreate.lower2 for the bootstrapping (which does not optimize if the first statements of different equation-sections are identical) - lower2 needs more work done as it does too much listAppend - this small change reduced the memory consumption from 16GB to 500MB for large simulations using the bootstrapping implementation
18a76a535Martin Sjölund- Rewrote Expression.expEqual using match
b609c343fMartin Sjölund- Rewrite of Expression.factors (using match and an accumulator instead of matchcontinue and listAppend)
58a30eb72Martin Sjölund- More matchcontinue->match
2ee08674cMartin Sjölund- Expression.isConst now does not construct any data, is tail-recursive and does not use matchcontinue
a48b434c6Martin Sjölund- Added Expression.expEqual support for MetaModelica types - This reduced the size of Main_main.exe by 0.9MB and compilation time by ~20% (this is a result of reducing number of literals by 75%)
89a8bbce6Martin Sjölund- Expression.isConst now uses match instead of matchcontinue
c6e6d25fbMartin Sjölund- More match, less continue
1f6ffe517Martin Sjölund- Added code generation support for Integer()
b871dc97aMartin Sjölund- Added Dynload support to read Values.ENUM as input
c81c742e7Martin Sjölund- Added file MetaModelicaBuiltinImports.mo, containing the renaming imports used by MetaModelica - This replaces the string literal in Builtin.mo
cec38342dMartin Sjölund- Split Builtin.mo. The new MetaModelicaBuiltin.mo and ModelicaBuiltin.mo are now loaded as files instead of string literals.
899831808Martin Sjölund- Made mmc_mk_icon take a long instead of an int (and made sure djb2_hash returns an unsigned number)
b0bb1a559Martin Sjölund- Add setGlobalRoot to Builtin.getInitialFunctions - Give proper error message for type list
d382cc876Martin Sjölund#1373 - Added Absyn.Info to SCode.EXTENDS - Added a warning when extending from a function containing an external declaration
3991a5d0eMartin Sjölund- Fixed code generation for integer mod() (previously used doubles, which don't hold large enough integers on 64-bit platforms)
85afab414Martin Sjölund- Fixed some type errors in elaboration of CONS expressions (minor thing that RML also did not handle properly) - Updated PartialFn15.mo to its original form
74937e82bMartin Sjölund- Removed the SimCode helper that boxed constants in lists during codegen (all expressions now contain boxed types, so this hack is no longer needed)
04a4bd71cMartin Sjölund- The boxptr_-function is now only generated if not all of the function in/outputs are boxed (meaning the wrapper is only generated if needed; otherwise it's a preprocessor macro)
fe21650f3Martin Sjölund- Removed inVars from SimCode.FUNCTION (unused)
3f9e83c73Martin Sjölund- Made sure all arguments of a METARECORDCALL are boxed - Started sharing metarecord literals (30000 more constants shared for Main.main, up from 10000) - Some functions using large constants (such as Error.lookupMessage) now have 500 less malloc calls, which should result in a performance improvement
809f69ea2Martin Sjölund- Fixed bugs where constant evaluation/simplification resulted in unboxed expressions
bff745f5aJens Frenkel- parts of rewrite removeSimpleEquations
e39976317Martin Sjölund- Made the list operations always boxed (hopefully), which means code generation could be made simpler
d0cae34feMartin Sjölund- Implemented scripting command getModelicaPath() (setModelicaPath() already existed) - OMEdit now uses this command to query the path instead of getting it from the system environment
cdd65f5d5Martin Sjölund- Some fixes for sendData
fefa1ea28Martin Sjölund- Started the implementation of sharing constant literals - It is a one-pass phase on list, right before code generation starts - For now, it is limited to string constants (not even boxed strings...) - It is also limited to function code (not simulations) as equation-systems in general don't use MetaModelica types, which will benefit the most from this change (gcc already shares string constants)
10398a738Jens Frenkel- removesimpleequation - extend parent types if they are from type array or record
89fc3e5f8Martin Sjölund- Changed implementation of InstHashTable to the new generic HashTable - This solves some issues for the bootstrapping implementation and gives us less code to maintain
82dbb7282Martin Sjölund- Fixed code generation for simulations and external functions
3c70ce6d9Martin Sjölund- Improved unparsing of DAE.META_OPTION
5154a2ad8Martin Sjölund- Changed modelica_integer to long, so it is 64-bit on 64-bit platforms
2a4716747Martin SjölundFix for #1041 - Reduce the number of error messages generated by builtin operators (only add the generic error message if a specific one was not added)
50435f2e4Martin Sjölund- Added a generic error message for elabExp (only 1 testcase needed to be updated; no scary floods of failed expressions followed...) - Changed errorext.cpp slightly: Now we remove duplicate errors when pop'ing the stack. - The reason for this change is that if we called Error.addSourceMessage and the top already had a copy of that message, the error count would not increase. This could cause additional generic error messages to appear.
fa38339f8Jens Frenkel- removesimpleequation - extend parent types if they are from type array or record
8ec587807Martin Sjölund- Fix regeneration of libomcmodpar.a if make clean has been run
62f144628Jens Frenkel- replaceDummyDer: - traverse also WhenClauses and WhenOperators
dd78a7a89Martin Sjölund#1142 - Added a better error message for invalid singleton expressions in the parser
69d23c9baMartin Sjölund- Added Error.mo messages for Derive.differentiateEquationTime
b7634ca82Martin Sjölund- Made semiLinear() and edge() into classes in the initial environment
0734c9de4Martin Sjölund- Fix compilation of Builtin.mo
2898ea959Martin Sjölund- Added parser error for equations containing assignments
32f1ce529Martin Sjölund- Removed some unused constants from Builtin.mo
7e6178388Martin Sjölund- Added builtin classDirectory as a class instead of type only
63bf40d4aMartin Sjölund#1062 - Added Error.mo messages for invalid when-equations
e9fff2ceaJens Frenkel- fix for extendRecordEqns - add case for records for getVar - ComponentReference.mo add function creffromVar - SimCodeFMU.tpl - use {guid} like in xml file, otherwise strcompare fails
379ca1fc3Martin Sjölund- Removed arctan from simulation runtime
cce7b77d2Martin Sjölund#1388 - Absyn->SCode now checks if duplicate classes have been defined in the top-level scope - This includes a check for duplicate builtin classes - Added testcase ErrorMultipleClasses.mo - Removed a duplicate definition in Constants.mo
fc9918f1dJens Frenkeladd COMPLEX_EQUATION and INITIAL_COMPLEX_EQUATION to dump2
968922291Martin Sjölund#1387 - calcTinyStep now uses (stop-start) as its basis for choosing epsilon
c53004ff6Martin Sjölund#1384 - Typo in last commit
c79401ec2Martin Sjölund#1384 - Hopefully a better fix for OSX configure woes
5d7b621ecMartin Sjölund#1386 - Changed return type of sign() to Integer instead of depending on the input
80564175dMartin Sjölund- Removed elabBuiltinInteger
8bbc8e020Martin Sjölund- Removed elabBuiltinInitial/Terminal/Sample
0f6c7b0d7Martin Sjölund- Removed some old code
c4efc4b42Martin Sjölund- Removed elabBuiltinFloor/Ceil/Sqrt
2e6fdff59Martin Sjölund#1374 - Fixes syntax error when trying to declare partial functions through CORBA
9f8895484Martin Sjölund#1384 - Fix typo in configure
2a27db514Martin Sjölund#1384 - Fix for building qtclients on MacPorts i386
0d3fed352Martin Sjölund- Rewrote the simulation runtime slightly - names and comments of a variable is now stored in a record instead of different arrays - This record also contains the Absyn.Info information (filename, line/column start/end) - Removed sendDataHumbug. It has been replaced with preprocessor macros that disable sendData
e4d0a36a8Martin Sjölund- Removed some tabs from omi - Added some dependencies for omi_ServiceInterface.o
ce5f92e63Jens Frenkel- rewrite function makeZeroCrossing without match case
f2eff8980Martin Sjölund- Remove noEvent from c_runtime. It's now handled in SimCodeC.tpl - The names and comments of variables are now separated also by a newline. This makes the code more readable. - Removed tabs from SimCodeC.tpl
e95a24034Adrian Pop- fixes for DynamicSelect in annotations (return the first and constant part) - faster retrieval of annotations. - fixes for the interactive simulation test and small fixes to the client.
dc1e0b60cAdrian Pop- cat the testsuite-trace.txt at the end of testlog
c055b5a51Adrian Pop- exit if we cannot connect after we retry 5 times with 2 seconds delay.
a3042af9aPer Östlund- Fixes to make the interactive client also compile on Linux.
2c7648282Per Östlund- Split SCode.traverseStatementExps into traverseStatements and traverseStatementExps to be able to correctly handle for-statements in SCodeFlatten. - Implemented more of SCodeFlatten. Some of the major things are lookup through extends and lookup of crefs.
f12dc7c3bAdrian Pop- build also the client for interactive simulation so we don't break it: c_runtime/interactive/client.cpp
6ead96e63Adrian Pop- get rid of warnings, fixes for Linux.
4c78c5a3cAdrian Pop- updates to readmes and interactive-simulation test - added the interactive-simulation to be run with the testsuite - updated SimulationApplicationExample_TwoTanks.zip
a0180581fAdrian Pop- finished the interactive-simulation test.
0eaf4cafbAdrian Pop- more work on testsuite for interactive-simulation - made a better client.cpp that knows also how to read commands from a file. - fflush(stdout) everywhere where we have cout! - got rid of some warnings. - still more work is needed for testing the test. - translated *german* (duh!) messages to English.
ae0246b8aMartin Sjölund- Fixes for #1371 - Implemented errors when functions contain illegal elements (except public elements that should be protected, since MSL uses that) - Added testcases FunctionWithEquation.mo and FunctionProtectedInput.mo
9df144fddJens Frenkel- FMI: compile with extern "C" to get correct names for functions
067603100Adrian Pop- make it portable
0bdee4769Martin Sjölund- Hopefully fixes the macports issues that causes qmake to generate erroneous makefiles
bf992d089Adrian Pop- create share/omnotebook directory during the omc build
a2fe2ebb9Martin Sjölund- Install the interactive readme to build/share/doc/omc/
c233d2672Adrian Pop- added a README.txt for interactive simulation.
4bfedf1e2Martin Sjölund- Remove valgrind warnings by making sure size!=dest in the memcpy used in simulation_events.cpp
f75b9c029Jens Frenkel- bugfix Backend expandDerExp
2d85a2ce0Martin Sjölund- Fix memory access issues in simulation_events.cpp
4b61e912cMartin Sjölund- Explicitly add -lrt to LDFLAGS if sendData-Qt is specified
50ce8e20eMartin Sjölund- Fix compilation on Linux
ba78a4160Adrian Pop- small fix to make omc MetaModelica filter happy.
a897969d9Adrian Pop- small fix to make omc MetaModelica filter happy.
f1695446aAdrian Pop- do not free something that was not allocated!
f9fc7e5cfAdrian Pop- more zeroing out malloc-ed regions.
632803167Adrian Pop- zero the malloc-ed region.
e6623b896Adrian Pop- do stream operators handling phase only if System.getHasStreamConnectors() is true. - tail recursive implementation of DAEUtil.traverseDAE2 to get rid of stack overflow for very large models.
d39745d5eWilli BraunUpdate Solver dassl2 - handle sample call as time events - some event handling bugfixes for dassl2 - added mosfiles-dassl2 to testsuite as copy of mosfiles - two testcases (Delay.mos, TanksConnectedPi.mos) are temporarily broken
e0028ccffJens Frenkel- update makefile for test msl31 seperate in simulates, notcompiling, notsimulates
fdc30a079Jens Frenkel- update msl31 tests
db8cd8f7bAdrian Pop- added fmi* to the c_runtime/Makefile.common so they are copied on build to build/include/omc
d2c807c57Jens Frenkel- add c_runtime/fmiModelFunctions.h c_runtime/fmiModelTypes.h c_runtime/model_fmu.in - c_runtime/linearize.cpp, c_runtime/simulation_events.cpp use && instead of and - c_runtime/tables.cpp define fmin and fmax for visual studio - SimCodeC.tpl - bugfix for models with none algebraic variables - SimCodeFMU.tpl - bugfixes for visual studio
8c01f33e1Adrian Pop- added fmu_model_inteface.h to the c_runtime/Makefile.common so is copied on build to build/include/omc
ba491aaaeJens Frenkel- c_runtime/CMakeLists.txt, c_runtime/ModelicaExternalC/CMakeLists.txt - add ModelicaExternalC to CMake - add macro for fmu - c_runtime/fmu_model_interface.c, c_runtime/fmu_model_interface.h - bugfixes for visual studio - SimCode - add model name to message for translated to FMU - testsuite/libraries/msl31/simulate - add testcases for simulation of examples with start and end values
a202e1ce0Azam ZiaHeaderfile for fmi c interface.
6281a2881Adrian Pop- updated dcmotor.mo to MSL 3.1
9a040b464Azam Ziaadded code for fmi export functionality
45b28b14cJens Frenkel- add alias Attribute of ScalarVariable for FMU modelDescription.xml
b0624c6e8Adrian Pop- fixes to constant evaluation of substring (Modelica.Utilities.Strings.substring).
2ac5b9e92Martin Sjölund- Added annotation __OpenModelica_Impure. Using it prevents constant evaluation of a function call. - DAE.T_FUNCTION now has FunctionAttributes instead of InlineType (which is now stored together with the other function attributes)
9e1b0ab10Jens Frenkel- BackEnd/BackendDAETransform.mo - use NONE as variable attibutes for dummyder vars - libraries/msl31/simulate/Makefile - add tests for Modelica.Mechanics.Translational.Examples simulation
51188bff9Jens Frenkel- BackEnd/BackendDAETransform.mo - use NONE() for dummyvar variable attributes - BackEnd/BackendDAEUtil.mo - add functions for analysation of initialisation system - BackEnd/BackendDump.mo - print nothing if start values is not given - BackEnd/BackendVariable.mo - use fixed=false als default for states - add function isConst - BackEnd/SimCode.mo - use function BackendDAEUtil.checkInitialSystem to fix the initialisation systems.log - delete older functions for initialisation stuff - update tests for mosfiles - Initialisation.mos: no warnings anymore - DAEexample2.mos: use x as fixed=true because it has a start value
ee9071819Per Östlund- Added function to Absyn: prefixPath, prefixOptPath and pathToCrefWithSubs. - Finished implementation of the SCode traversing functions in SCode. - Updated SCodeFlatten module.
f57dbf633Martin Sjölund- Make .depend a non-PHONY target so we don't run make depend twice
c8b9a63cbMartin Sjölund- Some fixes for the build system (call simcode and OpenModelicaBootstrapping.h targets)
7bff6e211Martin Sjölund- ExpressionSimplify: - Added rules for e and false, e or true - Added rules for stringAppendList - Added DAE.BOX, DAE.UNBOX instead of weird mmc_unbox_xxx calls (these are similar to DAE.CAST)
1ab820cfcAdrian PopFixes for task: #1344 - updated omc_profiler and omc_debug targets.
46bf875f3Adrian PopFixes for task: #1344 - Linux part is now updated. - only omc_release is updated, working on omc_debug, omc_profile.
5817f90f4Adrian PopFixes for task: #1344 - split into directories: FrontEnd BackEnd Template Script Util Main - only working on OMDev MinGW Windows right now, I'm working on the Linux part.
37bbd758eMartin Sjölund- ExpressionSimplify: Added rule for "s1"+"s2"=>"s"
c17fa4271Martin Sjölund- Added ExpressionSimplify rules - true AND e => e - false OR e => e
94ae72b70Martin Sjölund- Added annotation __OpenModelica_EarlyInline = true - This annotation will inline as early as possible, making function calls look like expanded macros - MetaModelica builtin functions use this annotation
9a8534fe2Martin Sjölund- Added ceval for listReverse
c1bf18dfdMartin Sjölund- Moved some more MetaModelica function definitions to Builtin.mo
c28cc0a1cMartin Sjölund- Removed the old arcsin, arctan, arccos and ln functions since they are not part of the standard - They are also no longer used in the standard library - Started using renaming imports for functions that are simple aliases, e.g. import realSin = sin - This will make expressionSimplify and derive work without writing new special cases
473f0b802Martin Sjölund- Moved some builtin Real functions to Builtin.mo
35b051db6Martin Sjölund- Fixed codegen for div() - Moved some MetaModelica builtin functions (Boolean/Integer) to Builtin.mo instead of C sources
58a504317Martin SjölundFix 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;"
3868cbf26Martin Sjölund- 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
03d4f8762Jens Frenkel- use fixed=true for DUMMY_STATE variables for residual equations
275fe1228Jens Frenkel- SimCode.mo, BackendVariable.mo - for initialisation use not startvalue use pre(variable) this is the same value but it is possible to change the startvalue with the model_init.txt file - also add residual equations from vars moved to known variables - ToDo: - change states variables fixed=true by default to fixed=false and do not set the fixed attribute from variables (dummy_states) to false if it is true. - analyse the initial equaition system if additional variables must be fixed for initialisation - add some stuff for calculating the initialisation values via matching algorithm. This works if the number of unknown variables es equal to the number of equations for initialisation, use the debugflag=initdlowdump and uncomment the initialisation method via initial_residual function
7601eb76cJens Frenkel- small bugfix for algorithms with no outputs
b77bf0093Jens Frenkel- BackendDAEOptimize.mo - use not "a = der(b), a not state" case for simpleEquation because this leads to problems in the removed equations Example model Modelica.Mechanics.Translational.Examples.Damper : 5 : $DER.mass1.v := $DER.$DER.mass1.s 6 : mass1.a := $DER.mass1.v - update test because of this
08a52f87fJens Frenkel- if subs of componentreference are stripped do not use the type from DAE.CREF to generate a new DAE.CREF from stripped componentreference
ceb627be8Jens Frenkel- if subs of componentreference are stripped do not use the type from DAE.CREF to generate a new DAE.CREF from stripped componentreference
765f03524Jens Frenkel- fix testsuite, incomment states fixed=false als default
3e75fc66dJens Frenkel- BackendDAETransform.mo - speedup replaceDummyDer - set starvalue of dummy_der to zero - BackendDump.mo - add Startvalue to dump - BackendVariable.mo - use named parameter for case - States are not fixed=true for default - add function varStartValueFail - Expression.mo add case for DAE.REDUCTION to isConst
f326a74baPer Östlund- Removed space in front of unary minus and plus when using Dump, to make linearize/test_05 succeed on linux too (where you get -0 instead of 0). - Updated test cases due to these changes. - Updated the parallel test script to handle modelicaML tests. - Fixed spelling in Absyn.
0d2ba6b68Adrian Pop- added API: getExperimentAnnotation and getSimulationOptions Example: getExperimentAnnotation(Modelica.Blocks.Examples.PID_Controller); getSimulationOptions(Modelica.Blocks.Examples.PID_Controller); simulate(Modelica.Blocks.Examples.PID_Controller, outputFormat="empty"); Result: {StopTime=4} {0.0, 4.0, 500, 1e-06, "dassl", "Modelica.Blocks.Examples.PID_Controller", false, false, "", "plt"} /* startTime, stopTime, numberOfIntervals, tolerance, method, fileNamePrefix, storeInTemp, noClean, options, outputFormat */ - now the simulate(Model, ...) will read the experiment annotation from the model if there is any and use these settings. - updated SimulationRecord to display simulation options. - updated tests to suite the new SimulationRecord. - added a generic COMPILER_WARNING in Error.mo and function Error.addCompilerWarning
4b78eceafAdrian PopFixes for bug #1238 - fixes for bug #1238 via construction of fully qualified crefs from modifications so we can properly check for duplicate modifications. - added tests for bug #1238 - moved some things from Inst to Mod and PrefixUtil as they belong there.
e5eecce57Martin Sjölund- Alias make testfast = make test. It's not that slow anymore ;)
42ef27e6cJens Frenkel- BackendDAETransform.mo - got ride of some unused print calls - BackendDump.mo - add function dumpStateVariables - fix tests from testcase, now more trivial equation are detected
f57ad0fddJens Frenkel- bugfix for evaluateAnnotation, avoid infinite loop
0933ebd3dPer Östlund- Fixed some syntax errors in BackendDump and SimCode that wasn't caught by RML but by the bootstrapped compiler.
fffd89642Jens Frenkel- bugfix for evaluateAnnotation
a30eed27fJens Frenkel- implement new feature: evaluate parameter with annotation(Evalute=true), see Modelica specification 3.2 chapter 17.3 Annotations for Code Generation, codeGenerationFlag
d06015982Jens Frenkel- start to implement code for the Evaluate annotation. This is used for a lots of multibody examples.
5bd392c07Jens Frenkel- BackendDAEOptimize.mo, SimCode.mo - use equations like "a=der(b)" with a is not a state to replace a in all equations with der(b), This solves problems with fullRobotR3 initial equations.
91a22525aJens Frenkel- BackendDAEOptimize.mo, BackendDump.mo - add dump for aliasvariables - BackendVariable.mo - add function varBindExp
b1ba2c8f5Jens Frenkel- BackendDAEOptimize.mo - implement new features: - remove constant equations from simple equations - add alias variables to BackendDAE.DAE.aliasVars - BackendDAEUtil.mo - add function addAliasVariables
18d67a85aJens Frenkel- BackendVariable.mo - reimplement isVariable - BackendDAEOptimize.mo - use new feature removeParameterEqns - SimCode.mo - implement new feature: sort the bound parameter equations in right order. - fix some testcases of mosfiles - AlgorithmArrayEqn.mos: delete generated files - EventIteration.mos: delete generated files - InOutStrings.mo: use parameter to test also simulation - ModelBalance1.mos: delete generated files - ModelBalance3.mos: change number of equations because of new feature remove parameter eqns
7ffa92762Adrian Pop- report an error when file is too large to read into a MetaModelica string on 32 bit platforms.
bc6c6f127Jens Frenkel- BackendDAEOptimize.mo - fixe bugs for function removeParameterEqns - BackendVariable.mo - add function setBindValue - SimCode.mo - check also bindvalue for inital value
ec4004c76Jens Frenkel- BackendDAE.mo -add type IncidenceMatrixElement - BackendDAEOptimize.mo - add function removeParameterEqns Detect all equations with only one time depend variable and check if it is a time independend variable. In case of time independendce it add a bind expression and remove the equation --> this solves the problems for Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis but testsuite does not yet work, use debugflag "optimizeParameter" until testsuite problems not fixed - BackendDAETransform.mo - got ride of some unnessesary integer operations - BackendEquation.mo - add function equationDelete (used for removeParameterEqns) - BackendVariable.mo - add function setBindExp (used for removeParameterEqns) - CevalScript, Main, SimCode, XMLDump - use removeParameterEqns - ExpressionSolve.mo - reimplement function solve3 - Derive.mo - delete case for derive DAE.BCONST because derive of false is unkown - uncomment case for DAE.RELATION because The derivative of c > d is not der(c) > der(d). It is the derivative of (c>d) "der(c>d)" and this is perhaps NAN for c equal d and 0 otherwise
2b2f8a75fJens Frenkel- BackendDAECreate.mo - lowervarkind StateSelect.prefer as STATE
7ff67f69bMartin Sjölund- Fix Compiler/runtime/corbaimpl.cpp (use the same path as Settings.getTempDirectoryPath() as the temp-dir) - Updated OMShell, so it does not assume /tmp is the tmp-dir
576d3d090Martin Sjölund- Fix compilation on OSX using new Qt
6503f60acJens Frenkel- Derive.mo - add derivativeTime of abs - use type to generate zero - check if call have only parameters -> no derivative of call needet - Expression.mo - use type to generate zero - vectors are scalar arrays -> for function makeZeroExpression - SimCode.mo - use Expression.expSub, Expression.negate, ... - error message from translateModel commented out because of testsuite
6962507eeJens Frenkel- BackendDump.mo - add number of algorithm - SimCode.mo - add case for algorithms to function createNonlinearResidualEquations
36319a6bcJens Frenkel- add {model}_functions.cpp and {model}_functions.h to target
6934e57e7Jens Frenkel- BackendDAECreate.mo - removed unused variable var from lowerEqn - SimCodeC.tpl - add STMT_REINIT (Simulation does not yet work, but code generation)
74b3e9fa0Martin Sjölund- Added function cevalStringAppendList - Added a notebook for basic MetaModelica types
14310bf43Alexey LebedevFix for bug: #1328 Added a check for recursive short class definitions (so that compiler does not enter infinite loop). Also added a test case
e152352a7Jens Frenkel- fix for bug #1368 - collect zero crossings inside loops using loop variable range
3de867020Martin Sjölund- Defer the check of Interactive.typeCheckFunction when adding functions through CORBA. The check needs to be done in the new environment if the function is recursive or has other dependencies that were added in the same sent command. - Added ceval of DAE.CONS
6dfa3d2f8Martin Sjölund- Fix for -disable-rml-trace configure option
5941b5d2cJens Frenkel- Util.mo add function listIntRange3 - BackendDAECreate.mo start to implement: use the range of for_stms for findzerocrossings and detectimplicit discrete bug-1368
c60960883Martin Sjölund- Update makefiles to make parts of the qtclients compile on OSX
667b2cadaMartin Sjölund- Fix for configure (got empty rmlc_bin if RMLHOME was not present)
16ba9bfb8Martin Sjölund- Search for sqlite3.h in the configure script
786026a7cMartin Sjölund- Search the whole path when looking for rmlc
5cf256d3eJens Frenkel- partial fixes for #1365 - add CREF(componentref=DAE.WILD for simulation case
cabffc1d7Jens Frenkel- partial fixes for #1365 - add basic initial Algorithms support
1eaa978f2Jens Frenkel- use option RTOpts.splitArrays() also in the Backend to avoid extendsion of arrays - SimCode.mo - try to collate the arrays before solving
f4c19c6eeJens Frenkel- partial fixes for #1365 - Derive.mo - bugfix for derive ASUB - return correct type of Zero for call expressions - Expression.mo - add case to makeConstOne so the function does not fail - ExpressionSolve.mo - return also asserts for solved expression Example for the equation 0 = a*(b-c) solved for b the assert (a!=0,"..") is added and the equation is solved b = c
3fd934071Jens Frenkel- partial fixes for #1365 - ExpressionSolve.mo - add case for expressions like a*(b-c) solved for b or c - createSingleArrayEqnCode use matchingAlgorithm to solve the array equations correct
00cf5067aJens FrenkelPartial fix for #1365 - partial fix for 1365 - BackendDAETransform.mo - get states in eqns from incidence matrix - Util.mo - add function intNegative
bf77a73bfAdrian PopPartial fixes for #1365 SimCodeC.tpl - handling ET_ENUMERATION where ET_INT is handled - handle string comparison via strcmp - handle ASUB(e, {index}) via string(et.ty)_get(arr, index - 1)
2cd93268fJens FrenkelPartial fix for bug #1365 - partial fixes for 1365 - call clearDifferentiated after remove simple Equations - abs() and sign() are only discrete expression if all parameters discrete expressions.
46c01a539Adrian PopPartial fixes for #1365 SimCodeC.tpl - fixed code generation for enumeration casting - handling integer(...) builtin operator - write more information about not handled ASUB in the generated code. - updates to testsuite/libraries/msl31/simulate/Modelica.Electrical.Digital.Examples.mos due to changes in codegen.
472a8875dAnton SodjaUpdated export to Dymola mat-file format -- also integer and boolean variables are now stored in the file.
d5045e797Adrian PopHelp for dealing with bugs: #1365 #1364 - code for sharing crefs (too slow for now so disabled) in ComponentReference.mo - use Expression.makeASUB everywhere where DAE.ASUB is created so we can check if the given expression is a cref and give a warning if +d=checkASUB is on. - function Expression.makeCrefExp will display a warning if +d=checkDAECrefType is ON and we give a *different* type than the one already present in the cref. - flags +d=checkASUB and +d=checkDAECrefType should be used with -trace to see where the functions that are buggy are actually called! - fix warning in Compiler/susan_codegen/SimCode/SimCodeC.tpl for equations: enum = pre(enum) by casting: enum = (modelica_integer)pre(enum) previously it only added cast for ET_INT, now it handles also ET_ENUMERATION - maybe we should create *ALL* expressions via functions so we can easily check if the typing is OK!
1801082b6Martin Sjölund- Adding a MetaModelica optimization: (a,b,c) := match ... is now translated to a tuple assignment instead of pattern-matching assignment - This reduces total memory consumption by around 33%
96745727fMartin Sjölund- Simplified some MetaModelica types in DAE.ExpType
b72e5c731Jens FrenkelFixes for #1365 - bugfix for traversingDivExpFinder, now Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum simulates
126049fa0Adrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF - use ComponentReference.makeCrefIdent and ComponentReference.makeCrefQual when building DAE.CREF_IDENT and DAE.CREF_QUAL
28b548a45Lennart Ochel- fixed handling of algorithms for symbolic jacobian - added some testcases
191b6bd7cAdrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF - use ComponentReference.makeCrefIdent and ComponentReference.makeCrefQual when building DAE.CREF_IDENT and DAE.CREF_QUAL
c657ee0aeAdrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF - use CevalScript.buildCurrentSimulationResultExp instead of building the component reference for the simulation record directly.
a73840910Adrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF - remove tabs in some files.
178e9a2bcAdrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF
c5111f1ceAdrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF
7da34553eAdrian Pop- use DAE.CREF directly without re-creating it (with the same values).
0754853daJens FrenkelFixes for #1365 - bugfix for Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 cause of an error somewhere the type of the expression CREF is not equal to the componentreference type
7d547f0ccMartin Sjölund- Changed the interactive buffers to no longer be read-only, so we can use the API to modify them - Added a testcase for renaming components inside read-only files
0656f46e8Adrian Pop- increase hash table sizes and use a prime number of bucket size (the default is now defined in BaseHashTable.mo) - leave a space at the end in Unparsing.tpl
bbef335caAdrian Pop- fixes for c_runtime/meta_modelica.c
5e3e12fceAdrian Pop- remove spaces in DAE.ASUB printing (to make it exactly as ComponentReference) - got rid of most of Util.boolAndList which were not exactly needed - added more specific map functions that can check global list properties - updated tests due to changes in DAE.ASUB printing - changed the annoying "Modelica specifications" to "Modelica specification" in Error.mo and tests - get rid of warning due to missing newline at the end of Compiler/OpenModelicaBootstrappingHeader.h
b41fed135Martin Sjölund- Inline some MetaModelica data constructors
27c54b93aMartin Sjölund- Inline listEmpty and STRUCT_HDR for records
8171d2579Martin Sjölund- Fix for Makefile.humbug (use the configured CFLAGS so e.g. -fPIC is used)
85f4086bdAdrian Pop- constant evaluate Modelica.Utilities.Strings.substring - update tests due to changes of SimulationResult record
f45d17e5fAdrian Pop- fix RML weirdness.
3b3fa1dc6Adrian Pop- fix bootstrapping in Windows OMDEV (link sendData when building .dll to get all depends of omcruntime).
8bb667703Adrian Pop- get rid of rml_prim_once in Compiler/runtime/SimulationResults_rml.c - add $CFLAGS a bit later so people can use it to link libraries via MODELICAUSERCFLAGS in Compiler/susan_codegen/SimCode/SimCodeC.tpl - removed old comment from Compiler/runtime/System_rml.c
858bba678Adrian PopPartial fixes for #1365 - link properly to get tables working. - display the name of the model in the SimulationResult record when failing.
2bdc23d54Martin Sjölund- Added support for the new special Library annotation, OpenModelicaCorba, which will use the configured Corba implementation to choose appropriate linker-flags for external functions
2f79bb55cMartin Sjölund- Added support for SimulationResult (79/119 mosfiles succeed)
0adb61897Per Östlund- More work on SCodeFlatten. It can now remove all imports from EngineV6, but a lot of work still remains. - Changed Util.listMapAndFold to return the folded argument.
65666dbbaJens Frenkel- Derive.mo - bugfix der(atan2(y,x))
bb059c3c2Martin Sjölund- Ported BackendDAEExt to OMC runtime - Note: This might also be a fix for some weird bugs, or stuff that just accidently worked before (the old code would use the second argument of functions taking only 1 argument)
0a27d7eaeJens Frenkel- BackendDAETransform.mo - add BackendDump. Derive.mo - add derivative of atan2
3de1383b5Martin Sjölund- Added Corba implementation for the bootstrapping. Use with caution; OMEdit queried omc so much 8GB RAM used in a jiffy.
7055f3a75Martin Sjölund- Use Absyn.pathString2 in Dynload_omc.cpp (easier code to maintain)
131082046Martin Sjölund- Fix exception handling infinite loop on Linux; enable it on Windows (seems to run properly there) - Added Dynamic function loading to the bootstrapped compiler (mofiles is now at 100% using the bootstrapped compiler)
a3ad87a2cPer Östlund- Fixed invalid propagation of connection sets from redeclared components (commit 7185 to OpenModelica-1.5.1-Maintenance branch). - Take face of connector components into account when connecting potential connectors (commit 7173 to OpenModelica-1.5.1-Maintenance branch). - Optimized findEquSet and findFlowSet to terminate earlier in some cases. - Cleaned up ConnectionGraph. - Cleaned up connection handling in InstSection. - Updated test cases that changes due to equation ordering changes.
394b87b7cMartin Sjölund- Change try/throw/catch implementation on OMDEV to setjmp/longjmp (fixed the bug by copying the whole data-structure instead of only backing up the first 1/16 of the array)
9d8d0b911Martin Sjölund- Fix error in TplAbsyn.mo - Update expected output of testcase SusanTest.mos
1220ef11bAdrian Pop- return on top catch
c6c0839b7Adrian Pop- properly use the old throw for now in Windows (switch to it when working properly)
6c082261bPavol Privitzer- Susan now: - translates case local names into function wide local names and has nicer name prefixes to have more easily distinguishable origins of the generated identifiers - respects full 'hasindex' semantics with a new keyword 'from' added that is used instead of indexOffset= option new syntax is: lst |> elem hasindex myIndex3 from 3 => '<%elem%><%myIndex3%>' the 'from' keyword is optional (and can only together with 'hasindex'); default is 0 - does not hide implicitly scoped patterned matched record fields in 'if' expressions (only directly tested implicitly scoped values was visible after 'then' till now) - has much better 'let' scoping, to be continued ... - has better emptiness testing of Texts in 'if' expressions (does direct Text value test for emptiness instead of translating it to string) - reports better errors for options; mainly does not allow a typo in option names and non-sense options are errors now
0f6097240Adrian Pop- use the old throw for now in Windows (switch to it when working properly)
b33ff76ddMartin Sjölund- Change MetaModelica try/throw/catch to setjmp/longjmp implementation as it gives a 3-10x speedup
9f047761aMartin Sjölund- Added preprocessor macros MMC_TRY, MMC_CATCH, MMC_THROW to easier change exception implementation in the bootstrapped compiler
8c76e2926Per Östlund- Ported commit 6987 from OpenModelica-1.5.1-Maintenance branch to trunk (fix elabMatrixCatOne to take care of dimensions).
013e48536Martin Sjölund- Remove Absyn.GOTO, Absyn.LABEL and Absyn.ALG_MATCHCASES from the compiler
8aaf0151fPer Östlund- Added flag +orderConnections=[true|false] that enables/disables alphabetical ordering of connections (default true). - Added API calls setOrderConnections and getOrderConnections.
cc8cc3397Martin SjölundPartial fixes for bug #1365 - Fixed generation of invalid C tokens in the generated simulation/function headers
805abaf09Martin Sjölund- Avoid duplicate records with the generated header for bootstrapping if several external libraries use them
ea2cc3c83Willi Braun -Fix for bug in linearize testsuite
2e2d5a838Adrian Pop- added new API getNamedAnnotation(class, name) to get non-standard annotations: getNamedAnnotation(Modelica.UsersGuide, __Dymola_DocumentationClass) -> {true} getNamedAnnotation(Modelica, __Dymola_DocumentationClass) -> {}
0fb261896Martin Sjölund- Added boxptr_intLt,intGt,realLt,realGt - Fixed Util.listMap6 RML error - Moved Parser/OpenModelicaBootstrappingHeader.h to Compiler/OpenModelicaBootstrappingHeader.h - It should also be used by Compiler/runtime so it makes more sense to keep it here - Simulations and functions now generate a _records.c file containing record declarations - This is needed so that external C functions can also construct metarecords - Updated Unparsing.mo (no longer needs to duplicate the record declarations)
ba88cbb9dAdrian Pop- fixes for OMDev MinGW
acabe7bb4Martin Sjölund- Changed the SimCode data structure (RecordDeclaration is now stored in SIMCODE and FUNCTIONCODE instead of in every function individually)
e7e12a0caWilli Braun- update synchronous events solver: dassl2, rungekutta - some bug fixes - remove discrete variables in Algorithms while continuous integration - update some testcases
d8ef1b00fMartin Sjölund- Fix MM listDelete() for index other than 0
42f902b19Per ÖstlundFixed for bug #1361: - Fixed elaboration and constant evaluation of ranges with negative step. - Updated test case mofiles/drmodelica/RangeVector, so that it's now correct. - Updated test case mosfiles-nosim/ZeroDims that changed due to commit 7161.
79b98becaMartin Sjölund- Fixed MM listDelete (also handle index 0)
c8df72632Martin Sjölund- Rename Types.ndims to Types.numberOfDimensions (ndims is a Modelica builtin operator and gives us conflicts)
d39eb192eMartin Sjölund- Fix bootstrapping OMC on OMDEV (can't link to non-portable UUID libs; should be rewritten in some portable C way)
c8bb2af6eAdrian PopFixes for bug: #1315 - manually ported from: https://openmodelica.ida.liu.se/svn/OpenModelica/branches/OpenModelica-1.5.1-Maintenance - fixes for bug 1315 - relaxed typing if checkModel is ON: TypeName should be ok to match a TypeName[0] - added tests for: Modelica.Mechanics.MultiBody.Visualizers.Internal.Lines in testsuite/libraries/msl31/Modelica.Mechanics.MultiBody.mos - added more tests for zero dims in testsuite/mosfiles-nosim/ZeroDims.mos
41286c7e7Martin Sjölund- Push Absyn.Info through to more error messages (none that are actually tested in the compiler it seems)
f6faa4720Adrian Pop- fix for OMDev MinGW compilation of Compiler/runtime/systemimpl.c
ebcfe5043Martin Sjölund- Fix for Error.updateCurrentComponent (field isReadOnly was always true in the externally defined because the field after it, fileName, was never 0)
e4a9e1d18Martin Sjölund- Print a newline after a version request
07870e4c6Martin Sjölund- Fix compilation on OSX
8af7fc517Martin Sjölund- Fix code generation for assigning output variables that are function pointers
f3c24dcebMartin Sjölund- Fixed some function definitions so it will be easier to use 64-bit integers in the simulation/function runtime
cc0d56595Martin Sjölund- Fix for intMod (should only return positive results) - Change for realString (same precision as RML so rtest diffs are smaller)
c565abeafMartin Sjölund- Adding missing file Compiler/Unparsing.mo (needed if omc was not already compiled)
8ba1bc71cMartin Sjölund- Fix for parsing of the replaceable prefix in the RML version of the parser
130fe7611Martin Sjölund- Additional fixes for bootstrapping (parsing, etc)
7532ed250Martin Sjölund- Fix the testsuite
db22d3e77Martin Sjölund- Added SimulationResults_omc.cpp - Added the remaining external functions in System_omc.cpp - Main.main now passes the gcc linker and produces a 15MB executable that at the very least can display the help text on start (the main() function ignores argv,argc)
b49446711Martin Sjölund- Added new API call generateHeader(), for generating the uniontype header for the parser external code - Uses a new Susan module for unparsing - Added the OMC version of the ANTLR parser to the default make target - Note: Due to mutual dependencies the generated header will point to different constants for the record description in external code. To produce more efficient code, all uniontype record descriptions need to be generated in its own C-file (last on the GCC line)
1df09553aMartin Sjölund- Started updating the generation of files for parsing (to support bootstrapping)
5ec29c5ffMartin Sjölund- Added OptManager_omc.cpp
74028d6e0Martin Sjölund- Small fix in Compiler/runtime/Makefile.in (config.h dependency)
7f1bc7c15Martin Sjölund- Fixes for OMDEV
ec69d87cdAdrian Pop- fixes for OMDev MinGW
f71200ed8Martin Sjölund- Implement System.setEnv for System_omc.cpp
4eb4da6e2Martin Sjölund- Update for OptManager.setOption (no more return value since it always returned true)
563d09becMartin Sjölund- Completed implementation of Settings_omc.cpp
4dc54cb53Martin Sjölund- Updated the external C code for Settings.mo - If OPENMODELICAHOME is available and OPENMODELICALIBRARY is not, we look for libraries in the default locations
82f7a6e88Martin Sjölund- Add the remaining functions in Error_omc.cpp
3bd28c259Martin Sjölund- Implemented the rest of RTOpts_omc.cpp needed for Main_main
363d69a2aMartin Sjölund- Changed dynload.c to Dynload_rml.cpp and fixed the compilation errors that were warnings in C - Added a (stub) Dynload_omc.cpp
3b3e492c6Martin Sjölund- Fix compilation on OSX
152ee105aMartin Sjölund- Added corba and socket stubs to libomcruntime.a
5dc4f976aMartin Sjölund- Added a Makefile.common for Compiler/runtime/
b6dcbbb3eMartin Sjölund- Added libomcruntime.a (stub) implementations for BackendDAEEXT
a158e24baMartin Sjölund- Added an error message in manner that plot() usually fails: Return Values.STRING(msg) instead of Values.BOOL(...) (this is very good for scripting and keeping the types consistent) - Anyway, if we compiled --without-sendData, we now return an error instead of success - This error is returned through CORBA instead of stderr + return success - OMEdit displays this error message if we use an OMC without sendData support
ba4dde62aMartin Sjölund- More external function implementations
85ebccdc3Martin Sjölund- Implemented some additonal runtime functions for libomcruntime.a
01eaaaf3bMartin Sjölund- Added more external functions for System_omc.cpp
dbdf0f489Martin Sjölund- Implemented libmodparomc.a (the stub version of modpar)
d70d44ecfMartin Sjölund- Implemented UnitParserExt_omc.cpp
68ad0d3e4Adrian Pop- fixes and tests for updateComponent
173dd4d22Adrian Pop- fix Compiler/runtime/systemimpl.c for MinGW.
e04f2b19aMartin Sjölund- Further changes from char* to const char* - Now all strings in the simulation runtime should be const - Implemented some additional external functions for libomcruntime.a
cbdc3b5d3Martin Sjölund- CevalScript.generateFunction now only generates code for the calculated dependencies
f351665beAdrian Pop- renamed DAEEXT.mo daeext.cpp to BackendDAEEXT.mo BackendDAEEXT.cpp.
0e44d3216Adrian Pop- removed Compiler/test_codegen as is not used anymore since A LONG TIME NOW.
306f7dcceAdrian Pop- removed old files for generating/checking RML based signatures.
a25e64237Adrian Pop- small cleaning, running make in Compiler/rml2sig is not needed!
969a3925dAdrian Pop- moved RML->MetaModelica translation tool from Compiler/rml2mmo to /tools/rml2mmo
17d5c828aAdrian Pop- deleted very old report (even in Swedish)
b5560011aAdrian Pop- moved old Compiler/tools/rmldoc tool to /tools
dd0ae4955Adrian Pop- do not use -ansi when compiling the code as strdup is not ANSI!
864a2ddfdMartin Sjölund- Fix so that Susan runs (SimCodeC.tpl->SimCodeC.mo works) using bootstrapped OMC - It uses too much stack so we can't run it in the testsuite, but the test has been updated so that it is easy to try it yourself
e80dce912Martin Sjölund- Fix typo in BackendDAEUtil (broke bootstrapping but not RML)
7e8bf7e7fMartin Sjölund- Changed the C runtime to allow the use of const char* instead of char* for string literals - We no longer need to strdup every single string literal we find. This should produce a lot more efficient code if someone likes priting a string constant every time step, etc
15052ddcdJens Frenkel- reimplement some functions using not equationList and travese the array of equations directly
306b59c2bJens Frenkel- reimplement some functions using not equationList and travese the array of equations directly
d4dc6015bJens Frenkel- reimplement one functions using not equationList and travese the array of equations directly
1320b02c7Jens Frenkel- reimplement one functions using not equationList and travese the array of equations directly
29023cb9cPer Östlund- First revision of the new SCodeFlatten module. It's not used yet.
c3c75be3aPavol Privitzer- Susan updated tests to be all OK - C# codegen for non-linear strong components
e2bbc5b44Martin SjölundFix for #1360 - We now copy string outputs of functions - Previously, we could overwrite strings and get really weird results - Added testcase StringPool.mo
efe933268Martin Sjölund- Fix for MODELICA_ASSERT in the simulation runtime - We now generate code such that we only allocate the message string if the condition is false
0e522bb4eAdrian Pop- fixed a small bug with the check for DynamicSelect/OnMouse* in annotations.
421a1d79aAdrian Pop- update version to 1.6.0
43e2c380aMartin Sjölund- Fix warning in Settings_rml.c
ea3a33e7bAdrian Pop- added a new function interactive renameComopnentInClass that doesn't do instantiation.
ccd240d50Adrian Pop- fixed more problems with annotations. - now if we fail to instantiate an annotation we return it as it is: { annotation(...) } - if an annotation is not present at all we return {} instead of empty string. - moved interactive tests to testsuite/interactive - Lookup.lookupVar2 now only prints an error message if +d=lookup is present (not on +d=failtrace). - added all extra tests into testsuite/interactive/interactive_api_annotations.mos
c74784414Martin Sjölund- Disable SQLITE3 linking on Linux (keep the configure line there but commented out in case we need it in the future)
8dccb913dMartin Sjölund- Added configure feature rml-trace (to be disabled by the Debian/Ubuntu builds as the executable shrinks 5-6MB)
a72f6b281Per Östlund- Fixed propagation of enumeration indices when connecting arrays. - Fixed connections with multi-dimensional arrays. - Added test case mofiles/ConnectEnumArray.
2798b5a50Adrian Pop- fix Linköping, the pour ö gets shredded to pieces sometimes.
4e5629d7eAdrian Pop- add an extra newline at the end of h files in Compiler/susan_codegen/SimCode/SimCodeC.tpl - fixes in Compiler/runtime/config.h - other smaller issues
bfc53f120Martin Sjölund- Fix for System_writeFile
fd38f92f2Martin Sjölund- Update some external definitions in System.mo
01c3abefdMartin Sjölund- Added an error message for match expressions like: match in1 local input Integer i (input/output of a local component is not allowed)
d0e41870bJens Frenkel- BackendEquation.mo add function traverseBackendDAEEqnsWithUpdate - BackendDAEUtil.mo add function traverseBackendDAEArrayNoCopyWithUpdate
5daa72b69Martin Sjölund- Fix System.time for bootstrapping
b2f34f557Martin Sjölund- Improve CevalScript.cevalGenerateFunction - No longer does lookup+inst again on every function (this was already done by elabExp) - generateCode() for MainTest.mos now only generates code; it does not compile it (saves 1~2 minutes of testsuite time and reduces the RAM requirements for running the testsuite)
e94da17b8Adrian Pop- delete .mo files on clean - fixes to Compiler/omc_profiler/Makefile.omdev.mingw to link correctly.
21a9be2e6Adrian Pop- ConnectUtil.mo: small speedup by verifying face first, then the others - SimCode.mo: small comment.
c6f7d6b25Martin Sjölund- Fixed the generateCode() API call
18ca920c8Martin Sjölund- Fixed compilation of Main_main.so (linking still fails)
2ab96fd1dMartin Sjölund- CevalScript.generateFunctions speed-up (breaks error messages in one testcase) - This change is needed (or something similar); the speed-up for bootstrapping is ~100 times - Fixes for bootstrapping
b531fa86eMartin Sjölund- Added some functions for bootstrapping
705caf288Martin Sjölund- Added error message when a TCOMPLEX type has the wrong number of types - Fixed one such error in Patternm.mo
10a482da6Martin Sjölund- Minor changes to failtraces
d46f6e703Martin Sjölund- Minor syntax change
395b6f220Martin Sjölund- Changed SimCodeCTest to SimCodeTest - It is more extensive; a lot more external functions - It also covers the DAE to SimCode translation (for functions)
be0db620dMartin Sjölund- Susan update - Use Tpl.emptyTxt in the templates instead of a protected constant (bootstrapped OMC could not find it)
3fc615447Martin Sjölund- Implemented some more external functions in libomcruntime - On Unix you no longer need to set OPENMODELICAHOME - It uses the --prefix from configuration - OPENMODELICAHOME still overrides that since most developers don't run make install
a06aaabdcJens Frenkel- reimplement some functions using not listEquation and travese the array of equations directly
8382d0ab9Martin Sjölund- Added support for unit testing of SimCodeC.translateFunctions - Implemented some additional function in the bootstrapped runtime
a034170c8Martin Sjölund- Added support for solving polymorphic array types - Changed tuples to always contain boxed types - Improved matching polymorphic types for functions (function pointers always take boxed types)
6ca603e4eMartin Sjölund- Removed some unused MetaUtil functions
2c67f13d3Martin Sjölund- Remove Absyn.VALUEBLOCK - Remove DAE.VALUEBLOCK - Remove DAE.STMT_MATCHCASES - Remove Convert.mo - These constructs were no longer needed since the match implementation was rewritten from scratch
898b934c4Martin Sjölund- Remove some now unused code from the pattern matching module
a4f988857Martin Sjölund- Fix for arrayMap (no need to call listMap) - Some other minor fixes
6365717c4Martin Sjölund- New match implementation using Absyn->SCode->DAE->Done instead of Absyn->SCode->DAE->SCode->Absyn->SCode->DAE->Done - The meta testcases are almost 40 seconds faster now
e56491841Martin Sjölund- Improved instantiation of algorithm assignments (a separate function) - We only elaborate the expression at most one time. This is faster and does not produce duplicate error messages
aa171bbceMartin Sjölund- Removed some useless information from the pattern matching algorithm
1855643ccAdrian Pop- changed SES_MIXED.values to list to save memory (but no computer on earth will save you if you need to do permutations of 0/1 for 34 variables!). This should be fixed somehow.
5981b2465Martin Sjölund- Fix type error in Util.mo
f072a116bMartin Sjölund- Re-compile SimCodeC using a modern Susan (no NONE is allowed)
28a46b03fAdrian Pop- Util.arrayMap now works on empty arrays - BackendDAEUtil.incidenceMatrix now works directly on arrays and can generate normal or absolute index values. - made some other backend functions work on arrays directly. - some other memory usage improvements
e0cfa05b9Jens Frenkel- continue with redesign of listVar to traverseVar
579e6f615Martin Sjölund- Update some RML syntax to MetaModelica
79713a798Martin Sjölund- Update some RML syntax to MetaModelica
841b8ec93Martin Sjölund- Update some RML syntax to MetaModelica
36b290adeMartin Sjölund- Allow MetaArray to be treated as a TYPE in ClassInf
bf1047cf5Martin Sjölund- Use Error.mo for ClassInf.assertValid instead of printErrorBuf - This also works with getErrorString()
4fe3141f3Martin Sjölund- Add debug_print to builtin env
e61143696Martin Sjölund- Added support for Util.listMapMap in bootstrapped OMC
3ffc3ab2fMartin Sjölund- Code readability for lookup when implicit scope names are involved
64f55d076Martin Sjölund- Added boxptr_realString - Bugfix for boxptr_intReal
c6ee5c03fMartin Sjölund- Improved the error messages for bootstrapping slightly - Also fixed some RML/Modelica syntax clashes
47eac27bcAdrian Pop- Inst.instantiateClass: clear the inst/type cache at the end of instantiation. - SimCode.createResidualEquations: less memory consumption. - some fixes in Util.mo (bad judgment)
4a7818abbMartin Sjölund- Bugfix for instClassDefHelper (used for MetaModelica, TCOMPLEX, types) - Do lookupType instead of lookupClass for functions
03749a2aeAdrian Pop- faster and (far) less memory usage for some functions.
5df5efe49Martin Sjölund- Fixed output assignment of traverseBackendDAEOptEqnWithStop
f4b274938Martin Sjölund- Remove references to modelica_parser and flat_modelica_parser from the configure script
cc8a8d32bAdrian Pop- modelica_parser/flat_modelica_parser directories are no more. - so for "clean" target they should not be cleaned!
3700b6421Jens Frenkel- continue with redesign of listEqn to traverseEqns
0d7a07d5bMartin Sjölund- Added Builtin stringEqual - Fixed some old RML syntax - Made some proper error messages for Patternm.mo instead of INTERNAL_ERROR
467284421Jens Frenkel- to save memory start to get rid of some BackendDAEUtil.equationList by traversing the equation array direct without convert to list
82d344820Per Östlund- Use Error.addSourceMessage instead of Error.addMessage when printing inStream and actualStream elaboration errors. - Turned on stream connector balance checks by default, because models using stream should follow Modelica 3 rules anyway. - Added Modelica.Utilities.Files.list to libraries/msl31/Modelica.Utilities test case. - Added a couple of stream test cases.
b294d0d96Jens Frenkel- get rid of some BackendDAEUtil.varlist - BackendDAEUtil.mo - fix rml bug, replaceable type Type_a subtypeof Any was not defined
4a56c0ce4Martin Sjölund- Removed the old ANTLR2 parsers from the trunk (previously, only the walker was removed)
4d693be25Per ÖstlundFix for bug #1354: - Don't add binding equation for variable of type that extends basic type. - Added test case mosfiles/ComplexTypeEquationCount.
2f7d08445Martin Sjölund- Replaced the old /trunk with /branches/sjoelund-functiontree
180751e52Willi Braun- added assert() and terminate() to c_runtime - moved Linearization stuff to BackendDAEOptimize - fixed index bug for partial and numerical derivative in Linearization
6d2a3179eMartin Sjölund- Fix RML oddities
a0e71ef01Martin Sjölund- Merging
370156208Martin Sjölund- Refactoring/Removed RML weird stuff
2755d8904Martin Sjölund- Changed the pattern-matching implementation (for statements, now STMT_ASSIGN_PATTERN) - This uses the DAE instead of converting back to Absyn to create a match-expression - It should be faster and work more often
7576d90b0Adrian PopMore fixes for bugs #1347 #1335 - fixed an issue when annotation was not find in a class containing multiple sections. - added more tests in testsuite/mosfiles-nosim/interactive_api_annotations.mos
08b8c6eb9Per Östlund- Removed error in Interactive.evaluateWhileStmt that immediately exited the while loop. - Fixed elaboration of graphical annotations. - Moved meta/PartialFn15.mo to failing tests. - Moved some libraries/msl221/ tests that are not part of the normal testsuit to failing tests, since they are part of the parallel testsuit. - Updated parallel test script.
6c5ddac7bWilli Braun - some linearization bugfixes - add testcase for numerical derivative
00accde8fPer Östlund- Fixed issues introduced in r6938. - Updated parallel test script.
e163a6cc7Mohsen Torabzadeh-TariOptimization problem support tokens OPTIMIZATION and CONSTRAINTS are added to BaseModelica_Lexer.g and Modelica.g Absyn.mo : new record CONSTRAINTS SCode.mo : uniontype Restriction updated with R_OPTIMIZATION Dump.mo: unparseRestrictionStr updated Absyn.mo: printClassRestriction updated tith Absyn.R_OPTIMIZATION() ClassInf.mo: trans updated, new record in State
7b1ac26aePer Östlund- Fixed mistake in Util.listSplit which broke test case meta/PartialFn8. - Added test of listSplit to meta/UtilTest.
80a8c8999Per Östlund- Added work-around for checkModel when BackendDAECreate.lowerArrEqn gets an array equation of unknown size. - This fixes the mosfiles/ArrayParameterSize test case.
3f5c6da91Per Östlund- Fixed array reduction with unexpandable range for checkModel. - Fixed v[i] := (function returning tuple). - Added libraries/msl31/Modelica.Utilities test for Modelica.Utilities.Streams.readFile. - Added Modelica.Math.Vectors.reverse to Modelica.Math test case.
4489c318fMartin Sjölund- Merging
668b81c6aAdrian PopFixes for bugs: #1353 #1298 - final parameters and constants are NOT input in record constructors. - disable checking for duplicate modifications via (Mod.lookupCompModificationFromEqu) in InstExtends.mo if the EqMod modification is typed and the sub modification is not. - keep the variability of the component in records - use the variability of the default bindings also when calculating the constant-ness of the call - update tests testsuite/libraries/msl31/Modelica.Magnetic.FluxTubes.mos (now correct) testsuite/records/RecordModifications.mo (improved it) testsuite/records/RecordVariability.mo (now display constant instead of input) - some other small changes (mostly indentation).
712d8542cMartin Sjölund- Fix for HashTableStringToPath (using Util.id as its String->String functions) - This should also fix other similar issues with the type inference of polymorphic types
31881e0f8Martin Sjölund- Merging
b4e214568Martin Sjölund- Fixed some weird RML syntax
49e354873Daniel HedbergFixed bug in constant evaluations of functions with multi-dimensional array assignments.
23b0571aeMartin Sjölund- Fix some RML stuff
a44447bafMartin Sjölund- Fix RML duplicate element
f077ddc3dPer Östlund- Implemented inStream for the general case (needs a lot more testing though).
ce7007f6fMartin Sjölund- Fix some duplicate declarations
68cc076d8Martin SjölundFix for #1352 - Add error messages for invalid complex types
249ff8733Martin SjölundFix for #1351 - Add an error message if a local section contains non-component elements
4a43d8f96Martin Sjölund- Use Settings.mo instead of readEnv to get OPENMODELICAHOME
a8cbf2c12Martin Sjölund- Fix merging compilation error
75076dc94Martin Sjölund- Merging
7da267c73Per Östlund- Fixed issues with Types.getDimensionSizes returning -1. - Rewrote Static.sameDimensions to use DAE.Dimension instead of Integer. - Added testcases mosfiles/ArrayParameterSize and mofiles/ArrayInvalidDims.
a7098d015Martin SjölundFix for bug #1350 - Check for invalid named fields in pattern record deconstructor
55e542f24Per Östlund- Relaxed type requirements of Util.listGetMemberOnTrue to make it more versatile. - Added Util.listRemoveFirstOnTrue. - Implemented inStream and actualStream for one-to-one stream connections.
730b4a311Martin Sjölund- Merging
1fb4bdb62Martin Sjölund- Merging
7412337f8Martin Sjölund- Fix type of ENUM_LITERAL expressions in Susan
d7389b405Per Östlund- Fix for bug #1349.
b6437a9a7Martin Sjölund- Merging
1de7c7d9eJens Frenkel- BackendDAETransform.mo - rewrite replaceDummyDer2 and replaceDummyDerOthers, use one function called traverseBackendDAEExpsEqn for both
475d82a35Jens Frenkel- BackendEquation.mo - add functions traverseBackendDAEExpsEqnList, traverseBackendDAEExpsEqn - use traverseBackendDAEExpsEqnList for equationsCrefs - BackendDAEUtil.mo - use BackendEquation.traverseBackendDAEExpsEqns for traverseBackendDAEExpsEqns - BackendDAECreate.mo - use BackendEquation.traverseBackendDAEExpsEqns for expandDerOperator
1b999ceb2Jens Frenkel- BackendDAEUtil.mo - bugfix for traverseBackendDAEExpsEqn
55a44b08fMartin Sjölund- Fix for SimplifyTest.mos
4725bf418Jens Frenkel- BackendDAEUtil.mo - speedup isDiscreteExp
bdebfbf0aJens Frenkel- BackendDAECreate.mo rewrite isAlgebraic using Expression.traversExpTopDown
276fd186dJens Frenkel- BackendDump.mo - fix bugs (BackendDAE.Variables to Variables and remove newline for zero crossings) - BackendDAEUtil.mo - use traverseExpTopDown for isDiscreteExp, statesEqns, incidenceRow - delete unused function incidenceRowStmts - BackendDAECreate.mo - delete function expandDerOperatorStmts and use DAEUtil.traverseDAEEquationsStmts
7b43eea2bPer Östlund- Use traverseExp in CevalFunction.optimizeExp to traverse all expressions. - Use the cache in CevalFunction. - Updated parser/ParseCompilerSources test.
14f94612eMartin Sjölund- Merging
94824fad2Adrian Pop- make 3.x annotation version the default.
8d9084322Adrian Pop- fix new introduced RML warnings - do not load Cevalfunc.mo in testsuite/meta/LoadCompilerSources.mos as it gone! - update SimCodeFMU.mo
c5d417f6cPer Östlund- Fixed slice assignment with step values other than one in CevalFunction. - Added test case mofiles/FunctionEvalSlice to test this fix.
e597daa9aMartin Sjölund- Merging Interactive.mo
502b665fdMartin Sjölund- Merging (except Interactive.mo)
a7d76495dPer ÖstlundFix for bug #1346: - Allow InstSection.instArrayEquation to not expand non-expandable expressions.
8b2a7af13Per Östlund- Changed Lookup.lookupIdentLocal to have the same behaviour as lookupVarLocal, i.e. continue searching if the current scope is a for loop scope. - Implemented record assignment in CevalFunction. - Changed test case mosfiles/AlgorithmForInClass so that it doesn't use uninitialized variables. - Removed loading of MSL from some tests in mosfiles-msl22 that doesn't use the MSL.
eb028e272Adrian PopFixes for bug: #1347 #1335 - for annotations that contain references to the model parameters the class is instantiated and the parameters in the annotations are evaluated. - fixed getDocumentationAnnotation
aa94297b6Martin Sjölund- Added testcase 10_pamtrans to the testsuite
1a0bff629Martin Sjölund- Added boolEq (bootstrapping) - Fixed MetaModelicaDev testcases (they need +d=noevalfunc so the new CevalFunction does not try to ceval external calls)
0041e9d2bAzam ZiaAdded initialize function for FMU C file. fmu_model_interface.h contains structure that will be used to store model status information. Added checkInvalidState function in fmu_model_interface.c file to verify if a model is in invalid state or not. Added some code to fmi setter/getter functions also.
dab8cd6fcPer Östlund- Implemented more of CevalFunction (now available with comments!), so that it's now more or less functionally equivalent to Cevalfunc. - Removed Cevalfunc and switched to CevalFunction. This makes instantation of EngineV6 more than twice as fast. - Removed reduction to valueblock transformation in InstSection. - Fixed some type issues with Static.expandArray. - Implemented constant evaluation of fill in Ceval. - Added Util.listThreadFold. - Fixed listSplit so that the second list isn't reversed. - Fixed issues in Types.typeConvert with unknown dimensions. - Updated ForIterator1.mo in mofiles and mosfiles because of a dimension mismatch that was previously not caught.
a42460aa3Martin Sjölund- Merging
ed5f3cf78Martin Sjölund- Fix "make omlibrary" on non-GNU systems
a1b0474aaJens Frenkel- Expression.mo - Added makeDivVector and makeProductVector. -Fixed bug with enum literal in terms and allTerms
b2375a2bdMartin Sjölund- Add MetaModelica builtin cons()
5be270a95Peter Aronsson-Fixed bug in AbsynDep for building class dependencies. -Added Exp.makeDivVector and Exp.makeProductVector. -Fixed bug with enum literal in Exp.terms and Exp.allTerms
5de9ba94cMartin Sjölund- Merging
27b32bba3Adrian Pop- updated SimCodeFMU.mo
20889c924Martin Sjölund- Merging
ce0332f9dJens Frenkel- use type from componentref for lowerEqn (DEFINE,INITIALDEFINE)
e29a312adJens FrenkelFixes for bug: #1345 - bugfix index of external Objects - use typeinformation for lowerEqn
3504e6d92Jens Frenkel- bugfix index of external Objects
4a03e24a8Martin Sjölund- Merging
e69e9b2ceAzam ZiaAdded functions for c code generation.
9e7aea1e9Adrian Pop- order potential roots by component reference string (alphabetic) if the priority is equal - this fixes some models in the MultiBody testsuite (for some reason in trunk they are ordered differently).
0ee582286Jens FrenkelBug fix for expContains, added missing case for ENUM_LITERAL.
d1ff15850Adrian Pop- got rid of unused imports
7af1fc363Martin Sjölund- Update ParseCompilerSources to accept the current warnings (only ones left are automatically generated code; from Susan)
354bceb76Jens Frenkel- Util.mo switch function arguments from listRemoveOnTrue to use it in compination with listFold_1 - BackendDAECreate.mo - remove all output variables from input variables for algorithm sections -> now testsuite works (mosfiles)
2993f56bfOtto TronarpBug fix for expContains, added missing case for ENUM_LITERAL.
c61f04654Martin Sjölund- Fix RML warnings in InstExtends.mo
54a9ce94eJens Frenkel- bugfix BackendDAEUtil.mo traverseBackendDAEExpsEqn
ca182e7a5Martin Sjölund- Fix InnerOuter.mo RML warnings
51c197e3dMartin Sjölund- Fix warnings in PrefixUtil.mo
cf824e6a2Martin Sjölund- Set svn:keywords on Compiler/*.mo
e5677d05bAdrian Pop- get rid of local case/else declarations. - minor formatting changes.
50c49a1ecAdrian Pop- get rid of local case/else declarations. - minor formatting changes. - got rid of unused imports. - fixed subversion RCS id.
b8834eb05Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
78a61b809Adrian Pop- YOU WILL NEED A NEW OMDEV/MetaModelica/RML for this: http://www.ida.liu.se/~adrpo/omc/omdev/mingw/ (revision 187) - replaced Util.boolString with boolString - get rid of local case/else declarations in ExpressionDump.mo - minor formatting changes
8e095cb7bAdrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
526c04a51Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
f391ed088Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
299dc66bcAdrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
6abfdea79Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
eb02cd255Adrian Pop- get rid of local case/else declarations. - minor formatting changes
28b561c26Adrian Pop- minor formatting changes - got rid of unused imports
7c5872c03Adrian Pop- minor formatting changes
ead706b74Adrian Pop- get rid of local case/else declarations. - minor formatting changes
456bb109dAdrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
ed4191ba9Adrian Pop- get rid of local case/else declarations. - minor formatting changes.
e5c5ca7eeAdrian Pop- get rid of local case/else declarations. - minor formatting changes.
7c27a861cAdrian Pop- get rid of local case/else declarations. - minor formatting changes.
1e63c6256Adrian Pop- get rid of local case/else declarations. - minor formatting changes.
450c6ff17Adrian Pop- get rid of local case/else declarations.
e8be4e540Adrian Pop- get rid of local case/else declarations. - minor formatting changes
a8fd61c2dAdrian Pop- get rid of local case/else declarations. - minor formatting changes
52f5120edAdrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports - added subversion RCS id to the files where it was missing
1da49e9a6Martin Sjölund- Merging
c9219daf3Martin Sjölund- Fixed RML warnings in Inst.mo
04db0d652Adrian Pop- get rid of local case/else declarations. - minor formatting changes
e9a3e30c7Martin Sjölund- Fixed RML warnings in InstSection.mo
728cfcc88Martin Sjölund- Fix RML warnings in Interactive.mo
8bc5d6916Martin Sjölund- Fix duplicate declarations in Interactive.mo
dd7277e4aAdrian Pop- updated copyright (it should be OpenModelica). - added package info - minor formatting changes.
7b53c555fMartin Sjölund- Fix RML warnings in Linearization.mo
61f82a7b7Adrian Pop- get rid of local case/else declarations.
0e98db830Adrian Pop- homogenize printing (include package name). - get rid of local case/else declarations. - minor formatting changes. - added subversion RCS id to the file. - got rid of unused imports.
5feeb1bd5Martin Sjölund- Fixed RML warnings in Lookup.mo
4f005f6e4Adrian Pop- homogenize printing (include package name). - get rid of local case/else declarations. - minor formatting changes. - added subversion RCS id to the file.
58b9ceeb5Martin Sjölund- Fix RML warnings in Main.mo
ab1a6ab37Martin Sjölund- Fix MetaUtil.mo warnings
48f845174Adrian Pop- removed unused imports
ad4657889Martin Sjölund- Fix RML warnings in Mod.mo
cc3e4252aAdrian Pop- homogenize printing (include package name). - get rid of local case/else declarations. - minor formatting changes.
8ac166935Martin Sjölund- Fix ModUtil RML warnings
4856c8222Martin Sjölund- Fix Patternm.mo RML warnings
9b6010644Adrian Pop- add subversion RCS id to new files
c2ce46243Adrian Pop- add subversion RCS to new files - got rid of unused imports and duplicate variables in BackendDAEOptimize.mo
ed8ee8cfbAdrian Pop- align properly in Absyn.mo - remove unused import in AbsynDep.mo and update copyright.
1683517d4Adrian Pop- remove duplicate definitions with different types.
901e65d1dAdrian Pop- remove frontend targets from makefiles
14f8a293dAdrian Pop- remove stubs files and the frontend makefiles and directories
704eed8d7Martin Sjölund- Merging
5f5c0d2f0Jens Frenkel- fix some testcases from testmos
0452c4b6aMartin Sjölund- Fix make install for omlibrary target
d7257cda2Martin Sjölund- Fix omlibrary installation issue
409c3200cMartin Sjölund- Add Makefile target "omlibrary"
55735c2c5Martin Sjölund- Fixed some more RML warnings
fc60d6221Martin Sjölund- Fix RML warnings in SCode and SCodeUtil
867a4b571Martin Sjölund- Fixed UnitChecker,UnitAbsynBuilder RML warnings
c7439129dMartin Sjölund- Fixed XMLDump.mo RML warnings
7a2b30296Martin Sjölund- Fixed one additional omc warning in Static.mo
5bc2fcca7Martin Sjölund- Fixed all warnings when compiling Static.mo
5b8f7d2f8Martin Sjölund- Fix more errors in Static.mo
95f7ff938Martin Sjölund- Removed some duplicates/local clauses in Static.mo
fed758cdfMartin Sjölund- Added new RML warnings to the Linux makefile - Fixed some of them
3a167c6b7Martin Sjölund- Remove case-local declarations
dad3f1e30Adrian Pop- got rid of unused import
d0986cd61Adrian Pop- no more local declarations in cases in DAEUtil.mo
ef4a6d869Martin Sjölund- Updated expected output of some models
f0f6a2949Adrian Pop- got rid of some local declarations.
7fc92ea43Martin Sjölund- Fix function input/output
498f4f528Martin Sjölund- Fix TplAbsyn, TplMain syntax
f7a9b5e7eMartin Sjölund- Fix travering function references (UtilTest.mos now works)
ae1679b69Martin Sjölund- Fixed 1 more testcase in meta/
994ef11eeMartin Sjölund- Fixed traversal of metarecord calls
f8172a6e4Martin Sjölund- Fix RML crap
5b9fee1ddMartin Sjölund- Fix parsing of Util.mo
9f1fae6d7Martin Sjölund- Fixed traverseExp for VALUEBLOCK
9159c1a57Per ÖstlundUpdated CevalFunction implementation: - Fixed correct dimensions for function variables. - Added dependency analysis for function variables so that they are added to the environment in the right order. - Added function to convert all ASUBs to CREFs. - Implemented support for : and slices. - Implemented support for if, for and while statements.
9ea111adeJens Frenkel- fix BackendDAEUtil.checkBackendDAE
ee93614f0Martin Sjölund- Made more things work
862ae8c3bMartin Sjölund- Fix compilation
5ba0f295bMartin Sjölund- Fix RML crap
dc9b43c41Adrian Pop- no more local decls in matchcontinue cases.
9c975c0d9Adrian Pop- no more local decls in matchcontinue cases.
9e7164af6Martin Sjölund- Fix RML crap
78debabf9Martin Sjölund- Remove RML crap
dc226d486Jens Frenkel- BackendDAECreate.mo change interface for user function for traverseDAEExps
87cfff8aaMartin Sjölund- Deprecate case-local declarations in the grammar
f3333b4b8Alexey LebedevMerged the non-expanded array stuff.
910d72b52Martin Sjölund- Added more expressions to SimplifyTest.mos
79c8f229fMartin Sjölund- Merging
5a77e7948Martin Sjölund- Also handled ENUM_LITERAL and METARECORD in traverseExp
0fba28c1fMartin Sjölund- Partial fix for problems with traverseExp
9d5806451Martin Sjölund- Fix syntax error in CevalFunction.mo
a9c57ca06Martin Sjölund- Fix printing of DAE.Type
9793d8142Martin Sjölund- Merging
15c2c2e2cJens Frenkel- FMU - use to get the valueReference = string(prefix)+string(var.index) prefix: states 1 derivatives 2 real algebraics 3 real parameter 4 integer algebraics 1 integer parameter 2 bool algebraics 1 bool parameter 2 string algebraics 1 string parameter 2
bd325d355Jens Frenkel- implement some event stuff
77dfa3e7ePer Östlund- Added utility function Util.listSplitOnFirstMatch. - Added valueInteger and valueDimensions to ValuesUtil. - Implemented more parts of CevalFunction.
965c74e05Martin Sjölund- Fix meta testsuite
4a2b23bfcJens Frenkel- fix bugs - DAEUtil.mo - improve function traverseDAEEquationsStmts
05f689c9eMartin Sjölund- Use realLn
67e553861Willi Braun - renamed uniontype DAELow to BackendDAE - renamed record DAELOW to DAE
8ebd87b83Martin Sjölund- Fix merging error
e4bed5777Jens Frenkel- fix bugs for event stuff
f3cfd1a93Martin Sjölund- Merging
5ed0df578Martin Sjölund- Fix configure script
0e9f8ab1cMartin Sjölund- Remove Compiler/absyn_builder - Run Susan quiet by default
0533c68dfMartin Sjölund- Remove mk_bcon from Modelica.g
29d64124aJens Frenkel- fix some bugs check for records improved rename BackendDAEUtil.traverseExp to traverseAlgorithmExps - Expression.mo delete makeCrefExpNoType use crefExp improve isConst
dc7a0663fAdrian Pop- changed stringEqual to stringEq - YOU NEED A NEW OMDEV/MetaModelica/RML: OMDev: http://www.ida.liu.se/~adrpo/omc/omdev/mingw/ MetaModelica/RML for Linux, revision 183.
ff06bd720Willi Braun - separated functions for BLT to BackendDAETransform
4f303d4f4Adrian Pop- speeding up the type by returning constants (no new memory allocations) and made the type memory default as is now faster than without it.
14f147e0eMartin Sjölund- Fix svn:eol-style on OMEdit, OMNotebook, msl32
91f758f5cJens Frenkel- Expression.mo delete makeCrefExpNoType and use crefExp rename generateCrefsExpFromType to generateCrefsExpFromExpVar
5156ff2a4Jens Frenkel- delete unused code
ce288ebadWilli Braun - thrown DAELow.mo away and divided the stuff on the files BackendDAE* - separated some more stuff
ad2ff1c93Jens Frenkel- BackendDAECreate.mo use BackendVariable.setVarKind
9a06965b1Jens Frenkel- fix some isues
cf8d72ad3Jens Frenkel- fix bugs - BackendDAECreate.mo use traverseExp and traverseDAE2 for state search
1bdff3745Jens Frenkel- DAELow.mo move translateDAE and calculateIndex to BackendVariable.mo
a21e1677aJens Frenkel- DAELow.mo move DelayExpression stuff to SimCode.mo and delete duplicatet functions
9a9c149f1Jens Frenkel- DAELow.mo move DivExpressionErrorMsg stuff to SimCode.mo
b9dc0b881Jens Frenkel- DAELow.mo move tearing stuff to BackendDAEOptimize.mo - Util.mo add function listSplittOnBoolList
12e7426afMartin Sjölund- Merging
44ac5d69aMartin Sjölund- Fix RML crap
dc792e72fMartin Sjölund- Fix RML crap
d1ece24afWilli Braun- added BackendEquation.mo - moved caluclate incendece Matrix to BackendDAEUtil
1a4fa9daaPer Östlund- Started implementation of CevalFunction, a replacement for Cevalfunc that works on instantiated functions instead of Absyn.
89cf0d64fMartin Sjölund- Fix listMember( (a,b), lst ), and similar problems with polymorphic functions
2ed3cbb60Willi Braun - added BackendDAEOptimize.mo and move functions for simplify equations
cd88b7f6aMartin Sjölund- Fixed polymorphism so that Util.listListMap now works - Removed DAE.T_POLYMORPHIC_SOLVED - Instead, we prefix polymorphic types from the called function with $.
243024ab2Willi Braun - rename BackendDAETransform.mo to BackendDAECreate
da96617b6Jens Frenkel- update RedesignBackendOMC.doc - SimCode.mo remove unused code
63ccaa5e8Martin Sjölund- merging
ed0516b73Martin Sjölund- Some more changes that rely on new RML
326775b24Martin Sjölund- Fixed ExpressionSimplify.simplify testcases using the bootstrapping
76829f5e4Jens Frenkel- commit out useles code
6ea1dd602Martin Sjölund- Remove some useless code
eb915a2e9Jens Frenkel- bugfix for derivative function annotations, also have a look into the annotation from external functions.
35b7bfae7Martin Sjölund- Don't ceval functions with initial algorithms
08f147027Adrian Pop- use setGlobalRoot/getGlobalRoot instead of System.addToRoots/getFromRoots - use Inst.instHashIndex instead of 0 in the set/getGlobalRoot - you will need a new MetaModelica/RML (or OMDev) to be able to compile/run: OMDEV: http://www.ida.liu.se/~adrpo/omc/omdev/mingw/OMDev-mingw-msvc-2010-10-26-revision-181.zip MetaModelica/RML for Linux, revision 181.
89c0167f5Martin SjölundRemove unused imports
75bf510a4Martin Sjölund- Merging
6627e96a2Willi Braun- continued with remove functions from DAELow
a5de90b0dJens Frenkel- SimCode.mo do not use DAELow.getAllExps. This is a realy bad function for large models. It needs too much memory. Use DAELow.traverseDAELowExps instead.
93806fbe3Willi Braun - continue with remove functions from DAELow
d373b517dJens Frenkel- Compiler/ComponentReference.mo delete function crefAddPrefix use makeCref_Qual
3d7568224Willi Braun - extract all function regarding Variables from DAELow. to BackendVariables
4261b9ba6Jens Frenkel- Expression.mo remove traverseExpLst and rename traverseExpLstinternal to traversExplst
576fd51e8Jens Frenkel- delete Exp.mo
c250c9c81Jens Frenkel- rename Exp to Expression
5c64b6e3dMartin Sjölund- Merging
993032b65Willi Braun - continue with with moving functions from DAELow to BackendVariable
6834be7ccJens Frenkel- Exp.mo copy all functions for dump and print to ExpressionDump.mo
0208a13dbJens Frenkel- Exp.mo copy all functions for simplify to EpressionSimplify.mo
323bdfe35Azam ZiaCorrected xml for scalar variable start parameter. Added code to generate some global data for c file.
aafaddf0aMartin Sjölund- Fixed HashTableTest.mos
33e72d42aMartin Sjölund- Changed HashTable implementations to use the new BaseHashTable.mo
6114143a8Willi Braun - added BackendVariable modele that deals with BackendDAE.Var, BackendDAE.Variables and BackendDAEVariablesArray. - started to push functions from SimCode.mo and DAELow.mo to that file.
8a9695129Jens Frenkel- Exp.mo copy all functions for solve to ExpressionSolve.mo
21d0fcd6dJens Frenkel- Exp.mo sort the functions and remove functions with equal functionality - ComponentReference.mo update Comments - BackendDAEUtil.mo improve error msg and use flag "checkBackendDAE"
2b4a17ebdPer ÖstlundFix for bug #1323: - Fixed bug in Lookup.checkSubscriptsRange2 that only worked on constants. - Updated CyclicPerm test case, since it now gets a more correct error message.
917db5dbeMartin Sjölund- Added BaseHashTable.mo, a truly generic HashTable - Made HashTable2 use it
0506ff659Martin Sjölund- RML crap
6f46b00f5Jens Frenkel- DAELowUtil.mo - improve Error Msg and use flag checkDAELow for now to keep testsuit running
dc753ed1eMartin Sjölund- Added elaboration for internal builtin functions as a separate function - simplify() is now called OpenModelicaInternal.simplify() - The same goes for the mmc_xxx functions
14df3bb68Martin Sjölund- Fixed some type issues with OMC-MM
02720a007Jens Frenkel- fix bug
93241868bMartin Sjölund- Merging
700c53ae2Martin Sjölund- Add set/getGlobalRoot to Builtin.mo
5cea8df2cPer Östlund- Fixed some bugs introduced by revision 6568. - Renamed DEA to DAE.
9135e4dc2Martin Sjölund- Merging
c9c791048Martin SjölundMerging
31b689961Willi Braun - correct merging error in DAELow.mo
c4b4a9634Jens Frenkel- DAELowUtil.mo - add case for functionpointers to checkDAELow
4783c2549Willi Braun - continue to split out functions from DAELow to BackendDAEUtil
f59cece13Jens Frenkel- BackendDAEUtil.mo - add case for functionpointers to checkBackendDAE
9f1480f8dJens Frenkel- use functions from ComponentReference.mo
e0bd9da3fJens Frenkel- fix bug
ff8345dafJens Frenkel- Algorithm.mo use Exp.makeCrefExp for crefToExp - Convert.mo use Exp.unelabExp for fromExpExpToAbsynExp use ComponentReference.unelabCref for fromExpCrefToAbsynCref - DAELow.mo use ComponentReference.crefAddPrefix for crefPrefixDer and delete makeDerCref because it has done the same as crefPrefixDer - SimCode.mo use crefPrefixDer instead of crefPrefixDer
47b9c8666Jens Frenkel- fix bug
78b172f98Jens Frenkel- fix bug
ce0e3dd3fJens Frenkel- finish to copy all functions do something with a ComponentRef from Exp into ComponentReference
8bae2aee8Adrian Pop- fixes for BackendDAETransform.mo
447f484b6Willi Braun - start to separate DAELow.mo on the files BackendDAEUtil.mo and BackendDAETransform.mo - all functions regarding the lowering are moved to BackendDAETransform and util functions need there moved to BackendDAEUtil
e9fd73a9cMartin Sjölund- Fix RML crap
e1fa84ef8Martin Sjölund- Fix RML crap
231b38d1bJens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
04535a658Martin Sjölund- Fix more RML crap
bd485be5fMartin SjölundNo message
8e7fdebdcMartin SjölundBootstrapping
8982bc10fMartin Sjölund- Fix sources
82122c087Martin Sjölund- Refactoring
01b03825eMartin Sjölund- Merging
4a51f60caPeter Aronsson-Moved traverseExpList to traverseExpListInternal and created a new traverseExpList that doesn't take the newly added traversal function.
1ae7527e3Martin Sjölund- Merging
fd27ac66fJens Frenkel- fix bug
af1d4ffb4Jens Frenkel- rename DEALowUtil.mo into BackendDAEUtil.mo - continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
ef2f45b41Jens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
aa2067ac5Jens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
7d4100257Jens Frenkel- DAELowUtil.mo - finish function to check that a variable (cref) used in an equation or algorithm is actually present in the declared variables. bug #1302 - Exp.mo - add function traverseExpTopDown, is used for DAELowUtil.mo
8dd71264cPer ÖstlundFix for bug #1330: - Removed handling of implictly connected flow variables, because for some reason it's no longer needed and it causes problems with some old models. - Made the parallel test script a bit more random. - Updated some test cases due.
cbb6110f2Martin SjölundMerging
12afbe854Jens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference - DAELowUtil.mo - finish check of BackendDAE object Bug 1302 - Exp.mo - add function traverseExpTopDown, used for check of BackendDAE
436dcfaa3Per Östlund- Implemented merging of annotations for short class definitions, for use with showAnnotations.
d39c6e991Peter AronssonAlgorithm.mo: Added function isNotAssertStatement Exp.mo: Optimized the code in simplify1 HashTable2.mo, HashTable3.mo: added emptyHashTableSized VarTransform.mo: Optimized code.
ed2acad23Martin Sjölund- Merging
3fc48f562Willi Braun- replaced DAE.CREF_IDENT with ComponentReference.makeCrefIdent - replaced DAE.CREF_QUAL with ComponentReference.makeCrefQual
fd70f8688Pavol Privitzer!!! use clean or delete omc.exe to compile this update, I am sorry for the inconvenience. - Susan "import" clause implementation, use: import TemplatePackage.*; //for unqualified import ... the package-name prefix is optional when calling imported template (but may be used when a name hiding occurs) import TemplatePackage; //for fully qualified import .. similar to MM, the package TemplatePackage. must be used to access a template, e.g. TemplatePackage.aTemplate(..) - the new syntax for interface packages (typeviews) - in the interface package, see SimCodeTV.mo for example, use: interface package SimCodeTV package SimCode ... end SimCode; ... end SimCodeTV; - in the importing template package, SimCodeC.tpl for example, instead of typeview "SimCodeTV.mo" is now: import interface SimCodeTV; - SimCodeC and SimCodeFMU slightly redesigned to accommodate the new Susan's import feature and possibility (removal of the stringEqual() usage and some other changes) my notes here: - try to avoid data transforming operations to preserve model/view separation; express the transformation in the SimCode structure instead (usage of intAdd(), for example) - try to avoid overusing of the MM style of value bindings ... use dot notation instead - try to avoid bringing new names by the let clause when only aliasing other name or "naming" simple template invocation (except preventing multiple identical invocations) - indenting is natural and automatic in Susan, see the changes in SimCodeFMU.tpl (although, there are some remaining design issues here; to be soon finished) - Susan's "indexedby" keyword is now changed to "hasindex"; although one still must use only i0 or i1 names for the index ... to be soon finished - the "spackage" keyword changed to "package" used as the top-level package clause in the .tpl template packages (--> towards Susan and MM integration)
20e9fff41Jens Frenkel-- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
70d93bf5dMartin Sjölundgit-svn-id: https://openmodelica.org/svn/OpenModelica/branches/sjoelund-functiontree@6557 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
f129eb021Martin Sjölund- Add new module BackendDump.mo
35817e99bAdrian Pop- replaced DAE.CREF_IDENT with ComponentReference.makeCrefIdent - replaced DAE.CREF_QUAL with ComponentReference.makeCrefQual
1a689ec6bAdrian Pop- added ComponentReference.makeCrefIdent and ComponentReference.makeCrefQual
63dda9630Martin Sjölund- Refactoring: DAELow datatypes added to BackendDAE.mo
bb4d222c9Jens Frenkel- fix some bugs from last commit
bc77c8464Jens Frenkel-- start to copy all functions do something with a ComponentRef from Exp into ComponentReference
aceedfdb1Jens Frenkel- fix some bugs from last commit
32c2df802Jens Frenkel- start to copy all functions do something with a ComponentRef from Exp into ComponentReference
d439c5c43Adrian Pop- change to c-like comments.
30f895f5aMartin Sjölund- Remove type Exp = DAE.Exp from Exp.mo
13fa077ccJens Frenkel- add file ComponentReference.mo
4762a2506Martin Sjölund- Fixed some illegal code in the compiler
f42a32437Martin Sjölund- Merging
5c6fce809Willi BraunDAELow.mo: - bugfix for partial partialAnalyticalDifferentiation and partialNumericalDifferentiation of functions. Derive.mo: - add case for differantiate abs(). Exp.mo: - add solveLin for LinearSystem. SimCode.mo: - add functions to create always linear system in Jacobian code. - add sorting of Jacobian variables. Utils.mo: - update only some comments. simulation_runtime.* and solver_main.cpp: - add some code for dassl2 that enables the usage of the analytical Jacobian for calculations. - enable this feature by the solver flag "-jac", only availible if soure code was created with the flag "+d=linearization"
f94870ad4Martin SjölundMerging r6536 through r6537
89a3e90cdMartin Sjölund- Added OMEdit as a make target (built together with qtclients) (The Debian package has also been updated and should include an OMEdit package if all goes according to plan) - The OMEdit Unix makefile creates symbolic links/etc needed to compile OMEdit
b8845eb1fMartin Sjölund- Merging
0d5e40e5cPer ÖstlundForgot to commit changes to Error.mo in previous commit.
3194e0b50Per Östlund- Fixed makeASUBArrayAdressing for package constants. - Updated some test cases, because for some reason we use different formatting for crefs and ASUBs. - Better elaboration of inStream and actualStream.
e4240a382Martin SjölundMerging
0a5914bd7Martin Sjölund- Fix compilation
178285cbeMartin Sjölund- Updated the testcases that load compiler sources to run a common script (less files to update if the compiler structure changes) - Don't load _stub files in parser/ParseCompilerSources (if you do, you don't test input/output of functions as they are overridden)
ac7b87eb2Jens Frenkel- fix for bug 1329 - DAELow.lowerEqn generated for DAE.DEFINE a=a equations
be0fe7388Martin SjölundMerging
7d12bf117Otto TronarpAdded option for dynamic state selection.
a20d850b7Otto TronarpBug fix for arrayReplaceAtWithFill, it created an array that was one element longer than what was requested.
05621a32eMartin Sjölund- Fix getCrefFromExp for Absyn.FOR_ITER_FARG
8f4c2543aOtto TronarpAdded missing extern "C".
60ef22774Adrian PopPartial fix for task: #1327 - this is a hack for lowering the memory requirements for storage of DAE.ExpType. - to activate this feature use +d=useTypeMemory - the feature is not activated by default as it slows down the testsuite by about 2 minutes (24 min. vs. 26 min).
8335159f6Per ÖstlundFixes for bug #1329: - Fixed prefixing of subscripts in crefs that could not be found in the environment, such as package constants. - Added test case mofiles/SubScript3 and updated libraries/msl31/Modelica.Electrical.Digital.
448de7604Martin Sjölund- Improved error messages
78c5e66a9Martin SjölundRemove debug printing
c85eac6c6Martin Sjölund- Use addSourceMessage for Error.HIGHER_VARIABILITY_BINDING
d25909664Martin Sjölund- The compiler flag +showErrorMessages now also shows Error.mo messages as they occur. This should make it easier to relate Error messages to failtrace messages. - If a message would be reverted, this is of course sort of bad + Keeps memory consumption low for large models + For looping models, you can now see errors even though instantation will never succeed
b5a522692Martin Sjölund#1318 - Disable instSingleCref in MetaModelica mode (maybe this should always be disabled; it certainly would reduce the load on the cache)
c5dfa26b9Martin Sjölund- Fix unparsing for DAE.Exp.NONE()
0fd654160Martin Sjölund#1318 - Fixed inputs/outputs of all functions using match expressions (all crefs are now in the correct order, with the correct name, and without duplicates)
96d735f0cMartin Sjölund- Fixed the output of some functions
8c7e8cab7Martin Sjölund#1318 - Add API call strictRMLCheck() - Checks that all input/output of a singleton match expression in a function matches the function arguments - Run it on the whole compiler in the testsuite - Currently 179 functions fail the check
f08af0b0cMartin Sjölund- Some more fixes for things RML doesn't check for
71e9184b2Martin Sjölund#1318 - Added DAE.STMT_FAILURE, and handling of Absyn.ALG_FAILURE. Simplified generation of code for failure() - Added HashTable testing
d1a0be6d5Martin Sjölund#1318 - Remove NONE from all places in the code. It has been replaced with NONE() - This is enforced when parsing the compiler sources (which is done in the testsuite)
646c0d0d4Martin Sjölund- Fix MetaModelica parsing...
0b7039a20Martin Sjölund#1318 - Remove more NONE() - Add check for NONE already in the parser (so the testsuite can automatically fail if someone uses evil syntax) - Should probably only be enabled with +d=rml, but +g=MetaModelica will work for now
dee7e1f97Martin Sjölund#1318 - Replace more NONE with NONE()
a3104141dMartin Sjölund- Replace more NONE with NONE()
5b26c40b6Martin Sjölund#1318 - Replace some NONE with NONE()
f84c54803Martin Sjölund#1318 - Added initial support for meta-array indexing (arrayGet and arrayUpdate) using the operator []
df0dc739cMartin Sjölund- Added flag to do strict checks so that inputs/outputs of function and match expression are the same
bde7b842bMartin Sjölund- Fix parsing of match-expressions with an else that lacks local declarations
297e36848Martin SjölundMerging r6488 through r6494
4da491995Martin Sjölund- Fix some more errors RML ignores
95a8277e7Martin Sjölund- Improved error messages for lookup of function (now states that it was looking for a function; previously we didn't know if it was the type of an element or a function call that failed)
18f544785Martin Sjölund- Avoid duplicate error messages when elaborating function calls
34461e98eMartin Sjölund- Remove some errors RML doesn't check for
ebc6a511cMartin Sjölund- Merging
5fb9bbe46Martin Sjölund- Removing old code
8870a9700Martin Sjölund- Reverting accidental changes
20ecc71baMartin Sjölund- Fix Error.mo (don't change name if empty string is given)
26b78069eDaniel Hedberg- Minor update for Visual C++ (get rid of the directory separator in front of the file name).
0de311e6aDaniel Hedberg- Fixed compilation errors in Visual C++.
1ecb588f4Martin SjölundMerging
3933c27b3Martin Sjölund- Make the metarecord calls take boxed arguments
774e09eabMartin Sjölund- Option now always contains a boxed type
0dbbbd1d8Martin Sjölund- Updated code generation to add declarations for local variables that are function pointers
a51bb84ddMartin Sjölund- Improve error message for cons-exp
1021c80dbDaniel HedbergFixed a bug introduced by r6450: Better get the commas and braces in the right place as well.
8c043822aMartin SjölundFix for #1326 - Use basename instead of filename in error messages when running the testsuite
8e19c1edcMartin Sjölund#1318 - Add testcases PartialFn15 and updated DumpTest (with Exp.printExpStr and DAEDump.dumpDebugDAE) - These testcases all use function pointers as data (in lists or options), as well as pattern matching on these structures - Added more functions to RTOpts_omc
8a6cdb565Martin Sjölund- Add function pointers for builtin binary real operation
70f4997adMartin Sjölund- Merging
540e17bf1Martin Sjölund- Fixed some errors RML ignores
5e33d058aMartin Sjölund- Added support for polymorphism in function pointers, uniontypes
7436c13a7Martin Sjölund- Made polymorphism work better with NONE() or {} input
c25e54730Martin Sjölund- Merging
fd939a2c0Martin Sjölund- Merging
baefd641eLennart OchelUpdate symbolic jacobian and generation of linear model - fixed handling of algorithms for symbolic jacobian - fixed some general bugs for calculating symbolic jacobian - improve the performance for calculating symbolic jacobian - add simplifying equations and removing unused equations for codegen - fixed some general bugs for generation of linear model - update testsuite/linearization
c6d2a6a74Adrian PopFixes for bug: #1325 - merge cached overconstrained connection graph with the current overconstrained connection graph Compiler/ConnectionGraph.mo Compiler/Inst.mo - added test for this bug in testsuite/libraries/multibody/elementary/DoublePendulum.mos testsuite/libraries/multibody/elementary/Pendulum.mos
5b861116dJens Frenkel- Util.mo - add listMapFlat2 - add DAELowUtil.mo - add function to check DAELow object checks if all componentreferences of an expression part of the DAELow object - DAELow.mo - add a additional input to traverseDEALowExps - run DAELowUtil.checkDAELowWithErrorMsg not yet in function lower because of unexpected error msg from checkDAELow for some testcases - SimCode.mo - adjustments for additional input to traverseDAELowExps
9c4413cfbMartin Sjölund- Added more error messages for metarecord calls (and make the checks in a separate function)
4baeba34aAdrian Pop- prepare for 1.5.1 - update version number in settingsimpl.c - update directories in Examples/ModelQueryAPIexamples.onb Examples/UsersGuideExamples.onb - build a new OMNotebook.exe
1426014fcDaniel HedbergPrint messages in the right order in getMessageStr().
c18689aa7Alexey LebedevFixes for bug: #1322 Added a new error message for tuple assignments where lhs tuple contains not only component references
e66fa266bMartin SjölundMerging r6431 through r6436
8bd0c5bc9Martin Sjölund- Enable testcase running Susan on a very small template
6058deae6Adrian PopFixes for bug: #1324 - fixes for updateConnection: https://openmodelica.org:8443/cb/issue/1324 - update the interactive symbol table with correct program in Interactive.mo - add testsuite/mosfiles-nosim/interactive_api_attributes.mos to test for this bug.
ee3b79e44Martin SjölundMerging
974004e1aMartin Sjölund#1318 - Implement more runtime functions for bootstrapping
d5dbc8de6Peter Aronsson-Added Algorithm.isReinitStatement -Fixed compilation of systemimpl.c for Visual Studio (All declarations at beginning of block for ANSI-C)
12078b9f4Otto TronarpMoved traversingComponentRefFinder to public.
ae1c9abbcAdrian Pop- use System.stringAppendList instead of Util.stringAppendList - use System.stringAppendList instead of multiple stringAppend in Exp.mo
23e78c4a7Martin SjölundFixes for #1318 - Added some more runtime functions for bootstrapping - Added testcase SusanTest.mos; still incomplete but part of it is working
fd3e0bb82Martin Sjölund- More runtime functions for bootstrapping
83d6d21b2Martin Sjölund- Merging
011516ca6Martin Sjölund- Added some Print.mo functions for the OMC runtime
671276174Willi Braun- bug fix: derivative annotation for external functions testcase added.
6664d236bMartin Sjölund- Added runtime support for stringCharListString - Fixed a bug with generation of names for function pointers - We can now generate code for TplMain.main (no testcase has been added; it is slow and does not link)
00e789993Martin SjölundMerging r6410 through r6413
af7516dccMartin Sjölund- Merge trunk (Per's changes)
d8a16c68bJens Frenkel- implement getUUIDStr for windows.
e6f8de6faMartin Sjölund- Additional fix for type matching polymorphic tuples
7d59665d1Per ÖstlundImplementation for tasks: #1277 #1279 - Rewrote parts of the connection handling so that all flow variables are added as inside connectors by default, which is according to the Modelica specification. - Removed the phase that connects unconnected flow variables, since it's no longer needed now. - Potential connection sets are now sorted alphabetically, and the first element in the set is then connected to all the others in the set. - The equations from connects are now generated at the top level, instead of for each class as was previously done. - Deleted components are no longer instantiated. - Added utility function Util.listMergeSorted. - Updated the parallel test script to report missing test cases. - Updated some test cases due to the changes made.
9386d7fe7Martin Sjölund- Propagate input expressions of match expressions to codegen so we can revert changes to them in each iteration - Added test for Util.listSplitOnTrue
7ec410e93Martin SjölundMerging r6391 through r6403
e90cfad53Adrian Pop- got rid of Debug traces to speed up the handling of expandable connectors.
f09482aa8Martin Sjölund- Force lists to be built of boxed types - Fixes Util.splitTuple2List (which has been added as a testcase in UtilTest.mos
8a8514b0eMartin Sjölund- Add type conversion from TUPLE to META_TUPLE (when the expected type is T_BOXED)
165c66df6Martin Sjölund- Add error message if inputs or outputs of a match expression are not component references - Added testsuite/meta/ErrorMatchInOut{1,2,3}.mo to test this
9c0dfdd64Martin Sjölund- Added support for patterns of unary integer/real constants (in Modelica, -15 is not an integer constant; it is a unary expression)
62a3eefc6Martin Sjölund- Add error message if a pattern in a match-expression is invalid (such as case (1+2)) - Added testcase ErrorInvalidPattern.mo
5a0cea96aMartin Sjölund- Propagate Absyn.Info to Types.checkValidBindings - Fix polymorphism in some recursive calls - Enabled 06_advanced testcase since it's working again
b7019411cMartin Sjölund- Fix listMember (was listMember(lst, elt); should be listMember(elt, lst))
aba5bfdabMartin Sjölund- Removing more old syntax
1fee03b21Martin Sjölund- Replaced the T[:]-types used in HashTables with array
af3522c98Martin Sjölund- Change the type of DAE.METARECORDCALL to DAE.T_UNIONTYPE - Changed some old syntax to new
c3ec14cb4Martin Sjölund- Changed the path of a metarecord from Package.MetaRecord to Package.UnionType.MetaRecord - This means we can get the path of the uniontype by looking at the MetaRecord (this is needed if we create a list of metarecords)
12a3dc282Martin SjölundMerging
967b7606bMartin SjölundMerge
215ca2033Daniel HedbergFixed a couple of bugs in traverseExp, it now properly traverses subexpressions in matrix and array expressions. As a result all dependencies are found in expressions like:
99bdf0a4eMartin Sjölund- Split generation of functions from .c into .c and .h-files
4157bc93cJens Frenkel- SimCodeC.tpl - add Version of Compiler to first comment - System.mo - add function getCurrentDateTime - add function getUUIDStr both used for fmu xml file - Util.mo - add uniontype DateTime - add function getCurrentDateTime both used for fmu xml file - SimCodeTV.mo - add function builtin.add - add function builtin.stringEqual - add functions System.getCurrentDateTime and System.getUUIDStr and Util.getCurrentDateTime - add uniontype Util.DateTime - continue with SimCodeFMU.tpl - add file c_runtime/fmu_model_interface.c
cdaaf7770Martin Sjölund- Custom error message when failing to elaborate a metarecord call
3082d624bMartin Sjölund- Added showErrorMessages to RTOpts_omc.cpp, so the testsuite succeeds on Mac
cef0090f0Martin SjölundFixes for #1318 - Added field patternInfo to Absyn.CASE (it displays fileinfo only for the pattern; the other parts of a case already have Absyn.Info embedded) - Propagated this field to more functions in the pattern matching modules
7cafae492Martin Sjölund- Changed Env.Cache to use array<>-notation instead of [:]
8628d90caMartin Sjölund- Removed some conflicting variable declarations
e2adcdf8fMartin Sjölund#1319 - Fixed a problem when a metarecord had the same name as the package it was defined in (did a useless lookupClass in the wrong environment)
48fa61c99Martin Sjölund- Add SimCodeFMU.mo to svn, so automatic builds don't fail
86a33c697Martin Sjölund#1318 - Added stringCharListString to the initial environment
7dfedb75fMartin Sjölund- Renamed some old MetaModelica builtin functions (int_add) to the new ones (intAdd)
86165d796Martin SjölundMerge
17f32bd02Jens Frenkel- add missing file
e77642aa3Jens Frenkel- start with implementation of FMU - Exp.mo - add Function crefToStr and use it for crefStr and crefModelicaStr
a0eeab270Martin Sjölund#1318 - Fixed some code using syntax that RML allows but should not
1ad03c0c3Martin SjölundMerging r6364 through r6368
5267dbaeaMartin Sjölund#1310 #1318 - Propagate Absyn.Info to elabExp and elabMod
524e4fa71Martin SjölundPartial fix for #1310 - Elaboration now fails if you call a function with too few arguments (the error message is still pretty bad though)
c6d51dbc5Martin SjölundBootstrapping: #1318 - Changed System.stringAppendList to use stringAppendListExt in OMC (else you get conflicting types) - Added testcase meta/DumpTest.mos: It tests Dump.dump Dump.dumpStr Dump.getAstAsCorbaString and DumpGraphviz.dump functionality in OMC - Bugfix for errorext.cpp (declaring globals as static, so they are not free'd multiple times when we dynamically load functions that also linked against errorext)
78340bf71Martin SjölundFixes for #1316 - Prepend _ to all variable names in function context, so we don't use C reserved words in the generated code
585410123Martin SjölundMerging r6355 through r6356
4c500ba09Martin SjölundMerging
bea1e3a04Martin SjölundMerging r6340 through r6351
97beeddc3Willi Braunsmaller update of linearization code. change some function calls and comments.
9035a8d92Martin Sjölund- Fixed Builtin.isDer typo
d1f8fc52eWilli BraunAdded features for generating linear models, that looks like: der(x) = A*x+B*u; y = C*x+D*u; The Code to generate the Matrix's A,B,C,D is not activated by default. It can be activated with the debug flag "+d=linearization". With the usage of this debug flag a linear model can be created from the simulation program by using the flag "-l ".
341ef325fMartin Sjölund- Split errorext.cpp into OMC and RML parts
2db395b50Martin Sjölund- Fix printimpl.c (inverted a 1 and a 0 in previous commit)
71c079881Martin Sjölund- Split printimpl.c into OMC and RML versions
4399c2ff1Martin Sjölund- Minor fix in previous commit
0a30bd60eMartin Sjölund- Fixed some MetaModelica string functions. Leaking memory is preferred over random memory.
2c1692ee2Martin Sjölund- Minor fix (RML doesn't care about output arguments; OMC does)
fe512bd2dDaniel HedbergChanged STRUCT_SINGULAR_SYSTEM_CONNECTORS from being an error to a warning.
9deee0356Martin Sjölund- Updated the type of identity (it is not Integer[1]...Integer[8]; it is Integer[:][:])
080ea0e9eMartin Sjölund#1308 - Fix so that X.identity does not lookup the builtin identity function - This is just a partial fix of the problems we have with builtin functions
1f5f5ece3Martin Sjölund#1308 - Remove the function identity in Dump (OMC cannot handle shadowing builtin functions)
4e684102cMartin Sjölund- Merging
f4a30512bMartin Sjölund- Changed the polymorphism implementation a bit more - We now use a new function Types.subtypePolymorphic that does polymorphic bindings if the expected type contains any polymorphism - Now, we can't try to convert an expression while solving the system of polymorphic types - Added an error message if we can't solve the polymorphic bindings (such as when we have contradicting input)
652d7f2aaMartin SjölundFix #1307 - Allow plot, plot2, val to use der(cref) as input
bc24b9663Adrian PopFixes for bugs: #1272 #1130 #1270 #1120 - finished the expandable connectors implementation - added tests for expandable connectors: testsuite/expandable/* [many thanks to Pavol.Privitzer for providing the models] testsuite/libraries/msl31/Modelica.Blocks.mos [BusUsage] testsuite/libraries/multibody/systems/RobotR3.mos [oneAxis and fullRobot] - other small edits, comments and formatting.
f4c369883Martin SjölundMerging r6331 through r6334
37696909cMartin SjölundMerging r6327 through r6330
bd2e2f83eAdrian PopFixes for bug: #1306 - use CONNECT LPAR component_reference COMMA component_reference RPAR instead of CONNECT LPAR connect_ref COMMA connect_ref RPAR
09fa0ed43Adrian Pop- added RCS line and usage info to HashTable* - changed timer code to handle recursive calls more gracefully: see info in System.mo & systemimpl.c
13a8cd2aeMartin Sjölund- Remade polymorphic function calls: We iterate, trying to solve the variables until fixpoint is achieved - There might be more problems with the algorithm (some cases have probably been forgotten, and there might be problems with using Types.equivtypes with empty lists or NONE()) - Added boxptr_stringAppend - Added cevalBuiltinListLength - Added testing of Util.getOption and Util.listMap1r to UtilTest.mos
9f87adfe2Adrian Pop- more cache tuning
d893d7449Martin Sjölund- Changed Static.instantiateDaeFunction to not use print() for error messages - We use Error.mo instead; and we do not print error messages if another was already produced - If Static.instantiateDaeFunction fails, return status Util.FAILURE() - This disables the error message that no candidate exists (and the error lists a candidate with the same type...)
cfbfbe3c4Martin Sjölund- Merging
56aa74cc1Martin Sjölund- Improved MetaModelica error messages by performing the conversion to list() when elaborating an array - This is only performed if MetaModelica grammar is specified and the type cannot be a Modelica array (only boxed types) - Added a debug flag +d=rml which will improve the error messages even further by also transforming arrays of basic types into lists - Bugfix Types.isBoxed: T_METARECORD was previously missing
1f55acc0fAdrian Pop- faster instantiation of enums by more tuning of the inst cache preconditions in Inst.prefixEqualUnlessEnum. Modelica.Electrical.Digital is about 1-1.5 minutes faster. - renamed some of the SCode restrictions to full name INT->INTEGER, BOOL->BOOLEAN, etc.
c98752c72Martin SjölundMerging r6322 through r6323
30548eb90Martin SjölundFix bug #1303 - Bugfix for Inst.checkRecursiveDefinition - We now check if the class we looked up is the same as the actual class, instead of just comparing the last identifier (this should also successfully guard against renaming imports/etc) - Added testcase NotDependsRecursive.mo
20aa6eefbMartin SjölundMerging r6317 through r6321
d4ee0fd7bMartin Sjölund- Updated unparseType, so error messages are shorter and easier to read
e45d521dcAdrian PopFixes for bugs: #1304 #1305 - implemented setting of array bindings in functions - implemented String(x, format="str"); where x can be any of integer, string, real - rem is now translated to mod_real or mod_integer depending on the type of first argument - fixed handling of external functions with *no return* arguments, i.e. Modelica.Utilities.Streams.print - handle case DAE.STMT_NORETCALL in DAEDump.mo - added testsuite/mosfiles/Random.mo testsuite/mosfiles/Random.mo to test these things and more.
49db1bd5fMartin Sjölund- Fix some functions in Dump.mo for bootstrapping
6c517a057Martin SjölundMerging r6302 through r6316
90a9e36b6Martin Sjölund- Fix bug in System.trim (becomes a 1-char long string with random memory when called on a string with length 1) - Fixes the randomly failing EventIteration testcase
4e21b0722Martin Sjölund- Fix some issues by not adding aliased functions to the cache
3760c8057Daniel Hedberg- Added an option to checkExamplePackages, making it possible to specify a list of excluded classes. This is used by MathCore.
09af3e74fMartin Sjölund- Fixed instantiation of (some) derivative annotations - Basically only multibody left to fix
0d9fbdf92Martin Sjölund- Fixed record constructors; updated testcases that now show more functions than previously
b7bae558fMartin SjölundMerging r6296 through r6301
f07dd75a7Martin Sjölund- Changes to function instantation are now almost working - There is a problem with record constructors (the added type is not the RECORD_CONSTRUCTOR function) - Derivative annotations are not handled properly yet
cb113add9Adrian PopFixes for BUG: #1071 - allow different type names for components if they lead to the same class but issue a warning about it - add source message to the duplicate component warnings and errors - nicer printing of component in SCode.unparseElementStr - nicer display of the error/warning message - added more tests and updated the old
895685c36Adrian PopFixes for bug: #1234 - handling Absyn.UNQUAL_IMPORT in InstExtends.mo fixes the 1234 bug. - check earlier in Inst.mo if Type name equals Comp name in Inst.addComponentsToEnv. this will get us a warning before running into lookup errors so the user has some idea what the real problem is. - add source location to the warning above. - changed System.mo so that System.strcmp returns only -1, 0, +1 so we can patter match on it directly used in Lookup to get more deterministic code. - added warning for updating the environment with a different kind of item than is already there VAR vs. CLASS. Disabled for now, see more info in the code. - other minor edits.
7e5d06a66Adrian PopFixes for bugs: #1129 #1122
44e8d013dMartin Sjölund- Merging
526b6ad7dMartin Sjölund- Changed DAE.FunctionTree to a map->Option instead of Function
e22cd4300Per ÖstlundFix for bug #1262: - Add generation of initialization for local variables in functions. - This also causes default values on output variables to work. - Added test case mosfiles/LocalVariableInit.
984ad37c1Daniel HedbergMinor change with regards to enumerations.
54a01a7bdMartin Sjölund$ svn merge https://www.openmodelica.org/svn/OpenModelica/trunk . Merging r6287 through r6291 into '.'
f13fdf3d6Martin Sjölund- Refactoring: Moved DAE.FUNCTION and DAE.RECORD_CONSTRUCTOR from DAE.Element to DAE.Function - This simplified a lot of code in the compiler; the elements were usually filtered to either contain functions or non-functions
78247fedePer ÖstlundFixes for bug #1134: - Fixed constant evaluation of String(enumeration literal). - Implemented minimumLength and leftJustified when constant evaluation String(). - Removed significantDigits from *_to_modelica_string function in runtime except for real, because real is the only one that supports significantDigits. - Updated test cases that use String().
2f556d20cPer ÖstlundFix for bug #1189: - Implemented nested when detection for equation sections. - Added test case mofiles/WhenNestedEquation.
97cccc95bPer ÖstlundFix for bug #1040: - Added new record to DAE.Const, DAE.C_UNKNOWN, which is used for component binding with unknown variability. - Rewrote Static.elabBuiltinFill to use DAE.C_UNKNOWN when checkModel is used and fill couldn't be expanded. - Added test case mosfiles-nosim/ModifierVariabilityError.
a8e9a9180Adrian Pop- well, seems that adding \\\n didn't fix it, use just && directly without a space.
86a52cadeAdrian Pop- do not overwrite the output of pushd so we can catch more errors.
182027f59Adrian Pop- remove the space at the end of OPENMODELICAHOME in: set OPENMODELICAHOME="..." && ... by adding a \\\n after the last " - any of the OpenModelica nightly-builds done since this space appeared are not able to compile any models if OMDev is not present. Doh! - many thanks to Carlos Antunes [ cmantunes nowthor com ] for pointing this out!
ac6d9d654Daniel Hedberg- Updated grammar to allow Code( () ), i.e., expressions with surrounding parentheses. Before, anything inside Code() starting with a parenthesis was assumed to be a modification.
192ac5fb1Per ÖstlundFixes for bug #1040: - Added optional scope information to Env.Frame, so that it's possible to see if the current scope is a function or not. This is needed for bug 1040. - This means that we can now check if we're inside a function or not in Static.warnUnsafeRelations, so that we don't print a warning about == and != inside of a function. - Added new function Env.newEnvironment to create a new empty environment, and made Env.newFrame protected, since newFrame was only used to create empty environments anyway. - Extended Env.newFrame to set name and type of the new frame. - Updated test case libraries/msl31/Modelica.Math, since the erronous warnings about == on Reals are no longer issued.
583ec4f4fMartin Sjölund- Remove all (match) equations of the kind "x = x"; these are generated by match x case x ... - Since Modelica disallows assignment of input variables, it's a good idea to remove these assignments (when we enforce this property; we either need to enforce it or change the matchcontinue implementation to first copy all inputs)
6f5c9073aAdrian Pop- reversing the reverse as now it seems the libs are added in the proper order to the makefile.
fe2e16919Martin Sjölund- Rewrote a few functions in the C runtime to take constant strings as input instead of strings
523304e9eAlexey LebedevFix for bug #1040: Further fix for bug 1040 https://openmodelica.org:8443/cb/issue/1040
c5c49077fPer ÖstlundFix 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.
43532e8ddPer Östlund- Speed up arrays of enumeration variables by relaxing the criteria for finding matches in the cache for enumerations.
e2be88a50Martin Sjölund- Enable error messages for cevalCallFunction again
a895033f5Martin Sjölund- 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
88007929dAdrian PopFinal 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.
0856bb51eAdrian PopPartial fixes for task: #1268 - minor typo fix.
3221dfeebAdrian PopPartial 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.
cc7b6ecc9Martin Sjölund- 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 or void) - The testsuite should be slightly faster as GCC will only have to compile roughly half as many functions
ac82016d2Adrian PopFixes 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.
fee787aa9Martin SjölundFixes 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
111670d50Jens Frenkel- avoid Warnings
5d2499734Jens Frenkel- Bugfix Initialisation Method leastSquare
f5561551dMartin Sjölund- 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)
2777dd591Per ÖstlundFix 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.
6bf2ada6eMartin Sjölund- Propagated Absyn.Info from assignments to DFA.mo - Add testcase meta/ErrorMatchNumOutput.mos
9bc540b36Martin Sjölund- 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
bb6a3161aAdrian PopMod.mo - use case instead of else as the current 1.5.0 release cannot parse the file otherwise
f71259b32Adrian PopDAELow.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
ca866dce6Martin Sjölund- Missing code from r6238 (allow running as root when running in testsuite mode)
87fb99ec6Martin Sjölund- Allow running as root when running in testsuite mode
d05440a54Martin Sjölund- 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)
bd9f1afe5Adrian Pop- use case instead of else as the current 1.5.0 release cannot parse Absyn.mo otherwise
840986ab4Per ÖstlundFixes 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.
e13742e8cMartin Sjölund- Static.elabCallArgs2 no longer prints error messages if it succeeds, but elaborating as record constructor fails
be2b13e7dMartin Sjölund- 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
eff1aec35Martin Sjölund- Fix meta_modelica_builtin.cpp so that the first call always returns 0
b91bf95e3Martin Sjölund- 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
d816e0c7eMartin Sjölund- Removed antlr2 dependency from the configure script
969abb7ffMartin Sjölund- Fix compilation on Linux (database.o -> Database.o)
a70338022Adrian PopCompiler/Database.mo Compiler/runtime/Database.c Compiler/runtime/sqlite - a wrapper for SQlite (empty and unused for now)
1a8ba8284Martin Sjölund- Added the boxptr functions for the MetaModelica builtin Integer functions
a5bfaaa71Martin Sjölund- Updated SimCode.getCalledFunctionsInFunction to filter out function references called in valueblocks
e74b03859Martin Sjölund- Changed code generation for function pointers. They now also work when you bind valueblock-local variables.
6ff9efad3Adrian Pop- clean ModelicaExternalC also when cleaning c_runtime
90f8c403dAdrian Pop- use intEq instead of equality
a6c9f4bb6Adrian Pop- get rid of equality()/failure(equality())
5a7990e1aAdrian Pop- use intEq instead of equality.
39e624c40Martin Sjölund- 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
4fc3e7b78Adrian PopFixes 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
a7dfd92a1Martin Sjölund- Guard parser/ParseModel files from svn-eol-style script
4efbb1ad0Martin Sjölund- Fixed else for match expressions
d73eb8176Alexey LebedevAdded a check whether component's name is the same as its type specifier. Modified the testsuite correspondingly. Added a couple more test cases.
6b970d415Martin Sjölund- Disable LossyGearDemo1 testcase (spins until memory runs out) - Fix refactorGraphAnn2.mos
e328561b6Martin Sjölund- More int/modelica_integer fixes
aeaf75985Martin Sjölund- Changed int, unsigned char in the simulation runtime to modelica_integer, modelica_boolean
4266afff8Martin Sjölund- Fix compilation of errorext.cpp (rml-trunk mk_scon doesn't accept const char*)
793269b5eAdrian Pop- Fixes for bug #1285 #1286
ba950503aAdrian Pop- fixes so we can compile with MinGW GCC 4.5 also.
497b34318Adrian Pop- got rid of an unnecessary stringAppend.
53ec55249Adrian PopFixes 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.
20672528fMartin Sjölund- 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
a5b8be454Martin Sjölund- 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)
0e2dcee03Willi BraunCorrect small error for revision 6177
d20f9f9ebWilli BraunFixed memory error in initialitation after rev6171
9cdf03684Martin Sjölund- Fix compilation on Linux
cdac4a0bdMartin SjölundFix #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
dae6b64efPer ÖstlundFix for bug #1133: - Added support for reinit in DAELow.lowerStatementInputsOutputs. - Added test case libraries/msl31/Modelica.Mechanics.
d7d5b8d01Willi Braun- Added support for Boolean and Integer Variables in c_runtime - simulation_result changed only for plt output
2592cea0fPer ÖstlundPartial fix for bug #1287: - Fixed code generation for algorithm with single output variable.
73b669dd3Martin Sjölund- 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
55777f978Jens Frenkel- 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
4cbdfa8b0Per ÖstlundFix 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.
9084ca439Martin Sjölund- 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
6c30f4147Daniel HedbergAdded dynload_try.obj to VC makefile.
42ed1b83bPer ÖstlundFixes for bug #1272: - Fixed checkModel of for-loop with unbound parameter range.
fd225f2faMartin Sjölund- Fix svn-eol-style on Makefiles
008860fd4Martin SjölundFix #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
141c705b7Per ÖstlundFixes 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.
77082237dMartin SjölundFix #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
737234b77Martin SjölundFix #1293 - Enable MetaModelica grammar when +c=mdt is given
95dff6513Martin SjölundFix #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.
0eccfc6feMartin Sjölund- Ran make fix-svn-eol-style
7ba52093dMartin Sjölund- 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
32bc44a6cPavol Privitzer- 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
9c079488dPer Östlund- Reverted some changes from r6146, since they broke some Modelica.Math functions.
abc137ccfPer ÖstlundFixes for bug #1272: - Allowed Inst.elabComponentArraydimFromEnv to fetch dimensions from the component declaration if a component doesn't have a modification.
b86f99575Martin SjölundTrunkate integers in the interval 30~31 bit like the old parser did.
01256d88cPer ÖstlundFixed 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.
7b1c9a84bMartin Sjölund- Fix parsing of if-expressions in mos-files
12d1f8e43Martin SjölundFix #1284 - Fixes a bug where "No viable alternative near token: " would result in a segfault
551386936Martin Sjölund- Change error message for assignments using (=) instead of (:=)
582991dd0Peter Aronsson-Changed error messages for unbound parameters.
91cb5d092Per ÖstlundFixes 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.
5869308b8Per ÖstlundFix 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.
38d631406Per Östlund- Fixed missing semicolon when printing STMT_NORETCALL in DAEDump.ppStmtStr.
d6b64cb4cAdrian PopSpeed 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
3fd98df68Jens Frenkel- fix else path of functionODE_inline - cast conditional expressions to modelica_bools avoid warnings
ea24c37cfPer ÖstlundFixes 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.
4e63c7e71Per ÖstlundFixes for bug #1274: - Replaced Static.dimSize with Types.getDimensionNth. - Rewrite Static.computeReturnType to allow unknown dimension in matrix multiplications when checkModel is used.
172e07d4bAdrian PopFixes 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
7702c1561Adrian Pop#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)
c85d03ee8Adrian Pop- a makefile that works with Visual Studio nmake.
fa6eaf0caPer Östlund- Added printing of class comments and annotations to DAEDump. - Updated test cases.
807192b6cPer Östlund- Fixed expansion of sum(param with fixed=false). - Added test case mofiles/Sum.
02abb48ffPer Östlund- Fixed type of skew function. - Added test case mofiles/Skew.
f5aa5b785Per Östlund- 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.
caab1f90bAdrian PopFixes 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.
3294b1025Anton SodjaFixed error in c_runtime/Makefile.common regarding libModelicaExternalC.a.
24337450eAnton SodjalibModelicaExternalC.a is now compiled from Modelica/C-Sources/*c.
74e4fdeecPer ÖstlundFix for bug #1274: - Modified Static.elabBuiltinIdentity to work on arrays of unknown size when checking a model.
3db308f51Per ÖstlundFix for bug #1274: - Changed Types.matchTypeTupleCall to allow tuple calls where the LHS has fewer components than the RHS.
ff25ae720Martin Sjölund- Add -lrt to LDFLAGS when needed
cebff6189Martin Sjölund- Add missing #include in rtclock.c
9f11b6758Martin Sjölund- Updated code for rtclock.{c,h}. The new stopwatch uses a clock index outside the range of the user-accessible clocks instead of 13.
1e6d000ffPer ÖstlundFixes 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.
e9d7b36c9Martin Sjölund- Fixed compilation of ModelicaExternalC.cpp (missing errno.h header)
8ae5a1e11Adrian Pop- 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.
38096e5f1Adrian Pop- include more functionality in ModelicaExternalC.cpp needed for Modelcia.Electrical.Machines.
c176fa361Adrian Pop- transform an integer literal into an enumeration literal if the requested type is an enumeration. - used in Modelica.Electrical.Machines and Modelica.Electrical.Digital.
d538b4a91Adrian Pop- allow enumeration type to be used as a connector as is used in Modelica.Electrical.Digital.
8e856f5c5Martin Sjölund- Fix for parsing element_replaceable
8d996956fMartin Sjölund- 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
8222968baPer Östlund- Fixed bug in ceval of <>, same problem as fixed in r6093 for ==. - Added test case mofiles/ConstantLogicalRelations.
9777e9515Per Östlund- Implemented assignments on the form cref := function_returning_tuple(...), which is possibly needed for bug #1274. - Added test case mofiles/TupleSingleAssign.
7fa4d4314Peter Aronsson-Fixed bug in ceval of false == true, introduced in -r 5993
f2e35c7c0Adrian Pop- 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
126412009Jens Frenkel- 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
25f2865b2Adrian Pop- 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.
28a1be4abMartin Sjölund- Allow the parser to treat list[:] as valid MetaModelica code, since that's the syntax used in the compiler. - Fix a bug when a generic parser error got 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
28d85f98cJens Frenkel- 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
d8b1b164dPeter Aronsson-Fixed compilation of rtclock.c for visual studio.
5d114b63dPer Östlund- Use fake dimensions when vectorizing a function if checkModel is used. - partial fix for bug #1274
c10e4bb93Peter Aronsson-Removed some newlines in the debug print of expressions
b3419e922Martin Sjölund- Fix parser compilation with GNU C++ headers (involves #undef __cplusplus to prevent the unintended use of C++ features)
957aab9a6Adrian Pop- 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.
8a07489eaAnton SodjaFixed 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).
d98eb9972Martin Sjölund- Update the type of SimulationResult
94d359770Martin Sjölund- Fix rtclock.o compilation on OMDev
7a43d4b14Martin Sjölund- 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)
f83cc5861Per Östlund- 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.
f35adfa0bMartin Sjölund- 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)
3be70af07Martin Sjölund- Fix parse.c when parsedebug is used
ceb97af05Martin Sjölund- Added testcase for getting values from records in the interactive API. The following now works: - x := rec.field; - rec.field;
ec1423f87Per Östlund- 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.
3edbc66b4Per Östlund- Made all enumeration names fully qualified.
dba6c747bAnton Sodja- Removed unnecessary VarTransform.VariableReplacements from DAELow.removeSimpleEquations. - Changed type of aliasVariables in DAELow.DAELOW (currently ignored in trunk).
bbbea5cb4Adrian Pop- handling task #1269 - partial implementation of stream connectors + connection of stream connectors works now
1a95d5681Jens Frenkel- fix bug (more than one tearing variable) for relaxation algorithm
0064bbb93Willi Braun- fixed bug [#1263]
82657ee12Jens Frenkel- speedup updateAlgorithm
d73a40e96Martin Sjölund- Fixed IntegerLiterals32.mo on OMDev
878d7a4f2Martin Sjölund- Also sort files in a directory when using the class loader - Fixed some compiler warnings (unused imports)
292f84a82Martin Sjölund- 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
4cdf9c75fMartin Sjölund- Fix parser for empty within statements (within ;)
83fcbb7ceMartin Sjölund- 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.
81c1c3ae5Per Östlund- Implemented reduction of enumeration ranges so that the enumeration literals are preserved. - Added utility function Util.listSub. - Added test case mofiles/EnumRange.mo.
1151192beMartin Sjölund- Update parser makefile
da13ec062Martin Sjölund- Fix integer overflow problem warning on 32-bit systems
00ba3abe7Willi Braunadd reinit support for euler, rungekutta, dassl2
36b4e1fc3Adrian Pop- fixed model extends X end X;
d897f977fJens Frenkel- 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
65718eed2Martin Sjölund- Fix compiler makefile dependencies of subdirs
b1409562cMartin Sjölund- Changed default parser from ANTLR2 to ANTLR3 - All testcases except flat modelica parsing works
b95e74fedPer Östlund- 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.
1e9833008Anton SodjaReverted 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.
8653dcbf7Anton SodjaFixed bug where InterpolationTable::extrapolate() expects enumeration indices to begin with 0.
c2d026ce5Anton SodjaIn 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).
92166980cPer Östlund- Fixed vectorization of crefs so that enumeration dimensions are preserved. - Added test case mofiles/EnumDimSum.
05084f4d6Anton SodjaAllowed time samples to be only monotonous (before strictly monotonous) in c_runtime/tables.cpp.
48fa0803cAdrian Pop- added missing c_runtime/ModelicaExternalC/Makefile - fixed ö from Linköping in ModelicaExternalC.cpp and included "../tables.h" instead of "tables.h"
4a45ac274Jens Frenkel- 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
fbad45ad5Anton SodjaAdded wrappers for table-manipulation functions (defined in c_runtime/tables.h) to libModelicaExternalC.
d82d552d4Jens Frenkel- 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
4bb494300Martin Sjölund- Simplified parsing of identifiers - _ is now a valid identifier when lexing as Modelica 3 - It is Absyn.WILD when lexing as MetaModelica
2b628e7b3Anton SodjaIn Modelica Standard Library 3.1, certain external functions are lined with library ModelicaExternalC, which is currently missing in OpenModelica.
258df9babMartin Sjölund- 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
1ae5f6197Martin Sjölund- 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)
4c47984baPer Östlund- Implemented simplification of size calls. - Added test case mofiles/ConstantSize and updated mofiles/DiagonalBlock.
bfe7352ffMartin Sjölund- 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
7d6eba547Martin Sjölund- 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
b9de7054fJens Frenkel- speedup backend function addDivExpErrorMsgtoExp
5f6d3602fPer Östlund- Fixed bug #1255 by also fixing submods in InstExtends. - Added test case mofiles/ExtendsModWithImport.
7208e7d6dMartin Sjölund- Added testcase for runScript() API
d285cae59Jens Frenkel- do not replace outputs of algorithms
150a3afe5Jens Frenkel- do simple replace also for algorithms - TODO: add algorithm outputs to BinTree of DAELow.removeSimpleEquations
5f08c4629Peter Aronsson- Changed Exp.subscriptDimension to return list of DAE.Dimension
f377ef4a6Martin Sjölund- Updated ANTLR3 parser (match/matchcontinue/else) - Most of the testsuite now passes (virtually only error messages are different)
a8f190b40Martin Sjölund- 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)
1deb03978Per Östlund- Implemented expansion of reduction calls sum and product, which are now expanded when possible. - Added test case mofiles/Reductions.
5c4f4fc33Martin Sjölund- 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.
3ae4516f5Per Östlund- Simplified elaboration of reduction iterators due to general changes in iterator elaboration.
cd8f31241Martin Sjölund- Added omc.exe omcd.exe targets to the Parser/Makefile, to link and use ANTLR3 instead of ANTLR2
10dae7a24Martin Sjölund- 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
aafe19f6bPer Östlund- 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.
4cf9aa2b4Jens Frenkel- fix bug in DAELow.traversingextendArrExp
ac645eb9fPer Östlund- Commented out case in DAELow.traversingextendArrExp that converted component references belonging to blocks to empty calls. - Added test case mofiles/BlockResult.
e02bc2f5bPer Östlund- Fixed bug 1249 by relaxing the condition in crefHasScalarSubscripts, so that crefs can have less dimensions than subscripts. - Added test case mosfiles/SliceAssignment.
99bf7a9e8Per Östlund- 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.
4a6b0c5a7Martin Sjölund- 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.
bf3458ab8Martin Sjölund- Update handling of Absyn.IFEXP in the old parser and Static (we now have support for else-if branches in elabExp)
e922c8570Martin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~572 of the testcases. - Improved error handling in the new parser.
924423af9Martin Sjölund- Add some error handling to the ANTLR3 grammar
c52a3a12bMartin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~485 of the testcases.
0b28ce1c5Martin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~399 of the testcases.
c8a3f827fMartin Sjölund- More fixes to the ANTLR3 grammar (~308 working testcases)
64e577205Martin Sjölund- More fixes to the ANTLR3 grammar (~264 working testcases)
28909bdf9Martin Sjölund- More fixes to the ANTLR3 grammar (~165 working testcases)
3e3bc2b69Martin Sjölund- Add missing parse.c to the ANTLR3 parser
5099b97a1Martin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~140 of the testcases.
e3c83fe09Anton SodjaReplaced isblank() with isspace(), because the former was added with C99 standard and it seems not every compiler supports it.
653fe0e1aMartin Sjölund- ANTLR3 rules almost done. Can now link it with the omc executable, but it crashes for most input :)
83464e292Martin Sjölund- More actions to the ANTLR3 parser - Now initializes like an RML module so we can use real RML calls and see how slow the parser is using lots of malloc()
22b3bcf7eAnton SodjaReimplemented tables.{h,cpp} (and hopefully made code more clear) and also added support to load tables form MAT-file ver4.
07dfbfe07Martin Sjölund- More actions to the ANTLR3 parser
297e5be01Martin Sjölund- More actions to the ANTLR3 parser
0ab6e1f72Martin Sjölund- File encoding UTF-8 to 8859-10 (c_runtime/solver_main.cpp)
c460bfef4Martin Sjölund- Fixed RK allocation issues once and for all (alloca doesn't work in mingw, so we use a global malloc instead)
99c141629Martin Sjölund- Guard some macros in f2c.h so they don't mess with C++ headers
fcd11b39fMartin Sjölund- Changed RK allocation method to alloca instead of variable-length arrays, since Visual Studio doesn't support those...
5e65412bdMartin Sjölund- Another memory leak in rungekutta_step fixed
1b8845ec4Martin Sjölund- Fix rungekutta memory leak
619142f0cOtto TronarpRe-enabled the general handling of import in Cevalfunc.
57979b084Martin Sjölund- Added some actions to the ANTLR3 grammar
1ceb951dfPeter Aronsson-Added Util.arrayMap and Util.arrayMapNoCopy for mapping functions over arrays.
14872126aMartin Sjölund- Fix building ANTLR3 parser prototype on Linux (ignore the directory recursion in the executable as it is written in Win32 API)
c0b665a3fMartin Sjölund- Changed output of a flat class from fclass to class (omc a.mo > a.mof; omc a.mof no longer causes a parsing error) - All testcases have been updated
7e90ffe63Martin Sjölund- Fix and add testcase for Integer() of enum - Fixes bug #1250
f8ba68518Martin Sjölund- Fixed the copyright information displayed to the user when running omc,mosh,OMShell or OMNotebook (years were outdated, etc)
7525cd61eMartin Sjölund- Simulation runtime change: - The cref defines also define $P$old<%cref%> (and old2) - This is a replacement for the old() old2() functions and is a lot faster
17363ad41Pavol Privitzer- fixed a bug in SimCodeC.daeExpAsub() in the last case where context condition should be FUNCTION_CONTEXT vs. other contexts (did not work for OTHER context) - removed a redundant case (repetitive code) with Susan's "or case" feature in SimCodeC.daeExpMatrix() - a new version of C# code generator (better array support in functions, mainly 2D slicing)
df41f5a19Martin Sjölund- Improved the rungekutta implementation (call functionODE n times per loop instead of n+1)
fdb9a8bcfAlexey LebedevImproved error messages in Static.mo - added Prefix information into them. Modified test files where needed. See http://openmodelica.ida.liu.se:8080/cb/issue/1235?navigation=true
5e4adf439Martin Sjölund- Backup algebraics in functionDAE_res, as per bug #1176
309ea32feMartin Sjölund- Added runtime support for array equations "cref = fn()", where the cref is an integer array - Solves bug #1242
4658adc79Martin Sjölund- Changed the inline implementation slightly so that it works properly with events - Added functionODE_inline in the runtime (only called by the inline solver) - Now uses RK order 4 properly (was order 1 previously) - Verified that RK produces correct results with der(z) = time - The inlined code now updates the global time instead of the solver routine
3f53ac6a7Adrian Pop- fixed setting the compilation command on Windows for Inline solvers - fixed test name in InlineSolverCodeGenerationRK.mos
8a44c138ePer Östlund- Fixed simplification of min and max so that a value of the right type is returned. This fixed the mosfiles-nosim/matrices test case.
6976d4529Martin Sjölund- simulate(..., method="inline-...") now sets the environment variables required during compilation
f4995318fMartin Sjölund- Added "inline-rungekutta" solver - Uses C preprocessor, and for now "inline-euler" and "inline-rungekutta" requires adding environment variables so that the executable compiles code for the inlining
a21a1ea5fMartin Sjölund- Only use EQUATION_GENERIC_FAILURE if no other error message was output during instantiation of the equation
67e58194fMartin Sjölund- Add line numbers to error messages in Inst.checkConnectTypes
d78c0de04Peter Aronsson-Added extra guard to Exp.solve so it doesn't solve equations like a*b=0 w.r.t. a. (a is not necessarily zero)
31bc1393ePeter Aronsson-Made DAE.transformIfEqToExpr public again since MathCore uses it in their backend.
1dc7a5186Martin Sjölund- Added new solver "inline-euler" - Works for all equation blocks OpenModelica currently can generate derivative assignments for - Does not generate callback functions for all the blocks (which means it can't be used to implement inline-rungekutta) - Mixed equation systems inline the solver in each iteration, which is not optimal performance - Does not require any API calls or flags to use this solver - simulate(..., method="inline-euler") works
dd34e6963Martin Sjölund- Changed SimCode.SES_SIMPLE_ASSIGN.cref to a ComponentRef instead of Exp
a6b7fd432Per Östlund- Added failtrace to DAELow.lowerStatementInputsOutputs. - Fixed correct type of DAE.STMT_ASSIGN_ARR in Algorithm.makeAssignment2. - Fixed code generation for array equations in algorithm sections in models.
704c78d5eMartin Sjölund- Removed the SIMVAR to String to function from the template; the cref stored in it is sufficient to create the string
64408a43aMartin Sjölund- Fix a configure issue when using sendData-Qt on OSX
66dc286c0Martin Sjölund- Added a generic error message for failing to instantiate an equation - There are many ways that the equations can fail, and only error messages for some; it's important to at least print something - Closing bug #1239 (which had 2 errors in it; neither of which were caught)
329884227Per Östlund- Added getVectorizationLimit to complement the previously added setVectorizationLimit API call.
7d95a39ccPer Östlund- Removed check for DAE.VARIABLE in SimCode.daeInOutSimVar so that it doesn't fail for parameters in functions.
1e5a948feMartin Sjölund- Updated OMC lexers to use look-ahead that detects if +. is supposed to be PLUS followed by some text, or realAdd (i.e. PLUS) - Fixed bug #1148, and added testcase RealOpLexer.mo
8bd36e4d5Martin Sjölund- Refactoring MetaModelica Real operations - The source code now contains a space after each real oepration (e.g. a*. 0.4) - The RML and OMC parsers will be updated to require a space after these operations in order to avoid ambiguity with regular Modelica code
9cd5dc124Per Östlund- Added setVectorizationLimit as an API command. - Cleaned up implementation of vectorization limit in RTOpts, and sprinkled some comments on it.
55d6d0b30Per Östlund- Unlifts both sides of the equation in Inst.instArrayElEq, so that their type is correct. - Added testcase mosfiles/ArraySlice.
f3ae7f3dbMartin Sjölund- Backend: Better error messages when if-equation to if-expression fails. - Backend: Ignore assert() and terminate() in if-equations, and print a warning. We need to do this to get some MSL models to generate code since OpenModelica doesn't fully support if-equations.
c60144e20Per Östlund- Moved an failtrace guard in instElement so that error messages are printed correctly.
7d0e02156Peter Aronsson-Fixed bug with prefixing of expressions inside subscripts of component references (Bug reported by Hannes Edinger). (testcase in ArrayIndex.mo)
ce8d339cbMartin Sjölund- Enforce that function calls with multiple output have a tuple of crefs on the left side of an equality equation.
cdb205fdeMartin Sjölund- Added output String name to lookupVar functions, so it's possible to create the correct FQ path from the output - Testcase Import6 tests this (import a=X.b would previously get FQ path X.a)
bb5feeb38Per Östlund- Added the new vectorization limit switch to the help text of OMC.
6e356d937Per Östlund- Added command-line switch to set the vectorization limit used by Static.crefVectorize.
c6f0127ecMartin Sjölund- Fix XmlDump; escape comments (bug #1101) - Fixed the rtest script, so that it is possible to have output that starts with "xmlNameSpace:..." or similar
c90ce8d6dPer Östlund- Readded changes made in revision 5900 that were removed in revision 5901, since they seem to be working anyway.
af398596aPer Östlund- Undid revision 5900, since it caused some testcases in mofiles to fail.
f026142a2Per Östlund- Fixed code generation of functions returning tuples. - Added testcase that tests the above fix.
0472e19dbMartin Sjölund- Changed elaboration of cat() to ignore checking that the dimension we concatenate over is always identical - Fixes bug #112
42a586f6dMartin Sjölund- Fixed the DAE function cache when elaborating the expression in a reinit() statement - Added simulation testcase FunctionReinit.mos - Closing bug #1023
b19ccda03Martin Sjölund- Use $(MAKE) in c_runtime Makefiles, to suppress warnings
4d3e6c0d9Martin Sjölund- Added runtime code for semiLinear(), and added simulation testcases for it
885d0c854Martin Sjölund- Improve the error message when trying to use a non-linear system of equations in a when-equation
1c97aa013Per Östlund- Commented out cases for arrays in writeLhsCref in SimCodeC.tpl. - Changed the type of return variables for the size operator to modelica_integer instead of size_t, so that min works on arrays of unknown dimensions.
8dac993abMartin Sjölund- In errorext.cpp, fix the error message when a mismatched delCheckpoint is detected (id and top of stack used to be switched around, making you debug the wrong piece of code) - Added checkpoint rollback for "instArray", and renamed it "instArray Real[0]"
51e05b98bAnton SodjaCorrected SimCode.getInitalValue(), so it check that variable's initial value is a constant.
291c7aba1Anton SodjaAdded additional fields to SimCode.SIMVAR structure: - String unit, displayUnit - Option initialValue (from modified SimCodegen.generataInitData{3,4})
edf3ffafcJens Frenkel- Exp.mo - add function expLastSubs - DAELow.mo and VarTransform.mo - extend arrays if elements of the array has to be replaced
9b6205d81Pavol Privitzer- fixes to make slicing like a[1,:] := a[:]; and/or a[2:3,2] := x[2:3]; work: - fixed code in indexed_assign_real_array(), index_real_array() and index_alloc_real_array() - fixed daeExpCrefRhsIndexSpec() template to generate "zero" dimension size for scalar subscripts for INDEX case: (0), make_index_array(1, <%expPart%>), 'S' - added test ArrayAssignWholeDim.mo; but it should be moved to mosfiles to ensure C-runtime invocation TODO: the same should be done for integer_array.c; then the character slice coding, i.e. 'S','A','W', can be removed entirely; or, perhaps, the slicing operation can be generated inline as appropriate nested for loops (I'll do that for C# generator, then it may be ported back to C++) - fixed daeExpAsub() template for _get_1D() .. _get_4D() constant index cases ... decremented indexes, because the _get_#D() functions works with zero based indexes - commented out #include "utility.h" in simulation_events.cpp to enable debugging in Visual Studio - added NO_INTERACTIVE_DEPENDENCY macro switch used in simulation_runtime.cpp for simpler compilation of simulation runtime in Visual Studio - added SimCode.cref2simvar(ComponentRef,SimCode)->SimVar function and daeLow field into SimCode.SIMCODE record to enable lookup of representation arrays in templates (C#); note that only cref2simvar() is visible from templates, but not the daeLow field which is not added to SimCodeTV.mo; the function needs a SimCode value as a whole, so the implementation is effectively hidden from templates' viewpoint; BUT, this is only a workaround for the lack of the needed information in component references themselves (hope they will have it in the future); see usage of cref2simvar() in SimCodeCSharp.tpl - added extern int const specifiers in functionStoreDelayed C++ template to resolve a link problem in VC++ - renamed local identifiers named cref to cr or ecr (ecr when of type DAE.Exp) in the C++ templates to disambiguate them from cref() template name (will be checked in the future; now value binding names and template names has separate name scopes, but that will be changed in the next versions of Susan); maybe the cref() template should be renamed to compRef() because there exist fields named cref in SimCodeTV.mo - simplified several constructs like '<%val%>' to just val and/or like (libs |> lib => lib) to just (libs) in C++ templates - re-factored some case clauses when they shared the same then part (Susan can have "or" cases,e.g.: case PAT1 case PAT2 case PAT3 then tplExpr ... where the same tplExpr is lexically used for every given case) - renamed subscriptsTpl() and subscriptTpl() templates to more suitable names subscriptsStr() and subscriptStr() - added many improvements in C# code generator - changed some make commands for Susan/C# codegen testing - added testmo make command to Makefile.common
95e688a3cAnton SodjaAdded output of results into a MAT-file that Dymola is able to read, so Dymola's variables' browser can be used. Specifications of Dymola's output format are described in Dymola User's Guide.
3176b7796Per Östlund- Fixed constant evaluation of for iterators. - Added test case ForIf.
99ea8af7dPeter Aronsson-removed __inline when compiling with visual studio, because it can not cope so well with inline in combination with extern, causing linking error.
eadb012bbPer Östlund- Fixed small mistake in instantation of reinit statements.
c6a172fe0Peter Aronsson-Fixed bug with infinite recursion when trying to constant evaluate parameter that has no binding (must be allowed when e.g. checking models). Testcase in multibody/checkingModels/BodyCylinder.mos
0df1c741aPeter Aronsson-Added error message for structurally singular equation (e.g. 0=0). Before we only had message for structurally singular system.
f356f4978Peter Aronsson-Added ClassInf.State to the Prefix information so at least the state is part of ET_COMPLEX information in DAE.VAR. Note that list of variables in ET_COMPLEX is still missing (this is a little bit of the chicken and egg problem, since the type can not be properly filled in before the type of the class is known). However, by at least having ClassInf.State in ET_COMPLEX one can distinguish between e.g. connector variables and other variables in the backend. Also note that for expressions in equations and algorithm the ExpType is correctly filled with type information, since those are elaborated first when the components have been instantiated (and their types are known), so the above is only concerning DAE.VAR objects.
3cdea3838Per Östlund- Fixed test case AlgorithmForInClass that was broken by commit 5859 by fixing the lowering of for statements. - Fixed bug #1236, constant evaluation of product in nested for iterators. - Implemented constant evaluation of empty ranges in reductions. - Extended sum reductions to also handle vectors, matrices and strings. - Use correct type for the iterator variable. - Extended the ConstantReductions test case to also test the new functionality.
5982a41b9Jens Frenkel- SimCode.mo -collate crefs of arrays before template code generation - DAELow.mo -add function collateAlgorithm, collateArrExpm, traversingcollateArrExp - SimCode/SimCodeC.tpl - improve template algStmtTupleAssign to generate code for functions return arrays
f46d1cc24Jens Frenkel- Exp.mo - simplify array of array * array with simplifyScalarProduct
bf4f3e2d4Jens Frenkel- DAELow.mo - extend arrays in algorithms - fix bug DAE.STMT_ASSIGN_ARR results in error " Too few equations, underdetermined system. The.." - SimCode.mo - check index of array to test singleAlgorithmSection - ToDo: SimCodeC.tpl array = f(...), (array,array) = f(...)
fcad441a8Per Östlund- Moved valueExp from Static to ValuesUtil. - Added a new cevalIfConstant function to Ceval, and removed the old one from Static. - Removed calls to cevalIfConstant in Static, and added calls to cevalIfConstant to Inst, Interactive and Mod where appropriate. - Updated testcases due to changes in constant evaluation.
faf9a638cAdrian Pop- link of Lapack on mingw to the correct libraries.
2ad8b3a04Jens Frenkel- SimCode/SimCodeC.tpl - use "int" for enumeration type for external functions
61836d245Adrian Pop- small fix
9d3d91308Martin Sjölund- Propagate Absyn.Info from every equation and algorithm up to the DAE AST - One exception: The parser segfauls on Absyn.Algorithm in mosfiles, so dummyInfo is provided for most algorithm sections.
875344a48Jens Frenkel- Builtin.mo - add function isCross, isMax, isMin, isTranspose, isSkew - DAEDump.mo - add in function dumpDebugElement some elements - DAELow.mo - if initialarrayequation is lowered add it to initalarrayequations - uncomment case for DUMMY_STATE in function statesDaelow2 because this is not a state - add variables with kind STATE to BinTree "states" to avoid removing of states in function removesimpleequations - if complex equations are lowered and extendet to its elements add array equations to list of array equations - remove functions extendAllRecordEqns, extendRecordArray, extendRecordEqOpt and extendExp because the are now unused (topic above) - add cases for matrix expressions to lowerMultidimeqns2 - remove simple equations in function matchingAlgorithm after index reduction because multibody models have a lot of simple equations after index reduction - Derive.mo - use Builtin to check if builtin function - Exp.mo - add case for functions min and max to function simplifyBuiltinConstantCalls - to more simplifacation in case of array expressions - add case for matrix + array of array to function simplifyMatrixBinary because function identity generates array of arrays - SimCode.mo - dump also components with bltdump in function translateModel - improve createSingleArrayEqnCode
61e8401a0Martin Sjölund- configure searches also for omniidl in the specified place
51a882977Martin Sjölund- configure for mico in custom directory, not on path
6d9af7796Adrian Pop- test commit in the new server
c37fd0165Martin Sjölund- systemimpl CFLAGS for OSX
c95244d13Jens Frenkel- Exp.mo - try to simplify exp in ASUB in simplifyAsub if all other cases not true
f48be2218Martin Sjölund- Syntax error
5066a3ba3Martin Sjölund- Add check for -ffloat-store in the configure script. That also solves dassl runtime issues.
ef901fba1Martin Sjölund- Change -msse to -msse2 as we need to use SSE on doubles, not floats
863b07dd8Martin Sjölund- Set -msse in configure in case the instruction set does not have it enabled
aa859532cMartin Sjölund- Running autoconf
3abdc5e9dMartin Sjölund- It's called -mfpmath, not -fpmath....
bb08ee6bbMartin Sjölund- Force -fpmath=sse on Linux platforms, as otherwise simulations spin forever (32-bit)
d8d92ad60Martin Sjölund- Fix configure on OSX
ac71acc42Jens Frenkel- SimCode.mo - fix bug in derVarFromStateVar to avoid redefinition of macros in generated code
a50e099c4Jens Frenkel- SimCode.mo - bugfix code generation for arrays in function createNonlinearResidualEquations
b72b8c82fMartin Sjölund- Added Absyn.Info field to Absyn.{Equation,Algorithm}Item - Renamed SCode.Algorithm to SCode.AlgorithmSection since that is what it is - Added new datatype SCode.Statement, which is what an AlgorithmSection contains lists of - All statements have comment and info fields preserved so they can be used by Inst/Error
4dfe86b35Martin Sjölund- Updated checkSettings() to also post "uname -a" output - Compiler/runtime/Makefile no longer sets -O3 twice
0439004d5Martin Sjölund- Updated c_runtime/Makefile to use the CFLAGS set by the configure script - OMDev is still always -msse2 - Default Unix is -O3 -march=native, which means it's tuned for your CPU regardless of what kind you are using - To override, specify any CFLAGS (CFLAGS=-O2 ./configure, ./configure CFLAGS=-O2, etc)
b22dd42b4Willi Braunupdate dassl2 in main_solver + change step calculation + and some minor changes regards error treatment
6dbad112aJens Frenkel- Derive.mo - add der(der(cref)) to traversingcrefOrDerCrefFinder - derivative of functions max, min, sqrt, cross, transpose, array*scalar, ... - derivative of matrix - DAELow.mo - add number to dumpArrayEqns - use Exp.traverse for replaceDummyDerOthersExp - extend expressions in complex equations --> now multibody elementary examples PendulumWithSpringDamper simulates
a846a7368Peter Aronsson-Fixed copy paste bug introduced in r5807 (in isZero)
32d2a69e5Willi Braunupdate dassl2 - add warm-start functionality when no event occuors - work faster than dassl
980828482Jens Frenkel- DAELow.mo - makeMatrix: check if exp is scalar - use SUB_ARR because Exp.isConst work now for arrays and matrix - calculateJacobian: make array equations singular with all possible subscripts - Exp.mo - isZero implement Matrix - isConst implement Array and Matrix - SimCode.mo - dlowEqToExp: make array equations singular with all possible subscripts - SimCodeC.tpl - implement built in function cross --> now multibody elementary examples DoublePendulum,InitSpringConstant,Pendulum,PointGravityWithPointMasses,World simulates
bf0980392Martin Sjölund- Fix configure script so include flags in qmake are set correctly (does not expect -I input as gcc does)
3a964eba8Martin Sjölund- Added new field to DAE.ElementSource - A list so we can propagate line numbers for equations/algorithms further - Absyn.mo does not yet contain this information, so the list is empty for now - Changed code generation of functions without outputs - They now have void as return type, and we generate a lot less code when calling them - Added support for using builtin functions as function pointers - PartialFn14.mos tests this functionality - So far only print() is implemented in the runtime - SimCode.getCalledFunctionsInFunction was updated slightly to work better with the new DAE structure - DAEUtil.getNamedFunction now also looks in the FunctionTree structure
c4e97f2beMartin Sjölund- Adding new tests to API checkSettings() - In the CWD: try to create a file, then remove it
1528f62f5Jens Frenkel- DAELow.mo - bugfix calculateIndexes now all arrays close together - Derive.mo - use type if componentref is derived
bc4fc344aJens Frenkel- DAELow.mo - extend all records in array equations so remove simple equations will work - Inline.mo - case for inlining functions with record constructors as arguments --> DoublePendulum oscilates now with model Revolute( constant Real e[3] and constant Modelica.Mechanics.MultiBody.Types.Axis n instead of parameter)
592e60f5aAdrian Pop- no need to call generateFunctions2 in createFunctions anymore
7bb64a887Martin Sjölund- Moved elaboration of NONE into elabCref to reduce the failtrace generated by MetaModelica files
879e3caf3Martin Sjölund- Call instantiateDaeFunction when elaborating a cref that is a function reference
809f1e2d5Martin Sjölund- Spelling error omshell
b4a2e7d1bJens Frenkel- DAELow.mo - extend all unextended array componentref so the rest of the backen would work right - SimCode.mo - replace der operator also in multidimequations now multibody double pendulum model generates compilable code
957c669abMartin Sjölund- matrix.h: Fix off-by-one error
08a1883d0Martin Sjölund- SimCode makefile update for OSX (cp -u is not valid in BSD Unix)
f38ce5c50Jens Frenkel- DAELow.mo - function statesAndVarsExp add special Case for unextended arrays - remove unneeded listreverses from calculateJacobian - SimCode.mo - createOdeSystem: - because listVar orders the elements not like listEquation the pairs of (var is solved in equation) is twisted, simple reverse one list --> now multibody simple pendulum model oscillate
e1e9e606fMartin Sjölund- make install no longer tries to install qtclients if they were not compiled
04b2be405Otto TronarpAdded option to collect ZC from smooth.
425b379cfJens Frenkel- bugfix createOdeSystem2 for arrays
a6335a62dFilippo DonidaThe "Boolean asInSimulationCode" parameter of the dumpXMLDAE() API method was changed in "String translationLevel". Allowed strings are: flat, optimiser, backEnd.
8e0b9af17Jens Frenkel- fix errors from last commit 5765
6edafbc6dAdrian Pop- replace equality(x = y) with stringEqual/intEq/realEq - added more comments and updated some of the formatting - use Exp.crefEqualNoStringCompare in ConnectUtil.setsEqual as we cannot have stringified crefs there. - proper dimension printing in PrefixUtil.printPrefixStr - removed some debug prints from SCodeUtil.mo to make it faster
4b6744d1bAdrian Pop- minor formatting changes for improved readability
54403c447Adrian Pop- proper error messages including the correct package name.
e47e9efeaAdrian Pop- faster Util.listSetDifference* functions. Empty - B = Empty.
898bad7d6Adrian Pop- Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum now simulates - fixes to handle code generation for world.gravityAcceleration function - code generation for functions now take the functions from the DAE.FunctionTree instead of re-instantiate them - some problems appeared with partial functions (i fixed some of them but more debugging is needed to fix all)
853d59ee6Jens Frenkel- bugfix linearSystems with array equations
2b5f01420Adrian Pop- updated OMCMonitor to work on Windows Vista and 7. - updated the project to VS2010 - you can find a binary version here: http://www.ida.liu.se/~adrpo/omc/OMCMonitor/
82cfddd80Jens Frenkel- fix SimCodeC.tpl for records(containing arrays) pushed to functions
bb14693ffAlexey Lebedev- Added an error for components having bindings of variabilty higher than their own (see http://openmodelica.ida.liu.se:8080/cb/issue/1040); - Fixed a bug in lookupVarF returning wrong properties; - Improved error messages for non-processed modifications of built-in types; - Modified testsuite accordingly.
9b5a9f370Jens Frenkel- delete unneeded code
0f5c22e19Jens Frenkel- bugfix expStripLastIdent
2850de441Jens Frenkel- Derive.mo - div ADD_ARR, SUB_ARR - DAELow.mo - simpleEquation for Arrays - do inlining of Array equations in lowerArrEqn - bugfix calculation Jacobian for arrays - bugfix equationToResidualForm for arrays - bugfix extendExp for CREF Exptype - Inst.mo - bugfix ExpType for expand record equations - SimCode.mo - bugfix dlowEqs for arrays - Exp.mo - bugfix for arrays, to not use typeBuiltin to detect arrays use DAEUtil.expTypeArray - simplifyUnary also for arrays
28bfa04aaAdrian PopIOStreamExt.c - fail and print a message in IOStreamExt__printReversedList if we cannot allocate the string.
5069c32a5Adrian Pop- make the boundaries of functions more visible
4d784d6e2Adrian Pop- replace equality(x = y) with stringEqual/intEq/realEq - added more comments and updated some of the formatting
b284358f3Martin Sjölund- Removed the global variable numpoints from the simulation runtime, as it was used before set. - Instead we use the number of output steps as an initial guess for the size plt needs to allocate for result variables
4f81331cbAdrian Pop- faster Exp.crefPrefixOf - replace equality(x = y) with stringEqual/intEq/realEq - added more comments and updated some of the formatting
2e309a879Adrian Pop- replace equality(x = y) with stringEqual/intEq/realEq - added Absyn.pathEqual - added more comments and updated some of the formatting
1775f841cAdrian Pop- get rid of the warning.
e1a3ef7aeMartin Sjölund- Updated SimCode Makefile: Always set OPENMODELICAHOME to the build directory
71c456bf5Martin Sjölund- Update for code generation of abs() - Is fabs() for non-Integer - Is std::abs() for Integer because on OSX __gnu_cxx::abs() is a candidate
747e7d3d7Martin Sjölund- Added function printTypeOfAny function to c_runtime for GDB debugging of MetaModelica code - Simply use the command "out printTypeOfAny(exp)" (or printAny()) in GDB to print the data structure's type or value - Fixed a problem with mmc_mk_rcon on 64-bit architectures
8c2922850Martin Sjölund- Ran Valgrind on some simulation executables: - Updated simulation runtime/code generation to free more of the allocated structures - Didn't update c_runtime/interactive/, which has the majority of memory leaks now
71422106aMartin Sjölund- Changed code generation for when external object constructors are called - It is now done after the input file has been read - Ext.objs can now depend on (fixed) parameters, including strings - Added code to support string parameters - Added testcase ExtObjStringParam.mos based on bug https://openmodelica.org:8443/cb/issue/1163
038b98914Martin Sjölund- Updated code generation for min/max/abs builtin functions - Previously, they would always return a double - Now, integers are produced if both arguments are integers - This fixes ExternalFunction4 (will allocate 2 elements instead of 66187348)
6756969eeMartin Sjölund- Remove duplicate SimCodeC.mo from svn
cfe815dcfJens Frenkel- DAELow.mo - extend multidimeqn after inlining if it is possible - Exp.mo, SimCode.mo - fix some bugs relatet to arrays
787f3b41cMartin Sjölund- Added arument to simulate: outputFormat= - Default is "plt", which is the old format. It's the only format currently capable of using simulation results within OMC. Other formats need external tools. - "csv" is another textual format. It's roughly twice as fast and uses no additional memory (plt uses several GB for large simulations). - "empty" does the same thing as interactive simulations - it disables result file generation. Useful for benchmarking. - "bin" is experimental and should not be used. It basically measures the overhead of converting doubles to strings (speed is 50x times faster than CSV) - Model_init.txt has a new field for the output format - The c_runtime contains the interface used for result file generation. - Added testcases for "csv", "plt" and "empty" simulation results. - Added these options to OMNotebook/OMShell commands.xml.
89eca8e0fJens Frenkel- CevalScript.mo, Main.mo, SimCode.mo - do late inlining earlier to avoid generade code for unused functions - Exp.mo - bugfix expStriplastSubs - isZero for UNARY_ARR - getTermsContainingX also for arrays
623030348Martin Sjölund- Install DrModelica files when building OMNotebook
dc7c846b1Martin Sjölund- Update makefiles for qtclients. - Added Makefile.unix.in in each client's directory - Should be easier to customize behaviour now - Now copies the binary from OSX .app's into the build dir when doing a Unix build
f63b232acMartin Sjölund- make install needs to use -r flag on OSX (*.app are directories)
41787ea6bJens Frenkel- bugfix simplify
fe0d83a41Jens Frenkel- SimCode.mo - do lateInline - Inline.mo - also inline start expressions - SimCodeC - implement more cases for daeExpBinary
0844ddf96Martin Sjölund- make clean removes omc-diff.exe
f4e3fed49Martin Sjölund- Makefile update for OSX .app extension
a27a8cc84Jens Frenkel- DAELow.mo - replace dummy der also in multidim equations - extend array equations for crefs
6498e0cd1Jens Frenkel- VarTransform.mo - implement addMultiDimReplacements to replace arrays and records - Inline.mo - bugfix for records - Exp.mo - implement expStripLastIdent, is used from Vartransfrom.addMultiDimReplacements - extend isZero for arrays - simplify array_add and array_sub - Derive.mo - do simplify after derive equations - run inline functionality after derive functions - bugfix derive functions - DAELow.mo - use VarTransform.addMultiDimReplacements - remember derived arrays and multidimequations to avoid duplicate arrays and multidimeqations - bugfix incidenceRowExp for array variables - bugfix extendRecordEqns
8c242f31aPer ÖstlundFixed constant evaluation of all functions used in the multibody loops models, which gives large speedups (Engine1a.mos went from ~21 sec to ~9 sec, while EngineV6.mos went from ~10 min to ~8.5 min). The axesRotations function is currently not evaluated in Cevalfunc though, because for some reason it's much slower to constant evaluate it with cevalFunc than with dynamic loading. - Fixed correct dimensions in ValuesUtil.matrixStripFirstColumn so that ValuesUtil.multScalarProduct works correctly. - Added support for record variables in Cevalfunc.extendEnvWithInputArgs so that they are correctly added to the environment. - Added support for imports in Cevalfunc.extendEnvWithInputArgs (only SI-import at the moment, because other imports cause large slowdowns when evaluating the axesRotations function from MSL). - Added handling of DAE.WHOLEDIM in Ceval.cevalSubscriptValue.
dda206a45Martin Sjölund- Fix testsuite after commit r5715
4aa3fa66dJens Frenkel- removeSimpleEquations also for simple array equations
243b13f80Jens Frenkel- VarTransform spelling - Derive bugfix dimension of zero derivative - DAELow start to implement removeSimpleEquations also for arrays and records
53125d576Jens Frenkel- fix bug in statesAndVarsExp for records
fc8567975Peter Aronsson-Fixed bug with stateSelect set to parameter not picked up due to limitation in type system (enumeration(:) not implemented. This is mostly used in new MultiBody library.
c6c93dfbfJens Frenkel- add derivative for ARR_ADD, ARR_SUB, CREF array - lower MultiDimEquations to normal equations after inlining if it is possible
94ab80f19Martin Sjölund- Added LDFLAGS to LIBSENDDATA_LDFLAGS also for sendDataHumbug
c2b60b9baMartin Sjölund- Added flag -noemit to the simulation executable - Up to 10x faster than a simulation that stores results - Only useful to get performance of a simulation without taking file IO into account
8737bea03Martin Sjölund- Added missing space in configure script
2c384467fMartin Sjölund- Added compilation check of the sendData dependencies to the configure scripts - Added support for LDFLAGS="-L/my/path/to/lib/" for LIBSENDDATA_LDFLAGS
1986af6fdJens Frenkel- start to add code for array equations to simcode
323186abaJens Frenkel- bugfix inlining records
8306ce518Jens Frenkel- Bugfix extend Complex Equations
cadb20a6eAdrian Pop- uncomment Static.cevalIfConstant as is was commented by mistake - replaced equality(x = y) with true = intEq/realEq/stringEqual(x, y) - replaced equality(x, y) with Exp.expEqual(x, y) in Static.eqSubscript
df7694a51Jens Frenkel- Activate function inlining after move it into lowering process. Now inlining should work and generate better results because remove simple equations is done after inlining.
bd54f3b9aPer Östlund- Removed commented case from elabCallReduction (see commit 4787).
416caefdcPer Östlund- Fixed memory copy in solver_main.cpp (copying pointers does not copy data!).
94355bfd6Per Östlund- Moved Codegen.getMatchingExpsList and Codegen.getMatchingExps to Exp. - Moved Codegen.getUniontypePaths to DAEUtil. - Removed Codegen.
8c2f7766aMartin Sjölund- Fixed compilation of OMShell-terminal on OSX
c901c4c0fMartin Sjölund- Updated configure/Makefile to work using MacPorts on x86_64 - qmake-mac can be found, and used to generate sendData makefiles - omniORB can be found, and used to generate the CORBA communication - The qtclients were not updated - The following configure command needs to be provided in MacPorts: ./configure '--with-sendData-Qt' '--with-omniORB' 'LDFLAGS=-L/opt/local/lib/' 'CFLAGS=-I/opt/local/include/' - The following packages should be installed: antlr qt4-mac lp_solve omniorb autoconf and probably some more
8edf4bd14Per Östlund- Rewrote templates for for-loops and reductions to share more code. - Implemented code generation for reductions where the range is not a RANGE. - Renamed the previously named member boolean in record DAE.STMT_FOR to the more descriptive name iterIsArray, and added a comment on what it does.
af858ed12Martin Sjölund- System.os now returns "OSX" on OSX.
ac68f9b82Daniel HedbergBuilt-in function fill is now simplified in Exp.simplifyBuiltinCalls() (used by MathCore).
330d5b9bfMartin Sjölund- Updated configure/Makefile to handle qmake on OSX differently - Updated makefiles to check if qmake and idl exists before trying to compile qtclients - Don't try to clean qtclients if qmake does not exist (systems without qmake can now make clean again!)
d41f8910dPer Östlund- Added min of array to code generator.
601156d76Adrian Pop- fixes for list stream printing.
ea0620fbcMartin Sjölund- Fixed usage of sed on OSX (GNU sed handles -i differently)
aa1a3f781Martin Sjölund- Add missing file config.unix.h.in
6ac75ea24Martin Sjölund- Fix configure for OSX
40d5a2b6eAdrian PopInst.mo - first draft of the expandable connectors - return the environments in Inst.instClassdef2 and pass them along - return the new environments where needed and pass them along - changes due to Lookup.lookupVar*
4830f971aAdrian Pop- fixed compilation on Windows MSVC/OMDev
7bf632439Adrian Pop- fixed problems on Windows MSVC/OMDev
10ea6fd19Martin Sjölund- Added new function call for interactive sessions: - checkSettings() : record OpenModelica.Diagnostics.ImportantValues - Add any information you constantly need to ask users for when debugging their problems - A single command that you can get a lot of useful information from that OMC doesn't always check - Updated System.regularFileExists, System.directoryExists to return Boolean instead of Integer - Updated System.systemCall to return the exit code rather than the exit status (which is platform-dependent) - For example, an application that returned 127 would show up as 32512 in Linux
dbf2255a0Peter Aronsson-Added crefPrependIdent that prepends and identifier to a cref (also given type and subscript list)
f0826337eMartin Sjölund- Updated c_runtime/Makefile.in for building sendData on OSX (which won't link on x86_64 anyway)
68ba76f8bMartin Sjölund- Added ringbuffer implementation for delay() - It is faster for large simulations, although not much so (the original impl. is O(log(n))). Note: The template code does not have access to delayMax for the store function, which is where the buffer should be cleared. Now it's done after binary search, but only if delayMax == delayTime. The SimCode really should have this information added.
eec9cb3b2Daniel HedbergReverted most changes of error messages due to a huge number of tests failing.
276c71e84Daniel HedbergImproved/corrected even more error messages (this should be the last commit).
0fa9137a1Daniel HedbergImproved/corrected even more error messages.
435b01af9Daniel HedbergImproved/corrected more error messages.
9c92ebc9dDaniel HedbergImproved/corrected error messages.
a692140d7Per Östlund- Fixed wrong path to typeview in SimCodeC.tpl.
f8c1524b6Per Östlund- Reverted removal of functions in Exp.mo and Util.mo from commit 5649 and 5650.
0a465569aMartin Sjölund- Changed the exit() function in c_runtime to an EXIT macro - This is aliased to _exit() on Unix because exit() always returned 0 - Fixed better handling of assertions in Euler and Dassl runtime - Updated StringTest.mos as it now prints that simulation failed
1c272f6b1Per Östlund- Removed more unneeded checks in Exp.crefEqual.
d5a083fadPer Östlund- Removed name mangling from DAELow, and implemented it in the template-based code generator instead. - Removed origVarName from DAELow.VAR, since varName is now the same. - Removed unused functions Util.modelicaStringToCStr and Util.cStrToModelicaString. - Removed unused stringify functions from Exp (Exp.stringifyComponentRef etc.). - Fixed remaining issues with the template-based code generator, such as external fortran calls, function pointers and returning records from functions. - Added unboxing of arrays to meta_modelica.h - Removed the old SimCodegen module and replaced it with the new SimCode module. - Removed printing before ASUB expressions in Exp.printExp. - Updated lots of testcases to comply with the changes made. - Fixed some spelling errors (Descrete => Discrete, Resudials => Residuals)
66b06d822Martin Sjölund- ANTLR parsers updated
c9687d6deMartin Sjölund- Fix bug in absyn_builder make target
5666f4fa4Martin Sjölund- Updated dummy_model.cpp
fe0fec712Martin Sjölund- Don't compile main() into libf2c.a
d4eb8d009Martin Sjölund- Added automatic regeneration of TplCodegen.mo if the template changes
4e717a1f8Alexey LebedevA little more to derivatives of constant expressions:
78f84c6feWilli Braunsmall bug fixes for solver_main
8e606f53aMartin Sjölund- Fix for Makefile ANTLR dependencies with parallel makefiles - Now says "Nothing to be done for `all'." instead of running ANTLR regardless
acf84baeaMartin Sjölund- Compiler/Makefile .depend target depends on a mo-file being changed.
8fbc7721aWilli Braunadd a brute-force approach for DASSL with synchronous event handling + usage with method=dassl2 + rename solver_euler* to solver_main + add s-stage runge-kutta method
25f874952Alexey LebedevIf expr is a constant or parametric expression, der(expr) is replaced during elaboration: by 0.0 if expr is Real or Integer; by an array of corresponding size filled by 0.0 if expr is an array of Real or Integer.
44088ddd7Peter Aronsson-Fixed bug in instantiation of external objects. Even thought they do not generate equations, the connection set must be propagated through it. Before it returned emtpy set.
605ca5be4Martin Sjölund- Remove tab characters from Absyn.mo
d49456c57Peter Aronsson-Added simplification in Exp.simplify: der(c) => 0 for constant expression c.
cfd11e213Martin Sjölund- Fix for delay() when the time step taken was larger than the max delay - This is a problem because the next value from the buffer will be used even though it has not been initialized - Should possibly be fixed in the future by changing the assert to i+1, and changing the solver to never take a too large time step
bb45ea3e8Martin Sjölund- Update makefiles to fail if we failed to generate simcode (and only try if omc is already compiled)
be1192014Martin Sjölund- Fixed line endings for the new .mo-files - Reverted accidental change to SimCodeC.tpl
7e183dee6Daniel HedbergFixed a bug in simplifyAsub for binary operations with operator type DAE.DIV_ARRAY_SCALAR.
9c7d3901aOtto TronarpAdded /LTCG switch to the makefiles for visual studio.
fccbe6af6Martin Sjölund- Updates due to printing mosfile output to stdout directly - dynload.c - flush output buffers function call for deterministic behaviour - Testsuite updated - testcases that used stdout now prints lines in different positions than earlier
e1f51511eJens Frenkel- comment out extendAllRecordEqns until testsuite library uses inline annotation
862564227Jens Frenkel- continue with extendRecords and function inlining
f41c31677Adrian Pop- fix the number of elements in Util.listFill call inside lowerComplexEqn.
cc832a19bJens Frenkel- comment out extendAllRecordEqns until it does not work as expected
5563a5caaAdrian Pop- new implementation of the inner outer to get rid of very expensive phases that are not needed, see Inst.instVar - got rid of phases: InnerOuter.checkMissingInnerDecl, InnerOuter.renameUniqueVarsInTopScope, InnerOuter.changeOuterReferences - phase InnerOuter.changeOuterReferences replaced with lighter phase: InnerOuter.changeInnerOuterInOuterConnect - prefixing of outer cref is now done directly with correct prefix of the corresponding inner cref. - Inst.sortInnerFirstTplLstElementMod is now called to correctly sort the inner components to be instantiated first even if they come from extends. - PrefixUtil.prefixExp now gets the instance hierarchy and uses it to prefix the outer crefs. - added Util.listMapMap0. - Main now runs a .mos file directly on the standard output. - updates to Makefiles to compile and link the new packages: IOStream.mo IOStreamExt.mo DAEDump.mo and the new C file: runtime/IOStreamExt.c - missing of the inner component declaration now generates only a warning.
630c48c44Adrian Pop- added function evaluateToStdOut now used in Main to display the result of running a command in a .mos file directly on standard output instead of building strings. - send the instance hierarchy to Mod.elabMod as is now needed in prefixing crefs.
7028d71c6Jens Frenkel- move function inlining previous to blt - start implementation of extend recordequations - ToDo: Test Records with array elements
7a874fe54Adrian Pop- use the faster crefEqualNoStringCompare instead of crefEqual in crefPrefixOf - use stringEqual(x, y) instead of equality(x = y) - unelab reductions back to an Absyn.CALL
326421d2dAdrian Pop- renamed fcallret to fcallret1 - added fcallret0 to be used when only printing and not returning values. - the new function is used in package Main for printing to standard output based on a debug flag.
fbf1fdc8eAdrian Pop- more comments. - better connection set printing.
6fbfef01aAdrian Pop- use the new DAEDump module.
662a18303Adrian Pop- use the new DAEDump module.
c7f74cf21Adrian Pop- do not store the instantiated class in the Interactive Symbol Table as it takes too much memory and is not very useful. - use the new DAEDump.dumpStr to dump the DAE.
e2ac65f15Adrian Pop- send in the instance hierarchy to Inst.getUsertypeDimensions as is now needed for prefixing.
a697c2d39Adrian Pop- added more cases to Ceval.ceval to handle logical OR expressions.
ba1a74afaAdrian Pop- changed the messaged for Error.MISSING_INNER_PREFIX to display more information. - also this error is now a warning instead of an error as we can use the outer object directly if no inner is present.
d0f07a39fAdrian Pop- changed the inner outer implementation to handle all cases via the InnerOuter.mo instance hierarchy. - outer components are now *always* prefixed directly with the correct prefix of the inner using the information stored via InnerOuter.addOuterPrefixToIH into InnerOuter.TOP_INSTANCE.outerPrefixes - some of the code is now dead code, we leave it in the file for now.
a23167002Adrian Pop- changes due to move of dumping functions to DAEDump.mo
4699d57e2Adrian Pop- changes due to move of dumping functions to DAEDump.mo
2179b8c10Adrian Pop- new module DAEDump.mo which contains the dumping functions for the DAE. these functions were moved from DAEUtil.mo. - corrected a bug which did not display the terminate statement in the flattened code.
9cc0cbb1dAdrian Pop- dump functions moved to DAEDump.mo - function splitElements classifies elements into: variables, initial equations, initial algorithms, equations, algorithms, external objects. is it used in DAEDump.mo
e50579b9bAdrian Pop- added modifierAsAbsynExp to DAE.EqMod in the DAE.TYPED record. is it used to not call unelabMod functions when not needed.
eaedc0784Adrian Pop- partially implemented IO Streams. - right now only list stream is complete.
80392f988Otto TronarpPreserve noEvent around event triggering functions.
b9b0b241cMartin Sjölund- Added Unix make target "fix-svn-eol-style" - Fixed line ending for all .mo and .mos-files in Compiler/ and testsuite/
07764b48aOtto TronarpFixed bug in trimChar for empty strings and strings containing only one char that isn't trimmed away.
74e5beb8eAlexey LebedevImplemented translation to equations with if-expressions for if-equations which contain other if-equations in their branches (see bug 1229). Also implemented correct equation count for such if-equations.
c047eac2aMartin Sjölund- Removed unused GCC -I directives from Compiler/runtime/Makefile
1f8e209b6Martin Sjölund- Compiler/Makefile now calls susan to generate simcode (if omc is already compiled)
29d327c38Martin Sjölund- Added code for generating time event hints in SimCodeC
cead45dd4Pavol Privitzer- polished Susan's operators precedence and associativity ... see SusanGrammar.txt (TplParser.mo) and .tpl files for changes - (generated) SimCode/SimCodeC.mo and SimCode/SimCodeCSharp.mo set svn:eol-style to LF
060321321Peter Aronsson-Split System.userIsRoot to two separate implementations, one for windows and one for linux (not everyone is using the omc_msvc.h header)
d5cfd135cMartin Sjölund- Template-based code generation mostly working again.
081fdcbbeMartin Sjölund- Fix for make -j2 in c_runtime/Makefile.common
7d101595cMartin Sjölund- Fixed LF eol-style on Compiler/*.mo - Made C code generated by Susan use const char* instead of char*
26292774fMartin Sjölund- Add System.userIsRoot() - If the user is root, omc prints an error message and exits.
e68edf461Martin Sjölund- Updated code generation of external function libraries - Library="Lapack" on OMDev now outputs {-llapack,-lf2c,-lblas}
fbc95d6dfMartin Sjölund- Fixed tolower/toupper malloc off-by-one error
536dff013Adrian PopAbsyn.mo - proper formatting - changed != into Modelica <> so that omc can parse the file
ebb286071Pavol Privitzer- Susan parser with the new syntax, together with transformed SimCodeC.tpl and SimCodeCSharp.tpl - produced SimCodeC.mo and SimCodeCSharp.mo are the same as before - the implementation is mostly on syntactical basis now, to be continued ... - see susan_codegen/SusanGrammar.txt and all .tpl files for the details
c72577ab5Per Östlund- Fixed bug #1215: http://openmodelica.ida.liu.se:8080/cb/issue/1215 (Records as input arguments to functions). - Added instantiateImplicitRecordConstructors to Static, to make sure that record constructors are instantiated when needed, even if they are not explicitly called. - Fixed code generation for record instances that are input arguments to functions. - Updated some testcases where record constructors where instantiated earlier than before. - Added testcases records/RecordFuncParam.mo and records/RecordFuncParam.mos to test the bugfix.
ba0252aa8Lennart Ochelcode for codegeneration of symbolic jacobian external functions and algorithm blocks are not implemented yet
58053fb97Martin Sjölund- make clean removes libinteractive.a
23f929a47Martin Sjölund- Fixed bug #1226 - Changed backend code generation of external functions - The in_ function is the same as for normal functions; it simply calls the other function - Fixed the normal function; the in_ function generated more correct code - Fixed size() expressions for F77 code
8c0474d85Martin Sjölund- Added -lpthread in omc_debug/Makefile.in
f2e9e45e2Martin Sjölund- Fixed System.toupper segfaults - Added System.tolower
d775b1503Martin Sjölund- Fix InstExtends when referring to an imported variable in an algorithm section.
3b286ebf9Parham VasaielyControl Client and Transfer Server will be initialized with default communication settings (IP, Port) if not set by user
d7a0e8591Martin Sjölund- Main.mo: +i flag will now generate code with the correct filename - Added code for scheduling sample() events before runtime. DASSL uses this code for a (really) small hint now (not taking too large steps). This improves event-heavy sims by around 10%, but can be a lot better if someone who knows the solvers has a look. - Simulation code now uses const char* instead of char*. This removes a LOT of warnings in the log files.
6712f35eaJens Frenkel- bugfix calculateIndexes
4c020da99Otto TronarpAdded pathContainsString for use in MC's filterOutExamplePackages.
e5504c5fdMartin Sjölund- Added the general utility function unique (removes duplicate elements from a sorted C array). - Added a stub for initSample with some code that could be used to generate all the times when a call to sample() generates an event.
ebc025d07Martin Sjölund- Make clean should also remove omcd.exe
7dfed5018Jens Frenkel- continue with derivatives of functions: bugfix, use to compare Types Types.equivtypes - be more informative in case of if-equations - add case for complex equations (Derived.differentiateEquationTime), fail because derivative of records not implemented jet
241e716ffPavol Privitzer- new Susan syntax for template header ... template templName(args,...) "comment" ::= body end templName;
b81097283Jens Frenkel- derivative annotation for functions: functions with record as output now works
779d570ecJens Frenkel- continue with derivatives of functions: functions return records
74383f963Alexey LebedevConstant evaluation for derived functions without modifications.
155917998Per Östlund- Minor optimization of SimCodegen.generateOdeSystem.
8d5cd0932Per Östlund- Added extra checks in all HashTables, as was done for HashTable5 in revision 5498.
28228a880Peter Aronsson-Added function System.windowsNewline for creating string constant '\r\n' since MetaModelica has a bug for that literal.
28fd48180Jens Frenkel- continue with derivatives of functions: noDerivative bugfix
f57506498Martin Sjölund- Added omc_msvc.h: A compatibility header that adds inf,nan and round macros for MSVC.
41d728d97Per Östlund- Added extra check in HashTable5 to make sure that the right function is found.
f7683905fOtto TronarpFixed compilation on Linux.
45cbdbf66Daniel HedbergINFINITY and NAN are not defined in math.h on Windows (MSVC). Removed the code involving those definitions for MSVC.
ecfa67cddPavol Privitzer- a small SimCode/SimCodeC.tpl bug fix ... '-L"<%modelInfo.directory%>"' was incorrectly given as constant in ""
e1d25f16dDaniel HedbergFixed order of includes to make things compile (in Visual C++) again.
82afb8f8bPeter Aronsson- Added className to handleUnitChecking (for debugging purposes only) - Added MMath.rationalString - Fixed bug in unitparser. before adding baseunit, check if it already exists.
bc03247ffOtto TronarpAdded appendFile to System.
1ae767699Alexey LebedevA fix for the cache bug which was causing derived function lookup to fail ( http://openmodelica.ida.liu.se:8080/cb/issue/1198 )
369459d83Peter Aronsson-Fixed bug in DAEUtil.addEquationBoundString -Fixed bugs in Exp.typeof and Exp.simplifyAsub -Fixed bug with functions not picked up in if-equations (all multibody examples affected). -Added boolean to crefVectorize to decide if limits on dimensions should be checked against or not. -Changed so UnitAbsynBuilder.registerUnits only performs work if unitChecking flag is set. -Added Util.listPartition
4e0e2ac9cPavol Privitzer- TplParser.mo : - hole is delimited by <% %> instead of < > - %( )% syntax is removed - NO escape sequences inside of <<...>> and '...' are allowed, ... so, for example, <<\\>> and '\\' is really double back-slash now ... to achieve "<%" inside a template, use ' ... <% "<%" %> ...' or << ... <% "<%" %> ...>> ... to achieve ">>" inside <<.. >>, use << ... <% ">>" %> ... >>, or use ' ... ' as template delimiter if possible, then ' ... << ... ' ... to achieve "'" (single-quote) inside '...', use '...<%"'"%> ...', or (better) use << ... >> as template delimiter, then << ... ' ... >>
18c24f556Martin Sjölund- Added Compiler/Makefile.compiler_subdirs.common - This is a file common for all of omc_release,debug and profiler - It is also common for proper Unix and OMDev - Fixed a bug where the absyn_builder,modpar or runtime folders could fail, but compilation would still continue
f6c0ac1a4Adrian Pop- generate DAE.ARRAY_EQUATION from the equalityConstraint function instead of DAE.EQUATION as otherwise the counting is wrong. - update to testsuite/libraries/multibody/loops/Fourbar1.mos due to the changes above.
55a6fbcd8Martin Sjölund- Removed Compiler/Makefile.common.omdev.mingw - It was identical to the Linux one with one difference - However, all files that include this file set USE_CORBA so the ifdef should result in the same Makefile as the old one
ad5bfb2a5Adrian Pop- fix for bug: https://openmodelica.org:8443/cb/issue/1221?navigation=true now the equality constraint function call contains the correct inline annotation. - added Inline annotations to testsuite/libraries/multibody/loops/_LoopsTotal.mo to test the propagation of annotation into the flattened code (as a comment for the function) - update to the tests due to annotations
a666545e5Adrian Pop- add case if-expr = cref in Exp.solve as is a mirror of cref = if-expr.
4c25a040fAdrian Pop- search for annotations also in the algorithm section. this is needed as Modelica 3.2 requires annotations to be present at the end of the class. - now annotations (Inline, etc) present in the algorithm section at the end of the class are detected correctly.
ad5352efcAdrian Pop- Linköping is now back to normal.
ca6f3d937Martin Sjölund- Added fix for ptolemyio.cpp using atof (which has no exception handling for reading things that are not numbers) - We now use strtod instead, and return NaN for invalid strings (we also handle Inf for the Windows platform).
2cfc58b73Otto TronarpRemoved all duplicates that had identical implementation on Windows/Linux.
74d6115e4Per Östlund- Fix for bug #1216: http://openmodelica.ida.liu.se:8080/cb/issue/1216 + Inst.implicitFunctionInstatiation now sends the correct environment to getDeriveAnnotation.
6d16f8ff6Pavol Privitzer- C# templates before transformation into new syntax
f3009d453Per Östlund- Merged testsuite/mathcore-mofiles with testsuite/mofiles. - Moved testsuite/mathcore-mofiles/drmodelica to testsuite/mofiles/drmodelica, and removed testcases from testsuite/mofiles that were already in drmodelica. - Added all missing test cases to testsuite/mofiles/Makefile. - Updated testsuite/Makefile to reflect these changes. - Added a case for the return statement in DAEUtil.ppStmt.
009db3903Adrian Pop- the system call is the same for Windows/Linux, moved at the end. - also added tracing to the System__systemCall function.
dd92b623eAdrian Pop- correctly set the return value from the execution of the generated executable sometimes the executable would return -1 instead of 0!
385a7f2a0Adrian Pop- added a Makefile for MinGW and Linux.
0dd18c2f9Adrian Pop- wrong copy & paste position now fixed.
3fa4f1cb0Adrian Pop- an ANLTR3-based lexer/parser for Modelica 3.1 - see the README.txt
050faf987Martin Sjölund- Adding some comments to Util.StatefulBoolean functions.
125a167ebPeter Aronsson- Added some comments to functions in Exp.mo. - implemented Exp.applyExpSubscripts (subscripting arbitrary expresssions using ASUB) - implemented Exp.expand to expand products (a*(b+c) => a*b + a*c) - implemented liftArrayLeft (as complement to already existing function liftArrayRight)
3accbc43eAdrian Pop- create the release directory
da96ef00aMartin Sjölund- Added configure option --with-sendData-Qt to disable sendData even if we have Qt installed. - QTHOME should no longer be used. - Disabling sendData reduces the time to run the (short) testsuite by around 14%; 1m32s down from 1m44s.
16dd3c81bParham VasaielySequence number added to server reply (e.g. start#SEQ#end, done#SEQ#end). For more detail see documentation.
5fa7692f8Parham Vasaielyinteractive components will now be compiled correctly in windows
4ed13a91eRickard LindbergAdded comments to templates.
b3e951c92Per Östlund- Fixed bug #1210: http://openmodelica.ida.liu.se:8080/cb/issue/1210 + Changed Static.elabBuiltinTranspose so that it sets the correct constness on the elaborated expression. + Added testcase mofiles/Transpose2 - Added missing RTOpts failtrace guard in Inst.instElement.
32b6ae184Jens Frenkel- continue with derivatives of functions: remove debug print
bc97f7379Jens Frenkel- continue with derivative annotation for functions: functions with multiple outputs now works - implement replaceDummyDer for algorithms
9f0e3ae82Jens Frenkel- continue with derivatives of functions: outputs
27d0b0540Alexey LebedevAn unfinished attempt to fix the multiple class definition bug (http://openmodelica.ida.liu.se:8080/cb/issue/1182). I tried to improve the function Inst.checkMultiplyDeclared so that it could be used for class definitions, not only for component declarations. Unfortunately, trying to call this function from instElement (when a class definition is processed) makes some files from the testsuite to fail. So I have left the extended checkMultiplyDeclared and comparison functions it calls, but commented out the call in instElement. I.e., the functions are not called, so nothing gets broken, but they are there in case somebody wants to continue the work. It seems to me, though, that the problem is not in comparison functions but in the place they are called from (instElement). But I do not know what the correct place is.
5d4ebea61Martin Sjölund- Fixed writePtolemyplotDataset/etc functions to use Print.mo instead of string concatenation. - We can now plot files with more than 200000 datapoints per variable without stack overflow.
952cce963Per ÖstlundFixed bug #1212: http://openmodelica.ida.liu.se:8080/cb/issue/1212 - Disabled error message from Ceval when constant evaluating parameters in Mod.elabModValue. - Changed some tests that no longer gets these error messages.
ec52821d4Stefan Brus- Most of the partial function tests now work again
560110779Per ÖstlundFix for bug #1208: http://openmodelica.ida.liu.se:8080/cb/issue/1208 - Disabled constant evaluation of parameters with fixed=false in Mod.elabModValue.
f681299ecPer Östlund- Merged the interactive_simulation branch into trunk. - Removed check for QTHOME in systemimpl.c, since the QT libraries should be found anyway.
5770f8978Martin Sjölund- Bugfix: https://openmodelica.org:8443/cb/issue/1209?navigation=true - Backend will now replace pre(a) with alias "a = -b" correctly: - Correct way is -pre(b); previously pre(-b) was used.
9227c0134Jens Frenkel- continue with derivative annotation for functions: check of inputs from derivative function works now
7c7e6eec8Adrian Pop- forgot some debug prints. now they are no more!
3f4b62cb7Adrian Pop- forgot some debug prints. now they are no more!
a8cd3d9adAdrian Pop- updates to READMEs
8247a52e0Adrian Pop- update of dummy_model.cpp
0ce4b58f3Adrian Pop- add the equalityConstraint function to the DAE.
49021358ePer Östlund- Fixed bug #1191: http://openmodelica.ida.liu.se:8080/cb/issue/1191 + Added function Inst.addEnumerationLiteralsToEnv that is used in Inst.getUsertypeDimensions to add enumeration literals to the environment when needed. + Added functions SCode.makeEnumType and SCode.isValidEnumLiteral, which are used by Inst.makeEnumComponent. Enumeration literals are now checked so that they are valid (i.e. you can no longer use reserved attribute names such as start as a enumeration literal). + Added an error message INVALID_ENUM_LITERAL to Error. + Replaced the unused function Error.infoStr with a more usable function. + Added testcases Enum10 and EnumInvalidLiteral.
dbd4671adPer Östlund- Fixed configure so that USE_CORBA is set correctly.
5edb1dd3dMartin Sjölund- Added new configure option --with-Coin (Coin disabled by default).
5fcde545aMartin Sjölund- Adding -source flag to java_interface makefiles since eclipse javac default to version 4.
d6bed0f35Martin Sjölund- Added a configure option to (force) statically linked lpsolve55 even if dynamic libraries are present.
19e35d9a4Martin Sjölund- Remove OMPlotWindow on clean
c8c975585Martin Sjölund- Renamed ext OMPlotWindow
222d03a08Adrian Pop- added profiler target
51f338e4fMartin Sjölund- Don't rm -rf build/ on clean; only distclean
c5af20bf9Martin Sjölund- Fix broken OMShell build.
9f32ecb83Martin Sjölund- Install scripts in share/omc/scripts instead of bin
8b5b5061eMartin Sjölund- Fix so the qtclients idl files aren't re-run every time they are built.
a3ad983f5Martin Sjölund- Fixed https://openmodelica.org:8443/cb/issue/1200 - Search /lib/ instead of /lib in case lib is a symlink.
d37d25d46Martin Sjölund- Use qtclean target to Makefile.common, so we actually clean up after the qtclients.
d9f79c190Martin Sjölund- Move libQt*-mingw.a from build/ to c_runtime/omdev_qtdeps. - Delete build/ from svn.
f5033e11aMartin Sjölund- Added antlr_license.txt. Missing from last commit.
901913cfdMartin Sjölund- Added trunk/Makefile.common, and restructured Makefile and Makefile.omdev.mingw - Fixed lots of weird install targets for files - Moved commands.xml, etc files from bin to share/omnotebook, share/omshell. - Moved ptplot.jar from bin to share/omc/java. - Moved ptplot_license.txt from bin to share/ - Moved omc_helptext.txt from bin to share/doc/omc - Added antlr_license.txt - Moved OPENMODELICA/include to OPENMODELICAHOME/omc/include - This way we won't override system libs/includes if we install to /usr - Did the same for /lib - Left to do: Move scripts from bin to usr/share/omc/scripts - Updated OMNotebook and OMShell to reflect new paths of xml files. - Updated doPlot commands to reflect the new location of ptplot.jar
c80d28405Martin Sjölund- Updated c_runtime/Makefile.common for OSX (needs to run ranlib on .a-files).
baac3d901Jens Frenkel- continue with derivatives of functions: start noDerivative, outputs
db6c52f3cMartin Sjölund- Fix docdir for install script
7f6492508Per Östlund- New fix for --with-CORBA=DIR
8c1683fb9Martin Sjölund- Fix for mico-config --with-CORBA=XXX
0c8f954a5Jens Frenkel- continue with derivatives of functions: zeroDerivative now works
84734ff0bMartin Sjölund- Changed systemimpl.c to not use OPENMODELICAHOME during the init call. - Instead, we use Main.main to check for OPENMODELICAHOME (and set mingw paths). - Updated System.setEnv to take a boolean as third argument instad of int.
c1ab7db50Martin Sjölund- Make omc exit if OPENMODELICAHOME is not set.
ef0326b40Martin Sjölund- Don't copy .svn-files when doing make install.
c385bc08fJens Frenkel- continue with derivative annotation for functions: order > 1 works now
e301ae5d5Jens Frenkel- continue with derivatives of functions not Working: - output arguments - check derived function inputs and outputs (frontend) - order > 1 - zeroDerivative, noDerivative,
cef4376ecAdrian Pop- updates to visual studio projects, makefiles, qt clients and pdbs
7df59a321Jens Frenkel- derivative annotation for functions: convey functions to differentiateExpTime
facdf281eMartin Sjölund- Adding OMC_API-HowTo to install target for omc (only did omcd last commit).
021660c99Martin Sjölund- Adding OMC_API-HowTo to install target. - Updating java_interface makefiles (better clean-up and works without setting JAVA_HOME). - Removing temporary antlr grammar files when configure script fails. - Fixed doc install path for UNIX systems. - Remove generated code when doing make clean in Compiler/runtime, Compiler/absyn_builder. - Remove generated makefile in c_runtime/sendData.
3ea80f9c1Jens Frenkel- Bugfix, derivative annotation for functions, functions with annotation(derivative=foo1) wasn't found
e4c8c8f32Martin Sjölund- Added support for unset RMLHOME when doing ./configure - More removal of files when doing make clean or make distclean
4a5e03ba8Martin Sjölund- Updating linux makefiles (and rmldep-new.sh) to work without RMLHOME set (it is set by ./configure!)
91feb6780Martin Sjölund- Added support for omniORB in qtclients. + We can now remove the dependency on mico for Linux systems.
3af9dfd0fMartin Sjölund- Updated configure script to configure lpsolve55 properly (some systems require -ldl -lcolamd, others don't).
cf1a053a2Martin Sjölund- We now handle redeclare modifications in extends in InstExtends instead of passing back the modification and handling it later. + This added support for the record constructor function when redeclaring records.
9be5da692Martin Sjölund- elabCallArgs now guards the general case from accepting record constructors.
0f9f54145Per Östlund- Fixed detection of nested when-statements [bug 1189: http://openmodelica.ida.liu.se:8080/cb/issue/1189]
cea230f2dPer Östlund- Fixed code generation for min and max (bug #1196: http://openmodelica.ida.liu.se:8080/cb/issue/1196).
2d98f6267Per Östlund- Fixed bug #1194: http://openmodelica.ida.liu.se:8080/cb/issue/1194 by adding a case for arrays in Types.getFixedVarAttribute. - Added testcase mofiles/FixedFinalParameter.mo to test the fix.
9b34ee963Martin Sjölund- Added support for "record ABC = DEF;", and calling the record constructor ABC. - Added testcase records/Derived1.
5b76eaa80Martin Sjölund- Fix for getNthComponent (partialInstClass wouldn't work on certain scopes that extend with modifications).
bbd366a92Martin Sjölund- Remove failtrace for lookupVarInPackages.
8aaa49578Martin Sjölund- Fixed lookupVarInPackages to store previous environment frames when doing lookup in the parent scope. + This prevents infinite recursion if you want to lookup A.B.C.myConst in scope A.B.C.MyFunction.
8b99fbf42Per Östlund- Implemented the possibility of specifying multiple .mo(f)-files on the command line, and which class to instantiate. + Combined the cases for single .mo-file and for .mo-file with libraries in Main.translateFile. + Added a case in Main.loadLibs for loading .mo(f)-files. + Added flag +i in RTOpts, which is used to specify the class to instantiate. + Moved the instantiation to it's own function Main.instantiate, which checks the flag +i to determine which instantiation function to call. + Added the function Absyn.stringPath, that converts a String to a qualified Absyn.Path. + Rewrote parts of Inst.instClassInProgram to report an error if the class specified with the +i flag was not found. + Updated the help message to reflect these changes. - Fixed spelling in SimCodeC.tpl.
968abd0ceAdrian Pop- fixed bug [1185] https://openmodelica.org:8443/cb/issue/1185 Error: Variable stateGraphRoot in package Modelica.StateGraph.Examples.Utilities.CompositeStep2 is not constant Error: Variable stateGraphRoot in package Modelica.StateGraph.Examples.Utilities.MakeProduct is not constant The problem was the that the lookup in in InnerOuter.lookupVarInnerOuterAttr can fail so I added error checkpoint/rollback.
69c648544Martin Sjölund- Removed "Lookup of enumeration variables" from lookupVarInPackages, since the general case also handles enumerations (less code to maintain).
59b2b5b0bMartin Sjölund- Simplified the code for lookupUnqualifiedImportedVarInFrame so it's easier to maintain.
dea22dde2Martin Sjölund- Simplified the code for lookupQualifiedImportedVarInFrame so it's easier to maintain.
b22956fdePer Östlund- Fixed bug #1193: http://openmodelica.ida.liu.se:8080/cb/issue/1193 + Changed Mod.lookupIdxModification so that it can merge a final variables EqMod with it's other modifications. + Added testcase mofiles/FinalParameterModification.mo.
a5c573123Per Östlund- Fixed bug #1190: http://openmodelica.ida.liu.se:8080/cb/issue/1190?navigation=true + Added the function Inst.isFunctionInput that checks if a component is a function input argument or not. + Ignore modifiers on function input arguments in elabArraydim, since the size of input arguments should not be determined there. + Added testcase mofiles/FunctionDefaultArgs.mo to test the fix.
1672c17bfMartin Sjölund- Adding testcase Extends8.mo - This tests that all inherited class definitions are actually put in the environment (this sometimes wouldn't work if you extended and extended class).
edb8d6724Adrian Pop- added operator record to the grammar / walker / Absyn.mo (from Modelica 3.2).
a611bef98Adrian Pop- overconstrained connection graph improvements and fixes. + the graph changes generated by disabled components ( Type comp if false ) should be discarded (created problems for ForceAndTorque.mos) + delete the branch edges, roots and connects from the connection graph when they lead to a disabled component.
9291bcb33Jens Frenkel- readable DivisionbyZero ErrorMsg - test only divisor part of parameter Equation if zero
ff0a8e9d3Martin Sjölund- Do updateCompeltsMods also when doing a partial instantiation (this solves some issues in Modelica.Media; some others remain though).
234d69e47Martin Sjölund- Removed lookupVar failed failtrace (I re-added it by accident after debugging). - Added printing of scope used when instantiateDaeFunction fails.
999aaf645Jens Frenkel- finish relaxation algorithm works also for template codegen, - use "+d=relaxation" to solve linear systems with relaxation algorithm (gaus ellemination without pivoting)
4cd0f18f0Jens Frenkel- continue with relaxation algorithm
0301cc37eJens Frenkel- start implementation relaxation algorithm
8f5cebcccJens Frenkel- implement pow operator for matrix
0d5d93240Martin Sjölund- Fix order of cases in updateComponentInEnv in order to fix libraries testcases. - Also updated Multibody testcases due to Adrian's previous changes. - Fix testsuite/rtest to print time spent when it gets equation mismatch. - Refactoring Lookup.mo (Derived classes are no more).
9aef184caPer Östlund- Fix for bug #1186: http://openmodelica.ida.liu.se:8080/cb/issue/1186?navigation=true + Added function Exp.arrayContainWholeDimension that checks if a list of dimensions contain a wholedim. + Added a check in Static.cevalIfConstant so that only functions with return types of unknown dimensions are constant evaluated to determine the dimensions. + Modified some testcases to reflect the changes made.
fe3d614bbAdrian Pop- fixes for bug [#1188] https://openmodelica.org:8443/cb/issue/1188 Connections.isRoot evaluates to wrong value in Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody - the problem was a typo in ConnectionGraph.addBranchesToTable generated a wrong hash table. - moved public functions in the beginning of ConnectionGraph.mo - make all functions not accessed from outside be protected in ConnectionGraph.mo - more testsuite/libraries/multibody/ need updating (will do that with a later commit).
fdbf4b8c2Jens Frenkel- CMakeFiles now work on win32 and linux to generate omc executable. - Linux define RLMHOME, point to your rml install path - win: define OMDEV environment variable, point to your OMDev installation - Attention: because function rml_user_gc is defined at rml.lib you can - at force flag to TARGET_LINK_LIBRARIES(omc rml) (for win32 -> TARGET_LINK_LIBRARIES(omc -FORCE:MULTIPLE rml)) or - rebuild rml lib without function rml_user_gc
2d5dd111fMartin Sjölund- Updated configure script to be a lot faster when searching for ANTLR headers (look in ANTLRHOME/include and ANTLRHOME/lib instead of searching all of /usr). - Fixed an issue where ANTLRHOME can be set to /home/user/src/ but the script finds the headers in /usr/local and Makefiles then fail. - You may now have ANTLRHOME unset when doing ./configure. - The default ANTLRHOME is /usr. - Readme file updated to reflect these changes.
c7babf5b2Jens Frenkel- implement elsewhen part of whenequations for tplmode
bf298affaRickard LindbergFixed incorrect generation of makefiles.
1a08cf87dJens Frenkel- implement elsewhen part of whenequations
abf20b136Rickard LindbergUpdated some comments.
87488ed1cRickard LindbergAdded more documentation to SimCode and did some refactoring.
aa6e243baMartin Sjölund- Fixed some gcc warnings in Compiler/runtime on Unix.
1c5d87c9bJens Frenkel- division by zero problem, test parameter expressions only once
752953f0eJens Frenkel- continue with division by zero problem, attend mode (ALL,ONLY_VARIABLES), removed unused functions
76bd57746Adrian Pop- moved getTotalProgram from Interactive.mo to a new package Dependency.mo so that it can be shared between OpenModelica and other tools (MathModelica).
e4b951971Martin Sjölund- Updated configure script for better performance and stability when installing rml and setting RMLHOME to a too common directory (sources in /usr/local/src and binaries in /usr/local - the old script would find both include directories)
a64ceaf86Martin Sjölund- Fixed testsuite/mofiles/ConstructParameters1.mo (printing parser error is the expected result). - Added a guard to instBasictypeBaseclass - if a primary type is extended with a new component, we should not try the next case, but rather print an error. - Updated testsuite/mofiles/SimpleTypeExtend.mo (it is supposed to fail according to the line above).
658739cd7Martin Sjölund- Fix for mofiles/Array13.mo - Handle instModEquation when the dimension of the MOD is 0 as a special case (there is no equation). - Added testcases Array14,Array15 that are the same as Array13, but test it for constants and variables instead of parameters.
3a20c8450Otto TronarpMake it possible to setup a different default compiler through environment variables.
852f5d506Martin Sjölund- Adding testcase Extends7.mo, based on bug #1184. - Adding builtin function classDirectory()->String to the initial environment. - It is a non-standardized function does not have an implementation in OpenModelica.
71de94c92Martin Sjölund- Updated the generation of Makefile header so you don't have to specify SENDDATALIBS if you run it manually.
6b21019aaJens Frenkel- update CMakeFiles for linux
992b28e68Martin Sjölund- Fixed a slight bug in Compiler/InnerOuter.mo (was printing error trace when it shouldn't). - Updated mathcore-mofiles for new rtest script. - Updated testsuite/Makefile to use parallel make for all tests.
d3f08b32eJens Frenkel- update CMakeFiles, start with testsuite
1d602c52aPer ÖstlundFix for bug #1187: http://openmodelica.ida.liu.se:8080/cb/issue/1187?navigation=true - The checkModel flag is now set in CevalScript when checkModel is run. - Static.elabSubscriptsDims2 now avoids printing error messages for out of bounds indices when checking a model. - DAELow.checkAssertCondition now skips checking assertions when checking models.
deff1a39bRickard Lindberg- Generated outvar init code before memory management - Implemented generation of: - MUL_MATRIX_PRODUCT - UMINUS_ARR - Updated so subscripts work for CREF_QUAL as well - Fixed some other small issues to make multibody tests pass
5aed0dfa5Martin Sjölund- Re-added the changes (r5194) reverted in (r5215) - With some additional changes that fixes problems with it (regarding changing modifiers to NOMOD in updateComponentInEnv). We now do that as before, but only for variability VAR or DISCRETE. - Fixed more issues with filenames being absolute paths when running the testsuite (and removed +d=rtest flag; we simply always make the substitution so it's easier to do development). - Added testcases invertedPendulum, nonConstantParam (from MathCore). - Also removed Env.BCEnv (baseclasses in Env), since the list was always empty now. - Fixed the testsuite/libraries/Makefile (hopefully for the last time).
036e41c39Jens Frenkel- CMakeFiles: install omc, libs, docs, testmodels, includes
7fdfdabd4Jens Frenkel- CMakeFiles work with VisualStudio but generated omc.exe wound work because of qt problems
7d31d76a5Jens Frenkel- continue with CMakeFiles
74c8e90e5Per Östlund- Added an error message in the backend when trying to lower the constrain function, since this previously failed silently. - Implemented support for functions without return values (since they were already mostly implemented anyway).
7f3cf54b2Martin Sjölund- Added System.stringFindString (same as System.findString, but returns the found String instead of an index). - Modified Error.mo to look for the +d=rtest flag. - If the flag is present, you look for "/testsuite/" in the filename string, and print the path relative to /testsuite/. - Updated the msl221 and biochem rtest files to use this flag. - Updated the PID_Controller.mos testcase so you don't have to run the testsuite from c:/petar/dev/... in order to get the same error messages.
24b928b84Jens Frenkel- update CMake Files, now only the linker fails because of runtime.lib(systemimpl.obj) : error LNK2005: _rml_user_gc ist bereits in librml.lib(p-usergc.obj) definiert. >msvcprt.lib, MSVCRT.lib, error LNK2005: __errno ist bereits in LIBCMT.lib(dosmap.obj) definiert. ...
233041f01Martin Sjölund- Print a message about what port is being opened if omc is started with +d=interactive (socket interface)
1fcc180d2Rickard LindbergRefactored templates.
bc0bce83ePeter Aronsson- Reverted (constrain is used in the old multibody library and MathCore uses it.) Testcase will be added later today.
7dac18644Jens Frenkel- update CMake Files, now only the linker fails
64220111aPeter AronssonFixed two bugs that affect the code generation in MathCore backend: -Fixed a bug in Exp.stringifyComponentRef (last type should be picked up, but it wasn't). -Fixed a bug in vectorize call (giving wrong type to component refererences.
9e8a425aePeter AronssonReverted -r 5194 as it destroyed a lot of testcases at MathCore. I will add these as instantiation tests in OpenModelica later today.
562109bf4Per Östlund- Removed the non-standard constrain function from the initial environment, since it's not handled in the compiler and caused the compiler to fail without a proper error message when constrain was used.
7b5013ab7Jens Frenkel- continue with CMakeFiles
9dbd9c1daPer Östlund- Fixed testcase #1179 [http://openmodelica.ida.liu.se:8080/cb/issue/1179] + Changed Inst.getUsertypeDimensions so that it also returns any modifiers from user defined types, which are then sent on to instVar2 from instVar_dispatch when instantiating user defined types. + Changed some testcases to reflect that modifiers are now propagated correctly. + Added testcase UsertypeModifications to explicitly test this fix.
36a750631Jens Frenkel- update CMake Files
a44025e55Rickard LindbergRefactored and documented C code generator template code.
ac698813eJens Frenkel- add CMakeFiles to build omc with CMake (not yet finished)
99f4a4df3Jens Frenkel- missing file for division zero problem implementation
58d75a68bMartin Sjölund- Fix for failtrace of the new InstExtends when extending components with IMPORT elements. - Only traverse elemets that have not been traversed already (no significant speed improvement).
f88b5cdb5Jens Frenkel- first implementation of division by zero problem (only for template part)
4d83e40e6Alexey LebedevFix for the multiple declaration bug: http://openmodelica.ida.liu.se:8080/cb/issue/1071?navigation=true
64ecd443cMartin Sjölund- Added new module InstExtends.mo - Removed SCode.BaseClassPath from the SCode module - InstExtends will now traverse the inherited elements and replace referenced crefs with fully-qualified paths instead of the old baseclass concept. + This is closer to what the specification says about how to handle extends and might work better when trying to implement Modelica.Media.
7e00010d0Rickard Lindberg- Extracted extra record declarations from uniontypes - Extracted libraries (arrays of libraries) from annotations - Generated external type for meta types
c3d58ee9eMartin Sjölund- Added a makefile target for building omc with RML profiling information
bae366c7bPeter Aronsson-Another fix for variability of for iterators. It now has a ceiling of PARAM variability, since cevalIfConstant otherwise fails. This needs to be refactored when cevalIfConstant is removed in the future. Added another testcase to make sure this is covered (AIMC_DOL.mos) -Minor fix in errorext.cpp
2cf0113cfRickard Lindberg- Extracted record constructors as functions and generated code for them - Generate complex constant expressions in daeExpMetaHelperConstant - Generate type descriptions for meta types
547392dd9Peter Aronsson-Implemented sorting of functions when printing DAE as preparation to make testsuite more robust. (All multibody tests updated because of this too) -Changed how variability of for iterators are handled. They must be correct after the iterators have been elaborated to prevent false error messages later on. But this affects how e.g. indices are elaborated. Earlier they were always constant evaluated for const and param variability, but this is not the case when inside a for iterator scope, since the iterators do not have a value. Therefore added special scope name for for iterator scopes, and treat them separately, see Env.forIterScopeName and Static.elabSubscriptsDims2.
656c479a5Rickard Lindberg- Generated code for STMT_TRY - Generated code for STMT_CATCH
3ca767624Rickard Lindberg- Added special write_noretcall when called function has no output variables - Generated code for STMT_NORETCALL - Don't generate ending comma for METARECORDCALL if no arguments
08a284345Rickard Lindberg- Implemented generation of expression CONS - Implemented generation of expression METARECORDCALL
9f02d82a9Peter Aronsson-Fixed bug in array reductions. The variability of for iterators were always added as C_VAR, even if they had constant or parameter variability). This resulted in ceval error messages. Testcase in TransformerYY.mos
62e1d7023Björn Zachrissonsome comments added
e8155de7aMartin Sjölund- Fix for Lookup.lookupVar: Check for valueBlockScopeName in addition to forScopeName. - Fixes MetaModelica and ForIterator test cases.
99be13c6dPeter Aronsson-Fixed bug in lookupVarInternal, returning empty frame as scope of variables. -Fixed bug with lookup of variables performed in parent scopes (now limited to for loop scopes and top scope for builtin variable time) NOTE: This destoys a lot of meta-modelica tests, probably since there it is okay to look in parent scope, e.g. for matchcontinue, etc. Someone else has to fix this, as I am not familiar with the code.
e6fbe8b53Per Östlund- Fixed Lookup.expandWholeDimSubScript so that it doesn't drop for-iterators from the subscripts, which caused the testcase mofiles/VectorTest to fail. - Changed the testcase mofiles/VectorTest, since it previously expected the wrong result.
2b4d69849Martin Sjölund- Added HashTableStringToPath.mo (first HashTable module with a name you can actually guess what key-value pair it uses?). - Updated the other HashTable files (some of the functions that take a Key don't have input Key). - Added pathReplaceFirstIdent and crefReplaceFirstIdent to Absyn.mo. - These functions will be used in later commits. - These functions allow you to change the first part of a path: (a.b.c, d.e) => d.e.b.c - Part of their purpose is to remove the need of the base class concept in Inst (let extends lookup imports, etc instead of adding base classes).
5e47787dfMartin Sjölund- Fix for errorext.cpp on Linux (missing string.h for strcmp; OSX and Win32 doesn't require it).
347a43cb0Jens Frenkel- do a bit more simplification for matrix addition: example m[3,3] = a[3,3]+b[3,3] works but m[3]=A[3]+(B[3,3]+C[3,3]*C[3,3])*D[3] worked also before but generades bad code. testcase mofiles/VectorTest and mosfiles/APIClass failed also before this change
c73689577Martin Sjölund- Fix for errorext.cpp (use strcmp instead of pointer comparison).
81e29fb02Daniel HedbergAdded a few utility functions: - crefPrefixOf - isNone - isSome
744279279Martin Sjölund- Fix for errorext.cpp (was missing include stdlib.h).
808ffb4cfPeter Aronsson-Changed implmentation of ErrorExt: setCheckpoint,delCheckpoint and rollBack. They now take unique indentifiers. If rollback and delCheckpoint passes identifier that doesn't match what is on the top of the stack, the application exits. This is to make absolutely sure that error message checkpoints are handled correctly. -Also fixed bugs to make sure that above is fullfilled. -Fixed bug with wrong type inside crefs -Removed Static.generateCompiledFunction since it is not used.
f27bf7cc1Per Östlund- Fixed testcase Lookup10, which together with other recent fixes fixed bug #1151: [http://openmodelica.ida.liu.se:8080/cb/issue/1151?navigation=true]. - Added RTOpts failtrace guard in Inst.partialInstClassIn.
b413d1a0aAdrian Pop- Updated parser/lexer to support 'operator' and 'operator function'. The keyword 'operator' can also be used as an identifier in several places so we can parse the OpenModelica compiler sources. We can change the sources and replace 'operator' with 'op' or something similar later. - RollingWheelSetPulling.mos now flattens without error.
001cae340Per ÖstlundFixed for loops in class algorithm sections: [https://openmodelica.org:8443/cb/issue/1180] - Static no longer tries to constant evaluate iterators, which earlier caused Ceval to print an error message. - Fixed the broken counting of equations in for loops. - Fixed the C name generation for variables in for loops that used iterators as subscripts. - The testcase AlgorithmForInClass now works again.
24356b45dMartin Sjölund- Fixed error messages from Static.instantiateDaeFunction when trying to instantiate from the top scope.
7ac6c747fMartin Sjölund- Replaced Static.calculateConstantness with listFold.
9ff466833Rickard LindbergImplemented generation of expression LIST, META_TUPLE, and META_OPTION.
a1c2e00feMartin Sjölund- Added support for enumerations in external C functions. + This causes RollingWheelSetPulling.mos to print some extra warnings (because the annotations for external C functions are missing in the multibody testsuite).
4059df1adMartin Sjölund- listFold instead of listReduce when simplifying calls. + Works when using an empty list of arguments.
6f7745c5bRickard LindbergImplemented generation of STMT_THROW.
a5ba5c356Rickard Lindberg- Implemented STMT_MATCHCASES - Implemented STMT_BREAK - Added missing record STMT_RETURN in the typeview (solving the problem described in the removed comment)
4a4546110Peter Aronsson-Fixed some bugs with wrong type in component references
58b293898Martin Sjölund- Modified the ModelicaUtilities testcase to use save() and pre() on strings during simulation runtime. + Updated the generation of simulation makefiles to link libraries in the correct order.
6904a3b9eRickard Lindberg- Fixed readInVar template to work for nested records - Refactored code for writeOutVar template
a6f84c547Adrian Pop- replaced Linköping with Linköping
f651d38deAdrian Pop- flush the stderr in ModelicaFormatError (otherwise the stderr is printed at the end in Windows) - do not delete ModelicaUtilities_*.dll as you cannot do that in Windows when is loaded in the omc process!
25fdad402Martin Sjölund- Updated simulation runtime to support pre() and save() on strings.
5eb5545d9Rickard Lindberg- Generate record declarations in correct order - Generate correct type descriptions for nested records
cca934e47Rickard Lindberg- Generate correct external type for records - Only declare init variable if it does not already exist in return struct - Extract record declarations from external functions in addition to just regular Modelica functions - Fixed bug in writeOutVar: a comma too much if external function had no input arguments
757135339Martin Sjölund- Added test mosfiles/FinalTests, from MathCore - Added the ModelicaUtilities.h header (Utility functions for external C function) - Changed the generation of makesfiles to make it possible to reference these functions. - Added a simple implementation of these functions. - Added test mosfiles/ModelicaUtilities - Fixed a bug in SimCodegen where solved string would not be escaped before printed as C-code.
67fe5497fMartin Sjölund- Added c_runtime/Makefile.common. - You now only need to change one file when you add headers.
af0915370Adrian Pop- added the constantness of the for loop range as an option in DAE.TYPES_VAR for a variable in the environment to be able to detect if the variable is a for index. - Lookup.lookupVar* will now return also the constantness of the range of the variable (if is a for index, otherwise NONE()). - if a variable is a for index *do not* prefix it in PrefixUtil.mo - unroll for loop statements that contain when statements and report an error if the range is not constant or parameter. - functionality to unroll all for loops with constant range but is not activated right now (we want to move towards non expanded arrays).
442c6ba66Adrian Pop- use the actual QTHOME in Linux if is set and replaced tab with two spaces (systemimpl.c) - generate an unique log filename for each external viewer (sendData.cpp)
9f121f134Adrian Pop- detect header changes in c_runtime (Makefile*) - assert should be based on SIZE_ELEMENTS in size_alloc (memory_pool.c) - more index elements (memory_pool.h) - get rid of unused variable warning (real_array.c)
3fe65159bMartin Sjölund- Added fixes for new testcase mosfiles/EnzMM.mos, provided by MathCore + We now check all frames in the current scope before looking in the baseclasses.
7f0edc498Rickard LindbergFixed testcase ExternalFunctionResultOrder.mos.
dda76d6f0Per ÖstlundDisabled earlier changes in Env.cacheGetEnv2, since these caused problems in Multibody.
9acd6c207Peter Aronsson-Fixed bug with incorrect types in DAE.CREF_IDENT and DAE.CREF_QUAL. The types should be that of the identifier -without- subscripts. This also required that this type information is returned from lookupVar, which resulted in the splicedExp changed to a SplicedExpData which contains the optional spliced expression and the type of (the last) ident. (See Lookup.mo) This will probably not affect OpenModelica backend, since it only uses the type from DAE.CREF, but MathCore backend uses these types, so they must be correct. -Fixed bug with functions not picked up to dae in lookupFunctionsInEnv -Fixed bug with simpliciation of scalar products (required by MultiBody simulations, testcase at MathCore).
9bb396204Björn ZachrissonAdded a back patch for Qualified instantiation
e01b561eeMartin Sjölund- Removed some of the ErrorExt.rollback and setCheckpoint I added for pointless error messages. - We now check if the modifications could possibly generate basic types (only start,nominal,etc NAMEMOD's allowed). + This also removes the old error messages.
dab774d24Per Östlund- Fixed Env.cacheGetEnv2 so that it searches all branches of the CacheTree when looking up qualified names, and not just the first one. This was needed for bug #1151. - Added testcase Lookup10 that tests the fix in Env.cacheGetEnv2. - Commented out some debug-related lines in Inst.
fe850cb5cBjörn Zachrisson* Fixed initial array equations * Activated back patching of initial if equations with Connection.isRoot() as statements.
5b6f8ef9cMartin Sjölund- Added support for external function annotation Library={"lib1","lib2"}, as per the 3.1 specification. + Updated MetaModelicaDev testsuite to use this functionality.
7732cc983Rickard LindbergGenerate correct read/write in 'in_' functions for complex types.
01b640893Rickard LindbergGenerate code for STMT_RETURN.
a3b052db0Rickard LindbergGenerate correct C type for external string array arguments.
9453132a1Martin Sjölund- Fixing another bug where error messages are sometimes printed out even though they shouldn't. + This occured in instBasictypeBaseclass because errors from elabMod were only rolled back if the class was builtin. + Added a testcase for this.
484b849bdMartin Sjölund- Fixed OMC parsing issues in Inst.mo. RML didn't complain even though the syntax was clearly incorrect.
c28f2cbd8Martin Sjölund- Removed directory Compiler/template_precompile which was part of the old template code generator prototype. + This directory made MDT not work correctly (multiple copies of Util.mo for example).
e57620217Martin Sjölund- Fixed a MetaModelica bug where matchcase expressions with 0 input variables were disallowed.
8f0ca7e3cMartin Sjölund- Fixing a bug where error messages are sometimes printed out even though they shouldn't. + This occured in instBasictypeBaseclass2 because noone made an ErrorExt checkpoint before trying to roll back the message.
a74698e33Rickard LindbergAdded special case when cref is of enum type.
bf539eb61Rickard LindbergGenerate 'in_' function for external functions.
edf412831Rickard Lindberg- Added support for generating single functions using Susan - Added case to STMT_ASSIGN_ARR to handle slices on the left hand side
fd31d0057Per ÖstlundUnified handling of Icon and Diagram annotation, since getDiagramAnnotation didn't work in all cases. Both Icon and Diagram annotation are now handled in the same way.
33aa73988Martin Sjölund- Changed Env.BCFrames to list instead of list. - Updated Inst.getDerivedEnv and Lookup.lookup{Class,Var} to reflect these changes.
7ca7a826bPer ÖstlundFix for bug #1146: + Fixed elaboration of fill (such as zeros and ones) on arrays of unknown dimensions. + Added testcase FillSize in mofiles
33d41497bRickard Lindberg- Fixed when_sorting test case by extracting a new set of equations including when equations (used in functionUpdateDepend template) - Generated functionCheckForDiscreteChanges function correctly
dbf1b8745Stefan Brus- C_runtime .c files now have updated license headers
6101653a5Stefan Brus- C_runtime .h files now have updated license headers
c91b93bdaStefan Brus- Rest of .mo files
3ea3af849Stefan Brus- First batch of updated license headers
a16418cb5Jens Frenkel- bugfix CombiTable2D
6440d842fJens Frenkel- implement CompiTables2D, not testet yet
4c1bf45dbPer ÖstlundImplemented support for initial array equations (DAE.INITIAL_ARRAY_EQUATION). Not properly tested yet, but shouldn't break anything.
2889f767dMartin Sjölund- Changed the base class in SCode elements to a list instead of option.
1fff03f80Martin Sjölund- Changed instElement to get the class and component modifications before updating them. - This solves issues when you try to update modifications that are discarded anyway.
d09df64a5Rickard LindbergImplemented generation of delayed expressions.
c9a378595Martin Sjölund- Fixed r5075 (which changed encoding of Swedish letters into ???)
b625b007fRickard Lindberg- Implemented generation of reductions - Fixed incorrect name in print string - Added empty function checkForDiscreteChanges (to make it compile)
2c53374e8Anton SodjaAdded a field `aliasVars' to structure DAELow, where replacement transformations for alias variables (originating from trivial equations) are stored. Currently, this field is ignored everywhere -- it will be only used in code generation in my own branch `omprof'.
a15d95b0dMartin Sjölund- Updated URLs in README-OMDev-MINGW.txt
d73a1807dJens Frenkel- reimplement Exp.solve for ifexp because use solvenonlinsys is very slow(with solvenonlinsys: 5sec. without 0sec) The testcase IfEquation2 works now because there is no division by zero (a*x/y,y==0 all the time) anymore. It does not fail with solvenonlinsys because solvenonlinsys returns 0 for this special case.
32450ecf4Martin Sjölund- Removed trailing whitespace from Compiler/*.mo
07ba55561Martin Sjölund- Added Env.BCEnv for the type used by base classes (currently aliased to Env.Env)
dc1700679Martin Sjölund- Updated Inst.getDerivedEnv - it no longer needs to check for possible infinite recursion since lookupClass does that for us.
69c7b3f60Jens Frenkelbugfix for removeSimpleEquations
1424f5484Martin Sjölund- Don't use Inst.updateCompeltsMods on DAE.NOMOD. This reduces failtrace logs. - Updated multibody testcases. * Changed eol-style to native. * updateCompeltsMods caused changes in the order in which functions in the DAE were generated.
0f8cb8bfbMartin Sjölund- Added the correct modification in Inst.updateCompeltsMods, instead of DAE.NOMOD. - This mainly removes errors and failtraces that would later be patched in anyway. - It should now be easier to debug large models since most of the failtrace should be relevant again.
7e28e4be0Willi BraunUpdate event handling for euler. Add two testcases: one for event iteration and one for when sorting cleanup Codegen.mo.
19a91a56dMartin Sjölund- Added lookup of partial packages that have modifications (needed for base classes). - Changed lookup of imports to use previous frames and the new constructs for only looking up in the current scope.
fd1a8d4d2Per ÖstlundFixed bug #1170, which included: + Fixing elaboration of vector function. + Enabling Inst to determine the size of an unknown dimension (WHOLEDIM) from a variables modifier. + Fixing the c_runtime to handle assignment to column slices of matrices correctly (or at least more correctly than before...). + Adding a test case VectorTest.mo.
c4c9d1696Martin Sjölund- Dynamically loaded functions are now compiled using g++ instead of gcc. They are still exported using extern C.
913c2eed9Martin Sjölund- Removed some cp -u lines from Makefiles. They don't work in OSX (GNU extension). - Added x86_64-OSX version of liblpsolve55.dylib. - Most regular Modelica testcases work in 64-bit OSX. MetaModelica testcases seem to fail, however (probably due to not using the 64-bit datatypes in the headers).
c45bb8c8eAdrian Pop- ValuesUtil.unparsePtolemySet2 was failing due to some problems with dimensions of Values.ARRAY; because of this plotting was failing, now it works again.
e8c9c986dJens Frenkel- continue with division by zero implementation
ed8745e7fMartin Sjölund- Added baseclass paths to the elements of class definition in addInheritScope - Added ceval for DAE.SLICE - Added testsuite/mofiles/Extends6.mo to test these things
e94257340Jens Frenkel- continue with division by zero implementation
ec7fd3b1dMartin Sjölund- Updated Lookup.lookupClass - Instead of removing prefixes from the path we are trying to look up, we now store previous frames. - So if we are in scope A.B.C.D and don't find C.E in either D or C, we lookup C.E in A.B with the previosuly stored frames {C,D}. We then rebuild A.B.C and lookup E with previously stored frame {D}. - We also send a stateful Boolean around in lookupClass. - If we ever find a matching name, this boolean is set to true. - If the boolean is true, we can no longer go up a level in the scope. - So if you have a class A.B.C.B and try to lookup B.C, it will now correctly only look for C in the scope A.B.C.B (and not A.B as it would previosuly do). - Note: This still doesn't solve all issues because the compiler stores UNTYPED mods sometimes, and this could potentially be elaborated in the scope A. - Added testcase mofiles/Constant11.mo for one of the issues now solved.
369ce9c19Martin Sjölund- Added a stateful Boolean to Util.mo - It's really a Real[:], but the abstraction makes it look like a single value. - Useful if you need to set a flag to stop a recursive operation (stop continue on fails).
78823db89Peter AronssonQuite big check-in: DAE.mo: - added some comments to operators DAEUtil.mo : -added some utility functions. Exp.mo: -implemented simplification of cross - fixed some bugs in simplification - added some utility functions Inst.mo: - bindings on parameters and constants are now also created using makeVariableBinding, as for variables. This makes them also type converted properly as for variabeles. (This affected many flat models). - Fixed bug in setFunctionInputIndex (used for derivative information on functions) Lookup.mo : - fixed bug in makeExpIntegerArray with wrong value on the scalar attribute. Static.mo : - made elabBuiltinCross2 public (used by Exp.simplify1)
934f9e006Björn ZachrissonSome minor renaming of functions to be more correct according to rest of project.
ad3d230f2Adrian Pop- Exp.mo Handle also WHOLEDIM in Exp.replaceSliceSub. WHOLEDIM is *also* a special case of SLICE that contains the all subscripts, so we need to handle that too! This will get rid of errors like: The generated equations: controller.observer.y[:,1] = controller.L.u[:,1]; controller.observer.y[:,2] = controller.L.u[:,2]; should be instead; controller.observer.y[1] = controller.L.u[1]; controller.observer.y[2] = controller.L.u[2];
65b7bf363Jens Frenkel- start implementation of check division by zero
fdec6091cJens Frenkel- undo more simplification (Rev 5008) because speedup is less than 1%, so numerical stability will be preferred
a40103440Martin Sjölund- Merged cases in lookupClass2 to make it easier to follow
c38023872Björn ZachrissonAdded a Absyn function to strip last cref of a qualified cref
118e69387Jens Frenkel- Bugfix: there was an error in daelow for bind expressions. The error occurred because in Exp.replaceExp has been traversed a component refs but this is wrong because m2.a will be replaced to m2.%$a for {{a,%&a},{m2.a,%&m2$Pa}}.
1e41eb2cdJens Frenkel- do a bit more simplification
43e852c8eRickard LindbergFixed failing test case mosfiles/BooleanArray.mos.
491ebe526Martin Sjölund- Refactoring of code; no changes made to the DAE AST + Constructors of builtin types, such as (DAE.T_INTEGER({}),NONE) are now made through a constant DAE.T_INTEGER_DEFAULT + This refactoring will make it easier to change the representation of the DAE.Type
672fc711bJens Frenkel- add missing built in math function return types
a19b7ef51Adrian Pop- fixed for bug [#1175] (https://openmodelica.org:8443/cb/issue/1175?navigation=true) instantiateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum); wrongly gives errors: Error: Variable body.sequence_start[1] not found in scope Error: No constant value for variable body.sequence_start[1] in scope . Error: Variable body.sequence_angleStates[1] not found in scope Error: No constant value for variable body.sequence_angleStates[1] in scope .
c37a5cfc7Björn ZachrissonSome minor changes to inst->deriveing function and Exp functions.
fff335ccfAdrian Pop*BEWARE*, quite BIG changes, MathCore will need to update their files! - new implementation for inner outer to get the Elementary ThreeSprings working + inner components are put first in the list returned by Inst.splitElems to be instantiated first + when instantiated the inner component environment and the dae is saved into InnerOuter.InstHierarchy + when instantiated the outer component the inner component is looked up into InnerOuter.InstHierarchy and the returned environment and dae are processed to make it usable for outer: * components in the environment are switched from INNER to OUTER * components in the dae are switched from INNER to OUTER and prefixed with the prefix of outer - tons of other fixes
1e58316a1Adrian Pop- added a new function - use dummyInfo constant rather than construct it on the fly
64555747aAdrian Pop- updates so it compiles
3248d3e0bMartin Sjölund- Updated get_array_sizes in dynload.c to use existing dimension information from the Values.ARRAY
a0776c543Martin Sjölund- Added list dimLst to Values.ARRAY * This means we can ceval {} and still know it has dimensions [0,3,2,5] * Updated C runtime * Updated elabBuiltinXXX to return correct type * Rewrote parts of vectorizeCall * Rewrote ValuesUtil and Ceval to set the correct dimensions of its calculated results * Didn't optimize all parts that use listLength on the valueLst. This could be improved also in in runtime
aea77c6fcMartin SjölundTypes.vectorizableType: - Changed it so that the expected type is lifted instead of the expression type unlifted - This means {{1,2,3}} with expected type Real[1,3] now becomes {{1.0,2.0,3.0}} with type Real[1,3] instead of CAST({{1,2,3}}) with type Real[3] as it previously returned. + The added dimensions are returned like before, no other changes were required.
e014cd823Björn Zachrissonminor changes in front-end, * some new functions * cleaning of code and complement to existing functions
a85f09cc2Jens Frenkel- update CMake files, now it is possible to at external c sources
229b9df2fPer ÖstlundAdded a variant of buildModel that takes a stepSize instead of startTime, stopTime and numberOfIntervals. This is used by Parham Vaseles OpenModelica Interactive implementation.
ba7081a4aMartin Sjölund- Balanced the ptolemyio.cpp indentation.
72f31febfMartin Sjölund- Removed tab characters from ptolemyio.cpp
6d37331b9Martin Sjölund- Added MetaModelica builtin function print(String) as a Modelica builtin function instead (by request from Adrian)
a824e50eeJens Frenkel- Bugfix: XMLDump, replace all "<" and ">" with W3C standart "<" and ">", not the best implementation but i thing we should use susan for XMLDump.mo - implement Tearing in susan codegen (also use DAELow.STATE_DER for state derivative) - start with division by zero problem - added a few more simplify to Exp.mo
696ab5acdMartin Sjölund- DAEUtil: Added some printing of MetaModelica statements (to see more structure of functions when printing flattened models)
c53495999Per Östlund- Fixed elaboration of the builtin vector function (should now give correct result and type). - Added test case VectorBuiltin to test the fix.
c2f643cefMartin Sjölund- Static.mo: Improved readability of logic in edge,change and cevalIfConstant
9eed6156cJens Frenkel- add Flag "-mt" to measure simulation run time
d69f1e617Jens Frenkel- added CMake files to generate for example Visual Studio project to debug generated simulation executables
08a53fa44Martin Sjölund- Exp.printExp: + Added WILD + Added VALUEBLOCK
a83238e51Martin Sjölund- Added better _init.txt trace messages during verbose simulation
38b82ed85Martin Sjölund- Fixes for code generation of scalar arrays (now works for boolean arrays in simulation context)
6da3c54d7Pavol Privitzer- QHP/TestRedCellsTotal.mo ... another model to be translated to C#
8c37dd320Pavol Privitzer- C# codegen update for OM Workshop - C# functional code in RightHeartStarling.cs
44586a388Jens Frenkel- Bugfix: tearing algorithm - add new variable kind STATE_DER in DAELow to differentiate between State and der(State)
fb7ef482cBjörn ZachrissonAdded some functions used by MC back end
8634e48a5Martin Sjölund- Fix for sample(startTime,i). Now doesn't generate events unless time >= startTime, as expected.
d3b57e14aPer ÖstlundFixed elaboration of built-in function 'integer' when the argument is an Integer.
a449c966aPer Östlund- Fixed vectorization of types extended from base types to also work for matrices of any dimensions (bug #1119). - Extended the VectorizeExtendedType test case to also test this fix.
685cda8deAdrian Pop- fixes for 3.x annotations - added getNthInheritedClassIconMapAnnotation and getNthInheritedClassDiagramMapAnnotation for retrieving annotations placed on extends.
a9540c8b4Adrian Pop- hopefully faster/better Util.listReduce
8fdc9e199Adrian Pop- fixes for enableSendData
5e00c55ebMartin Sjölund- Fix for instantiateDaeFunction when the input is fully qualified and the function exists within a model, not a package. + Use the non-fully qualified name - the same we used to get the function type.
e769ade03Per ÖstlundFixed bug #1161, where 3*(2^p) was 'simplified' to 3*(p^2.0).
7c7db5fabPer ÖstlundAdded dereferencing of the the filename string pointer in read_input, so that you get a meaningful error message if it fails to open the input data file.
159bb3219Martin Sjölund- Added c_runtime/fortran_types.h + Contains only fortran_integer - the same size integer as the ones used by the DASSL solver. - Updated solver_dasrt.h to use fortran_integer instead of long. + Fixes some of the new 64-bit issues. + Also updated functions that were used by this function. + Updated code generation for the new function defintions. - The testsuite now runs on 64-bit machines (except some MetaModelica tests)
8312a2ab8Jens Frenkel- tearing implenetation: check if tearing succeed, make negative entries from IncidenceMatrix positiv to get a working matchingAlgorithm
8a291c9f8Adrian Pop- more info on how to generate .project in README-OMDev-MINGW.txt
315ef962dJens Frenkel- tearing implenetation: first codegeneration version works
a3c36dca9Peter Aronsson-Small bugfix for instantiation of derivative functions.
b3ca929a2Rickard Lindberg- Moved generation of makefile to templates - Added skeleton for new function needed by simulation library
472c3db44Martin Sjölund- Added scope name for valueblock scopes + Used to be NONE(), but that causes Env.getEnvPath to fail
a8e27f48fPeter Aronsson-Fixed bug with infinite recursion of derivative functions (found throught the derivative annotation) -Removed "koning lookup" functions that hasn't been used for years.
0cd7fe726Peter Aronsson-Partly fixed instantiation of recursive functions (need to check in so others can continue working on MultiBody). Still some problem left with invalid cache.
2c0a4210fBjörn ZachrissonAdded some functions to Exp.mo
acad42702Rickard LindbergCleaned up template code and fixed incorrect name for some structs.
da1f06649Rickard LindbergChanged C# template to reflect string-to-Path data structure change.
6bd879f93Martin Sjölund- Added failtrace when Env.getEnvName fails (related to MetaModelica problems in the testsuite)
c791e318cReino RuusuA basic implementation of the built-in function delay(). Lacking features: * Handling of delayed events * delayMax is ignored * Checks for some improper usage
2c0af657cMartin Sjölund- Added better unparsing of valueblocks for debugging purposes.
a5def2cfaReino RuusuBugfix: DDASRT sometimes jumps to a root at t > tout when INFO(3) = 1. Affects cases where outputSteps < 0.
ffda0c5c9Reino RuusuFixed a bug in DAEUtil.traverseDAE2 that prevented changes to component contents being returned.
c2ccd28faBjörn ZachrissonRemoved debug prints from operators
934520162Jens Frenkel- Bugfix: tearing selection algorithm: array variables
23ea83370Martin Sjölund- Fixes bug in codegen of record constructors after PA's changes.
48ca649baPeter Aronsson-Fixed a couple of the failing tests from earlier checkins. Testsuite closer to 100%
73787f477Björn Zachrissonminor changes how functions and records are treated. Added some functions.
b52ccc41cJens Frenkel- mistake in writing
6addc17cfBjörn Zachrissonadded a crefAppend function for Exp.mo
df3697fccJens Frenkel- Bugfix: tearing selection algorithm, replace tearing variable also in scalar part of equation - print more information with tearingdump
f91ad1ba1Peter Aronsson-Updated backend after changes to ClassInf.State.
8e242dd09Peter Aronsson-Fixed bug introduced in -r4876 (size({{1,2},{3,4}})) stopped working. Testcase for this exists in backend at MathCore.
1b9246414Peter Aronsson-Added instantantiation of functions in Static. All used functions (inluding derivative annoation functions) are now instantiated and added to the DAE. The code generation will now (TODO in OpenModelica backend) be generated only from the DAE, and not Absyn. - Changed ClassInf.State to contain Absyn.Path instead of string - Added option envCache, to turn on and off cache during runtime (used in cevalfunc) -Changed DAE.ET_COMPLEX to contain Absyn.Path instead of string
2997533f7Martin SjölundJava Interface: - Fixed CLASS_EXTENDS typo for AstAsCorbaString - Added better error messages for ModelicaRecord.java
e4cd64999Per Östlund- Fixed cevalBuiltinSizeMatrix to work on non-constant matrices. - Fixed elaboration of non-constant for-loop range limits. - Added testcase DiagonalBlock for bug #1149.
09d0305b7Adrian Pop- updates to testsuite/libraries/multibody/* models as now we don't have the (s) modifier not found in Real error. - updates to Makefile.common.w32
ffc7b11baAdrian PopCodegen.mo - got rid of unused import Inst;
7a31d5d0bJens Frenkel- implemented first tearing selection algorithm
a245334e2Martin SjölundJava Interface: - Optionally send types when creating records from Map (required for uniontypes to work correctly)
0b7986a40Per ÖstlundFixed bug #1153, sum of arbitrarily sized vector.
297d56780Martin Sjölund- Codegen.mo, for external functions: + Previosuly, if the order of outputs are different from the one in the call mapping, it would write the results in the incorrect order. + Added testcase for external C functions, where 4 outputs are mapped in different orders. + External Java functions use the same mapping as C functions, and do not need testing. + Test cases were also added for external FORTRAN 77 functions since the code path for code generation of F77 functions is different. However, the code actually calls the same function as in the C example (the function prototype is identical).
43d95e967Martin Sjölund- getAstAsCorbaString now clears the buffer before traversing the AST. + For example, loadModel would store some old messages in the buffer even after the call was completed.
214e8bdaePer Östlund- Added case for empty vector range expression in reductions. - Added missing changes to testsuite makefile for Reductions testcase.
58068227ePer ÖstlundImplemented code generation of reductions to fix bug 1136, which involved: - Extending Exp.expContains to handle reductions. - Fixing elaboration of reductions in Static.elabReduction. - Adding code generation for reductions to Codegen. - Adding testcase 'Reductions' in mosfiles.
8ee35c6c3Peter Aronsson-Huge change of DAE.DAElist. It now contains a list of elements and an avltree for functions. Almost all inst functions and static.elab functions now return DAE.DAElist, so all functions used by a model gets picked up and added to the DAE. (The next step, which is not implemented yet, is to populate the avltree with all function instances used by the model) -Removed dead (commented) code in several places. If you miss this code, you will have to go back in the svn log an search for it! - removed Inst.initVarsModelicaOutput since we now keep modifier bindings as modifiers and not generate equation for them.
79297638fAdrian Pop- updated Copyright (c) text to 2010
4da961159Adrian Pop- updated Copyright (c) text to 2010
9631a8d4eAdrian Pop- updated Copyright (c) text to 2010 - replaced some of the leftover BSD licenses.
47ee4772fAdrian Pop- updated Copyright (c) text to 2010
6e792bae6Adrian Pop- updated Copyright (c) text to 2010
346787ca9Martin SjölundBugfix for ticket #1154 - Add Inst.addComponentsToEnv to all components before elaborating any mods in records. + We now use instClassExtendsAndExtendsList instead of record-specific code for handling SCode.EXTENDS. + Added testsuite/record/RecordModifications.mo to test this. - Removed Lookup.buildRecordConstructorVarLst. + Lookup.buildRecordConstructorClass does almost the same thing. + Added Lookup.buildRecordType, a helper function for the functions that previously fetched varLst and created type based on that. - Inst.splitElts and Inst.instClassExtendsAndExtendsList were made public so they could be seen from Lookup.
bd4af310fPer Östlund- Fixed reductions so that they are constant evaluated in classes when possible. - Added testcase to test constant evaluation of reductions (ConstantReductions.mo). - Added missing reduction function 'product'.
ea7dce604Rickard LindbergRemoved dependency on Codegen module.
0da6b88e8Rickard LindbergRemoved dependency on SimCodegen module.
46be79ea6Rickard LindbergRemoved createContext functions in favour of constants.
ff40e66d0Adrian Pop- add a space between the comment and the variable
e641ff168Per ÖstlundTuple-tuple assignments are now broken up into separate equations in DAELow, so that the number of equations get counted correctly.
3ffb189daMartin Sjölund- SCode.printClassStr: Added restriction to the generated string (useful when debugging)
ff64c6659Rickard LindbergCleanup.
8f3ee28a3Per ÖstlundAdded case for Real iterators in elabCallReduction2.
392e0193aPer ÖstlundChanged how elaboration of multiple iterators in array constructors are handled (multiple iterators give multi-dimensional arrays, not a flattened one-dimensional array).
c59eb1ddfPer ÖstlundChanged some function prototypes to be partial (ReductionOperator in Ceval).
427befcecAdrian Pop- implemented instance hierarchy during instantiation Inst.updateInstanceHierarchy is called during Inst.addComponentsToEnv2 to build the hierarchy. - Inst.handleOuterWithModificationOnInner is called in Inst.instElement to lookup the modification from the inner element in the instance hierarchy. - adapted Inst.checkMultipleElementsIdentical to remove the inner modification when checking if the element is outer (not really 100% correct but for example Dym doesn't complain about modifications on outer components). - adapted Inst.modificationOnOuter to complain only if the modification on outer is NOT the same as the modification on inner. - used System.getHasInnerOuterDefinitions() to guard expensive functions in Inst. - replaced InstanceHierarchy.emptyInstanceHierarchy with InstanceHierarchy.emptyInstHierarchy everywhere
1151b6d8aAdrian Pop- display the annoying DAELow.lower2 errors only when given the +d=failtrace flag.
cbf845cbbAdrian Pop- functionality to strip the last prefix implemented in Prefix.prefixStripLast. - this function is used during instance hierarchy lookup by peeling of the furthest rhs prefix and appending the component name when searching for the inner component in the instance hierarchy.
56a70f387Adrian Pop- fixes to DAEUtil.selectBranches to select until a non-constant boolean is found.
4d6479e97Adrian Pop- moved Static import to the protected section
499892d63Adrian Pop- added HashTable to hold the instance hierarchy (IH) used during Inst. The new IH is called InstHierarchy.
b7d88e122Adrian Pop- minor text editing, updating 2009->2010
3d81a4e90Adrian Pop- set the external flag that signals the presence of inner/outer definitions in the translated model.
4dd5824c1Adrian Pop- print inner/outer prefix in SCode.unparseElementStr as it gives more information during displaying of error messages.
ce1956368Adrian Pop- implemented side effects to set/get the information that a model contains or not inner/outer definitions. - using this functionality we can speed up some of the Inst functions as we skip doing them.
281189149Adrian Pop- added isInner and isOuter functions
e3e23f759Adrian Pop- fixes for ticket #1155: http://openmodelica.ida.liu.se:8080/cb/issue/1155 final parameter Real eAxis_ia[3](each final unit="1") = {1,2,3}; wrongly gives: Error: Variable eAxis_ia: trying to override final variable - added tests for this fix: testsuite/mofiles/OverrideFinalTest.mo
c0a271756Rickard LindbergGot rid of listLength* since listLength is now supported in Susan.
844de37eaRickard LindbergRemoved unused code.
41cf9f6d4Rickard LindbergChanged the way numOutVars and numInVars are calculated.
e25503c81Rickard LindbergRemoved unused methods.
67ec71ac6Martin Sjölund- Static.mo: Fixed parsing problem (RML accepted it, but the OpenModelica parser gave a proper error).
d22a55a77Rickard LindbergFail if inverse algorithm for single variable.
0dcb4f718Per ÖstlundImplemented constant evaluation of reduction functions max, min and sum.
4c5f13257Martin SjölundJava Interface: - When handling uniontypes, we now add the _UT suffix so we can compile e.g. Absyn.mo definitions to a jar-file on the Windows platform. - Removed the dependency on Sun JreSocketFactory (we won't need long CORBA timeouts if we send long strings through files anyway).
1684f11b9Stefan Brus-fixed a bug with inlining of array functions
32c26a853Martin SjölundJava Interface: - JarCreator: Check if file already exists, and throw exception. + This happens on Windows systems if uniontypes and records have the same case-insensitive name. - DefinitionsCreator: Fix for when OPENMODELICA environment-variable doesn't contain a trailing directory-separator. - The Java testsuite now generates files in the proper order, but doesn't work on Windows due to case-insensitivity issues.
e4a2a8db1Martin SjölundJava Interface - Added parse(Reader) to ModelicaOption + Fixed the Java testsuite - Added testcase for getAstAsCorbaString(filename) + Uses TankPID.mo, and a very short Java function. + Could also use CORBA to get the string, but that requires a little bit more code. It's better to pass the string using filename anyway, since 32-bit architectures are limited to 16MB strings in OpenModelica.
e961ada05Martin Sjölund- Added Dump.mo changes missing from r4793
94d5c2f52Adrian Pop- changed DAE.convertInlineTypeToBool to DAEUtil.convertInlineTypeToBool as there are no functions in DAE.mo!
a484f686aMartin SjölundChanges to the OMC-Java interface (Java code) - Added OMCStringParser.parse(File f) functions. - Made parse functions for Record, Array, Tuple public. - Fixed ComplexTypeDefinitions for generic types.
08650f45aMartin Sjölund- Added getAstAsCorbaString(filename) API call. + It prints the string to file and returns a boolean instead of a really long string.
8e6439d5aBjörn ZachrissonSome restructure of code, moved functions from DAE to DAEUtil (inline functions)
9862bdcd8Peter Aronsson-Added boolean to DAEUtil.transformIfEqToExpr to only "constant evaluate" if-equations and not rewrite to if-expr. That way MathCore can use the functionality too. -Fixed bug with for iterator over complex subscripted componentrefs, see testcase ForIterator2.mo
7eb1e7fdaPer ÖstlundCleaned up the handling of for loop iterators in Cevalfunc, Inst and Static a bit.
88b81f394Björn ZachrissonFixed "bug" from #4760, #4760. Connect.mo; statement: "source := Util.listReduce(Util.listMap(cs, Util.tuple33), DAEUtil.mergeSources);" caused the kernel to run out of memory in large models.
e20b3621cBjörn ZachrissonSome code cleanups.
4476d2035Rickard LindbergFixed bug in generation of init_fixed array: some variables should be marked as not fixed if they have initial equations.
5238747a5Pavol Privitzer- Susan can import listLenght() function; ... generally any one-ret-value function with variable types can be imported - C# codegen stub added ... +d=tplmode,CSharp switch must be set to invoke the generator via translateModel() script function - a new test model - RightHeartStarling.mo - the first candidate from our lab to be in-browser running model that is fully automatically translated from Modelica source - complete error reporting in parser, including type-views
5515343dfPer ÖstlundFixed vectorization of types extended from base types.
7795faafdRickard Lindberg- Generate record declarations - Generate CREF_QUAL - Fixed bug in type generation: generate struct instead of modelica_struct
90d237521Rickard Lindberg- Implemented external objects (constructor, destructor, alias) - Changed typesExpType (deprecated) to Types.elabType - Added defines for string alg. vars. - Fixed incorrect extern function name - Added templates for ET_COMPLEX type
c53074d4bAdrian Pop- update the readmes to point to the new location of ModelicaLib.tar.gz https://openmodelica.ida.liu.se/svn/OpenModelica/installers/windows/VC7/Setup/zips/ModelicaLib.tar.gz
9d06bfc6dPer ÖstlundImplemented support for multiple iterators in array constructors.
30d21f6f2Per ÖstlundFixed Exp.makeSum so that it works correctly if the second expression is zero.
44b7e3cb5Martin Sjölund- Changes to the OMC-Java interface (Java code) - Replaced the ANTLR grammar for parsing the CORBA communication + Max heap size reduced by 66% (down to 1GB from 3GB on 64-bit platforms) + Time to parse reduced to 33-50% of the original time taken (depending on typed or untyped parsing) + Added proper typed parsing also for list,tuple and Option - Added the TypeSpec.java class to represent complex types fully - Added missing JreSocketFactory - Parsing an AST with type information is no longer done in two phases - Updated the templated to generate jar files to reflect the changes above - MSL 3.1 can now be parsed fully, with full type information + Typecasting needs to be done for tuples due to Java weaknesses, but no longer using ModelicaAny.cast - standard (T)myTuple.get(0) should work. + The string is possibly too large for 32-bit OpenModelica to handle. However, it is no longer manipulated within OpenModelica, so it might accept it. Needs to be tested.
54f13f76bMartin Sjölund- Fix Dump.mo asCorbaString for FOR_ITER_FARG, SUBSCRIPT and CREF_QUAL.
721bdef0aRickard Lindberg- Implemented value blocks - Fixed bug in wild assign - Added special case for builtin max
687d2e225Martin Sjölund- Changed to the OMC-Java interface (Java code) + Added printToBuffer to all ModelicaObjects so toString() is almost instant even for large strings + Changed the interface of ModelicaRecord slightly - We now cache field names and types in order to reduce the memory consumption of an AST by ~75% - All records now need to have all fieldnames and types set when created + OMCorba.g now generates line and column numbers for all errors
22d1238f5Rickard Lindberg- Extracted algorithm and equation asserts - Ignored (in some cases) discrete equations that also appears in zero crossings - Fixed incorrect component ref for a SES_NONLINEAR - Fixed incorrect expression for a SES_RESIDUAL - Implemented STMT_TUPLE_ASSIGN - Added more special built-ins: abs, String
6fc9d70a4Martin Sjölund- Dump.mo: Fixed asCorbaString output for Absyn.ANNOTATION and Absyn.SUB.
c4b84a40eMartin Sjölund- Util.mo: Added missing replaceable type X subtypeof Any where missing.
cb615466aRickard LindbergAdded genDiscrete to context and used it (set to false) in one place.
e8d8848ebMartin Sjölund- Main.makeDebugResult: Rewrote this with a proper guard, so it doesn't try to append large strings several times in a row if we are going to discard the result anyway. + This makes it possible to send large strings over 64-bit CORBA (even though it times out right now).
eb715d74ePer ÖstlundImplemented built-in functions div, mod and rem. rem might not be correct yet though.
854515c41Adrian PopConnect.mo - added origin information to connections sets - got rid of some extra listMap by writing specialized functions so it should be a bit faster now.
f7c14b928Per ÖstlundFixed expansion of array constructors on the form 'r[i] for i in 1:n'.
cbb570c83Adrian Pop- added DAE.ElementSource to all records in DAE.Element. - changed all the models accordingly.
890fa49c4Adrian Pop- fixes for additional equations generated from a conditional component which has condition false and contains a connector which has a flow component. - now the MultiBody elementary models DoublePendulum and Pendulum are balanced!
a53758e3cRickard LindbergFixed so a few more external functions can be generated.
0afa3305dMartin Sjölund- SCode.restrString: Added metarecord and uniontype restrictions.
638cab116Björn Zachrissonadded rollback on error messages generated inside cevalfunc function.
8ca01ec31Rickard LindbergRefactored templates: moved things around and renamed some templates.
78619b9c5Rickard Lindberg- Added new function function_updateDepend needed by runtime - Just a copy of function_updateDependents (for now) - Implemented basic infrastructure for external functions
9014d4f02Peter Aronsson-Fixed bug (really fixed this time ;) on trimChar. Moved it to platform independent impl. first in file.
8b25b3829Peter Aronsson-Forgot to change linux implemenation for trimChar bugfix.
afebc0d4dMartin Sjölund- Absyn.mo: Changed some componentReg to componentRef. - Dump.mo: Uses the more proper NONE() instead of NONE when dumping AST. - Dump.mo: Added a new way to dump a program (AsCorbaString suffix), which prints it like Values.Value is printed. This way, we can parse the AST in Java. + Note: This could not be fully tested since there seems to be complications with large strings even on 64-bit machines (segfaults for big strings sent over CORBA).
3e0153cc1Peter Aronsson-Disabled balancedChecking since it depends on backend.
22d8090a4Adrian Pop- added debug printing of model balancing activated with +d=checkModel added function Inst.checkModelBalancing similar to checkModel. If it doesn't work for MathCore we can comment it out. - send the connection graph to functions (also return a new one): + Inst.changeOuterReferences (also faster implementation by sending in sources/targets) down to Inst.changeOuterReferences2/3/4 + Inst.handleInnerOuterEquations + Inst.instConditionalDeclaration - updates due to Connect.INNER replaced by Connect.INSIDE Connect.OUTER replaced by Connect.OUTSIDE - for now disable the generation of equation from overconstrained connectors - some comments added/updated.
f7f72f968Adrian Pop- added a multiplication function for a list of optional integers.
9f3acb3efAdrian Pop- added commented-out debug_show_depth(2); for faster debugging due to only 2 level display for variables.
5ae4d2a1aAdrian Pop- minor comment in elabModValue
580ca1982Adrian Pop- handle also stringfied component refs in crefHaveSubs. - added sizeOf(expType) that returns the size of an ET_ARRAY or ET_COMPLEX the size is the number of the *scalar* components in the array or complex (record).
29b087252Adrian Pop- update the complex equation counting for now just multiplying the same equation as many times as the size of the record (in lowerComplexEqn) - more debugging added - more compact display of DAELow
b89e6e1e8Adrian Pop- renamed DAEUtil.removeEquations to DAEUtil.splitDAEIntoVarsAndEquations as is a better name. Better use of the local variables in this function.
7ebe70406Adrian Pop- minor text alignment
d970a19b9Adrian Pop- dump more information during connection graph collection and braking. - disable the connection braking for now.
1f3f5580dAdrian Pop- minor changes and the possibility to dump the DAELow representation during checkModel
6f8e08912Adrian Pop- use failure(cevalIsExternalObjectConstructor(cache,funcpath,env)) instead of (cache,false) = Static.isExternalObjectFunction(cache,env,funcpath); to guard against ceval of external functions.
832fd1b99Adrian Pop- replace Face.INNER/OUTER with INSIDE and OUTSIDE to not create confusion - renamed function getInner* -> getInside* and getOuter* -> getOutside* - rewrote some of the comments.
75bc477a0Martin Sjölund- Fixed Print.printBuf scaling issues (it saved the length of the buffer, but did strlen(buf) regardless; major issues when reaching strings as short as 5MB).
0566cbb6dMartin Sjölund- Added systemimplmisc.cpp to Linux makefiles. - Fixed the testcases in the testsuite that assumed floor() returns an integer.
57ef3e1d8Willi Braunfixed some bugs, so that all tests from test-suite should pass.
3196f8e44Peter Aronsson-Fixed memory access violation bug in System.trimChar -Changed floor to follow specification (Real->Real, NOT Real -> Integer) -Changed System.stringReplace implementation to c++ (in systemimplmisc.cpp) (This was probably not necessary since bug was in trimChar, but impl. is now much more readable ;)
9c7c2f095Björn ZachrissonAdded a strip subs function for crefs.
0b40f5888Rickard LindbergImplemented more non-linear equations.
660cc45adWilli Braun- DAELow.mo: + add Expressions of when condition to IncidenceMatrix to sort them in right order.
0b28521beRickard LindbergGenerate mixed systems.
99d36edceMartin Sjölund- partialInstExtendsList is now used (copy/paste made partialInstClass use the regular instExtendsList instead; it was probably just a little bit slower). - Inst.classdefElts2 now returns 2 lists. One with only constants so these can be explicitly instantiated (this was commented out due to breaking ClassExtends3.mo). - Inst.instElement now tries to update the mod one last time before instVar (this is because the mod that comes from the baseclass was untyped).
9444fdfb6Martin Sjölund- Removed unused input from Mod.lookupIdxModification2
b092bd977Martin Sjölund- Mod.elabModValue now won't try to ceval expression dependent on variables (they should always fail). - This makes debugging easier since expressions that aren't meant to be ceval'ed won't appear in failtraces. - Static.elabExp now generates C_CONST for MetaModelica NONE, NONE() and {}. - Static.elabExp will generate correct const-ness for SOME(exp) and list(e1,..,,en).
5c5c6ffc2Björn ZachrissonSome updates for Cevalfunc, it works better but still not perfect.
6c701bd30Adrian Pop- implemented DAEUtil.selectBranches that is used to select the if equation branches if the conditions are Boolean literals (true/false). This is needed because Connections.isRoot is replaced with true/false at the end of instantiation.
74a0a89adAdrian Pop- ConnectionGraph.mo: + faster handling of overconstrained connections when the connection graph is empty: no DAE walk! + handle expression: (NOT Connections.isRoot(A)) + gather operations into one new function: ConnectionGraph.handleOverconstrainedConnections which is called from Inst module when we reach the instantiation of the top level class
0e115b4b5Rickard Lindberg- Implemented extraction and generation of linear-systems and nonlinear equations
2e1b94024Martin Sjölund- Changed SCode Option baseClassPath to Option>. - When extending a class, we also add the SCode.Mod to the baseclass, so we instantiate the correct class later on. - Added a testcase that sets the dimensions of a matrix in the extends modifications.
b146db63fRickard Lindberg- Extracted more algorithm equations - Made debug message easier to notice in compiler error message output
e1748f51bRickard Lindberg- Fixed spelling error in ZEROCROSSING generation - Updated template scalarLhsCref - Fixed type bug in range-for generation - Added template daeExpCrefRhs - Added support for binary operations: ADD_ARR, SUB_ARR, and DIV_ARRAY_SCALAR - Changed ASUB template case to match how Codegen works - Changed the way relations are generated: non-simulation specific relations are now generated in simulation context
451b84e17Martin Sjölund- When instantating a partial package, force partial instantation instead. - When partially instantiating a partial class, strip out all non-package elements.
585900a39Martin Sjölund- Moved around in Ceval.mo to only generate a failtrace if all ways to call a function fail (that is, after we try the interactive ones)
d62f92a93Per ÖstlundAdded warning when trying to apply non-array modification to array component without 'each'.
da92dc071Per ÖstlundReplaced error message with fail trace.
2cfd380e5Alexey LebedevFix for the bug: http://openmodelica.ida.liu.se:8080/cb/issue/1074?navigation=true
b3cf9a00aMartin Sjölund- Fixed Static.elabBuiltinDiagonal - real arrays will now generate RCONST(0) instead of ICONST(0)
8fcbe1f77Rickard Lindberg- Changed DAE.ComponentRef to SimVar in zeroCrossingsNeedSave
fa6edcf25Rickard Lindberg- Refactored how types are generated - Updated template for CAST
3d2f53576Rickard Lindberg- Fixed a bug (hopefully correctly) where too many AddEvents were generated - Implemented STMT_WHILE - Implemented STMT_ASSERT - Implemented STMT_WHEN - Implemented LUNARY - Implemented MATRIX - Implemented special build-in functions promote and transpose
800f6d6f9Martin Sjölund- Fixed testcases ClassExtends{1,2,3}.mo
95fc799a0Björn ZachrissonChanged deriving function to be fullyQualified.
89f815065Adrian Pop- removed the not needed extra parentheses (these only parse in mmc but not in omc).
5bf1a887eAdrian Pop- updated OpenModelica back-end to agree with the new DAE.FUNCTION definition. - 3 tests (testsuite/mofiles/ClassExtends*) fail due to changes in Inst.partialInstClassdef
ba9150821Björn ZachrissonChanged DAE.FUNCTION to a more generic structure for external and normal function as well as derivatives of functions. Construct in front end derivative information for functions.
7f64269edPer ÖstlundAdded initialization of record members by rewriting generateAllocOutvar, adding generateAllocRecord and modifying generateAllocOutvars and generateAllocOutvarsExt in Codegen.
5efac6341Rickard Lindberg- Changed array lists: stateEquations became the two lists allEquations and stateContEquations - Ignored when equations in equation lists - Changed to simulation context in a few places - Used context in more places - Generate for loops - Added templates typeStrFromExp and typeStrFromOp - Generate some asubs
ecf703f1dMartin Sjölund- Added boolean inline to DAE.T_FUNCTION. - Changed elabCallArgs to use this flag instead of doing an extra lookupClass (which causes infinite recursion in Modelica.Media models). - Removed instElementList from partialInstClassdef (the classdefs are added to the environment and may be looked up anyway). - Added testcase ClassExtends3.mo.
e841f6e2eJens Frenkel- enumerations works now - ToDo: replaceable enumerations in models with equations/algorithms containig explicit enumeration literals does not work because the componentRef have to be replaced and the numbers of enumeration litterals from both enumerations should be equal - ToDo: do not replace enumeration litteral with it value inside loops - update workplan-status
98253ef34Björn ZachrissonAdded System.addToRoots to SCode.translateAbsyn2SCode. Also corrected crefEqual from commit #4678. Now it also works on DAE.CREF_IDENT()
f91a13285Jens Frenkel- enumeration as loop var work now in algorithm sections - ToDo do not replace the enumeration literals with it integer value - start work on replaceable enumeration
83c48e67fRickard Lindberg- Extracted algorithm equations to templates - Added context to templates
5c2795511Rickard Lindberg- Changed variable name type from String to DAE.ComponentRef - Handle array variables - Added arrayCref to SIMVAR to support #defines of arrays - Extended algStatement template to handle some array operations - Implemented daeExpSize template - Temporarily disabled generation of function record declarations - Cleaned up some code
8b5f207adMartin Sjölund- Merged instClass partial function case with the generic case.
26dbb0f37Martin Sjölund- Added missing operators to Exp.typeofOp
ef16eafc3Adrian Pop- calling an function via an instance (world.gravityAcceleration) now WORKS! - Static.elabCallArgs intercepts the world.gravityAcceleration, and then copies the function (World.gravityAcceleration) and dependencies (World.gravityAccelerationTypes) from World into the current scope with new name that prefixed by the instance name: "world.gravityAcceleration" and "world.gravityAccelerationTypes"
8b65b69e5Adrian Pop- Inst.addCachedEnv moved to Env.addCachedEnv (is more natural to be in Env) - Static.transformModificationsToNamedArguments (does what the long name say) - Lookup.lookupType2 reordered cases - Codegen - generate modelica_integer and integer for enumeration type. testsuite/mosfiles/Enum8.mos will fail because of this. To be fixed later. - more comments in Inst - Exp.crefEqual was checking for equality: + by comparing idents/subscripts by using equality(n1, n2) instead of true = stringEqual(n1, n2) + as a last resort (last case) by *converting* the crefs into strings and doing string comparison on them??!! + I changed all equality(n1, n2) into true = stringEqual(n1, n2) and improved the last case to handle stringified crefs better: CREF_QUAL(x, CREF_IDENT(y)) will be equal to CREF_IDENT(x.y).
61a43304aAdrian Pop- added DAEUtil.findAllMatchingElements to split DAE into inner/outer variables in ONE walk.
6c982deb3Adrian Pop- added DAELow.COMPLEX_EQUATION which is populated from DAE.COMPLEX_EQUATION and DAE.INITIAL_COMPLEX_EQUATION - no handling of DAELow.COMPLEX_EQUATION yet.
5a842502fAdrian Pop- added unsafe external functions in System.mo: + System.listAppendUnsafe (not used) + System.addToRoots and System.getFromRoots to implement global variables.
ae0951dd0Adrian Pop- replaced tabs with 2 spaces to correctly display code in any editor.
5804453e7Adrian Pop- handle DAE.COMPLEX_EQUATION and DAE.INITIAL_COMPLEX_EQUATION in VarTransform.applyReplacementsDAE - if no case in VarTransform.applyReplacementsDAE matched just move to next, DO NOT FAIL. Modelica.Mechanics.MultiBody.Elementary.DoublePendulum did not flatten because VarTransform.applyReplacementsDAE failed. - Use DAE.ET_OTHER instead of DAE.ET_REAL in VarTransform.applyReplacementsDAE as otherwise the correct type is not copied from the replaced expression.
885a53fa7Jens Frenkel- work on enumerations for loops in algorithm sections - DoTo: for e in Enum.e1 : Enum.en - bufgix SimCodegen: print enumeration as integer for T_Complex ComponentRefs - use modifiers like start, fixed, ... for enumerations and derived enumerations
fad153448Jens Frenkel- fix a bug in Inst.instBooleanClass - redisign of enumeration instantiation
0a047f267Adrian Pop- faster Exp.crefEqual
bf401eab2Martin Sjölund- Add Makefile dependencies to Compiler/runtime/dynload.o
f8629e2f8Martin Sjölund- Disable failtraces that are not useful.
c3f3c64f4Martin Sjölund- Updated partialInstExetendsList to do the same thing as instExtendsList. - Changed splitElts, listSelect in those functions to use a new splitClassExtendsElts instead (for performance).
0cdf52475Adrian Pop- implemented SCodeUtil.translateSCodeModToNArgs which translates *derived* class modifications into named function arguments and also prefixes only the CREF_IDENTs from the binding expressions with the given prefix.
7c2f4edf4Adrian Pop- small code formatting and a bit more explaining
88338397cAdrian Pop- fixed a typo.
9481e5ac5Adrian Pop- use $OPENMODELICAHOME/bin/Compile all the time and if it fails, just report the error. - this will get rid of g++: No Input Files errors
48a8c6e0cAdrian Pop- added Absyn.joinPathsOpt function
edad6ce53Rickard Lindberg- Generate _functions.cpp file from root template - Added TODO comments - Added some notes
6b6602ecfMartin Sjölund- Rename namemods when renaming classes due to CLASS_EXTENDS. - Fix so that you may extend from classes that use CLASS_EXTENDS nodes. - Added testcase for this.
0f714d853Peter Aronsson-Added function Error.getNumErrorMessages that returns number of messages in queue with severity 'Error'.
e5d74c784Martin Sjölund- Fixed class extends by renaming the extended class and creating a new one extending from the old in the same scope. - We can now put proper modifications in the class extends node (they get elaboated in the correct scope). - Only the toplevel class extends are expanded (not inherited). This bug will be fixed in a later commit. - If the modifications on the extends node in the base class modifies the class we extend using class extends, those modifications will have higher priority. This is bug will be fixed in a later commit.
e581e161fRickard Lindberg- Added dummy SimEqArray record for debugging purposes - Extract array equations - Generate DAE.Exp.ARRAY - Added listLengthExp function
43823efb1Adrian Pop- regenerated SimCodeC.mo and SimCode/SimCodeC.mo to make everything compile
fbee63241Per ÖstlundImplemented unary subtraction for real arrays.
6debd503cPeter Aronsson-Fixed bug in getMessagesStr in errorext.cpp
ee75cbf60Per ÖstlundChanged scalar types to array types where suitable in Static.operators, and changed Codegen to reflect these changes. This was done to fix vector operations that didn't work.
e0d6dfb4cRickard Lindberg- Generate empty functions file so that compilation will succeed (generation of function code failed for one test case) - Replaced DAELow.Equation with SimEqSystem as a step to support array eqs
7282df048Per ÖstlundAdded RTOpts.debugFlag guards to lessen overhead when debug output isn't used.
7ba64e97eRickard Lindberg- Fixed incorrect array name - Fixed incorrect switch variable name - Added support for constant subscripts - Generate removed equations in output functions - Added (temporary) generation of makefile to be able to run testsuit - Removed print statements since they interfered with rtest in testsuit - Fixed order of equation lists (they were reversed) - Fixed order of variables (now sorted by index) - Fixed indents to match << (and >>) in templates
dcb493624Pavol Privitzer- a first complete Susan lexer/parser error reporting implementation it is usable primarily with MDT in Eclipse ... reported errors are marked directly in code editor when the .tpl file is opened
b02679ac0Martin Sjölund- Static.operators was speeded up by a factor of 4. We now save a lot of the lists generated as constants. - Fixed compiler warning in meta_modelica.c - Fixed the BuiltinArray.mos testcase on 64-bit Linux
2d7ef2687Peter Aronsson-Added HashTable6.mo : (cr,cr) -> exp -Fixed bug in Errorext.cpp: getMessagesStr (no comma's between messages) -Added some functions to Util -Added VarTransform.replaceExpRepeated that iterates replacement rules until it converges.
fe23f7391Rickard LindbergRefactored.
9a521d4f0Rickard LindbergChanged vim mode line.
fe0dd266fRickard LindbergRestructured templates so there is one template per function.
492071837Rickard Lindberg- Added function function_onlyZeroCrossing - Worked on function call template
262b17aa6Per ÖstlundFixed bug in runtime system that caused result data for some points in time to be written twice. Fixed test case BouncingBall2, because it depended on the above bug.
bac1ba587Martin Sjölund- Added MetaModelica arrayLength, arrayGet, arrayCreate, arrayList, listArray, arrayUpdate, arrayCopy, arrayAdd. All use arrays as the underlying datatype. The array type should be considered mutable.
0dcfbbbfePer ÖstlundCleaned up Debug.mo a bit.
5be57311dPer ÖstlundRemoved Exp.subscriptToInts, a duplicate of Exp.subscriptsInt.
5f7b4cc7bMartin Sjölund- Added initial support for MetaModelica array, including initial versions of arrayCreate, arrayGet and arrayLength (based on a list implementation which needs to be replaced).
c95b66405Per ÖstlundFixed license in Algorithm.mo, which had been the victim of a runaway search-and-replace.
d99bda16fPer ÖstlundAdded initial support for while- and for-loops in class algorithm sections.
906085362Per ÖstlundAdded expInt function.
fe9751f69Rickard LindbergImplemented function checkForDiscreteVarChanges.
da1f466ddMartin Sjölund- Ceval: asin, acos, atan, atan2, cross and log10 implemented and enabled
9ecbc5cc6Rickard Lindberg- Implemented function_updateDependents - Implemented function_when - Handle logical binary operations - Added template daeExpCall
e6f391d48Martin Sjölund- Add an implementation and testcase for a (very) simple redeclare replaceable model extends (used in Media).
e456b276cAdrian Pop- use fill(...) instead of listFill + listArray
781e0e2d1Stefan Brus- atan2 added to modelica built in functions
ef57c6c2bStefan Brus- PartialFn13 now works with if expressions again - Fixed some type conversions - Added function unboxExpType to Exp
22527c8beRickard Lindberg- Implemented function bound_parameters - Refactored expression templates - Fixed incorrect names for derivatives - Fixed incorrect names for some equations - Implemented function function_zeroCrossing - Implemented function handleZeroCrossing
deffc8971Martin Sjölund- More RTOpts guards for MetaModelica cases
b6d2f3389Martin Sjölund- Renamed C runtime metamodelica_type to modelica_metatype, to fit with Codegen standards. - DAE.IFEXP now generates a temporary so it can be used with array functions. - Disabled PartialFn13.mos since the DAE.CALL of those functions have incorrect return-type, and correct code isn't generated.
92530c823Martin Sjölund- Disable printing "Types.matchProp debug: match prop.". Saves about 1m (20% total time) when trying to flatten double pendulum.
0a57d39b9Adrian Pop- guard the MetaModelica lookupType in Static.elabCallArgs with true = RTOpts.acceptMetaModelicaGrammar(); as lookup is rather expensive. - in Static.elabBuiltinSmooth when smooth(0, expr) just return expr.
d6a8386e2Pavol Privitzer- Susan indentation with '<<' is now determined by indentation of the line where is the '<<' that is, in examples: << text >> << text >> case PATTRN then << text >>
ccc48e383Martin Sjölund- Fixed code generation of _ := exp (was limited to valueblocks, but MetaModelica allows any expression there). - Added 08_pam to the testsuite
2b925f822Martin Sjölund- Also look for zero-crossings in DAELow.ARRAY_EQUATION.
fcdba014fRickard LindbergUpdated script that generates code for code generation test.
aba721c7aRickard LindbergAdded Influenza model for testing code generation.
d7fd083e7Rickard LindbergCleaned up TrapezTest.
e577d204fMartin Sjölund- Refactoring: DAE.VALUEBLOCK(body) changed from DAE.Element to list.
e878da3e6Martin Sjölund- Reverted the re-addition of the outdated configure script for Java.
250a7532eAdrian Pop- merged the template code generation from OpenModelica/branches/TemplateCodeGen into OpenModelica/trunk - below is the history from the branch
9b3fe6db5Martin Sjölund- Moved record constructor-specific code from Static.elabCall to Static.elabCallArgs for efficiency.
6f6802803Martin Sjölund- Fix code generation for cross.
de00dbf2aBjörn ZachrissonFixed weird Lookup "bug".
51e93afe3Martin Sjölund- Prevent generating a TYPE_SPEC_REAL_ARRAY_ARRAY; generate TYPE_SPEC_REAL_ARRAY instead
7ab9693baAdrian Pop- record construction vectorization in Static.elabCallArgs + testsuite/mofiles/RecordConstructorVectorization.mo + this is used in Modelica.Media for FluidConstants. - disabled stdout printing Type mismatch in equation and changed testsuite/mosfiles/ArrayDivError.mos to match - check the +s and +showErrorMessages command line parameters and display an error if they are wrong - display the error message for the flags just once in Main.mo - added Debug.trace[ln] to print the errors unguarded by debug flags and used this functionality to print some of the failtrace guarded by true = RTOpts.debugFlag("failtrace"); This way is faster as no more building of strings happen. - beautified code and added some comments; got rid of some really old commented out RML code - added check for setDebugFlags in CevalScript.mo
0275b46ddMartin Sjölund- Added runtime functions for identity matrix - Added codegen and runtime code to cast int/real matrix to the opposite kind
165423e6ePeter Aronsson-added ModUtil.makeSubscript to create a subscript from an exp.
56590bf11Peter Aronsson-Reset the modelicafilename string when failing to parse
36c766473Martin Sjölund- Removed useless messages when typechecking overloaded operators. - Added support for code generation of complex types extending basic types.
3e703b688Stefan Brus- Cleaned up some code, partially evaluated functions should work 100% now!
db722f8c5Björn ZachrissonUpdated makefiles for vs
8a55fef07Martin Sjölund- Changed Types.match{Type,Prop} to also take a boolean that controls the output of error messages. It should now be possible to ensure that errors are only printed if both "match(lhs,rhs)" and "match(rhs,lhs)" fails.
ee7fee16bStefan Brus- Function pointers and partially evaluated functions are now a default feature of Modelica (you no longer need the +d=fnptr flag or meta modelica grammar)
3d6fea626Willi BraunRevision of the euler and the event handling for the euler until now only work with "if" equations.
dc2bb27fcStefan Brus- Partially evaluated functions now work with recursive functions - Added a test case for this - Cleaned up old test cases
6b1d5dbe3Adrian Pop- set all Compiler/*.mo files to have (LF) Linux line endings, otherwise the debugger will display wrong lines.
45f2dc971Adrian Pop- made Connection.isRoot function non-constant in Stati.elabBuiltinIsRoot as otherwise it expects constant input arguments and generates errors of kind: "Error: No constant value for variable frame_a.R in scope Modelica.Mechanics.MultiBody.Parts.Body" - added ceval handler for rooted operator (non-existent in Modelica Specification but used in MSL) see more here: https://trac.modelica.org/Modelica/ticket/95 - more informative fail traces in Mod.mo, Types.mo, ValuesUtil.mo - speed up the fail traces from Types.mo (type checking should be faster now). - the fail traces from Types are now guided by "types" not by "failtrace" as they generate way too many messages that are not of interest. just add +d=types to bring the messages back. - more informative printing of enumerations in ValuesUtil.mo
ba2cea45cJens Frenkel- enumeration: remove old code
849f0f681Stefan Brus- Fixed type checking and boxing of simple types in partially evaluated functions
55011e0faAdrian Pop- g++ is now set as compileCommand in Compiler/runtime/settingsimpl.c Compiler/CevalScript.mo CevalScript.compileModel now matches for "g++" instead of "" - Lookup.buildRecordConstructorElts now selects the full modifier only if the component modifier is empty.
bb750a5faAdrian Pop- make sure .depend is created for all targets as otherwise you get an include error (and we would need to have .depend in Subversion).
f608fff15Adrian Pop- beautification of dumped code in Dump.mo. + no more space before ";" in Real x ; + print the comment of the partial derivative definition: x = der(func, b, c) comment;
5c4933265Adrian Pop- fixes for array modifications given on builtin attributes in functions input parameters. This component defined in a function now instantiates: input Integer sequence[3](min = {1,1,1}, max = {3,3,3}) = {1,2,3}; See testsuite/mofiles/Sequence.mo
eaeff48d4Adrian Pop- reverted 2 changes from revision 4547 as otherwise ALL of the (simulation) tests fail + settingsimpl.c -> compileCommand set to "" + Lookup.mo -> modifications on record components All tests go now. We'll discuss these changes and see what we can do about them.
d3aef01f0Björn Zachrissonminor changes for windows make files.
caf5f2185Stefan Brus- Fixed compiler error in cruntime
16e196b2cBjörn ZachrissonSome changes for merging with MathCore
bbe646125Stefan Brus- Fixed use of partially evaulated functions in functions - Added a test case for this
dedf4aa94Stefan Brus- Partially evaluated functions now works in algorithms (see PartialFn8 testcase for example)
549a40ff9Martin Sjölund- Don't recompile the walker unless something changed.
787ea3535Martin Sjölund- Removed the need to set CLASSPATH when building under Linux. - Updated configure script to not check for CLASSPATH (it only checks that Java exists and can load the provided antlr). - Updated the lexer/parser makefiles to run with parallel jobs. - Warning: Due to RML creating and using .srz-files from all imported packages, parallel execution of make may in some rare cases fail. Running make again will work because the other process will have cached the srz-files. It is possible to generate all srz-files in advance at the cost of efficiency (you may not do this is parallel, and it's not necessary if the number of jobs=1). - Warning: RML drains a lot of RAM. Running "make -j" launches an unlimited number of jobs. This will eat about 20GB of RAM and possibly crash the system, so don't do this. Max 1 job per GB of RAM is recommended.
b6fed0411Martin Sjölund- Updated Compiler and c_runtime Makefiles to support make -j (for parallel execution of jobs). absyn_builder is forced to use max 1 job since those Makefiles haven't been updated yet. - omc_release and omc_debug now first create mo-files and signatures before reloading the Makefile in order to ensure that all dependencies are updated. - Removed unused imports.
508d2a907Stefan Brus- Fixed a bug that prevented use of function references outside functions - If you want to use function references or partially evaluated functions, compile with +d=fnptr
7a44414cbAdrian Pop- added operator (function)? to lexer/parser/walker but is commented out. we will uncomment it when is needed. - added operator (function)? to Absyn and SCode (not used as it doesn't come from the lexer/parser/walker)
30ba5e9f9Martin Sjölund- Removed public import {Exp,Types,Algorithm} so compilation of OMC is faster
f8003469aMartin Sjölund- Refactoring: Moved Exp.*** datatypes into DAE.mo - Removed Convert.mo workaround (at least the duplicated datatypes; DAE.VALUEBLOCK needs cleaning up) - Fixed bug in previous commit (PartFn stuff)
617d5d697Peter Aronsson-Finally (puhh) fixed bug with forgetting to reset modelicafilename when parse error occurs.
af02c758fStefan Brus- Function pointers now work in both Modelica and MetaModelica - Partially evaluated functions now partially works!
59f2f41eaAdrian Pop- the new MetaModelica compiler discovered this type error: DAE.T_COMPLEX -> Exp.ET_COMPLEX
ee86faa16Jens Frenkelenumeration function Integer, works only for Enumeration types not for variables
f4f091845Martin Sjölund- Refactoring. Exp.Type -> Exp.ExpType (and all types in ExpType are prefixed ET_ to make it possible to put the type in DAE.mo).
6937e3152Martin Sjölund- Refactoring the Types.mo types into DAE.mo
8e0bfda42Martin Sjölund- Added ValuesUtil.mo
6631e6468Martin Sjölund- Added missing file Compiler/runtime/SimulationResults.c. - Fixed dynload.c from the Values.mo update (forgot to make clean).
2392e33d5Martin Sjölund- Refactoring Values.mo into Values.mo (AST with minimal dependencies) and ValuesUtil.mo - Removed Exp.Value and part of the workaround in Convert.mo
2bf802185Martin Sjölund- The System.readPtolemy* functions now exist in SimulationResults.mo (and System.mo no longer depends on Values.mo).
a7f27afd3Adrian Pop- Fixes for extends of type which is an alias of array type. The problem was that the case in Inst.mo at line 6695 didn't match because of the annotation list! Example: type Alias = Real[3]; type Orientation extends Alias; end Orientation;
d0a117d34Eric MeyersOn OS X only look for IOR in /tmp folder
8eca17deeEric MeyersUpdated OS X to use Qt frameworks
7e2b270eaJens FrenkelBugfix stringnames in getName function
bf92899bbJens Frenkelenumeration string(enum.e1) = e1
c43b3a4dcMartin Sjölund- Refactoring of Algorithm.mo (the datatypes moved to DAE.mo, to simplify the other refactorings later on)
8a1ebd70bJens Frenkel- enumerations in packages can be found, typo corrected
29cb7600fAdrian PopMerged revision 4500
ab325893fMartin Sjölund- Fixed Types.elabType for empty records.
fe8cf758cMartin Sjölund- Refactoring of DAE.Type - Removed DAE.Type (DAE.VAR already has a Types.Type since it's required for connectors and MetaModelica stuff). - Added DAELow.Type - a type that has truly been lowered (only INT,REAL,STRING,BOOL,ENUMERATION are allowed in DAELow).
66c3202cfMartin Sjölund- Do not add equations if we bind a record variable using a ceval'ed record constructor. - Do not change variability of record fields from const to param if the parent is declared param.
eb964f10cAdrian Pop- update the READMEs to document the /trunk/Compiler/VC7 move to /installers/windows/VC7
450277a04Adrian Pop- updates for Visual Studio projects - transform if equations after we print the DAE.
bb3620988Adrian Pop- make the c_runtime compile with Visual Studio
59f2594c4Martin Sjölund- Refactored DAE.mo to DAE.mo (AST) and DAEUtil.mo (functions) - Fixed bug that r4481 introduced (mosfiles/simulation3.mos failed)
b2fe2b861Jens Frenkel- Bugfix replace "<" and "y" with W3C standard "<" and ">"
eaceb5d43Jens Frenkel- Bugfix index from input_names was for all zero
3e17f7f4dMartin Sjölund- Split lookupType into 2 functions in order to call lookupClass2 only once.
ca39fb600Adrian Pop- parse equality(x := y) as is used in Main.mo
90c054d4bJens Frenkel- enumerations part 2, new c-code generation, testcases
20c43af29Adrian Pop- fixes the last commit to compile on windows - include windows.h in systemimpl.h - moved dynload.o before libc_runtime.a in Makefile.common.omdev.mingw as otherwise you get undefined symbols
25ef9e842Martin Sjölund- Refactoring of System.executeFunction. Moved to DynLoad.mo. The implementation has a stub for those who wish to compile OpenModelica without support for dynamic loading and execution of functions. - No Makefile was update to use the stub.
8580ae4d1Martin Sjölund- Removed the algorithms and mods on the result element in the record constructor (they didn't work if the field was parameter or constant). - Added a new kind of function in the DAE, DAE.RECORD_CONSTRUCTOR, so we can handle records that contain parameters or constants. - Fixed a bug that caused Values.RECORD to have ClassInf.RECORD("package.name") instead of ClassInf.RECORD("name"), which is in use elsewhere.
c91fbdbd9Adrian Pop- correctly build the expandable connector restriction - moved expandable to class restriction rule
3f94773a2Adrian Pop- got rid of the compiler warning
ddcdd1df4Jens Frenkelenumerations part 1 - what does not work - redeclaration - Integer(Enumeration) - String(Enumeration) - ... (perhaps more i have not yet finished all enumeration testcases)
471694924Peter Aronsson-Added listMap5
e9380c164Stefan Brus- Absyn.PARTEVALFUNCTION is now turned into Exp.PARTEVALFUNCTION by static
3d566d12dStefan Brus- Inlining of functions now fully functional!
3f3299581Martin Sjölund- Fixed Algorithm.makeIf to type-convert expression to Boolean (so it works for boxed Boolean values, e.g. when calling function references). - 06_advanced added to the default testsuite. Tests polymorphic functions, e.g. listMap0, listMap1.
bd76da346Martin Sjölund- Convert all expressions when boxing a regular record (fixes nested records) - Fix mmc_unbox_record (off-by-one error)
3548bd97bMartin Sjölund- DAE.makeEquationsFromIf: Bugfix for if equations with several elseif clauses.
55f96dc83Martin Sjölund- Exp.T_FUNCTION_REFERENCE is now divided into _VAR and _FUNC (because the C-code generated from the CREF needs to be different). - With +g=MetaModelica, we now also generate a function with only boxed in- and output (which is used by all function references for simplicity). - Boxing of records is now performed (although it sadly fails for nested records due to ClassInf.RECORD/etc only containing a String, not a Path). - Unboxing of records works fine. Couldn't be tested on nested, boxed records.
16bf93617Stefan Brus- Inlining of functions now works for functions called from within other functions - Inlining is performed on functions that fill these requirements: - One algorithm statement, which assigns values to its output - Contains annotation(Inline = true) somewhere
71131e849Martin Sjölund- Convert.typeConvert support for DAE.FUNCTION_REFERENCE. - Added Types.POLYMORPHIC to the list of boxed datatypes. - Fixed a problem where code generation didn't filter function reference variables if they were duplicated. - It is now possible to use some higher-order polymorphic functions. The problem is functions that have in- or output non-boxed (Modelica) types. Integers work "best", since they are simply shifted 1 bit to the right in its unboxed state (compareInt still works, as does addInt, multInt returns a value 2x too high, etc).
6196edd7cStefan Brus- Annotations in between equation items are now preserved in SCode.
39812863cMartin Sjölund- Force UNIX line endings in the Eclipse editor
5a665dc60Stefan Brus- Comments and annotations on components are now preserved in SCode format
55a9d42aeMartin Sjölund- Fixed declaring constants like list in packages using implicit instantiation
d36d7fd0eMartin Sjölund- Fixed Types.matchSuperType for METARECORD/UNIONTYPE (was moved from Types.subtype to typeConvert) - Added Uniontype14.mos to check for this bug - Added 03_symbolicderivative to the default testsuite since it now works in OpenModelica
217c9ee4cStefan Brus- Annotations are now preserved in SCode format in extends clauses
e6df086fbMartin Sjölund- mmc_unbox as macros. - Changed in cevalScript/SimCodegen generation of functions. - We now generate all metarecords of referenced uniontypes instead of only the ones created by a METARECORDCALL. This is necessary due to the possibility of external functions (lexers/parsers) generating these structures. It kinda worked before, but was a bit of a hack. - Codegen.getFunctionCalls(exps), etc renamed to getMatchingExps(exps, matchCalls).
304946a5bStefan Brus- Missing file from previous commit
5b30565b0Stefan Brus- Comments and annotations in equations are now preserved in SCode format.
a71ed1b05Jens Frenkel- improve comments in DALow.
63c2dd0c4Jens Frenkel- rewrite sign function as macro, add testcase Sign in mosfiles
b633a62d2Jens Frenkel- move sign into utility.c
14a438acaStefan Brus- inline annotations are now preserved as a flag in Exp.CALL
3acf26824Adrian Pop- reverted the changes from revision r4419 as some of the models in the testsuite fail. - disabled Java testing for now as there are still some problems with it.
6885dd26aJens Frenkel- implement sign function (maybe another place is better?)
1f072ef1cPeter Aronsson-Merged -r 4222 from MathCoreOSMC branch (connect two-dimensional array of components)
33cc1a007Martin Sjölund- Changed CevalScript to generate C code that looks more like the simulation code. We now put all the headers before the bodies so we can have cycles in call graphs.
41eb0ed67Stefan Brus- Equation annotations are now preserved
9acf9641eStefan Brus- Fixed encoding issues
599ba4097Martin Sjölund- Hopefully fixes strcmp not returning only {-1,0,1} on some platforms (it messes with the testsuite)
48d4dd46aAdrian Pop- due to changes by Martin S. to Compile.bat copying of MinGW to build directory is no longer required!
74237d375Martin Sjölund- Spelling error
be197f442Martin Sjölund- Adding modelica_java.jar to the repository (so JDK isn't required to compile OpenModelica) - Adding c_runtime/java_interface to the default make system. (If no JDK is installed, modelica_java.jar is simply copied to /build/...)
5c0ab0401Stefan Brus- Annotations are now preserved in SCode format - make clean now removes .sigx files
50f7aa645Martin Sjölund- Fixed f2c.h (2006 release of f2c fixed a 64-bit bug) and matrix.h (used long int* instead of integer* defined in f2c.h) - 64-bit Linux can now be used to pass all testcases
984737a2bMartin Sjölund- JarCreator: Transforms backslashes of paths in zip-files to frontslashes. That way both javac.exe and java.exe work properly in Windows. - testsuite/java/JavaExt.java: Escape the string so backslashes are parsed by OpenModelica. - testsuite/{java,records}/rtest: Changed to an rtest that is not parallelized since Windows dll's hate that. (Also updated the mos-files since the old one requires // endResult - testsuite/java/Makefile: Better Windows-support using JAVA_HOME - c_runtime/java_interface/Makefile*: Better Windows-support using JAVA_HOME
eb6bf4b9eAdrian Pop- made parser/walker/Absyn.mo/Dump.mo to handle failure and equality in the algorithm section - do not dive into DERIVED classes when querying internal classes in Interactive.mo; is not correct to dive into derived classes and if we do then we run into stack overflow; Example: lookup of Env.Env in Env.Env.
291553543Adrian Pop- merged revision 4399 from branches/MathCoreOSMC
755aaf5d4Jens Frenkel- sort non scalar variables and known variables befor indexcalculation; aim: code generation write all elements from the non scalar variable in one memory block
0c02ce183Martin Sjölund- Fixed the testsuite Makefile (missed a backslash at the end) - Merged getDefinitions Interactive API function from the Bootstrapping branch - Fixed some of the Java-related issues OMC has in Windows (don't try to fprintf to stderr before calling abort() - in Windows the string will not get printed) - It will be necessary to set JAVA_HOME to a JDK if you want to run the java testsuite in Windows. If you call "java" directly, it will load Java from system32, which is a JRE and not a JDK (which means you can't call javac from it). Why Sun decided to install both JRE and JDK by default when downloading a JDK, I do not know.
31de232edMartin Sjölund- Using Ceval.cevalCallFunction record constructor instead of cevalFunction - Enabled testsuite/records as a default test to run as it now works
a0b6f70afAdrian Pop- merged latest modifications from branches/MathCoreOSMC
125f8d420Jens Frenkel- Bugfix Build with MSVC
533986e1eMartin Sjölund- Updated the Makefiles to only run rml2sig/rmldep-new.sh if the file changes (the .sig-file does not always update in order to avoid re-compiling all files depending on the source unless the interface changes). We now also generate a dummy .sigx file which only tells us when rmldep was last run. If you change a lot of files (over time, lots of re-compilations), but never change the function interfaces, this can reduce the compile time by over a minute.
dc62174b5Martin Sjölund- Enabled the MetaModelica testsuite by default since the tests now work (even in Windows) - Merged Bootstrapping branch Revision: 4372 "Some changes for polymorphic function references" - Inst.addComponentsToEnv: Re-added capability for TCOMPLEX types to be instantiated - Inst.instEquation2: Added capability for equation-matching of MetaModelica types (needed because record modifications bind the result using equations) - Types.valuesToMods: Uses typeofValue and valueExp when converting records (they handle metarecords as well) - Added instructions for the MetaModelica Course
414b3ff0bMartin Sjölund- Fixed MetaModelica crefs to function names containing underscores
c515ae914Martin Sjölund- Merged revisions 3852-4247 of the Bootstrapping branch - Support for external Java functions - Typed Java interface to OpenModelica functions using CORBA - Improved MetaModelica list,tuple,option,uniontype implementations - MetaModelica matchcontinue expressions - MetaModelica function references - Partially evaluated functions - Improved Record handling - Improved handling of NORETCALL functions (mainly used in MetaModelica) - Note that the MetaModelica, Java and Records testcases are not fully working after the merge
6e592ada4Jens Frenkel- Bugfix Bug 1110
018192a62Martin Sjölund- Merged c_runtime from Bootstrapping - Fixed simulation_result.cpp performance issues (<< endl flushes the buffer, \n does not) - Added the Java-specific runtimes (C and Java) - Changes to read_write.{c,h} for record-in-record, NORETCALL and MetaModelica types
db1701a71Adrian Pop- renamed OpenModelica1.5.0 to trunk
538b765dbAdrian Pop- yacclib.h SHOULD not be included anywhere and yacclib.c should NOT be used as these functions are now part of rml.h and librml*.a. Get a new RML/MMC from Subversion or from OMDev. - i renamed yacclib.c and yacclib.h to .txt to make sure this never happens again.
763b6e4dbStefan Brus- Fixed linking of the lpsolve library and added instructions to the linux readme file
2b5128845Adrian Pop- fixed the problem that two or more plot commands end up plotting the same plot file by generating a unique tmpPlot_NN.plt file name for each plot[X], plotParametric[X] command.
04860073eAdrian Pop- fixed the problem that two or more plot commands end up plotting the same plot file by generating a unique tmpPlot_NN.plt file name for each plot[X], plotParametric[X] command. - gcc4 seems to have a problem with include directories that contain / at the end so i removed the trailing slash from includes.
e7272b41dAdrian Pop- escape string literals when generating C code as they might have \n in them which will fail to compile with a syntactic error. - added Util.escapeModelicaStringToCString to Util.mo
ae99f504dAdrian Pop- support for Modelica 3.x graphical annotations.
93b8dd81eAdrian Pop- fixes to XMLDump.mo
8d349dbdcAdrian Pop- latest modifications from MathCoreOSMC branch
41f29df80Adrian Pop- latest modifications from MathCoreOSMC branch
4aaf6b1aaAdrian Pop- changes by Alexey Lebedev [alexey dot lebedev at equa dot se] to support implicit range in for loops - more tests for loops
7ae9668efAdrian Pop- Merged revisions 4270 and 4269 from MathCoreOSMC branch:
7cfdabc4aAdrian Pop- more fixes so it compiles.
aaf8dcde8Adrian Pop- fixes so it compiles.
275ea7335Adrian Pop- merged revisions 4262, 4264, 4265 from MathCoreOSMC branch!
5cac62371Adrian PopA lot of modifications: + release 1.5.0 + merged all other changes from trunk/* that happen in the meantime! + now omc can load libraries when called from command line directly. ./omc file lib1 lib2 ... libN + merged changes in the MathCoreOSMC branch + updated the Setup project, included a link to SimForge, added omc-mingw.exe to be used on Vista if needed. + updated DAEQuery.mo, XMLDump.mo + added more help text when running omc from command line.
aba7c1f65Adrian Pop- merged from trunk/tools Revision: 3981 Author: adrpo Date: 01:50:27, den 29 mars 2009 Message: - small updates to the RML to MetaModelica tool ---- Modified : /trunk/tools/rml2mod/absyn.rml
34269d781Adrian Pop- a first script for compilation using MSVC.
cfd4a45a4Stefan Brus- new .onb files
9e4cbd266Adrian Pop- fixed the getIconAnnotation! In Static.mo I added a SPECIAL case in elabCallArgs to deal with graphical annotations The code doesn't go via Lookup.lookupType as the Line record has [:,2] unknown sizes and when trying to instantiate it it fails! - changed in Static.elabNamedInputArgs in the second case the flag (checkTypes as true) to just checkTypes. - do error check pointing when dealing with annotations! - added more tests in testsuite/mosfiles/interactive_api_classes.mos as the previous file was WRONG!! - added noevalfunc flag to disable the Cevalfunc module - added usedep flag to enable the Interactive.getTotalProgram (we disable it for now until replaceable packages are OK). - corrected some errors in Constants.mo and added a "uniquely" named package so that we know when we are elaborating a graphical program! - added cases for ENUM and ARRAY in Types.valuesToMods - added ENUM case in Exp.typeString - fixed a bug in Lookup.buildRecordConstructorElts ( which wrongly got rid of component modifications) - put back the strip in the omc_release/Makefile.omdev.mingw - minor code beautification
47fbaa055Stefan Brus- More Linux fixes
1a757bd3eStefan Brus- Now compiles in Linux
61a4d8d2fStefan Brus- added some forgotten files to the makefile to make compilation work
c836f4303Adrian Pop-forgot this file.
9c03fd452Adrian Pop- fixes for dynamic loading.
942fbdbc8Adrian PopA branch for OpenModelica 1.5.0 release Some tests still fail, is going to be fixed soon.
ef98c4c33Adrian Pop- added the missing change_rettype
f44bc872dPeter Aronsson-Improved efficiency of cache by a dirty hack: making cache an array of one element which is set as side effect, so cache is updated even if function fails.
990c218dcPeter Aronsson-Fixed compile error for visual (round undeclared)
adffa72cbPeter Aronsson-Fixed bug in Env.Cache (looked up wrong class in cache)
c2b727e58Peter Aronsson-Fixed memory consumption problem in unit checking code.
6430db584Peter Aronsson-Added defineunit language extension to flat_modelica_parser too so flat parsing works. -Fixed rounding error in rationalizing reals.
44b666264Otto TronarpCopy the reply msg before releasing the clientlock.
3685564e9Otto TronarpIntroduced a clientlock on Linux / OS X, as we have on windows.
9da573026Otto TronarpFixed upper/lower case error.
1be2b6544Peter Aronsson-Added register of unit weights for unit parsing to handle individual weight settings for each component.
ad4fc72f3David BromanAdded accumulateWeight and made "adding two units" working.
e24a618c6Peter Aronsson-Major work on unit checking with pretty printed units. Not complete yet.
6d93f29beDavid BromanAdded commit to unit parser.
ac374458dPeter Aronsson-Fixed bug when building unit terms with empty store (disabled checking).
f14f22b81Peter Aronsson-Implemented support for linspace() function in frontend. -Fixed bug with slicing in modifiers in several sub-component modifiers, e.g. PositivePin p[2](i(start={1,2})); -Fixed bug in prefixExp on general ASUB expressions
5f53d7f35Björn ZachrissonUpdated text for error messages
3aa7d5453Björn ZachrissonDocumentation updates
9a3623d7cPeter Aronsson-Added error messages for if-equations.
d4132221fBjörn Zachrisson* miner updates for pretty printing of modifers * removal of dead code
8ceeaeb25Peter Aronsson-Fixed bug in ceval of div() and rem() -Added realCeil to System.mo
36cba3741Peter Aronsson-hanged package name Math to MMath to avoid conflicts with std include header math.h
a9c7a262aBjörn ZachrissonSmall fixes for last commit. Changed where double-modification control is triggered(from SCode to Inst.instelementlist)
bd8382195Otto TronarpUpdated makefiles for osx/linux.
aa18de721Peter Aronsson-Added rest of implementation for unit checking, including pretty printing of units using Mixed Integer Programming based on lpsolve. Unitchecking is deactivated by default. To activate set option "unitChecking" in OptManager to true.
206ddd47bBjörn Zachrisson* Changed ErrorExt to rollback from bottom instead of top(removed earliest msg before) * Implemented constraining class (for redeclaration) * Pretty print functions for Modifers * Redeclare checking, modifiers. * Check for multiple modifiers in same scope on same component * Improved order of variables for UpdateComponentsinEnv/UpdateCompeltsMods
3572dac3fDavid BromanFixed problems regarding unit vector length (they had different sizes) and added the member function isBaseUnit().
888174007Björn ZachrissonFixed bug with pre(variable with type extending base type), this should work now. Added a function for instantiating a partial class in inst module.
937d39455Björn ZachrissonAdd free(printbuffer) to Print module. Previous printBuffer=NULL, never freed the memory allocated.
0fcf03a2bBjörn ZachrissonFixed the print buffer function 'int increase_buffer_fixed(int increase)' Now it actually increases the buffer, previous implementation did only allocate 'increase' amount of space.
acc05607fBjörn ZachrissonSome changes for Mathmodelica communication with kernel.
ee69dce1aHannu Niemistöadded exception for equalityConstraint in dependency analysis
bf8cb72b3Peter Aronsson-Fixed so MISSING_INNER_MESSAGE error is not produced if option "checkModel" is true. This option should preferably be set when instantiating class for checkModel.
76545d0eePeter Aronsson-Added preventing reporting error for parameter without binding when it is declared with outer.
d58761f02Adrian Pop- updated parser/AST to handle the annotation at the end of the extends clause: extends name [class_name] [annotation]
68b120393Adrian Pop- fixes for doubling the dimension of alias to array type
b7b7aecbbAlexey LebedevAnother attempt to fix the bug http://openmodelica.ida.liu.se:8080/cb/issue/1098 -- this time, without adding extra equations, only modifying parameter bindings.
90e5afd29Peter Aronsson-Fixed small bug in simplification of if-expressions.
879bb910fAdrian Pop- fixes for aliases to array types: type Alias = Real[6]; Alias x; // this variable had [6,6] dimension instead of correct [6].
dfb92aac1David BromanAdded the code for handling unit checking. The code for parsing unit strings is implemented in C++ and is located under directory "runtime". The actual checking (including unit inference) is implemented in file UnitChecker.mo.
a5467e7ecFilippo DonidaThe duplication of the dumpEquation method into dumpResidual equation method was necessary to prevent errors caused by the usage of the DAELow.equationToResidualForm call. The problem was that equations having non-scalar right hand side where not correctly translated into residuals. To make an example, the residual of the equation: x = y - z where not correctly calculated, thus obtaining x - y - z (instead of x - (y -z)). More investigation is necessary to understand if the DAELow.equationToResidualForm method makes the hypothesis of having scalar right hand side equations or not (comments of the method are generic).
a4e775727Björn ZachrissonFixed connection of complex array types ; connect( arr1[1].conectorVar, arr2[7].secondConnectorVar)
aac2cc787Björn Zachrissonminor changed for MC backend.
7aa38dc20Hannu NiemistöAdded comments to all functions in ConnectionGraph package.
d6006aa8bAdrian Pop- fixes for type alias on an array type. The declaration/usage of the form below now works: type Arr = Real[3](each min=0); Arr x = {1,2,3}; - constant evaluation of enumerations values in relations - small beautification of the code
4f2051f3dBjörn ZachrissonFixed error messages and error reporting with partial classes and dangeling modifiers.
e31ba5fa6Peter Aronsson-Added a function to print Types.EqMod -Added better failtrace print of elabArrayDim
fc4c837b2Otto TronarpFixed crash on OS X with omniORB.
d3c4037fbPeter Aronsson-Added error message for circular equations (typically x=x) and logging of selected states (both used by MathModelica backend). -Inserted option to OptManager "logSelectedStates" which is by default turned off. -Implemented getNumMessages that returns the number of messages in the message queue.
b90064785Björn ZachrissonFixed built in function sum([:]). Now also works for complex types.
c96599b82Björn ZachrissonImplemented support for detecting dangeling modifiers(modifers on components that does not exist)
22a76d325Björn ZachrissonUndid the last commit #4021 since it will make several models in the standard library to fail. This because there will be more equations then variables generated. (see Note: 4021 in Inst.mo)
7305aadfaAlexey LebedevFix for the bug http://openmodelica.ida.liu.se:8080/cb/issue/1098
7b9a75c9aAdrian Pop- first implementation of further enumeration support: + comparison of enumerations + array declaration using enumerations + array indexing using enumerations + for equations using enumerations - changes to Values.ENUM - all flattening tests go
7b063695eHannu NiemistöAdded support for Connections.isRoot. - All calls to isRoot are replaced by true or false in its own phase after instantiation (Ceval was too early). This phase is implemented in ConnectionGraph and called from Inst.instProgram. - Some special case handling is needed in Static and Lookup, because all builtins have been so far in root environment and there were no support for builtins in virtual packages like Connections. - Bug fix in ConnectionGraph related to potentialRoots
d18bf5805Hannu Niemistöadded dummy implementation for isRoot builtin
e4932237cFilippo DonidaFunctions were missing when printing the xml representation of the model with the dumpXMLDAE method. Fixed.
0289c348eBjörn Zachrisson- Inst.mo: small fixes to instantiation of a single constant in a package - Util.mo: added listFindWithCompareFunc, selectAndRemoveNth, listMap8 - VarTransform.mo: added dumping functionality for variable replacements - optmanager.cpp: small changes to some flags
36a3f622cHannu Niemistöremoved some debug prints
18480ba08Hannu Niemistöcreates a zero array with a correct dimension for equalityConstraints
8db8fb377Hannu Niemistöfixed incorrect usage of hash table in ConnectionGraph
9a44af28ePeter Aronsson-Fixed bug in unconnected flow equations not begin prefixed.
2e8d85357Peter Aronsson-Added System.removeFile() that uses remove() from stdio.h
acb4f6ad4Peter Aronsson-Added error message for matching in initialization problem. (Currently used in MathModelica but is probably required in OpenModelica as well).
fa8f3e1e4Alexey LebedevFixed the function Static.elabBuiltinTranspose2.
b66d08b52Alexey LebedevFixed the function Static.elabBuiltinTranspose2. This function looks the same in MathCoreOSMC branch, but the errors with transposition do not appear there. I don't know why.
4edcf8c93Björn Zachrissonmissed closing ');' on last commit.
f6e4d7257Björn Zachrisson* Implemented support for instantiate a single constant in a package
75d2645bcFilippo DonidaWhen dumping array, vector or matrix variables the index of the variable was not printed. Fixed.
416d03930Adrian Pop- small updates to the RML to MetaModelica tool
84b019decBjörn ZachrissonRemoved debug printing from commit #3974
ab01fe392Björn ZachrissonChanged name from Absyn.componentRefStr to Absyn.printComponentRefStr to co-exist with Exp.printComponentRefStr
f43106736Hannu NiemistöConnection graph population and breaking algorithm. Current version doesn't work probably because equalityConstraints are lost in elaboration. Modification: - Refactored many instantiation methods to have ConnectionGraph.ConnectionGraph as input and output parameter. - Added Types.EqualityConstraint into T_COMPLEX - Inst.connectComponents contains special case for connections between components having equalityConstraints - Inst.instEquationCommon contains special cases for Connections.branch, Connections.root and Connections.potentialRoot - ConnectionGraph.mo contains the loop breaking algorithm
a20f1e272Peter Aronsson-Added function DAE.getProtectedAttr. -Added function Util.listMap4
7015599edBjörn ZachrissonForgot to remove debug line. #3963
ec116d9c5Björn ZachrissonUpdate for last check in, file comparison
d21cde74eBjörn ZachrissonImproved file comparison on windows.
a9691770bPeter Aronsson-removed debug-print in valueString.
8dd494547Peter Aronsson-Added enumeration to valueString function.
a18c0f9b9Erik FriskFixed bug with {} in the exportDAEtoMatlab function
30af5d3e1Peter Aronsson-Fixed bug in System.trim
d73218ed0Peter Aronsson- In DAE:mo made ppStatementStr public. - In Env.mo made avlTreeAdd public (avlTreeGet was already public). - Added compiler option "noCse" to OptionManager (Specific option for MathCore backend, but other backends that in the future implement CSE (Common Subexpression Elimination) might also want to turn it off (similar as to turning tearing off).
7ccaad022Adrian Pop- somehow I deleted the name of elabBuiltinDer and I put it back now.
968380df0Adrian Pop- fixed indexing of matrices with dimensions more than 20 by handling the code generation for simple Exp.ASUB expressions
d88e3e109Adrian Pop- fixed vectorization of: matrix = pre(matrix); - Now flattening of the model below using ModelicaAdditions.MultiBody works. Thanks to Joerg.Wangemann eads net for reporting the bug and providing the model! model TestBodyFreeFall import ModelicaAdditions.MultiBody; MultiBody.Parts.InertialSystem inertialSystem; MultiBody.Joints.FreeMotion freemotion; MultiBody.Parts.Body acstructure(m=1, I11=0.1,I22=0.1,I33=0.1); equation connect(inertialSystem.frame_b, freemotion.frame_a); connect(acstructure.frame_a, freemotion.frame_b); end TestBodyFreeFall;
af63d534cBjörn ZachrissonMinor cosmetic details of output for error handling on derivate function, der(...)
945d80b4fBjörn ZachrissonFixed error messages (rollback/deleteCheckpoint) Both in ErrorExt.cpp(bug) and in Inst.mo(structural error).
e4f19c625Otto TronarpIt doesn't work to compile with debug_print in release on win32.
8b6cc5e11Adrian Pop- fixed an error when counting variables in DAELow.mo (excluded RECORD) - fixed vectorization of reinit(arr1, arr2) - fixed vectorization of matrix = pre(matrix)
bed21c0b9Björn ZachrissonRe added code that was removed in commit(#3905) for some reason.
a1dfceb0eBjörn ZachrissonRemoved a debug line from last commit(#3907)
053de6c3dBjörn ZachrissonImplemented a getPackageFileNames, which finds packages located in OPENMODELICALIBRARY path.
b53e94f14Peter Aronsson-Added constrain() with vector arguments - Added simplification to propagate noEvent operator on expressions down to relation subexpressions -Added symbolic expansion of skew function
aeb5542aaAdrian Pop- small changes to DAE.mo so that will parse using OMC.
91eef4a77Adrian Pop- got rid of not needed import Print from Inst.mo - added cases for handling Absyn.CLASS_EXTENDS where there are also cases for Absyn.PARTS
3b60acce0Adrian Pop- expose more of the c_runtime array interface - fixes for array iterators which stopped working after the merge - got rid of $$$ in the generated code (SimCodegen.mo) - Util. modelicaStringToCStr2 searches for "der(" instead of "DER(" - Handling some of the Exp.ASUB cases in Codegen.mo - Exp.ASSIGN now as an exp LHS instead of a component reference LHS - small fix in VarTransform.mo to be able to parse it with OMC - changes to some of the testsuite/mosfiles due to compiler changes.
78dbc0296Adrian Pop- fixes to Interactive.traverseClasses + now -traverse_classes2 failed for some of the tests is gone - updated OpenModelica tests and enabled them
85bfdbb12Björn ZachrissonImplemented support for checkExamplePackages(function for checking any Example dir in a package )
aa211028aPeter Aronsson-Minor change to Makefile.vc
142952fe1Adrian Pop- changed default dassl tolerance from 1e-10 to 1e-4
9330c62afPeter Aronsson-Added Makefile.vc files that is used by MathCore to compile frontend related stuff. - Updated some tests
a50ecbc18Adrian Pop- continue when dasrt returns idid==-1.
dc4fd98c3Björn ZachrissonFixed reinits of arrays, now vectorizing is working.
aabaf8ad8Otto TronarpMakefile fixes for osx.
4a70374d0Otto TronarpUpdated configure
e01ffd08eOtto TronarpFixes for osx
c22a4552eAdrian Pop- fixed an OMC crash on Vista (sendData.cpp) - added icons for Plot Window (ext.exe) and OMC (omc.exe) - display the Plot Window (ext.exe) on the taskbar - updated copyright in OMShell - added .pdb files for releases: ext.exe, OMShell.exe, omc.exe to make it easier to debug crashes - fixed the last date in OpenModelica System Guide - fixed 3D_Bouncinball3D.onb - fixed OMShell runtime error at start
9714db882Filippo DonidaAdded (to the dumpXMLDAE method) the possibility to print equations as residuals, using the input parameter "dumpResiduals". Default value is false.
5d5d214c8Filippo DonidaAdded the possibility to print the incidence matrix of the DAE system. The incidence matrix refers to the original problem, before running the matching and the BLT. The choice has been implemented using a boolean input (addOriginalIncidenceMatrix). By default is false.
7f5e76b08Björn ZachrissonChanges on OM’s frontend to support Mathmodelica functionality
090d9e91dFilippo DonidaImplemented a new functionality to dumpXMLDAE functional to output additional information for solving the DAE system: - matching algorithm output and - BLT representation information.
1b53ba4a6Filippo DonidaFixed a bug concerning the reference index of algorithms within the XML file. Algorithms index starts from 0 while equations index starts from 1. Fixed.
93cde0726Otto TronarpFixed makefiles for linux
38be98db3Björn Zachrisson* Implemented support, in frontend, for mod/div/rem * Readded Adrians code for handeling zero flow equations of arrays(Connect.mo) * Change/fixed the "current variable" in error message functionality * Added support for having "der(x) := x" in algorithm section. * function/operator skew() in Static.mo * Updated rtest to current Mathcore rtest version.
81d39ee43Adrian Pop- merged the Array branch revisions 3782-3789 (see the revision comments below) - 13 tests are failing due to: + -traverse_classes2 failed + constant function evaluation seems not to work
15d69525cAdrian Pop- fixed getIconAnnotation and getDiagramAnnotation to get rid of the empty component: before: {x1,y1,x2,y2,,{graphics_elements}} after: {x1,y1,x2,y2,{graphics_elements}}
ac4190d14Adrian Pop- fixes for getIconAnnotation setting the error string.
912c1cc1fAdrian Pop- issue a warning if integers are more than could be represented on 30 bits plus sign - update 3D examples - small changes in error messages - ClassLoader will display parse information only if +d=ClassLoader
31e7fd440Adrian Pop- emit an error when trying to simulate a model that doesn't exist - fixed bug with min/max code generation: http://openmodelica.ida.liu.se:8080/cb/issue/1032
e9b8db2d0Björn ZachrissonFixed constant evaluation of REDUCTION for simple case (only one iterator)
64dc40368Peter Aronsson-Added explanation to REDUCTION
bde1eea26Peter Aronsson-Removed printing to stdout that messes up MathCore:s testsuite
cc0659662Peter Aronsson-Changed error reporting to always prefix message with the severity string (Error, Warning or Notification) -Added dependencies to some makefiles - Removed DAE.RECORD, instead use DAE.COMPLEX
22d6852ecAdrian Pop- on Linux waitForStarted(-1)!
0eaa5e652Filippo DonidaAdded a parameter (addMathMLCode=true/false) to select if adding the MathMLCode to the XML dumped fileor no (default is false).
6a21624f2Peter Aronsson-Major commit. Includes merges from revision when Adrian did the merge up to today. (MathCores r3273 to r3313)
4b3620eb9Adrian Pop- handle simple range i.e. 1:4 in Codegen.mo - fixed OMNotebook saving problem - updated for 1.4.5 release: + settingsimpl.c (getVersion) + Setup.vdproj and Uninstall.bat (new product code) + some of the DrModelica Files + the onb examples
ad1a927ecAdrian Pop- got rid of all the not-needed files for the front-end: I added not a Main_stub.mo which only does translateFile. I splited Derive.mo into 2. I also took out from the compilation: DAELow.mo, Codegen.mo, SimCodegen.mo, TaskGraph.mo, TaskGraphExt.mo DAEExt.mo. See omc_frontend/Makefile.omdev.mingw Unfortunately I had to fix the dependencies manually in the makefile, but we can fix that later.
992d112e5Adrian Pop- stubs CevalScript_stub.mo and BackendVarTransform_stub.mo - makefile entry for frontend, write frontend in the Eclipse window - this will create omcf.exe in omc_frontend and then copy it as build/bin/omc.exe - it will also create a frontend.a with all the objects.
bfdee5dafAdrian Pop- added the complete getTotalProgram in Interactive.mo - commented out the .mos files from testsuite/mathcore-mofiles/drmodelica/Makefile
383302c99Adrian Pop- splitting of Ceval into Ceval and CevalScript - splitting of VarTransform into VarTransform and BackendVarTransform - modified all the needed files for the new changes - added the new .mo files to the Compiler/Makefiles.common.*
a690e2fcfAdrian Pop- added flag +showErrorMessages to show error messages while they happen. + the flag is used in Print.printErrorBuf - disable the ClassLoader.loadCompletePackageFromMp failure message as it might happen because of directories with no .mo files. - return the entire program in Interactive.getTotalModel as we have missing functionality right now.
5b8bf5716Adrian Pop- these changes fixes a bug with simplify and failure of Prefix.prefixExp + thanks to [Jens dot Frenkel AT mailbox dot tu-dresden dot de] for providing a test model that reproduced the bug. - added +noSimplify flag and setNoSimplify(bool)/getNoSimplify() API for models that have huge expressions in them. - simplify2 is applied only if this flag is set to false (the default). - when there is no prefix is Prefix.prefixExp just return the expression, do not fail. - get rid of -Wall flag for simulation code compilation as it takes longer to compile with it.
5e7261595Adrian Pop- first compilable version! - testsuite will have to wait a bit :) right now most of the tests fail.
6c0135977Adrian Pop- updated to parse Modelica 3.0
a3474b0c1Adrian Pop- update of ModelicaXML and FlatModelicaXML to parse Modelica 2.2.2 library - moved to Visual Studio 2008 - updated the .dtd and the parsers/lexers/walkers - moved to xerces-c 3.0
0262b874eAdrian Pop- increase the memory_pool for real numbers from 10000 to 1000000. - added the new element wise operators ./,.*,.+,.^ to the modelica/flat_modelica parsers, walker, lexers, Absyn.mo and Dump.mo - handling no return equations and algorithms in Dump.mo. - beautifying the output of the flat Modelica. - beautifying the generated code. - added a no return equation and algorithm in FlatParse.mof
08da01414Adrian Pop- intermediate merging of OSMC with MathCore front-end - not compilable yet - added the new packages
e6a40d4a6Adrian Pop- fixed a mistake in Absyn.EQ/ALG_FAILURE/EQUALITY, they should contain EquationItem and AlgorithmItem as built by the parser - got rid of function removal on loading as we can do it based on build time: Ceval, ClassLoader, Interactive, Inst, Static - beautifying dumping of MetaModelica code and handle also the equality and failure equations. - remove the .sig and .srz files on clean - fixed a bug with modifications merging (see Modification6.mo) - System__hash improved plus now considering the entire string + RefinedSimpleCircuitValid.mo changes due to different hashing. - more homogeneous function documentation strings here and there - small changes to sendData, OMNotebook and ext(ernal plotter).
cee80c0e8Adrian Pop- fixed a small mistake in setAnnotationVersion
b61faaec4Adrian Pop- added better annotation handling: + annotationVersion flag to the compiler: * omc +annotationVersion=1.x|2.x|3.x + setAnnotationVersion/getAnnotationVersion API + see Constants.mo, RTOpts.mo, rtopts.c + more implementation is needed for Modelica 3.0 annotations.
16cd56e48Adrian Pop- added -fPIC to the C flags for x86_64
c6c0f85ccAdrian Pop- fflush the standard error stream as it may display differently on Windows vs. Linux. - change the CyclicPerm.mos test to sync with the new changes.
ec3db3401Adrian PopQUITE BIG CHANGES TO SUPPORT THE STREAM CONNECTORS
4e3430b86Adrian Pop- fixed a small typo
5d7faec7cAdrian Pop- on openSuse 11, gcc 4.3 includes of string.h are needed - re-link omc if when there are changes in sendData files
b9f883f59Adrian Pop- Linux fixes for new plotting functionality
173b3106fDietmar WinklerFormal clean up of all code files:
7f8e5ddccAdrian Pop- rml2sig is not needed!
c3474c85fAdrian Pop- had to rename build/lib/libQt[NAME].a to build/lib/libQt[NAME]-mingw.a so that they don't interfere with Linux Qt libs. - changed ext.vcproj and trunk.vcproj to copy the executables and *.xml to build/bin - new OMNotebook.exe and ext.exe
96403c5c5Adrian Pop- added target qtclients to build OMNotebook/OMShell/ext in Makefile.in (Makefile) - fixed a warning in mosh/src/mosh.cpp - added more documentation on how to compile the new Qt plotting and 3D functionality in README.Cygwin.or.Linux.txt
b6790dcc2Adrian Pop- due to a cleanup of the C headers in various GCC compilers we need more includes - #include added - thanks go to Dietmar Winkler for reporting this.
f4dbafc7eAdrian Pop- small change in the data sending.
1946565a0Adrian Pop- the damn Qt doesn't have the same behavior on Linux vs. Windows! - added include for QTemporaryFile - changed the waitForConnected(-1) to waitForConnected(5000)
0d48a0b58Adrian Pop- Linux modifications to sendData & Qt plotting
b4a6766c4Adrian Pop- added some visualization scripts
4c73b7bd4Adrian Pop- got rid of -D DEBUG flag from the Linux Makefiles of parsers.
6613a4d12Adrian Pop- update to Linux makefiles -O3 instead of -g for parsing and omc runtime.
aff434281Adrian Pop- update to makefiles + got rid of $OSTYPE (as we already have different makefiles for MinGW and Linux) + added -ftrace for Linux for easier testing + updated the Qt libs for Linux
5941a3172Adrian Pop- fixes for sendData.* on Linux
d2ce51611Adrian Pop- added "test" and "testmos" targets to the Linux Makefile.in. it was present in the windows mingw makefiles since some years now.
726198746Adrian Pop- seems that on some Linux distros (Fedora, Debian, ??) there was a problem with malloc not being defined. i added now stdlib include to the needed files.
ef8cfde32Adrian Pop- modification of sendData library to: + make it work better for Linux & MacOS + improve the stability of starting the external plot viewer
cf5011971Adrian Pop- fixed the broken +d=failtrace debugging facility - fixed bug http://openmodelica.ida.liu.se:8080/cb/issue/1022 pointed out by Alexander.Roehnsch dlr de. Thanks! External function with no input parameters do not typecheck!
a9bd2a78fEric Meyers- find readline on OS X (configure) - added VisualizationWidget to the ext project pro file - neutered the SoQt stuff on OSX until we get it working - added -framework Carbon and -lz to systemimpl for OS X compatibilty with Qt
2031b7faeAdrian Pop- switched all plot<->plot2 - switched all plotParameteric<->plotParametric2 - now val(var, integer) works!
8295181afAdrian Pop- workaround for the crash on exit when running on Windows Vista
8f6a76279Adrian Pop- minor correction to DAEQuery.mo (missed a ";") in when equations.
b30afe4bfAdrian Pop- fixed the problem with the order of equations in DAEQuery.mo
356b32cf9Adrian Pop- just dummy model code to be able to compile c_runtime.lib with Visual Studio
aacffe365Filippo DonidaRefactoring of the dumpXMLDAE method in Ceval.mo and Static.mo
471777b7dFilippo DonidaInitiailization of the OSTYP and OS_MSYS variables was not done. Fixed.
cc3f76074Adrian Popmoved to the old repository: https://openmodelica.ida.liu.se/svn/OpenModelica/old/pde
1aafb0d7aAdrian Pop- Linux fixes to detect MICO Corba libraries automatically using mico-config --libs - Updated README.Cygwin.or.Linux.txt and explain that MICO executables need to be in the PATH
706096c1cAdrian Pop- fixes in the Linux/Mac/Solaris/*nix part
0b0be784aAdrian Pop- updated the READMEs due to changes to: + upgrades of all solutions and projects to MSVC 2008 + upgrades of OMDev package to GCC 3.4.5 and MICO Corba 2.3.13 - got rid of some deprecated compiler/linker flags in Makefile.w32 due to MSVC 2008 upgrade - added package documentation as comment to XMLDump.mo
b29c2d4b5Adrian Pop- the new MICO Corba 2.3.13 generates includes like instead of "omc_communication.h", that's why I updated the includes in the Makefiles
c8fb92d0cAdrian Pop- updated the PATH setting in Compile.bat to the new GCC 3.4.5 as is needed by Windows Vista
69fb8b96aAdrian Pop- copied options.cpp, options.h from OpenModelica/mosh to here to get rid of the dependency - small update to read_write.c
d44e65e58Adrian Pop- added the new functionality that supports the 3D visualization in OMNotebook + new sendData functions in c_runtime + visualization API in Ceval.mo, Static.mo, Interactive.mo, Values.mo + new external functions in Compiler/runtime/, files ptolemyio.cpp and systemimpl.c
a4b3f11f2Eric Meyersfixed gcc dynamic library compiler flags for OS X
a7d141a0bFilippo DonidaThe ö char was not correctly saved from Eclipse. Fixed.
70268b96dFilippo DonidaThe header of the XMLDump.mo file has been changed according to the OSMC Public License.
502d29129Adrian Pop- replaced the incorrect CloseHandle with correct FindClose - no more asserts when build with Visual Studio in debug mode.
0677da568Adrian Pop- add -fPIC to the link flags for x86_64 bit architectures in systemimpl.c - updated Ceval.mo and DAEQuery.mo with the newest MATLAB export facility
c6f76224aFilippo DonidaAdded package XMLDump and API function dumpXMLDAE to obtain flattened, index-reduced models in XML format
0f42c0c94Filippo DonidaCorrected error in getBindingsStr (returned a '-' when field empty)
cbec6e848Adrian PopHUGE CHANGES THAT FIX A MEMORY LEAK AND REQUIRE A NEW OMDev: [http://www.ida.liu.se/~adrpo/omc/omdev/mingw/] or a new MMC/RML Compiler: [do an svn update]
84908b672Adrian Pop- changed the tolerance default from 1e-10 to 1e-6
e5b3c8f7aAdrian Pop- Fixed a funny typo discovered by H. Dieter Wilhelm. Thanks!
e9b77aeddAdrian Pop- more meaningful names for components into Env.FRAME record - gain a bit more speed by replacing Env.myhash with System.hash - some code and comment formatting and beautification - compile for tracing in debug mode in omc_debug/Makefile.omdev.mingw
ca5131db7Adrian Pop- small update of RML to MetaModelica tool.
2fa0ca43fAdrian Pop- fixes for bug: http://openmodelica.ida.liu.se:8080/cb/issue/1012 Solving of linear system of equations generates incorrect results. - the problem was the fact that continuous equations were classified as discrete and ended up in functionDAE_output2 which is never called during the continuous integration but only at events.
ea630615cAdrian Pop- fixes for Visual Studio compilation add also gcc flags: -msse2 -mfpmath=sse when compiling with VS. - add base_array* to the c_runtime.vcproj - small changes to Setup.vdproj
4f7c6db83Adrian Pop- bug fix for some crashes on Linux from Kim & Joel
6b8f3c427Adrian Pop- fixes for Linux
ce4c19e3aAdrian Pop- fixes for Linux
a01f1e10cAdrian Pop- fixes for Linux
c64657a28Adrian Pop- support for arrays of records and strings - records are now supported in the DAE representation - started support for semiLinear and delay in Builtin.mo and Ceval.mo - a bit more information on failures - removed unused imports from DFA.mo - small changes to beautify the environment printing in Env.mo - beautify the documentation for functions in Interactive.mo - got rid of unused imports in MetaUtil.mo - if trace is enabled show more info in printimpl.c - different gcc flags for different platforms in systemimpl.c - beautify the dumping of components in SCode.mo - in SimCodegen.mo changed $point to $p and $leftBrace to $lB and $rightBrace to $rB in generated C variable names to save on string memory. - small beautifying of Static.mo, Types.mo and Values.mo
82c6e31faAdrian Pop- fixes for bugs: http://openmodelica.ida.liu.se:8080/cb/issue/1008 Matrix equations in connections not flattened properly. http://openmodelica.ida.liu.se:8080/cb/issue/1009 Equations for setting vector-valued flow variables to zero in externally unconnected connectors are not flattened.
c46c7c3c6Adrian Pop- fixes for bug: http://openmodelica.ida.liu.se:8080/cb/issue/144 sample, pulse, trapezoid events where not handled correctly on x86 and x86_64 don't use the old FPU, use the SSE instructions to avoid problems with double in registers of 80 bit vs. 64 bit memory doubles.
5500a9725Adrian PopThe compiler should report more errors when running in the command line: - report parsing errors when parsing .mos files!
6c76aec66Adrian PopThe compiler should report more errors when running in the command line: - if the file given as argument does not exist report error - report errors in the parsing - fixes for bug: http://openmodelica.ida.liu.se:8080/cb/issue/1010
a6caf88b9Adrian Pop- fixes for bug: http://openmodelica.ida.liu.se:8080/cb/issue/111 "Too many points Error, could not save data. Not enought space." - now the simulationResultData is reallocated with a bigger size when needed.
921857606Kristian StavåkerImproved handling of MetaModelica high-level data structures
2e03f6f3aAdrian Pop- in Linux you get sometime linker duplicate errors for function "errmsg". changed the "errmsg" name to "_errmesg"
7f7a1eab4Adrian Pop- Modelica 3.0 grammar updates! + added constrainedby to the grammar + now the entire Modelica Standard Library 3.0 can be parsed.
421ebaab4Adrian Pop- the latest updates for DAEQuery.mo [exportDAEtoMatlab API] used by Olof Bäck [ISY] and Daniel Gunnarsson [IEI].
4f4792111Henrik Eriksson*Added plotAll() and plotAll(model) commands *Changed default value of "points" to false
8cb750612Adrian Pop- fixed a BAD typo :)
21fc15e0bAdrian PopHuge update =========== 1. Updated version to 1.4.4 in: ------------------------------- - Examples/*.onb - Setup.vdproj - settingsimpl.c - updated the new product code in Uninstall.bat
a6313414eHenrik Eriksson*Added external graphics window to setup project
6c5b6ffdaHåkan LundvallFixed better support for if-equations. 1) Now, it also works inside when-clauses 2) if the branches have the same left hand side of the equations then equations of the form "lhs = if (cond) then tb else fb;" is generated instead of "0 = if (cond) then lhs - tb else lhs-fb;" 3) in code generation if the variable to solve for in an equation can be solved in both branches then the solved variable is extracted so that we no longer need to treat it as a nonlinear equation.
af12bf791Adrian PopFixes for bugs: Instantiation of partial models should fail: http://openmodelica.ida.liu.se/bugzilla/show_bug.cgi?id=174 Qualified Self reference should not give stack overflow: http://openmodelica.ida.liu.se/bugzilla/show_bug.cgi?id=179
0580e19e7Adrian Pop- fixes bug: Incomplete generation of output array variable in external function call wrapper http://openmodelica.ida.liu.se/bugzilla/show_bug.cgi?id=180 Many thanks to Constantin Belyaev [cbelyaev !!at!! gmail] for providing a patch.
51c96bbf0Adrian Pop- fixes for bug: pre(var) where var has (start = value) should give value. http://openmodelica.ida.liu.se/bugzilla/show_bug.cgi?id=181
5edbe7b4fAdrian Pop- added some missing spaces.
29bcb6efeAdrian Pop- give more info when running the simulation code with -v.
e9974afdeAdrian Pop- updated readme
b8fa75a7fAdrian Pop- more info on flags
7cb568ba2Kristian Stavåker- Improvements of MetaModelica constructs handling
e4421f3f4Adrian PopFixed bug: http://openmodelica.ida.liu.se/bugzilla/show_bug.cgi?id=177 buildModel failed to work since we added the tolerance as a parameter to the simulation. Credits go to Constantin Belyaev cbelyaev/AT/gmail for providing the patch. Thanks!
6ffaebed1Adrian Pop- fixed the Linux part for the case there is no QTHOME defined
22e671d86Adrian Pop- updated the emulateStreamData prototype to the last version.
eaefd6edaAdrian PopRML_IMMEDIATE(RML_TAGFIXNUM(integer)) is used to transform an integer to a pointer. Here we actually want the inverse of that, we want to transform a pointer into an integer. Removed RML_IMMEDIATE(...).
fdae7de43Henrik ErikssonRemoved an unused variable
240ba7593Henrik ErikssonFixed some signed/unsigned warnings
f9478a6a5Adrian Pop- fixes in the Linux part
e159d61b2Adrian Pop- ANTLR on Linux has problems with Linköping, changed it to Linkoping.
bca707127Adrian Pop- Static::enabled is a method, changed to actually calling it Static::enabled()
f92a7de35Adrian Pop- changed the License to OSMC License - added Static::enabled() implementation to sendData.cpp
20c7c4dbcAdrian PopNot Needed as we have OSMC-License.txt in the root directory.
08abbd630Henrik ErikssonAdded some features to the new plotting package
1abe8cab5Adrian Pop- updated the license with the entire text.
79428dd76Adrian Pop- fixed bug 170: http://openmodelica.ida.liu.se/bugzilla/show_bug.cgi?id=170 - transpose now works even if the first matrix dimension is bigger than the second matrix dimension - added Transpose.mo to the testsuite so we don't run into this error again
ab5503eddAdrian Pop- added Open Source Modelica Consortium (OSMC) License to the trunk
dcfd580dbAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
04a51fad3Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
0d21404e4Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
c262d7c4dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
9430760feAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
7d870af5dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
7bcff0409Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
2521c54e3Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
31ffb87fdAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
1520cd58dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
2c858d08cAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
fb60ee673Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
6e4b1511aAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
9679a890eAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
f845738b1Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
97f1a5d9aAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
8cae7cb30Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
31827262aAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
4c999615dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
4a81609f6Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
019b8e662Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
846ac3fceAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
10127be84Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
32cc52027Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
87c6596d7Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
30cef26d2Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
31e6a98a9Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
a6d968770Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
fb7c9c1b4Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
fa2355ff8Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
ea4867ce7Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
1bc66bdb0Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
89789c188Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
a32828209Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
93d00ea6eAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
9686637baAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
39c0487ffAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
f22af6cd5Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
3eb35741bAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
63452fd06Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
60483da74Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
39f3b3956Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
cd5099b01Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
8fb5aba90Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
ce4757a06Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
54c8d7de4Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
f8f23ba1dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
11f4f2369Adrian Pop- changing to OSMC License
3a73dc6a9Adrian Pop- changing to OSMC License
726e5f63cAdrian Pop- changing to OSMC License
096a8f14bAdrian Pop- changing to OSMC License
ce204c999Adrian Pop- small changes to DAEQuery.mo, Ceval.mo, Static.mo and Exp.mo - changed the way if-expressions are output to the Matlab file - changed getIncidenceMatrix to exportDAEtoMatlab - made some Exp functions needed in DAEQuery public
e531f8292Adrian Pop- added arctan_rettype and defined arctan as atan.
4d3ac8d2dAdrian Pop- small cosmetic change
53b01e2a4Håkan LundvallIf the desired output interval was smaller than 0.001 not output was given except for at events. Now fixed.
137a8939bKristian Stavåker* Minor Changes in MetaModelica list handling
5f0b83cceKristian Stavåker* Minor change in meta_modelica.h
2a316a2f2Adrian Pop- do not delete the sendData/Makefile*
d54ed9736Adrian Pop- fixes to windows makefiles - changes to DAELow.lower to not simplify the DAE before dumping the incidence matrix from DAEQuery.mo - Changes to Ceval, Static, Main to write <> to Model_init.txt now tolerance can be specified when calling simulate: simulate(Model, tolerance=1e-5)
d3a66dcafAdrian Pop- fixes to Makefiles to compile *.o when *.c* change - made simulation_input.cpp read the <> from the Model_init.txt
cbf216636Adrian Popcosmetic change
80db30afeAdrian Pop- better checks and error messages for flags.
74328dbdfAdrian Pop- added usage info when omc is invoked without flags
15eaa8ae1Kristian Stavåker- Some updates to the pattern match algorithm, etc.
17f25d957Henrik Eriksson*Removed some debug library dependencies *Removed some unused function arguments
52c74ab1cPeter AronssonFixed bug with parameter values not added to unknown vector before initialization starts.
8c7805c7cHenrik ErikssonRenamed some functions to avoid name conflicts on Mac
3a635c952Adrian Pop- fixed small Linux part typo
4e6ab8ce0Henrik Eriksson*Removed print statements *Reintroduced option to build without Qt *Changed some rml calls *Added sendData.vcproj
d8f64dc77Henrik Eriksson*Added static Qt libraries for MinGW *The MinGW version of Omc is now built with static Qt libraries *Added some Qt header files *Added range options to plot2/plotParametric2 *Removed some unnecessary files.
390b0b7c9Adrian Pop- Windows Vista instructions
e89fc5315Adrian Pop- finally found the problem with weird simulation runtime errors. - memset the damn malloc-ed region.
b4fdfc75fAdrian PopAdded new API functionality: - refactorIconAnnotation - refactorDiagramAnnotation implemented by Filipo Donida [donida@elet.polimi.it] (thanks)
8efe319ddAdrian Pop- - updated README-BUILD-RELEASE.txt with the new changes
b096d8e6eAdrian Pop- added -ftrace option to Makefile.w32 - used -trace option in corbaimpl.cpp - updated Compile.bat to work on Vista - updated c_runtime.vcproj, added meta_modelica.c and meta_modelica.h - update omc.vcproj - updated VC7/rmlRuntime/runtime/common/main.c to take in -trace option - updated VC7/c_runtime.vcproj to take the OMNotebook and OMShell from trunk instead of M:\
86fdd9960Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
b25d73a79Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
d88e41883Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
2a145305cAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
a92bd8561Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
126e20702Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
5385fb231Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
0b6962edbAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
492242a00Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
bc6c505e5Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
622c8856fAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
db17eafe8Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
4d2eacaa1Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
bffb0199dAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
2f39f70c4Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
a486504a9Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
57f85ba9fAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
25ee2390dAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
31186a29aAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
4bdbf360cAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
e32661175Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package - added RCS $Id$ to the files who were missing these
332838887Adrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package
f0b46556cAdrian Pop- cosmetic changes
cc1196d3bAdrian Pop- cosmetic changes
cbcdd393fAdrian Pop- cosmetic changes
d53b019efAdrian Popgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2891 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a8da39cebAdrian Pop- cosmetic changes
904a28ce2Adrian Pop- cosmetic changes
8479f5e7cAdrian Pop- cosmetic changes
f442e5b80Adrian Pop- cosmetic changes
8b90db464Adrian Pop- fixed a small typo
9d32576a5Adrian Pop- cosmetic changes - added Absyn.getClassName
de32c2c33Adrian PopSeems this file is no longer required.
630d6b5cdAdrian Pop- generate .depend all the time in Linux too - thanks to Simon Björklén [simon@at@bjorklen.com] for tripping into this
a7cee196eKristian StavåkerModified the handling of array for constructors.
e3622b7b6Kristian StavåkerAdded run-time handling of (MetaModelica) lists to the C runtime. Two new files.
489e7ccbbKristian StavåkerUpdated MetaModelica pattern match algorithm and list handling (builtin functions for list handling, etc.). Merged the Matrix module with the DFA module.
8dda77151Adrian Pop- got rid of quotes (") from model_dir - added $MODELICAUSERLFLAGS in the second case of System.generateMakefile - removed the .NET Framework dependency from Setup.vdproj - cosmetic change in Makefile.common.w32
36dbfc4d4Kristian StavåkerModified the pattern match algorithm.
540d4668cAdrian Pop- added ${MODELICAUSERLFLAGS} to the end of the g++ command in the generated Model.makefile as Hong Duan (hduan [at] ucdavis [dot] edu) suggested
26594b7a2Adrian Pop- if they not exist create .sig files first - this seems to fix the dependencies problems we had before - compilation for small changes is now faster
5688ae4e7Adrian Pop- cleaning up makefiles - using rmldep-new.sh in Linux makefiles also
01920f5dbAdrian Pop- linux fixes for the new libsendData.a from c_runtime
e76c1708aKristian StavåkerMade some improvements and fixed some bugs in the valueblock and for iterator constructs.
0662428acAdrian Pop- VC7 Setup fixes for new stuff in OMNotebook - Parser fixes to handle multiple for iterators, both in array iterators and in for loops, Have a look at Absyn.ForIterators - Small changes in makefiles - Fixed stringEqual in external-rml.c - ptplot.jar dumps the plot image in $OPENMODELICAHOME/tmp/ - OMNotebook and OMShell in windows now starts in $OPENMODELICAHOME/tmp/
2e4dc2998Henrik ErikssonAdded support for the new plotting features of OMNotebook. Set the variable QTHOME to a MinGW version of Qt 4.3 to enable these extensions.
2b64d6b91Kristian StavåkerUncommented the code for the un-nested for constructor iterators. The following cases should work: x := {EXP for VAR in EXP}; x := FuncCall(EXP for VAR in EXP); x = {EXP for VAR in EXP}; Added some comments to DFA, Matrix and Patternm.
579c108d6Kristian StavåkerAdded support for MetaModelica lists to the matchcontinue expression. Mostly altered DFA, Convert, Patternm and MetaUtil.
27516089bKristian StavåkerMade some improvements to the valueblock expression implementation in Codegen and Static. Made some changes in MetaUtil.mo. Added code for for-iterator constructors to Inst (they will be uncommented later on).
157479bcfKristian StavåkerAdded support for nested MetaModelica lists + some minor improvements.
36fb88f0eKristian StavåkerAdded compiling of MetaModelica lists. Added the list type to the type system files: Types.mo, Values.mo. List constructs in Exp.mo. Handling of lists in Inst.mo, Codegen.mo, Prefix.mo and Static.mo. Minor changes in Absyn.mo and DAE.mo. Also added a new file, MetaUtil, that contains several functions for handling MetaModelica extensions. All the testcases succeded (remember to make clean).
306a4f1f6Peter AronssonChanged getClassInformation and getComponents to also return array dimensions of classes and components.
5131edfe7Kristian Stavåker- reverted the last Inst.mo changes
f262dd8d6Adrian Pop- reverted changes by krsta as the testsuite doesn't work. - small changes in Main.mo
78568a1dfKristian StavåkerInst.mo: Added support for list type in instElement, instVar, etc.. The list complex type is picked up in instElement. An extra boolean flag has been added to instVar, instVar2, daeDeclare, etc.. This flag (if true) indicates that a list type should be created in daeDeclare4.
616aa2b1aKristian StavåkerAdded List type to type system files. More to come ...
7b04343b5Adrian Pop- updates to makefiles for Linux - makefiles for Cygwin - readme on how to build ModelicaXml on Linux and Cygwin
aececcca2Adrian Pop- added new flag +g: omc [+g=Modelica|MetaModelica], default to 'Modelica' - added function RTOpts.acceptMetaModelicaGrammar() that returns true if omc is called with omc +g=MetaModelica ...
968d72b9fKristian StavåkerSome minor changes to the valueblock expression and patternmatch algorithhm.
d8b74949bKristian StavåkerAdded string comparison, ==, to generateRelation in Codegen.mo. The C strcmp operation is generated.
6a0707eefKristian StavåkerConstant comparison of strings added in cevalRelation. The MetaModelica ==& operator is used, perhaps == should be used instead (if it is working?). Very easy to change. Non-constant comparison of strings will be added to the OMC shortly ...
05b6072d6g-pavgrFixed reading of break/return from .mof files
21ff4f50dg-pavgrSupport for brake and return: fixed getAllExpsStmt; added test cases.
2b44d98ccKristian StavåkerA few minor improvements of the patternmatch algorithm.
26676a06eAdrian Pop- Linux fixes
9f7183356Adrian Pop- small fixes for Corba implementation for making mosh.cpp compile - moved char* omc_cmd_message = ""; char* omc_reply_message = ""; to omc_communication_impl.cpp and made them external in corbaimpl.cpp. this way they don't need to be defined in mosh.cpp - removed char* omc_message from mosh.cpp as is not needed anymore
f84b9213fKristian StavåkerFirst commited version of MetaModelica matchcontinue. One entry point in Inst.instStatement, the rest of the code in the new files Matrix.mo, DFA.mo and Patternm.mo. Matching of uniontypes and list constructs will be supported later on. A few testcase .mo files added to testsuite/mofiles (match1.mo, match2.mo, ...).
510421bc0Kristian StavåkerAdded two new builtin functions. stringCmp compares two strings and returns 0 if unequal. getTag fetches the type name of an ojbect reference, using the c++ typeid(ref).name().
3f087a340Adrian Pop- a lot of fixes to external functions. + RML_IMMEDIATE(RML_UNTAGFIXNUM(x)) is an ERROR, so i replaced it with RML_UNTAGFIXNUM(x) + fixed types using RML types as on 64bit architecture instead of integer we use long. - got rid of GCC_EXEC_PREFIX in Linux/Mac part
98ab23072Adrian Pop- included MacOS changes from Eric Meyers (erictmeyers@gmail.com)
6c7dbe30cAdrian Pop- added DAEQuery.mo to the compilation - DAEQuery.mo has functionality for dumping the incidence matrix: + getIncidenceMatrix(ClassName) will dump a file called ClassName_imatrix.m containing the incidence matrix in some sort of Mathlab format.
a8adeacebx06klasjchanged the return value for the val function from boolean to real.
6c21a399bPeter Aronsson-Assertions are checked in DAElow.lower if they are always false. In that case error message is given and lowering fails. (to test this instantiate a CombiTable component and run checkModel, without giving any table data). -Assertions only output if accepting a step (see acceptedStep variable). -Fixed minor typos in comments.
7b12d72c9Kristian Stavåker* Absyn.mo: Added valueblock record to Exp uniontype. Added uniontype ValueblockBody. * Static.mo: Added two new cases to the elabExp function, evaluation of valueblock expression (one for valueblocks containing algorithm statements and one for valueblocks containing equations). Added a new function for converting valueblock equations into algorithm assignments. * Inst.mo: Had to change the accesibility of some functions from protected to public. * Exp.mo: Added (duplicated) uniontypes and records from DAE.mo, Algorithm.mo, Types.mo and Values.mo. Part of a work-around since the MetaModelica compiler can't handle circular dependencies. * Convert.mo: Functions that converts the duplicated data structures from Exp.mo into original form and vise versa. These functions are called in Static.elabExp and Codegen.generateExpression. * Prefix.mo: Added functions for prefixing algorithm statements since an expression now may contain algorithm statements. * Codegen.mo: Added a new case-clause in generateExpression for generating code for valueblock expressions.
84ebb4440Peter Aronsson- Clearing errormessages before executing checkModel and buildModel to prevent error messages from earlier evaluations. - Added error message for declaration modifiers. - Better error message for type checking of functions.
f1347a8e8Peter AronssonFixed bug with type extending basic type using long class definition in several levels, and having modifiers on builtin attributes. See Type10.mo
a263c7522Adrian Pop- fixes for Corba connection (mostly for Windows 2000) it seems that CORBA::ORB_init(argc, dummyArgv, "mico-local-orb"); ignores totally the first argument
e49971277Adrian Pop- added stringFind implementation for Linux too
2e42104e6Peter AronssonFixed compile bug in older versions of metamodelicacompiler.
018a4e923Peter Aronsson- getDefaultComponentName and getDefaultComponentPrefixes API functions, see DefaultComponentName.mos - der(expr), see dertest.mos
c70b03c73Peter AronssonFixed bug in setComponentModifierValue, testcase: interactive_api_param.mos
22fd2af8cPeter AronssonImproved solving of nonlinear systems. Now tries both extrapolation and using old values. Extrapolation might end up in going into forbidden region, whereas using old values as starting point might have problems during initialization. Pendulum.mos requires extrapolation and dae2 in NonLinSys.mo requires old values.
5cfacd7b8Peter AronssonFixed bug with event handling. When dassl returns at an event it is not certain that the event condition becomes "true", i.e. passing the event. It may be a epsilon before the event. To prevent this, the code now (again;) takes a tiny step passed the event to make sure that all events are true. Added bouncingball example in BouncingBallExamples.mos to test this. Fixed so mixed systems (ideal_diode, etc) now becomes a linear system if if-expressions are present. This requires differentiation of if-expression to determine jacobian of linear system, i.e the A matrix. Changed Derive.differentiateExp to take boolean if differentiation of if-expressions should be done.
9e88d5f0ePeter AronssonChanged small step taken when event has occured and Dassl should be reinitialized to continue integration. Step previously was 1e-13, now it is defined in terms of machine precision, a bit larger than HMIN. This will prevent dassl from reporting that step (tout-t) is less than HMIN, since HMIN is also is defined in terms of machine precision.
fe20c671bPeter AronssonFixes to be able to compile using Visual Studio. Added some comments to System.mo Added GENERIC_ERROR to Error.mo.
abd304f64Adrian Pop- Makefile updates for Linux to mirror Makefile.omdev.mingw
95d5aba38Peter AronssonRemoved need for fortran compiler by translating fortran files to c using f2c. Replaced nelmead.f with version that can be translated. Moved fortran files to folder named fortran. Several testcases updated due to small numerical differences between c and fortran.
51608e2bdPeter AronssonSpeeded up instantiation by writing special instantiation code for builtin classes (Real, Integer,String,Boolean).
c34eda22aPeter AronssonFixed bug with "Automatic" output intervals and latest newTime implementation.
38c764046g-bjozaSome cleanups from last commit. Bug 849, some simplification errors with vector and matrix operations.
04efa3002Peter AronssonFixed bug with calculating nextTime when step is calculated from numberOfIntervals, giving numbers like 0.01111111111111111111111 due to inprecise floating point precision.
e895fecebg-bjozaBug fix 849 Some minor fixes overall. Matrix simplification, builtin function pre.
176fc2eb8Peter Aronsson-Fixed bug with DASSL failing for large simulation times with few output steps. Solver now calls DASSL with largest step size=0.001, and then keeps track of when to output to result file separately. See LargeSteps.mo in simulation2.mos.
3e44821bcHåkan LundvallFixed sample-bug
456703381Peter AronssonAdded integer_rettype to modelica.h.
19e6b0f38Peter AronssonSplit functionDAE_output into functionDAE_output and functionDAE_output2. The first contains only continuous parts and the second discrete parts. This makes discrete variables emit value both before and after event possible. See blocksources.mos (PulseTest).
3b4be3e2aAdrian Pop- more Linux fixes
342fd1318Adrian Pop- Linux fixes to Peter A. changes
7ad7c5196Adrian Pop- tail recursive implementations of some Util functions - cosmetic changes - increased the young generation size in rml.h and stack size in p-gccore.c - added ongoing support for dumping the incidence matrix - added partial-s-1.mo to failing tests because with the new tail recursive implementations the compiler goes into an infinite loop
068b37adfPeter AronssonAdded "smart setting of fixed attribute". If initial equations are present in a model and no state has fixed=false, all states that occur in the initial equation section is set to fixed=false, and a warning is issued. This makes most "simple models" work as they would if we followed the standard and setting states fixed=false by default. (OMC instead has fixed=true as default for states due to allowing overdetermined initial equation systems).
686bd1fe1Peter AronssonChanged representation of builtin attributes in DAE.VariableAttributes (start,min,max, etc) to Exp.Exp (was previously Real, String, etc).
1928d059eAdrian Pop- small performance improvements - cosmetic changes
ea7746470Adrian Pop- cosmetic changes for the upcoming MDT that folds away the LICENSE at the start of the file. - changed svn:eol-style to "LF" instead of "native" as a workaround for the debugger execution point positions, which are wrong if we have CRLF line endings.
33faaace1Adrian Pop- reverting the bad commit by krsta
2f26ce6d7Kristian Stavåkergit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2756 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
40c43e735Adrian Pop- fixes for the upcoming mmc compiler; - corrections to input variables and variables from matchcontinue
dd039f4b5Adrian Pop- warning removal, printing long instead of integer.
2f7fd381fAdrian Popdelete .srz also
b70f7e24fAdrian Popdelete .srz also
8586ac3e4Adrian Pop- small fixes to errors in .mo files discovered by the new MDT
e619c3b7aHåkan LundvallFixed so that exceptions work when fortran functions are involved in Linux
70d9df0e9Håkan LundvallFixed Timetable-bug
ab19942c4Peter AronssonFixed compile error due to changes in DAE.ASSERT
bb3206edaPeter Aronsson- Added String() functions (String(1.0), String(100), String(true) ) to both Ceval and Codegen testcase: StringTest.mos - Implemented terminate and assert in equations - Added TerminateSimulationException that is thrown when simulation fails (e.g. numerical failure, assert, terminate, etc.)
6e13ad6f7Adrian Pop- more notes on possible problems with Eclipse and OMDev.
10bd3937dPeter Aronsson-Added printout of "protected" in DAE, protected variables are now prefixed with protected when printing flat class. - Added cast to and from modelica_integer when storing integers in double vector (in Simulation code), to get rid of warnings during compilation of model code. - Removed dymTableTimeIni function in Static, was a unfinished hack to make MSL 1.6 work.
4aaf6a1e9Håkan LundvallTestsuite now passes in Linux
e4d903ed6Peter AronssonAdded protected/public flag to DAE.
23ec06117Peter AronssonFixed bug in solving linear system of equations (DAEexample.mo).
83934c04cPeter Aronsson- Cleaned up some comments - Removed SCode.STRUCTPARAM, since it is no longer used. The compiler does currently not care if a parameter is structural. - Fixed bug with function variables making equation in dae instead of creating binding expression, which does not make sense. This also created bug setting default inititial values for function inputs in read_call_write code. This has also been fixed.
4e9de131cAdrian Pop- cosmetic changes of Absyn.mo + qualified names in error messages + updates of function documentation - Setup.vdproj changes + replaced "This program is protected by copyright laws..." with "This package contains OpenModelica, a modeling and simulation environment based on free software".
047ef6c4dAdrian Pop- Fixes for BUG: http://bug.modelicacommunity.org/show_bug.cgi?id=144 The numbering of temporary variables was wrong in Codegen.generateElse
cc73f7868Peter AronssonFixed bug in prefixing of variables in algorithm sections, which was not performed at all.
22e7e1b22Peter AronssonAdded model_dir string as global variable to model code. Needed when loading e.g. associated table files.
4e3a74066Peter Aronsson- Changed Types.printType to Types.printTypeStr - Fixed bug with attribute modifiers on types not propagated to variable instances (testsuite/mofiles/Type9.mo) - added option -b to rtest which can be used to set expected result: rtest -b test.mo translates test.mo and updates the expected result last in file. - Fixed bug in merging of modifiers in DERIVED classes.
36cec87acPeter Aronsson-Implemented rudimentary support for tables. (Modelica.Blocks.Sources.CombiTimeTable now works for parameter data or textual data on file, see CombiTimeTableTest.mos.) Implementation in C++ in tables.cpp. Modelica standard library must be changed to use different external function names (e.g. omcTableTimeIni instead of dymTableTimeIni2) - Redirected stdout and stderr to compilelog.txt when compiling functions in Ceval (System.compileCFile). -Added support for parameter and variable strings in init file.
a79ff6b7aPeter AronssonFixed small bug in codegen (statements in wrong order). Added whitespace when unparsing modifier list (nicer layout when printing large annotations) dummy equation der(dummy) = 0 changed to der(dummy) = sin(time*628.56....), to better cope with automatic step size when no states present in model.)
89ab88d77Peter AronssonAdded translateGraphics function that uses Refactor.mo to translate graphical annotations.
ba3d243f4Håkan LundvallFixed bug #133 and a missing endResult in simulation3.mos
817c38ca2Håkan LundvallFixed bug #131 output variables involved in zero crossings were not evaluated.
0358522cdHåkan LundvallMerged from when-statements branch * when and elsewhen in algorithms now supported * correct sorting of equations in when clauses * events no longer takes an extra tiny step to make > and < work. Instead the relation takes into account the direction in which the relation expression is passed.
18e85c183Adrian Pop- added Refactor.mo to Makefile.common, Makefile.common.w32 - fixed dependencies in .depend Makefile.w32, Makefile.debug.w32
2612e4c53Kristoffer NorlingRefactoring thesis
f6c5d1201Peter AronssonCompile error due to name change in util.
cc06c58a9Peter AronssonFixed bug with creating empty arrays with fill and using size on them, see mofiles/Array13.mo.
56c34d0f3Adrian Pop- cosmetic changes to Absyn.mo, Algorithm.mo, Builtin.mo, Ceval.mo, Util.mo + replaced old names in comments and error messages with new ones. + a bit more uniform error reporting; the errors include fully qualified function names. + replaced Absyn.expEqual with structural equality. + better names for some functions in Ceval
144bf6cb4Adrian Pop- cosmetic changes to Util.mo + got rid of some already existing functionality + renamed some of the Util.mo functions + rewrote some Util.mo functions to make them a bit faster
2c760c1dbPeter Aronsson- Fixed bug in Exp.simplify (certain divisions lead to incorrect simplifications). - Fixed bus in printing of expressions (Exp.printExpStr) leaving out parentheses in some cases. This also required changes in testcases.
f9d8c9c58Adrian Pop- fixes for corbaSessionName not defined when NOT compiling with Corba
220343b78Adrian Pop- small update for the upcoming version of MMC/RML & OMDev - variable name changes to differentiate them from function names
f3963abd1Peter AronssonChanged code generation of tuples (returning several values from functions). Previously a struct was generated that contained names taken from the output arguments of a function. For instance, function foo ... output Real x; outpur Real y; ... end foo; resulted in a struct foo_rettype { modelica_real x; modelica_real y; }; But these names are not available in a call (i.e. in Algorithm.TUPLE_ASSIGN). Also this makes sense, since a tuple has only an oredered set of values -without- names.
cedceafeePeter Aronsson- Fixed bug in state selection. If StateSelect.always is set but variable does not appears differentiated among equations, it was previously not selected as state. - Fixed bug in printing error message for non-linear system solving.
67b5bc2f1Peter AronssonFixed bug 95. Testcase in simulation3.mos and avg.mo.
caec13eb5Peter AronssonA small error in the compiler.bat file.
44416bbacPeter AronssonFixed bug 51, testcase mofiles/reinit.mo
eaf2f053dPeter AronssonFixed bug with Modelica.Blocks.Discrete.Sampler connected with e.g. VoltageSource (reported at Modelica Design list)
21b715c6bPeter AronssonFixed bug with compiling when e.g. LIBRARY_PATH is defined.
2d66b1d66Peter AronssonAdded description of missing fortran files in c_runtime/README
f4f6c2d88Adrian Pop- Now OMC will now REFUSE to start on Windows if another one is running! An error message will be displayed. - Added +target=gcc|msvc flag in rtopts.c and RTOpts.mo to be used later when we generate different code and Makefiles targeted to GCC or MSVC. The flag can be retrieved using RTOpts.simulationCodeTarget()
713cb1d4dAdrian Pop- I have updated the README-WIN32.txt document - I tested the compilation on Visual Studio .NET + 2003 Pro + 2005 Express (Free, but it cannot build the Setup project) + 2005 Pro
f3c4cdb6aAdrian Pop- included for std::numeric_limits required by VC++
16703d780Anders Sandholmfixed so val can handle arrays, val(x[n],x.y)
ecc71a284Adrian Pop- Linux typo fixed
5d481d2a0Adrian Pop- fixes for Linux part
7f89670deAdrian Pop- fixes for Visual Studio to get rid of link errors
0aa207e11Adrian Pop- added +c=corbaSessionName to the Compiler/runtime/rtopts.c - fixed Compiler/runtime/corbaimpl.cpp to generate: + the Corba Object ID depending the corbaSessionName + the file dumped depending the corbaSessionName + the events and mutexes names depending the corbaSessionName - moved clientlock from omc_communication_impl.cpp to corbaimpl.cpp
067696119g-pavgrLoopContext; check that *break* is inside a loop
37b08492ePeter AronssonFixed bug with start value of parameters not translated to DAE.
6118ccf4bAdrian Pop- changed "inital" with "initial" in Builtin.mo - replaced return with returnType in Codegen.mo and DAE.mo as "return" is a keyword now!
3dec01448Adrian Pop- added break and return statements to flat_modelica_lexer.g and flat_modelica_parser.g due to changes to modelica_lexer.g and modelica_parser.g - without this the FlatParse.mof test fails.
c7c5a5451g-pavgrSupport for *break* and *return* Missing: (a) checking that used inside for/while and (for *return*) in function body (b) reading from flat Modelica (for/while if flat Modelica not yet supported)
96610eec4Peter AronssonImplemented inner/outer for components (inner/outer classes not impl. yet) testcases InnerOuter1.mo InnerOuter2.mo
abd5bd51cPeter FritzsonImplemented the builtin function: product. Works on a testcase with vectors. Has not yet been tested on matrices.
76ccbcab1Adrian Pop- Lookup.mo does not use Util - cosmetic changes to Absyn.mo by Peter F.
762d90aa7Peter AronssonAdded instantiation of reinit in algorithms. Now flattens, and produces error message that when algorithms not supported yet.
ac7f11118Peter AronssonAdded to the state select heuristic: A priority based on the number of selectable states with the same name (last identifier of a qualified name).
f5d033a56Anders Sandholmremoved some debug information that were commited in the last version
ff11ff62aAnders Sandholmfix string support in external functions
c2e257664Peter AronssonAdded support for automatic number of output steps by using intermediate-output model in DASSL. This can be used by setting a negative value on output step size.
6376a7fb6Adrian Pop- fixes to make the testsuite run on Linux - for some very obscure reasons in simulation_result.cpp, function: int deinitializeResult(const char * filename) code: ofstream f(filename) reset the filename to "" and the creation of the file failed. - fixed it in solver_dasrt.cpp and solver_euler.cpp - thanks to William Spinelli for providing a virtual machine where I could reproduce this error.
cf157b742Peter AronssonImplemented a better state selection mechanism. State selection is now base on 1. The stateSelect attribute 2. A heuristic. The heuristic looks at both the equations of state variables to find constaint equations and tries to put dummy state variables in the same component.
721ae868aPeter AronssonFixed bug with instantiation of Modelica.Blocks.Discrete.TriggeredSampler, causing infinite recursion (prevented by only instantiating partially)
07ca683bdAdrian Pop- doPlot renamed to doPlot.Cygwin and doPlot.Linux renamed to doPlot - changed Compiler/Makefile.in and Compiler/Makefile.omdev.mingw to mirror the changes
1802f39dcAdrian Pop- doPlot renamed to doPlot.Cygwin - doPlot.Linux renamed to doPlot as Linux installation is far more spread than Cygwin! + this will get rid of an installation step on Linux and adds an installation step for Cygwin - changed README.Cygwin.or.Linux.txt to mirror the changes
e2545be02Peter AronssonFixed bug with fully qualified names (which are created during instantiation) not possible to look up over encapsulated boundaries: Introduced new record FULLYQUALIFIED in Absyn.Path for this.
9e4e4b25aAdrian Popdouble should not be float as we might loose precision
b9c50e2ffPeter AronssonFixed bug in lookup of functions through unqualified imports.
d8020d59ePeter AronssonFixed bug with e.g. Modelica.Electrical.Analog.Sources.TrapezoidVoltage giving error message even if it is correct.
7e56d9b27Peter AronssoncheckModel now uses DAELow.lower without generating "dummy state", i.e. counts correct number of variables and equations.
4fddc6fe1Peter AronssonAdded error message for not-yet-supported features in algorithms (when clause, while-clause, etc)
0d60cfda7Peter AronssonFixed bug with generation of zero-equations for unconnected flow variables.
4b9cc2ab3Peter AronssonFixed bug with simplify of 1/(a/b)^2 causing infinite recursion.
d04a0b7daAdrian Pop- new line at the end of file.
193d1c807Adrian Popreplaced ModelicaXml.h with ModelicaXML.h
0315c1349Adrian Popremoved to be replaced by ModelicaXML.h
ba8fe31a6Adrian Pop- fixes to make modelicaxml work on Linux.
bbeecf99bAdrian Pop- fixed bug: http://bug.modelicacommunity.org/show_bug.cgi?id=30 - the precision problem when dealing with reals in OMC - MMC/RML uses double and because in read_write.c and systemimpl.c this was converted to float and back to double it was a precision loss. - replaced all float with modelica_real in read_write.c - replaced all float with double in systemimpl.c
37be61e12Peter AronssonImproved instantiation speed. (checkModel(CauerFilter) now takes about 10 seconds instead of > 500 seconds). Fixed memory leak in solving linear systems.
8d646ae1bDavid BromanInitial code to support inner and outer semantics. Now, the inner and outer attributes are part of SCode.COMPONENT. Further, the outer elements are removed from DAE output. However, correct lookup rule of inner components are not implemented yet. Only components are considered in SCode. The other elements (functions, inner classes etc.) are not yet implemented. No considerations to type checking has been done yet.
9c1b0c847Adrian PopNot needed since we moved to .mo files.
00354a3acPeter AronssonMoved some comments to better place
c3c4f23f4Peter AronssonFixed bug with premature exit when event at stop time.
c24bf7cdbPeter AronssonSplit up large string constant so VC compiler does not complain.
280a1c0efAdrian Popimport Interactive is not used in Mod.mo.
5db84ace6Adrian PopLinux update.
a4a361efdPeter AronssonFixed bugs in simulation_runtime (initialization of data, stop exactly at stop-time, etc). Fixed bug with recursive modifiers (A a(x=a.y))
bba486e8bAdrian Popgenerate logs also on Linux.
52493481aPeter AronssonChanged builtin functions asin,acos and atan to arcsin, arccos and arctan (same as in Dymola). Added eliminationLevel = 3 for removing only equations on the form a=constant. Added der(arccos),der(arcsin) and der(arctan) to Derive.mo Fixed performance problem with Exp.simplify. Fixed bug with matrix operation a*[1,2;3,4] in Exp.simplify. Fixed bug in tranforming a flat-parsed Absyn to normal Absyn (Interactive.mo).
5b2ad2a5eAdrian Pop- added testmos to Makefile.omdev.mingw to test just tests from testsuite/mosfiles - fixed the compilation problem on Linux. GNU GCC has more involved "inline". Just disable inline for now. - initialization of malloc-ed structures within simulation_events.cpp fixes the different result we got on Linux for IdealDiode.mos + i wonder if there may be some other initialization problems like this. - IdealDiode.mos changes due to different result.
94ffb7d12Adrian Popsimulation instead of simualtion.
22dae9f19Peter AronssonRedesigned simulation_runtime. Divided into several files and made more modular. Removed method from command argument and added to init file instead. Remade several testcases to use val function instead.
ddb2c96dePeter AronssonImplemented flags for controlling simulation error messages (log) Fixed bugs (chaanged getExtendsModifierValues, setExtendsModifierValues)
1fe245527Adrian Pop- merged in the ndims(A) code from Stefan Vorkoetter in Static.mo + many thanks to Stefan for his first contribution! - merged in the ndims(A) test from Stefan Vorkoetter in matrices.mos - added another ndims(A) test based on flattening within matrices.mos - fixed bug http://bug.modelicacommunity.org/show_bug.cgi?id=80 by casting the pow(x, y) arguments to modelica_real within Codegen.mo - wrote more about testing in README-OMDev-MINGW.txt and README.Cygwin.or.Linux.txt - added some missing information in README-BUILD-RELEASE.txt - added OPENMODELICALIBRARY environment variable to OMDev-MINGW-OpenModelicaBuilder.launch-sample as is not really true that everybody has a OpenModelica release available (take Linux for example) and an OPENMODELICALIBRARY=/path/to/ModelicaLibrary environment variable set. - added a space in SimCodegen.mo :)
650224ef2Peter AronssonrenameClass does not visit read-only classes.
fab913a39Peter AronssonFixed bug in renameComponent. Now used partialInstClassIn, which is much faster.
ac2082253Adrian Popfixes for BUG 115: http://bug.modelicacommunity.org/show_bug.cgi?id=115 model X end Y; now reports a parse error!
d5ad55ddeAdrian Popfixes for BUG 115: http://bug.modelicacommunity.org/show_bug.cgi?id=115 model X end Y; now reports a parse error!
0bfea108fAdrian PopI did some changes to the OpenModelica SVN in order to speed up MDT a bit. Interactive.mo: --------------- - Changed SYMBOLTABLE, added loadedFiles: Fixed all the sources that used SYMBOLTABLE: Ceval.mo, Main.mo
812ed4396Adrian Pop- Linux part fixes for corbaimpl.cpp
490ed213eAdrian Pop- fixes for daeext.cpp (VC2005 compiled version doesn't crash anymore) i went for the longer version with push_back(0) as resize(nvars) could interfere with mmc backtracking. - made it clear in the Corba part what message is sent and what message is received. This seems to fix crash problems with VC2005 compiled omc IF we move to mico2.3.12. With mico2.3.11 it still crashes. I believe the problem is in mico2.3.11. - added ==& MetaModelica operator to the grammar
78243c658Peter AronssonRemoved old printing functions.
f4d2d1012Peter AronssonAdded better errormessage to checkModel
fc30e712cPeter AronssonAdded setEliminationLevel, to control degree of alg. var elimination interactively.
22301f5dfPeter AronssonAdded error message for no function found. Added EXTRA_SIMOBJS to Makefile.omdev.mingw
67d98dfb8Adrian Pop- allowed a normal Modelica comment after the case. Example: case (z,y) "Some comment here"
453ba5902Adrian Pop- Absyn.CLASS.restricion -> Absyn.CLASS.restriction - fixed more of MetaModelica parsing: x::y = expression; should be allowed. - fixed flat parsing by returning std::string instead of void* from flat_subscript - fixed ExternalLibraries.mos from testsuite by returning quoting the result of getErrorString with " when is called in Interactive.mo.
465c73208Adrian Pop+& added to PLUS, needed as MetaModelica stringAppend operator
503313512Adrian Pop- cases can have empty patterns - fixes DAELow.mo so empty pattern () was replaced by _
eb09eb8acAdrian Pop- replaceable type Type_x; is now replaceable type Type_x subtypeof Any; - The ALG_ASSIGN_TUPLE is gone! use ALG_ASSIGN(exp, exp) instead and check if first exp is Absyn.TUPLE - MetaModelica parsing now works. - all the tests (except those already failing) are working. - a new OMDev is required to be able to compile this: http://www.ida.liu.se/~adrpo/omc/omdev/mingw - in order to get the compiler out of infinite loop some changes were made to SCode.mo - changes to modelica and flat_modelica parser and lexer were made. - imports were changed, I removed to OpenModelica.Compiler from them to make MDT completion work.
4905100c6Peter AronssonRedesigned vectorization of variables. Now has extra argument to elabExp to control this. See instEquation on EQ_EQUALS. (affects array equations)
34ae2b03fPeter AronssonFixed bug in index reduction (states for state selection only considered states in current differentiated equations, not all marked equations)
d6fb48c01Peter AronssonLarge integer literals (> 31 bits) are converted to Real literals. Added testcase for flat parsing (more needed later on).
8c092d8b8Peter AronssonFixed bug in traverseExp.
8e9fc2b69Peter AronssonAdded compiler option +e=level where level is 0,1 or 2, indicating the degree of elimination of algebraic equations (0 -none, 1 -partial, 2-full)
152b87be4Peter AronssonAdded extrapolation of variable trajectories as starting values for nonlinear equation systems. Required for solving nonlinear systems with multiple solutions, such as x^2-c =0 (Need to extrapolate to go from positive to negative solution)
ef883927dAdrian Poppetfr's changes to Absyn.mo
efb579bf2Adrian PopCosmetic changes to .mo files. - changed all .rml to .mo - changed all RML to MMC - got rid of spaces between imports.
0aaa9dc43Adrian Pop- more MetaModelica additions + added more expressions to handle MetaModelica code in Absyn.mo + unified EQ_NORETCALL with ALG_NORETCALL and fixed the walker.g, Absyn.mo, Debug.mo, Interactive.mo, SCode.mo to handle this change. Now it EQ_NORETCALL looks like this: record EQ_NORETCALL ComponentRef functionName "functionName" ; FunctionArgs functionArgs "functionArgs; fcalls without return value" ; end EQ_NORETCALL; Before it was Ident functionName; + added more debugging within parse.cpp - all tests go
25b1add4dAdrian Pop- fixed VC7 Debug configuration (needs new OMDev which contains mico2311 debug libs) + wrote some debug makefiles for VC7 + i think is a good idea to run a debugging omc.exe sometimes to figure out random crashes.
e2ec917beAdrian Pop- fixed a small warning
98a3eb347Adrian Pop- changed Makefiles to actually stop when an error happens - added copyright to printimpl.c - added some more includes for strlen, strcpy and malloc - changed version number to 1.4.3 in settingsimpl.c - changed version number, product code in Setup.vdproj - changed the way MinGW and ModelicaLibrary are handled in the .msi release now, they are packed like normal directories and files not exploded at installation from mingw.tar.gz and ModelicaLib.tar.gz I think this will fix some problems with the installation - changed 1.4.2 to 1.4.3 into all .onb files - wrote a small README-BUILD-RELEASE.txt on how to build a OpenModelica release
34de655c9Adrian Popreplaced // with /* */ as some compilers crap on this
6abd6748dAdrian Pop- got rid of winruntime, now everything resides in runtime and the implementation is different via compiler and OS flags - changed so that System.writeFile uses fwrite insead of fprintf as is way faster and better. - updated copyright to year 2006 and added it to most of the files. - updated SG so that it doesn't talk on winruntime anymore - updated the omc.snl project and runtime.vcproj to take files from runtime instead of winruntime. - changed winruntime to runtime anywhere I could find it. - got rid of some warnings by casting the values to the needed type.
9c3fe3d0dPeter AronssonFixed bug with pendulum example (see Pendulum.mo) (linear equation system rhs was wrong due to not sufficient Exp.terms implementation. Now uses Exp.allTerms instead)
8f8a242c4Peter AronssonForgot to remove temporary code before checkin.
bf5bb2089Peter AronssonFixed bug in cross. Added testexample in matrices.mos
36560073ePeter AronssonAdded builtin cross function (elabBuiltinCross)
b4a306836Adrian Pop- Changes to AST to handle MetaModelica. - Added TypeSpec with: + TPATH (path, Oprion) + TCOMPLEX(path, list, Option) - Only TPATH is used by the Modelica parser right now - fixed the ANTLR warning about string_comment returning a value
58e1b193aPeter AronssonFixed bug in initialization. initial_residual only contains equations that solves for continuous time variables.
447fae774Peter AronssonFixed bug with Initialization, see simualtion3.mos (InitTest.mo) and Test3PhaseSystemTotal.mo
a3dd5811dPeter AronssonFixed bug with cardinality, See Gear.mo. Now Gear and Gear2 in TestModels.mo works, see rotationalgears.mos
cb5d5185ePeter AronssonFixed bug with start value for arrays in DAELow
f487f5e41Peter AronssonFlat Modelica parser now allows crap at the end of file which is produced by some Modelica tools.
4bb6f1bd6Peter AronssonFixed bug with input variables on top level, see InputOutput.mo tested in simulation3.mos
f56192ab8Peter AronssonAdded transforming equations in Absyn to use flat CREFs as in Flat Modelica parser. Fixed bug in flatparsing in walker.g for windows (missing strdup)
336c3359ePeter AronssonFixed bug with flat modelica parsing. Now parses Real x.y=1.0;
785154e18Peter AronssonRemoved commented code.
66cd146a7Peter AronssonAdded extra argument to buildModel and simulate: storeInTemp=false. To store all files in Settings.getTempDirectoryPath(), set this variable to true.
01246e41bPeter AronssonFixed bugs in mixed system. LossyGearDemo1 now working, see simulation3.mos
c7cdc8460Peter AronssonFixed flat_modelica_parser which didn't work at all. It now works partly. Still problem with modificiation in tree walker.
3528e30adPeter AronssonAdded rudimentary boolean functions to c_runtime.
2e821319dPeter AronssonFixed bug with default values for funcion calls. They are now added to the expression argument list so correct C-code can be generated.
73175f512Peter AronssonFixed bugs with wrong Exp.Type in Exp.CAST expressions.
e85dc7355Adrian Pop- reverted the changes
8e1dbf0f8Adrian Popupdate of dependencies
4843a21aaAdrian PopMakefile changes to mirror the changes made by Peter A to Makefile.omdev.mingw
4aed02e4bPeter AronssonEquations containing function calls returning vectors are now handled as array equations. sum(v) and sum(A) are now symbolically expanded. WhatDoesNotWork.html is updated with missing operators in 3.4.3.
33347a592Peter AronssonAdded more type information to Exp.Exp, required to be able to generate correct code. Added some missing impl. in c_runtime. Still much to do here. Fixed bug with BouncingBallExamples.mos Fixed bug with eliminating top level input and output variables. RO attribute to Absyn.INFO now read from status of file. renameComponent now skips RO classes. Temporary fixed Test3PhaseSystem initialization. Still bugs with propagation of fixed attribute. Fixed several bugs with simplify returning expressions with wrong operators e.g. scalar ADD_ARR scalar.
94328d0bfAdrian Pop- fixed step numbering in the README-WIN32.txt
983fae96bAdrian Pop- fixed the MSVC projects and makefiles to use OMDev binaries compiled with MSVC - updated the win32 readme: README-WIN32.txt
501a5b16fAdrian Pop- small update to the README-WIN32.txt. - released rml-mmc-2.3.6 to make VC7 work
767a31de4Peter AronssonImproved solving nonlinear systems. Now tries with several different factors and retries with different starting points if not successful.
c1f1ccf3cPeter AronssonImplemented simple checkModel, returns string with number of variables and number of equations.
d36b059fcPeter AronssonFixed bug with initialization (alg. vars fixed) Fixed bug with simplification of arrays resulting in wrong operators.
d765be7ecPeter AronssonFixed bug with differentiating exp (HelloWorld).
08d3ee85aPeter AronssonAdded RO flag in INFO attribute.
af81815e3Peter AronssonFixed bug in promote_integer_array(done by Kaj)
588567e6cAdrian Pop- fixes by Peter F. to UG, DrModelica, omc_helptext.txt - fixes by Anders Sandholm to val(name, time) - addition of the BouncingBallExamples.mo/mos to the testsuite so that this example is sure not to fail in the future (now fails)
910a26044Adrian Popfixes parts of bug 99: http://bug.modelicacommunity.org/show_bug.cgi?id=99 I added to modelica.h: typedef modelica_real sample_rettype;
92ddcaf31Adrian Popfixed bug 97 http://bug.modelicacommunity.org/show_bug.cgi?id=97 implemented elseif within if expression by constructing IFEXPs within else part.
d0834b098Adrian PopFixed bug 72: http://bug.modelicacommunity.org/show_bug.cgi?id=72 within_clause did not check for null name_path in walker.g.
097dbbefcAdrian Pop- last 1.4.2 commit + DrModelica, UG, ModelQueryAPIexamples.onb updates + val(var_name, time) implementation from Anders Sandholm
1bdf5501dPeter AronssonFixed bug in event handling (edge used for checking changes in event. This was changed to 'change') Removed check of final in modifier since it gave errors even though correct Modelica code.
67f585b0bPeter AronssonFixed bugs in mixed systems. It is now a quick fix.
2ede31746x02danheFixed a bug with unparsing of logical binary operators. Parenthesis are no longer lost around expressions with operators of lower precedence.
6b7ede752Peter Fritzsontest by petfr
f10070269Peter AronssonFixed bug in splitting a mixed system into its discrete and continuous part.
701557810Peter AronssonAdded comment why derivative of if expression must be allowed even though it is non-existent.
13b8be179Peter AronssonFixed bugs in mixed system of equations (see simulation3.mos and BearingFrictionTest.mo) Fixed bug with missing events at initialization (see also BearingFrictionTest.mo)
562bc4e4fAdrian Pop- new stuff val(variable, time) - which is not implemented yet - new SG and UG - new file ModelQueryAPIexamples.onb - new UsersGuideExamples.onb
73f9344f5Adrian Pop- more fixing
b7fdaf790Adrian Pop- fixed a small mistake
79de7eab9Adrian Pop- updated runtime and winruntime to be a bit closer
85d73635eAdrian Pop- fixed some Linux stuff - fixed the API to return Modelica compatible syntax - fixed the API testsuite/mosfiles/loadFileInteractiveQualified.mos - added stdlib.h include to ExtObj.c - removed more unnecesarry files within mosfiles/ExtObj.mos
5be5cb99cPeter AronssonFixed bug with overwriting of equations. Changed testcases Shadow1.mo and Overwriting2.mo.
23925b9fcPeter AronssonFixed bug with connect(a.b[1],c.d), i.e. using arrays in connectors. See mofiles/Connect15.mo
122558eb1Peter AronssonFixed bug in event handling for e.g. initial(). See BooleanModel.mo Fixed bug with discrete equations not having zero crossings not being calculated. Fixed bug with getNthConnection on connector on form a.b[1], see mosfiles/interactive_api_classes.mos.
ba7ec9b32Adrian PopChanged everywhere i could find MODELICAPATH to OPENMODELICALIBRARY!
9e49dc276Peter AronssonFixed bug with missing delete for A and b arrays for linear equation systems.
b93a43f9aDavid BromanAdded support for for-statements in the interactive environment.
e40c62ccePeter AronssonFixed bugs with Test3PhaseSystem and initialization of this model. See mofiles/Test3PhaseSystems.mo
9932e8caaKaj Nyströmgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2476 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
5d6b8f980David BromanSolved the problem with integer overflows. Now, a value is converted to a real dynamically in the interactive environment, if integer operations overflows. This is not the ideal solution. A much better solution would be to have BIG-INTEGERS. However, this is not part of the Modelica specification (2.2) and requires much more work.
c1cd99018Peter AronssonFixed bug with trapezoid voltage source (used in e.g. NandGate). See simulation3.mos.
16e767d6cPeter AronssonMinor changes.
967903525Peter AronssonFixed bug with whitespace in OPENMODELICAHOME path in compileModel.
dc47506c7Peter AronssonFixed small index bug in building string MODELICAPATH=dir
d6206d120Peter AronssonChanged compile script to take OPENMODELICAHOME as argument. Needed for applications where OPENMODELICAHOME is not set.
0261fe9eePeter AronssonFixed bugs with the OPENMODELICAHOME variable. MathModelica now works without having this variable and OpenModelica works with it. This means that it is now possible to have both installed.
259de82ebKaj NyströmFixed bug 671
7af46bd97Peter AronssonNew implementation of removeSimpleEquations2. Now handles a=-b and a=constant equations. Also redesigned to reduce code size. Added some verbose information to simulation_runtime.cpp (printed when using -v)
a07171e97Adrian Popmoving towards 1.4.2 - updated Uninstall.bat - updated the product code, product name, etc - made getVersionNr return 1.4.2
1b881032fPeter AronssonRedesigned VarTransform to allow replacement of variables with expressions, i.e. a -> b+c. This allows elimination of more equations, like a = -b (which also has been added to DAELow)
d00f675cbAdrian Pop- Linux has no "_putenv", changed to putenv in settingsimpl.c
ef105a830Peter AronssonFixed bug with multile declarations, see testsuite/mofiles/MultipleDeclarations2.mo (mc bug 655)
cb5f12f13Peter AronssonFixed bug with evaluating e.g. cos(0)/2 (due to Exp.simplify (MC bug 656)
ce2d8ad0fx02lucpocommented some code
c24aae50fx02lucpomade the function Setting.setInstallationDirectoryPath to use putenv("OPENMODELICAHOME="
a126f52d7x02lucpoadded getTempDirectoryPath to interactive functions
d686febdcPeter AronssonFixed bug in simplify of cos(0) * cos(0) (MC bug 654)
baaa784b6Peter AronssonChanged modelica_string_t from struct to char* to make more similar to other builtin types. Added alias variables of external objects. Array equations now supported in non-linear systems. sign is now rewritten to if-expression.
28a189501Peter AronssonFixed bug in listUnion. Now makes union in both sub-lists as well.
4904496bfx02lucpoadded DATA_STRING stringVaribles to handle the stringvaribles for generated code
0e7872306Peter AronssonFixed bug with subscripts, see mofiles/SubScript2.mo. Fixed bug in Exp.simplify for vector op scalar expressions.
cc5a6a85dPeter AronssonFixed better error message when failing to connect variables of inconsistent types.
b8cf2271fPeter AronssonFixed bug with connectors extending basictype and matrix concatenation (MC bug #643). See mosfiles/Extends4.mo
3305ab640Peter AronssonFixed bug with connectors extending basictype and matrix multiplication (MC bug #643).
6385b7ad7x02lucpomoved getVersion from interactive to ceval
3424a4308Peter AronssonFixed bug with Strings, Integers and Booleans in connectors. (MC bug 499) mofiles/Connect14.mo Also added Connect13.mo for connectors containing arrays.
cd4c59c08Peter AronssonFixed stack overflow bug in mofiles/DependsRecursive.mo
27385ecd7Peter AronssonFixed bug with lookup of constants in packages (infinite recursion, mofiles/Constant10.mo) Fixed bug which allows to write parameters or variables in packages (mofiles/Constan09.mo) Fixed bug with floor and ceil. (Should return Integer not Real, mofiles/Constant3.mo)
cb80de6b1x02lucpocorrected diagonal_real_array and diagonal_integer_array
1d22022bex02lucpoadded EXTRA_SIMOBJ to compilation
693922f2fPeter AronssonFixed bug with function argument having same name as function. See testcase mofiles/Function10.mo
bf014d516Peter AronssonFixed bug with multiple declarations, see testsuite/mofiles/MultipleDeclarations.mo
5c9298357Peter AronssonFixed bug with infinite recursion in lookup. See packages2.mo in testsuite. Cleaned up lookup code a bit.
a4539e4dePeter Aronssonpartly fixed bug #105 (1 and 2). Fixed bug with looking up external object. Fixed bug with sign bultin function.
5c8b937daPeter AronssonChanged interactive commands such as simulate, buildModel, etc, evaluated in Ceval to use automatic quoting (changed to Code AST construct).
0c7ba6184Peter AronssonFixed bugs with external object and new impl. on strings.
dcdb4c31ex02lucpopartial implemented parameters and algebraic string handling
303029fe7x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2429 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
3944c4b3aPeter AronssonFixed bug in lookup of constants in packages throuh inherited classes. Partly fixed bug in array equations.
dd08d14b7x02lucpoimplemented -s settings.mos
b68dd149cPeter AronssonMoved getVersionNr function to Settings.mo Fixed ExtObj.mos testcase (added missing file)
98ae67f31Peter AronssonFixed bug with algorithm sections (algorithm.mos) Fixed bug with non-linear equations (simulation2.mos) Implemented getVersion() interactive call. Implemented omc.exe ++version or ++v returns version number.
83d360144x02lucpomade things compile
66be264a2Peter AronssonAdded cache to almost all functions that has something to do with lookup and instantiation. Packages with constants now translates much faster.
5eb8e60b1x02lucpochanged implementation of Static.elabBuiltinSum to handle also sum(3.0) this generates an warning
ae53bfeaex02lucpoadded public function dumpDAELowEqnList
b6d8ee2acx02lucpoadded so that subscripts with param are evaluated to value
25d0c02c6x02lucpocorrected an error in symplify: x+x+x+x+x (integers) became 5.0*x which made subscripts with exp not working. now it returns 5*x
34a061623Peter AronssonExternal declaration annotation can now be given with semicolon between the annotation and the declaration.
a7a90ef48Peter AronssonFixed more bugs with set/getExtendsModifierValue and getExtendsModifierNames.
61fd0dcc1Peter AronssonFixed bug with get/setExtendsModifierValue (MC bug 598)
6dbe0070aAdrian Pop- fixed: SimCodegen.c(15717) : fatal error C1061: compiler limit : blocks nested too deeply - the function: generateInitializeDeinitializationDataStruc was SF, common!
997dec6d6Peter AronssonImplemented External Objects, testcase mosfiles/ExtObj.mos.
93053ff73x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2396 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a4ed1ad43x02lucpoadded isRealParam and isNonRealParam
956fbdb8ex02lucpocorrected an error on ASUB simplify
9ab5b2579x02lucpocorrected a bug that made compilation fail
79d6e05e8x02lucpocorrected a bug concerning the " constant Real Coeff[3]={-5,-5,-5};" this could not be instatiated because Coeff[2] could not be found
0c1327894Peter AronssonFixed additional bugs for get and setModifierValue (MC bug #592)
ac7231904Peter AronssonFixed MC bug #592: setComponentModifierValue, Removing "outer" modifiers messes up modification. Fixed bug in Derive (implemented differentiation of sin and cos in differentiateExpTime.
7d57dc994Adrian Pop- fixed a bug in systemimpl.c that caused an endless loop in System.stringReplace - fixed the OMShell code to compile on Unix (added OMShell.pro)
e886df8f7Adrian Pop- free() in the Linux version.
24575b502Adrian PopUpdated the XML part with the latest version of ModelicaXML and FlatModelicaXML
a4ac4c3d7Adrian Popremoved this old ModelicaXML version
2b5cce6b8Adrian PopFixes due to refactoring of component names in Exp.mo records
3ef8adb01Adrian PopFixed these bugs: http://bug.modelicacommunity.org/show_bug.cgi?id=91 => the expression was not printed right: UMINUS(_, (n-1)) was printed (-n-1) instead of -(n-1) http://bug.modelicacommunity.org/show_bug.cgi?id=92 => 1+(1/y)^2 put the compiler in infinite loop These triggered modifications of 2 models from testsuite as the simplification is not the same now: => testsuite/mofiles/drmodelica/VanDerPol.mo => testsuite/mofiles/msl/Gear.mo
c041dbf69Peter AronssonFixed so PATH is extended, not reset by Compile.bat
db398d4e2Peter AronssonFixed bug in getExtendsModifierNames. Added testcase NamedArguments.mo
175e93450Adrian Pop- fixed plotParametric(x, y) instead of plotParametric({x, y})
5423acfc1Adrian Pop- erased omc_interactive_api.txt text and replaced with a reference to the Users Guide - fixed a small mistake in the debug/Makefile.in - replaced the OpenModelicaSystem.* files with the new versions from Peter F. hacked a little by me
257625340Adrian Pop- got rid of .nb files from windows Setup.vdproj - added Switch.mo to the Setup.vdproj - moved all non-overlapping models from testmodels/*.mo to Examples/*.mo + preparing to delete Setup/testmodels/ - moved UsersGuideExamples.onb from testmodels/ to Examples/
2d4c3704cPeter AronssonFixed MC bug #590
38c7c4fe3Peter AronssonFixed MC bug #589
72a449e7cPeter AronssonFixed MC bug #588
6be39ae47Peter AronssonFixed bug with unconnected flow variables. Fixed MC bug #572.
aa933ea0cAdrian Pop- fixed for Linux!
43889112dAdrian Pop- fixes for Linux! - please don't use makefile.mingw in the Makefile as it breaks on Linux, instead, used make -f Makefile.omdev.mingw - changed also in build_mingw_libs.bat to use Makefile.omdev.mingw!
55c6fd670x02lucpoadded double vector with residuals in the DATA struc
4fb215d1ex02lucpocommented some code
f57765f41x02lucpochange the generated code to use one structure for simulation data
18266c691Peter AronssonFixed bug with arrays in flow variables in connectors.
f6bc54654Peter AronssonPartly implemented support for ExternalObject.
7eec58061x02lucpoadded a rawStringToInputstring for changing from \\ to \ and \" to "
b6b34115fPeter AronssonFixed bug in lookup of classes from inside functions. Cleaned up some comments.
53544943dAdrian Pop- fixed some 'end ident' that did not match 'function ident' - there is not testsuite/mosfiles/Constant7.mo so I changed Constant7.mo to Constant6.mo in testsuite/mofiles/Makefile
0b51b0bfcPeter AronssonSpeeded up instantiation by changing implicit instantiation of functions. Before it instantiated whole function, now when performing lookup, only class definition of function is added to environment. Also fixed minor bug with echo.
4b4c358c0Peter AronssonImplemented getDocumentationAnnotation.
a886acd05x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2336 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
b12b42f1ex02lucpoChanged build_mingw_libs.bat to use omdev-mingw Ceval are using Settings.mo setEcho to use echo removed some prints in ClassLoader.mo Interactive.mo are using Settings.mo for echo System has how strncmp to optimize things
5a6fc7cbaAdrian Pop- corrected to: end varDiscreteAttrInt; to get rid of the warning.
f6c8a5298x02lucpoChange to compiling with mingw
ae7544c85Peter AronssonMinor fixes. Moved list function to interactive to speed up model editor.
f0f5a3559Adrian Pop- conform to Modelica grammar unary operators has to be enclosed in ( -x ) if they appear in the right side of an binary operator
f5bdf7d43Adrian Pop- optimizations and update of product code in Uninstall.bat
fad417616Adrian Pop- updates so no OMC_BUILD_FROM is used. Also got rid of all the .rml compilation section. - small updates to readmes
07abe6d2cAdrian Popfixed a small mistake.
12f5b4506Adrian Popgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2320 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
cc94a26b2Peter AronssonTranslated all RML files to MetaModelica.
c524bd8d4Peter AronssonDeleted since autogenerated.
33991003fAdrian Pop- changed in Derive.rml: SimCodeGen.rml -> SimCodegen.rml otherwise the compilation on Linux fails.
a2be60e3fAdrian Pop- better instructions on how you can run the testsuite from Eclipse or MSYS terminal
a669d1d68Adrian Pop- added instructions on MDT installation.
929cdb0bdAdrian Popupdated instructions for compilation using OMDev-mingw package.
1a5a9578cAdrian Pop- new project sample that has no modelica syntax checker builder.
c3c21207cAdrian Pop.project and .cdtproject samples to work with C/C++ perspective.
bacb4bb7aPeter AronssonRemoved print message in get_pathed_class_in_program
79dc92c28Adrian Pop- fixed so that pattern = arrayNth(arr, index); is dumped as: pattern = arr[index + 1];
948055820Adrian Pop- added more stack to the translator
65e70b1c7Adrian Pop- fixed the (x => y) option problem in the translator - fixed better escaping of rml comments to MetaModelica strings.
1db0c7e2ePeter AronssonFixed bug in functionDAE_res. Now old values of derivatives are used as "guess" values.
3a67029aaAdrian PopSmall .rc modification. Added some optimization flags to the compiler.
e3a8d5aa0Peter AronssonAdded special case for pre in nonlinear residuals. The variable in pre should not be replaced in this case.
4cfc5d368x02lucpofixed a bug in load_file. Under windows the loading of packages could not handle filenames with "/" only with "\"
b38a5bee3x02lucpochange the name of some dummy-var from der_a.b.c to a.b.der(c)
4e3d86d05Peter AronssonFixed bug when giving integer values to startTime and stopTime.
4e668759fx02lucpofixed an error in generate_makefile
a30e1ac22x02lucpochanged the makefile to contain the path to dir of mo-file in include and libs
66be270d8Peter AronssonFixed minor bugs for codegen of tempInterpol function.
cc8cae62aPeter AronssonRemoved some print statements. Reverted luc change of der_x to der(x) in Variable name. Now uses der_x again. It did not work with defines to have parentheses.
f22b6e76cx02lucpochanged the name of dummyder from der_a.b.c to a.b.der(c)
36ff1af21Peter AronssonImpl. support for Modelica.Math.tempInterpol1, including improved handling of arrays in simulation code.
a08e39e80x02lucpocorrected an error in rename_class
c69794a7bAdrian Popfixes local declaration when variables are actual val declarations
4ff7f09e5Adrian Popadded OMCMonitor to trunk/tools
60b94be99Adrian PopNot needed, I will generate it again when we move to VC2005. Adrian/
6bc849259Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-03-25 Quite some modifications to the setup project, the testsuite and RML to MetaModelica translator. OMC Stuff: ========== - taken out WinMosh from the modeq.sln (not needed). - fixed a new Uninstall.ico, i hated the one before. - added a link to OpenModelica website in the user menu, an icon for the url, etc. - added the converted DrModelica onb files to the Setup.vdproj. - made all .mo and .mos files have LF ending, otherwise Perl does not do well when checking the test results.
908f26692Adrian PopI fixed Codegen.generate_buitin_function to always use 'fabs' instead of 'abs', no matter what type the argument has. I did some tests and it seems to work on any compiler. All the tests go.
471a0af01Peter AronssonAdded testcases from MathCore testsuite.
af6158310Adrian PopFixed the imports as there are intermediate results from function calls that require additional module imports. Please DO NOT TAKE THEM OUT.
13ea30956Peter AronssonAdded better error messages when building. etc.
9da670ca1Adrian PopAs you can see here: http://packages.ubuntulinux.org/cgi-bin/search_contents.pl?searchmode=filelist&word=libantlr-dev&version=breezy&arch=i386 on Ubuntu Linux the antlr is placed in: /usr/include/antlr /usr/lib I added those in the search for ANTLR includes and libs. I found this out while I was helping Dietmar Winkler from TU-Berlin to install RML and OpenModelica on Ubuntu Linux.
82f11e26bPeter AronssonReverted errormessages in parse. Did not work in interactive.
459cdb2a0Peter AronssonAdded floor_rettype
4ec3b9cdfPeter AronssonFixed bug in generating zero equations for unconnected connectors. Fixed so parsestring and parseexpstr now also use new error message impl.
ad3e89a1fx02lucpoadded executable file name to generate_init_data
d08deade6Adrian Poprenamed to just have it as a guide
7cb6beb6bAdrian Pop- edited the README-OMDev-MINGW.txt to change the way we handle .project and .externalToolBuilder/*.launch
8a63b4d9fx02lucpooptimized rename_class
ebfd2c97aPeter AronssonFixed bug in intialization.
6db790fc9Peter AronssonAdded function bound_parameters to codegen to be used together with new initialization routines.
dc55b6163Adrian Popsmall change
6d316f2f2x02lucpoadded some extra macros for facilitating adding new source-files and flags automatically
94d37a2aeAdrian Popsmall fixes to vc7 setup and winruntime
d3bbcb570Adrian Popundated to Java names all the names of the external relations! please, if you add some other external relations do not use "_" in it at least until we move to MetaModelica.
7a8e3d99dAdrian Popcreated new project conform to MDT 0.6.0 and OMDev.
91a1fb6a2Adrian Popsmall timing modifications
0c5afe728Adrian Pop- reverted the getClassInformation(name) API to NOT return the class name
20b14ee69Adrian Pop- fixed Interactive.rml - get_class_information, missing a \" before class name in the returned string. - fixed omc_interactive_api.txt to agree with latest changes - fixed interactive_api_attributes.mos to agree with latest changes - fixed loadFileInteractiveQualified.mos to agree with latest changes - small modification to OMDev related Makefile.omdev.mingw and rml2sig/rmldep-new.sh
317532e18x02lucpochanged get_class_information to return the name as second arg
791ef35b0Adrian Popchanges to: - .project (removed the MDT builder) (uses OpenModelica as project root) - builder OMDev-MINGW-OpenModelicaBuilder.launch (now builds from mo directly and has as OMDev path /c/OMdev) - Makefile.omdev.mingw (don't copy serialization files are they are not generated, print the dependency generation time) - rml2sig/rmldep-new.sh give some messages and generation time
9b0cb2fa5Adrian Pop- removed unused imports from .rml files - fixed rml2sig/rmldep-new.sh to dump .sig instead of .rsig - fixed Makefile.omdev.mingw to not copy *.sig only *.srz to omc_debug and omc_release
69c5f153fAdrian PopAdded VC8 for compiling OpenModelica with VC2005
b9d3341caAdrian PopRemoved after it was copied to trunk/tools/rml2mod
ed0ddc888Adrian Poprelocated to trunk/tools/rml2mod
25b678766Adrian PopAdrian Pop: - relocate "xml" directory to "tools"
8326457d4Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-03-10 - updated RML->MetaModelica translator to latest version!
9c7ddd9edPeter Aronssongit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2199 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
8784e1c23Adrian PopAdrian Pop, - Added DAEEXT__clearDiferentiated to the ExternalRMLDefines.h
710df77cfPeter AronssonFixed bug in getClassInformation. Seems unneccessary to return class name since that is was is passed to function.
885d12d3cPeter AronssonFixed bug with clearing differntiated equations marks when running interactive.
d44dd5dc2Peter AronssonThe fixed attribute of a dummy derivative is now propagated (trough the constraint equation) to the state.
8b16e4f23Peter AronssonImlemented prototype initialization scheme using optimization.(Bernhard Bachmann).
0e8069c9aPeter AronssonImlemented prototype initialization scheme using optimization.(Bernhard Bachmann).
d50425adcx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2192 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a1578ea9dAdrian Popnot needed, copied on compile from Compiler/
a94d53877Adrian Popnot needed, copied on compile from Compiler/
342971894Adrian PopOMDev fixes
cb18bd9bfAdrian PopFixed an error that prevented generation of the .mo again when .rml are newer.
c8ab6af14x02lucpocorrected some errors for the new setup
f761ff9b3x02lucpocorrected the return value from renameClass
919bc4e8cx02lucpomade renameClass to return a string-list with the path of the changed classes
7da42ef6bAdrian PopJust text changes
5cab5d8acPeter AronssonImplemented residual function for intitial calculation.
55cfc9402Peter AronssonImplemented remove of simple equations after matching. Implemented propagation of initial values on dummy states onto proper states.
f50fb51c6Adrian PopAdrian Pop, 2006-03-01 Updated OMDev makefiles
e256fc8e8Adrian PopAdrian Pop, - small changes to make runtime and winruntime more uniform.
79afa70bcAdrian PopAdded script to plot from Linux.
f6f430cddAdrian PopRemoved file/folder as they were moved to doc/omc_helptext.txt doc/omc_interactive_api.txt
4340d8936Adrian PopAdrian Pop, 2006-02-26 - compilation on Linux, Cygwin, MSVC works now from SVN. All tests are OK. - big changes to compilation result structure: The compilation result has now the following structure: build/bin (omc, OMShell, OMNotebook, ptplot.jar, Compile.bat, Compile, doPlot.bat, doPlot, omc_helptext.txt) build/include (all the .h files from c_runtime) build/lib (all the lib* and libf2c/lib* files from c_runtime) build/doc (trunk/doc and Compiler/doc) build/doc/testmodels (all the trunk/Examples/*.* files) --------------------------------------------- - the makefiles now copy the needed files to the above structure after compilation - changed the rml files to use this structure when compiling, or plotting. - changed the rtest files to use the build structure when running tests - changed the VC7 setup to use this structure when deploying - changed mosh (changed its name to OMShell) to use this structure when running omc - added an install to the root Makefile that installs in what was give to configure --prefix=path or just ./install if none given.
b1d7f5f8cAdrian PopAdrian Pop, 2006-02-26 -added trunk/build with bin, include and lib directories. -modified makefiles to use these directories
79063e3d6Adrian PopAdrian Pop, 2005-02-26 Changed some Makefile.in to copy executables directly into trunk/. not Compiler/. Also now it uses EXEEXT in all the needed Makefiles. This change is to allow mosh to find the omc compiler in the OPENMODELICAHOME not in OPENMODELICAHOME/Compiler and to move forward to a structure like: trunk/build |-bin |-lib \-include meaning that all the needed files should be in the trunk/build directory after compilation.
3203576c8Adrian PopRemoved file/folder
cab31514bAdrian PopAdrian Pop, 2006-02-25 - fixed Linux compilation issues - fixed testsuite/mosfiles/rtest to call egrep without path. (you can't assume egrep is where you expect it to be) - fixed testsuite/mofiles/drmodelica/Makefile: InValid -> Invalid (Linux case issue) - fixed Compiler/absyn_builder/walker.g set k=1; (antlr-2.7.6) anyway we don't use any lookahead in the tree parser - fixed Compiler/Ceval.rml to use the .exe on Linux also, because it does not find the file to simulate otherwise
0abdf226eAdrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-24 - changed/added API functions + have a look at Compiler/interactive_api.txt or: - testsuite/mosfiles/interactive_api_attributes.mos - testsuite/mosfiles/loadFileInteractiveQualified.mos + changed getClassInformation API in Compiler/Interactive.rml + added getClassAttributes API in Compiler/Interactive.rml
b36552f3fAndreas Remar* fix include path when building with mico 2.3.12
b645b35f2Peter AronssonFixed bug in initialization. Now handles initial equation better.
cc48704c4Peter AronssonPartly implemented support for Modelica.Math.tempInterpol2 function.
2694ab8bcPeter AronssonFixed bug with type conversion (Integer->Real) in arrays. (MC bug 396)
4f6b136faPeter AronssonFixed bug (MC 461)
cbd2040f0Peter AronssonFixed bug (MC 411)
3fbd001fcPeter AronssonSee previous log.
5842ab095Peter AronssonFixed bug (MC 382)
18ab58aadx02lucpochanged the generate_init_data to use tolerance and output-steps
679552249Peter AronssonOne more bugfix for (MC bug 443).
4c43de17bPeter AronssonAdded error message for wrong type in modifiers.(MC bug 443) Fixed bug when turning of error messages in Inst.
5d56f87c3x02lucpomade loadFileInteractiveQualified work lazy
fc99aeca1Peter AronssonFixed bug with initialization and added some predefined types.
17baf44c0x02lucpoadded a settings-module for different global settings
dc6f9c72dx02lucpooptimize extract all components
7c77b83a0Peter AronssonAdded abs_rettype
a73761c78x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2140 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
aca248073Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-17 I hope this is the final version of the getCrefInfo! Changed: Compiler/Interactive.rml and testsuite/mosfiles/loadFileInteractiveQualified.mos There are no class* position info now. Instead they replaced the element* position info.
a06b483cbPeter AronssonFixed bug in generate_mixed_discrete_combination_values.
9ceda5adcPeter AronssonPartly implemented mixed system of equations. The solver now takes a tiny step beyond events such that mixed systems can be solved. Perhaps this can be done smarter in the future.
f1c71410bx02lucpodo not remove /B from exit
819821a8ex02lucpoimplemented rename_class to change the class-name in all the program
8533b6a1aDavid BromanAdded support for interactive versions of the "if" and "while" statement. Further, functions added in the interactive environment will now be type checked directly (not waiting until the function is called). Test cases are added to check the new functionality.
8ead64927x02lucpoadded load_file(string) => Absyn.Program in ClassLoader.rml. this loads the file or whole package
d209d29c7x02lucpoadded Rename-component test to test-suite
f1737cc57Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-14. I put back the position information of a class that is part of an element, because the element could be created, not parsed and has no position then.
8e5a9bb97x02lucpoadded Rename-component test to test-suite
18f94dd1fPeter AronssonFixes to luc checkin. Removed trailing '&'.
2f177521dAdrian PopSeems this file is really needed.
194c88080Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-14
323407e70x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2109 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
31441bd4dPeter AronssonrReverted if-equations.
a1382cb5fx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2106 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
572b06bebx02lucpocorrected a mul-array bug
90e14e218x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2104 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
c9cfc28ceAdrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-09 Fixed getElementsInfo interactive API. Fixed the testsuite/mosfiles/loadFileInteractiveQualified.mos Fixed the interactive_api.txt to follow the latest changed
6049ac3b3Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-09 Fixed so a trailing \" after an integer is not shown. changed Interactive.rml:getElementsInfo
26bd418d3Andreas Remar* added PANIC MODE error recovery to the parser. This breaks two tests (ParseError1 and 2) so those are temporarily fixed.
a6afc9e48x02lucpocorrected a div_array error
d6f2da79fAndreas Remar* make sure generated file is called 'a.exe' so you can compile in GNU/Linux (and other OS'es)
f2a5bf67aPeter AronssonImplemented support for structural if expressions. See mosfiles/structural_if.mo. The matching algrithm and strong components algorithm are are affected by this.
c34dc8876Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-08 Fixed winruntime/Error* to agree with the new ErrorExt.rml and new Absyn.INFO
149e4c226Adrian Popnew externals in DAEEXT.rml
651f1b688Adrian Popnew externals in DAEEXT.rml
784d6e492Adrian Popnew externals in DAEEXT.rml
9cb1bce5dPeter AronssonFixed bug (infinite loop) in building when equations.
992c674baAdrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-06 - changed Absyn.INFO(file, isReadOnly, startline, startcolumn, endline, endcolumn) - the endline/endcolumn is not very easy to get from ANTLR, so I just used the same values as startline, startcolumn for now.
f0d1633a1Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-04 This file is really not needed as is generated by ANTLR.
947961554Peter AronssonFixed bug in Bouncingball. Added n_bounce variable that counts number of bounces so testsuite is more robust
8dbb93a65Peter AronssonFixed bug with index reduction: already differntiated equations should not be differentiated again. Fixed bugs with event handling. Changed interactive api for comments.
abc7c1586Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-02 - fixed so that Makefile.omdev.mingw use rml2sig/rmldep-new.sh instead of rmldep.sh - fixed some text messages in the Makefile.omdev.mingw Makefiles that appear when variables are not set
2d46ccfd9Adrian PopWill be replaced by rmldep-new.sh which should be called by the Makefile.omdev.mingw Makefiles
e996e5ca3Peter AronssonRemoved adrians changes!
f4d988e3bKaj Nyströmupdated mostly comments and whitespace in order to simplify translation to MetaModelica
c8caef382Adrian PopAdrian Pop, adrpo@ida.liu.se, 206-02-01 Fixed the rmldep.sh script. It had a little problem.
f6d9460d6Adrian PopNot needed anymore as they were replaced by Makefile.omdev.mingw all over the place
dc3f43e89Adrian PopAdrian Pop, 2006-02-01 Added for JavaNames fixing in RML files
92cc092f3Adrian PopAdrian Pop, 2006-02-01 - based on a define I fix the java name for VALUES__reverseMatrix or VALUES__reverse_5fmatrix
2aede2b78Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-01 ----------------------------------------- -systemimpl.c modified to fix java names. -the modification is based on a define, so it will work ok in the normal case
9412a5701Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-01 - rmldep.sh changed so it is based on rml - rmldep-old.sh is present also there if you need it.
3f362aef9Adrian PopOMDev compilation files + Eclipse project + eclipse builder. ---- Adrian Pop, adrpo@ida.liu.se, 2006-02-01 ----
435bab355Peter Aronsson-Major rework in SimCodegen. Most parts now uses Codegen.generate_expression as they should. -Implemented assert and iniitial in codegen. - Event handling does no longer generate event code for discrete expressions, eg. pre(v) == 4. - Implemented special rule for differentiating a DUMMY_STATE variable. - Fixed bug with cardinality (covered in testsuite/mofiles/msl/Gear.mo) - Renamed mofiles/msl_1_5 to mofiles/msl as it now contains models from MSL v 2.2 as well. -Changed boolean represenation in c_runtime to be double so a boolean variable can be treated as an algebraic var.
12aecc321Adrian PopAdrian Pop, 2006-01-28 - mingw compilation issues fixes - cygwin/msvc still work
b5cac9361Adrian PopAdrian Pop, 2006-01-28 - fixes the compilation with mingw - cygwin/msvc still works normally
9c6a908ddAdrian PopAdrian Pop, 2006-01-28 - fixes the compilation of libruntime on MINGW32 - now it compiles using mingw make
c4f3dd76fAdrian Pop2006-01-28 - Adrian Pop, adrpo@ida.liu.se - added trunk/c_runtime/libf2c/makefile.mingw - the trunk/c_rutime/Makefile can call mingw32-make -u makefile.mingw in the libf2c directory in order to compile libf2c.a using msys+mingw
d9def15dfPeter AronssonFixed bug instantiating Gear. Inherited elements where looked up from current env which could be encapsulated. Instead it should be looked up from top scope since baseclass annotation already was fully qualified.
9289feac1x02lucporemoved a error in nestled DIVISION macros
15ec2df35Peter AronssonImplemented getClassInformation(classname) => {restriction, comment, sourcefile} setClassComment(classname,comment) setComponentComment(class,comp,comment) setConnectionComment(class,c1,c2,comment)
b6f627fd7Peter AronssonRemoved luc_pop last checkin since he removed a lot of my stuff from previous version. Also fixed bug with Gear model.
365914714Adrian Pop2006-01-24 adrpo@ida - changes to comments only - moved comments arround so they apper in the generated .mo files
e46af105aDavid BromanUpdated the help text, so that no line consist of more than 80 characters.
fedfecf09x02lucporemoved an error from getDiagramAnnotation and getConnectionCount on derived classes
6b7cf090dx02lucpomade the inst_element_list to continue even if inst_element failed.
63551f3eePeter AronssonFixed bug with bindings not getting automatic type converts in make_binding.
73138e3ecPeter AronssonFixed bug with setComponentModifierValue. fixed bug with instantiating partial classes in inst_class_basictype.
856cedbb8x02lucpochanged the generated code so that now it have instead of x[1] $a$pointb$pointd. (a.b.d) corrected a bug in System.string_replace
1edd1e9dePeter AronssonAdded symbolic simplification of matrix and vector operations (addition, multiplication, etc) in Exp.simplify Added symbolic simpl. in elab_builtin_diagonal Added elab_builtin_scalar.
179e030ecAdrian Pop2006-01-16 - adrpo@ida.liu.se - refactorings of .rml files to make translation easier + comment handling + types + imports
9f96ed072Peter AronssonImplemented connectors extending from basictypes (Modelica v2.2) for instance connector RealInput2 extends Real[2]; end RealInput2;
94b253826x02lucpochanged void to int in checkForDiscreteVarChanges(double *t); changed the position of using namespace std; in simulation_runtime.h made global relation c_add_cleanups : (CFunction, CleanupStatement list) => CFunction corrected the generation of code and added return statetements to all c-functions
6dadc5634Peter AronssonImplemented partial support for array equations on form v = foo(...). Other array equations should be flattened into scalar equations. Testcase: ArrayEquation.mos.
0f715fdf8Peter AronssonPartly implemented array equations. Fixed testsuite. Apparently someone has missunderstood the meaning of failingtests. Now all tests go through again....
d615de78cx02lucpocorrected a bug in division macro
80f48a17ax02lucpocorrected a bug in division macro
437e8dbe2x02lucpoadded DIVISION by zero check
c89628892x02lucporemove rem from "rem exit %ERROR%"
c377381eex02lucpoadded getName(double* ptr) to be generated in the c-code. This will be used for DIVISION macros. Redirected both stderr and stdout in the compile command to log-file
7e97d5dd1x02lucpoadded getName(double* ptr) to be generated in the c-code. This will be used for DIVISION macros. Redirected both stderr and stdout in the compile command to log-file
192bc54d4Peter AronssonChanged errorhandling to use the new Error module with separate error messages in large table and unique error codes. Client tools should use getMessagesString or getMessagesStringInternal.
d0ddda6caAdrian Pop2005-12-16 adrpo@ida.liu.se - added loadFileInteractiveQualfied to the Compiler/interactive_api
50d636847Adrian Pop2005-12-16 adrpo@ida.liu.se - added "loadFileInteractiveQualified" API + this returns the top names quafified with the path from within statement. - added loadFileInteractiveQualfied.mos and loadFile*.mo in the testsuite.
dcff6bfa9Adrian Pop2005-12-14 adrpo@ida.liu.se
6b6a8ef7dPeter AronssonFixed bug in connecting arrays of components. Added testcase FlexibleShaft.
cfc6b3116Levon SaldamliFixed nicer plotting. Fixed missing term for neumann/robin boundary conditions in Poisson2D, Diffusion2D in FEMForms Fixed implementation bug workaround for neumann/robin boundary conditions
ed2885e0dx02lucpomade calculate_param_sizes to use is_param. corrected the generation of variable names and comments
d3bb60816Peter AronssonRemoved error message from simulation record. It should be in error buffer. Fixed dr_modelica testsuite. (bugs in .mo files, etc).
ea323f44ePeter AronssonAdded bool value when lowering DAE. If true, add dummy variable to make sure at least one state is present. If false, no dummy state added.
54f670862Peter AronssonFixed bug with vectorized der operatators giving unwanted errormessage.
a7363f87dPeter AronssonImplemented promote in matrix constructors. (Testcase BC11.mo now works). Fixed bug in cat operator. cat(2,{{1},{2},{3},{{4},{5},6}}) now works. (matrices.mos)
d5fdea6dax02lucpoimproved compile_model relation
e2da957e5Kaj Nyströmupdated again withplotParametric
61620f347Håkan LundvallNew examples and usersguide
e988a03c9Håkan LundvallChanged so that the names of the external libs are put in a file named .libs instead of on the command line to the compile script. Otherwise system() in win32 fail.
8b4a895b5Kaj NyströmRemoved plotParametric for now until further investigations are completed
29eb03acdKaj NyströmBetter documentation and errorhandling in plotpparametric
3a8ee03c4x02lucpochanged the System.trimg in compile_model to System.string_replace
65484d69cKaj NyströmImplemented the command plotParametric
b5f6c2a70x02lucporedirected the stderr and stdout to .log
42dd8085cx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1988 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
6ca6f9998Peter AronssonFixed bug in setComponentAttributes Added initialization of parameters depending on other parameters (expressions of).
fdbf49af2Adrian Pop2005-11-24 adrpo@ida - windows stdlib doesn't have setenv, changed systemimpl.c so it uses _putenv("var=value")
ded4be47fAdrian Pop2005-11-24 adrpo@ida - added System.set_env(var:string, value:string, overwrite:int) - added systemimpl.c for System.set_env for both runtime and winruntime - added getEnvironmentVar("varname") and setEnvironmentVar("varname","varvalue") to the Interactive API in Interactive.rml - added help to those into interactive_api.txt
3ea048d5dx02lucpoforgot to add "setCompileCommand" to Static.rml
7bb11d980x02lucpoimplemented set_compile_command and get_compile_command reimplemented compile_model to use get_compile_command reimplemented Compile.bat and Compile to use the new way to call the compilation
ba3afc895x02lucpocorrected the generation of code to put out the correct values for different arrays
395a40989Kaj Nyströmminor updates
2cb0ed602Håkan LundvallFixed bug in transformation of if-equations
39ff25ae9Peter AronssonFurther fixes to ASUB bug in Exp.simlify. Added dummy state always present to make dassl happy if run with model without states.
bf0032f36Peter AronssonFixed bug with simplifying ASUB. Fixed bug for small equation system (array expandsion with expandedsize=0) Fixed remove simple equation bug (removing parameter)
f7632b6e8Peter AronssonPartly fixed MathCore bug no 345. (Constants in packages, etc.)
6d72b4b68Peter AronssonStandard math functions in Modelica.Math are not evaluated instead of compiled and run in Ceval.rml
eedd717a0x02lucpocorrected generation of varnames and parameters
040c3d16bHåkan LundvallTransformation of if-equations to expressions Updated helptext Updated setup-project
4c5a96c34Peter AronssonAdded better error messages to SimCodegen.rml
65508f46fPeter AronssonFixed rounding in ExternalLibraries.mos using floor and echo.
a7a8e7c3bPeter AronssonFixed bug with simulate, added extra parameter to fail cases as well.
3fb865b69Peter AronssonFixed bugs with whitespace when calling plot, etc. in windows.
0b55befb3x02lucpocorrected a bug in makefile: if a class where a.b.c then MinGW will compile the exe with the name a.b.c and NOT a.b.c.exe
187ed8f68x02lucpocorrected bug 337 mathcore
62877479fPeter AronssonAdded initialization of matrix and vector declarations.
fce530cbdKaj NyströmField names for Modelica+ inserted in comments
b8381c07dx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1961 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
710299817x02lucpoadded to build_model a rule so that it changes the dir to the file where the class is.
10f37dca7Peter AronssonImplemented Each modifier, testcase Each1.mo
81ce0e08ex02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1958 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
37c6875cbx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1957 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a728bbb0eAdrian Pop2005-11-11 adrpo@ida - added several relations to Interactive.rml and an API function called: getElementsInfo - read more in interactive_api.txt
0d37d3174Adrian Pop2005-11-11 adrpo@ida - added several relations to Interactive.rml and an API function called: getElementsInfo - read more in interactive_api.txt
5a2a929d9Peter AronssonFixed bugs with initial_function codegen.
2a1e499a0Peter AronssonFixed solving equation systems in output sections. fixed listVariables bug (not considering builtin variable $echo)
9a9053727Peter AronssonFixed bug #41. start values that are expressions are now calculated in initial_function. NOTE: Those start values can therefore not be changed from init file.
c11448797Peter Aronssonfixed bug in updateComponent (final, repl, etc.) implemented echo. echo(true) turns on echo of result in mosh, echo(false) turns off echo. fixed bug with connections (msl_1_5/BC8.mo now works. Added msl files to testsuite in makefile.
57a898c49Peter Aronssonstring replace impl. in cygwinruntime now also in winruntime.
8a662e3f9x02lucpochanged Interactive.rml to compile with VC7.1
995d2b30dPeter AronssonSplit evaluate_graphical_api into two relations so it compiles under Visual studio.
46d0e9ca2Adrian Pop2005-11-04 adrpo@ida - added getCrefInfo(cref) to interactive_api.txt
5878923a7Peter AronssonImplemented getClassRestriction in Interactive.rml, returns a string with the class restriction.
bc5b1bdb1Peter AronssonImplemented external function annotation Library and Include. Implemented setComponentAttributes. Cleaned up mosfiles testing by removing temporary files using system(rm -rf ...)
2d6a89330Adrian Pop2005-11-03 adrpo@ida - added get_cref_info relation - added API command getCrefInfo(cref) which returns the following format: filename,lineno,columno
681c79712Peter AronssonAdded annotation to external decl, needed for Library and Include annotation. Still need to do the implementation though.
d02a0193dAdrian Pop2005-11-01 adrpo@ida - bug fixing of walker.g for parsing of Modelica 2.2 with position info
d93395e07Håkan Lundvall- Added test case for events - Updated winruntime after changes in runtime - Added missing return statement in printimpl.c
e5fa18c91Peter AronssonImplemented constant evaluation of the following operators: vector cat transpose identity
a2c788fb9Adrian Pop2005-10-31 adrpo@ida - added Info datatype INFO(filename, lineno, columnno) - changed so that CLASS and ELEMENT uses the Info datatype - fixed everything in the other rml files - tested on the standard tests and passed
9becb6527Adrian Pop2005-10-31 adrpo@ida - added line/column info to CLASS and ELEMENT construction
7a6afdfe7x02lucpoMerged R1903 BRANCH into trunk
a943e76d6Peter AronssonImplemented vectorized calls of functions. Removed temporary hack for der operator. Testcases: Vectorizable1.mo - Vectorizable5.mo.
ce1cb2c32Peter AronssonFixed bug #2. Can not handle arrays of strings yet. Testexample mosfiles/strings.mos
422a4c1c7Peter AronssonFixed bug #32
bb297a235Peter AronssonFixed bug #9. Implemented cardinality.
7e7700c7fx02lucposwitched back includes in c_runtime to make possible compilation gcc
62ff637a8Peter AronssonFixed bug #37, Testcase Array10.mo. Fixed bug #38, Testcase Array11.mo.
6861e2f23x02lucposwitched some includes in c_runtime to make possible compilation with VC 6.0
beef0c5b1Peter AronssonFixed two unparsebugs, tuple assignments and elseif branches in algorithm sections.
8a9128254Peter AronssonFixed bug #36: merging of modifiers in redeclare. Testcases: Redeclare4.mo Redeclare5.mo.
e89f83feaHåkan LundvallFixed: Correct type on returned array from readSimulationResult Fixed: Prefix on crefs inside when-conditions
3cdcc14f6Peter AronssonAdded comment to constraining clause in Absyn. Relaxed Real literal construction in lexer, now accepts .1 and -.5. Fixed get_diagram_annotation bug in Interactive.rml
ac2140fb3Peter AronssonFixed bug #13, #34. Fixed so loadModel and loadFile returns parse error messages, if any, to error buffer.
bae01284aPeter AronssonFixed bug in getComponentAnnotations in Modelica.Blocks.Math.Gain, wrong order of protected and public components.
4854a24baHåkan Lundvall* fixed font in winmosh * plot with scalar argument * small changes i welcome text and about box
62b192bd9Håkan LundvallLast fixes before release of 1.3
5ae2effa7Kaj NyströmMinor fix, including exit help
f07bbb07aKaj NyströmMajor updates with reorganization and examples
44f58e540Kaj NyströmChanged license text
9f8bb8deeKaj NyströmChanged license text
c5476bf43Håkan Lundvallupdated winruntime with changes made in runtime
4304a061aKaj NyströmFix for reading result sizes
060066a25Kaj NyströmImplemented readSimulationResultSize in the Interactive API
2d0a465abKaj NyströmImplemented readSimulationResultSize in the Interactive API
14d6fbbeeKaj NyströmImplemented readSimulationResultSize in the Interactive API
b773cc334Håkan Lundvall* noEvent * sample * updates of installation project
971798d3dPeter AronssonFixed bug in print_exp_cpp_str for EQUAL.
94a003556x02lucpoimplemented a buildModel function that only compiles the model without simulating it. added a setClassNamesForSimulation to use when to clients of omc collaborates
8d467e3b9Peter AronssonAdded check/error msg of lowering IF_EQUATIONS. Added noEvent as macro in modelica.h
9c4cf7f96David BromanAdded a textfile README-WIN32.txt, which explains step-by-step how to install and compile the OMC under Windows.
35c34218aPeter AronssonAdded der(abs(x)) = der(x)*sign(x) Added Exp.traverse_exp (generic expression traversal)
cc385a47eHåkan LundvallFixed bug in generated code for interactive function calls.
305bcb45fHåkan LundvallMerged event handling (only in dassl) Use omc +d=noevents to disable it.
43f7ed2cdPeter AronssonImplemented POW using libmath pow. Fixed bug when translating dae having variable x[] or y[] or xd[] or p[] defined in the model.
60751c9e4Peter AronssonFixed temporary hack for der(vector) and der(matrix) since vectorized calls not impl. yet. Fixed bug in builtin attributes, e.g. start, min, max, etc. Fixed bug in placement annotation in Interactive.
2c87c7891x02lucporemoved \bin from the path
932666348x02lucpochanged the name of derivative from der(a.b.c) to a.b.der(c)
175032e93Peter AronssonUpdated Upgraded parser and Absyn to Modelica v2.2
29bab25c2Peter AronssonFixed bugs with external functions in simulation code. Fixed underconstrained initial equations, etc.
8e347757dPeter AronssonRemoved debug prints. Added initial_function call in solvers. Removed faulty impl. for functions returning one argument.
a7bfc7aa4Peter AronssonAdded calculation of initial values from initial equations. For now, the initial equation system must be consistent. No additional equations are currently added, e.g. x=0 for some uninitialized state x.
70568d526Peter AronssonFixed bug with citation quotes on simulate command. Improved code generation of functions for simulation code. Added calculation of simple equations in simulation code. Fixed comment bug in comments from variables in simulation code.
3cf7d77f8Peter AronssonFixed bug in not resetting class file string after parsing. Changed "NoFile" to empty string when no class file present.
1ca372c2fx02lucpocommented an addition to traverse classes
fb3984952Peter AronssonFixed bug with tuple assign.
4bac2c3e7Peter AronssonFixed bug with unary array minus and plus.
3715032ecPeter AronssonMerged 1875:1878 on petarstructparam. Structural parameters are now dealt with by giving modifiers both value and equal binding.
575186603x02lucposimcode contains now also the comments of the daelow.var
cfe8fbdf2Peter AronssonFixed nicer printing of Env
2a9a46ec1x02lucpoimplemented translateModel
846eb9d7aPeter AronssonFixed bug in Interactive getComponents function. Fixed bug with self referencing variables. Fixed DAE output bug.
41420fcfbPeter AronssonChanged getComponents in interactive interface to return more information.
572b7a19aPeter AronssonAdded documentation to -all- relations. Improved documentation on some rules. Removed dead code.
fd95e791fx02lucpoadded trim to System.rml
1ff50f6e1x02lucpochanged dae.dump_type_str and exported Interactive.evaluate2 as public
3d6f0600aPeter AronssonFixed bug in make_sum and make_product.
9a89b8146Peter AronssonFixed bug in differentiate. Fixed bug in simplify of IFEXP.
0ed581c7cx02lucpoimproved is_non_state(VarKind)
ca6a1f5cfPeter Aronssonmade var_equal public.
b9f678f83Peter AronssonFixed bugs in simplify.
3e067b3acx02lucpoimplemented get_var_using_name for getting a DAELow by its old name "a.b.c" and not by indexed form
9d7382592Peter AronssonAdded set_varkind, fixed bug in derive.rml
54f85cc17x02lucpoimproved the building procedure and added some useful relations
cd7cc3becPeter AronssonFixed more bugs in simplify.
30c211851Peter AronssonFixed several bugs in simplify + minor enhancements to DAELow
f7343d98ex02lucpoimproved the simulation command to output to output.log
9ce238363x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1849 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a2f51e13cx02lucpoimproved the makefile.vc with clean and rebuild
13312e6bfx02lucpoadded build_within to global space
5e92101c1x02lucporemoved a bug in remove_first_and_last_char
0501b7c79Peter AronssonFixed structural parameters for if-equations.
8f431bcc6Peter AronssonFixed several bugs in import, lookup, etc.
7ff2e5e4dx02lucpoimproved some error-msg
9398cc07dx02lucpoadded a function named write_file_or_error_msg
01c88855fPeter AronssonFixed import bug for constants. Fixed intial if equations.
baf381dddLevon SaldamliAdded matlab scripts for automatic femlab problem generation
6589afe73Peter AronssonFixed bug when recursive use of component size as in Real x[:](min = fill(1.0,size(x,1))={1.0}; Added two testcases.
55de99a12Levon SaldamliAdded some parameters for PDE and for heat transfer. See MyGenericBoundaryDiffusionTest4
66138179ePeter AronssonFixed bug in elaboration of min and max. Implemented imports of constants/variables from packages. Fixed some error printing.
1b2f0271ex02lucpoadded libf2c to compilation
0076e302ax02lucpoAdded libf2c for simple access from c to fortran solvers
68ada34a5Peter AronssonAdded special case for code generation with no parameters.
1a5a8fe32Peter AronssonFixed bug in start_function
82f7613f4Peter AronssonFixed bug with input variables to models. Fixed segfault when writing open file in windows.
d85f508beLevon SaldamliFixed neumann and robin boundary conditions. Fixed bug with extra blocked boundary values by patching the mesh so that it is consistent with rheolefs way of handling blocked edges. Rheolef blocked end points of edges that are blocked, if the end points themselves are not blocked. So we fix this in the mesh after reading the mesh, see PDEbhjl.FEMForms.Autonomous.Diffusion2D.
dd8eac4a5x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1827 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
4b4dc1bebx02lucpoadded a function in the code-generation
2aa80aa78x02lucpomade is_non_state to return a bool
0a2fbb8f5Peter AronssonFixed bug in model inputs. They can not be removed in remove_simple_equations.
cb6040aacx02lucpoadded a output function to generated code
871cd6c0dPeter AronssonChanged so top level inputs are not part of model equations, but instead must be given as input "parameters" in input file. Also removed errobuf flag so error printing is allways done if main fails.
089d6f7f9x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1820 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
50a9bf379Peter AronssonAdded solution to nonlinear systems in explicit ode. Added testcases.
73ee85789x02lucpoadded -DCYGWIN to cflags
18e524564x02lucpoimplemented in System.rml relation platform which returns either the string "CYGWIN", "WIN32" or "" depending on the platform.
15b5e1114x02lucpoadded a relation for printing an exp option to string
65614e8d4x02lucpoby including read_write.h after windows.h removed some kompiler errors.
a8360a243Peter Aronssonforgot to add the file..
82b20200dPeter AronssonLinear subsystem of equations now works. Also added explicit euler solver method, accessed using -m option to executable.
6eae7f06cx02lucpoadded start_function to the sim-code generated that contain the equation for start-exp
393d48174x02lucpoadded start_function to the sim-code generated that contain the equation for start-exp
a741eb4e4Peter AronssonFixed bug in derive.rml. Worked on solving linear equations in SimCoden.rml.
3a58660b6Levon SaldamliUpdated some scripts and added Composite6. Added a test model (...3) for testing time dependent dirichlet bc. Added Readme.txt with installation instructions.
de3df4ce7Adrian PopAdrian Pop, adrpo@ida.liu.se 2005-06-12 Fixed so that: - server_loop - server_loop_corba are completly deterministic. Please, if you add things to the first rule of these relation add it also to the second rule, otherwise the RML doesn't turn the two rules into a conditional.
72311942fx02lucpoimproved the simulation code and added a check to remove_simple_equation2 to leave the equations that contain a variable that is on top-level an the direction is output
a4d3b3725x02lucpoadded a check to variables of remove_simple_equations: if a variable to be removed is output then the equation is not removed
a103f3fcfx02lucpomade some relations public
464c131bcLevon SaldamliChanged modeq to omc everyhwere, updated source. Renamed build directories for modeq to omc. Updated VC7 projects and solution as well.
ece3a3ab3Peter AronssonAdded interactive function save, that saves a package structure or class given that it already has a filename associated with it. Also made some progress on explicit ode impl.
a48b0b3e0Peter AronssonFixed bug in DAELow.lower_varkind, etc.
311e76586Peter AronssonFixed bugs in Codegen for nonlinear systems.
057357967Peter AronssonAdded StructualParam1.mo, removed print from Inst.
36f39ddf8Peter AronssonFixed bug in finding structural parameters. Started codegen of explicit ode in SimCodegen.rml
e95e464fbPeter AronssonFixed bug in structural parameters. Added testcase StructuralParameter1.mo
eaf260d04Håkan LundvallSome steps towards finding zero crossings
972d98c5cPeter AronssonFixed bugs in setComponentModifierValue and getExtendsModifierNames.
6fcd5b7caHåkan LundvallMade DAELow and SimCodegen handle variables marked discrete
45e95660eHåkan LundvallAdded when clauses to DAELow.DAELow
405579d66Håkan LundvallA small step towards hybrid simulations
b9c80e6d3Peter AronssonFixed bug in make_fully_qualified.
4321eddf6Peter AronssonFixed bugs in get/set XXX ModifierValue. Implemented get/setSourceFile.
103985254Levon Saldamlimodeq directory path changed to Compiler
78e797447Levon SaldamliMoved directory modeq to Compiler. Updated references to the modeq directory so that they refer to Compiler/ instead
db5de8c84Peter AronssonFixed bug in setExtendsModifierValue and setComponentModifierValue
f09937350Peter AronssonAdded some rules to simplify.
42a053c96x02lucporemoved decrypt and encrypt
392e3415dx02lucpounparse_class_list moved to global
aeaf5deecx02lucpoadded add_to_public to global functions
4cded24f6x02lucpoadded remove_first_and_last_char(string) => string
c68f68bffx02lucpoadded remove_first_and_last_char(string) => string
acf8f261dx02lucpoadded remove_first_and_last_char(string) => string
a2cbc2cccPeter AronssonFixed so that Code(()) clears modifiers in setXXXModifierValue.
01b386995Peter AronssonFixed bug in Inst.make_fully_qualified
da673eda5Peter Aronssonsmall changes to Exp, added nominal getter in DAELow
dc49e2a83Kaj NyströmRemoved dead code
79ee82e45Håkan LundvallFixed with statements in Absyn.rml
4f2beb397Peter AronssonChanged extracting and changing modifiers in Interactive
3f56c2829x02lucporemoved an wrongfull check for file-existance
ed6867872Peter AronssonRecursive functions no longer gives stack dump when entered interactively.
e19cd67c7x02lucpochanged an include from ../ast/yacclib.h to ../absyn_builder/yacclib.h
6c995002fKaj NyströmRemoved unused include
ee5f64820Levon SaldamliRemoved deleted directories from configure.in and regenerated configure
54e149b04Kaj NyströmRemoved stupid example
920d79880Kaj Nyströmkilled by death
eb4f975ccKaj NyströmKilled by death
b94ed79c9Kaj Nyströmkilled by death
2fad17eedKaj Nyströmkilled by death
e9140748eKaj NyströmKilled by death
a09e81598Kaj NyströmKilled by death
f36510a11Kaj NyströmPIGS
722bf8b4aKaj Nyströmkilled by death
a4bc0d274Kaj Nyströmkilled by death
18bf102e7Kaj NyströmWay to out of date to be useful
e2de91aa4Peter AronssonSome stuff in Codegen
a6d507e93Peter AronssonFixed stuff for modpar
7ceb05f23Håkan LundvallChanged names on rml-files
dc1ea922ePeter AronssonFixed the stuff removed in luc's merge.... :(
fb2422cd4Peter AronssonChanged get_modification_names to new design of getting modifiers.
7ad74d985Peter Aronssonremoved comment that messed up indentation...
602f823a4Peter AronssonAdded string separator relation in util. Added rule for printing x^2 as x*x
935196854x02lucpomerged HEAD with 1723 from branches/x02lucpo. Fixed comments on flat modelica and loadFile + loadFileInteractive
0f226d95aHåkan LundvallUpdated som version numbers and the setup project
6b7a01e64x02lucpobranches/x02lucpo and trunk are merged and tested
c25ee67c2Håkan LundvallFixed bug in VC7 solution
debf1217bHåkan LundvallChanged MOSHHOME to OPENMODELICAHOME which shuld point to what ${MOSHHOME}/.. used to be. Also deleted some more (hopefully all) of the tornado stuff Deleted the old modsim module. Fixed Ctrl-C and Ctrl-V in WinMosh.
f6dd7235ePeter AronssonUpdated documentation.
076a035a1Peter AronssonRemoved tornado specific code from trunk. Now only exist on branches/mathcore_tornado
674247039Peter Aronssonmade a copy
6ec3e018fPeter Aronssonmade a copy
3d7d1c9efPeter Aronssonmade a copy
269432077Peter Aronssonmade a copy
87f9f7e8bPeter Aronssonmade a copy
76ef498faPeter Aronssonmade a copy
483f4feb4Peter Aronssonmade a copy
46b9ffdc6Peter Aronssonmade a copy
e1f565045Peter Aronssonmade a copy
8daa89aa3Peter Aronssonmade a copy
6d9159c4cPeter Aronssonmade a copy
43578155aPeter Aronssongit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1692 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
64d2c3460x02lucpoafter merging openmodelica/x02lucpo with trunk. Improved simplify and differentiate.
f097a83d6Peter Aronssondefined hybrd
3c626f0e7Peter Aronssonallmost finished with nonlinear systems in modpar
6f9a62abcPeter AronssonAdded code for solving nonlinear systems.
a49075ddcPeter AronssonAdded calculate_jacobian
be3efd307x02lucpomaking derive work
3a2820303Peter Aronssonfixed bug in getComponentModifierNames
d76e26383Peter AronssonPartly impl. nonlin eqns. in modpar
49b98e852Peter AronssonFixed so getExtendsModifierXX uses FQ names.
aac3bdd5aPeter AronssonAdded XXExtendsModifiers
d35e13752Peter Aronssonunparse_mod...
ecc97790dPeter Aronssonadded setComponentModifier
daf8c0534Håkan Lundvall*** empty log message ***
34796d0a8Levon SaldamliSmall fixes
da346cfb3Håkan Lundvall*** empty log message ***
9211123f4Levon SaldamliFixed Makefile in testsuite/mofiles and moved failing tests to a separate target
2c91bbabaLevon SaldamliFunction call fixes. Tuples support added. Testsuite extension for c compiler flag support. External function tests ExternalFunction1.mo ExternalFunction2.mo ExternalFunction3.mo
d507d2d49Levon SaldamliSome function call tests added to testsuite
adaf3cb80Peter Aronssonadded
1901bb5f3Peter Aronssoncompile scripts now outputs to /dev/null
d2cc462f0Peter AronssonRemoved extra newline in record output.
23d8e21ffPeter AronssonAdded solving of linear systems in residual form.
5d0e1e369Peter Aronssonimpl. getComponentModfifierNames
ef9d65e07Peter AronssonFixed bug with constant
d9913857bPeter AronssonAdded api for parameters
4e4b726fcHåkan LundvallSimulation return now 1 if simulation is interupted before stopTime is reached.
11092774cHåkan LundvallParanthesis around (a)?(b):(c) in code generation.
be3546f6cHåkan LundvallQuich hack for allowing boolean parameters in the indata file for simulations
76edad741Håkan LundvallFixed so that modeq returns status code != 0 when execution failes
4228a71fcPeter AronssonRemoved print
b3f10073cHåkan LundvallSplitted generation of sig files into seperate makefile
c4bc62ac1Peter AronssonFixed bug in elab_cref, equalbindings should not be constant.
c5f5f6e26x02lucporemoved () from variables without start, unit and so on
02da6b655x02lucpo*** empty log message ***
5290648cePeter Aronssonadded include of parent directory, used by tornadoext.cpp
4205fb3daLevon SaldamliFixed type error for ceval_if_constant generated values
cbb663d27x02lucpocorrected a submodelindex error
c3622cb9fx02lucporemoved a compile error
099d20021x02lucpochanged ^ to accept reals
10752b69ax02lucpoadded some print thingies
aa7ef0374x02lucpoadded dae-attributes with extraction from variables
ea9a552c3x02lucpoadded relation get_option_with_concat_str: ('a option, 'a => string,string) => string
ae3b16625x02lucpoadded attributes and dump- relations for them
36ad08892x02lucpomoved is_string_empty to util and added also some more function to Util.rml
53a198f5bLevon SaldamliBugfixes. Cleaned up ceval_builtin.
a90748268Levon SaldamliFixed printing of #|Execution failed, which is needed for rtest
513888fbcHåkan Lundvall*** empty log message ***
85c1ea998Peter Aronsson fixed parse error message
dce4b06edHåkan LundvallFixed so that VC7 compiles without cygwin
5b2b6e878x02lucpo*** empty log message ***
a8468dadaHåkan Lundvallremoved ^M from licence texts
2a4e80b1aHåkan LundvallFixed doPlot.bat can run without PTII being set
0e6e3b66dHåkan LundvallFixed so that instantiateModel of non existent model returns an error
829837012x02lucporemoved a error print when models with start-attr
3b5e385b6Peter Aronssonfixed error messages when plotting.
e873d7909Levon SaldamliCompile time function evaluation
5813ea9dcPeter AronssonFixed plotting bugs
ce344f871Peter Aronssonremoved define of time
2093c276bPeter AronssonFixed icon annotaiton bug again...
a5a17717ex02lucpocorrected error with enumation types
b9c2cc1e4Levon SaldamliTODO-list. impl flag fixes and some comments.
20134ea6fPeter AronssonFixed model editor interface bug, still need to clean up.
183ead989x02lucpoimproved extracting of attributes (unit, start...)
5e4b35baax02lucpoadded debug information
03acc920bPeter AronssonAdded by PA.
3a21bc26dx02lucporemoved a bug from extracting of var_attributes
8fe9f6141x02lucpoadded unit and type info to dae and daelow tested package support in tornado
42f267d6dx02lucpotested package support
1f4a39404Levon SaldamliImpl flag bugfixes. Fixed elab_range_type. Fixed matching problem for Icon in get_annotation_string
a9b37b205Peter AronssonPartly implemented constant evaluation of record constructors. Works for non-hierachical records.
ef6ffda89Peter Aronsson*** empty log message ***
c26f3b5b4x02lucpoadded package support
8cbee34b6x02lucpodivided the tornado-code-gen to two files. One that outputs the C++ code and one that extracts the data from dae and absyn.
300294d3cx02lucpodivided the tornado-code-gen to two files. One that outputs the C++ code and one that extracts the data from dae and absyn.
8a982c53dPeter AronssonFixed so math functions works.
6403b88aex02lucpoadded som comments and removed some dead code
f5dde261dHåkan Lundvall*** empty log message ***
f52a39050Håkan LundvallChanged Licence text
ae68aa574Håkan Lundvall*** empty log message ***
bc671c086Levon Saldamlierror message
49557435dLevon SaldamliSimulation working. Example: test_codegen/simtest.mo
8c206dbc6Levon SaldamliSimulation test
c7eda5971Levon SaldamliMore tests
502977aaaLevon SaldamliBuiltin function calls like sin, sqrt etc called correctly
2afe4a3c9Levon SaldamliCode generation for function calls in simulations
4ab0927c0Peter AronssonFixed bug in POW
b95b3dcc4Peter AronssonRemoved some comments by PR.
c795c169bPeter Aronsson*** empty log message ***
6f0d78f4cPeter Aronssonpartly implemented rename_class
a79eaf57fLevon SaldamliFunction generation somewhat working
c5152790eHåkan Lundvallfixed so that simulation works with mingw
d29a8c5a0Håkan Lundvallfixed so that simulation works with mingw
a76205392Håkan LundvallUpdated to the new simulation scheme
02d1ad540Håkan LundvallChanged name of mingw runtime lib
9f119446cPeter AronssonFixed bug in calculation of alg. vars.
ac6e7469ePeter AronssonFixed bug in simulate in interactive mode
1dbd3f0f3Kaj NyströmUpdated documentation only
6095deb61x02lucpoAdded information for predefined types. Some implementation to extract the data from modification has been made but not called yet from a significant part of the program. (read it is not called at all from the main stream of the program!)
6c90aad06Peter Aronssonfixed bug in varname generation
30fa7792cPeter AronssonChanged error msg to error_buf. Plotting now working.
65ab5a237Peter AronssonFixed bugs, added time to result, etc.
35a63f022x02lucpoadded a check for tornado generation
22fbc707fPeter AronssonSimple algorithms now works to simulate.
d5a2b019ePeter Aronssonfixed bug in initial step.
2e6708e82x05simelAdded ptolemy plot output.
21e1e3571Levon SaldamliMinor fix
4ec8baa4aLevon SaldamliInitial function code generation support for simulation code
d8335c98dx02lucpomade all the equation of the form cref = constant to be outputed in ComputeInitial
d55959ee0Peter AronssonWorking simcodegen for DASSL
4cf99261fPeter AronssonAdded simulation runtime for DASSL
7c4338705x02lucpoadded support for 1-dim arrays in code-gen
f11cf11aax02lucpoadded a exists_var: (Exp.ComponentRef, Variables) => bool
ebc3aa878x02lucpomade print_component global
32be72c23Levon SaldamliThere is already one in modeq/TODO
3b7746589Levon SaldamliFunction generation and calling for constant functions during ceval
950857ba4Peter Aronssonfixed bug in generate_init_data
0655a9ba5x02lucporemoved a print
5099fa7d9Peter AronssonTried to fix bug in remove_simple_equations
d2c094ce3x02lucpocorrected a bug in index for different var-types
eef408e55x02lucpocorrected a bug in index for different var-types
a7edf52c6x02lucpocorrected a bug in index for different var-types
62421e0baLevon SaldamliBugfixes. Top-level make modified for debug and release. Changed default to release.
f89d832f2Levon Saldamlitemporary vctarget fix
8a0eb33aaLevon SaldamliBugfix
b8bbae650Levon Saldamlibugfixes
462ab13d5Levon Saldamlibugfix
198b53d13x02lucpoadded start-value on initial-vars
12ec39c82Levon SaldamliBuildfiles bugfixes
9e82f3daex02lucpoadded is_const and compute_initial_from_start_values
4a1f26ee7Levon Saldamlidepend file generated by make depend
5ab75a2f4Peter AronssonFixed bug in remove_simple_equations.
ba46a49d9Levon SaldamliAdded build directories modeq_debug och modeq_release under modeq. Default build target is debug. See all: in modeq/Makefile.in.
c95dc5acePeter AronssonFixed bug in elaboration of POW
c5ea1c70bx02lucpoadded pow
50db64d1bPeter AronssonAdded documentation
751a8b159Peter AronssonFixed asub simplification
8253cda00x02lucpoadded simulation_5fcg
a4fe01db9x02lucpoadded simulation_5fcg
73cd2084dx02lucpoadded simulation_5fcg
e4295ee1ex02lucpocorrected NoOutputVarValues error
848fcce5dPeter AronssonAdded better documentation
0bdaf4651Kaj NyströmDocumented entire file
35314504cKaj Nyströmremoved unused file
fdcab8e32Kaj NyströmAdded last parts of documentation
b6d8a0317x02lucpoadded get-functions to generate GetNoParams()
3381133ebPeter AronssonAdded generation of initial values in simcodegen
6670b37e0x02lucpochanged from _t_ to time
e5dc19de2x02lucpoadded startvalues to parameters
e903d40abPeter AronssonFixed generate_compute_output
53b890850Peter AronssonReimplemented breaking of blocks into dynamic and accepted section, by reachability analysis on strong components graph
8142ea35cx02lucpoCorrected a linkage bug
65de7fc19Levon Saldamlichanged tail -1 to head -1. First found should be used for some stuff
059556722Adrian Pop2004-02-07 Adrian Pop, adrpo@ida.liu.se added Makefile for building the yaccparser. change the RML path in the Makefile to make it work for you.
14e1d1450leistYacc parser grammar for Modelica+RML. First hopefully stable sketch. (Still a few FIXME:s left, though.)
c558e6f54leistUnified header file for the Modelica+RML yacc parser and its lexer.
ab27727e2leistLexer for the Modelica+RML yacc parser.
9354f08efAdrian PopStandard yacclib.h file for RML. 2005-02-04
705c75e8cAdrian PopStandard yacclib.c file for RML. 2005-02-04
870c4a460Adrian PopRML datatypes for abstract syntax tree, and related code. 2005-02-04
b5b6f3e90Adrian PopRML test program. 2005-02-04
65990896dAdrian PopMain file for dumping/refactoring testing. 2005-02-04
1292c1d1bAdrian PopLeif's RML dumper with changes by Adrian Pop. 2005-02-04
3aea687dbAdrian PopRML refactoring. 2005-02-04
b45d5471bAdrian PopGlue to call parser (and thus scanner) from RML 2005-02-04
7e158f6d5Adrian PopScanparse module, for debugging. 2005-02-04
7dba72e88Adrian Pop2005-02-04 Adrian Pop, adrpo@ida.liu.se fixed so it compiles with new the new changes in modelica_parser
ebd6f26c4Adrian Pop2005-02-04 Adrian Pop, adrpo@ida.liu.se Somebody added code for flat modelica and failed to add try{...} catch {...} statements. Also, some redundant code was removed H�kan pointed out this error!
be36ddf18x02lucpo*** empty log message ***
f7948a66aHåkan LundvallMade inst_element fail if lookup of the class failes
b4d544d01Håkan LundvallRemoved print out of class origin in flat modelica
3184ebae9x02lucporedone generate_simple_equations_links2
89e90ba4ex02lucporedone generate_links2
14819a004Håkan LundvallImport bug fixed
85282dc20x02lucpocorrected some errors in code-gen for tornado
5019b4631Peter AronssonFixed bug in vararray
6b618e71fPeter AronssonMade variable array expandable as for equations
b734529b5Peter AronssonFixed bug with linking
4fb6b8fd0x02lucpoimproved the design
22249b023Peter Aronssonfixed bug with tornado blt
85094e953x02lucporemoved prints
d2f66b7e4Peter Aronssonintial equations added to daelow, fixed bug in tornado.
5fdb1f1b3Peter AronssonAdded rule for arrays of components
78ab97d0bPeter AronssonAdded transformation of . to _ in identifiers
c70246079Peter Aronsson*** empty log message ***
09dcaa79dx02lucporemoved prints
2051f0fa9Peter AronssonFixed bugs when emtpy equation list
4a0f13940Håkan LundvallLade till s� att flat_modelica_parser blir med i vctarget
a0210a9a4x02lucpocorrected is_no_param to is_param
b102d7a89x02lucpoadded added some checks for linkValue when removing simple equations
48adc6459Peter AronssonFixed bug in remove_simple_equations and bug in reachable_nodes
bdac17de1Peter AronssonOptimized Equations in DAELOW. Fixed some stuff in Tornado. Added dymTableInit as builtinFunction.
a0270366bx02lucpoadded added some checks for linkValue when removing simple equations
eab85914ex02lucpoadded generation for TornadoDLL.cpp
ced107ee9x02lucpocorrected some minor bugs for Tornado
c609e9ffaPeter AronssonFixed sed bug originating from several antlr paths
dc8a0ad2cx02lucpoadded defines for subModels and link for star-variables.
dd7276a0ePeter AronssonGenerated links for simple equations
451311d11Peter Aronssonfixed bug.
2bf79dfe4x02lucpoadded hierarchical code generation
55875d1d4Peter AronssonChanged implementation of DAELow.VARIABLES from bintree to hashtable
83e1bf3dfKaj NyströmCleaned up debug printing
dea1207b1Kaj NyströmFixed nasty bug in ident recognition
51557f560Kaj NyströmFixed ordering bug
dbc8c7bbfLevon SaldamliRemoved boundary. Shouldn't be in main trunk. PDE stuff
ac32383fbKaj NyströmUpdated to reasoably working item
d5c8e8c74Kaj NyströmUpdated to reasoably working item
df51b07b4Peter Aronssonmoved code from tornado to simcodegen, new module for simulation code
fcbfa4478Peter AronssonAdded algorithms to DAELow
ae0f75187Kaj Nyströmflat modelica added
2cb8203b2Kaj Nyströmautomake ok
4b0793b4dKaj Nyströmnew flat modelica parser. Wohoo.
af1e7fda5Kaj NyströmRestructuring flat modelica parser
967a3b9b0x02lucpoadded some relations as public
3bdc5142ax02lucpoadded more functionality to tornado. Generation of hierarhical models
6c603cd2cAdrian Pop*** empty log message ***
1e1e68483x02lucpocorrected some bugs
f6134ccd8Håkan LundvallUpdated rml to 2.2.1 and made rml runtime part of the build
70b403275Peter Aronssonupdated.
9152676ebPeter AronssonSwitched to set implementation of vars/eqns in matching, etc.
160d97992Peter Aronssonupdated dependencies
8e7891142Håkan LundvallAdded instantiation of when equatons and if equations with non-constant condition.
7827b3c29x02lucpoadded some new relations
da2667240x02lucpoadded a comment... yay...
0bbb7fe11Håkan LundvallAdded rule for when-equations.
ceb95ab98Håkan LundvallAdded representation for if and when equations.
12c7b8ad5Peter AronssonFixed bug in fix_direction
9d1e0b853x02lucpoadded a check for how many generated var and made some changes to to model genration of variables
07634fdb8x02lucpoadded a check for how many generated var and made some changes to to model genration of variables
d9f980740x02lucpoadded a check for how many generated input var and made some changes to to model genration of variables
f8ec58e4fx02lucpoadded a check for how many generated input var and made some changes to to model genration of variables
e5f4e9688x02lucpoadded a check for how many generated input var
d352a24afx02lucpoadded get_input_var_number and get_output_var_number
4badb0abdx02lucpoadded tornadoext and corrected some bugs
6790ffe14x02lucporml-file for the cpp-connection
e7ed95d83Peter AronssonFixed bug in generate_parameters
d6c736605Peter AronssonAdded generation of parameters. Removed generation of simple equations.
d449c538aPeter AronssonConstant evaluation of functions is now done if all arguments are constant
102b24b84Peter AronssonFixed elab_exp so that numerical constant values are calculated.
3750f1bf8Peter AronssonFixed bug in incidence matrix. It now contains state variables as well, but they have negative index.
9ec82391bPeter AronssonFixed varDirection generation in generate_var_defines
856a02bf8x02lucpopartial commit for Petar
47ff30c22x02lucpoadded some missing function and a check needed for tornado code generation
5c0b755c5Peter AronssonAdded vartransform, for transforming variables in expressions
f558ba2c5Peter AronssonImproved variable impl. in daelow. More efficient matching alg.
bd7c0d146x02lucpoX-mas delivery
58f94bb87x02lucpoadded string_split_at_char
9cdece44cx02lucpoadded sorting of equations and a check for switching the name of dummy der in case of tornado from "der_" to "_D_
1c8386e10Håkan LundvallFixed small bug regarding locks.
2d0d7073bHåkan LundvallUpdated according to changes in runtime/systemimpl.c
00bd9112fPeter AronssonFixed DAELow.VAR bug
6cf864820Peter AronssonFixed DAELow.VAR bug
2f17428dex02lucpoadded a string_replace_char which replace a char with another in the string. Check comments for details.
44008f657Peter AronssonAdded class attribute to DAE variable to determine origin.
4636b763dPeter AronssonOptimized impl. Added tree_delete, etc.
ca68eba5ePeter AronssonChanged dae variable implementation from list to binary tree
892c6f77cPeter AronssonAdded unparsing of 'encapsulated'.
85d84f65fPeter AronssonAdded more doc.
7d8ee2d5cPeter AronssonAdded better doc.
b8e3b08b2Adrian Pop2004-11-27 Adrian Pop, adrpo@ida.liu.se changed server_loop to make it completly deterministic
9e3f131e3x02lucpoupdated to work with tornado
91fefcb1fx02lucpothe equation generation is working for influenza.mo
ed12653f6x02lucpoadded the rule in simpliry for (0.0 / x ) =>0.0 and (x/0.0)=>fail
42a3e9e89x02lucporemoved some swearing
866f72a4cPeter AronssonFixed bug in index reduction, did not increase no of variables when differentiated equation
902f10fc7x02lucpoPetAr to check for optimization error
2a0b9f2f4Peter Aronssonoptimized index reduction so that incidence matrix is not rebuilt for each reduction.
d5ce6c40cx02lucpoadded som debug printouts
8a362bfc7x02lucporedone the If...then...else to ...?...:... (c++)
497433323x02lucpoimplemented a relation that ouputs c++ code from an Exp.Exp
977e223afx02lucpoimplemented a relation that ouputs c++ code from an Exp.Exp
2104f1803Peter AronssonOptimized some code. Commented, etc.
c9ec81a41x02lucpoadded a relation that replace all the der(...) with _D_... in all the equations in DAE
0206e6756x02lucpoThe module tornado generate now ouput and state equations in c++ format
7a9e9f41fx02lucporesolved a bug in generation of equations
ebe253f5bx02lucpoto generate _all_ the equations a relation lower_with_simple_equations has been inserted in DAELow. Also generate_compute_state and generate_compute_output generates the needed c++ code
e1b317d25Peter Aronssonadded doc
263e3f9e5Kaj Nyströmadded is primitive to interface
22c7430d1Peter AronssonMade daelow faster, especially replace_exp
ab9d66f07Kaj Nyströmalmost fixed working submodel declarations
eec7172ddKaj Nyströmalmost fixed working submodel declarations
eda432929Peter Aronssonadded doc to about first half of the relations
7c0d84e5bKaj NyströmMainly Hemmis-related MathCore stuff
877953dd8Adrian PopAdrian Pop, adrpo@ida.liu.se 2004-11-05 Changed: systemimpl.c rml_prim_once(List__reverse) with TAILCALLQ(List__reverse).
cf947a74fAdrian PopAdrian Pop, adrpo@ida.liu.se 2004-11-05 Makefile.in Added commented lines for creating debugging versions of modeq
fe1fc809bAdrian PopAdrian Pop, adrpo@ida.liu.se 2004-11-05 configure configure.in
38cc63c25x02lucpoCompleted the inst_start_binding for the case Integer T0[2](final start={5,6})={9,10};
789cdd337Kaj Nyströmfixed hemis soving eqns stuff
129aa76beKaj NyströmSome updates on tornado, will be continued by lucian
fb2113755Adrian PopAdrian Pop, adrpo@ida.liu.se 2004-10-29
02c8906f3Adrian PopAdrian Pop, adrpo@ida.liu.se 2004-10-29 --------------------------------------------------------------> /modelica/modeq/absyn_builder/parse.cpp --------------------------------------------------------------> - RML_BEGIN_LABEL(Parser__parse) + added delete parse; delete lex;
48015ab54Kaj NyströmSome updates on tornado, will be continued by lucian
7d8f61a53Peter AronssonFixed bug, added doc.
4473c152bPeter AronssonAdded doc
d1cd62acbPeter AronssonAdded Tornado code generator. MathCore project
9cd2fb980Håkan LundvallAdded checks for MOSHHOME and MODELICAPATH
0afb478e9Kaj Nyströmmoved deprecated flat modelica parser here
b3c8421dbHåkan LundvallRemoved extra print "1" in translate_file
049a1fb96Håkan Lundvallfclass instead of model when generating flat modelica
7775cda98Peter Aronssonadded doc
a68730a27Peter AronssonFixed bug in priority order of incomming task graph edges
84dcd84ddx02lucporemoved PIGS
3e567d5bex02lucpoimplemented DIV_ARRAY_SCALAR
dadccc425x02lucpocorrected bug for MUL_ARRAY_SCALAR
1a7491d32x02lucpocorrected the elab_builtin_diagonal to return an array of array. Added comments
60c70d2c3x02lucpocorrected a element place error
7163a4f43x02lucpocorrected a element place error
e0e9d565ax02lucpoimproved diagonal function
dcf6b6737x02lucpoimplemented diagonal in staticexp and ceval
034238888Kaj NyströmFixed constant evaluation of abs operator
49a3b15e6Peter AronssonFixed so parameters are split in DAE x becomes {x[1],x[2],...} for an parameter array.
d4c64ad8fAdrian Pop2004-10-05 adrpo moved initialization of "ast" to the begining of Parse.* functions
6e46caf73leistSome extra tokens to support RML syntax.
382b3e852leistChanged a type to work with a modern ANTLR.
b79fe9ec2Kaj NyströmRemove cache.rml deps
834e2ddf4x02lucpomade the relation merge work better with partial classes and the same modifiers
48e22f722Peter Aronssonchanged licence file
15226cf5fPeter AronssonAdded doc.
24aba2795Levon SaldamliInternal documentation partial
c75bf63b7Håkan LundvallDokumenterings race
2bd995ca4Levon SaldamliInternal documentation partial
99f67847eLevon SaldamliInternal documentation partial
fb96f1e63Levon SaldamliInternal documentation
c556e18f9Håkan LundvallFixed timing command so that the symbol table gets updated.
5c6cde952Peter AronssonRemoved cacheimpl
a42b6bc1fPeter AronssonAdded documentation to the beginning of file
369e088bfLevon SaldamliOverview documentation
69fd87ab9Levon SaldamliOverview documentation
d2bb04fcdHåkan LundvallDokumenterings race
0553529b0Håkan LundvallChanged test-f and test -d to stat
15657c9d7Levon SaldamliOverview documentation
fdfec44abHåkan LundvallDokumenterings race
f220974feLevon SaldamliOverview documentation
36a9accccPeter AronssonAdded documentation to the beginning of file
1a291e124Kaj NyströmDocumentation race again! Wohoo!
3f1c2240fPeter AronssonAdded documentation to the beginning of file
f80612324Levon SaldamliOverview documentation
45aa9d8c3Levon SaldamliOverview documentation
00d4ab766Levon Saldamlibugfix
774b91c9dLevon Saldamlibugfix
e316abe75Peter AronssonDid stuff on codegen
9e4d226ecPeter Aronssonadded comments to beginning of file
46f6c2aacKaj NyströmDocumentation race again! Wohoo!
e78043caeLevon SaldamliOverview documentation
8714d3345Peter Aronssonadded comments to beginning of file
6c266eec2Levon SaldamliOverview documentation
a645dfd65Peter AronssonRemoved
dec538a49Peter AronssonAdded derivation of sin(x)
6090a7c26Peter Aronssonadded comments to beginning of file
2b4f6fe32Peter AronssonAdded comments to beginning of file
22233fb2fKaj NyströmDocumentation race again! Wohoo!
a7985705dPeter AronssonRemoved cache
9c4ae0872Peter AronssonAdded comments to beginning of file
8e6cfc9b5Kaj NyströmDocumentation race again! Wohoo!
94de2f0f3Kaj NyströmDocumentation race again! Wohoo!
a3f9cb75bPeter Aronssonfixed compilation error.
4a5c67573Håkan LundvallRemoved: with "Algorithm.rml"
9383a868bKaj NyströmDocumentation race! Wohoo!
f4d35b34aPeter Aronssonsome modpar bugs
629981007Peter Aronsson*** empty log message ***
307db6b73Levon Saldamliform_bdr_on_bnd added. Unneeded arguments in poisson_rheolef.cc removed
59fa125baLevon SaldamliWorking Poisson and Diffusion with Dirichlet boundary conditions
dbeb39d86Peter AronssonAdded simple euler solver.
76317e335Peter AronssonFixed bugs in codegen
32f0ec3abLevon SaldamliBugfix
cc24f494fLevon Saldamli*** empty log message ***
3283def28Levon SaldamliInitial
72b50be1fLevon Saldamli*** empty log message ***
81a60817dLevon SaldamliInitial
342e4d1e0Levon Saldamli*** empty log message ***
d2c631a6bLevon SaldamliInitial
b60afa66eLevon SaldamliInitial
7e787dad8Peter AronssonFixed bugs with connect statements. Removed Simple equations before blt, etc.
203c6836bHåkan LundvallFixed bugg with plot
bc90cbb70Håkan Lundvall*** empty log message ***
9965be6e3Håkan LundvallRemoved some debug printf
2bdf6c5b1Håkan LundvallCurrected bugg: generated fclass eventhough the modelica_outputflag was set in some cirumstances.
f7cab62caHåkan LundvallIn translateModel and simulate the flat fail is generated with class insteead of fclass, otherwise ModSimPack won't work. Change back when ModSimPack understands fclass.
bcf1ddf56x02lucpoImplemented sqrt, div, mod, rem, ceil, floor, integer. Lucian Popescu
d71bbcccePeter AronssonFixed bug in instantiation. Modifiers were not elabed in update_variable_in_env.
2a92c1ceeKaj NyströmFixed error in comment line number recognition
924b1a226Peter AronssonFixed connect in loops
407201308Kaj NyströmRemoved filename bug from dump
a8fbb705ax02danhegetComponents() now returns declarations containing unresolvable types
0aa054181x02danheImplemented deleteClass() for the interactive API
0f42a50f5x02danhe*** empty log message ***
75b2931cbPeter Aronssonmerging outer loop now linear.
a880f9a2ePeter AronssonForgot paralleloptions..
b9f1e5170Peter AronssonAdded modpar module. To enable, configure with --with-MODPAR and --with-BOOST=boostdir
96352d59aPeter AronssonAdded modpar - automatic paralelization, configure with --with-MODPAR to enable
362cc725bLevon SaldamliFixed priority bug in print_exp2 and print_exp2_str Added dump_exp_graphviz Added exp_contains (can check if a component reference occurs in an expression) Added solve (can solve linear equations Added get_terms_containing_x (not used anymore) Added rules to simplify to simplify expressions (0+a, 1*a, - - a etc)
e9185c9faLevon SaldamliReplaced differentiate_foo with differentiate_foo_time and added differentiate_foo which differentiates with respect to a given variable
4e4fe8033Levon SaldamliReplaced differentiate_equation with differentiate_equation_time
513e8bf2aLevon SaldamliInteractive test functions exp_contains and solve
f726d9623Levon SaldamliUpdated dependencies because new files added
f2fab7bdcPeter AronssonImplemented BLT sorting using dummy derivative index reduction technique, accessed by giving the flag +d=blt and possibly bltdump.
ff3269734Levon SaldamliMinor debug support
ccea0c708Levon SaldamliFixed string_comment
777cd74baLevon SaldamliBug fixes: was returning garbage when t==null
5ae600700Levon SaldamliTurned off defaultErrorHandler
c9a312231Levon SaldamliError handling
e25c74c04Levon SaldamliMoved -lcrypto and -lssl to CORBALIB
87ab47e04Håkan Lundvallbugfix
6d5c654baHåkan LundvallCORBA now listens on 127.0.0.1 and does not do reverse lookup before storing the adress in the the object id string.
4563d2c12Kaj NyströmAdded line and column info to ast
a6c4cc439Kaj NyströmAdded line and column info to ast
d532b6ff6Kaj NyströmAdded line and column info to AST
cfe1606f7Kaj NyströmAdded line and column info to AST
6a48dc1f2Håkan LundvallAdded quotes around filename in plot command to allow spaces in paths
a98b47a8fAdrian Pop2004-05-14 a little txt file with the 2.1 Modelica grammar very useful for fast referencing
24d5c2abfAdrian Pop2004-05-14
25dd20f10Adrian Popadrpo checking in version 2004-05-14
1a0e28532Levon SaldamliAdded functions to dae and flatmodelica
b8171859cLevon SaldamliSome Exp.REDUCTION stuff in ceval
7d94771b4Levon SaldamliAdded more debug support (error message in parsestringexp)
504e1c258Levon Saldamlihave run make depend
3ed386f5eLevon SaldamliFixed parser error in array constructor code in parser Added more debug support (error message in parsestringexp) Fixed some .cvsignore files
769acc7f4Levon SaldamliAdded corba stuff to configure and made it an optional package
9c0dd4927Levon SaldamliConstant checking of array constructor expressions containing iterators fixed.
2097c5872Levon SaldamliArray constructor added as syntactic sugar. {expr for iter in range} is created as array(expr for iter in range) in Absyn. Implemented in walker.
f8ba2de28Levon SaldamliBugfix
0662b52f2Levon SaldamliInitial work for reduction expressions, e.g. parameter Real a[5]=array(2.*i for i in 1:5);
8c67c34b7Levon Saldamliconst struct dirent
4f7ce8601Levon SaldamliAdded "none" virtual flag. Debug.debug_flag("none") returns true when no +d-flags given.
03ffd9d32Levon SaldamliMinor
749bc9a67Levon SaldamliFor iterators (reduction expressions 3.4.3.1) and array constructors with iterators (3.4.4.1)
f7731dde7Levon SaldamliPROP_TUPLE?
31eb247eeLevon SaldamliRemoved buffer clearing for easier debugging! Added "none" virtual flag calls and "flatmodelica" flag calls. "none" will return true when no +d-debug flags is given.
ba196ded6Levon SaldamliRemoved forgotten debug printing.
77c5d1806Levon SaldamliMerge mistake fix. FOR_ITER_EXP and FOR_ITER_FARG
3bbdefe2fLevon SaldamliFOR_ITER_EXP and FOR_ITER_FARG
e6a5a1346Levon Saldamli28.
208a30340Levon SaldamliVirtual flag "none"
e6befc108Levon SaldamliPoints 25-27
c25a7d4c7Levon SaldamliFixed error in print_list_debug
81dc2bc8bLevon SaldamliAdded fcallret
6f07f5eaaHåkan Lundvall*** empty log message ***
63bc9c351Levon SaldamliMinor fixes
fca1d2aebLevon SaldamliFixed for antlr 2.7.2
b0acd9486x02danheUpdated testing script to handle parse error message tests. Added tests for for parse error messages.
c5c68ff23x02danheImproved parsing errors.
767dfe695x02danheImproved parsing error messages and propagated these to clients when using the interactive API.
4ed1b7075Håkan Lundvall*** empty log message ***
4615d2da2Håkan Lundvall*** empty log message ***
ecdb26adeHåkan Lundvall*** empty log message ***
8a7f24c1eAdrian Pop2004-02-26 Adrian Pop adrpo@ida.liu.se added cygwin and test directory
3e505495eAdrian Pop2004-02-26 18:04 Adrian Pop adrpo@ida.liu.se added modelicaxml-v2.html
4063afb52Adrian Pop2004-02-26 18:02 Adrian Pop adrpo@ida.liu.se added ModelicaXML.snl and .vcproj
927cc64b0Adrian Pop2004-02-26 Adrian Pop adrpo@ida.liu.se Alpha Release of ModelicaXML
9467fb91bPeter AronssonMade modeq multiuser friendly when having corba comm.
ef2dd246fPeter AronssonChanged lookup. Components from inherited classes are annotated with the baseclassname and this is later used when instantiating to find correct environment. The old lookup, with baseclasses annotated to environment does not work for all cases.
3da2c679aPeter AronssonChanged impl of hashtable to binary tree in environment. The lookup is still buggy. Solution needs big redesign.
66ea58c01Peter AronssonAdded todo list
b6292ed17Peter AronssonFixed bug in inst. DAE can not be generated for builtin types, but it is needed for looking up unit, quantity, etc. Do not know how to solve...
d18d417b5Peter AronssonFixed small things, script callable from prompt using modeq scriptname.mos.
ef8ef0defKaj NyströmFixed error in corba build order
c10d086f8Peter Aronssonreimplemented overload.
14b6d1e0ePeter Aronssonreinserted overload operator, fixed external bug.
7216bd6e8Peter AronssonFixed bug with Real[3] x; in unparsing.
ad9442af1Peter AronssonAdded overload operator, again! and fixed external function bug.
40d05885dPeter AronssonFixed two bugs in unparsing.
87defdbefPeter AronssonFixed some bugs incl. getComponentAnnotations
e08930f23Peter Aronssonimplemented getComponentAnnotations
16c66f5efx02danheAdded functionality for updating and removing protected components in a model. /Daniel
852057261Peter AronssonFixed bug in getIconAnnotation and getDiagramAnnotation
b85d32aa8Peter AronssonFixed bug in getNthComponent, etc.
533809527x02danhedelete_connection now handles classes not definied at top level correctly. /Daniel
10ab07b6ePeter AronssonFixed update_component so that modification and annotate can be given separately without destroying existing data
db9c4c8c8Peter AronssonAdded partial_inst_class_in to speed up lookup of classes.
b94e46bcbPeter AronssonFixed some bugs
35dfad43dPeter AronssonIncreased performance, fixed some bugs.
b2db3e788Peter AronssonFixed bug in Bitmap
d363e6addPeter Aronssonfixed bitmap + update bug
329723d36Peter Aronssonimplemented isProtected
1433ffc27Peter AronssonImproved performance, fixed bugs.
d867b983fKaj NyströmUpdated README to reflect recent changes in OpenModelica
d769d0468Kaj NyströmUpdated documentation, bugfixing, link to rml, new todo-list
67780758ePeter AronssonAdded split definitions, e.g. allowing 'package A' as input.
7cc3168b0x02danhe*** empty log message ***
34cc8bae2Peter AronssonSwitched from boa to poa impl.
2f3b1816fPeter AronssonFixed some makefile issues.
81e2e199cPeter AronssonAdded.
6a61bc5b7Peter AronssonAdded corba implementation to modeq. Accessed with +d=interactiveCorba.
d220b8bb6Peter AronssonRemoved overload keyword, instead allowing multiple definitions of functions with same name in the same scope.
8d6992269Levon SaldamliDebug traces
79e94725cPeter AronssonFixed bug in getNthComponentModification, not wrapping modifier in Code operator
9211d6893Peter AronssonUpgraded parser to work with antlr-2.7.2, will probably not work with 2.7.1 anymore
15490e24ePeter Aronssonadded getNthComponentModification, returning Code expression.
4a00a8431Peter AronssonAdded fsync to sendcall
6080683c6Peter AronssonFixed bug with duplicated class annotations when calling addClassAnnotation
f782de99cPeter AronssonFixed bug in dynamic buffer
f1ec732c8Peter AronssonFixed bug with addClassAnnotation creating several annotations
c43b5e2cfPeter AronssonAdded locating protected annotations for icon and diagram
125e96fbbPeter AronssonRemoved inst. in get_nth_component
3a7742c68Peter AronssonaddComponent now takes Code modifier expression. ceval now evaluates Eval operator for most common cases.
b7edc1be4Levon SaldamliChanged default compiler to gcc (removed /usr/bin, not working on solaris)
927c308f2Levon SaldamliFixed scandir again
3973d33bdLevon SaldamliUpdated
b1aa0de8aLevon Saldamligethostbyname and libnsl check added
5f245849eLevon Saldamlifixed scandir check on linux
3919247fbPeter Aronssonfixed bug with faster icon annotation
a411c987dPeter AronssonFixed bug in dynamic buffer
9fd8823e1Peter Aronssonfixed bug with faster icon annotation
e62836876Peter Aronssonfixed a small bug in new dynamic buffer for socket impl. Also fixed faster icon annotation
a3b8b475cPeter AronssonChanged lookup implementation. Now looks in inherited classes implicitly, throug an extra list of inherited classes in Env
40e33eca8Levon SaldamliAdded c_runtime to modeq
791f24160Levon SaldamliCodegen of Exp.SIZE fixed
c09b5d09ePeter AronssonFixed bug with elab_arraydecl and size(x,1)
ca9a4f000Peter AronssonFixed bug with modifiers on extends clauses: Typeinfo on modifiers where earlier lost when flattening. Now they are preserved. The solution is to collect them together with each element item in the list that inst_element_list acts upon. NOTE: To prevent circular dependencies Mod.Mod was moved to Types.Mod
6a56529cePeter AronssonRedesigned implementation of builtin operators. elab only determines type and constant value properties. Ceval.ceval should be used to retrieve a value. The size operator has now been implemented using this new design. The other operators should also be implemented so. This code will probably destroy some parts of codegen, since size is not replace by functioncalls size_of_xxx_array, etc.
265daab43Peter AronssonFixed lookup bug for functions. Fixed doc.
45fcc875cLevon SaldamliCorrected some of ALG_TUPLE_ASSIGN. Still not working
beeb19f14Peter AronssonFixed bug with 1.e-15 and protected after equations.\n
9431b1498Peter AronssonFixed plotting bugs, etc.
3fe3d7c26Levon SaldamliCode generation seems working
bad05be90Levon Saldamlistring fixed stdio.h added (yacclib.h needs FILE)
ac639c6d0Peter AronssonFixed plotting function, using ptolemy. Export and import of simulation data according to ptolemy standard..
3291c0e10Levon SaldamliWorking code generation.
6bcb4a921Peter AronssonChanged names of functions according to Peter F.s book.
e9ebf5c00Peter AronssonFixed so unconnected flow variables are set to zero, and fixed so parameters are not substituted for their value in equations.
d487847ffPeter AronssonFixed bugs for osmme and for external functions.
80297718fLevon SaldamliMerged and resolved conflicts but examples not working.
8fa539835Levon SaldamliAdded matching_state
681b8070aLevon Saldamliallow zero-length debugflag string
361470410Levon Saldamliincluding string
186d2e9f6Levon Saldamliinit_modelica_string added
0ff89ebedLevon SaldamliConversion to and from Fortran 77 arrays (matrices)
5d1a2e902Levon Saldamlisocket added to AC_CHECK_FUNCS
785360c99Peter AronssonFixed several bugs with functions, e.g. Real X[:]=Y, etc.
ec4af2294Peter AronssonFixed bug with infinite recursion when instanitating Modelica.Blocks.
ac0f73e95Peter AronssonRedesigned Type to cope with all types for operator overloading and koening lookup
558a8eea2Peter AronssonAdded support for operator and function overloading.
323b44a69Peter AronssonAdded support for quoting using the Code keyword.
78eb02b92Peter AronssonAdded support for quoting using the Code keyword. Implemented a faster Env: is now a hashtable using RMLs vector datatype. This will prevent a linear search in each frame.
c3ba5aba9Peter AronssonFixed bug with Real x[:,size(x,1)] e.g. referencing its own definition but different dimension.
e635e6097Peter AronssonAdded author
e97da34b3Peter AronssonFixed bug in unqualified imports.
2a5b249b5Peter AronssonAdded manual written in LaTeX.
810dccafcLevon SaldamliTest program for testing the parser. Uses parse_tree_dump to dump the parsed file
e0302771fLevon SaldamliTarget test for the test program added
82c02c91cPeter AronssonloadClass now handles several paths (separated by colon) in MODELICAPATH
c82491ef9Peter AronssonCache now working, but speeds things down :(
39059ef1ePeter Aronssonadded clearCache function.
aa6467494Peter AronssonFixed two bugs with encapsulated. Removed old cache implementation. Made new external cacheimpl, not working yet (gc problems)
2e45a825fx02kajnyInitial revision
d100b1bc1Peter AronssonAdded several operators and fixed several bugs. EvapIOTest example from Ruediger Franke now works (174 seconds)
da87e924dLevon Saldamlidouble message
b278933a4Levon SaldamliMaking rml2sig before modeq
4be5fbdd2Levon Saldamliscandir check and socket+libsocket check added
c8d432979Levon SaldamliFixed libsocket check in configure, removed arch check and ifs
bb5d4bb87Levon SaldamliRemoved example part
4c58dac2eLevon Saldamliscandir check, fixed by configure
2ba5924e7Levon SaldamliLEX for rml2sig
a8eafe160Levon SaldamliSig file support fixed
587e73880Levon SaldamliInitial
81ac1173cLevon SaldamliMerged back interfaces and implementations
fc3642c8cPeter AronssonAdded array constructor. Made all fail printing visible throguh failtrace flag.
b58ebecc2Peter AronssonAdded optional modifier according to Modelica2.1
57080af5ePeter AronssonAdded element support for builtin types, e.g. unit, quantity. Added getUnit, getQuantity,..., functions. Fixed optional modification in absyn and parser. Added support for structural parameters and partly implemented analysis to dectect those.
d2705ca6dPeter Aronssonremoved tempfile, not platform independent.Added compilation check.
25fb8d46bLevon SaldamliSeparated rml files into interface and implementation. Use myrmlc for compiling as before. Only one file at a time can be compiled
1a6366fcdLevon SaldamliModelica String implementation, use with e.g. external functions
8ef99559fLevon Saldamlilocal (protected) variables in functions implemented. Started to implement strings in external function interface
5aa5eae37Peter AronssonFixed bug in addConnection for classes in packages.
833133515Peter Aronssonfixed small bug in text.
8f22429d5Peter AronssonAdded compile text, example.
91ea51467Peter AronssonAdded caching, assert, helptext and help command
71e7c6779Peter AronssonAdded time relation
75e97e6eePeter AronssonFixed bug in lookup of qualified imports
f045fd947Peter AronssonFixed bugs in lookup inside packages. SignalVoltage now works for Modelica Stdlib v1.5.
62c390d68Peter AronssonIncreased socket buffer to 4000 bytes.
2ff7ff5e0Levon SaldamliA simple scandir implementation for solaris, without sorting.
bd3045154Peter AronssonFixed bug with extending functions not yet declared (use before declare)
ca31df7fdPeter AronssonAdded binding and comment options to addComponent and updateComponent
b956c39a9Peter AronssonFixed attributes in derived classes.
82b77f411Peter Aronssonfixed bug with type_prefix in derived classes.
f26420d9ePeter AronssonFixed bug in getNthComponent.
e6f014022Peter AronssonFixed deleteConnection and updateConnection.
0f1f990cfPeter AronssonFixed many bugs in flattening of inheritance structure. Now translates Modelica.Electrical.Analog.Sources.SineVoltage
522d4834aLevon SaldamliFortran 77 support fixed
e93813bebLevon SaldamliFortran 77 support
7aad0c41dPeter AronssonFixed addClassAnnotation, to be used for adding Icon, Diagram and Documentation annotations to classes.
887591d4dPeter Aronssonfixed bug in getNthConnectionAnnotation.
6b2bbf1daPeter AronssonMoved many interactive functions to StaticExp, such that they can be evaluated in any sub-expression. Also fixed bug with getIconAnnotation, getDiagramAnnotation.
472f2e75dPeter AronssonFixed several statements per input. Ouput if no semicolon.
496fc4474Peter AronssonAdded isClass
f1dccf88fPeter AronssonFixed bugs in unparser, now unparses ThermoFluid correctly.
b663b5ed1Peter AronssonRemoved relaxations. 1. and .12 and 1.e-4 etc SHOULD NOT be allowed (Many people in design group has this opinion)
728313449Peter AronssonUnparser running. Accepting whole modelica standard library.
528a2ef87Levon SaldamliBugfix
b1332175dPeter AronssonFixed bug with casts on arrays in graphic annotation expressions
6b2763b2bPeter AronssonImplemented deleteComponent.
6dcbde2a7Peter AronssonFixat bug i addComponent
b676ce05fPeter AronssonFixed bug with Diagram in component annotations.
b715396bcLevon SaldamliPartial external function support (records missing)
9cb3e7af3Levon SaldamliPartial external function support (records missing)
aa9adb52cPeter AronssonFixed bug in declare before use. Now have untyped modifier expressions temporarily when instantiating.
ad9bdd7c9Peter Aronssonfixed some bugs with redeclarations. Not quite bug-free yet
ba850895aPeter Aronssonredeclare partly implemented (no subtype checking, final checking,etc yet)
eb7a4873cLevon SaldamliExternal function support for builtin basic types
fe6946b00Peter AronssonFixed instantiation bug with extends.
dbfa87c80Peter AronssonAdded initial() expression.
93f29e63cPeter AronssonAdded module classloader and function loadClass that loads a class from MODELICAPATH.
2f4ad24b1Levon SaldamliTemporary fix for MAXPATHLEN define for unix
13f4b0efbPeter AronssonAdded impl. for Integers.
024bbe005Levon SaldamliBugfix for external nodes
e7a2d89daLevon SaldamliDump of Initial sections and external declarations
31a8558c2Peter AronssonFixed bug with external decl.
417ac9c44Peter AronssonAdded each keyword to absyn
8cc0042f7Peter Aronssonfixed bug in initial equation
5f90beb2fLevon SaldamliChanges due to additions for replaceable to SCode.COMPONENT
1a2a55bd0Levon SaldamliChanges due to additions to SCode.PARTS for initial equation/algoritm, and SCode.COMPONENT for replaceable.
de95bb058Levon SaldamliInitial equation and initial algorithm translation added. inst_equation, inst_algoritm, etc.
a60bf15d6Levon SaldamliTranslation of INITIALEQUATIONS and INITIALALGORITMS from Absyn to SCode added. Replaceable flag added to SCode.COMPONENT.
d97f032daLevon SaldamliDAE elements for initial equation and initial algorithm added
ef1f84140Levon SaldamliAdapted due to additions of initial equations and algorithms in SCode.PARTS
f1ab9dafcPeter Aronssonlookup according to Modelica 2.0 (impl in vardnas workshop)
3a3a62e7cVadim EngelsonEncapsulated messages added
c25c04146Peter AronssonFixed bug in InteractiveStmt, changed due to updated Absyn.
fdd90b705Peter AronssonFixed bug wiht tail
19923d815Peter AronssonFixed bug with setting of variable and having whitespace.
f7a19d3a3Peter AronssonRemoved unused files, fixed prevent lookup of protected elts
49e5db5d6Peter AronssonFixed bug in Polygon annotation, arrows in line. Added methods existModel and existClass
32dd2a103Peter AronssonFixed bug with subscripting of matrices in modification equations
94647c90aPeter Aronssonadded existClass, changed getModels and getPackages to getClassNames.
98da3fbbcPeter Aronssonadded isPrimitive and other isXXX functions. Added getInheritanceCount, getNthInheritedClass
9338f7013Peter AronssonFixed getNthComponentAnnotation
651568360Peter AronssonFixed bug in function_arguments.
82319e841Peter AronssonFixed bug in function_arguments when building ast
de8343eb6Peter AronssonUpgraded to complete 2.0 in absyn (according to spec
622e28dbcPeter AronssonUpgraded to complete 2.0 (according to spec
65774260ePeter AronssonImproved some dumping. Some enum bugs. Added correct builtin attributes.
825d20346Peter AronssonAdded R_EXT_FUNCTION as restriction. Propagated external function info down to dae.
ea291cb3cPeter AronssonFixed bug in external functions (parsing and absyn)
810cbb856Peter AronssonFixed bug in getIconAnnotation
6643cc101Peter AronssonFixed type conversion of unknown dimensions, fixed correct annotation building from named arguments
8ed036f4bPeter AronssonFixed minor things. typeOf function implemented
9f8bb2033Peter AronssonFixed automatic code generation of functions. Fcn in packages does not work yet.
d867fa19bPeter AronssonFixed InteractiveSymbolTable in elab_exp
caba88da1Peter AronssonBroke circular dependency by moving stuff from Static to Types
d601503e7Peter AronssonNow compiling, added compiled functions to elab_exp and ceval.
de76ebb86Peter Aronsson*** empty log message ***
d756fd89cPeter Aronssonautomatic code generation almost complete.
b65f23d6cPeter Aronsson*** empty log message ***
967e47689Peter Aronssoncast of arrays, whitespace in parsing models, etc.
ccf28838cPeter AronssonFixed instantiation of models inside packages. Fixed declare before use of functions (types in env).
eeff0e365x02danheFixed a bug causing the makefile generation to fail if more than one path was returned when executing the find command.
7ed77a8efx02danheFixed a bug causing the makefile generation to fail if more than one path was returned when executing the find command.
f770acd65Peter Aronsson*** empty log message ***
339947c2fPeter Aronsson*** empty log message ***
18eb569ebPeter Aronsson*** empty log message ***
22ea4a3e6Peter AronssonAdded external functions to Absyn. Added type convert of vector constructors (RANGE)
e252e7d4bPeter AronssonCode generation of functions now working inside interactive env
9d82f576bPeter AronssonRemoved includes of .c files.
1bfe9511bPeter AronssonAlmost finished codegen in interactive.
eb42f9f60Peter AronssonnewModel -> createModel
36b1b9778Peter AronssonAdded program to build initial env for expression evaluation
5e97e03a2Peter AronssonAdded evaluation of expressions and storing of variables in interactive through ceval
c2aa7003dPeter AronssonAdded expression evaluation through staticexp
09d519a18Peter Aronssonadded encapsulated to Absyn and SCode.
3d5b15cc2Peter AronssonAdded import statements to instantiation/lookup.
4d2f8482dPeter Aronssonadded getPackages and getModels
d28247674Peter AronssongetDiagramAnnotation now working.
038ba085bPeter AronssonFixed getIconAnnotation, incl elab_graphics_exp, MATRIX type conversions, etc.
1c68f70e2Peter Aronsson*** empty log message ***
c53bdd98cPeter Aronsson*** empty log message ***
711c09b20Peter Aronsson*** empty log message ***
0a14853d6Peter Aronsson*** empty log message ***
c0bf6c2a7Peter Aronsson*** empty log message ***
682ef7786Peter Aronsson*** empty log message ***
96ea66b7dPeter AronssonFixed bug in lookup_class
5c07884c4Peter AronssonFixed bug in inst_element_list (declare before use) of array dimensions
e55efa32dPeter AronssonFixed bug in instantiation of variables (decl before use)
6d767ea25Peter AronssonFixed bug with value propagation into parameter values
d1c6b4a1fPeter AronssonFixed variable bindings when declared before use.
c992eaec0Peter Aronsson*** empty log message ***
f06c4b235Peter Aronsson*** empty log message ***
73ec9c9d3Peter Aronsson*** empty log message ***
02204da2cPeter Aronssonworking on lookup & declare before use
c1ffb8e35Peter AronssongetIconAnnotation now works.
f6a2954b1Peter AronssonFixed bug in record constructor, now handles dimensions correct. Also moved som instantiation work from lookup to inst.
a813d70f4Peter Aronssonfixed bug with ordering of arguments to functions.
88f1676b0Peter AronssonFixed positional and named arguments to functions in staticexp.
86d489109Peter Aronssonmoving to laptop.
9397f501bPeter Aronssonfixed bug in component annotation
adb913548Peter AronssonFixed function calls with no arguments
f64dafad1Peter Aronssonimplemented list of symboltable.
2cd380833Peter Aronssonadded implicit lookup of record constructor functions
5b7f6ff4bPeter Aronssonadded getIconAnnotation
e33aa74f5Peter AronssonAdded flat records for Graphical primitives.
568c6e5adPeter AronssonAdded getNthConnector and getConnectorCount.
e73a33b6ePeter AronssongetNthConnectionAnnotation almost work
cea4c4382Peter Aronsson*** empty log message ***
1a3e17f75Peter AronssonAdded lookup rules for enumeration and completed other parts of enumeration
5d4e11013Peter Aronsson*** empty log message ***
71b7d3328Peter AronssonFixed lookup of local classes, incl. packages.
5a759a0ffPeter AronssonTemporary fix of lookup bug, Enumerations partly working
8064d931ePeter Aronsson*** empty log message ***
159fe65d7Peter AronssonAdded enumerations to parser and Absyn.
c84690a92Peter AronssonAdded enumeration type.
a8094ce38Peter AronssonAdded connection annotations to parser and absyn.
2a9b9bfb6Peter AronssongetNthConnection completed
f6257aaa4Peter AronssongetConnectionCount completed.
24facd492Peter AronssongetNthComponentAnnotation completed.
5230e1f94Peter AronssonFixed bug that removed equations from components, in relation fix_direction.
433b79c0fPeter Aronsson*** empty log message ***
eef8ffdd5Peter Aronsson*** empty log message ***
f74ebb222Peter Aronssonallmost added getNthComponentAnnotation, migrating to laptop
09d8e0c6dPeter AronssonAdded text file explaining interactive api
a7e49cce3Peter AronssonChanged api functions, strings -> componentrefs
2e549ee4cPeter AronssonAdded translateClass function, and dumping of DAE to string
dfeb6223ePeter AronssonAdded addComponent function.
cf4647088Peter AronssonAdded named arguments to functions.
cf725c768Peter AronssonAdded named arguments in functions to parser and absyn
ce2aa29e9Peter AronssonAdded newModel(foo) and newModel(bar,scope) to interactive env
4cc3f1ba2Peter AronssonAdded graphical annotations to absyn.rml
05b454ae2Peter AronssonFixed bugs in within.
f8ee5ada6Peter AronssonWithin now works, i.e. local classes can interactively be inserted
ee9a893b5Peter AronssonAdded within to Absyn.Program
3136a93a5Peter AronssonAdded incremental adding of top level classes
4f69e1c2cPeter Aronssonadded interactive symboltable
0a493a26fPeter AronssonAdded expression parser in the interactive environment
617af49b3Peter AronssonAdded expression parser in the interactive environment
b02f83027Peter AronssonSmall bug in revision info
36f5a417ePeter AronssonAdded socket communication for an interactive mode compiler. Start modeq with +d=interactive,dump,interactivedump and then telnet to port 29500 to send models to the server. So far the models are not saved anywhere, they are only output if dump flag is set.
ea5743e79Peter AronssonAdded inner/outer to absyn
66f9f7e0ePeter Aronssonadded extra check of rmlc
62256199aPeter Aronssonchanged /dev/null to empty tempfile
f6b82f6dcPeter AronssonAdded antlr.Tool check in CP
f3f5360f4Peter AronssonFixed bug in rmlc
f4da1a45aPeter Aronssonremoved c_runtime/Makefile from being generated
1df03d225Peter Aronssonbash script bug
09032324cPeter Aronssonsame bug again!
fab3dd990Peter Aronssonbug in libreadline.a
a242b2a54Peter Aronssonadded Makefile.in, removed Makefile
3e22cfb72Peter AronssonAdded Makefile.in, removed Makefile
97b98ad55Peter AronssonAdded configure scripts
e5d6ca76ePeter AronssonAdded extra functions for array_addr_element with dimension 1 and 2
67bc0009bPeter AronssonFixed so modelica.h includes the c files, such that function inlining can occur
22156b7d1henjosimplex handles different sized array
8d3c7056chenjoAdded more copyright notices
d4140ab64henjoAdded copyright notice
122acbc62henjoAdded README file
1ec2a45ddhenjoAdded license file
41babbe28henjolast minute changes
0bdf41fb9henjoAdded more functionality
41244189bhenjoFixed checking of reading input paramters
bb630b3dbhenjoFixed error in simplex
f82100c94henjoFixed indexing operations
328bb146ahenjoFixed some things
c39a2a835henjoAdded testscript
af48c1c3fhenjoIntroduced type information to input file
0861c2178henjoCan now generate code for functions with variable sized arrays
8b03153bdhenjoMoved compiled files to other dirs added .cvsignore file
51b24d318henjo*** empty log message ***
b26f324ffhenjoAdded integer read write routines
8933b4d89henjoFixed some operators
151b63c68henjoAdded testcases
39099f144henjoRenamed file
61b045bechenjoAdded more tests
1bb7ecd4dhenjoRemoved .main.c files
2e81a7820henjoAdded utlity functions
537cee5f8ankarChanged calc_index_va to one-based indexing.
bb21cbc0fankarpromote_real_array and promote_real_scalar now allocates dimension vector.
e9febf787ankarAdded array_real_array, array_alloc_real_array.
61fd2d40cankarAdded simple_index_alloc_real_array1.
b0dedd62dhenjoMore codegeneration done
0dd73a01dankarAdded calc_index functions.
6fe1c19d8ankarAdded range_alloc_real_array and range_real_array.
995e7a100henjoadded newline to write
c3edb41f1ankarAdded mul_alloc_real_matrix_product_smart.
e596b8872henjoFixed order of declarations in coden of read fn
afb8b5892henjoNow generates stub fn
1b3007480henjoadded read_write fns
98985f930ankarAdded include to stdio.h
bf22380abankarAdded prototype for real_array_nr_of_elements.
221facb96henjoAdded makefile to build lib
bdcc1206ahenjoCan generate c-code for array mults and assigns, added some testcases
f05ffa67fankarFixed some compiler errors.
7d40084c0ankarAdded main header.
d4c751830ankarFirst revision of OpenModelica runtime. Just array implementation so far.
c65c92882henjoAdded new operators to handle matrix and vector operations
bde0bcfe9henjoFixed problem with empty argument list
e976d9e91henjoFixed indentation
f1a259b7fhenjoChanged parser to a 1.4 compliant antlr-based parser. made some updates to absyn to handle new 1.4 primitives. Fixed for-loop scooping in equations
0678dd1d4ankarChanged ModelicaTokenTypes to modelicaTokenTypes.
42833cf91ankarMoved rel_op to relation.
e935a9d44ankarInitial import of new modelica_parser.
760e4872bLevon SaldamliDebug dump of env at class instantiation and equation elaboration (envgraph and expenvgraph)
729a27ef8Levon Saldamliprint_env_graphviz: Generate a graph representation of the environment using graphviz
dfd3d04fcLevon SaldamliGraphviz generation help relation build_gr_strlist
beb43a216Levon SaldamliEnvironment dump flags
ce5198941Levon Saldamliget_matching for general lists
0a879b440Levon SaldamliChanged first label of NODE so that it can contain spaces.
3435fc5d8Levon SaldamliMinor fix.
92c401203Levon SaldamliGraphviz module.
f0bace95eLevon SaldamliDump the AST in graphviz format, so that it can be visualized (using dot or dotty from graphviz package)
f18d9364aLevon SaldamliCode generation. Mainly functions at the moment.
123d896bfLevon SaldamliRemoved the pde-related flags.
8299c0144Levon Saldamlidebug flag support
85fea0dc5Levon SaldamliMinor
0cbaf4331Levon Saldamlimake_function_type, creates a function type. relations to collect different kind of variables (get_vars, get_output_vars etc). get_type_name
5f3dfca48Levon SaldamliUtility relations. elab_exp_list, elab_cref_list, get_properties etc.
1d4078ce8Levon Saldamlidebug flag support.
24e0f7e13Levon SaldamliUtility relations.
fe6a7408cLevon SaldamliChanged REDECL to contain SCode.Element list, so that an elaborated classdef can be stored.
3a0c546d2Levon SaldamliFlag directed execution. see DEBUG.TXT
3aa9acf73Levon SaldamliDebug trace in many places. Cleanup. Layout fixes
c0febdc52Levon SaldamliImplementation of redeclare. Working with functions at least.
477f56715Levon SaldamliSome cleanup. Absyn.ElementSpec in REDECL changed to Element list, which is the result of applying elab_elementspec to Absyn.ElementSpec
545b94a90Levon Saldamlicref_equal, compares whether two crefs are identical. Does NOT check subscripts (ignored).
32edfb21cLevon Saldamliprint_env print_frame
b8816b507Levon Saldamliprint_exp_str to print an expression into a string. print_component_ref_str. print_list_debug, tracks the caller. select_string get_string_list
bc1db425fLevon SaldamliDebug.print bugfix.
e9987bf27Levon SaldamliAdded variable direction (for arguments of functions). (But isn't this info in the function type already, at least now?)
790aeb926Levon Saldamliget_state_name added
2bace30b1Levon Saldamli*** empty log message ***
f3a614cd0Levon SaldamliUpdated rml path. graphviz rml files added.
9c64cebb9Levon SaldamliMinor cleanup. Restiction -> string
3a05884ecLevon SaldamliMinor cleanup
e48852875Levon SaldamliRemoved double of "boolean_type" in the builtin environment
b98b49bc9Levon Saldamli*** empty log message ***
8b7e39c81Levon SaldamliWorking at PELAB
5049e8904Levon SaldamliRML path
662ce623aLevon SaldamliLatest from x98petro not committed or added
a1071c86fx98petroArray handling is probably broken in this version. Should be fixed in next version.
55298a3c9x98petroArray handling is probably broken in this version. Should be fixed in next version.
0c96272edx98petroModifed the grammar to accept multiple return values from functions.
ef831309fx97davkaPeters korrektur.
05af8d5a1x97davkaChanged "rml"
d5c8cf695x97davkaDoc fix
32eda87a9x97davkaPontus korrektur.
514d6d9b3x97davkaCompleted
ca173a3f3x97davkaDoc fix
dc5a327a4x97davkaTypo
32e2a155bx97davkaFilled the last holes.
08fbe6bcex97davkaAdded MOdelica 1f
002531bbax97davkaOops! Fixed static scoping.
199979a9cx97davkaNew file
0ba8c084bx97davkaMinor fixes.
06eb4365fx97davkaAdded a lot of stuff.
007207babx97davkaDoc fix
f9b73ece6x97davkaFixed the mess I caused with remove_set
c31f4a897x97davkaUse module header
4a527d334x97davkaFixes
17f5f7396x97davkaSome additions
e8f467514x97davkaAdded bibtex rule
0ac4484e7x97davkaDoc fixes and some minor code cleanups.
5ff6e658cx97davkaUgly DAE.VARVAL hack Some cleanups
ac7bf3fbex97davkaCheck modelica_output
f8b141062x97davkaIntroduced ugly VARVAL hack.
bbb46eb93x97davkaminor additions
1126aa58ax97davkaMinor fixes
d56b33a39x97davkaBug and doc fixes
f0df895c7x97davkaAdded modelica_output
473624c8ex97davkaFixed stuff
4d9529c2fx97davkaFixed output
23001385fx97davkaCleanup
2c5a19763x97davkadoc fix
24024ac4ex97davkaRemoved debug info
d324855b7x97davkaConvert illegal characters when modelica_output is true.
cf1be9097x97davkaAdded the possibility to output DEFINE as EQUATION
6aa3f44eax97davkaSmall change
3e8776570x97davkaMinor bugfixes
39fd319a8x97davkaRemoved debug stuff
71d482b0dx97davkaAdded more on Modelica
75d9cde84x97davkaRemoved debug output
041a4cd3ax97davkaFixed stuff
1e087f356x97davkaDoc fixes
900c0dcf3x97davkaadded limitations
d22c2a066x97davkacheck_subscript returns the new type also
bdb7b6bc3x97davkaAdded ARRAY again
38874048ax97davkaAdded split_arrays
26683b2a6x97davka*** empty log message ***
d121c9cebx97davkaarrays only have one dimension now. Lookup start in builtins.
f5aa8fc79x97davkaFixed stuff
d5c4de5d0x97davkaNew option: split_arrays
3914c72bex97davkaSplit array and composite equations. And stuff.
ba8b79161x97davkaNew simplify rules
c3bc5b85fx97davkaReinstated ARRAY
8f4429188x97davkaChanged EQUATION and added DEFINE
8208c62b3x97davkaDAE changes
b2d637226x97davkaType conversions in assignments work again
ccd43ea44x97davkaReintroduced ARRAY
abdf66897x97davkaNew dependecy rules
43beccd61x97davkaadded stuff
b291b60f0x97davkaRestructured and stuff
cda4b3daex97davka*** empty log message ***
932d549cbx97davkaNew file
0182b8356x97davkaAdded translation figure and stuff
5119f6277x97davkaAdded accessibility
31a5ee6cex97davkaFolllow DAE changes
0b0b0706ex97davkaAdded accessibility field to the attributes.
d31da3961x97davkaClean up unecessary stuff and renamed some.
a879e9ff8x97davkaSet accessibility
4d3b86ef1x97davkaCheck if a variable being assigned is read-only
09be46e62x97davkaNew files
bb73d7b8bx97davkaAbsyn.COMPONENT changed
caea12342x97davkaNew file
9f5abd947x97davkaAdded some stuff
fa270055bx97davkaAdded algorithm.tex
5e8cbc26ex97davkaUse rtopts
04a8df931x97davkaDon't use Absyn.VarAttr. Instead use SCode.Attributes. Fixed functions.
b64fa03dax97davkaDon't use Absyn.VarAttr. Instead use SCode.Attributes.
c59ceaddex97davkaDon't use Absyn.VarAttr. Instead use Attributes.
6479de8cex97davkaStarted to use runtime options to control output
720e48d79x97davkaARRAY no longer exists
00cf6badcx97davkaUse SCode.Attributes
3690e2e3bx97davkaMore docs.
c02d2d3e9x97davkaReplaced VarAttr with ElementAttributes. More docs.
276de9948x97davkaAdded runtime directory
4631e88dbx97davkaFixed stuff
d9093eafax97davkaReworked
33a7f59dfx97davkaSpelling fixes
572682c3fx97davkanew files
78883c054x97davkaadded stuff
003ae012ex97davkaAdded stuff
f8591eb9fx97davkaRestructured
4f95765fcx97davkaMore text. New bibliography.
b0d02f007x97davkaFixed stuff
2a68e940ex97davkaNew file
3ba517af9x97davkawrote stuff
1c4562a46x97davkaChanged labels
e47ca4b6ax97davkaMore stuff.
e841cdc84x97davkadocfix
2ab4c3895x97davkaFixed doc
86c9edecex97davkaAdded comments
5e9c22458x97davkaRemoved ARRAY
c63c73bf8x97davkaAdded protected flag to Types.VAR. Added rules for implicit instantiation of packages and functions. Fixed elab_call.
66329735cx97davkaUse Static.Properties, and Static.match_prop.
0c6fc4070x97davkaRemoved some junk.
c0999fcc4x97davkaStaticExp was renamed
a6a013e75x97davkaUse Static.Properties.
0e2fd96f3x97davkaWrote a subtype relation and an equivtypes relation based on it. same_type is now obsolete.
d347955c4x97davkaIntroduced the Properties datatype. Rewrote the type match and conversion stuff.
e8bd83d51x97davkaUse Static.Properties
901ff9cb1x97davkaThe [1,2,3] syntax is now a 1x3 matrix instead of a vector.
d49b69326x97davkaUse CAST instead of CAST_TO_REAL
04224fb5ex97davka# prettified
ce7565714x97davkasnapshot
3ed248600x97davka*** empty log message ***
ce88dbf42x97davkaDoc fix.
26475648dx97davka*** empty log message ***
5e6653d5ax97davkaDoc fix.
4ee727d6bx97davkaAdjust to new Operator datatype. Introduced relations to handle overloading and automatic type conversions.
5e9dce6e9x97davkaAdded temporary kluge for slices.
166b35854x97davkaRemoved bogus errors.
8eceb86b8x97davkaAdjust to new Operator type. Check flow attribute in connections, but not constant. Use the overloading relations from StaticExp in inst_eq_equation.
ca33a5e89x97davkaCombined all operators to the datatype Operator.
793c62c6ex97davkaAdjust to new Operator type.
f8e9e86c1x97davkaDoc fixes.
e99725761x97davkaUnified all operators to an Operator datatype. Doc fixes.
fc82346b0x97davkasnapshot
a769b7016x97davkaFixed the type of loop variables
a4591f72ex97davkaReworked modifications
3118e5196x97davkaNew file
7b8d69491x97davkasnapshot
6f63e4a1cx97davkaPrettierprint
565641ff2x97davkaMoved Binding here. Added lift_array Some other stuff too
6df2aa4afx97davkaDo some relations and stuff
2aeebd379x97davka# prettified
a4f16b836x97davka*** empty log message ***
b3f81d860x97davkaRemoved mkbinding
71f98950bx97davkaLots o' changes
69fc156f8x97davkaConvert equations
6f12b0336x97davkaPrettier
258018912x97davkaIF statements
0860e7ebdx97davkaBinding moved
9d807295cx97davkaFixed IF in equations
14440f29cx97davkaMore tokens
2571287f3x97davkasnapshot
26db41a6dx97davkasnapshot
1a63d128bx97davkasnapshot
bfbd36a5ex97davkasnapshot
34a9c2b6bx97davkasnapshot
2c2fc399dx97davkasnapshot. Works, sort of.
913cdd7e9x97davkasnapshot
fdabf67c1x97davkaSnapshot
72864f329x97davkasnapshot
301ca81e3x97davkaSnapshot of a significant overhaul
2370bd40bx97davka*** empty log message ***
f1f35c881x97davkaFixed for loops and array expressions
602e52971x97davkaAdded FOR loops
418b83f0bx97davkaAdded arrays and matrices
c297bfa4fx97davkaUnroll for loops
0350ef0bfx97davkaAdded Binding datatype to separate equation and value bindings.
fc6c945ecx97davkaRenamed mod_assignment to mod_equation
979df2c35x97davkaHandle constant crefs and other stuff
54048fb48x97davkaNew file
4dc252dd1x97davkadoc fix
43709351bx97davka*** empty log message ***
7a7536934x97davkaMore on connections
7c0f71466x97davkaFixed component_reference
dbeb3c67ex97davkaDoc fixes
05d3613aax97davka*** empty log message ***
fec563b3cx97davkaRenamed Env.new_frame to Env.open_scope Added documentation here and there Made Exp.ComponentRef a datatype with two constructors
7e32c0f1ex97davkaFixed dependencies
fd8d77dc3x97davkaWorked on the source annotations.
bc7ecee15x97davkaFixed boxedverbatim TeX magic
58d89787cx97davkaNew file
2b60a5a3ex97davka*** empty log message ***
09a824c8cx97davkaMore on connections and the annotated semantics
e650636a0x97davkaBuild source files
89ddd2031x97davkaFixed redeclaration
d27bbb8fcx97davkaReordered and fixed documentation
911e0573bx97davkaNew files
0c4c163bex97davkaAdded REDECLARATION
108034513x97davkaFixed documentation
749c61ba1x97davkaAdded strings and booleans.
bf38a3fafx97davka*** empty log message ***
0e762146fx97davkaEnable use of both kinds of modifications
a29f74f45x97davkaStore reals in double instead of float.
b03f34a8ax97davkaFixed variable lookup and stuff.
76f740563x97davkaHandle CAST_TO_REAL
d422ed6bcx97davkaCombined CLASSMOD and EQUALMOD
f90620634x97davkaFixed package lookup
ff2602fbex97davkaFixed lookup relations
6baea3fe7x97davkaAdded print_type
1b314f879x97davkaMoved lookup relations
952fb67dcx97davkaAdded test target and lookup.rml file.
7c7fb100bx97davkaWorked some more static expression analysis.
643deb880x97davkaFixed static analysis and constant propagation of expressions.
7216d61b7x97davka*** empty log message ***
45ab08814x97davkaMore on restrictions and stuff
5b6d8f08ex97davkaCheck more restrictions
724cfb4d0x97davkaTreat predefined types separately.
d28e32339x97davkaUse R_PREDEFINED.
e522f77b8x97davkaUpdated with ClassInf
ed5de8184x97davkaRestructured with ClassInf
39573c585x97davka# dump
3d5e2743ax97davkaKeep a ClassInf.State and check it sometimes
96912c0f9x97davka# cosmetic
45e901d58x97davkaSave the ClassInf.State
d172193d8x97davkaUse ClassInf.print_restr
d35c3e95bx97davkaNew file
093f47b9cx97davkaUse ClassInf
3c9ed504cx97davkaMoved ClassRestricion
d5a8e8ab5x97davkaAdded classinf.rml
8cc3658c6x97davkaExpanded
0ddb65ad7x97davkaNew file
62146dab3x97davkaUse new Exp.Subscript definition
5f17f3effx97davka# more tokens
4104c9c83x97davka# cosmetic
cc63b67a9x97davkaAdded ceval
74f6b1819x97davkaAdded -lm to LDFLAGS
b6925521cx97davka*** empty log message ***
4179ac2d2x97davkaSpecify inner and outer connectors.
af110c1edx97davkaImplemented outer and inner connectors.
abd5c885cx97davkaNew stuff about connections
bdc3eff3ax97davkaNew path to rmlc
f5e2fde46x97davkaAdded better support for flow variables. Changed to new "fail" style.
64cc01e85x97davka*** empty log message ***
f863bcfb2x97davkaBuild connection sets.
2354aa790x97davkaExport dump_list
e66f51b32x97davkaAdded dump relations
09dc51df4x97davka*** empty log message ***
585de6b68x97davkaAdded eq_cref
a4112c6dbx97davkaNew file
4e2e6bab8x97davkaFixed .SUFFIXES finally
76c95d991x97davkaFirst stab
265f6f82cx97davka*** empty log message ***
0f1637482x97davkaUpdate according to changes in absyn.rml.
860dd211fx97davkaFixed include files.
d24649038x97davkaLots of new types.
3fb16f3e2x97davkaKeep track of subscripts.
834c5d559x97davkaChanged dump a little.
90df105dfx97davkaLots of new stuff and fixes. Now does pseudoconnecting.
2e20d6525x97davkaUse Types.VarAttr.
87f4c647bx97davkaSubscript and ComponentRef now lives here
cc9d92cb7x97davkaUse Types.VarAttr. Some new lookup relations.
7697bd3c1x97davkaChange path to component_ref in some places
c11ab8c2ex97davkaMoved Subscript and ComponentRef to exp.rml
46237f04fx97davka*** empty log message ***
5a801cdecx97davkaWhy connect() should be a special construct.
8f1a6399ex97davkaAdded CONNECT
bef5ec921x97davkaNew RML version
ae392ce9ex97davkaNew file
8466c4f06x97davkaBuild Types.Type Use lookup_var_local where appropriate
3d9a6f9abx97davkaNew relation lookup_var_local Use Types.Type in FrameVar
50fc7a295x97davkaDump EQ_CONNECT
ef8ef39b3x97davkaUse Explode
4a8c73b4ax97davkaTreat connect() as a special construct.
831b81898x97davkaBuild if expressions
1f02c12e1x97davkaAdded mod_assignment
a5ebcae03x97davka*** empty log message ***
bee8e2d3cx97davkaShdow assignment equations.
9c03acac8x97davkaSave assignment modifications in the environment.
e8dec7201x97davkaRemoved
4d4e2088dx97davka*** empty log message ***
878af371ex97davkaFixed EXTENDS
c142a1423x97davkaUse Explode
551a4ad0ax97davkaUse Explode Started to check "protected". Not done yet.
22117ef79x97davkaDebug message
951868a18x97davkaRemoved explosion code
1d19178cex97davkaRemoved references to modAST.h
8ebf3fdcdx97davkaNew file
abadfa49fx97davkaRemoved
5e338bd0ax97davkaRemoved
399836e1cx97davkaFixed PUBLIC and PROTECTED
8b36183a1x97davka*** empty log message ***
8c73db3b3x97davkaFixed bug in merge.
61271fb70x97davkaImproved modification handling
8a735766bx97davkaTypo
157f00b53x97davkaAdded dependencies
4d5003f9dx97davka*** empty log message ***
722b45c56x97davkaUpdated to RML 1.9.0
0cf5e5ccax97davkadoc fix
af0952cb4x97davkaRML fixes
5e9d7f998x97davkaRewrote bigtime. Added dump, build and implemented merge.
b2a672eb3x97davkaUpdated
35f5f1344x97davkaNot used anymore
3ec13e1f2x97davkaRewrote to not use lform, but put modifications in the environment.
da53f7d62x97davkaStore modifications together with classes.
b1428e5ecx97davkaUpdated
d24f2bbcex97davkaAdded element_spec_name
a7f8b2d33x97davkaFixes
a0a6c2533x97davka*** empty log message ***
80648e9c2x97davkaRenamed COMPONENTS to COMPONENT Removed dead code.
96a8dac83x97davkaUse absyn again.
7815e1218x97davkaMoved to other documents.
4d2441986x97davkaUse lform
31221c524x97davkaPrepare to use lform
6d08e967cx97davkaUpdated
4915167b8x97davkaStart using lform.
aaae56163x97davka*** empty log message ***
6599ba8c3x97davkaHandle equality modifications.
05fce182ax97davkaLots of small fixes.
8ecce831ex97davkaNew files
25e7be48dx97davkaFixed logical expressions.
a4c98b84cx97davkaAdded some tokens.
e84d4dea4x97davkaNoted that equality modifications are not yet handled.
a1870459cx97davkaAdded informational messages.
78e68c6e4x97davka*** empty log message ***
2afa78390x97davkaRenamed prefix_add to prefix_path and added another relation called prefix_add
5706f0623x97davkaAdded empty_mod
1c7952ceax97davkaAdded built-in types to builtin.rml Fixed some trace output
48a427283x97davkaAdded some trace info
d2fd268d0x97davkaNew file
857ac64f6x97davkaAdded builtin
37f34cfbbx97davkaExport prefix_add
c32f26114x97davkaCosmetics
8c8a4196dx97davkaFixed the initial environment
2449db2d7x97davkaMoved path_string
9bd2b42b1x97davkaAdded convenient access to element names.
aaec8e9c6x97davkaSplit in submodules
5b98d32ddx97davkaAdded env.rml, mod.rml and prefix.rml
af7f390abx97davka*** empty log message ***
c9b53071ax97davkaFixed a bug in the Modelica spec.
efb15466fx97davkaDon't use lform, but inst.
90bae87f0x97davkaThis file is no longer used.
6f1e66d02x97davkaRewrote large parts. Don't use LForm.
33fe431e7x97davkaFixed a bug in the Modelica spec
bb892b160x97davkaAdded inst.rml
7e35a6a58x97davka*** empty log message ***
1115ee11fx97davka*** empty log message ***
2cf7ba80bx97davkaBugfixes
3c3e42ec5x97davkaAdded inst.rml
c629dfcc2x97davkaInstantiate
12c421e29x97davkaNew file
4b9f3f921x97davkaUpdated
16396d1d2x97davkaKeep up with changes in Absyn.
53794c302x97davkaCall Absyn.explode_components.
5b63fd98ax97davkaExpanded a lot. Now it compiles.
0e70608e1x97davkaLittle fixes
cc8cabcdex97davka# cosmetics
05a72ae9bx97davkaExplode components. Changed some Idents to Paths.
b8d285e29x97davkaNew file
42f662284x97davkaFixed compilation order
5fdb7baa2x97davka*** empty log message ***
fd2ef28aex97davkaRemoved almost everything.
b786c2d69x97davkaConvert to lform
314951401x97davkaNew file
ef075a392x97davkaAdded lform
6a8be3cb5x97davkaAdded mk_box7
82b5a1186x97davkaFixed so it works for most programs.
fa845bbf8x97davkaPrint more
84f1b14d7x97davkaUpdated.
b223542f4x97davkaUse a component list in element specs.
f991f8f71x97davkaFinally managed to build the subdir properly.
99ceb6f1fx97davkaFixed rule "relation"
1b95bd550x97davkaAdded relations and logical expressions
baecbcb57x97davkaRewrote subscript handling Fixed element modifications
af86e9554x97davkaPrettify
8d4feb9c0x97davkaInline type_prefix
781c94503x97davkaDump extends clauese better
cc912fec8x97davkaConstruct constants correctly.
70ae0e489x97davkaRemoved quotes from string constants at once.
a96c42121x97davkaAdded strings and booleans.
6d9280c93x97davkaDump more stuff.
f22b68e5cx97davkaExtended. Now it seems to parse type definitions OK.
4df116e28x97davkaHandle more tokens
1decaa045x97davkaFixed indentation
e24db13c6x97davkaMore and better rules
1fcdbe64ex97davkaMoved everything to absyn.rml
529b90130x97davkaMoved everything from class.rml here
13f1c5b86x97davkaAdded some box functions
d52761c45x97davkaFixed horrible typos that made me lose a couple of days
b9cc7447fx97davkaNew function: sibling_list Other fixes
32e83c95ex97davkaNow builds a complete AST for a simple program!
b07e4771cx97davkaUpdated
9c1c07c0ex97davkaExp.dump had moved
2968c7b8bx97davkaGet the file name from the command line
9ba385e0cx97davkaMoved the expression dump relation here
9d5f763acx97davkaMoved dump to dump.rml Added the Path datatype
41276b310x97davkaExpanded Class.
408dc6db1x97davkaRemoved test.rml
12d4d33ecx97davkaNew file.
2991b90c5x97davkaMoved stuff to attrib.c Fixed tree-building.
f18abb52cx97davkaRemoved unused code.
584197e69x97davkaNew files.
82e8b7586x97davkaBetter dependencies.
51113c0c1x97davkaRemove .c.o target.
28742875dx97davkaBuild an AST. Added some routines for printing an AST.
f6443f89ax97davkaUse SparcWorks cc Call antlr with -gt -gl
2cf23062cx97davkaTaken from rml 1.3.6.
d0321e99fx97davkaCreated a dummy parser that at least uses yacclib.
bd5a3f6d7x97davkaAdded yacclib.
ae6309656x97davkaNew file.
575227616x97davkaUse the parser.
58695ff1bx97davkaBugfixes.
cfc94553fx97davkaAlways run make in ast/
914aee3f2x97davkaTried to implement something callable from RML.
fe1300b39x97davkaNew file
414ca7c0fx97davkaTry to use Parser.parse.
69edd60dcx97davkaDon't compile parse.rml
42fa7de89x97davkaRemoved tokens.h
2037553c3x97davkaThis file is now empty.
20ceb8cc4x97davkaRemoved
2be884896x97davkaChanged to C. Removed lots of stuff.
2ab12299ax97davkaI don't think this is actually used anywhere.
1396dea94x97davkaRemoved bool.h
92dcc08efx97davkaCleaned up and changed to use gcc.
5434cb888x97davkaRemoved some definitions and stuff that I don't use (yet).
687249f72x97davkaUse an empty main relation.
d3384d336x97davka# Added a comment
4221d05d4x97davkaHeavily hacked.
4828720e6x97davkaJust saving
ce613f05ax97davkaRemoved.
3c5da6dc4x97davkaInitial revision
8bf245498Adrian PopNew repository initialized by cvs2svn.

Library Changes

LibraryChange

Models Affected