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
5dc61f678fAdrian Popany target starting with 'msvc' is msvc
c33af0978ePer Östlund[NF] Check conditional component contexts.
9a3a758228Per Östlund[NF] Fix expandable connector lookup.
ad34730536Adrian 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
92a4119475Andreas HeuermannHandle complex equations in when statements.
d9dbed6b5eAndreasFix rpath for OMSI FMU with gcc
a4e794b3fdAndreasFix wrong linkage of expat lib for FMUs
d2540cc708Per Östlund[NF] Improve unit checking.
6cebda4386Per Östlund[NF] Improve overconstrained connection handling.
c8a95fdf0ckabdelhak[BE] Avoid records in remove simple equations - #4793
80f6ed2acbPer ÖstlundFix NFUnitCheck.getFunctionName for records.
ee7aaabe65Adeel Asgharticket:5030 Fix the broken profiling for OMEdit
5daaf9ba0dkabdelhak[BE] Remove dumping of empty sets from index reduction
f6e1212442Per Östlund[NF] Fix redeclaration of enumerations.
364f80f3dfarun3688fix dataReconciliation top level inputs
0baa0669f6Martin SjölundFix detection of setlocale using -O0
10081da2c8AndreasFix bug introduced by PR #3067
67b8802451Andreas[OMSI] Added buildModelFMU for simCodeTarget=omsic
10a0a9df6aAndreas Heuermann[OMSI] Fixed wrong header guard and warnings in OMSIBase and OMSIC
84b5f7ec38Martin SjölundUpdate 3rdParty
fafb07605dMartin SjölundFixes for latest MacOS release
8b33074dd5arun3688generate dataReconc-csvInputs when not exists
a5eccbadb6Per ÖstlundAdd dumping of external declaration annotations.
bdf89c36abMartin SjölundLoad libraries case insensitive on case sensitive OS
b7a2c69139Volker Waurichcatch crash in visualXML
eef9c24ac5Adeel 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.
c252b047bfAndreas Heuermann[OMSI] Add OMSI C library
047112f289Per Östlund[NF] stream connector improvements.
2da4cb3758Per Östlund[NF] Fix structural analysis of if-condition.
22a570fa36Per Östlund[NF] Disable checks for actualStream/inStream.
8e0f7c517cPer Östlund[NF] inStream/actualStream improvements.
e9f83304e4kabdelhak[SimCode] Remove unnecessary verbose SimCode dump - Repeats the same information - Dump size grows factorially with number of elsewhen statements
dd336f954eAnatoly TrosinenkoAllow parsing the Text(textColor = ...) annotation
b423c40434kabdelhak[BE,daeMode] Fix: add removed (simple) eqns to dae system
d6957d571bkabdelhak[BE] Add initial state selection - available with flag "--initialStateSelection" - implemented for C runtime - has still some bugs
5ef43cce81Per ÖstlundHandle uses-annotation according to the standard.
9a506ce9bfAnatoly TrosinenkoInitial implementation of String vars in the Cpp runtime
963b33e136kabdelhak[BE] Add jacobian dependencies - Preparation for initial state selection, used for matching - The dependencies of a jacobian are all unknowns contained in it
3006b8aee0Per Östlund[NF] Fix Typing.typeCrefDim for array types.
ee4deabd83kabdelhak[BE] Add unique index of stateSets as attribute
3f5cb6832ekabdelhak[C] update inline documentation of stateSelection
f2e6265d09Per Östlund[NF] Don't evaluate external objects.
d82185e196Per Östlund[NF] Various fixes.
2ee23a6f58kabdelhak[C] split up sets for state selection
199705757bPer Östlund[NF] Various fixes.
8a2def5adaarun3688fix csv file inputs and LOG_STATS for dataReconciliation
0a7961e9a5AndreasFixed error with install_name_tool for OMSI
45edd24a9eMartin SjölundAdd a warning if FMU is generated without compile-time URI
b694f3f03eAndreasFix linking shared libs on mac os
9cb23bc220Martin SjölundMove cJSON to Compiler runtime as simulations do not use it
30afa79d31Martin SjölundDisable mmap in FMUs
0839b2fe17Per Östlund[NF] Add component prefix checks for records.
450104a6cePer Östlund[NF] Fix Expression.typeOf for size(x).
8676697867Martin SjölundAllow to configure without hwloc
73c7be8391Martin SjölundFix path that the FMU binary is copied back into
7984f74f84Martin SjölundCopy source-code FMU to a docker volume before compiling
1983c2f144Anatoly TrosinenkoAdd some example auto-completion information for use by OMEdit
a2024ab5ccMartin SjölundFix path used to debug docker run in FMI cross-compile
304f3536adMartin SjölundFixes for crashes in dynamic FMUs
ed7a206ba8Martin SjölundMore debugging for cross-compilation of FMUs
5de59c3df0Martin SjölundFix runtime CFLAGS detection
17ca1eee86Martin SjölundFix configure of ModelicaExternalC
384c6f8e70Martin SjölundShow files visible in docker before failing
0464950120Martin SjölundFix include path for docker FMI builds
ccf8c899a6Martin SjölundLink libzlib explicitly since gcc fails bootstrapping
f12151ccadAdeel AsgharMake sure file is not modified before using the cache
b9d5e4a5bdMartin SjölundClear the extra memory pools on each iteration
09f079c675Adrian Pop[BUILD] - add missing = in Autoconf.mo.omdev.mingw
db4e230f0fAdrian Pop[BUILD] - fix System.c external interface for bootstrapping on Windows
81d8a03651Adrian Pop[BUILD] - fix generation of Autoconf.mo on msys/mingw
02027beef5Martin SjölundMove more constants from System.mo to Autoconf.mo
5db7684885Martin SjölundUse Autoconf.mo instead of external C functions
c97542d2cdMartin SjölundUpdate work-around for MSL 3.2.1 tables
13eb1f39e6Martin SjölundCompile ModelicaExternalC static lib
4a2a554eb6Martin SjölundUse -Wl,-Bstatic for user libraries in FMUs
c84e407b45Adrian Pop[RUNTIME] the usual evening fix for Windows builds
3997aa3fdbPer Östlund[NF] Don't split external objects in connectors.
72c947e42aPer Östlund[NF] Fix ExpOrigin.isSingleExpression.
b8d7e26fcdPer Östlund[NF] More fixes for checking when-clauses.
adba422fe1Martin SjölundCall the correct Makefile target on OMDev
fc29404a7ePer Östlund[NF] Fix when-branch cref set check.
ec459e7babMartin SjölundAdd more timers for solvers
53c7613a63Martin SjölundTry even harder to fix Windows builds
e9616abe96Martin SjölundFix for Windows builds
f337f6da5fAdrian Pop[OMSI] link with expat on non Windows
9c7d828b1dAdrian Pop[OMSI] fix the search lib path for sundial
a356daf4bfMartin SjölundDo not include the standard FMI headers in the FMU
03a4ab6fe1Martin SjölundUpdates for source-code FMUs
e13c1c325bAdrian Popattempt to fix MacOS builds - depend OMSI on fmil as well
ab4e3e6234Per Östlund[NF] Improve error checking of when-clauses.
e3fab539cfAndreas[OMSI] Add OMSIBase library with solvers
f881685f6cPer Östlund[NF] Fix visualization (ticket:5319).
b70342a5e2Martin SjölundMake the diff algorithm handle within in new code
759292c242Per Östlund[NF] Remove workaround for ticket:4904.
417604fee9Martin SjölundExtend LOG_STATS_V with more timers
2305d7585aPer ÖstlundFix Interactive.transformClassInProgram.
89078f5d62Per ÖstlundFix integer packing in C code generation.
72fdfb4f88Martin SjölundDo not run both event and output timers at the same time
d85a258495Per Östlund[NF] Disable evaluation of final parameters.
3b38d7b821Per Östlund[NF] Improved parameter evaluation analysis.
050a820628Adrian Popuse fabs for doubles
f3500415c7Adrian Popfix MacOS builds
570e9f077aAdeel AsgharOption to filter the nested classes when dumping the class via listFile
04df807f5ePer Östlund[NF] Function scoping improvements.
f63f7ac403kabdelhak[BE] Consider complex as impure for removeSimpleEquations
f44020770aPer Östlund[NF] Real range fixes.
2f5968bdb3Per Östlund[NF] Minor type casting fixes.
0c79e1c5f0Per Östlund[NF] Try to detect instantiation loops.
9a49909f06Adrian PopFix windows build after linking with tables
113e9da816Martin SjölundUpdating 3rdParty
a5562ccab4Per Östlund[NF] Improve ModelicaIO support.
965626166cPer Östlund[NF] Implement ModelicaIO_readMatrixSizes.
fe78a6da21Per Östlund[NF] Implement ElementSource.getElementSourceTypes.
fe6fd3174dMartin SjölundDo not BackendDump empty sections
61571e834aPer Östlund[NF] Merge constraining class modifiers.
04f106144eAdeel AsgharMake buildEncryptedPackage export read-only packages
56f218af8dPer Östlund[NF] Merge redeclared attributes in correct order.
cfee59268fAndreas[OMSI] Preparing Code generation for C
ea6c15501fPer Östlund[NF] Fix ComponentRef.transferSubscripts.
a0d3cc1b67Per Östlund[NF] Reuse pointer when redeclaring component.
1cc697e0e5Per ÖstlundAdd referencePointerString debug function.
68d87aa246Per Östlund[NF] Use explicit scope in InstNode.scopeName.
50bc1b1364Per Östlund[NF] Split TUPLE() := TUPLE() assigments.
5c656ca74eAnHeuermannAdd comment for parameters in generated code
f211539ebdPer Östlund[NF] Hack to fix some array conditions.
ae2ddcb40bPer Östlund[NF] Inner/outer fixes.
b55fb1b3d0Per Östlund[NF] Collect functions in array dimensions.
f0376d4b66Per Östlund[NF] Fix equation counting for _.
b691eb147dPer Östlund[NF] Improve errors for binding type mismatches.
2ba9e4bf60Per Östlund[NF] Update the call type when type casting.
69a3ec4fa0Per ÖstlundFix : subscripting in Ceval.cevalSubscriptValue.
0470a5b383Per ÖstlundImprove runtime implementation of 'diagonal'.
cc9ae78813Per Östlund[NF] Improve type casting of some builtins.
482cb0e7ebPer Östlund[NF] Fix function vectorization with type casting.
ba58857214Per Östlund[NF] Improve function vectorization.
46fdf1a5a8Per Östlund[NF] Restrict cardinality usage.
4961b36539Per Östlund[NF] Fix Call.reductionDefaultValue.
c4e03c808ePer Östlund[NF] Fix tuple calls in builtins and reductions.
a44d71c006Per Östlund[NF] Fix scope in Inst.instConnectorCref.
178481276dPer Östlund[NF] Improve replaceable base class error message.
7c64e955fbarun3688generate HTML report and debug log for dataReconciliation
57fb8ee7d2Per ÖstlundRename System.stringHashDjb2Mod alias.
0eec718df0Per Östlund[NF] Implementation of expandable connectors.
a385b605dbAdeel 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.
5c5d5ade87Adeel AsgharCheck if .mol contains .mo files If it does then load them normally
61b21dfdaaAndreasChanged string documentation, removed unused variables, changed name for omsiAllEquations.
2a07fcece6wibraundon't remove DAE_AUX_VAR case in BackendDump
2f1a098461Lennart OchelChanged more comments to documentation strings
f281bdb8d4AndreasChanged comments to string documentation in BackEnd/BackendDAE.mo
7e91156677wibraunfix index of jacobian variable in function createJacSimVarsColumn
9b98e73e36wibraunfix added jacobian vars also to HT (#1)
af50f26e46AnHeuermann[OMSI] Preparing data structure for code generation in SimCode
91743cecb4Adeel Asgharticket:5343 set the isReadOnly attribute to false When copying the class make sure we make set `isReadOnly` attribute to false.
e32846a8c7Adrian Popmore fixes to ticket:5305
0c02427c10Adrian Popfix for ticket:5340 - handle DAE.INITIAL_TERMINATE in BackendDAECreatelowerEq - correctly add DAE.TERMINATE to the regular equations, not the initial equations
b5e109e1b0Adrian 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
33c5dbaabcPer Östlund[NF] Fix checkConnectorType for derived nodes.
1afef5fbdePer Östlund[NF] Fix default connector type for discrete types.
a154b44114Adrian Popfix ticket:5336, set non connector instead of potential
cea3023604Adrian Popupdate 3rdParty
19e82eab74Per Östlund[NF] Inherit annotations in functions.
89e4fb8e69hkielupdate documentation of some functions
dfeebf26e7hkielfix compile warnings
a55f71c863Per Östlund[NF] Fix type when casting arrays.
2de3e75827AnHeuermannRemoved unused makefile rule mkbuilddir
b3d524855darun3688fix Fstar Computation for dataReconciliation
ce469c3e2aKarim Abdelhak[BE] Fix mixed-determined dump and raise index to 10
5c4124cc24Adrian Popre-update 3rdParty to latest
086fe63ba4arun3688add debug log and fix jacobian transpose for dataReconciliation
d45128c2beAdeel AsgharExpose the functions required by OMEncryption
c0983d2a88Per Östlund[NF] Fix equation order for branch selection.
e13c41a265Adrian Popfix ticket:5048, lookup starting in the class, not the parents - only do this if the class is not derived
8017c67f8cPer Östlund[NF] Expand complex array crefs.
71414e449ePer Östlund[NF] Add execStat för Absyn->SCode.
2fee2f0643Per ÖstlundFix code generation for function outputs.
4b0bcc210cPer Östlund[NF] Improve Typing.typeExpDim.
68cc738538arun3688fix datareconciliation jacobians var ordering
05c8b026daMartin SjölundUnroll the patch commands
bbc721e3bbPer Östlund[NF] Use System.setUsesCardinality.
d255b3a735Martin SjölundUpdating 3rdParty
a6a240619bMartin SjölundRemove svn-clean.py
554ce08ab4Martin SjölundUnify BSD/OSX and GNU sed syntax to one
a27fbae91aMartin SjölundUpdating 3rdParty
e10d5e4f56Martin SjölundUse $(MAKE) in Makefile
fbc944f68dMartin SjölundUpdating 3rdParty
2f863d03e8Per Östlund[NF] Make Real range generation more robust.
0f5c4be90cPer Östlund[NF] Handle inner/outer in records.
58af603f17Per Östlund[NF] Allow Fortran 77 as external language.
38fd61a5fePer Östlund[NF] Various fixes.
9a35199581Martin SjölundUpdating 3rdParty
8167b9d2bbPer Östlund[NF] Partially revert 8fcf925.
be0943f3aePer Östlund[NF] Fix scoping of redeclared components.
247f185a62Per Östlund[NF] Handle importing and inheriting the same name.
852d89ec56Per Östlund[NF] Fix operator overloading.
8fcf925f21Per Östlund[NF] Various improvements.
fcedc05ffcWilli Braun[BE] added support for INITIAL_ASSERT in BackendCreate
db18f0d5b1Karim Abdelhak[BE]apply simplifyIfEquations on initial equations
eb421e8aa8Per Östlund[NF] Evaluate bindings of complex final parameters.
bf2e0a4e49Lennart OchelDon't rename outputs
7eaf6bce73Lennart OchelReplace BackendDAEUtil.traverseBackendDAEExpsEqnsWithUpdate
e3d42ecdd1Per ÖstlundImplement --showStructuralAnnotations flag.
547468f7b9Per ÖstlundExpand crefs when simplifying cat.
21283341fdAdrian PopUpdating 3rdParty
158c497a45Adrian 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)
43044cb559Adrian Pop[FMU] static link sundials, ticket:5293
e2dbad235fAdrian Popmore execstat: at the end of frontend and for checkmodel
5e72f06ed7Per Östlund[NF] Fix ordering of when-branches.
8a20ce05c2Per Östlund[NF] Propagate structuralness via modifications.
25cfbd504dWilli Braunremoved misleading fScalings labels in kinsol dump
8cd974325dPer Östlund[NF] Fix root class modifiers.
683050ef1fDavid PolakFix FMU hybrj_ function signature
0ef03fcc64Anatoly TrosinenkoUse the stack bottom value from the old threadData, if available
23d8d265b9Adrian Popfix metis build on mac
0861aa3309Per Östlund[NF] Fix Typing.typeCrefDim.
ea40561489Per Östlund[NF] Add type checking for reductions.
bbc01270d7Per Östlund[NF] Record binding fixes.
ef2d3b4584Per Östlund[NF] Element-wise overloaded operator support.
1f8addeb06Per ÖstlundError message improvements.
1f99d4a854Per Östlund[NF] Add case for MUTABLE in Typing.typeExp.
5e47a157eaPer Östlund[NF] Flatten for-loop ranges when unrolling.
158a345b4cPer Östlund[NF] Fix TypeCheck.getRangeTypeReal.
c0d2c57291Per Östlund[NF] Improve Ceval.evalArrayConstructor.
973bab372fPer Östlund[NF] Cleanup some toString functions.
d681d71113Lennart OchelTrigger internal computation in initialization mode
8481cc556fPer Östlund[NF] Fix type in Ceval.evalArrayConstructor.
3c1d34e456Per Östlund[NF] Collect functions in builtin attributes.
0fb5b980a1Per Östlund[NF] Fix Flatten.collectTypeFuncs for arrays.
2be04fdfceAdrian Pop[NF] support range based on enumeration type
1871ad3007Adrian Popadd more operators and builtin functions to the embedded codegen
da97141980Per ÖstlundHandle record better in lowerArrayEqn.
c8cc40e45cPer Östlund[NF] Fix Ceval.makeRecordBindingExp.
c68f4330c3Per Östlund[NF] Ceval/SimplifyExp improvements.
ef2fed95faLennart OchelFix more initialization issues with FMUs
2f4f72e3f7Per Östlund[NF] Fix connection graph.
82a256a7b3arun3688add runtime support to dataReconciliation module
a4086ba132Lennart OchelFix initialization of parameters and attributes for FMUs
5c686487ebPer Östlund[NF] Retype array constructors after ceval.
15e62b72c6Per Östlund[NF] Improve toString functions.
8311f2653cLennart OchelFix capability flag maxOutputDerivativeOrder
0695240364Per Östlund[NF] Various fixes.
43bdde4e31Martin SjölundAdd the trigonometric functions to EmbeddedC
17e11864e8Per Östlund[NF] Improve Expression.splitRecordCref.
cf3c2d4445Per Östlund[NF] Fix DAE conversion of ^ operator.
b839fa14f2Per Östlund[NF] Fix DAE conversion of / operator.
8ad5de13b6Per ÖstlundImplement Interactive.transformPathedClassInClass.
1e836b6e7fAnatoly TrosinenkoImplement *_get_5D(...) array accessors
1b6a960acaAnatoly TrosinenkoDo not complain on NULL returned when allocating 0 objects
52cd12972eMartin SjölundAdditional debug messages for overdetermined systems
2b1c2bf5c0hkielfix copy&paste error
802d9c8f52Dietmar WinklerBeautifulSoup 3 is no longer maintained, switch to bs4
4eda4f7827Adrian 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
434838c38dhkielfix SVG generation script for Python3
7140453447Adrian Popfix ticket:5250 handle '<' and '>' the way GenerateDoc.mos does
d090ace87fPer Östlund[NF] Improve operator overloading.
b8ddb69cdfAndreasAdded dependency for CPP runtime on Windows mingw build
3fa798f48eniklwors[cppruntime] Adapted zero function tolerance
7a31ea6b65Adrian Popfix ticket:5249 - add a flag to typed binding to signal if it was flattened - do not flatten again already flattened typed binding
83d5105013wibraunadded UsersGuide ref ticket:4246
8255622635Lennart OchelFix typos
35cf6f80a7Per Östlund[NF] Move overconstrained equation generation.
53a0dfdf81Willi Braun[BE] adjust daeMode flag
23e4c45083Per ÖstlundImprove code generation for ADD/SUB_ARRAY_SCALAR.
7b01c957bePer Östlund[NF] Fix Record.collectRecordParam.
32d10a91dbPer Östlund[NF] Record fixes.
d8ca87311cPer Östlund[NF] Record constructor fixes.
a16d2aa3fcPer ÖstlundFix lowerEqn for initial complex equations.
c257574c6cPer Östlund[NF] Collect constructors from record expressions.
b641911211Per ÖstlundHandle DAE.REDUCTION in differentiateExp.
a1f95a6990Per Östlund[NF] Relax restriction on input/output prefixes.
e1d80fc271Adrian Popv1.14.0-dev
f4aa462e4dPer Östlund[NF] Fix Expression.compare for arrays.
c1a48de423Per Östlund[NF] Add missing cases to Expression.compare.
cb2f4d4df8Per Östlund[NF] Various fixes.
c7c9c712a8Per Östlund[NF] Clone derived nodes.
9fc7ba2af1Per Östlund[NF] Improve evaluation of record fields.
8ffc95a47ePer Östlund[NF] Improve functions called through components.
e7d386dfb5Willi Braun[Backend] symbolic jacobian remove defines in generates code
de1221967fRüdiger Franke[Cpp] Normalize paths for simple concatenation of file names
6770e63000Rüdiger FrankeRename --solver-threads option to confirm with Cpp naming
c842427a67Rüdiger Franke[Cpp] Don't use outputPath for results file, ticket:4773
aa64ed4c64Per Östlund[NF] Constant evaluation optimizations.
8b10a6696aPer Östlund[NF] Include root name when creating complex DAE types.
99e1c39547Per Östlund[NF] Improve Expression.hasArrayCall.
809abfcb3fPer Östlund[NF] Collect more record constructors.
bccd64c5acPer Östlund[NF] Record fixes.
2661fa9b04Rüdiger Franke[Cpp] Implement flags for input and output path, ticket:4773
9bcafd67aaRüdiger Franke[Cpp] Fix derivative vars in XmlPropertyReader, ticket:4773
6f93d97a8aWilliScalarize differentiated exp RSUB and TSUB equations
0a46029abaWillipartial differentiation of function with record outputs
210af859fbRüdiger FrankeRe-add local ModelicaExternalC to Cpp runtime, ticket:5227
7f7fb53898Per Östlund[NF] Clone inherited classes.
96dfd76e28Per Östlund[NF] Evaluate more constants in functions.
12ee163a54Per Östlund[NF] Minor fixes.
6ac3d327c5Per Östlund[NF] Fix type checking of tuple expressions.
83bdb3db9dPer Östlund[NF] Fix subscripting of ranges.
eeb0df6ceeRüdiger Franke[NF] Treat arrays of overconstrained connectors
17cf378aecPer Östlund[NF] Initial partial function application support.
0fa8007989Per ÖstlundFix anyString for SOME().
f5cbc6bd01Lennart OchelFix CS-FMU doStep function - Fix event handling - Fix integration method (euler)
dc05202e2eAdrian Popfix linearization file generation in Windows (ticket:5223)
19f18d6522Rüdiger Franke[BE] Improve inlining and solution of array equations
f80c21e1a9Rüdiger Franke[Cpp] Use array assign in for loops
cb53a44ef9Rüdiger Franke[Cpp] Implement array fill assignments
e2321aef7fRüdiger Franke[BE] Create array equations for array bindings
a581f29091Per ÖstlundImprove parsing of function partial applications.
74a1cd4dacAdrian Popfix GC stats
d5e13f9293Lennart OchelSmall changes to Modelica export of linearized models
a616890f6dLennart OchelMake dummy states derivatives bidirectional
8fe98ae958hkielremove superfluous matchcontinue
565b72f5dehkielimprove doc generation speed
789a1ecd90Rüdiger FrankeVectorize equations with iter at appropriate position
c308368c88Per Östlund[NF] Fix Ceval.evalComponentBinding.
42eeda4524Per ÖstlundFix inline type checking.
7905e37cf5Per Östlund[NF] Fix NFFunction.mapExpParameter.
a2b203f300Per Östlund[NF] Evaluate more package constants in functions.
13a4ae4fa6Per Östlund[NF] Fix typing of when statements too.
088d435241Per Östlund[NF] Fix typing of when conditions.
144493f247Rüdiger Franke[Cpp] Fix reduce_array, usub_array and in-situ access to array slice
4125b19e2dhkielfix for Python3 remove redundant code optimize string compare
83d21165d8Rüdiger FrankeTreat array flows as array equations and solve them for code generation
e8bea85971Per Östlund[NF] Improve simplification of functions.
52bf40229chkielincrease performance of file name case sensitivity fix
5c466368f9Willi Braun[BE] add support for if equations as residual equations
19ec6d1a77Per Östlund[NF] Evaluate >= as >=, not as >.
2492d601adPer Östlund[NF] Improve typing of vector().
223798abb1Per Östlund[NF] Evaluate parameter subscripts.
98896ae5cfRüdiger Franke[Cpp] Skip array subscripts in cref names if not NF_SCALARIZE
9188bd56e7Rüdiger Franke[Cpp] Implement operator= for ArraySlice to avoid call to crefIsScalar
648de42647Rüdiger Franke[Cpp] Consider array slices with less subscripts than dimensions
47d8ecf261Rüdiger Franke[Cpp] Fix code generation for array dimensions and slices
d4e9036c79Rüdiger FrankeApply inline to for-equations as well
2b8ffc95b1Rüdiger FrankeConsider ADD_ARR and SUB_ARR when solving equations
3e8df38ec1Rüdiger Franke[NF] Treat vectorized connectors with flow variables
023c904a11Williadd RSUB dump to ExpressionDump
0e4d8eed0fPer Östlund[NF] Remove bad NFCeval optimization.
c54cb4b24aAdrian Popsupport cycles in anyString (ticket:5205)
804c58ed3bPer Östlund[NF] Fix inStream/actualStream on arrays.
6da90a04e5Per Östlund[NF] Generate fold expression for reductions.
2726ae48eePer Östlund[NF] Improve Expression.recordElement.
fbe0a66755Per Östlund[NF] Initial support for functional arguments.
c6038ff000hkielfix creation of zip file use dominant_baseline instead of alignment_baseline to circumvent SVG display flaw in Firefox
dd78c0858chkielarchive Icons as well clean working dir before creating docs
08c3710b3eAdrian Popcopy values of fmi2CallbackFunctions in fmi2Instantiate - copy fmi2CallbackFunctions* functions in fmi2Instantate as it could be freed by the caller environment after the call
06d58cd7fePer Östlund[NF] Implement -d=evaluateAllParameters.
c77f81ef74hkielsmall fix for GenerateDoc.mos
d129e47b8bPer Östlund[NF] Various fixes.
e073cfc206Per Östlund[NF] Fixes for Modelica tables.
d39b07be94Per Östlund[NF] Optimize cref evaluation.
9a925117daPer Östlund[NF] Optimize evaluation of for loops.
7e237d3711hkielfix GenerateDoc.mos
ad7bdaf987Per Östlund[NF] Improve handling of Evaluate=true.
ff431bde68hkieltry to fix some "Argument list too long" errors
898f94d471Per Östlund[NF] Simplify trivial array constructors.
ad14159dd6Adrian Popbetter explain where to change directory
3fd3624227hkielmake subdirs for hashed SVGs optional
6571fe8922Martin SjölundUpgrade libgc to 8.0 release
a588c55bc8Rüdiger FrankeGeneralize FOR_EQUATION in backend from left=right to any equation
01a2928633Rüdiger FrankeUse crefToExp when creating backend DAE with arrays
76f3cebd41Rüdiger Franke[NF] Convert equality of array type to DAE.ARRAY_EQUATION
8a234f06ddPer Östlund[NF] Allow invalid bindings on deleted components.
7a86b4c7eaWilli Braun[daeMode] fix decision when use pure algebraic solver
f73af463cahkielfix link to svg
743eec1b1aRüdiger FrankeAdd equation size to vectorized equalities and for loops
8e8393f573Rüdiger Franke[NF] Skip empty array variables and equations
a08ef7bf24Per Östlund[NF] Fix typing of Clock constructors.
5e591840b0Per Östlund[NF] Expand transpose during simplification.
f66e5ac112Per Östlund[NF] Disable expansion of function arguments.
13e5b32c4bRüdiger FrankeAvoid conversion of of a = b to b = -(-a), ticket:5144
e57c4cc10bRüdiger FrankeDisable inlineArrayEqn in vectorized models
58cae62e02wibraun[cRuntime] add some jacobian statistics
75c4b3ecaaPer Östlund[NF] Expand function call arguments.
be5254a735wibraunfix SimCodeDump, dump also bool variables
88c0b81bc3Per Östlund[NF] Do more branch selection during flattening.
3753d6d745hkielremove ulimit from call, it hangs the script
18e327174cPer Östlund[NF] Split record crefs in binding equations.
e14b054320Per Östlund[NF] Improve handling of if-equations.
9595dac0e3Willi Braun[BE] replace zeroCrossings in jacobian matrices
ecd1fed3ecWilli Braun[cRuntime] fix total simulation time measurement
fb2861e8c3hkieldump model name and start time in generate_icons.py for debugging purpose
bf49d96b05Per ÖstlundOptimize EvaluateFunctions.getStatementLHSScalar
ca41844c37Rüdiger Franke[NF] Evaluate constants in for-equations as well
78191053e3Rüdiger FrankeRename sub-methods for initialization from define... to init...
1619f730c8hkielfix race condition on concurrent call
c303e6d32ePer ÖstlundOptimize EvaluateFunctions.
d996466532Rüdiger FrankeSimplify treatment of trivial array equations cref=exp and exp=cref
e645dd7914Per ÖstlundAdd missing dgelsy to Lapack functions.
29048075a1Rüdiger FrankeRemove separate memberVariableDefinePreVariables
dcd7c9ef5fRüdiger FrankeSeparate init of StatArray from assign with operator=
095844b397hudsonUpdating 3rdParty
a5a404e28ehkielclose opened files again
b7aefa70echkielDo not crash when Bitmap file is not found
89692f53d7Per Östlund[NF] Fix Expression.applySubscriptArray.
65065879c1Rüdiger FrankeDetect enumeration type in arrays as well
d7274ca925Rüdiger Franke[NF] Keep vectors in connect equations
0dbda2b3b4Rüdiger Franke[NF] Vectorize arrays of components, ticket:5144
bac7d12e38Per Östlund[NF] Improve typing of record field dimensions.
521d55e98fhkielgenerate hashed SVGs in subdirs
7961fdb4d8Per Östlund[NF] Improve array assignment in EvalFunction.
00d75285f7Per Östlund[NF] Fix typing of dimensions.
6127ec966dPer Östlund[NF] Various improvements.
0283b33babPer Östlund[NF] Improve DAE conversion of reductions.
c7d9e16dcfPer Östlund[NF] Fix Call.typeCall.
f34bf81fbaPer Östlund[NF] Improve handling of reductions.
63c9d14014Per Östlund[NF] Make inStream evaluation properly recursive.
9b06327d04Per Östlund[NF] Fix handling of Evaluate annotation.
09a79cbaebhkieldo not generate json with icon annotations
976a9966f8Rüdiger FrankeTreat sample with clock constructor in array equations as well
ec7f7412e8Rüdiger FrankeMake inline integration for synchronous models work with arrays
eda1ea2dadRüdiger FrankeChange size of array equations to 1 if -nfScalarize
dad3995e5fPer Östlund[NF] Use correct origin in Typing.typeCref.
d59074e77chkielembed image data from URI into svg
e6854b5043hkielput base64 data into svg image
09d7769b65Per Östlund[NF] Add ceval handlers for Clock constructors.
2e84817805Per Östlund[NF] Fix Ceval.evalComponentBinding with 'each'.
7fd4fbc3feAdeel AsgharAllow only the valid FMI versions. ticket:5146
3f4c043b56Rüdiger FrankeReactivate Cpp code generation for SimCode.SES_FOR_LOOP
6952465e4eRüdiger FrankeConvert BackendDAE.FOR_EQUATION to SimCode.SES_FOR_LOOP (simplified)
d2c673dcb6Rüdiger FrankeOptionally strip loop subscript from clocked states
e37e5cc072Rüdiger FrankeExtend treatment of for-equations in backend
9220d77b38Rüdiger FrankeConvert DAE.FOR_EQUATION to BackendDAE.FOR_EQUATION, ticket:5110
0641eaf32fRüdiger FrankeGenerate FMI model structure without dependencies for array vars
dd5a6fd765Rüdiger FrankeTreat variable index for array elements in FMI model description
efe296fac1Rüdiger FrankeRoll out arrays for FMI model description and Cpp init XML files
098c4ec2fdRüdiger FrankeTreat array variables during Cpp code generation, ticket:5110
0880a6c600Rüdiger FrankeAssume simple array equations solved and count scalars for ModelInfo
8b160f9d2aRüdiger FrankeLet simple array equations pass the backend, ticket:5110
cc4c1bf6abDietmar WinklerMake sed greedy since there are two links per line to fix
3638716391Adrian Pop[NF] don't try to evaluate external functions in the backend
5468d69debPer Östlund[NF] Move general evaluation to separate phase.
6f85ead02fMartin SjölundDo not add weird GCC CFLAGS when using ccc-analyzer
317fb48548Martin SjölundPrint the TRY_FLAGS accepted
7ebe12bc50hkieladjust 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
5bf01fd89dDietmar Winklerformat expects string and encode not needed
b102b48472Rüdiger Franke[NF] Preserve for loops with -d=-nfScalarize, ticket:5110, ticket:5144
84d4820dd1Adrian Popincrease the timeout 600s is not enough for MSL icons
43ad2678acAdrian Popticket:5144 do not expand complex array components
b9307fbc48hkielfix 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
d4d60596c7Willi Braun[CG] stip subs before copy array
b860115532Willi Braun[cRuntime] fix minor outpur issue in kinsol
090346b01fWilli Braun[BE] added debug flag to enable error asserts from min/max attributes
0cdd3ea6a5Adrian Popfix ticket:5134, pass by reference
d671df53dfAdrian 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
9646ce4418Per Östlund[NF] Don't evaluate impure funcs in if-conditions.
b0af930c0bAdrian Popfix for ticket:5133, make impure function calls be parameter expressions
e941483d36Adrian 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
2708d45b1dAdrian Popactivate the needed flags when -d=-nfScalarize is on
aa6173bbd4Adrian 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
3048851a8fAdrian 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
0f7d6b9972Adrian 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
f7f06a216fAdrian 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
09518b9e2cAdrian 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
92b7fbb1dePer ÖstlundCheck named arguments of API calls like simulate.
95e1e12572Willi Braun[BE] fix order of jacobian equation of a dynamic stateSet
03101bd0b4Per Östlund[NF] Variability fixes.
0bcaee03bcPer Östlund[NF] Expand tranpose better.
232b213467Per Östlund[NF] Fix simplification of transpose.
049ab69342Rüdiger FrankeSupport array equation with der(v) on left hand side
18752c9b4fAdrian Popfix for ticket:5129
358f0dcc97Adrian 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
eb75cbe888Rüdiger FrankeRestrict to previous with Cpp runtime too, ticket:5110
66ceece9bfRüdiger FrankeSupport more vectorized calls for Cpp runtime only, ticket:5110
bfccc5f2d5Adrian 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
5b5cfe87b3Willi Braun[FMI] added debug flag "disableFMIDependencies"
9e884a5b46Adrian Popremove the output from cleaning, it might change
c3a6587d8fAdrian 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
dfb7517be7Per Östlund[NF] Do substitution of default function arguments.
3f9ecccd2cAdrian Popfix library linking order
2f395d31aaPer Östlund[NF] Fix typing of min/max.
22bbcbbc91Adrian 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
f9edf2817dRüdiger FrankeRestrict collapse of arrays with same call on each element to previous
1fd1dd9e67Rüdiger FrankeCollapse arrays with same call on each element, ticket:5110
df1914c203Per Östlund[NF] Fix ConnectEquations.associatedFlowCref.
2fa8c5ec98Per Östlund[NF] Evaluate actualStream.
661b5958f7Per Östlund[NF] Improve evaluation of some external functions.
33aa19d188Adrian Popuse LONG_MAX for integer in FMU min/max
eefcdcc54bAnatoly TrosinenkoFix String inputs/outputs handling for FMUs
baf7ba404cPer ÖstlundFix for #5111.
32ad2f523eAdrian 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
1eeffa0d0bPer Östlund[NF] Evaluate functions with constant arguments.
eb0909d923Per Östlund[NF] Fix function vectorization/cast conflict.
cbc69f9e9ePer Östlund[NF] SimplifyExp improvements.
7b82c41312Adrian PopUpdating 3rdParty
dd340df3fbPer Östlund[NF] Fix nfExpandOperations with unary ops.
b8a07779d5Per Östlund[NF] Add flag to expand binary operations.
852216723eAdrian 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
5ce059386fPer Östlund[NF] Fix ExpandExp.expandRange.
7d0f654ca0Per Östlund[NF] Fix Expression.makeSubscriptedExp.
9aaad999bbPer Östlund[NF] Fix Subscript.mergeList.
6e03b386a3Per Östlund[NF] Improve subscripting of expressions.
33b800de6cvruge[BE] fixes for inStream
67189f385avruge[BE] improved inStream
2f78a66acaarun3688implement DataReconciliation algorithm
46d9c5b683vruge[BE] fixes for inStream
13b403fe53vruge[BE] fixes for inStream
49624efbcaAdrian Popbetter Qt log
51e9b19dafniklwors[cppruntime] fixed division by zero during setting start values
94992759d3Per Östlund[NF] Relax connector check for e.g. isRoot.
6d27fdff20Per Östlund[NF] Fix SimplifyExp.simplifySubscriptedExp.
62dcbfd132Per Östlund[NF] Fix access violation check for Lookup.
4e5b4c7b33Per Östlund[NF] Ignore some funcs in Expression.hasArrayCall.
6a4d8d1be9Per Östlund[NF] Make protected class lookup possible.
f558b3b83aPer Östlund[NF] Improve handling of matrix().
07b398de6bAdrian 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)
11eaca39aaPer Östlund[NF] Inline the skew operator.
2bfa83f618Per Östlund[NF] Fix expansion of cref slices.
2e978c5e8cAdrian Pop[NF] Expandable Connectors [ticket:5015] - partial implementation - during lookup create virtual crefs - during typing, type virtual crefs
5698726b66Adrian Popmake sure people git clone OMDev properly
444fbec682Per Östlund[NF] Fix parent in Inst.instComponentExpressions.
f2acbf58a8Per ÖstlundFix InstUtil.splitInnerAndOtherTplLstElementMod.
9840114c9dPer Östlund[NF] Potential fix for #5063.
01f7068288Per Östlund[NF] Fix instantiation of derived classes.
363af9f137Adrian Popinclude function name in the error message for clarity
ceb595ee24Adrian Pop[NF] do not set structural parameter variability for constants if they have annotation(Evaluate=true)
11bce5ace0Adrian 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
4182336588Martin SjölundFix use before define
47f3ecb05aMartin SjölundAllow the compliance suite tests to crash
8423437c40Karim Abdelhak[Backend] do not hide $-variables in result file
fabb954c4cMartin SjölundImprove stack overflow detection for compliance suite
9489b472f2Martin SjölundHandle stack overflow for compliance suite test
6bfa734e18Martin SjölundAvoid backslashes in JSON strings
63848be39fJulien SchuellerAdd cp -r option to ${builddir_share}/omc/runtime/
80b06e9a4cMartin SjölundTest all of the compliance suite
8c3db214b0Adrian Popfix for ticket:5054 - proper prefixing (subscript transfer) of condition in Equation.IF
9ebd34b9d3Martin SjölundCompliance-Suite: Fix crash when simulation fails
7d6cb6d476Martin SjölundSort results of compliance suite testing
94cae26a15Volker WaurichcopyFile call for scripting api
bab4ecd2f0Volker Waurichfix evalOutputOnly
9d2a05f37cAdrian 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
fc9be10d43Willi Braun[cRuntime] fix nonlinear value extrapolation
4892660150Adrian Pop ticket:5054 - add an warning message about missing rooted branch and continue
bb8f3d85e2Willi Braun[cRuntime] improve dump of the non-linear system solution
8fd8d3e213Willi Braun[Backend] fix text of algebraic loops jacobian
a9fc037cd4Adrian 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
b28062c188Adrian 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
15177bd51dAdrian 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
c5bc6e5193niklworsRemoved code generation for algebraic loop variables and added it to algebraic loop default solver implementation
04d541f514Per Östlund[NF] Fix type when expanding unary expressions.
06e511fcaaPer Östlund[NF] Array equation fixes.
65d13903b4niklworsAdded flag to use only one instance of algebraic loop solver in cpp runtime
23656fa585Adrian Popallow disabling of 'stdout' and 'assert' streams
578550f20fMartin SjölundFix path names for compliance suite
66b19e05fbMartin SjölundMore options for ModelicaCompliance testing
c44a5382dcAdrian Popbetter fix for Windows compilation - use gcc instead of g++ - use -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic instead of -static-stdc++
f251a60435Adrian 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
a32b6223f2Adrian 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
8089bfdf47Per Östlund[NF] Fix package constant detection.
52c826aba7Per Östlund[NF] Handle SUBSCRIPTED_EXP in Typing.typeExp.
7f60f82938Per Östlund[NF] Don't evaluate local constants in functions.
008d2d22c9Willi Braun[FMI] fix directional derivatives in c fmu
2d1ed04ac8Adeel AsgharAdd quotes around the full command
0eac6626afPer Östlund[NF] Fix lookup error message.
c3159ae3e1Per Östlund[NF] Change cref evaluation strategy.
5ae39b9763Martin SjölundReturn success for found steady state simulation
53c7b2549ePer Östlund[NF] Collect more functions during flattening.
25d5df2bb7Per Östlund[NF] Simplification improvements.
fd178e184dPer Östlund[NF] Fix simplification of sum/product.
412a02353dPer Östlund[NF] Revert to first base class lookup fix.
e3f55e4c6dMartin SjölundFix the FMU resource path on Win32
d870b3b918Per Östlund[NF] Fix `delay` definition.
647ef1079ePer Östlund[NF] Fix Ceval error reporting.
7d0153e3ffPer Östlund[NF] Simplification improvements.
582a03819cPer Östlund[NF] Implement evaluation of cardinality.
6ec2d31b34Per Östlund[NF] Better fix for base class lookup issue.
e9a73b9e85Per Östlund[NF] Fix base class lookup.
a34b659b0aMartin SjölundFix for Windows paths in URIs
7cd71ba5f3Martin SjölundCheck if file can be opened before using dup2
7660aa0433Martin SjölundAdd support for compiling FMUs using docker
3f36b04dd6Adrian Popsmall readme update
1257694a0dAdeel AsgharlistFile should work for Access.nonPackageText and higher
75c94ec6deAdeel AsgharRestrict instantiateModel based on the access annotation If the class is encrypted then check the access level for instantiateModel
bc961b4f70Per Östlund[NF] Expand sum/product in equations/bindings.
ad9df37e14Adrian Popadd a readme about using own compiled OpenModelica
facb5c9db2Per Östlund[NF] Improve handling of scalar().
5615485840Per Östlund[NF] Improve expression expansion.
592a4a4695Per Östlund[NF] Make array constructors structural in bindings.
f761280108Martin SjölundThe FMIL includes are necessary to compile OMEdit
1c8bb86deaLennart OchelFix copyright header
dfa7337c57Adeel AsgharUse the correct working directory
fb766b3f4dPer ÖstlundHandle : in ComponentReference.compareSubs.
cce54d9070Per Östlund[NF] Tuple and array equation improvements.
37e717734cPer Östlund[NF] Fix issue with conditional components.
f9bcda0ca0Per Östlund[NF] Fix scope in Inst.instExpressions.
72ee12239dPer Östlund[NF] Improve handling of conditional components.
0fb948cd0ePer Östlund[NF] Fix moving of parameter binding to equation.
6fe40c2e97Per Östlund[NF] Remove empty arrays equations.
24b68a2275Per Östlund[NF] Handle initial complex equations better.
27740e16f9Martin SjölundUse the FMI 2.0 resources directory for info.json
e3fba96fbbMartin SjölundDo not enforce -flto when building FMUs
7f3aeefb4ePer Östlund[NF] Update NFModelicaBuiltin.
a107bb4b6dPer Östlund[NF] Fix handling of 'each' in Ceval.
d262d0a53fAdrian Popsome readme updates after feedback from DING Ni, thanks
c0e48477d1Adrian Popsmall readme update
97ad0bf479Adrian Popcheck if the file is valid
5e99170543Per Östlund[NF] Evaluate if-conditions in more cases.
05b35777d3Per Östlund[NF] Handle evaluation of some record arrays.
8f36866bc0Adeel AsgharPass the correct number of arguments.
ab5e5eef5cAdeel AsgharKill the library vendor executable after load
def3e2eb6bAdeel AsgharStart the library vendor executable separately For each `loadEncryptedPackage` call create only one instance of library vendor executable.
af928ab2b0Per Östlund[NF] Operator overloading fixes.
8dca89a955Per Östlund[NF] Try harder.
b5921938b6Per Östlund[NF] Try not evaluating complex parameter bindings.
5e365bfc47Per Östlund[NF] Function output type fixes.
e179064587Adrian Popfix include path for SEMLA
7ee060b8b8Adrian Pophandle list and listFile if we have encryption
8c6ff4182aAdeel AsgharBuild SEMLA from OMEncryption
b96cf7167fPer Östlund[NF] Fix function vectorization with type casting.
1761f6d0b7Dietmar WinklerPy3 fix.
fd86471cb0Dietmar WinklerUse ZMQ only since testing for CORBA did not really work out.
383f8207f6Dietmar WinklerRef: #4622 Making the icon generator compatible with ZMQ
7ad3a17b98Per Östlund[NF] Make record constructors work again.
dc81059a37Per Östlund[NF] Operator overloading improvements.
9419b55f75Adeel AsgharMake sure to clean SEMLA
1f361bb09bAdeel AsgharRestrict the API based on the access annotation of the encrypted class Show error message when user can't access contents
91cd77d842Rüdiger FrankeFix type of firstTick operator
6533bcd6eaPer Östlund[NF] Handle function derivative annotations.
82c686da72Per Östlund[NF] Evaluation improvements.
58dca932a7Per Östlund[NF] Minor optimization for fold/map of crefs.
9d7f5d5ed2Per Östlund[NF] Improve subscripting in EvalFunction.
f4308839c7Per Östlund[NF] Expression evaluation fixes.
15644b5c8fPer Östlund[NF] Handle unassigned record field better.
030f499452Per ÖstlundAdd code generation for 'product'.
df6ecef0e5Per Östlund[NF] Use correct call attributes everywhere.
2166555251Adrian Poptry to not use the new dtags also for shared objects
e8a302419fAdrian Pop- handle -Wl,--no-as-needed via configure
cc5bf4bb30Adrian Pophandle -Wl,--disable-new-dtags via configure
cf3746a7b7Adrian Popuse RPATH not RUNPATH via -Wl,--disable-new-dtags
4c949e125cAdrian Popuse -Wl,--no-as-needed as otherwise the klu test fails
3afa6f7ee3Volker Waurichremove duplicated relation checking for cpp codegen, fixes relations using iterators
84be5a9517Per Östlund[NF] Fix variability issues.
2fffc2075dPer ÖstlundHandle "()" for __OpenModelica_simulationFlags.
c3468c05aePer Östlund[NF] Various fixes.
afc94ce2e3Per ÖstlundUse __OpenModelica_simulationFlags in buildModel
66094846e6Per Östlund[NF] Function improvements/cleanup.
6f42885b43Per Östlund[NF] Improvements to handling of 'when'.
9b09552c32Per ÖstlundAdd evaluation of intBit*.
9878b52ae3Per Östlund[NF] Fill in field names when converting records.
12e54e083cPer Östlund[NF] Fix Package.collectVariableConstants.
a44441915dPer Östlund[NF] Allow both types to be unknown in matchTypes.
debb491d88Per Östlund[NF] Apply scope fixes to records constructors too.
0fd679ded8Per Östlund[NF] Fix scoping issues.
14c51e072bPer Östlund[NF] Pad cref subscripts with :.
e2290c9474Per ÖstlundFix ComponentReference.expandCref.
a185205845Per ÖstlundImprove inlining to handle Complex constructor.
e8395d74f0Per Östlund[NF] Fix call attributes for operator overloading.
215b5fc1c3Per Östlund[NF] Fix ConnectEquations.makePositiveMaxCall.
526262a25ePer Östlund[NF] Fix default values in record constructors.
c2593f279bDietmar WinklerAdd default top alignment for table rows
0ea5484bbdPer Östlund[NF] Fix InstNode.scopePath for derived classes.
f09a7d4a82Per Östlund[NF] Improve expansion of reductions.
0f7ec31767Willi Braun[cRuntime] fix typo
e80e9272d7Per Östlund[NF] Implemented expansion of cat and promote.
2ea6748522Willi Braun[cRuntime] Fixing LOG_DSS dump
2716d05b8fWilli Braun[DAEMode] create aux variable for cse variables
729fcc06b9Willi Braun[cRuntime] fix function _omc_maximumVectorNorm
ef288f9413Per Östlund[NF] Fix equation counting for algorithms.
e5b9e3eebdPer Östlund[NF] QoL fixes.
71fb0a7036Per Östlund[NF] Fix prefixing issue.
2d96bc2840Per Östlund[NF] Fix flattening of bindings.
4f6e4cd98fPer Östlund[NF] Fix dimension deduction with 'each' bindings.
5733f33e5dPer Östlund[NF] Modifier/binding fixes.
fed5daceedPer Östlund[NF] Fix binding issues.
437e35d613Adrian 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
6b41403247Per Östlund[NF] Various fixes.
0c48541896Per Östlund[NF] Fix ExpressionIterator for arrays.
6a4b5f1211Per Östlund[NF] Improve handling of class modifiers.
6812b5269ePer Östlund[NF] Ignore unused record field bindings.
c06350fe93Per Östlund[NF] Fix record constructor generation issue.
c6677a4286Per ÖstlundMake saveTotalModel respect uses-annotations.
54d7a401cfPer Östlund[NF] Fix modifier scope in Inst.instClassDef.
c0cc57f7ceMartin SjölundBuild lpsolve55 if it is not found
74abb64441Per Östlund[NF] Improve binding type mismatch error message.
c02ea2ff4bPer Östlund[NF] Improve handling of record evaluation.
90c1886967Per Östlund[NF] Improve type checking of records.
1a8d982823Per Östlund[NF] Fix generation of record constructors.
2fefbbb862Per Östlund[NF] Improve type checking of records.
16e088377fPer Östlund[NF] Implement getInstanceName().
803cabd920Per Östlund[NF] Record fixes.
57e8ce74ffMartin SjölundGenerate correct code for integer mod(i1,i2)
17adb9a8c6Per Östlund[NF] Performance improvements.
ed95fad9a6Per Östlund[NF] Constant evaluation fixes.
6aa87b50eaLennart OchelUpdating 3rdParty
c09713212fPer Östlund[NF] Generate less stupid flat models.
fb58909f00Per Östlund[NF] Various improvements.
52e894fe70Per Östlund[NF] Use class scopes for function names.
d47670afb8Per Östlund[NF] Don't treat external "builtin" as external.
271b70dce2Per Östlund[NF] Fix lookup scope for inner names.
74e8456e85Martin SjölundfilterSimulationResults option to remove descriptions
a3a17502f4Per ÖstlundAdd dumping of INITIAL_NORETCALL to DAEDump.
3d7f6a4615Per Östlund[NF] Fix evaluation of dimensions in functions.
0e2c8f5685Per Östlund[NF] Fix variability of size() properly.
63ed252539Per Östlund[NF] Handle derived classes in collectRecordParams.
59a392a87aPer Östlund[NF] Minor fixes.
1bed3ff2bePer Östlund[NF] Fix variability of size() in functions.
a3ddfaf940Per Östlund[NF] Function evaluation improvements.
8b4871a394Per Östlund[NF] Improve function vectorization.
c84474230fMartin SjölundOnly perform logging of delay for LOG_EVENTS_V
4912fd69bbPer Östlund[NF] Inlining fixes.
bc9cecefe7Bernhard ThieleRemoving description of a previously removed module
d9899db2c7Per Östlund[NF] Support for records in NFEvalFunction.
a1911e7517Per Östlund[NF] Function evaluation improvements for records.
60e8e0a5a2Per Östlund[NF] Evaluation of reductions and SUBSCRIPTED_EXP.
5feb832607Per Östlund[NF] Implemented basic function inlining.
87286cb84aPer Östlund[NF] Various improvements.
89eacbb81cPer Östlund[NF] Minor fixes.
ace473cd52Per Östlund[NF] Add evalution of known external functions.
bc4b3e1b69Per Östlund[NF] Add sanity check to Call.vectorizeCall.
cd7b28ae3fPer Östlund[NF] Initial function evaluation implementation.
f92e6eb390Adeel AsgharFixed the windows FMU export
6a5320c62aPer ÖstlundFix Inst.releaseInstHashTable.
26cb1843b1Martin SjölundImproved instantiateModel
7fc85eb69dMartin SjölundFix undefined behaviour in codegen of array reduction
5a7ce94586Per Östlund[NF] Implemented evaluation of Integer().
81ba868194Per Östlund[NF] Various fixes.
3aae2a0d80Adrian Poppass the makefile file in Windows
338d1df7a2Per Östlund[NF] Improve constant evaluation.
27184161bfMartin SjölundChange the default to statically linked FMUs
004da7332fPer ÖstlundDisable incorrect typing of .+ for Strings.
d8d9e02c37Per Östlund[NF] Improve Expression.promote.
f5e1d77ecfMartin SjölundInline mmc_mk_modelica_array for source FMUs
549896e2e7Per Östlund[NF] Improve subscripting of expressions.
c51b823862Martin SjölundFix stateselection destructor
0b569ccd98Martin SjölundRemove wrong code for translateModelFMU
d6ea7eb493Rüdiger FrankeSupport assignment to arrays of discrete states
d4122a2d85Willi Braun[Runtime] fix some debug outputs in kinsol solver
c2ffbc562bMartin SjölundHandle # in the working path
3f638304b0Per Östlund[NF] Fix type of DAE.RANGE.
c2dad7bbfaPer ÖstlundAdd comment strip option to saveTotalModel.
340f1d39e1Per Östlund[NF] Improve structural parameter marking.
19ce60ad99Per Östlund[NF] Minor fixes for type attributes.
c9c4c30592Per Östlund[NF] Improved handling of types.
29bc2a8467Willi Braun[SC] Refactor some functions that reconstruct SimEqSystems
feb746ee88Willi Braun[SC] remove the replacement of the DIV operator by a call
de3a487895Adrian Popadd GC_get_prof_stats as OMC API, ticket:4889
ae5e0b10dbPer Östlund[NF] Connection handling improvements.
ff8188090aPer Östlund[NF] ones/zeros and dimensions type check fixes.
129d50fea9Adrian Popfix copy of antlr jars for Linux and Windows
a8f003fffaPer Östlund[NF] Use correct DAE type for array assignments.
f6ae791a64Adrian Popfix windows builds, copy of antlr*jar
9216359889Per Östlund[NF] ExternalObject fixes.
a47336541dPer Östlund[NF] Hack to fix type of min/max/sum/product.
6ca89244b0Per Östlund[NF] Improvements.
d36f68c844Martin SjölundCompile runtime code with no-dollars-in-identifiers
d7c5c23cc5Martin SjölundMoved the Java interface to new repo OMJava
0f2f73e336Martin SjölundRun javac with encoding=utf8
e86a4580d9Martin SjölundIncrease the size of equation alias cache
20e6c2d3c1Martin SjölundDisable equation aliasing for C++ runtime
53af8ff6a1Martin SjölundIntroduce aliasing of SimCode equations
4d89e7f1a7Per Östlund[NF] Fix FBuiltin.getBasicTypes for NF.
5680ad363cWilli Braun[BE] added execStat to BackendDAEUtil.sortGlobalKnownVarsInDAE
74a526d350hkielsome minor optimizations
368ac8c539Martin SjölundRefactor SimCode.createEquation
7a3a58fa5cWilli Braun[DAEmode] reduce generated code for algebraic variables
f6ef4b2634Martin Sjölund[NF] Simplify enumeration ranges
4fc65f53b0Martin Sjölund[NF] Simplify Integer/Real/Boolean ranges
e6bd88360dWilli Braun[DAEMode] update at event update again all equations
22458626a6Martin Sjölund[NF] Improve TODO-messages
c160a16d76Martin SjölundHandle SVGs containing UTF-8 characters
3f9491d000Martin SjölundHandle empty rotation in icon generation script
38efbe7876Martin Sjölund[NF] Handle more binary vector operations
45f753c5b6Martin Sjölund[NF] Unlift arrays types when expanding expressions
20ca0048fbMartin Sjölund[NF] Fix evaluation of promote
38d78f522bMartin SjölundFix simplify for cat-expressions
65d57a519fPer Östlund[NF] Set correct restriction for complex types.
bd785a4ce5Willi Braun[DAEmode] Introduce evaluation stages on equation level
5e99e6163dMartin Sjölund[NF] Translate more binary vector operations to DAE
e84261d437Martin Sjölund[NF] Evaluate scalar product and power operator
5c7b2f0183vrugefixes for tmpVars
cc58a7bcbeMartin SjölundHandle builtin functions in isConst
08403397fcMartin SjölundFix the tar-file in GenerateDoc.mos
baa1a25415vrugeimproved inStream
7dd0320aebPer ÖstlundFix order of arguments to String.
3f9d53fdcePer ÖstlundFix ParModelica compilation with Clang 6.0.
4204ff08edPer Östlund[NF] Handle records in Connector.split.
ee22481b78Per Östlund[NF] Branch selection of if-expressions.
180e0084f2Willi Braun[BE] improve inverse algorithm handling
73e3f9c612vruge[BE] fix for inStream
862a0978bfvrugeimproved inStream
acd54fca97Volker Waurichcheck if evaluate annotation is actually true
87a0162b89Per Östlund[NF] Implement structural parameter handling.
0616b65b57Per Östlund[NF] Expand when conditions.
e74a420045Volker Waurichfix cad-file based visualization
23f5dff8b9vrugeadded sum to skipped case for cse
d180efb92cvrugeimproved inline-function
bb49baab0fPer ÖstlundFix expression simplification rules.
9edd1f5a37Per Östlund[NF] Port inStream changes from #2319.
a4776a6127Per Östlund[NF] Fix typing of calls with multiple outputs.
72d39d6918Per Östlund[NF] Fix path when creating record expressions.
1792dd70cdPer Östlund[NF] Cleaning and various optimizations.
11aa135c21Martin SjölundFix listArrayLiteral
7199ae18fdMartin SjölundReduced code used when bootstrapping
0e62fe0548Simon ErikssonInitial MidCode implementation
a9b58e13a5Martin SjölundUpdate to Java6 since Java5 is obsolete
6a6c0332fbMartin SjölundReplace tabs with 2 spaces
25da4670f2Martin Sjölund[NF] Relax variability error in functions
3a6cb88d32Martin Sjölund[NF] Unescape raw Absyn.STRING
b4635bbb1aPer Östlund[NF] More derived scope fixes.
659bcbc3efLennart OchelFix indentation of 1c86d4e3a86bdc7c7708ae2816682d536ad96f57
1c86d4e3a8vrugeimproved inStream
de9ded9a90Per Östlund[NF] Improve typing of size expression.
75bf644edfPer Östlund[NF] Fix scoping for derived classes.
c282ec9aaaPer Östlund[NF] Fix array binding issue.
f10312d579Willi Braun[DAEmode] added several minor things
90d01e9486vrugefixed inline
f3d84c6de0vrugebugfixes
3933f1c6a6vrugeadded rule for expandFactors
907d54ec29vrugeimproved inInline.getFunctionInputsOutputBody
f9d9de0cbcvrugefixed inline
69ee163e8cPer Östlund[NF] Subscripting improvements.
13b595d697hkielavoid failure(_=BaseHashTable.get()), use hasKey() instead
43f36d5624hkielfix match -> matchcontinue
35f216d9f7hkieluse BaseHashTable.hasKey() instead of failing/passing get()
ff5f8bf62dhkielimplement non-failing versions of get and has in BaseHashSet
63888ab878Per Östlund[NF] Record binding improvements.
f103a0d61bPer Östlund[NF] Create equations for complex bindings.
fb72969f02Per Östlund[NF] Fix record constructor DAE issue.
cd42dc7464Willi[SimCode] added equation attributes to SimCode.SimEqSystem
93b4018ec4Per Östlund[NF] Fix issue with converting functions to DAE.
f7f4c35ec4Willi Braun[DAEmode] get rid of the old implementation
05a951b53eMartin SjölundHandle tail recursion in CevalFunction
748b75ab9fPer Östlund[NF] Fix typing loop.
e30046d30fPer Östlund[NF] Fix size as external argument.
fc8513b93dniklworscopy Visual Studio libs and pdb of cpp runtime with CMake instead of make
20606a96d6Per Östlund[NF] Improve performance of DAE conversion.
77407e8d85Willi Braun[DAEmode] Avoid IDA for models without states
1769e7028bPer Östlund[NF] Fix the variability of size.
921ea29206Per Östlund[NF] Redeclare and extends fixes.
c2feb3fdecWilli Braun[DAEmode] improve event handling and discrete loops
90be43449dPer Östlund[NF] Improve handling of imports.
df1cb2759ePer Östlund[NF] Fix redeclare final, for real this time.
9d7f3fd2e3Per Östlund[NF] Fix for redeclare with final issue.
1efe7ca1c2Per Östlund[NF] Redeclare improvements.
fc30ae13d5Rüdiger FrankeRename Periodic to Inferred clocks in FMI modelDescription
399b730895Rüdiger FrankeUse sorted variable references in Cpp fmi2GetDirectionalDerivative
ced7f13fe9Rüdiger FrankeSet index of clocked partition in algebraic loops of FMI Jacobian
79e9b3da98Mahder Gebremedhin[NF] Add missing case for fold subscript.
3c4a0942beMahder Gebremedhin[NF] Disable conversion of bindings in TYPES_VAR.
695f2e1799Martin SjölundSupport function pointers with underscores in them
5aa5373b43Martin SjölundResolve polymorphic bindings in the the function type
cccd62d1a7Martin SjölundFix typo
e89be0095dMartin SjölundType-check arguments of function pointers
659c5672e2Mahder Gebremedhin[NF] Minor fixs
cc3ff32b42Rüdiger FrankeConsider discrete states in Cpp fmi2GetDirectionalDerivative
056a0fae02Rüdiger FrankeSet index of clocked partition for FMI Jacobian
de26b558a5Adrian Popfix msvc build - select skd 8.1 for msvc 2015 - use jom to compile things in parallel
b3683ed28aWilli Braun[BE] differentiate the inner exp of getPart
65beadfa5cMahder Gebremedhin[NF] Initial support for function vectorization.
e9740997eaLennart OchelUpdate 3rdParty
d98c067db6Per ÖstlundNotify about constant values in match inputs.
f2d424245eMartin SjölundCheck uses-annotation on loadFile of non-package
d0e1fe9a1fWilli Braun[BE] remove redundant Expression.simplify calls
079c102b1dhkielremove unnecessary define in Makefile
779ff677baWilli Braun[cRuntime] if IDA fails with linear solver setup reinit and try again
747e401885Willi Braun[DAEmode] try to improve the performance of the main traverseFunction
995c5ef0f4Willi Braunmove profiling function from BackendDAEUtil > Util
09e106cf92Martin SjölundChange the default simulation opt. level to -Os
46dca42457Willi Braun[BE] Fixing differentiation of synchronous states
407a017ff8Mahder Gebremedhin[NF][#4784] Fix conversion of complex types to old DAE.
a134d4eadcPer Östlund[NF] Fix Expression.mapShallow.
2199757a21hkielremove unnecessary and wrong cast
ead22198dcAdrian Poppass the default makefile file for windows
920540b757Martin SjölundDo not recompile Sundials all the time
c4e5102f47Rüdiger FrankeReuse factors of linear equation systems during Jacobian evaluation
e3f5017088Rüdiger FrankeUnify capitalization in FMU2Wrapper
5141962139Rüdiger FrankeReuse factors of linear equation systems in fmi2GetDirectionalDerivative
71c219d80dWilli Braun[DAEmode] several minor improvments and fixes for events
fbf28bfa3aWilli Braun[DAEmode] use IDA when the model is compiled in DAEmode
47aed5e03eMartin SjölundPrefix partial function application
bf562e79a6Willi Braun[DAEmode] don't not put JacobianEqns into json
ad854a60fdWilli Braun[DAEMode] create startValueEquations from initDAE
19657600efWilli Braun[cRuntime] clean DASSL from DAEmode code
d66515a634Willi Braun[FMI] added model structure for discrete states
1453d7dd87Adrian Popremove quotes that are not needed in Windows makefile
04159c54a7Willi Braun[DAEmode] improving array equations support
c5d63e71adMartin SjölundAdd a warning for StateSelect.always/never
be2bc8962aWilli Braun[BE] Fixing initialization of algorithms
f5c562920bWilli Braun[DAEmode] added basic algorithms support
b54a3c9da4Rüdiger FrankeSafeguard possible repeated finalization of Cpp logger
da270f8db8Rüdiger FrankeEnable Cpp logger under Windows and finalize it, ticket:4773
67e62cb480Willi Braun[DAEmode] added when equation support
1cc3bf35e6Willi Braun[DAEmode] Fix sorting of parameter equations
24e74bf8faWilli Braun[DAEmode] added removed equations
f06fb1485fWilli Braunattempt to fix Codegen issue of inverse algorithms
46705f7870Martin Sjölund[NF] Evaluate cat and promote operators
85e6162389Willi Braun[DAEMode] Several improvments to the DAEmode
6c9726ffafMartin Sjölund[NF] Add support for array concatenation
878318efaeMahder Gebremedhin[NF] Fix overload ambiguity with default constrctors for operator records.
c17054f4bbRüdiger FrankeConsider row major ordering when assigning arrays to seed vars
ffb66c31e0Per Östlund[NF] Update builtin uriToFilename.
adb7a38e5ePer ÖstlundFix handling of element redeclare condition.
7a6270389aWilli Braun[BE] fixing handling seed vars of symbolic jacobians
f570c07f39Mahder Gebremedhin[NF] Operator overloading support.
983f52f9edMartin Sjölund[NF] Fix type-checking of arrays with >1 dimension
ca288a2104Martin Sjölund[NF] Type-check array constructor
ee3f9cf336Martin SjölundUse C++17 has_include for unordered map/set
88c4d6102eRüdiger FrankeReduce common template code from assignDerArray to assignJacArray
2cb619ac5aRüdiger FrankeImplement assignment of arrays to Jacobian vars, ticket:3266,4696
b082e742dcMartin Sjölund[NF] Fix type of matrix-vector multiply
4835303b4aMartin SjölundReport possible savings from sharing strings
90621756a8Rüdiger FrankeRemove duplicate and erroneous Modelica external C libs, ticket:4772
bf329a177fMartin SjölundImprove report of used size of MM datatypes
419eaa1e3fMartin Sjölund[VS] Make autoconf generate revision.h
68e1bff11aMartin Sjölund[VS] LIB also needs trailing slashes
19b3154eefMartin SjölundPrint the environment before starting wine
88711c9ee4Martin SjölundImprove MSVC compilation on Wine
1dbe81e927Martin SjölundAdd targets for the MSVC FMI C-runtime via wine
70e2f0075cAdeel AsgharCheck if we receive the expected file
cacc8bf978Rüdiger FrankeLink MODELICA_EXTERNAL_LIBS after model defined libs, ticket:4772
30322f1107wibraunfixing simulation flags, mostly ticket:4390
0334c25876Adeel AsgharRemove the extension
07921476f8Martin SjölundUse set instead of unordered_set
b4562fbddbAdrian Popfix compilation on Windows, add -std=c++11
ec9f5430f9Adeel AsgharCompile semla before omc declare the functions in systemimpl
0c3f696cdeAdeel 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.
526b822d50Martin SjölundImprove reporting memory usage
9c759d91aaLennart OchelMerge postOptModules that detect sparse pattern
5163543476Adrian Popfix crashes in omccAPI if threadData is allocated in the heap - hide threadData again - set threadData and then copy it after each call
69b2c906b4Adrian Popfix windows GCC now :) - more checks for pthread: attribute init, stack setting
325b3925f3Adrian Popfix windows build - include omc_msvc.h for attribute - exclude wsock2 as is already incldued - for some reason lst1 and lst2 are defined
74ad9da44eWilli Braun[Backend] fix generateSymbolicJacobian config flag
f6ac4dd0d9Willi Braun[NF] set index of relations to -1 otherwise it's a zc
7b8186ac60Willi Braun[BE] fixing function differentiation and tuple calls in algorithms
d874cd0ea7Willi Braun[BE] move transpose to a single function calls
90b9c22c70Willi Braun[BE] added size and range operator to diff module
808888cb52Willi Braun[BE] added debug for diff exp and calls
846ccc5bc1Martin SjölundCatch out of memory errors
30a4db0a07adrpoupdate 3rdParty manually
d27683d7a6Adrian Popupdate 3rdParty submodule
092daf6859Willi Braun[Backend] Fix coloring of sparse matrix
b44f0a7d22Adeel AsgharFix the SEMLA Windows build.
06a166d23bAdrian Popupdate 3rdParty manually
ba5ff89f3cRüdiger FrankeApply complete pivoting to singular linear systems in FMUs, ticket:4747
fcdc6b2723Adeel AsgharAdded missing Windows variables.
06cea20daeAdeel Asgharconfigure option for encryption
081af3b22eAdeel 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`.
0a2708a82ahudsonFix broken 3rdParty hash
ad98b0357eMartin SjölundUpdate 3rdParty for new dgesv
e3267ce3b4Adrian 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
12121dfc13Adrian Popfix crashes of omcCAPI on Windows - use threadData from stack not via GC_malloc_uncollectable - increase exe stack on windows - link with pthread
027e5cb1eePer Östlund[NF] Fill in dims when creating DAE.Element.VAR.
3bd1e3c8f1Willi Braun[DAEmode] fix update event in ida solver
c68882d4b2Willi Braun[SimCode] dump algorithms in correct sorting
c15e7bd202Willi Braun[Backend] prevent stackoverflow for recursive function differentiation
815ffe0fbbptaeuberMake KINSOL compatible with adaptive homotopy
6b6a486e75Lennart OchelDummy commit to satisfy Hudson
cf5c9a7652Per Östlund[NF] Fix type of unary operators.
5cf076a5dbWilli Braun[Backend] Use the original functionTree instead an empty one
92921a4db7Willi Braun[Backend] fix functions with record argument
bf59c08ef2Willi Braun[Backend] fix differentiation of the SteamPipe model
4c05be3efbMartin SjölundFix suffix for ZMQ
5056d0b1f2Willi Braun[Backend] fix differentiation of functions with function arguments
3cc00f3368wibraun[CRuntime] Tweak linear solvers for Symbolic Jacobians
71c512556ePer Östlund[NF] Fix builtin type attribute order.
3be99feec7Per Östlund[NF] Handle empty arrays better.
5614078f52Willi Braun[C Runtime] added symbolical jacobian support to ida
de1bcf844eMartin Sjölund[NF] Set the correct type in the relation
f5acc120c2ptaeuberMake non-default nonlinear solvers ...
10a2c8b0abptaeuberDo not try without homotopy twice
693886bd2bMartin Sjölund[NF] Fix generation of reduction temp-var names
cce5d8325dRüdiger FrankeAlways apply tearing if MAX_SIZE > 0 and dense matrices are used
70ef32be79Per Östlund[NF] Better handling of constants.
5cc04d9ba0ptaeuberFurther improve solver memory management
891db48ef4ptaeuberAlways initialize lambda with 0
df6431cf8dPer Östlund[NF] Use correct variability for pre error.
5cf25d19d1ptaeuberFix for trying without adaptive homotopy
3418ccff33wibraunadjust documentation string to actual config value
9529c78324Lennart OchelFix var attrributes
cf973f1d02Lennart OchelMake when condition variables protected and add description string to them
c4493da8bbPer Östlund[NF] Generate correct DAE for tuple assignments.
4b2df5a854ptaeuberSet variables back to start values before trying homotopy
162cdb597eptaeuberTry without homotopy also for adaptive homotopy
81869605c7ptaeuberBetter handling of solver memory
9de0296c9aPer Östlund[NF] Add FuncArgs when making DAE function types.
e0c71b0293Per Östlund[NF] Remove connects with deleted components.
f15d2b3b5cRüdiger FrankeFix error messages for linear solver
76bc17ee0bLena Buffoniadded an extends VerificationModel
218f17f074Lennart OchelMake cse variables protected
31c7f16448Per Östlund[NF] Implement proper handling of subscripts.
17ce08db20Willi Braun[DAEmode] Varios fixes including complex equations
70d5639f51Per Östlund[NF] Deduce dimensions from the start attribute.
0f8a7d1af1niklworsadded assert for sqrt function calls
c97c5bb18aPer Östlund[NF] Various fixes.
91ae007a34Rüdiger FrankeClean up after building Cpp FMU (the sources are saved inside the FMU)
bdcee4ec7bRüdiger FrankeStore source files in Cpp FMU
339512106eAdrian Popticket:4674: add new api to retrieve instantiated parameters
047c5a81a0Martin SjölundHandle ceval of asub using enum literals
c51b59582fWilli Braun[Backend] improve residual creation for complex equations
ddd8677e3ePer Östlund[NF] Don't use polymorphic builtin functions.
d8c8c30732Adrian Popuse the default makefile name in windows
02a553b4bfAdeel Asgharmove symbolTable back to local roots
ef2592729cWilli Braunadded DAEMode module
bcc40861b5Martin SjölundAllow `size()` on non-crefs at runtime
27ab275624Martin SjölundBugfix for URI lookup in class
f8d52b9635Martin SjölundClean patches with make clean
38212aa27dMartin SjölundFix memory corruption in ZeroMQ init
8b177b924cPer Östlund[NF] Improve operator handling.
a7e6f7fc8cAdrian Popmove symboltable from threadData vars to global ones this will fix OMEdit crash on startup on Windows
82f103f361Martin SjölundDon't print error-message about missing impact
9c4635fefdAdrian Popfix copy of the files and cmake search directories
ac51afc9eeadrpofix Windows and Linux builds of omcCAPI
51ed436148ptaeuberFix nls flag order
8e5affa308Martin SjölundFix wrong pointer type
a7e840a9c7Lennart OchelFix array allocation
a2e245d640Adrian Popfix windows build add omcCAPI build on Linux as well (commented out for now as there are some issues)
5cb3f41285Martin SjölundMake matchcontinue inputs volatile
782245f208Martin SjölundUpdate the Qt API
e2c5189576Martin SjölundMove initialization of symboltable
5296b688f1Martin SjölundHandle the correct command in CORBA
af0968b8f5Adrian Popfix windows build
177b914b4bMartin SjölundDo not elaborate using scripting functions in models
fbbbe205b5Martin SjölundEvaluate uriToFilename in the script environment
75770db86eMartin SjölundChange examples to new uriToFilename
95af275164Martin Sjölund[FMI2] Handle the jump buffers better
1b2f2b9ee6Martin Sjölund[FMI2] Copy resources into the FMU
103b43500eMartin SjölundCheck for undeclared functions
620b30df51Martin SjölundMove win32/mingw32 realpath to simulation runtime
bd035a4c02Martin SjölundGenerate fewer templates during bootstrapping
8a7d7b192eMartin SjölundRedesign SymbolTable handling
105aad9071Per Östlund[NF] Fix return type of smooth.
eb49dd7c6aPer Östlund[NF] Propagate comments to the DAE.
c28b63027fhkielremoved wrong translations
c5ca0a5c33Per Östlund[NF] Various fixes.
dbda08c081Per ÖstlundMake saveTotalModel more accurate when using NF.
59944ec07ePer Östlund[NF] Fix scoping of imported components.
59e722eeb9Martin SjölundEvaluate parameters with non-literal bindings
587cac20a3niklworsfix for division by zero in cpp runtime
e43fc8abf6niklworsfix for asserts during event iteration
b1a437a8f6niklworsfix for save pre varibales in cpp runtime
96f7d96e4aPer Östlund[NF] Typing improvements.
2716d589c6ptaeuberFix lambda position in non-torn homotopy components
991cbcb11bMartin SjölundSupport importFMU for me_cs FMUs
bb2c1bae68Adrian Popfix a typo
ce6c93b4f3Per Östlund[NF] Ceval/Simplify fixes.
4df4938385Per Östlund[NF] Handle derived class bindings better.
c0777112acMartin SjölundKeep loaded libraries after buildModel failure
e46b83760fMartin SjölundPropagate unit checking to the DAE
92c6383188Bernhard ThieleFixes Ticket:4618
cb8de49f92Per Östlund[NF] Improved handling of array modifiers.
f7a213646ahkiel[CodegenC] do not check for zero increment if it is constant +1 or -1
cbe247e37fMartin SjölundHandle indexed assignment of string arrays
fe5c35df48Martin SjölundFix generation of FMI 1.0 import
bcf422b748Martin SjölundSupport for fixed=false for strings
5c05ef6defMartin SjölundMove comments after doing the diff algorithm
efcef39d8dMartin SjölundFix typo causing duplicate elements to appear
715fb858fdMartin SjölundDo not remove added lines that don't match label
708e996220Martin SjölundUpdate debugging code
f16fbfd1dcMartin SjölundFix copy-paste error
67acb2d441Martin SjölundThe attributes of a pre-var is the same as the var
62d1de3b17Martin SjölundAdd Jacobian variables to the simvar lookup
705b6a1fb0Martin SjölundHandle alias variables in Susan
25d84d4103Martin SjölundFix pretty-printing of negative real literals
bd8571daf3Martin SjölundLook for external libraries in /usr
ee6b27bba3Martin SjölundLet the CSE look into if-conditions
d1104cedb5Martin SjölundHandle record indexing better
5aac106d53Martin SjölundloadFile(".../package.mo") ignores MODELICAPATH
775a336b6fMartin SjölundDo not evaluate the residuals if xloc is inf or NaN
eca7e56d18Martin SjölundWarnings for aliases during codegen
47aad95393Martin SjölundAdd differentiation of DAE.RSUB
059c8c0fa4Martin SjölundFix for DAE.RSUB with Expression.factorsWork
1c428bf8d9Martin SjölundHandle inline where inputs are record fun-calls
62a0b9dffeMartin SjölundAdd support for inline of some if-statements
70f05e5d3eLennart OchelDefine vrStates iff states are available
aee683cbbeptaeuberImprove adaptive homotopy
7366c32615hkieldo not recreate objects
1a07660b3ePer Östlund[NF] Ceval fixes.
481bef0a71ptaeuberLook for homotopy in the whole system
6bc981e1a2Per Östlund[NF] Ceval for builtin functions and other fixes.
b91fa8ff50hkielavoid recursions
926d8af51ehkielavoid excessive longjmp (matchcontinue) avoid recursion (stack overflow) when processing lists
55a1b638faWilli Braunfixing scaling of the ida solver
64d4bf14c5Martin Sjölund[NF] Use Error.assertion() instead of assert()
62af4e6957niklworsfix for Ubuntu Clang build error in Peer solver
e44d430b1fniklworsfix for linux gcc 4.4 build error
d71fe296dbPer Östlund[NF] Fix external object calls.
f37e0292c5Volker Waurichextend cse3 to find state alias
b528b72f14niklworsFatemeh 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);
fb52840dc5Martin SjölundFix for elabBuiltinSize of zero-size arrays
cdf224b8d2Martin SjölundSome work-arounds for Ceval of zero-size arrays
d1a57b2fdfPer Östlund[NF] Fix handling of duplicate outer elements.
dad39fb0c5Per Östlund[NF] Fix undefined behaviour due to #4502.
eeb91480acPer Östlund[NF] Function expressions also count as discrete.
aa363fe254Per Östlund[NF] Minor fixes.
117eefb217Per Östlund[NF] Variability fixes and other improvements.
5cea0b5a2bptaeuberFix solving of array equations
cf618db760Per ÖstlundFix setCommandLineOptions with -d=newInst.
71f4da23fbPer ÖstlundFix setCommandLineOptions.
5148feff70Per Östlund[NF] Fix NFTypeCheck.matchDimensions segfault.
4d02b9063aPer Östlund[NF] Function handling improvements.
0e14e987c2Adrian 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)
e8f130fbd7hkielremove redundant simplification rule recognized by commutative call
83ffab2f77Per Östlund[NF] Fix some variability issues.
12d1ede4dbPer ÖstlundNFInst improvements.
b9cba5b3b1Volker WaurichremoveEdgesToDiscreteEquations for MSSS
a0c7ddf5eaPer ÖstlundAdded --ignoreReplaceable flag.
c73638c689niklworsfixed divsion by zero if zero crossing was detected and before event handling started
b636b011bcVolker Waurichfix bipartiteGraphML generation for algorithms
3e982aa5c5Per Östlund[NF] Fix check of size() as external argument.
9085666033Per ÖstlundNFInst improvements.
d653ea8f89Mahder GebremedhinNFInst builtin function handling.
da629b0c93Volker Waurichmoved simplification rule to simplifyBinaryCommutativeWork
d76e9c2f7dhkieluse heap sort for ascending integer sort
0e8a738113hkielfix reheap when sorting the array
68ab9042b0hkieluse Array.heapSort to reduce memory usage for large models
aa30cda979hkielimplemented heap sort for arrays
6dc1882cc7Per Östlund[NF] Replace package constants by default.
d9b21268b9niklworsfix for linker error in ModelicaExtrenalC for cpp runtime
814b4aeeabptaeuberCalculate numerical jacobian for adaptive homotopy correctly
ea246de58fPer ÖstlundNFInst fixes.
df577f24d3hkielfix copy/paste bug introduced in 1fd2008cf5
8e9ee91458Per Östlund[NF] Better handling of stateSelect.
0790acfb4bPer ÖstlundNFInst improvements.
9ec3abdfe0ptaeuberAdd flag to start running the homotopy path ...
5730246181Rüdiger FrankeSkip displayUnit in FMI2 export because FMI2XML fails for e.g. bar
2b46fc8350Rüdiger FrankeGenerate units in FMI 2 modelDescription.xml, ticket:4649
05ebd2ec51Rüdiger FrankeOnly consider Real variables for fmi2GetDirectionalDerivative
d4ea7ac821ptaeuberSolve lambda0-system separately ...
34369f3ca7Per Östlund[NF] Handle recursive functions.
3548b470f1Per ÖstlundNFInst fix.
add36ffd15hkieldo simplification of "a and not a" to false only for boolean type same for "a or not a" to true
ce3522c3eehkielworkaround for PNLib in PNlib the LBINARY expression "{} and not {}" must be handled and should not be simplified to "false" by ExpressionSimplify.simplifyLBinary
6f71dc57faRüdiger FrankeDummy commit to (hopefully) get around Hudson bugs
f2d48acad8Rüdiger FrankeTreat removed Jacobian var defines in daeExpCrefRhsArrayBox
6ee245861bhkielfix "a or not a" and "a and not a" simplifications optimize some simplify rules reuse existing structures
37ec0ba157hkiel[CodeGenC] skip cases independent of passing guard
0cd326810ahkieluse list comprehension instead of recursion
16e800b39bPer ÖstlundNFInst improvements.
2fe6fb8400Per Östlund[NF] Improved handling of function parameter dims.
613640092eVolker Waurichmodified description of comsubexp
02355eb897hkieluse loop instead of recursive matchcontinue in BaseHashSet.get2
a6ecff6178Volker Waurichfix external object alias in initial equations
197ec7ad22hkielfix cosh^2(x)-sinh^2(x)=1 in ExpressionSimplify.simplifyBinary also remove asin(sin(x))=x and atan(tan(x))=x from simplifyCall
1fd2008cf5Volker Waurichsimpify r1+r2+cr ->r3+cr
a4417ed697Per ÖstlundNFInst improvements.
517bf930b5niklworsfix for typo in cpp tempalte
3e4eb94854ptaeuberBetter flag handling for different homotopy approaches
0a33707b19Martin SjölundHandle vectorization of matrix slightly better
b8738186aeMartin SjölundPartially type-check for min,max,smooth
5e28f3c11ePer ÖstlundNFInst improvements.
7c50cbcad6Per ÖstlundNFInst improvements.
d55e7e1757ptaeuberAllow adaptive step size also for local homotopy
e82a713699Per ÖstlundPropagate component visibility down in NFFlatten.
1a074b0746Martin SjölundAvoid using + for options
d8b46d09d0Per ÖstlundNFInst fixes.
8fe91b3bf2Per ÖstlundImprove detection of invalid each in NFInst.
38bf65a63aMartin Sjölund[NF] Type-check pre operator
c536259acbMartin Sjölund[NF] Call fail() when failing
8f80b4e489Martin Sjölund[NF] Support default attributes in functions
63769821e4Per ÖstlundDisable unit checking in nfinst.
ff1e618b39Per ÖstlundFix for ticket:4625.
a72f16503dhkielsome small optimizations avoid matchcontinue
978d2764dehkielavoid recursion and matchcontinue in getSparsePattern reduce memory overhead in ExpressionSimplify.simplifyAdd
679140ab75Martin SjölundRemove DAE.SUM in favor of DAE.REDUCTION
ea3a1f6a30Per ÖstlundBuiltin attribute type checking for NFInst
1dfcc602d1hkielreplace matchcontinue by match
eaa2e128d7Martin Sjölund[NF] Fix for builtin calls
332341ba8cMartin SjölundDo not optimize CC for initialAnalyticJacobian
89998d3febPer ÖstlundStripping of direction in nfinst.
7360bc3f71ptaeuberFix writing of homotopy csv-file for matrix elements
9cb312a831Per ÖstlundFix prefixing of modifiers on inherited elements.
9b63a0edadPer ÖstlundHandle package constants in nfinst.
2a409cde6cWilli Braunadded first version of ida scaling
725d9defb5niklworsacitvate 'Allow dividing by all globalKnownVars in initDAE' for cpp runtime
425073cef3Willi Braun[FMI] fix sorting of the directional derivatives
28e9498e5dptaeuberAlways select start value with lowest...
cf744823efPer ÖstlundBasic handling of component conditions in nfinst.
42bc0b10a8Mahder GebremedhinNFFrontEnd small fix for array expressions ($array)
1e0528341aPer ÖstlundImplement simple branch selection in nfinst.
67d63de5e5Per ÖstlundClean up NFUnitCheck.foldEquation2 a bit.
8ab93d5b39Per ÖstlundRedeclare improvement in nfinst.
1be2a07fd0Adeel 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.
1a778dd4aeMahder GebremedhinNFFrontEnd record fix
1b186d3c33Volker Waurichthrow warning when SimCodeUtil.makeSES_SIMPLE_ASSIGN fails
a1aa13855bVolker Waurichfix for SimCodeUtil.makeSES_SIMPLE_ASSIGN
49cdb03269Adrian Popfix opcua lib exports on windows
19933497b9Adrian Popfix windows build
27d4fab071ptaeuberFix init message for FMI
bb335c6930ptaeuberMove default success messages from stdout to LOG_SUCCESS
691f4e9033Per ÖstlundImprove element visibility in nfinst.
b30e47aac8Martin SjölundHandle reporting real stack overflow in Susan
037d5bb3feMartin SjölundFix scalability issue in NFUnitCheck
9e0eb5fd74Per ÖstlundFix StateSelect variability in nfinst.
0f0996174ePer ÖstlundFix ticket:4611.
23c2c8b8f7hudsonUpdating 3rdParty
fb2513cd39Martin SjölundUpdate open62541 to 0.2 release
9a8bb1d62fMartin SjölundFix stack overflow in NFUnitCheck
0a53c4f7behkieldo not use matchcontinue where match+guard can be used
75a30894f6Per ÖstlundBasic connection handling for NFInst.
2c5818d2b4Lennart OchelAdd flag to fix the mat file headers every N steps
0a2dcae72eMahder GebremedhinEnable unit checking by default in the New FrontEnd.
7e6dbfd82cPer ÖstlundFix for #4606.
0a64f0055dMartin SjölundAdd rpath for the C runtime libraries
b3c9646b6dLennart OchelAdd unit information of alias variables to mat files
a07c7d7f8aMartin SjölundPassing fixed=true where expected in the examples
1f28d87c1aLennart OchelSave units of measure for parameters to mat files
66d69d5a76Rüdiger FrankeUnify generated code for variable access under FMI 1.0 and 2.0
0ed5264e97Martin SjölundFix scalability for systems without variables
32ea34faacRüdiger FrankeFix Cpp code generation for derivative functions of media, ticket:4600
d01f3d6c0aDavid PolakAdded pressure unit mmHg
bf377faf44Lennart OchelAvoid deprecated usage of flags
ebaacfbd49Mahder GebremedhinNFrontEnd Unit checking.
d4dd96b0caLennart OchelCleanup MatVer4
119136c6cdMahder GebremedhinNew FrontEnd improvments
80e3d34fa6Martin SjölundAdded optional Susan debugging help
fe021bdbeeLennart OchelRemove old mat file writer
36778dd5edLennart OchelAdd unit information to mat files
a981b3727dLennart OchelNew implementation for writing mat files
bf1eaeb34eRüdiger FrankeImplement fmi2GetDirectionalDerivative in Cpp runtime
6c0d7cf2d8Rüdiger FrankeSet FMI flag providesDirectionalDerivative depending on generated code
69f2571cdbRüdiger FrankeChange int to size_t in FMU accessors
a33d4f3c14Per ÖstlundFix NFInst.instClass for encapsulating classes.
1749c2e3fbMartin SjölundDisable CC optimizations on linear systems
8abed04d0bPer ÖstlundSplit NFFlatten into multiple phases.
43d3d5d395hkielfix Matching.removeEdgesForNoDerivativeFunctionInputs
11df6e6734hkielsome minor optimizations - remove a matchcontinue - do not operate twice on list - make function tail recursive - avoid tuples
dfbce6c2ffMartin SjölundUse Set instead of List.unique
9ff276e854Martin SjölundMake findLoops able to look for at most one loop
c21c29dde6Martin SjölundUse sets instead of lists in comSubExp
7b04aa1891Martin SjölundUse sets in comSubExp
2ac44ced47ptaeuberFix check of homotopy solution
9e2d1a7c50Martin SjölundFix scalability of collectInitialBindings
68350e96d6Martin Sjölund[OSX] ModelicaExternalC install names
2f828a21caMartin Sjölund[MAT4] Add special case when nrows==0
a5b8a71ba8Martin Sjölund[OSX] Fix install name of OPC library
c2e5abee77Martin Sjölund[OSX] Fix builds when using a single thread
18b70e240dMartin SjölundSilence some warnings
a3eea2746bWilli Braun[cRuntime] move jacobian eval LOG_STATS output
7f2aee4a87Willi Braun[SimCode] fixing symbolic jacobians order for info
3532b108b7Martin SjölundSupport bootstrapping when using array literals
09c37cd93cMartin SjölundAdd MetaModelica.Dangerous.listArrayLiteral
ec1d292727Martin SjölundUpdate linear system debugging
04560c977eptaeuberWarn of conflicting alias variables
baaffecf66niklworsfix in cpp template for jacobian variables used by algebraic loop
ed4ccd80beMartin SjölundFix for linear sparse solvers in source code FMUs
15730cb502Martin SjölundReturn correct variability for reductions
b610cb9d9dMartin SjölundDo not store time in the data_1 matrix
2f8fe8ec5cMartin SjölundMake error-message shorter
625bb6584dPer ÖstlundNFInst fixes.
ac679f79a6Lennart OchelRemove unused variables
2d0ba0f989Lennart OchelNew function to debug hash tables
f55d7d6b59Martin SjölundFix for using default sparse linear solver
348695870dMartin SjölundImproved debugging of bad variables in codegen
98136a9867Bernhard ThielecheckModel support for state machines
6c085bb839Willi Braun[FMI] join functionTrees for directional derivative
75ec7ef8d0Willi Braundisable fmi directional derivatives by default
73e4cc5eecptaeuberDo not get algorithm crefs that will be discarded
702e3381bcMartin SjölundAdd a scripting function to access stat
aeb9725a3eMartin SjölundAdd support for single precision in mat4 output
92ac5a60d2Lennart OchelIncrease hash table sizes for the unit checking
bba43625e3Willi Braunfixing FMI directional derivatives and model structure
a766c29ea8Martin SjölundUnify reading enumeration flags
0e39b73bccMartin Sjölund[FMI] Fix static source code FMUs
b4aa137b30Martin Sjölund[FMI] Set default dense and sparse linear solvers
c1445a8677Martin Sjölund[FMI] Escape the model's description attribute
fba8150480Martin Sjölund[FMI] Set nominal to 1.0 as a default
2a43b90b7chkieloptimize memory further for ticket:1451
84dc1d9ec1Bernhard ThieleState machines ticket:4563
fdcc01d6afhkielabsAdjacencyMatrix only changes lists if values < 0 are contained improves ticket:1451
b5d86d3277Per ÖstlundFix InstExtends for MetaModelica constructs.
d8c018eaa1Martin SjölundMake FMU tmpTick indexes more similar to C codegen
aa907b11bcWilli Braunfix array differentiation for symbolic jacobains
a9268a9e89Martin SjölundMove parameter record bindings to initial equations
37e75adf89Martin SjölundImprove check for failed function inlining
0406ea2e67Martin SjölundFix crash is default linear solver
aba3685085Martin SjölundCalling terminate at initialization means success
c22c35be40ptaeuberFix problems with ExpressionSolve
ebb0ea835dMartin SjölundMove checkForDiscreteChanges to simulation runtime
3a0af47b17Lennart OchelNew package AdjacencyMatrix
2264580fd0Willi Braunremove jacobian var defines in cpp codegen
24d57037caWilli Braunfix differentiation of arrays crefs(ticket:4545)
6d2338df2eWilli Braunimprove variable generation for jacobians
024a75d0adMartin SjölundMake it possible to ignore OMC_DISABLE_OPT
94e29a9aa5Martin Sjölund[C-code] Binding equations disable optimization
b0b8677b72Martin SjölundBootstrapping depends on zmq
173618cd51Martin Sjölund[FMI] Implement a faster setReal/getReal
a603749848Martin SjölundDo not generate defines for value references
88845bb533Martin SjölundFixes from static analysis of ranges in reductions
ccd5c42a2eptaeubermaxSizeLinearTearing=200 as default
624b9a6ea8ptaeuberWarn about unbalanced system after WFC
3c3ca87727Per ÖstlundComponent attribute propagation for NFInst.
7648bd565dPer ÖstlundClean up obsolete files from new frontend.
351cb37677Martin SjölundDo not add FMI runtime while bootstrapping
aad32e02a0Martin SjölundSplit updateParameters into simple and complex
6138df4eb8Martin SjölundImprove scalability for binding equations
38a9013452Martin SjölundAdd a JSON parser
ad52d37cb6Martin SjölundAdd a JSON lexer
958906ae8eMartin SjölundUpdates for libomcruntime
3d141a9e12Adeel AsgharReturn "" as file name when duplicating top level class
e92a0b57cfPer ÖstlundFix min/max for enumerations.
c2054ffd30Per ÖstlundAdded stringEmpty and arrayEmpty to MetaModelica.
0e625e9d00hkielfix some warnings from static code analysis
fe070413e8Per ÖstlundNFInst improvements.
8943f737c4Per ÖstlundAdded debug flag ignoreCycles for #4543.
ec69d301bcMartin SjölundApplied the refactoring script
ec7206f2eaMartin SjölundOnly add _length variable for array reduction
9ce0a4a131Martin SjölundAvoid static analyzer dead assignment warning
215f1b1e54ptaeuberBetter handling of redundant initial equations
d3f9ab11e4hkielsome small list optimizations
f85f44f91cWilli Braunfix differentiation of function outputs
ebf70e3390Per Östlundinner/outer handling for nfinst.
669df41283Martin SjölundFix for fileNamePrefix not a valid C identifier
defddaa0ebMartin Sjölund[MetaModelica] Use goto instead of done variable
19186f7c29Martin Sjölund[FMI] Give default start-values for parameters
c5205762f7Martin SjölundtranslateModelFMU returns empty string on failure
da38b3e64fWilli Braunrewrite algebraic system in SimCode
29e8121636Martin SjölundMake getAnnotationNamedModifiers not return bad data
702501a865Willi Braunenable discrete vars in symbolic jacobian
fff1788471Per ÖstlundForbid invalid tuple use in nfinst.
f42e280556Per ÖstlundNFInst improvements.
15ba583b50Martin SjölundFix generated C++ FMU filenames
bacaf0378cLennart OchelDon't replace dots in fileNamePrefix for FMUs
b7bed213c6Per ÖstlundNFInst improvements.
5dfdea2fafAdeel AsgharReturn same number of output from failing case.
453e1c7703Per ÖstlundFix for OperatorOverloading.makeEnumOperator.
9670ad9e5fAdeel AsgharReturn the access annotation with getClassInformation.
c64663db56hkielmake SimCodeUtil.createAllDiffedSimVars tail recursive fix ticket:4534
e6d2062488Martin SjölundMake C++ FMUs respect fileNamePrefix
b383de7ebeMartin SjölundCache the FMI configure results
cd1bf87564Martin Sjölund[FMI] Do not optimize read_input_fmu
5122abb874Martin Sjölund[FMI] Keep more logs with generated binary
f99f612543Martin SjölundEnabled RT_CLOCK_BUILDMODEL for buildModelFMU
d39727c21fhkielupdate omc translations
351c73d382hkielfix some c-compiler warnings
15276ce9fbhkielavoid stack overflow (ticket:4534)
0371e97114Rüdiger FrankeThird attempt to fix shiftSample, ticket:4530
5b8217142aRüdiger FrankeEliminate subSampleFactor from FMI model description
23493d868bLennart Ochel[FMI2] Fix set/get methods for types integer, boolean, and string
c7cddda447Lennart OchelFix some error messages
08c6143c3aLennart Ochel[FMI2] Calculate real values if needed
453670fdbaPer ÖstlundFix #4524 for Cpp and XML codegen too.
93a4aedd91hkielmake unmodified objects constant
415de246dbPer ÖstlundFix for #4524:
5bf9661f62Rüdiger FrankeRevert "Alternative treatment of shiftSample also considering event clocks"
6554061cfcRüdiger FrankeAlternative treatment of shiftSample also considering event clocks
df66a21326Rüdiger FrankeRevert "Separate subSample and superSample from shiftSample"
9a067c8d04Rüdiger FrankeFix clock ordering in FMI model description
edd5dda09cRüdiger FrankeSeparate subSample and superSample from shiftSample
5c6d6e3ac4Rüdiger FrankeRemove superSampleFactor from FMI model description
79caae607fPer ÖstlundFix for #4521.
b9e79ece9cJan ŠilarPDEModelica
aab2f92838Volker Waurichfix for simplifyIfEquation
bbbda07eaabernhardbachmannFix division by zero problem
594ab60198hudsonUpdating 3rdParty
555e13e727Adrian 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
a633fbbc23Rüdiger FrankeApply resolution to shiftCounter in FMI model description
e844e3abcfBernhard ThieleFix for ticket:4527
50d02d9072Per ÖstlundNFInst improvements.
d3dffead4fbernhardbachmannImproved damping criteria of the newton solver
e59152f17fPer ÖstlundNFInst improvements.
0c97493ceaPer ÖstlundNFInst improvements.
c40d463d2cAdrian Popfix a crash in sphinxoutput
7bd484726eVolker Waurichfix visualization xml
a275e4ca0dWilli Braunmore fixes for ticket:4395
ff269274cdbernhardbachmannFix some scaling issues
cc3c53183cPer ÖstlundFix InstExtends.fixCref for fully qualified crefs.
5307f91e15Per ÖstlundFix parsing of imports.
df8573fec9Willi Braunadded noScaling flag and fix minor kinsol things
275ccba0e9ptaeuberIntroduce new global homotopy approach
62dc75df3aPer ÖstlundNFInst improvements.
e2dfbf69bdVolker Waurichfix for partlintorn
5682249747ptaeuberWarn about iteration variables with no nominal attribute
3d27c595dchkielmake SymbolicJacobian.createAllDiffedVars tail recursive fixes ticket:4392
8cf74960aePer ÖstlundNFInst improvements.
df2b0b4325Willi Braunfurther fixes to ticket:4395
60fecdddd1Adrian Popfix ticket:4509, use correct defines on Windows
45d12dbee6Lennart OchelRemoved the eol comma separator
8befe8aa0eLennart OchelSkip exporting variables of type string for csv export
503e9a1f57Lennart OchelFix csv export for variables of type string
dc5dc2be7dWilli Braunfixes issues from ticket:4395
b67fdd1b55ptaeuberTry without homotopy also for local homotopy method
9db6254895ptaeuberFix bug in homotopy solver
56f95c75cbWilli Braunadded additional ida statistics
a4b8280319Willi Braunfix daeMode=all by skipping algebraic evaluation
29740e24b3Lennart OchelFix sorting of external object destructors
52b0a09203Lennart OchelAlign variables to avoid unexpected behaviour
3ade1973b9ptaeuberFix success messages
4522d1311fadrpov1.13.0-dev
c74f60564ePer ÖstlundImplemented initial support for size in nfinst.
1a120c8363hkielevaluateForStatement: do not loop over ranges with stop < start
2e4c6ff818Per ÖstlundImplemented class extends in nfinst.
cc3ad15071hkielavoid creation of temporary lists
1c87ab0903Per ÖstlundRemove name from class extends SCode.ClassDef.
5b5e235d49Per ÖstlundImplemented handling of duplicates in nfinst.
db0864769cMartin SjölundCheck for -g=Optimica in optimization solver
7e5cc77a11ptaeuberChange homotopyOnFirstTry flag description
19f24e8a03Volker Waurichfix for HpComEqSystems.partlintorn
24c3047c71Martin SjölundPerform incomplete matching for over/underdet syst
1355755febVolker Waurichfix for evalfunc #4456
dc49b6e248ptaeuberInitialization and simulation success messages on stdout
e988ea489dVolker Waurichadd 1-norm, 2-norm and max error for deltaSimualtionResults API
a845edafcaVolker Waurichuse fmax() instead max()
66f09c4135Volker Waurichadd scriptingAPI to compute error sum
5b71b6690bptaeuberFix wrong error message ...
2cd28b6c3dptaeuberFix bug in function evaluation
2eed74cb2bVolker Waurichproper cref comparison in evalFunc
3645e8bd6cVolker Waurichcorrect type in DAEUtil.varCref
4d034e923fAdeel AsgharFixed the addInitialState API.
564c405902Martin SjölundLift restriction on connector extending from type
2432a47d7fptaeuberDo not remove functions used in lambda0 system
0b97943f3eptaeuberAdd function tree to jacobian dae
2e17f151feMartin SjölundHandle range special case for reductions
5ee6abbdfeptaeuberEnable global homotopy as fallback option by default
d0deadfb08Lennart OchelFix homotopy for source code FMUs
42663b6a16Adeel AsgharAdded new add, update and delete APIs for initial state.
21ce9323adptaeuberFix bug in homotopy method
441b181a8fVolker Waurichavoid List.intRange() in for loop
388bbcf25dhkieloptimize Graph.partialDistance2colorInt
e8e2216cc1Martin SjölundRemove equations like "{} = f(...)"
545461b1ccMartin SjölundAccept DAE.MATRIX in codegen of array equation
abde81d4e1Martin SjölundHandle a stack overflow in HpcOm
74ffe7010bMartin SjölundExpand equations marked inlineAfterIndexReduction
789abbee3aMartin SjölundHandle running the same optimization module twice
2933df617dMartin SjölundAvoid expanding equations
169fa51dffVolker Waurichrewrite ResolveLoops.getSimpleEquations
220e25fe56Lennart OchelGlobal homotopy approach
4221d29abfMartin SjölundAdd an extra step before daeExp in Susan
97fddd8027hkielmove option creation out of outer loop
d30d68c372hkieldo not recreate Option
12c7c7fff8Martin SjölundCollapse arrays of crefs
9ebc68cb4eAdrian Popproper handling of corba file dump path
d51f346fbchkielspeed up and memory enhance ResolveLoops.getShortPathsBetweenEqCrossNodes
b00d68d723Martin SjölundMake predictable tmp-indexes for residual functions
88c73ca887hkielreduce memory footprint of comSubExp
853b43e5aaptaeuberSpeed up tearing
b69a9eb741hkielsome small optimizations for large models
f50884b47eMartin SjölundExpand arrays in record when generating simcode
49a3767585Niklas Worschechusing Kinsol as standard nonlinear solver
ffcf1b14afNiklas Worschechfixed errors in commits cca3ace0a656a71348290808b13138057a06c732 and 6e5cf6bf01ad7cde7a8a461969924e361ef4b24d
e19e1ee92aNiklas Worschechadded simple NoxSettings
315bbe1a79Niklas Worschechrefactored Nox.cpp when calling CheckWhetherSolutionIsNearby
be4b2d9ef3Niklas Worschechcompleted replacing generateoutput-flag by logging
28e177d7aeNiklas Worschechrevert activating Logger
0f0914305cqichenghuaAdded Logger, added Doxygen and fixed bug in varying initial guess by 10% if initial guess has components that are zero.
34f3bd745bqichenghuaSoftened tolerance for homotopy solver
46e1cff890qichenghuaUsing homotopy for nominal values as start values as well.
6eee27b44aqichenghuafixed error in variation of initial guess in commit fb31cf3e8a7b1523d3e86170359c4a8ef279ae47
7c973e6c47qichenghuaadded frames for Doxygen
78e7aa71feqichenghuaTry extrapolatin start values of nonlinear solver
951ee926f2qichenghuaPreparations for extrapolating start values for nonlinear solver.
b4973f6fbaqichenghuaTry setting initial guess to nominal values if other methods fail.
3ba7fa6535qichenghuaNox: Try more methods if and only if eventretry is false.
179903604aqichenghuaadded varying initial guess in NoxSolver again.
ec62f807b6qichenghuafixed error in the lacking precision of double precision handling that was introduced during refactoring in commit f2f0b7eb56785e14bf78f2acb0ab888596a998d3, so this criterion is applied successfully again.
6d48942b81qichenghuaadded retry of nonlinear solver nox in case of events
456875edf9qichenghuaFurther Refactoring of nonlinear solver nox
8ea3763a4eqichenghuarefactored nox.solve()
eccaa1fab3qichenghuadeactivated variation of initial guess.
9550148795qichenghuafixed bad cast error when homotopy solver within Nox is used.
d633a30e0dqichenghuaadded variation of initial guesses in nonlinear solver.
e13383428bqichenghuaadded more accurate (4th order) method of computing the finite difference approximation to the jacobian of the algloop.
7187f7036fqichenghuaset algloop to 1e12 instead of 1e6 when evaluating the right hand side fails
5914059d71qichenghuaadded 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.
267a1c7066qichenghuaused normal Newton again
ea35f342ceqichenghuafixed KLU path
3290599a73qichenghuaadapted initial step length in homotopy method in nonlinear solver nox in cppruntime
d5d856ec44qichenghuarefactored Nox
557c017495qichenghuarefactored Nox.cpp
6079a8638fqichenghuaTrying less methods in nonlinear solver
2a98b08a02qichenghuareduced output in nonlinear solver nox
d0b99ccbd8qichenghuaenabled nonlinear solver for arbitrary tolerances by solving issues with lacking precision of double precision in case of too tight tolerances
9a1334396bqichenghuamuted output and disabled tolerance alleviation in nonlinear solver nox completely.
6beb4f401dqichenghuaExperimental rounding error fixing for fluid models in MSL
faa82e65d6qichenghuafixed error introduced in 31424fc19ae5b7e29f5a17e102eb4d6e0a29d311
330aa9e1e5qichenghuause kinsol instead of nox as default nonlinear solver
83d7b4ac06qichenghuadeleted unnecessary comments and dead code in Nox.
b3f0ed0facqichenghuaadded additional homotopy methods
d2c74c006dptaeuberAllow dividing by all globalKnownVars in initDAE
88fee4f5a4Adeel AsgharNew API to get initial states.
591485e63bBernhard ThieleFix FMU import related simulation deviations
acc20cc1aeAdeel AsgharCheck if the list is empty.
ca1c6de2c5hkielincrease size of base array to avoid expensive re-sizing
7029f3afb7niklworsfix for coping sim values in BufferReaderWriter
90441d8cdcptaeuberImprove model_info.json
64eefbbd2dptaeuberSpeed up tearing matching a bit
498ae9ff3dAdeel AsgharIf an embedded server is specified.
02b0bab99bAdeel AsgharOutput the information when opc-ua server is initialized.
0fc8e098cchkieloptimize ResolveLoops.getShortPathsBetweenEqCrossNodes() further
107d88df34ptaeuberAdd execStat for matching/sorting of init dae
da6c53fe6fhkielavoid multiple sorts
743991c8f7hkielfix reverse ranges n:-1:1
89f3548de4hkielfix List.sortIntN()
9a5c35eeedhkielsort lists before intersection to speed up
feee0cf283hkielimplement intersection on sorted Integer lists
767bebdf19hkielRemove loop check from differentiation ther is still a maxIteration check. reduces running time tremendously
bfbc14590dptaeuberCount tmp vars to unknowns in SimCode EqSystem
62106406ffptaeuberAdd more info to SimCode EqSystem
0b0a647ac7hkieluse AvlSetInt instead of too big List.uniqueIntN() array for large models
f30ae8ae4fptaeuberImprove model_info.json
929645f942Rüdiger FrankeDelay initialization of FMU2 logger until it is requested
c617a1f585ptaeuberFix detection of fixed globalKnownVars
ade8bc4852hkieldo not create temporary arrays
cbeb9b3175hkieldo not copy key if it already exists
6674cbe6a0Rüdiger FrankeExport FMI functions for multi-rate sampled data systems
0d0414ca3fRüdiger FrankeFix initialization of nominal values in DgesvSolver, ticket:4459
61870e3e31Rüdiger FrankeEnhance logging of DgesvSolver
4866f55986Rüdiger FrankeFix whitespaces in DgesvSolver
1504ef744bAdeel AsgharCopy the open62541.h file build include directory
214f0d63afptaeuberDo not create parameter equations for constant variables ...
299703b473Martin SjölundCopy libzmq dylib files
708c3b4889hkielreduce memory footprint of Tearing
0ecd8be5b3hkielsome small optimizations
dc91086f1cptaeuberDo not create unnecessary large nonlinear systems ... around single complex functions
092ac3896aMartin SjölundFix for RHEL/GCC not compiling in C99 mode
dfebc074c7Jan ŠilarA new function to read whole array from .mat file.
1606f8a100hkieldo not use tuple as function argument when not necessary
76d87502f6Per ÖstlundMore nfinst fixes for ScalableTestSuite.
6e926926caPer ÖstlundIgnore imports in NFClassTree.expandExtends2.
c8caa6d3d8Volker Waurichadapt yEd dump, add borderwidth to graphml nodes
3dcf0f9f65Per ÖstlundAdded execStat for instantiateModel DAE dumping.
c8394ea31cPer ÖstlundHandling of self-referencing extends in nfinst.
b2744b01b9Per ÖstlundSimple typing of subscripts for nfinst.
c28fb0ce1aLennart OchelSimplify handling of invalid states
c7d04e1fb2Per ÖstlundNFInst improvements.
4e4ac932dcAdeel 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.
f1f89ccf89adeas31Fix the zmq initialization for linux
709531b2edhkielTicket4407 case preserving filesystems fixes problem with re-generating files on case-preserving filesystems
73555c0acfVolker Waurichnew yEd dump of complete dae system as bipartite graph
8ba253e1f8Adeel AsgharWrite zmq server connect string to file. Let zmq choose the port automatically and write it to a file.
f2b55ccb73Martin SjölundFix compilation of zmq on OSX
86cfac41d4Martin SjölundDo not copy so-files to bin/
ea473e72a2Volker Waurichcomments for synchronous implementation
6a81761cf6Volker Waurichsolver clocks do connect base partitions
4a475acca1Adeel AsgharImproved the ZeroMQ server send method
7827a66b10Volker Waurichnew subclock partitioning implementation with new partition adjacency matrix
95cea6e24bptaeuberAlso dump resEq in tearing dump
2f2fed896bhkielsome small improvements do not update Avl.key when adding key of equal value optimize function intersection
9663605017hkieluse simpler if instead of matchcontinue
ba78dc7036hkieldo not explode and re-create tuple
9276843c9dhkielfix static analysis: avoid dead assignment
1b08e2b101hkieldo not generate intermediate list
b11bb9742eLennart OchelUse different call sequence logics for ME and CS
71eeb5f42bLennart OchelFix indentation
050739da0cAdeel AsgharFixed encoding.
b70932d98cAdeel AsgharImproved the ZeroMQ server receive method
7a88dc81eahudsonUpdating 3rdParty
fcd2bf7635Adeel AsgharInclude the ZeroMQ headers.
579677bef1Adeel AsgharAdded ZeroMQ communication interface
e2bcaf36d6Adeel AsgharFixed socket communication.
76dc2503a8ptaeuberMatch more nonlinear equations first while tearing
b95b469c7aLennart OchelAllow fmi2SetInteger in continuous-time mode
d84ea136f7ptaeuberMake Evaluate=false have an effect
e116454e90ptaeuberDo not prefer vars with start value for tearing
9ca61408c1ptaeuberRevert "Use nominal value as start value for iteration vars"
e7045ec96eptaeuberUse nominal value as start value for iteration vars
ddfec0ed75wibraunremove unused functions as a last step of backend
f821aa3e72Danny MoeschAvoid 'and' operator in C++ code since MSVC12 does not support it
16a7626183Martin SjölundHandle dassl better in opc-ua
7b440a1b1aLennart OchelFix derivation rule of pre calls
0042521a3dLennart OchelFix derivation of previous calls
9492f9ed56Lennart OchelFix homotopy debug dump
a7b3828768Lennart OchelRead csv file delim from header
ef8d92946dJan HagemannwrapFunctionCalls can be used in initOpt: --initOptModules+=wrapFunctionCalls
f6f6a142e8hkielspell fix
9dc481ed62hkielfix C-macros (missing braces)
480ac49a2cLennart OchelRemoved unused variables
8ed0af6eeehkielfix prototype to avoid a warning from C compiler
d0c4de069eLennart OchelFix zero crossings for div calls
a342dab3d5hkielcorrectly compare mod() and div() zerocrossing pairs
2f4a4090aeLena Buffoniinversed path order
d147790caeLena BuffoniFixed autogen names, finding correct client paths, not parsing through Modelica Standard Library
96267f1412Volker Waurichfix Ws2_32.dll linking under windows
6d5709bda5hkielturn non tail-recursive functions into for-loops
ba45c06e57Lennart OchelHide protected variables
19285705c7Volker Waurichfix subclocktree
1ec58addadptaeuberDefine separator for homotopy path csv file
9f917019deptaeuberFix initialization of external objects
ce11282f76Martin SjölundOPC-UA: Trigger an event when changing inputs
7abe6456aeChristoffer Fors JohanssonAdded a new flag, -embeddedServerPort
deeabde08bhkielFix initial size of HashSet reduces execution time of inlineWhenForInitialization from O(n^3) to O(n^2) (see ScalableTestSuite)
398f56301dVolker Waurichdont order partitions if there are none
3a944419d3Volker Waurichsort clocked sub-partitions and deactivate negative shift
54881ac367Martin SjölundUse Mutable in the backend
d12a035861Martin SjölundUse Mutable for the DoubleEndedList
1224535132Martin SjölundUse Mutable in the frontend
f618817f93Martin SjölundAdd a Pointer type similar to the Mutable type
f92a4a00a9Martin SjölundAdd support for a Mutable data structure
8780cf754fLennart OchelRevert "Enable homotopy by default"
8dc4feab25Lennart OchelFix ExpandableArray.compress
8e2a2a0714Martin SjölundParse mos-file statements using iteration
f9882c38f5Volker Waurichsupport boolean sub clocks for cpp
89d9bc659bLennart OchelEnable homotopy by default
a9e3d63a49Lennart OchelEstimate required allocations for selectInitializationVariablesDAE
4f1dc42d2fLennart OchelEstimate number of equations
cf6f51c512Lennart OchelEstimate number of equations
e3fdafb194Adeel 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
a8b251ebf1Adrian Popexperimental support for merging alg sections, ticket:4365
935a1c9225Adrian Popfix inner/outer prefixing in algorithms ticket:4365
dd5fb2b864Adrian Popfix frontend part of ticket:4157
ac1663df69Martin SjölundProvide more information for invalid roots
eb3f80fe33Martin SjölundHandle recursion better when inlining calls
894837ccd4Lennart OchelReimplementation of the c runtime homotopy support
17e88411d8ptaeuberAdd experimental initOptModule inlineHomotopy
f0af412018Willi Braunadded scaling for f(u) in kinsol, based on jacobian
11f1da2a37Lennart OchelAdjust memory management of equation arrays
fa0a689e5dLennart OchelFix side-effect in getSymbolicJacobian
2892979abdLennart OchelFix BackendEquation.merge
8e24cbffecLennart OchelClean up BackendEquation.mo
9abe3dcf0bLennart OchelFix ExpandableArray
3eb1be03feLennart OchelUse ExpandableArray for BackendDAE.EquationArray
8429f9475eptaeuberFix wrapFunctionCalls for cpp runtime
fd294f600eLennart OchelRemove unused variable arrays
a12c3491abBernhard ThieleRemoved obsolete state machine back-end code
2cb1d8f6d1ptaeuberImprove module wrapFunctionCalls
c224a4b973Per ÖstlundAttempt to speed up collectInitialBindings.
32a70d2658Willi Braunfix kinsol, reinit klu matrix onyl if klu is used
639c7bdc42Lennart OchelRemove when initial() from dynamic system
3d4461dbd1Lennart OchelFix ticket:4387
e05d9d5572Lennart OchelMove timings from LOG_LS to LOG_LS_V
65dd5bc7e9Lennart OchelcompareSimulationResults is deprecated
adf56d3866Lennart OchelAdjust comparison of initial data point
9166cbfaf5hkieldo not use tuple for one needed arg
f31ed5b0bbLennart OchelRemove $_old(.)
2aadf4f0bfLennart OchelAdd .vscode/ to .gitignore
1698ce9ba9Willi Braunfix symbolic jacobian in kinsol
d2f4ddbda4Lennart OchelFix variable names in debug output
9b4cb3b642Lennart OchelImplement missing case for SUB_SCALAR_ARRAY
5124b80a0eLennart OchelFix add_alloc_scalar_real_array
3f31abbf04Volker Waurichcompute time events during runtime instead of precalculation (cpp)
064433e8faLennart OchelAdd number of linear/non-linear/mixed systems to debug output
3b5a5eadd8ptaeuberShow warning if parameter is overwritten with small value or zero
3ad0767e11Willi Braunremove old unneeded code for symbolic jacobian
78b18d88baLennart OchelRemove $_initialGuess(.)
495a973767Lennart OchelFix homotopy-based initialization
74f4678918Lennart OchelAdjust generation of start-value equations
280c5ba72cLennart OchelUse start values as initial guess for nonlinear systems
4548444fb9Lennart OchelDon't generate unnecessary start value equations
e36b947c7eptaeuberUse nominal value to define threshold for param division
5351a6eb80Worschech Niklas (DC/ENE22)updated 3rdparty
b78943f0c8Lennart OchelRemove unused templates
4ba7588dcfLennart OchelRemove obsolete start value call cases
bca32a3137Lennart OchelAdapt handling of start-values
fbffa36fadLennart OchelImprove some debug dumps of package Differentiate
c0606aaf4aVolker Waurichfix cpp codegen
85e1ec8df5Lennart OchelAdapt index reduction to new representation of start values
03e06df29bLennart OchelFix initialization of start attributes
803f52cd01Lennart OchelCleaning up
d379a34dc4ptaeuberAdd config flag tearingStrictness
13fc9557e1Adrian PopLink ModelicaStandardTables with ModelicaIO and ModelicaMatIO - we need this to be able to update ModelicaExternalC
7e8436ef90Lennart Ochel[NF] Check if binding type does match component type
84fadec4dcAdrian Popfix library order for ModelicaStandardTables on Windows - this order should work for MSL 3.2.1, 3.2.2 and trunk
0130f958eaadrporevert code from c77eae8d2283a15e140c3289e9ebc5f0ae84a179 - we need to constant evaluate the parameters of Clock!
0785449db4qichenghuaFixed error with commit 75c04c436d443a147f3f6a11451a74221a4b1e95
75c04c436dqichenghuamuted nonlinear solver nox
33db784520ptaeuberRevert "Improve module wrapFunctionCalls"
4984d9d02fMartin SjölundAvoid empty autoconf statements
a919ef478dptaeuberImprove module wrapFunctionCalls
52cd6addf5qichenghuaextended error message in Cvode in case of too many events in small time interval.
4712b7a5d7qichenghuaSet algloop to high values instead when otherwise errors were thrown.
2659444bcbAdeel AsgharReturn boolean from deleteOrUpdateComponentFromElementitems when its successful.
63a779abb7Adeel Asgharticket:4342 Fixed updating protected components
f159b76180Lennart OchelSimplify polymorphic types of function mapAllValue
d628e4c653Willi Braunfix codegeneration for records
59a2173e2eNiklas 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
6deba45e6dPer ÖstlundNFInst improvements.
d74861a098Lennart OchelFix attributes of state derivatives
84fa514185Lennart OchelImprove indentation of the generated *_init.xml file
621f1b6839Lennart OchelFix comments of state derivatives
1f69fcc34dPer ÖstlundFix overload of String in new inst.
0f52fc6c66Niklas Worschechfix pdp file copy
bff59069ceNiklas Worschechfix for release build with VS 2015 of cpp runtime
b93e15a5c9Lennart OchelConstant evaluate fixed attributes
15883dd1ccLennart OchelClean up NFUnitCheck
a14eb1024aDanny MoeschUpdate submodule '3rdParty' again
3f98c16fb6Danny MoeschUpdate submodule '3rdParty' concerning the added NOX solver
2ecdd1dd7eDanny MoeschRegard operating system specific directories
1cb1bf8738Danny MoeschAdd Nox building in makefiles
62fa9b30c3Mahder GebremedhinNFFrontEnd function and typing improvements
0ed34dc3edMahder GebremedhinNFFrontEnd function updates.
bfc2e252d2Lennart OchelFix module unitChecking (ticket:4306)
8d690cf157Adeel AsgharDo not use a default value.
ec908e4e5cAdrian PopFix windows msvc build
cfa55d770fPer ÖstlundImproved support for for loop equations in NFInst.
4d0d14fa79Per ÖstlundInitial support for for loops in NFInst
4124ebe831Adrian PopFix windows builds - update 3rdParty to one that knows how to find lapack for sundials
15992776fdLennart OchelAdd missing cases to unit checking
343d155ebdPer ÖstlundFix InstUtil.findUnboundVariableUse for _
d5b7bc2faeMartin SjölundSimplify of asub where the subscript is a range
2091a03143Martin SjölundUse the OM-compiled Sundials for C and C++ runtime
c7fe8a2349Per ÖstlundSome small NFInst improvements.
e10293f711Lennart OchelAdd handling of initial terminate to c runtime
8064d3a898Lennart OchelFix classification of initial equations
b8fe1840caAdrian 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
9e033a100dJan ŠilarPDEModelica bugfix and minor changes
02e5c4a519Jan ŠilarPDEModelica bug fix
3e1d796792Jan ŠilarPDEModelica ghost cell rename
e7ae049c8cJan ŠilarPDEModelica -- left boundary x value
f8b26335f6Jan Šilarsecond order pder
aea3ec9c87Jan ŠilarPDEModelica -- ghost cells
3461537034Jan ŠilarPDEModelica - ghost cells hopefully finished
52646f206fJan ŠilarPDEModelica - GhostCells
a0d00d881cJan ŠilarPDEModelica Ghost Cells not finished -- serching for fields in pder to be extended by ghost cells
c4c02c1d44Jan ŠilarPDEModelica -- minor refactoring
69b294ba0dVolker Waurichfix for when in algorithms
62633fb168Adrian PopNF: implement partial support for unqualified imports
d981c30a43Lennart OchelNew feature: detect steady state
4c362d1ecfPer ÖstlundImproved function handling in NFInst.
2a857f12d2Lennart OchelAdd more functionality for constant evaluation
9f923be66eLennart OchelNew module to simplify expressions
8777f9a1d8Adeel Asgharticket:3680 & 4296 Look for connect equation within for loop equation. Moved getNthConnection to ModelicaBuiltin.mo.
8f1fd569f1Willi Braunupdate module sortEqnsandVars
4f66de934bptaeuberOnly reassign start value if it has been overwritten
ae9b4cff08Adeel AsgharSet a default value.
2d2b491c96Adeel Asgharticket:4295 checkBox instead of checkbox. Also consider __Dymola_checkBox.
43c6d443d1Martin SjölundAdd a few stackoverflow checks to the backend
f79568b893Adeel AsgharFixed arrays for OMEdit logs.
94c1c9be9aAdeel AsgharFixed typename & strings for OMEdit logs
d130cee20aqichenghuaFixed issue with finding KLU library
9d93410e0aNiklas Worschechfix in Kinsol of cpp runtime for sundials 2.7
c4ab684281Adrian Popfixes for ticket:4276 - allow write to parameter(fixed=false) in initial algorithm
f4e679c968wibraunadded jacobian timings to linear and non-linear solver
0db7959d4awibraunadd jacobian timings to LOG_STATS
afb17e2554Niklas Worschechfix for visual studio 2015
c4d4d2e7cbNiklas Worschechbuild suitesparse for visual studio with cpp runtime build
e76f5774ccptaeuberDo not create a new cse variable for record=call
b1a493aa8cAdrian Popfix ticket:4292, handle DAE.REDUCTION also
64ce9d9114Per ÖstlundPartial implementation of functions for NFInst.
7cf48f8921Adeel Asgharticket:4287 Look for choices checkbox annotation.
b0ebfd44fbLennart OchelFix output type of simulate
7a0af38100hkielfix output type of sortStrings remove unused variable
57b34d5781hkielfix uninitialized variables
7172627043Adrian Popfix for ticket:4258 - create more unique scopes when there are redeclares for derived classes
a5c5270bc6Rüdiger FrankeFix use of new LinearSolver for FMI export
d30bd1ea53Rüdiger FrankeFix scaling of Jacobian of new LinearSolver
5570fe32c2Rüdiger FrankeEnhance logging of new LinearSolver (cf. logging of former Newton)
490c35c72aRüdiger FrankeFix whitespaces for new Cpp LinearSolver
0f722ad172qichenghuafixed issue that occured if evaluating the algloop at the initial guess throws a division by zero error and added homotopy solver
4ad960fa96Per ÖstlundError message pedantry.
1096f0547bAdeel AsgharFixed compilation of runtime.
6e54ca1b92Lennart OchelReplace alias variables within external objects
4b89b3ce63Lennart OchelSupport external object constructors depend on variables
5aeafb19b2Martin SjölundRefactor the File module
a06724a4bcMartin SjölundOnly find files in the current directory
f0ca662d12Martin SjölundFrontend: Do not evaluate external object inputs
40f70ce8abPer ÖstlundFix extends modifier issue in NFInst.
057661f71dAdrian 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
314ff91ae3Bernhard ThieleAdded FIXME comment for a state reset issue
7961f859eeadrpofix ModelicaBuiltin.mo interface until fixes to ticket:3539 are ready
a6f54ce7adBernhard ThieleState machine bug fix for state reset
3532cb45a7Per ÖstlundNFInst improvements.
fc47277a0eLennart OchelAdd support for firstTick to c runtime
e4071b5c27Martin SjölundMake getClassnamesInElts not stack overflow
4af9b08e41Mahder GebremedhinNFFrontEnd improvments
63678038e3Lennart OchelDon't apply removeSimpleEquations to clocked partitions
fdacb6b387Martin SjölundSort the FindFiles.log in a nicer way
f22b02c188Martin SjölundFor icons, if failing, partially evaluate the icon
54840e06a4Martin SjölundHandle comparison of empty expressions
03dd6d2c89Martin SjölundFix uninitialized variable in Lookup
fec4a09a36Martin SjölundWhen in graphics expression mode, allow failures
edd4913939Martin SjölundHandle limit on shell expansion
db6f0524aeAdrian PopNF better class extends: replace base class
33e26aac8cLennart OchelMake translateModelXML return the name of the xml file
55eb281c5cLennart OchelMake translateModelFMU return the name of the FMU
3ab01a4493Martin SjölundFix equation indexes for clocked equations
f06f9c6c51Martin SjölundFix array indexing check
2a86f292efAdrian Popcheck array length before trying indexing
ed7a5af4caMartin SjölundRemove some error-messages when viewing icons
e53eddf429Martin SjölundCreate array of correct size
c77eae8d22Martin SjölundImplement more operators in ModelicaBuiltin.mo
06e3ebd858Martin SjölundAdd an internal flag for graphics mode
fd915469a1Martin SjölundDo not ignore errors in icons
3f636cdbf8Per ÖstlundChange getCommandLineOptions failure mode.
57cdce5719Martin SjölundIgnore illegal inputs to records (for icons)
17cecc36cfPer ÖstlundChange getCommandLineOptions to return an array.
674967bcafMartin SjölundChanges to ModelicaBuiltin
e4c31ead3aptaeuberSet fixed attribute in globalKnownVars for ...
d9d4df52a1Adrian Popfixes for ticket:4248 - properly revert flag Flags.CHECK_MODEL to the previous state
ccdf5e9243Per ÖstlundAdded new API call getCommandLineOptions.
ba8f12ebe7Martin SjölundHandle double matrix when strings are expected
d2bbe7a2c0Willi Braunfix return value solver step(ticket:4257)
582c1ef9c8Martin SjölundReturn the strdup result
f688b5d83bAdrian Popadd a pointer to the class in the NFExpression.CALL
b1b90d8e97Martin SjölundCreate arrays of strings correctly in C89
a36d08f4f2qichenghuaadded scaling and adapted tolerance in case of failure for nonlinear solver Nox
cafab4319eWilli Braunfix initial guess of irksco on first step
79d3e32548Adrian 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
8ce7212e96Adrian 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
0ebf1ec80dkbalzereitadded new solver irksco
0dbd1e9718kbalzereitadded improved symbolical inline solver
69c53b3e1aWilli Braunadd -impRKLS flag with current iterative solving strategy
c55d31017eRüdiger FrankeFurther append underscores to Modelica names
815cea322fLennart OchelRemove some dummy strings
257ddee167Lennart OchelFix solver descriptions (#1446)
c0c96357afWilli Braunticket:4246 reorder solver flags and reword solver description
b609f85e0fPer ÖstlundNFInst prefixing improvements.
9c988b682eWilli Braunintegrate implicit runge-kutta and lobatto
0014f95a10Willi Braunticket:4237 fix partition index in jacobians
4ffbdb438aPer ÖstlundFix NFInst lookup of inherited names.
ff80ea0f5dLennart OchelDon't apply removeSimpleEquations to clocked partitions
5f0ad98415Lennart OchelSplit synchronous features into pre and post phase
2099c8be1cRüdiger FrankeMore append underscores to Modelica names
fd5058e6b4Willi Braunfixing ticket:4237: Support of clockPartitions in jacobians
576ecd35c3Rüdiger FrankeAppend underscore to names in Cpp functions
b1aac58fd8Per ÖstlundNFInst improvements.
b4a66a288bRüdiger FrankeMore add underscore to variable names in Cpp runtime
4d45d7ac94Rüdiger FrankeAdd clockIndex to Jacobians for clocked partitions, ticket:4237
175a65b6f4Adrian 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
fdff91a3cbAdeel AsgharCopy omniORB dlls from the correct target.
610eb709cfAdrian Popfix interactive Corba crash - guard SystemImpl__directoryExists for NULL string - guard CorbaImpl__initialize agains NULL corbaObjectReferenceFilePath
aef3898932Rüdiger FrankeAppend underscore to variable names in Cpp runtime
0b5f0dda24Rüdiger FrankeFix log category of linear solver
be0ab4e03bBernhard ThieleNF partial support for synchronous operators
81844647faWilli Braunimprove and fix several simulation option descriptions
645a6be7fcAdrian 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
0ec2a21375Martin SjölundRan the refactoring script
ef1458eee7Martin SjölundOnly print we remove variables actually removed
86c3226789Lennart OchelCatch inf and nan in divisions
3b40c1c849Martin SjölundRemove unused imports
06fb1c2ed2hkieloptimize tailrecursive into leaner for loop
3c1004b8d2Martin SjölundCache typeviews in Susan
343b868557Rüdiger FrankeAdd solver method ImplicitTrapezoid
a8cd990809Rüdiger FrankeInline integration initializes clocked continuous states
d32ecbb30fRüdiger FrankeDelay derivatives of clocked states for ExplicitEuler
dce7606b15Per ÖstlundInitial enumeration support in NFInst.
49dc8a6c0fMartin SjölundRemove all remaining DAE.TypeSource
1ca1591bb8Martin SjölundRemove TypeSource for T_COMPLEX
94b2cb3e1dLennart OchelAdd all built-in intrinsic operators with function syntax
d82857104cMartin SjölundRemove TypeSource from UT/Code/function pointer
3662000583Martin SjölundRemove TypeSource from functions
376bb8fb93Adrian Popupdates to NFFrontEnd - implement toString for expressions - implement toString for types - add CAST expression - handle Type.FUNCTION better
507cdb3134Per ÖstlundNFInst improvements.
fac34e17fdPer ÖstlundNFInst improvements.
d767990dfcLennart OchelAdd support for constants to expContains
d58aa69963Martin SjölundRemove TypeSource from more types
b444d8e8c1Martin SjölundStrip DAE.TypeSource from some DAE.Type
67c5d45320Lennart OchelFix ticket:4228
399ee4122fMartin SjölundAdd an is_utf8 implementation
b7ec83feccMartin SjölundInclude
1d06167c0dRüdiger FrankeAdd integer() to CommonSubExpression.isSkipCase, ticket:4224
22f0d9b888Rüdiger FrankeSupport linear systems in clocked partitions
15bcdab7e4Lennart OchelDon't return success for unimplemented functions
1f4d4e0f1bLennart OchelImprove logging of homotopy-based initialization
20fbe26b5fPer ÖstlundNFInst changes
c80769b259Lennart OchelFix c runtime command line options (#1383)
4fe59c4ab0Martin SjölundFollow FMI 2.0 schema (no empty output section)
6ed4cfdbdbLennart OchelDon't use default matching arguments within postOptimizeDAE
b894ea2c8fLennart OchelNew index reduction method "none"
0c828c123dLennart OchelFix new runtime flags (#1383)
b0da1de61bWilli Braunfix row jac norm sum
8788348c00Willireset BackendDAE after replace simplifid expressions for lambda=0
0ed97dad84Williadded -nlssMaxDensity and -nlssMinSize simulation flags
e66beaed58Lennart OchelAdd index reduction to optdaedump output
3b5135a9eaLennart OchelSimplify match/matchcontinue pattern
1754fe34e7vwaurichresolveNodes_cutNodes applies DFS
733fc0ad3bMartin SjölundMake linear systems not depend on nonlinear
21f7de22efvwaurichreworked resolveLoops
04cd792774qichenghuafixed issue with c runtime due to usage of compressed sparse column/row matrix format
0625e7242eqichenghuaadded Sparse Solver Klu
6f8bb1496fMartin SjölundFix code generation where `&` is used on an rvalue
d5f9643dc5Martin SjölundReturn error value when FMU compilation fails
a317639ebbptaeuberMinor changes
c1159bc1cavwaurichsmall fix for resolveLoops + error messages
a6ef39968eLennart OchelAvoid nested try/matchcontinue clauses
d82121dbc2Lennart OchelClean up index reduction
ab539288e4vwaurichactivate resolveLoops backend module
6700d3eb83Willi Braunadd jac row sum as debug output
0177dac470Martin SjölundGuard GC initialization
669113dccdPer ÖstlundFix for #3535.
eae1de1990Willi Braunuse sparsePattern.nnz instead of the extended
860bb91842Per ÖstlundPartial fix for bug3535.
2749b17144qichenghuafix ticket:4213, added scaling of linear systems back again
40f96b87aaqichenghuacleaned up LinearSolver and DgesvSolver. Also fixed minor errors.
a558ce28f6qichenghuaRenamed getSystemMatrix, getSystemSparseMatrix and getRHS in ILinearAlgloop.h to getAMatrix, getSparseAMatrix and getb.
a70aefe48dMartin SjölundRemove unused function
23f4cf88c8Willi Braunfix colprts for sparse matrixes: ida and kinsol
ba209b7022Martin SjölundDo not link pthreads statically in ARM FMUs
5e1589ad46Martin SjölundMake ParModelica String variables an error
bbc489cd20Willi Braunfix identity tmp sparse matrix for ida solver
4d49ee5768ptaeuberRemove unused and superfluous BackendDAE.VAR.bindValue
ed61035c7cRüdiger FrankeRemove obsolete separate initialization of external objects
5e4878f6cbRüdiger FrankeInitialize external objects with parameters in Cpp runtime
8899379f76Rüdiger FrankeRevert "[workaround] Disable sorting of external objects for cpp runtime"
9cbbca630cRüdiger FrankeRemove special treatment of string return args, ticket:3446
dba9dd8f5cMartin SjölundAdd SourceInfo to typed modifiers
6730d6f6caPer ÖstlundFix extends handling in NFInst.
1bf65f3a3aLennart Ochel[workaround] Disable sorting of external objects for cpp runtime
cde3ffc4daLennart OchelClean up code generation
df2b1c7b2cLennart OchelInitialize external objects together with parameters
d2c938f97aAdrian Popfix ticket:4209, suppress wrong error messages
1240784e21Adrian Popuse memset instead of non-standard bzero
e3ba94bad6jhagwrapFunctionCalls is activated and add configFlag --wfcAdvanced to skip more than default cases
e7c76f7dd8Rüdiger FrankeIntroduce subactive evaluation mode for clocked equations
d316ab24acRüdiger FrankeAdd synchronous solver method ExplicitEuler, besides ImplicitEuler
c2a8668fa3Rüdiger FrankeGenerate code for algebraic loops in clocked partitions
82570014f5vwaurichdont evaluate functions with multipleDim arrays and Inline=false
bff7053b1aptaeuberAdd warning for parameters with no binding
97e737eda2ptaeuberImprove Dynamic Tearing
56dc448288Martin SjölundAdd some sanity checks for threads
468d99e894Adrian Popfix SystemImpl__directoryExists for Windows, cannot end in (forward) slash
558fab013fMartin Sjölund[Susan] Remove unused imports from generated code
6b8c595556Martin SjölundAdd note about pkg-config
e1918e8196Adrian Popthis is really ridiculous
5042c645fbAdrian Popfix ticket:4125, use mmc_(u|s)int_t instead of long!
3f1dccbac4qichenghuaAdded first version of nonlinear solver Nox. cannot be compilated at the moment, because Trilinos is not part of 3rdParty yet.
ca147d71c2Adrian Pophandle if expressions
8ac8faf6c5Adrian Popmore changes to new frontend - change the scope of the extends modifiers to be able to lookup them - minor typing fixes
5fed053888Adrian 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
778e564d0aAdrian Popuse execstat for new front-end phases
73f37044f4Adrian 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
6757b5356fAdrian Popfix ticket:4190 allow arrays components in when conditions
26d9240a01Adrian Popcreate the directory during docs target
8b0bf11b7bAdrian Poponly display the error when failtrace is activated
21bd84fa55Adrian 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
8b58dcc5a3Adrian Popadd a JSON serializer for any MetaModelica data
823536e494Adrian Popsome updates to OMDev readme
9fabde55bcMartin SjölundCopy entire array when a dimension is unknown
334f2f6227Martin SjölundChange the default of -d=gen to false
298a396604Martin SjölundRefactor SimCode.mo for bootstrapping tarball
7311f9ccc8Martin SjölundDo not allow paths like A..B.C (typo in grammar)
d234d60710Adrian Popfixes for ticket:4183, copy the needed dlls inside FMU
c3e6c1b0eeWilli BraunRevert "generate sparsityPattern for EQUATIONSYSTEM without rewrite equations"
3a09a12c24Martin SjölundAdd newline after annotation in AST dump - list()
d1572e3d0eNiklas Worschechdeactivated sort of jacobian in SimCodeUtil
cab8786aafNiklas 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
d60d7e6595Martin SjölundRemoves tabs, use algorithm section
fdb6f8fcbbhkielfix some warnings
a617ea79c6Per ÖstlundNFInst clean up.
c978947114Willi Braunsuppress debug output of max tearing size
d1d09a165bWilli Braunadded LOG_SOLVER_V
ab3e53f817Willi Braunfix daeMode for records fucntions
b6789acf3eWilli Braunadded debug flag to disable coloring
0f5d188abbWilli Braungenerate sparsityPattern for EQUATIONSYSTEM without rewrite equations
648ebcb207Adeel Asgharticket:4175 Remove the unexpected integer formatter.
cc7fdac270Martin SjölundUse CXXFLAGS instead of CFLAGS
9fcae81e34Martin SjölundAdd OMCompiler prefix if there is no REVISION file
68920ea8ebAdrian Popupdate the buildings2csv script
8c0a156152Per ÖstlundNFInst improvements.
926c35e44cAdrian Popupdate common
9ba9c3d97cAdrian 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
051f9ea231Martin SjölundHandle race condition in launchParallelTasks
4041222e85Martin SjölundUpdate CXXFLAGS in a better way
e2c90aecd8Martin SjölundFixes from static error checker
4fc6fb7d71Adrian Popminor performance enhancement for OMC API
7e9c752ce2Willi Braunfix printSparseStructure
a5282288afWilli Braunimprove debug prints for daeMode
0ab52c8971Peter FritzsonCompleted support for checking Unary operators in checkUnaryOperation.
67fd997553Peter FritzsonNF typing and typechecking of unary operators
f25b1b5980Adrian Popattempt to make the windows compilation more robust
2395ff7ffbAdrian Popfix annex conversion script
a7e1b49fbdMahder GebremedhinTyping updates for new Front-end
0d56452a06Willi Braunfix printSpasityPattern for daeMode
3f5a3c0eddMartin SjölundRemove sundials on make clean
0514fbef76Adrian Poptry to run mkbuilddirs before anything else
f5162837d9Adrian Popimprovements to function handling - handle some of the builtin functions - handle named arguments - check argument type, variability, etc
c7e8c027fcMartin SjölundDo not fail for a warning
de28a2253fMartin SjölundPerform type-checking on when conditions
4a4bd52ca0Adrian Poppartial support for handling functions
da294f8106Per ÖstlundNFInst improvements.
974e2ad5bbAdrian Popdocs depends on mkbuilddirs
6c8d8e35dcAdrian Pop-use $MAKE instead of make
8c4133092eLennart OchelFix dummy attributes
9b4c1fe108Lennart OchelFix dummy real attributes
9da1640afePer ÖstlundAdded new flag condenseArrays
bfd4680035arun3688FrontEnd unitchecking
f170480811Per ÖstlundFix compilation without sundials/kinsol support.
5b7362b4c2Adrian Popadd all Codegen*.mo to .gitignore
debe19c08bMartin SjölundInitial commit for embedded C code generator
8dcb4435dfMartin SjölundUse AvlSetInt instead of lists for inc. matrix
dc675db2f1Willi Braunticket:4159 fix some flag descriptions
fdfc4244b0Lena Buffonisupport for verification scenario generation from requirement models
f727803aa1Martin SjölundPatch bootstrapping tarball
561c2f95c3Adeel Asgharticket:4152 Added includeConstants argument to getClassNames API. If true then the API will also return the constants of the class along with classes.
1df8a4a522Willi Braunadded kinsol/klu solver support with sparsity
ff3d39d281Willi Braungenerate always SparsePattern for non-linear algebraic loops
af8cd3e3f6Martin Sjölundv1.12 development
ecceebd66dadrpomake sure we don't have a old version number when no git present
2ccad20e28Per ÖstlundFix lookup of qualified crefs in nfinst.
e1efb57dc1adrpoisXMLTCP is defined only if NO_INTERACTIVE_DEPENDENCY is undefined
3ee365e698Niklas Worschechuse boost 1.59 if Visual Studio 2013 is used
daab8bb4b0Martin SjölundAllow multiple class annotations in diff algorithm
b0c9b43750Rüdiger FrankeAdapt log levels to OMEdit, ticket:4048
ce441e184chudsonMerge remote-tracking branch 'origin/master' into pullrequest
407fc9c9b8Adrian Poplink generated executable with with wsock32 and ws2_32
a8258d47b3Martin SjölundFMUs cannot set logFormat
8dec8301dcAdeel AsgharUse str to clear the stream instead of clear. Make sure we count the opening of tags.
cfb2366b50Martin SjölundAdd logFormat=xmltcp
e02bbf266fRüdiger FrankeImplement logging of simulation status
ad7adca9d9Rüdiger FrankeUnify treatment of Logger instance
d9f30dc8beRüdiger FrankeImplement logging of simulation status
01ca4a37e7Rüdiger FrankeUnify treatment of Logger instance
6b059e07eaadrpofix windows builds add libs wsock32 ws2_32
3a460b5f00Rüdiger FrankeAdd xmltcp logger to Cpp runtime, ticket:4048
712e12e558Willi Braunadd try-catch execption if initialSolverData fails
0c85d9a679Willi Braunadd exception for ida solver if no sparsity available
95e5e65f3dWilli Braunimprove symbolic jacobian generation
e4cfc38aa7Per ÖstlundNew instantiation improvements.
d7fc7be80cPer ÖstlundGenerate less empty structures in absyn2SCode.
60beb68eceMahder GebremedhinType checking updates for the new fron-end
b781dc9d5bAdeel AsgharAdd 32/64 bit version.
bd46362ef9Per ÖstlundFix the check for final modification.
dc38639c44Per ÖstlundBetter error for duplicate mods in new inst.
2c7afbd075vwaurichfix signalArrows in visualization
e68f0a0edbPer ÖstlundNew instantiation improvements.
592cec8b7bvwaurichdont evaluate functions with unknown type on lhs
e11567af82ptaeuberFix vararrayList
63b77e7310vwaurichdont add A-Vars of statesets to BackendDAE
555ce77f04Martin SjölundMake test utils able to clean more generated files
a343431667Adrian Popsome fixes to modelDescription.xml import
fdec2bcb94Willi Braunimprove sparsePattern dump
797a4ef71calash325Better naming for imported modelDescription XML
33b3b8e0faAdeel Asgharticket:4144 Use anyString to print the Integer values.
901d152b73ptaeuberUse qualified component names in hideResult attribute
350333d627Per ÖstlundNFInst fixes.
adf0f0d498Per ÖstlundFix broken stuff from previous new inst change.
a4e7088519Rüdiger FrankeCorrect logging for FMUs and IDA
b6a7a6d692Rüdiger FrankeLog errors during initialization and asserts
f2e948cbedRüdiger FrankeGive log categories full names
c26746fb49Rüdiger FrankeAdd debug log for event conditions
a556edebe9Rüdiger FrankeConnect Cpp Logger to FMI2 callback function
edbd85c1a7Rüdiger FrankeLet Newton not scale Jacobian columns
47e18462faRüdiger FrankeSuppress duplicate error message if simulation fails
066543650fRüdiger FrankeAlways do at least one Newton step
ba319245d5Adeel Asgharticket:4132 Added pathStripSamePrefix function for addComponent API. Makes the path relative to class.
7f31e3155cRüdiger FrankeLet Newton scale Jacobians of linear systems as well
863c7b71a4Rüdiger FrankeLet Newton solver catch errors from analytic Jacobian
3821a19a84Rüdiger FrankeReduce code nesting in Newton solver
7d6aaa01ccRüdiger FrankeScale Newton solver with nominal values
450b5bea1cRüdiger FrankeIncrease accuracy of Newton solver
f4d1b5a5a6Rüdiger FrankeReactivate analytic Jacobian for Newton solver
54ab0e4ed3Martin SjölundDo not crash when reading a parameter
40b6e79b5bRüdiger FrankeActivate Kinsol overflow test to avoid endless iterations
1b514e3f3cMartin SjölundSimplify counting number of real variables
d487be4fdbptaeuberAlso simplify DAE.NOT() wout type
a50dbe10e5Martin SjölundUpdates to source-code FMUs
efd9b1f671Rüdiger FrankeCheck for FMUType, ticket:4130
844621f31bRüdiger FrankeMake internal copy of instance name, ticket:4130
d1a64527d1Martin SjölundHandle the type specifier being lost in the diff
91a2bb438cptaeuberAdd spline interpolation also to ModelicaTables
9c32ee8c0cMartin SjölundHandle whitespace in single tree diffs better
39d920f4acvwaurichset hideResult to false for visualization vars
e0cca96a48Martin SjölundHandle multiple connection points being changed
736a94383aRüdiger FrankeRemove obsolete function
49cb49cbeeLennart OchelSimplify some auxiliary function implementations
f44f9c5092Rüdiger FrankeSmall optimization to RefArray code generation
1ee8c832b9Rüdiger FrankeRewrite SimCodeUtil.getUnrolledArrayIndex in procedural style
e657602228Rüdiger FrankeUnifiy storage order of RefArray, ticket:4093, ticket:4072
7359ea2c9aNiklas WorschechFix for division during internalization in cpp runtime
96f16777fbNiklas Worschechadded Modelica Randaom to cpp runtime build
95bc48164dLennart OchelOnly mark states as changeable if the start attribute is constant
db9157bbc1Martin SjölundHandle comments moving around
93bd45ea55Mahder Gebremedhin- Escape quoted idents in aliases in _init.xml
98461c47a9vwaurichfix FMU string-type start attributes
a3b03f07d4Rüdiger FrankeComplete fix for 3dim RefArray, ticket:4093
73f7fca979Rüdiger FrankeAdd error if daeExpCall finds no match
3cd68ac53dWilli Braunmove findZeroCrossings to a postOptModule
1081354d0ePer ÖstlundRedesigned NFInst to eliminate InstanceTree.
bc49d1dcb5vwaurichadd warning for external alias
1731292fc2vwaurichadded case in external alias detection
0c7a532a0cAdrian Popfix ticket:4124
786193c160Willi Braunimprove dynamic state selection
70c742284fptaeuberReplace evaluated parameters in hideResult
8747e2fe2bLennart OchelRemove superfluous whitespace from generated xml file
ea606a1b8avwaurichfix 3dim array for cpp
f2641d78a3Lennart OchelRemove attribute useStart from model_init.xml
369fd73a59Rüdiger FrankeExploit structured logging for Newton solver
a94610ae08Rüdiger FrankeExploit structured logging for LOG_INIT and LOG_STATS
7c61be0ea8Rüdiger FrankeUnify command line names of log settings
f001583812Rüdiger FrankeImplement XML logger for Cpp runtime in OMEdit
1e16904871Rüdiger FrankeOnly initialize variabes with start value from init.xml
c60d86d4feRüdiger FrankeAdditionally check for array element, ticket:4093
4a3540b4daRüdiger FrankeSIMVAR's numArrayElement is not sufficient, ticket:4093
c655395efaRüdiger FrankeRobustify elabBuiltinDynamicSelect, ticket:3675
76cba8f169Rüdiger FrankeFix cpp codegen for array assignment in when, ticket:4093
3840dead79Rüdiger FrankeEnhance elabBuiltinDynamicSelect for visible, ticket:3675
024573ebc6Willi Braunadd further deltaX option for the solvers
5c6c19f25fWilli BraunRevert "add xml root element for logFormat=xml"
183b510d5avwaurichRemove tab from visualxml tpl
82c4ecda81vwaurichTake an arbitrary alias for externalObjects if unsure
745621ea70vwaurichFix visXMl for file-shapeTypes since new parameter stuff made things different
c98026b271Willi Braunadd xml root element for logFormat=xml
c237c18825vwaurichalways expand records when counting algos
ae27c2b0f3vwaurichDont expand algorithm when counting the size after removeSimpleEquations
7def99eacbRüdiger FrankeEnhance elabBuiltinDynamicSelect for texts, ticket:3675
6345c52cb6Rüdiger FrankeOverride protected with HideResult annotation, ticket:4089
1580918657vwaurichfix cpp codegen for tuple assignments in whenOperators
3fd4d4ffd1Lennart OchelFix generation of parameter equations
c8df1c5481Lennart OchelRevert "rewrite simplifyComplexFunction"
8feaea880cLennart OchelRevert "fixed PR 1148"
2722e764c9Lennart OchelRevert "improved array dump"
b2f7540d32Lennart OchelRevert "workaround for array=f()"
5515de8b02Martin SjölundAdd support for clang (3.7+) OpenMP
295a040751Rüdiger FrankeRead all values from init.xml, ticket:4089
c58bee3b9bRüdiger FrankeEmit protected variables with HideResult=false, ticket:4089
6d02154ba4Rüdiger FrankeAccept -alarm and -abortSlowSimulation for nightly tests
599e0f68dbRüdiger FrankeFilter protected and hidden in Cpp runtime, ticket:4089
32dfa07c22Rüdiger FrankeReplace tabs with spaces in XmlPropertyReader, ticket:4089
f992d19981Willi Braunlet linearize also run in numerical mode
3775ade2f9vwaurichsmall cleanup
60e12868e4vwaurichfunction to get linker library paths with extra case for Winmm
bef320ce3dRüdiger FrankeThe 1 matters (see Filter parameter results)
cbb742b519Rüdiger FrankeFilter parameter results, ticket:3925, ticket:4029
1692f27c86vwaurichBackendDAE.ASSIGN can hold tuples on lhs
dd59e54047Rüdiger FrankeOnly filter public variables with HideResult, ticket:4089
77bf4cba2aRüdiger FrankeHideResult defaults to protected, ticket:4089
339c749384vrugeworkaround for array=f()
c3733b3633vrugeimproved array dump
893adb73f1vrugefixed PR 1148
1a1a32a858Martin SjölundFix order of clocked equations
f9018bb81aNiklas Worschechfix in cpp runtime for msvc 2013
68f9aae481vrugerewrite simplifyComplexFunction
d75f648c03ptaeuberCorrect handling of parameters
c2ed655aacMartin SjölundChanges to FMI autoconf, more debugging messages
53b732f53dRüdiger FrankeConvertUnits, ticket:4081
5d9af8447cWilli Braunadd deltaX flag and pass it to the linearization
620a9dfb7fWilli Braunreview lineraize code
b304032e78Martin SjölundProduce error-messages when linearize fails
92846a43a6vwaurichremove unused function
f97e445378Martin SjölundAvlSet instead of HashSet for structural params
1ccc53d70fvwaurichuse CevalScript.getFullPathFromUri to get animation file paths
f45d03b38evwaurichget absolute paths of resource files which are used for animation
88b6260b5aMartin SjölundStructural parameters as HashSet instead of Table
eae52ab312Rüdiger FrankeRemove Cpp code generation for initialization of alias vars
d7838200a0Rüdiger FrankeAdapt Cpp code to increased use of calculatedParameter, ticket:4027
55548c1864Per ÖstlundImproved prefixing in NFInst.
7efbde0d47Martin SjölundOnly run SMFlatten if the model uses SMs
c9f67a8208Martin SjölundTabs to spaces
c8b206d6f5Rüdiger FrankeCorrect numbers of variables, ticket:4072
8b1f74ec98Rüdiger FrankeFix multi-dimensional arrays in Cpp init.xml, ticket:4072
db80ad11b4Rüdiger FrankePartly revert "Move adding of tempVars into model info"
30c4b4cd22hudsonUpdating 3rdParty
9447a8c56bAdrian 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
4f6ee12c77Rüdiger FrankeFix array storage order in FMI export, ticket:4072
d314f5cd71Niklas Worschechadded ModelicaIO and zlib to cpp runtime build
892dc5ad91Rüdiger FrankeMark inputs changeable
d95bf9970ePer ÖstlundDon't dump the flat model in silent mode.
bdb177c3f7Adeel AsgharAdded new API getComponentModifierValues. Returns the submodifiers. Moved getComponentModifierValue to ModelicaBuiltin.mo
69d8e82a61Martin SjölundStart splitting large C-files into smaller ones
043a7563c6Per ÖstlundFix for a few compiler warnings.
b11d246c9aMartin SjölundLink with expat when not bootstrapping
1a5a648effPer ÖstlundQuick hack to fix some NFInst issues.
6324199e58Martin SjölundLink against fewer libraries when bootstrapping
cba2c4a0d7Rüdiger FrankeAdd attributes to init.xml file of Cpp runtime, ticket:4069
2f98348cf3Willi Braunadd functionAlgebraic to callStatistics
e502e33581ptaeuberAlso dump iteration variable names in tearing dump
0c4be26f51Martin SjölundHPCOM is not needed for bootstrapping
e2728465b6Martin SjölundDo not link expat with omc
e52e2f9880Rüdiger FrankeFix use of scale factor in unit conversion, ticket:4031
5609fed3a8Rüdiger FrankeAdd support for Imperial units, ticket:4031
038e71cb48Rüdiger FrankeAdd missing derived units, ticket:4031
561b967669Rüdiger FrankeRemove derived units with standard prefixed, ticket:4031
0901cc3c6dRüdiger FrankeAdd derived unit deg
b5b49b0f3aptaeuberUse Ceval.ceval to evaluate ...
0382fe813avwaurichbetter external object detection
0cba0030beAdeel Asgharticket:4031 Added kV & mV derived units.
9e417e1380vwaurichexternal alias handling
a4f724f741Martin SjölundSimpler check if running the testsuite
c5383bb889Lennart OchelFix wrong escape sequence
bb86695f0aadrpofix for ticket:4062 - put external objects inside the connection sets
0e6d68f921Willi Braunnonlinear homotopy solver with lapack
08ea75e3bevwaurichreplace parameters in external objects, extend simCodeDebugDump
db1919123avwaurichdo not link some external library resources (user32, pthread, X11)
c687a7749aptaeuberFix BackendVarTransform.replaceExp
a6e40958b0Per ÖstlundNew instantiation update.
ea2bf103e0adrpofix windows build
f03616c74avrugeloop -> memcpy
aaeec2c4advrugeadded explicit rungekutta with step size control of order 4
6759feda5ealash325- added wrongly deleted line
f9cfd80774alash325Added importFMUModelDescription API
64c43c258cvwaurichadd error if file name is too long
27e2783124Lennart OchelCatch unbalanced models
895a1e1273Willi Brauntry to fix ticket:3999
aadd604bfeLennart OchelHighlight that the unit checking module is still experimental
e4eee95ef0Lennart OchelFix unit checking for products
99952ed7dfptaeuberGenerate smaller initialization tearing sets
61f5e03571Lennart OchelDo not use + for OM flags
b8604ac365ptaeuberFix marking structural parameters final
4f0d761063adrpofix for ticket:3979
f0f37a3476Adeel AsgharAdded zero as default timePoint.
7c98eac543Adeel AsgharUpdated the initialization warning text. Also marked it for translation.
25249c864eLennart OchelFix initialization problems containing
4434dd5c86ptaeuberProvide information about which solver is used
372119f675Lennart OchelFix typo in documentation of isExperiment(..)
83c6631681Lennart OchelAdd available options of runtime flag -iim
9945189fd8Lennart OchelRemove obsolete flag from description
6d333d424bLennart OchelRemove useless condition
5ac7218992ptaeuberSome code optimizations in Tearing.mo
3423a6ece1Martin SjölundDetect tuples used as expressions
863a98b951vwaurich- fix visualization attribute extra
55589c8feavwaurich- generate visual.xml with +d=visxml only
9f51354a36Willi Braunfix dae residual varKind for code generation
5d7be40ecfvwaurich- get source info for Flags.VISUAL_XML
8c6ebff922Adeel AsgharBetter implementation for add/update/delete transition APIs.
a543be3df7Rüdiger FrankeAdd new function signatures to ArrayOperations.h
7ce61b8974Rüdiger FrankeImplement DIV_ARR and ADD_ARRAY_SCALAR in Cpp runtime
0b58b42180Adeel AsgharAdded updateTransition API.
ed06e0510cAdeel AsgharFixed implementation of addTransition and deleteTransition.
5435748106Adeel AsgharAdded deleteTransition API.
dbbcff9b30Per ÖstlundFix for ticket:4028.
0735a9d839Adeel AsgharAdded new API addTransition.
974a19ccd6vwaurich- compute timeevents for tEnd
fcc0b47dcbvwaurich- deactivate analytic jac for nls in cpp Newton solver
a1fe865038vwaurich- cpp synchronous implementation back to time events
cd3785d41bptaeuberSome minor SimCode Optimization
338dd80e01ptaeuberPrefer iteration variables with start value
779a2068a2ptaeuberFix Dynamic Tearing for initialization
bcf29cceafptaeuberAllow Dynamic Tearing for initialization
5fed8c18c2ptaeuberImprove userDefinedTearing
db1de5b4a1Niklas Worschechfix for hpcom
4deb51bc04Niklas Worschechintegrated DAE mode in cpp runtime
d0a57cdf36vwaurich- fix booleanclock handling, use subpartidx for clockinit
4ec62d0f20vwaurich- fix for hpcom
8c6cf45131vwaurich- remove debug output
aeb57109d3vwaurich- fix partlintorn system
41f85a50b0vwaurichReactivated reverted clock adaptions
5a18bd5df0vrugefixed set subscripts in inline:
c5749a6695vrugerecursion -> loop
2d4224045avrugeadded new modul
b7af71c577vrugeimproved modul order
145cac2487vwaurich- copy missing dlls in omdev_extra_dlls to fix FMUs
75fffde41cMartin SjölundHandle default external calls with array arguments
c709213eb7Martin SjölundOnly store direction of external variables
e9986145efMartin SjölundGenerate unique UUID if libuuid is present
a4c1eab6d1Martin SjölundsetDocumentationAnnotation now escapes strings
96951b49e8Martin SjölundUse an AVL Tree to make adding new ZCs faster
4877c8d298Martin SjölundAdd Expression.compare for sorting expressions
295b0a4c62ptaeuberAdd flag to control function-binding evaluation
06257ffc9dMartin SjölundAdd built-in function valueCompare
6cead398ddptaeuberAdd missing else
2216479937Lennart OchelHandle error stage ERROR_EVENTHANDLING
96282dd9d8ptaeuberSome optimizations to evaluateFunctions_updateStatement
2d38e9a690Martin SjölundEncapsulate the ZeroCrossings set type
9d126613e1Adeel AsgharAdded getTransitions API.
a968496d09Martin SjölundDo not pass around numRelations
68b6340964Martin SjölundMerge only 0 or 1 zero-crossings
a25dc00fbfDietmar WinklerAvoid characters in file names that are illegal in Windows
1cb219fc4bMartin SjölundUse DoubleEndedList for zero-crossings internally
c06dade981Martin SjölundFix type variables of metarecords
51623041a5Adeel AsgharRead the __Dymola_state annotation.
52f0eb751fMartin SjölundImproved performance of SimCode zero-crossings
fde847bd88hkielsome 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
6f92e41fe3ptaeuberMinor changes to EvaluateParameter
1a9bdf2640Willi Braunadded DAE_RESIDUAL_VAR as varKind
1127a0fb29Willi Braunadded ida-solver stopTime ticket:3991
5f3633932bWilli Braunmake array variable for DAEres in DAEmode
f60e155b72Martin SjölundFix equation system partitioning performance
1464a0db7ahkielsome minor list optimizations
3405204531Martin SjölundFindZeroCrossings - avoid bad listAppend
590fe402cdMartin SjölundUse DoubleEndedList for FindZeroCrossings
63127526f4Martin SjölundAvoid matchcontinue in FindZeroCrossings
112b0bc99aMartin SjölundRemove matchcontinue from FindZeroCrossings
76f47caa07Martin SjölundAvoid matchcontinue in FindZeroCrossings
185f006e9cMartin SjölundAvoid matchcontinue in FindZeroCrossings
3d60086889Williadd further daeMode option
f2eb970b1dWilli Braundo not use extrapolation for to big steps
9206950250Martin SjölundChange order in mergeZeroCrossings
4638cca5edLennart OchelNew debug flag "partitionInitialization"
dec4b30d84hkielsome minor optimizations
3fd8767028Willi Braunfix typos ticket:3983
48f93f0e2bhkielsome minor optimizations to Backend
c6520af83eAdeel AsgharMeasure the correct time of API calls.
5725c2bb51adrpofix ticket:3980
3e83c1818bWilli Braunfix ticket:3983
7b072a7407hkieluse list comprehension
c84c17910bhkielslightly improve performance of getComponentAnnotations() ticket:3679 do better scanning through lists
638acf9224Lennart OchelDon't evaluate alg. loops once before start of simulation
c1cac0c13dAdrian Popfix ticket:3973
96924a5d06Lennart OchelAdd missing TRACE_POP statement
6cb06d842fLennart OchelMinor optimizations to EvaluateParameter.mo
8ab6b8a409Lennart OchelRemove superfluous variables
cbd9cd37f3Willi Braunadd noEqudistant step flags for ida solver
cf561f73ecWilli Braunfix event handling of ida solver
c268564be0Willi Braunfix debug trace
8257389db8hkielGC.free() some temporary arrays
2ce167a64badrposmall 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
499d340a3aRüdiger FrankeSupport startInterval of event clocks, ticket:3272
a5b5466a57hudsonUpdating 3rdParty
be46866e06hudsonUpdating 3rdParty
99ef1e340ahudsonMerge branch 'master' of https://openmodelica.org/git-readonly/OMCompiler
3fe711d404hudsonUpdating 3rdParty
60b9239cceRüdiger FrankeRemove optional argument from interval() and firstTick()
2a93be5944Rüdiger FrankeRemove fixed start values for discrete states (MCP-0024)
4cd90269f4Rüdiger FrankeImplement firstTick operator (MCP-0024)
70198be034hkielfix some warnings from static code analysis
96ee4981c4Willi Braunadded more solving options from ida as sim flags
84d574197eWilli Braunadded flag to suppress algebraic vars from error test (daeMode)
e740f2d701Willi Braunadd relative tolerance to alg variables in daeMode
a25d3fd79aNiklas WorschechRevert "fix for clock ticks at end time in cpp runtime"
df84bca0baadrpofix ticket:3974
913b58d463Niklas WorschechRevert "Adapted clock handling in cpp runtime"
f67918e1e7Niklas Worschechfix for clock ticks at end time in cpp runtime
ddf5050a58Niklas WorschechAdapted clock handling in cpp runtime
3829472a26adrposmall memory optimizations
fcde532ecdWillitry to fix daeMode for complex equations
ce355312b4hkielfix some issues from static code analysis ticket:3954
a38e0f0b43Lennart OchelExtract variables also from clocked partitions
c4ba4ab868Lennart OchelSmall improvements to module wrapFunctionCalls
31aeef3336Lennart OchelSimplify RemoveSimpleEquations.handleSets
532bec8689Henning Kielfix CodegenC for dynamic tearing (#1)
18caa8b2f0Martin SjölundWrite equations directly to file
64d176d1ffLennart OchelMove prototype to _model.h
0e098204eeWilli Braunfix ticket:3913
4936316fc0Martin SjölundRemove some unused function calls
d59e2f8decadrpofix ticket:3960
447096dc7eLennart OchelFix implicit function declaration
8bbb70aeb4Rüdiger FrankeFix discrete state indices for FMI export
eba4654068Lennart OchelNew implementation of module wrapFunctionCalls
0f15242805Lennart OchelImprove ExpandableArray
a1a5408916Martin SjölundRan the refactoring script to remove unused code
7e1286ce17hudsonUpdating 3rdParty
f45c1dd2a0adrpoFixes 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)
f5d4c269d9hkielfix some abnormalities from static code check ticket:3954
bb33335a63Willi Braunimprove some simulation option descriptions
76b1b286aeWilliupdate non-linear system code
8700280888Willigeneralized nonLinearSystemData generation
0a9c9b5024Willi Braungenerealize staticData generation
e9351e0970hkielOS X: run otool on libzlib.dylib
68ed95517cWilli Braunclean up nonlinear systems: remove unsed field
201f9d3503Willi Braunimprove codegeneration for non-linear systems
7fda7d4d22vrugeCosmetic changes for DynOptimization
63527ec433vrugemake create dynamic optimization problem as modul
43294bc3caNiklas Worschechfix in fmu 1.0 export and cpp runtime for ambiguous symbols for shared_ptr
912301a4d9Niklas Worschechfix for algloop variable attributes assignment in cpp Template/CodegenCpp.tpl
7a7247f57fRüdiger FrankeLink Cpp FMUs all static under Windows
4eaf6a37f9adrpoadd needed libs to FMUs on windows, ticket:3946
2dbc14b1eaWilli Braunfix nominal values for daeMode
d08a251086Rüdiger FrankeClean up comments and indentation
8987eb2498Rüdiger FrankeRefine treatment of clocked start values to fix ticket:3770
6a480c870fLennart OchelNew generic type ExpandableArray
e867d82b1eRüdiger FrankeRemove unnecessary Sundials include directories
86e2894c22Rüdiger FrankeMove Sundials paths to Sundials section (ticket:3933)
dd39b9fb59Willi Braunadjust nominal usage in daeMode for alg variables
9e077feb84Willi Braunadd initial step size flag to ida solver
c40d6c471cAdeel Asgharticket:3488 Added ignoreSimulationFlagsAnnotation flag.
0a6dd266ccRüdiger FrankeAttempt to fix ticket:3948 for Windows build
5a887dbe9aNiklas Worschechfix for typo in cmakefile
1dd553e34fNiklas Worschechadded status message for sundials libraries
21c5d5fb12Niklas Worschechfix for #3933
0fe727959avwaurich- functions to debug Index Reduction
24669b25fbadrpofix ticket:3942 - use -std=c++11 for Windows - add -lz -lhdf5 libs to linking, needed for Modelica tables
38e81d67e8ptaeuberAdd flag to emit solver steps to the result file
81b676597bLennart OchelImprove error message
dc14e0f3b5ptaeuberMake total tearing a config flag to specify SCCs
ec6bb2383badrpoticket:3092, activate OMC_NO_GC_MAPPING only on FMI or minimal runtime
c7a21ff6e9adrpomore fixes ticket:3902
1aab55e6d9adrpoomc_ua depends on boehm-gc target, ticket:3902
3f4962fd21adrpoParModelica depends on boehm-gc, ticket:3902
28420a1f62adrposmall changes to the memory allocation interface, ticket:3902
ad52d27809adrpoFix ticket:3941 disable tests Modelica_Synchronous.WorkInProgress.*
944192f391Lennart OchelDon't share memory between different variable arrays
70349b5919ptaeuberMake redundant --disableLinearTearing deprecated
ace8794c30Patrick TäuberPerformance fix of instantiation of syst in loop
b526c9b9d7Rüdiger FrankeRemove wrong error for clocked continuous exps
cde23afcecRüdiger FrankeUse start values at first clock tick (ticket:3770)
9e139b9c29adrpomore fixes to svg generation
28405d807evwaurich- fix order of subpartition clocks
d19242a2e4ptaeuberNew approach to handle known vars
998331701dAdeel AsgharUse 1 for record type.
215f2b4c98Willi Braunhide alias warnings behind AliasDump flag
240213bccdMartin SjölundDo not generate #define for variables
cea271efccWilli Braunremove not used extrapolation code
1d03f63399adrpoadd support for --alarm on command line ticket:3928
5a28893b9aptaeuberDetect JAC_CONSTANT() as linear component
59c64aca0dWilli Braunadd some exeption handling for torn linear systems
087bdd2e31Martin SjölundMake reinit message output a readable cref
05eb8b9a68Martin SjölundFix name of vars in linear model
a3a1e9a933Per ÖstlundRenamed scodeInst debug flag to newInst.
f0a3a7ccdfPer ÖstlundReorganized source files for new instantiation.
cbc956152dPer ÖstlundAdded component attributes to new instantiation.
5184da392ePer ÖstlundNew instantiation improvements.
c3bcdbbf46arun3688ticket:3488 added new API functions for vendorannotation
9e87f6de73Martin SjölundFix SVG generation
887637aca1Martin SjölundPut each library into its own history folder
bf97bdcd17Willifix sparse pattern for daeMode
7ef887367bWilli Braunadjust code generation for daeMode
397dd82360Willi Braunimprove daeMode implementation
30d4a89ca8Williadd sparse pattern for daeMode
eacfc6b20bLennart OchelMove the actual unit parsing to Unit.mo
c7fe6415d1Martin SjölundHandle writing empty files
f47e48bdc6Martin SjölundDo not create HT of size 0
689ff409b4Martin SjölundUse BaseHashTable for the SimCode HT
3e9b0e836fhkieluse less memory when operating on units
17df9f3c37Lennart OchelClean up unit check module
1e5da4b63ePer ÖstlundAdded some proper error messages to NFLookup.
d816a47fd6Per ÖstlundMore new instantiation modifier stuff.
82eeffe300hkielfix BackendDAETransform.eqnAssignmentNonScalar()
9b0163de62Adeel AsgharHandle the integer inside record.
120a9e2bb5adrpoActivate multiple FMU instances per process ticket:3820
ec70f33419hkielfix memory leaks in C runtime
4c94fc01cfhkielfix some issues from static analysis
72f98cf7a9adrpoFixes for ticket:3898 do not output empty InitialUnknowns element
7570c6b94fMartin SjölundDo not use pre-processor for array variables
2aa49359f0Per ÖstlundModifier improvements in new instantiation.
57990bab91Patrick TäuberRename squared 2-norms
737e02469cPatrick TäuberChange input tol of Newton solver to 2-norm
7b5e81b4e5Lennart OchelUse always the unit representation that was defined first
4383a9c117Lennart OchelDon't override empty unit information with dummy value
22d2ccb311Lennart OchelCalculate unit information for state derivatives
7271c6f717Per ÖstlundNFInst improvements.
012b282989adrpofix windows external annotation for omcruntime library
f79cce4379Per ÖstlundImplement derived class modifiers in NFInst.
4a27b09127hkielshorter C code for non-guarded list comprehensions
029864fe41hkielallocate using mmc_alloc_words_atomic where no pointer is stored.
d02a3753efhkielpreserve some more tuples
3507862d0fPer ÖstlundPropagate modifiers for structured components.
f1904b88fdPer ÖstlundClean up some new instantiation modules.
06b1abefc4Martin SjölundDo not use preprocessor to generate sample() code
4e18fb90cfPer ÖstlundReplace old new instantiation with new new instantiation.
58bbbff886Lennart OchelFix LOG_STATS (ticket:3922)
a52420cf9cMartin SjölundSkip calling unnecessary tmpTick
c79b8cac08ptaeuberImprove total tearing algorithm
f098371bcfMartin SjölundDo not use preprocessor for attributes
04496accf9hkielremove function getAliasContinue()
109dc98dc4hkieldo not thread two lists, just to unthread them again
d665b64a49ptaeuberAdd flag to change the tolerances for newton solver
c5b68a9387adrpofix GenerateDoc.mos
f10487d156hkielsome minor optimizations - match -> matchcontinue - simplified some functions
8f16329a07vwaurich- dump a graphic blt-matrix in a html file via +d=bltmatrixdump
f0d46d5647Williseperate coloring from generateSparsePattern
73a73b0236jhagfixed wrapFunctionCalls (see:ticket:3102 ticket:3910)
50dade940aMartin SjölundPrefer omc libs over system libs
016c25e5e5Martin SjölundDo not look for otool lines containing :
0e88db8684hkieluse listEmpty() instead of listLength()==0
c628fac313hkielfix PR #837
67e0588359adrpofix for ticket:3914
ff7351840fMartin SjölundCheck all dylib files for improper linking
542abe9369hkieloptimize List.sort() a bit more
5a7efaddcahudsonUpdating 3rdParty
12b13360eahkielfix ticket:3897 - run install_name_tool on the libraries (also for libsundials_idas.0.dylib)
141d59741dhudsonUpdating 3rdParty
e9739870d5vrugedon't add noEvent twice
60be6c4523vrugematchcontinue -> match
605cd57286vrugefixed inline-anno interpretation
008b751ed8Willi Braunfix modelicaStringToCStr for "'"
e713fe26f6hkielintroduce 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);
389ec43c33hkielfix ticket:3897 - run install_name_tool on the libraries
b3a16671bfMartin SjölundRun install_name_tool on the libraries
e7dc97954fadrpoproperly set FMI_PLATFORM for FMIL library
3ba065e44dWilli Braunadd module to calculate sensivities matrix
ade6473da1Rüdiger FrankeUse old C++ ABI for cross compilation of FMUs
833bce927ehkieltry to fix ticket:3897 and ticket:3900
c9c2dad359Willi Braunfix initialize SolverData control flow
8f3825c5d7hkielavoid List.intRange in conjunction with for loops
f1fc67506cptaeuberfix ticket:3192
17c031c274adrpoupdates to ticket:3857
04080aeb85hkielremove some matchcontinue
7e7eec7addvwaurich- add case in dumpStateorder
9873878ef2Patrick TäuberReset strong component index
9d8edb68e9Willi Braunfix ticket:3846
9c5ab12bedAdeel Asgharticket:3488 Added a flag --ignoreCommandLineOptionsAnnotation
e652a2004cAdeel Asgharbackup the originals flags. Reset the flags after translation.
28c405d4d6Adeel Asgharticket:3488 Read the __OpenModelica_commandLineOptions annotation and apply it.
018590eb35vwaurich- fix dumpComp2 for empty Jac
938a17927bMartin SjölundDo not use cp -u
4d5ce50f11Martin SjölundPass more linker flags to sundials cmake
d1716435f6ptaeuberRename flag advanceTearing in allowImpossibleAssignments
8f28442935Bernhard ThieleDeactivated state machine when-equations hack
bff2761d37adrporevert changes
14328ef6d3ptaeuberImproved user defined tearing
63cb7fe71fWilli Brauntry to fix OSX build
6792db5d88adrpoupdate the OMDev readme
eb0e110057hkielavoid a few more tuples
a11618424dhkielavoid unnecessary tuple creation
b8aed2c07ahkielmisc optimizations use guards avoid memory allocations
86ca95e2f9hkieluse guard to avoid some MMC_THROW_INTERNAL
243042d0d3hkieldo not recreate Option<>
19d7c975f1hkieladd List.mapFold* varaiants with more InOut arguments needed to be able to avoid tuples in some places
09c5a1c615Martin SjölundMake it easier to override FMU CPPFLAGS
83443129b3Adeel AsgharMore updated instructions.
900ac5211eAdeel AsgharFormat instructions.
35aa7d1776Adeel AsgharUpdated install instructions for OMC.
b832f3e50dvwaurich- fix RemoveSimpleEquations, added comments
891e7e11f9ptaeuberIntroduce userDefinedTearing
d0a958974dadrpofix for ticket:3857
0aaf81a7ddNiklas Worschechreverted clock modifications in C template
3a0012b948Niklas Worschechrevertet clock modifications in cpp template, cpp runtime and SimCode
3a80514811vwaurich- shorten Paths CSE-option
7e798ee4deMartin SjölundDo lookup of varInfo directly
8bcbed025fhudsonUpdating 3rdParty
51d6b8e031adrpofix ticket:3892
18dd83044dMartin SjölundCalculate index including offset in SimCode
fdfccbe5e0adrpofix windows build
0306552ce1Lennart OchelDon't copy unit information from state to state derivative
f5b5cee03bjhagfixed ticket:3888
30d6c07933Lennart OchelMake unitChecking the first pre-optimization module again
fe2bb79d00Willi Braunadd more linear solver for ida integrator
4189bbde5cvwaurich- dont interrupt clock-event assignment in cpp runtime
243b35440avwaurich- extended debug dump for synchronous
6ed3a54365vrugeimplementation 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)
5e9854ebcfWilli Braunbuild sundials with klu interface
57cb40521ejhagwrapFunctionCalls is disabled
4931a92a31Martin SjölundRemove tabs, pre-commit removes tabs
31e33d4d32adrpoupdate mingw makefiles so no cygwin like OMDEV path is needed
63a287984cMartin SjölundMove adding of tempVars into model info
72ef546a14hkielsimplified and optimized some functions in Expression.mo amd ExpressionSimplify.mo
58a891528eAdeel Asgharticket:2250 Added time derived units. Fixed a typo.
688abe8c31jhagactivate wrapFunctionCalls by default
109fbac51fMartin SjölundAlso fail when giving bad a lapack config
7c597ec8b2Willi Braunadd daeMode support for ida and dassl solver
b9640d0007Willi Braunadd code generation for DAE mode
75b496ebd8Willi Brauninitial implementation of daeMode integration
6a64b9d57cDietmar WinklerGet rid of deprecation warnings
825af5155fadrpodo not copy the wrong lib over the correct one
af97876e97hudsonUpdating 3rdParty
4d6000161dNiklas WorschechMerge branch 'mychanges' of https://github.com/niklwors/OMCompiler into mychanges
7ee20e6611Niklas Worschechfix for initialize clock conditions in cpp runtime, #3872
e2726c6c7badrpospeedup prefix handling for outer ticket:3817
2acba86dffadrpofix for ticket:3817
982cf94219hkielfix for ticket:3863 avoid stack overflow
993db0829bhudsonMerge remote-tracking branch 'origin/master' into pullrequest
4f37b928f0Niklas WorschechMerge branch 'master' into clocks
fde84cd58bNiklas Worschechmerged submoduls
5dd8d5a441Martin SjölundOutput keys in sorted order
39abc94c3fMartin SjölundAdd LEAF node for AVL trees
bad8c829d1Bernhard ThieleFirst steps towards continuous-time state machines
c57105d470Worschech Niklas (DC/ENE22)fix for event clocks in cpp template
fd06aab7a4Lena Buffonikilled whitespaces
d2d99737a9Lena BuffoniFixed issue with hierarchical class list
8d790c3117Lena BuffoniMerge branch 'master' of https://openmodelica.org/git-readonly/OMCompiler
cc23004038hkielremove warning on OSX
1dc4adc9ceRüdiger FrankeFormatting and compile time static_cast in getAMatrixCode
15ff3002e2Rüdiger FrankeLet Newton solver exploit symbolic Jacobians
6221caea47Martin SjölundFix stack overflow in splitConnectEquationsExpandable
00d2306773Adeel Asgharfix simulation flags format for sphinz.
c350b9bd29Adeel AsgharQt clients and python targets are moved to top level make file
15841df777ptaeuberRemove redundant debug dump
8bd6359d22Lennart OchelDump more information for state sets
981faaad0aLennart OchelFix initialization of dynamic state selection
c6e84de988Martin SjölundFix memory profiler
18210f47c5jhagupdate LOG_DSS dump
c29d454263adrpocopy the libomopcua.dll into the bin folder
3bd7ac2fd6Martin SjölundUse dumpExp instead of printExpStr in templates
f07d8948beptaeuberFix order
4d8f6c5283jensdoFix sleep duration for rt sync on windows
86399e4749Martin SjölundReplace CREF with ComponentPrefix in ElementSource
077a6e61c6Lena Buffonirem whitespaces
459a362635Lena Buffonihierarchy fixed in FigaroExport
30c4dbdfdfLena Buffonirem whitespaces
ee87e1e52dLena Buffonihierarchy fixed in FigaroExport
b3b9299847Martin SjölundFix for PowerSystems
ad78c44188adrpoattempt to fix ticket:3805
aab60103e1Martin SjölundDo not keep --no-undefined during the whole config
90bfcfbd88Martin SjölundNo memory profiling on interface.mo-files
25cc4ea0baMartin SjölundMake special case for BackendVariable.getVarSingle
a4a6b3ad75Martin SjölundConstruct CREF after checking HT is not empty
e44c8ffe2aMartin SjölundMake a special case for derived classes
c932d4e715Martin SjölundLink lpsolve55 in compiler runtime
2e137d9606vrugeBackendDAECreate: removed inline for alg
eb7652c7a2adrpoextend BuildModelRecursive.mos to accept extraSimFlags
7733e05e0fNiklas Worschechfix for dim zerofuncs
d523f13772Martin SjölundDo not compile sim files when bootstrapping
c76b40bae8adrpofix ticket:3783 - add flag keepRedeclares to removeComponentModifiers and removeExtendsModifiers set to false by default
45c0cb2d68Martin SjölundAllow cross-compiling bootstrapping without ipopt
c138b2b2adNiklas WorschechMerge branch 'master' into clocks
e04b3b70dcniklworsMerge pull request #1 from vwaurich/synchronous
d5d018738fMartin SjölundCache operator overloading
f198b827eavrugeRemoveSimpleEquations: remove force inline
836ca3fa9cMartin SjölundUse env.var OPENMODELICAHOME when bootstrapping
e74ce8c4faadrpoFix for ticket:3649 - split the connection set
463ca8e058Martin SjölundHandle fixAlgorithm traversal using referenceEq
f0613dd205Rüdiger FrankeUse default C++ ABI, assuming Boost is doing this as well
fbedcab0b3Martin SjölundUse referenceEq more for InstExtends/Absyn
ccb265a437Martin SjölundMake a more minimal FGraph structure
4dcb44d8acMartin SjölundSpecial cases for lookup/fq idents
6f9e018b13Rüdiger FrankeSmall cleanup to Newton solver (std::copy)
0d4c57c998Rüdiger FrankeEnhance Newton solver with line search
e6905275cdvrugemove inline from BackendCreate to modul (normalInlineFunction) - issues with complex function - remove force inline don't work (e.g. for ThermoPower, Mdedia.TwoPhaseWate)
3b52462defMartin SjölundAvoid printExpStr in SimCode
7ea26e0e65hkielreduce memory usage
9c532799afMartin SjölundDo not use part of list except when debugging
22db45900eMartin SjölundAvoid creating cref to lookup an ident
70dd92aaebMartin SjölundCreate symbolic Jacobian faster
d6544d1e86Martin SjölundMemory optimizations
2aca7e47a6Martin SjölundReduce memory consumption
2ac963a7f0adrpofix windows builds after runtime changes
0c33ef3633Martin SjölundMemory-saving performance changes
7265334849Martin SjölundFix compilation on OSX
9b56b3c36fjensdoFix name of OPC UA aliases, pt 2
222a847639Martin SjölundMake Compiler/runtime shared to avoid C++ issues
d9f7f91e21Martin SjölundAdd support to hot-swap function impl at run-time
5fd8e2394eLennart OchelFix generated code of algorithm when clauses
a2599ba265Martin SjölundFix for relocatable functions
766fa6aed5Martin SjölundUse stat to check existance of file
668e38982bMartin SjölundRelocatable function fix
4ed2f2bda8Martin SjölundRemove some unused external C code
cfcd347bd4Rüdiger FrankeRemove duplicate creation of crefToSimVarHT
bd7263ee91Rüdiger FrankeRemove mixedArrayVars from Cpp code and SimVars
44087ac162Martin SjölundAdd CXXFLAGS to some libraries
b85a431c20Martin SjölundConfigure ANTLR with CXX
829e658c11Lennart OchelUse unique mapping for linearized variable names
48bdc062c0jhagupdate the output of the numerical linearization
08b243e7b7Rüdiger FrankeIntroduce names for states and derivatives
8bf71c6dc8Martin SjölundIncrease the maximum number of threads for codegen
05cfc469d7Rüdiger FrankeDelay construction of external objects
89306dec2dhkielfix coding style else then -> else remove unused variables
a98c322684vwaurich-fix synchronous for variable intervals in cpp-runtime -separate clocked equations
50cddbb45fMartin SjölundRemove some unused buffers
eadffd4e43Martin SjölundSupport for writing Susan text directly to file
9076ed1564Rüdiger FrankeMove ModelicaUtilities.h to main include directory
e7cbe783d5Rüdiger FrankeLink model specific extra libs with msvc as well
12f928e943Rüdiger FrankeDisable default clock for FMI export
8cf1a8fae4Rüdiger FrankeLink Modelica utils and extra libs to Cpp FMUs
58a87b7f29Martin SjölundAvoid buffers when generating constant literals
dd4ad77479Willi Braungeneralize convertResidualsIntoSolvedEquations
7068c81213Niklas Worschechfix for boost includes added 3rdparty/boost for msvc and gcc
08d59fb404Niklas Worschechfix for boost includes added 3rdparty/boost for msvc and gcc
3dc8b59a01hkielremove List.appendNoCopy() and replace calls to it by listAppend()
925566254aPer ÖstlundFix for ticket:3842.
f35a0e242dPer ÖstlundClean up DAEUtil.splitElements.
89c4bb600aJan ŠilarPDEModelica in AbsynDump
82f543fde8Martin SjölundFix name of OPC UA aliases
b550ed1af5Martin SjölundImplement support for relocatable functions
9939891b3eMartin SjölundAlways traverse down non-literal array expressions
7251626eaeMartin SjölundHandle literal array expressions better
661329bf90Martin SjölundTraverse record bindings when traversing functions
62b81fe06eRüdiger FrankeAdd DIM_EXP to code generation for reduction expression
7ce091856dMartin SjölundWrite the rest of init.xml as file
cc7a3c9782Adeel AsgharUse pressure as quantity name
9c0d4845fcMartin SjölundFaster stringAppend of 6 strings
47597700d2Adeel AsgharAdded derived unit bar.
a1c9bae84cMartin SjölundRevert to old InstCache (baf1866)
6517ed8e73Martin SjölundSerialize init.xml directly to file
b623cc22f9Per ÖstlundImprove DAE.traverseDAE*
a17aa0ec92Martin SjölundOnly display RT warnings if RT is enabled
a35737a6c5hkielUse array instead of tuple to count variables
2399ea0938hkielSmall optimisations to SimCodeUtil
82c3f1bbbcRüdiger FrankeForce evaluation of structural solverMethod
81787f3ef8adrpoANSI C needed for stupid compilers
26d5e8fc8dCory RuppMemory leak fixes for sparse solvers. See ticket:3548
588d564e4dRüdiger FrankeAlways link Cpp FMUs with static gcc libs
3344b5241fRüdiger FrankeKeep more call parameters to external objects
271abb1ee3Martin SjölundTry to cache the keys of the InstCache
8dbf39e59bMartin SjölundAvoid some memory allocations
a42d9165d3Martin SjölundTweak inst cache hashing
baf1866fd5Martin SjölundUse a new key for InstCache
e008b58a71Per ÖstlundFix DAEUtil.addDaeFunction.
7007bf4b1dMartin SjölundChange DAE.FunctionTree to the new AvlTree
2b381915adWilli Braunadded runtime ida integrator solver
390188e284Martin SjölundUse referenceEq for more InstExtends traversals
0c3a76eb18Lennart OchelAdd new flag to set maximum number of bisection iterations
3a64133c50Martin SjölundFix some InstExtends referenceEq
ec5320e0e8Martin SjölundWrite common datatypes directly to file
1d08c394e8Rüdiger FrankeKeep multi-dimensional array parameters, ticket:3363
30d85487b8Rüdiger FrankeSmall fix
4832d7a401Rüdiger FrankeAdd default clock period to C runtime, ticket:3752
0182b277efRüdiger FrankeKeep arrays of free parameters, ticket 3363
a204f67dd4Martin SjölundBetter listMaxInt
d341b73bfeRüdiger FrankeLess aggressive fix to ticket:3363
a10e5cd14aMartin SjölundSpecial case for list intersection
e64e95fb2bMartin SjölundRe-enable backendKeepEnv
a7a4dbee41Rüdiger FrankeSupport parametrization of external objects, fixing ticket:3363
3c02320e33Rüdiger FrankeCall destructors of external objects from Cpp runtime
1ba0f8ab12Martin SjölundSend initial env to backend
4dbbfd4e54Rüdiger FrankeMore precise fix to ticket:3752
900bb22898Rüdiger FrankeAdd default clock period to fix ticket:3752
5d188489baMartin SjölundSet -d=nogen in the backend to avoid dynload
85f4a3866dMartin SjölundRefactoring EvaluateParameter
84c62fccceRüdiger FrankeEvaluate structural Clock arguments (fix ticket:3717)
6a704ad0a2Martin SjölundLet execStat keep track of heap free/total size
312e5a4510Martin SjölundAdd debug flag reportSerializedSize
86e3c048ddhkielreduce memory usage
d8837658dbWilli Braunrevert unwanted change to debug flag
12b9c58c79Martin SjölundChanges to ElementSource
25dbe82c64Per ÖstlundFix for ticket:3825.
6e3121a41eRüdiger FrankeSkip min/max for derivatives (work around ticket:3832)
f11f59c201Willi Braunfixing ticket:3786
12997634baMartin SjölundRemove varkind from DAE.RECORD_CONSTRUCTOR
027b44e24cptaeuberAdd compiler flag to skip tearing for specified components
0d11bbe987ptaeuberIntroduce indexing of strong components
fc4de9ec85Martin SjölundTry to free data to collect front-end garbage
fd246e86fdAdeel AsgharSet OMBUILDDIR properly.
1f4723eff7niklworsMerge branch 'master' into clocks
dec85325daMartin SjölundConsume less memory traversing expandDer
ad9aa799a4Martin SjölundGet a better default size for SimCode hashset
98c1ed01c6Per ÖstlundImprove instantiation caching.
b1a1225dc0Rüdiger FrankeImprove stop test and logging of Newton solver
f90b5128d2Martin SjölundFix typo extern extern
b0f6026153Martin SjölundFix problems with errorext bootstrapping linking
2c7da6d0ccMartin SjölundFix bottleneck for create model info
c3cf1e9236Martin SjölundImprove extractVarsFromList
f6051a17f2vwaurich- caching of evaluated functions
058fd5a910Rüdiger FrankeAdd variable attributes to Newton solver
8f17d04ccaMartin SjölundMake error messages consume less memory
17d76a0456hkielFix compilation when not using SUNDIALS
9c5b9e7085Rüdiger FrankeAdd new attributes to IAlgLoop
583180ae42Adeel Asgharcopy PDEModelicaBuiltin.mo to builddir_lib
000a65f4a3Rüdiger FrankeMake more variable attributes available in alg loops
2894deef31Martin SjölundDo not allocate memory to traverse prefix
96898a5de5Willi Braungeneralize and move dasslJacobian flag
e44d63b88bMartin SjölundReplace HT with AvlSet in InstExtends
df3f1c9449Willi Braunextends solver stats for all solver
e8fbdf632cRüdiger FrankeImprove stop and error tests of Newton solver
41d4cef69ahkielavoid copying tuples recursion -> loop (BackendVariable.getVarLst)
7d8f15f2cbptaeuberIntroduce runtime flags for using sparse solvers
fda31e08a6ptaeuberIntroduce flag to skip tearing for huge systems
325d842c0cRüdiger FrankeWhitespaces Newton solver
cf3ceac0a8adrpomake sure we have attribute defined before we use it
1169838503adrpoupdate 3rdParty
fd0af6a15eMartin SjölundAdd Avl sets in addition to trees
be289f9d79adrpofix windows build
86230f2f49Adeel AsgharAvoid some warnings.
17bf815c44Rüdiger FrankeSmall cleanup
9027e889d6hkielavoid intermediate lists instead use: List.fold(List.map()) -> List.applyAndFold() List.map(List.map()) -> List.mapMap() listReverse(List.mapFlat()) -> List.mapFlatReverse()
6a1e39bcdahkielrecursion -> loop
6c0fc0ddadptaeuberAdd missing comma to log-option
b500b8450dPer ÖstlundMove conditional component info to environment.
d89da7c600Martin SjölundKeep track of more memory allocations
8287b0b0ddMartin SjölundDo some cref compare without printing to string
c150310687adrpoupdate 3rdParty in OMCompiler
70d6f0e227Martin SjölundUse OMC allocation in more places over GC
a2943a8ae1Martin SjölundOptimize crefStr slightly
e841e30dceadrponeeded defines for Linux
817c916164adrpofix ifdefs in omc_config.h
5e18b05232adrpoadapt to msys2 mingw32/mingw64 - ticket:2578
b7a25b3f43Martin SjölundUse OMC allocation functions instead of libgc
68465ab6adMartin SjölundFix compilation
536387b30aMartin SjölundProfile memory allocations for strings
4f671af017Martin SjölundDo not use listReverse in append_reverse
b4f223efadMartin SjölundHandle listReverse of 1 element as a special case
18c51d6ec5Martin SjölundMove functions into new package ElementSource
492b0ccbe6Martin SjölundDo not allocate operations if the flag is unset
5f55444080Martin SjölundReduce the maximum codegen threads to 2
0aff3d1e59jhagwrapFunctionCalls: avoid simple equations
7100384febMartin SjölundWorkaround for bugs with hash tables
f49dbc4a84Martin SjölundFix referenceEq for traverseExpBottomUp reduction
cd37dee625Martin SjölundUse a single shared HashTable for Inline.mo
8bddad5579vrugeclean up
a2edcfd4c6vruge- move some variable-function to BackenVariable - function for further development
17340edfafvrugeimproved simplifyComplexFunction
d7ed464b2aMartin SjölundInline: do assertion before memory allocation
d42016bd80vrugeimproved isContinuousIntegration for expressionSolve
a0ee81bcc6Rüdiger FrankeUse VarKind JAC_VAR for Jacobian SimVars
948feba7faRüdiger FrankeIntroduce VarKind SEED_VAR for SimVars
aea896ce34Martin SjölundUse implode_reverse in PrefixUtil
98214dcfe0Martin SjölundUse referenceEq in more places in InstExtends
2ddae71332Martin SjölundEnable code generation in parallel
3ad7933b36vrugeimproved solveSimpleEquation
28678f0680Martin SjölundUse constant lookup for more operators
34d31de30bMartin SjölundUse constant lookup for more operators
e26c7b244cRüdiger FrankeDeactivate optimized matrix assign
718667496eRüdiger FrankeAdd seed variables to SIMVARS
392b6e6476vrugeExpressionSolve: added rule for solve if-expression inside continuous integration
49bc0cb346hkielpreserve some more tuples
22754cb9dbMartin SjölundUse constant lookup for operatorsBinary, etc
18bb4e8a21Martin SjölundDo not generate function code for constants
141c87f0dcPer ÖstlundCleanup ConnectUtil.
5ed2c5ed4bMartin SjölundDetect cardinality being used
c914d20d47Martin SjölundReduce memory used by state machines
d00a5127a7Martin SjölundSome changes for C90
82e78ebd5fMartin SjölundReduce memory allocations for ConnectUtil
13e54206ffMartin SjölundChange to prepend instead of append
e5d70b8c46Martin SjölundRemove redundant size Integer from HashTable
7eb2bd0d2fWilli Braunimprove sortEqnsVars module
1aec67d1dchkielpreserve more tuples
19712133acLennart OchelImprove description of module wrapFunctionCalls
27234f653cadrpo- windows fix for ticket:3809
a78d6b3396vrugeuse System.tmpTickIndex as counter
e0b38d17e5hkielremove tuple decompostion-recomposition
4da6f5b066ptaeuberSolve assigned variables in when-equation in the equation
ae22680580hkielOptimize some operations on lists
971d7f1d94Martin SjölundDo not reset matching on no change
09afcd1400Martin SjölundFix stack overflow in traversal
29cc490f3chkielreplace List.flatten(listReverse(l)) by List.flattenReverse(l)
2eb7120c00Lennart OchelAdd libomopcua.dll to .gitignore file
e57ec5c74ahkielFix SimulationRuntime/c for OSX
8d51784ee2Rüdiger FrankeRevert "Access iterators locally in alg loops as well"
3b38cab643Martin SjölundFix for unassigned variable in function
536d88e046Rüdiger FrankeCreate closure for functions without args
a37f8bace1Rüdiger FrankeAccess iterators locally in alg loops as well
630a9d05d5ptaeuberPrototype for total tearing
7d676ef9fdLennart OchelImprove documentation of some flags
789f9965c5crupp2implement numerical linearization
f1c557c847Per ÖstlundDecrease default instantiation cache size.
cedd89a125Martin SjölundChange order of listAppend
1e32d47b6aPer ÖstlundDisable removing of duplicate equations.
16226ebe6dPer ÖstlundAdd new instCacheSize flag.
3dc2a248f6vrugeslight improvement (ticket:3801)
992c9244f1Martin SjölundRemove unused code
5ad8e78a72Rüdiger FrankeAttempt to fix msvc build after 9a0cbdb
5e8c11b193adrpo- fix ticket:3801
76e6efa9e0adrpo- revert previous commit
c81d1df46aadrpo- attempt to fix ticket:3801
6eefa07bd9Martin SjölundRecord sorting/state selection in execstat
9feeed444aRüdiger FrankeTweak F77 call args
9a0cbdb5c6Rüdiger FrankeImplement identity function
3702bb9bd8Martin SjölundDo not use Option in FGraph.openScope
7f405eff6fMartin SjölundDo not allocate same Absyn.CREF when traversing
9a6f2aa2b4vrugedon't inline inside solveSimpleEquation (performance issues after inline)
50ebc1fe6aMartin SjölundFix scalability of matching
f98a3b2a67Martin SjölundDo not allocate tables for DSS using uode
e07680e1d2Martin SjölundDo not compile dlopen for FMUs
b6f2d8ba13Martin SjölundChange set representation for BackendVarTransform
cbd4fc8f72Rüdiger FrankeAnother fix for ArraySlice with dim = 1 vs. whole dim
bb4bdc2975Rüdiger FrankeRevert "Fix ArraySlice for dim reduction if size(dim) is 1"
630d4b6772vrugesimplify ASUB for binarays
89a5ee4e30Martin SjölundAppend in the fast order
9fef384bccMartin SjölundImprove performance of traversals
acf466e4c9Martin SjölundImprove performance of traversals
fdacf597a6Rüdiger FrankeSupport external function that returns a string array
c74ac6c471Rüdiger FrankeFix ModelicaAllocateString to consider null terminator
d4f46815a2Rüdiger FrankeFix ArraySlice for dim reduction if size(dim) is 1
84a39dc5a3Rüdiger FrankeLet ModelicaFormatError format the message
86d4eee6e9Rüdiger FrankeFix compilation errors for ModelicaTest.Utilities
1fe4ff25c4Rüdiger FrankeSupport ArraySlice with negative step
e9bb3a1613Rüdiger FrankeSkip actual simulation if no time span specified
5aae6d2dd9Rüdiger FrankeClean up duplicate and unused templates
7514136b18Rüdiger FrankeImprove indentation of Cpp array code
bfe5eb20b9Rüdiger FrankeDirectly call Slice constructor for slice expressions
0af318b75eRüdiger FrankeAttempt to fix the reverted ArraySlice issue
ce2f881682Rüdiger FrankeRevert "fixed bug which lead to wrong cat_array behaviour for ArraySlice"
5f32cac6ffvrugeRevert "solveSimplEquation change order"
a53faabc95vrugereduce implicit inlining
6387b43560vrugeFix for #3791 don't force inline function with annotation(Inline=false), trust modeler
b84340bb2bRüdiger FrankeImplement vector conversion for dynamic arrays
9f902c3f6dvrugeadded rule for derive DAE.RECORD
41a0601eeavrugerecursion -> loop
b4d4a97a52vrugeadded rule for derive SCONST
7b8142a69dRüdiger FrankeFix for #3782
9d2b906f3eRüdiger FrankeKeep top level input / output of connector arrays (#3794)
cbd8a42228Lennart OchelUnbox modelica_string
65736d134aMartin SjölundPerform list filtering in the fast order
9cffa05035Martin SjölundFix stack overflow
44a9f5944aMartin SjölundReduce hashtable bucket size
4c591e7f4eMartin SjölundSpend less memory trying to build a queue
1e4a45875fMartin SjölundMove creating of list
a7cea92a2eWilli Braunfix function description
ffd22493dfLennart OchelMaximum number of event iterations
9b7aa44defMartin SjölundAdd functionality to record all mmc_alloc_words
ffcb0f705aMartin SjölundDo not compile embedded server for source FMU
b472093c84Adeel AsgharMore derived units. We need more derived units to fill convert unit drop down.
95e3a3bed8Martin SjölundAvoid some memory allocations in tearing
b4c41d710bRüdiger FrankeMove creation of boost symlinks to CMakeLists.txt
f6f9906efcMartin SjölundAdd a removeVerySimpleEquations pre-opt module
8fc40e6410Lennart OchelRemove redundant function dumpTypeStr
fbd2797615Lennart OchelFix a typo
72574824c2Lennart OchelSimplify generated code of algorithm when clauses
f2e9b23a6fMartin SjölundSource FMUs do not need embedded servers
0f08ea6e40Lennart OchelSimplify implementations of math functions
a56dd55715Lennart OchelFix indentation
3f8822a5dcMartin SjölundFix scalability for Tearing.selectCausalVars
2f31423a90Martin SjölundAvoid memory allocation in traversals
02cbe35ad8Willi Braundump error messages only with failtrace for traverseBackendDAEExpsEqnsWithUpdate
80ab59a658Willi Braunfix debug dump of time
15e8be7689Lennart OchelDon't replace operator mod in findZeroCrossings
1fbe837d1bMartin SjölundFix stack overflow in SCodeDump
5e63e23c4cMartin SjölundMoved execStat to its own Util package
01f0b65afaadrpo- add open62541* to ignore list
bceaafe5c0adrpo- fix the opc_ua build on msvc
6b6f863c78adrpo- fix the opc_ua build on mingw
a2fcd1e4d5adrpo- fix opc_ua on GCC
0424117eb7Martin SjölundExperimental support for OPC UA embedded server
2d44ae9bc7Martin SjölundPartially restore the old OPC branch
7a512b5f66Rüdiger FrankeAutomate symlinks to boost includes (#3760)
b99bfbd176vrugetry to fixe compilier warning
05d473af30Adeel AsgharAdded API getDerivedUnits
b98debe16dptaeuberOnly dump info for casual set if DT is activated
c3889ed06cWilli Brauntry to improve solveLinearSystem
029e82ef5aniklworsMerge branch 'master' into clocks
de2cd141f2Martin SjölundAdd script to analyze library logs using execstat
5791e855eeMartin SjölundUse execstat for all tested libraries
0502333d71Rüdiger FrankeInstall cross compiled libs in target path
92a48a53d1Rüdiger FrankeLink target dependent version of OMCppDgesv lib
c3dcba6523Per ÖstlundFix for #3773.
f71b9780d2vrugesolveSimplEquation change order
230aa3eb9fPer ÖstlundCode cleanup.
b5698132d1vwaurich- fix FMU valueReferences for non-consecutive array-variables
84e82edd39Per ÖstlundFix for bug3773.
5d60737a58vwaurich- fix static gcc lib linking issue for g++ 4.4
dd0c8bd4d5vrugeimproved ExpressionSolve
34e4a4c0d5Lennart OchelClean up some runtime calls
708659720bptaeuberNew data type for inner equations of tearing set
6bd48ef396adrpo- properly comment out the print as \n expands on two lines
ad1689a925vrugeimproved solveSimpleEquations
01b9dd9b6aLennart OchelRemove prototypes of not existing functions
94f82573bfvwaurich- remove maxDer info from SimCode.Modelinfo
0c0fc1a6c6Martin SjölundDo not print the variable filter
e022be4d49vrugeadded cases for getNumJacEntries
473cb9ca37vrugeactived solveSimpleEquations for simulation
c6caa77a8eRüdiger FrankeClean up expTypeArray templates
0c3dbc0d79Rüdiger FrankeAdd support for arrays of arrays
6b8ad0f992Martin SjölundFix scaling of getHighestDerivation
b9f7f012ffMartin SjölundTranslate to iterative Tpl.mo
67f1d6b764Martin SjölundImprove tail recursion
5fc71003d0Martin SjölundPrevent stack overflow in graph colouring
f5d2be9b3eMartin SjölundImprove scaling of collapseIndependentBlocks
88cdf8efeeRüdiger FrankeGenerate static OMCFactory for all targets
0a629c718bMartin SjölundKeep all release notes in one place
2c2f53c0a0hkieluse append_reverse
8793d23074Rüdiger FrankeUse OMCFactory dll with msvc
dc190dc6aeRüdiger FrankeExport OMCFactory for dll linkage (#3760)
65c36697c0Rüdiger FrankeRevert "Revert "Remove static link dependencies of dynamic runtime""
5c0486058eadrpo- fix libraries in ModelicaLibraryConfig_msvc.inc.in
c341199196adrpo- fix order of libraries in CMakeLists.txt - fix libraries in ModelicaLibraryConfig_msvc.inc.in
c27405c8cfadrpo- fix cpp runtime build on msvc
95e9b4641bRüdiger FrankeImplement cross compilation for Cpp FMUs (#3760)
4bb6e51b8fAdeel AsgharDo not throw the error message to stderr.
555843c8a8Rüdiger FrankeLink FMUs with static gcc libs under Windows
73f0312fc7vwaurich- fix valueReferences for FMU export cpp runtime
17b662bcf8Adeel AsgharFixed convertUnits interface. Added a fail case for convertUnits.
da98e25dd7hkielrecursion -> loop
0fd4258bfbRüdiger FrankeCreate precompiled header for dynamic build only (#3760)
c200a484faRüdiger FrankeFirst windows fix for previous commit
d48d574b0bRüdiger FrankeConfigure cross compilation of Cpp runtime (#3760)
e741ddf6b7Martin SjölundCreate a new bootstrapping tarball
608ffbb495Martin SjölundAdd support for input output variables
fedeb7c549Rüdiger FrankeFix type name for subtype of basic
f162d51087hkielrecursion -> loop
3fc9ebdb18hkielRemove dumping of graph in production code
30f3e8b1c5Rüdiger FrankeAvoid overwrite error on mv (#3670)
a801b41e55Rüdiger FrankeRevert "Remove static link dependencies of dynamic runtime"
0e205e2212Niklas Worschechreverted 1a7228c340febb755d92899b8e75aff032f43ebb
df9f30256cvrugesemiLinear as inline function: see https://trac.openmodelica.org/OpenModelica/ticket/3765#comment:7
87f4bb3e16vrugeDIVISION_SIM map again inline function - see https://trac.openmodelica.org/OpenModelica/ticket/3765#comment:7
fced1932a8Martin SjölundCheck for failed model structure
10fe64951ehkielrecursion -> loop
0fe22a278bhkielarray optimizsations new function Array.createIntRange()
80dcee464aRüdiger FrankeAttempt to fix Windows build (#3760)
1a7228c340Niklas Worschechfix for initialization of the clock variables
b0a5479d81Rüdiger FrankeRemove static link dependencies of dynamic runtime
05ca4d21e1Rüdiger FrankeSmall fix to previous commit
fea7a0a350Rüdiger FrankeBrake up dynamic and static build of Cpp runtime (#3760)
91127f1321Per ÖstlundFix listAppend usage to get rid of some warnings.
a5957dc51dPer ÖstlundFix push_list_back on empty DoubleEndedList.
eeff847b63Niklas Worschechchanged clock handling with state events
d0f6b479cfvrugefixed semiLinear - see #3765
6c723ab0bbRüdiger FrankeFix generation of Cpp start value accessors
46515af0a3unknownchanged results output at start time if events occured
0bcc79ae33hkielImplement and use List.listArrayReverse() as a short cut for listArray(listReverse(lst))
6d761ce5e9Martin SjölundFix appending variables in correct order
b629d9d401Rüdiger FrankeRemove unused include directories
93f2bfc8a1Rüdiger FrankeAvoid compiler flag for standard /usr/include
12879a0462Rüdiger FrankeFix capitalization of windows include
1aa261249dRüdiger FrankeExploit CMAKE_POSITION_INDEPENDENT_CODE in Cpp runtime
1be79369c7vrugeDynamic Optimization: improved naming
cf3a4160d9Lennart OchelRemove useless line of code
757fe5fc30Niklas Worschechfix for save pre variables
facc2565ffptaeuberDynamic Tearing Full Prototype
bf26a22752Lennart Ochelchange differentiation rule for the homotopy operator
6b7b848577Rüdiger FrankeInclude std::thread only if configured (#3760)
af457aa9feMartin SjölundHandle lost information for MetaModelica record
6d86372effNiklas Worschechfix for save call in cpp template
83309e54b9Rüdiger FrankeUse const qualifier in declarations of external functions
a4ad037f40Rüdiger FrankeFix passing of Cpp array inputs to external functions (#3758)
d88a3ea5c6adrpo- switch version to 1.9.5-dev
5ccf9cba53adrpofix 1.9.4 version and date
6f118e9d74Martin SjölundAdd Adrian's generic AvlTree to the backend
8f06694470Martin SjölundImplement cevalBuiltinSum
b114551263Martin SjölundAllow if instead of guard in the grammar
0e2f188d53Martin SjölundHandle bootstrapping DoubleEndedList.mo
30945393f0Martin SjölundAdd a double-ended list implementation
7e8eeef247Martin SjölundAdd support for type variables in uniontypes
22263b6cbfhkieluse list comprehensions inline small helper functions
db37146e73Rüdiger FrankeFix context of function Cpp calls (#3742)
19160685b4vrugeBackendDAEUtil.tryToSolveOrDerive: guard vs. zero --> zero no dependence --> UNSOLVABLE
80b17a1909hkielClean up some code avoid warning about incorrect use of listAppend recursion -> loop listReverseInPlace where possible
0cdcd6a6cabernhard ThieleSM workaround removed for Cpp runtime
3e54f2ac76Rüdiger FrankeImprove error messages of SynchronousFeatures
494857e2a5Rüdiger FrankeRemove duplicate traversal for clocked states
e2f045ad8aRüdiger FrankeFix VarKind of previous after commit 69f1837
1845ffa323Rüdiger FrankeProper treatment of clocked states (#3741)
69109754dcRüdiger FrankeRevert "Attempt to fix #3741"
8236a0d333hkieldo not use listAppend to prepend one element
12ddb6a9a2Rüdiger FrankeAttempt to fix #3741
f31e10e459Martin SjölundMM: Multiple algorithm sections without warning
0e016dc235bernhard ThieleFix array elements #3651
99fe3bde40Rüdiger FrankeKeep order of clocked partitions for regression tests
4d11cc6c53Rüdiger FrankeInitial implementation of clocked continuous equations
89ded3c0a5hkielremove superfluos check for failure it already failed in the first case
b8f53b08d1hkielfix two compiler warnings in parser
b388aff690adrpo- cast to double so that 1/10 doesn't become zero
a391fa93a5Martin SjölundUse isPresent() to disable some allocations
bcd948c9e8Martin SjölundAdd basic memory profiling to execstat
cfa27e9dfdMartin SjölundAdd implementation of isPresent()
150bb05f20Adeel AsgharMore output from getClassInformation.
8abe1ff400hkieltry to reduce memory usage - use listReverseInPlace where possible - remove some recursions and matchcontinue
cc074b4b12Rüdiger FrankeImprove error message if resolveClock fails
f8a8026c37Martin SjölundFix zlib for OSX nighly
224e2c4cb7Martin SjölundWorkaround for Java8
b308dafc70adrpo- fix front-end parts of #3503
0eaf54c1bcadrpoattempt to fix Linux build
06d03b4ab9adrpoupdate 3rdParty to fix windows build
fa8b0d281eMartin SjölundMetaModelica has more bits available
64554e12f0Adeel AsgharAdded Debugging.mo to examples.
ef88044c44hkielput cascaded listAppend in optimal order
f0f455beafhkieloptimize some list operations matchcontinue -> match
3a40ea3622Martin SjölundUpdate external C-sources for MSL 3.2.2
1d8aec65faWilli Braunfix functionTree propogation for system homotopy0
dc5bdff688Willi Braunbetter fix for #3738
540ad848f6Rüdiger FrankeFix FMI 2.0 dependenciesKind
90c58b3883Rüdiger FrankeFix FMI 2.0 dependencies
6e9b4f9fa7Willi Brauntry to fix #3738
77ddf9ef09Martin SjölundFix some ordering of listAppend in SimCodeUtil
fc73d033b4Martin SjölundChange order of some listAppend calls
7e7852d9c3Martin SjölundRemove FMI1 log-message
7f65a75ba8Willi Braunremove unnecessery variables merge
f19d3870d5Willi Braunremove unnecessary array list transformation
38f41651f4Adeel AsgharInclude OpenModelica in version string.
00e96aced8Martin SjölundChange order of listAppend in BackendDAEUtil
5161a931cfMartin SjölundNotify the user about listAppend in wrong order
0a0d480852Martin SjölundImplement Dangerous.listSetRest
23bb6ec070Rüdiger FrankeFix 3a7d119 for arbitrary tree traversal order
e4f94d662fMartin SjölundAdd support for MA Impure annotation
769e528bb8Rüdiger Frankeobtain grand parent from previously stored parent
3a7d119bedRüdiger Frankeimplement backward propagation of clock conversions
dbf171042fMartin SjölundUse a FIFO instead of slow listAppend
8114196928Per ÖstlundFix segfault in InstSection.unroll.
3f4477c825Martin SjölundFix code generation for add-array-scalar
d65644efc0Martin SjölundOptimize max({arr})->max(arr) instead of arr
26ec49ed07Martin SjölundHandle expandExpression for unary
a1a01c3e65Martin SjölundInitialize variable to zero
0bb9e15c67Martin SjölundImplement vector() code generation
c64c048dd3Martin SjölundOSX fix for new MSL tables
5cd19d9464Martin SjölundAllow modifications for addClassAnnotation API
5e8f396b9bMartin SjölundUnparse {a for a in as} correctly
cd48e7db8aRüdiger FrankeSupport multiple integer base clocks
cf999be711Willi Braunimprove extractVarFromVar
f140ab4105Willi Braunimprove BackendVariable.mo further
d6b5549e1bWilli Braunadded isVarAlg function
5458fb549cMartin SjölundHandle poorly unparsed strings
5fd29e600cMartin SjölundHandle StandardTables depends by dynamic linking
32cb4c174cRüdiger Frankeimplement event clock in Cpp runtime
5d5c631babvrugeadded debuge dump for loops
ca1480a060hkielremove some matchcontinue
f5881f25e2vrugerecursion -> loop -small optimization
3a8f02ad7fvrugefixed compiler warning
2d6fcff9a9vrugeremove matchcontinue for some functions
35e5ffaf4dvrugeaddEquation: remove matchcontinue
e5a26e43f7hkielrescursion -> loop
a3605edd51Martin SjölundAdd ModelicaMatIO for MSL 3.2.1
e4cafbc9c9Martin SjölundNew ModelicaExternalC
bd3e67c9f9Martin SjölundFix a bug that lost tokens in the diff algorithm
8e32ac5ec6Per ÖstlundFix for #3722.
01fdb3eb6fMartin SjölundReject invalid polymorphic function call
457cabf7d3Martin SjölundConstant variable names as constant patterns
8b8930dabcMartin SjölundPartially evaluated functions depend on modules
064eb9e3fdJan ŠilarPDEModelica bugfix
1a69278e2fJan ŠilarPDEModelica boundary extrapolation
bd44300759Lennart OchelAdd rule to differentiate homotopy
8125c69ce6Lennart OchelRemove dead cases and cleanup
b559b1dd62Lennart OchelFix expansion of array expressions
a61daefb46Willi Braunfix for #3381
fa412ec6d8Martin SjölundSusan: Do not assign the same variable twice
f13e19fb63Martin SjölundAdd check for duplicate definitions
0b12aa5a54hkieluse 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.
4ddb2fed98Willi Braunadded cruntime LOG flag
fc9c9bb108Willi Braunfix for #3685
d541c90aa4Willi Braunfix #3701
da4204cf08Adeel AsgharFixes #3311. Read __OpenModelica_infoHeader annotation.
cb732fc280Lennart OchelRestrict domain of definition of exponential function
472d00ec04hkielrecursive -> loop
a64582dfbbPer ÖstlundFix for #3577.
c93aec78b3Martin SjölundDo not optimize guarded patterns to switch
23dd7a9c25vwaurich- fix HPCOMScheduler
3542223e35jhagModified array case in record handling
a59c824969Martin SjölundFix stack overflow
4bed8a9644Martin SjölundFix stack overflow
86267ae3bcLennart OchelDon't wrap functions within if expressions
265024d6c4Rüdiger Frankefix to yesterday's commit c06017c
c06017c0d2Rüdiger Frankecheck for equal base clocks
3cd6f318f1Lennart OchelFix CRLF issue for override files
14d87350dfLennart OchelFix typos
08f36deeeaMartin SjölundFix stack overflow
7153a59d31Adeel AsgharCheck for what kind of FMUs we can export.
c4d4b4a601Martin SjölundFix stack overflow
0054a876e1Martin SjölundHandle comments in uniontypes with single record
4d60525aeaMartin SjölundIntroduce List.append_reverse
15d130fa88Martin SjölundFix stack overflow
812a38e75dRüdiger Frankeguard against synchronous models without variables
96ebbdd3feRüdiger Frankeadapt +d=dumpSynchronous to expected output
837ff6d53eRüdiger Frankeremove new debug output from +d=dumpSynchronous
2c5439f294Rüdiger FrankeImprove clock propagation in synchronous models
c37fa36a0fRüdiger FrankeMove Clocks from ModelStructure to TypeDefinitions
8768d11f8avrugebuild don't fail without git
49dc36a42cRüdiger Frankework on clock sub- and supersampling
54e3041c30Rüdiger Frankefix clock sub- and supersampling in Cpp runtime
4d534f7219Lennart OchelAdd more trace statements
b3692d0699Lennart OchelClean up code generation
55cb6490a5adrpofix frontend performance degradation #3697
63d57dd2caLennart OchelHandle roots of negative values
56626b0f96adrpoa bit of improvement for #3668
78ba5299e0Willi Braunreview simplify usage in symbolic jacobians
880ef3cd78Martin SjölundSome runtime fixes for VS2013
1adf486dcdmhartungfixed bug which lead to wrong cat_array behaviour for ArraySlice
ecf792f373jhagdon't wrap "sign"-calls
01caff9453Willi Braunadded differentiation rule for built-in sum call
5a950a9da7Willi Braunfix #3684
7e414c9fd5Willi Braunfix #3687
dc7da8cafdhkielmatchcontinue -> match
d41fb97804hkielUse filterOnTrue instead of filter
3cd16cc1aehkielrecursive -> loop list optimizations
dd6bae1f39adrpofix for #3688 and #3641
31eaa49f1dhkieloptimize isConst*Work* removes need for boolean input argument optimize list operations
18edd82bf2bernhard ThieleDumping state machines to streams
e8a1b5cc52Per ÖstlundFix for #3662.
325267489evrugemake equationList2 tail recursive
3258410212vrugemake some traverseExpsOfExpList_WithStop tail recursive
4492ef73e2vrugemake equationNthSize1 tail recursive
fdebf71186vrugeequationNth1: removed matchcontinue
bc07b6905dvrugemake traverseExpsOfExpList tail recursive
a38fd9aeefvrugemake traverseExpsOfEquationListList_WithStop tail recursive
ffa3db0663vrugemake traverseExpsOfEquationList_WithStop tail recursive
a2301d8a2fvrugemake listEquation1 tail recursive
792f93ca75hkielfix stack overflow make functions Ceval.ceval and Types.matchTypeList use loops instead of recursion
a2d3cf252avwaurichRSE-fix
5f792d289cWillifix #3668
c343375da9Willi Braunimproving analytic jacobian flags
758919984eadrpoupdate .gitignore
68966ebbd8Per ÖstlundImprove performance of getComponents API.
ddccaeb945Willi Braunimproved flags for symbolic jacobians
9c9d72e613Martin SjölundSet LC_NUMERIC to C locale
03b0c4c4e1Martin SjölundAdd boxvar function for boolString
a555ec0dd7Martin SjölundHandle boxed arguments to String()
daf875123aMartin SjölundDo not install OMEdit files
824acedabfAdeel AsgharFixes #3376. Added a batch file for command prompt.
19362e064fvrugemake jacobianConstant tail recursive
ff665c9e90Martin SjölundFixes to compile with Visual Studio 2010
1ab7b4735ePer ÖstlundChanged behaviour of getComponents API.
1088cbd2b3Willi Braunadded debug flag to disbale jacobian calculation for SCC analysis
2ab6a8c391Martin SjölundFix code generation for VS2010
1d662e35c6Martin SjölundCheck for NULL
edeb320928Martin SjölundRemove RCS-id from source files
272277c0ccbernhard ThieleAdded internal flag DEFAULT_CLOCK_PERIOD
443a059591Per ÖstlundMerge remote-tracking branch 'origin' into perffix
b95e6ebd04Per ÖstlundPerformance fixes.
a2c7ddf0cfLennart OchelMake execstat dump each step in a single line.
70ce925f7dMartin SjölundUse correct bootstrapping header during stage 1
d422fe7ac7Martin SjölundAdd missing includes
56e3dffcf6hkielconvert some matchcontinue to match
9415bfe3a4hkielconvert some matchcontinue to match
6cd879ff80hkieluse correct return code
b88ce87d35hkieluse match instead of matchcontinue modify pushRedeclareIntoExtends3() to make it tail recursive -> saves time and stack
3433e8319fMartin SjölundFixes for bootstrapping PDEModelica
85b39a0d09Jan ŠilarAbsyn.EQ_EQUALS splitted into EQ_EQUALS and EQ_PDE.
82b0921b73Jan ŠilarisField attribute / API function
a2da0ef532Jan Šilarfield equations without pder() include also boundary nodes
154579c018Jan ŠilarPDEModelica -- extrapolation on boundary
9c66112715Jan ŠilarBugfix
f7fe0d9054Jan ŠilarPDEModelica -- flag in grammar
0ca507a922Jan ŠilarPDEModelica pdemodelica_enabled()
186d4012fbJan ŠilarPDEModelica flag
9a9dd8ae4dJan ŠilarFixing previous rebase.
7b107b25ecJan ŠilarFlag --PDE removed.
554b2a608bJan ŠilarPDEModelica fag and new built-in file
c1ec6d8fdfJan Šilarfixed bad rebase merge
084a83663bJan ŠilarPDE
a384029e57Jan ŠilarPDE extension - regions
dae025210bJan ŠilarPDE modelica. Some model error checks.
187c57b08fJan ŠilarPDE extension
692fa0f954Jan ŠilarDiscretization of PDE equations.
aed8fab218Jan ŠilarMoving code around.
61c812f857Jan ŠilarSeveral changes in PDE extension
f0da417dabJan ŠilarWork towards discretization of PDEs
4d0cbd81f7Jan ŠilarReturning (field,domain) tuple list from elabField() upto instClassdef2.
12a5593b9bJan ŠilarOption domainOpt; added to SCode.EQ_EQUALS. Subsequent changes.
bf029a092bJan Šilarfixing code due to added domainOpt to Absyn.EQ_EQUALS
6defd95fbdJan Šilarstarting indomain implementation
9090acd569Jan Šilareach prefix is added to every modifier in fields
71d9e6a068Jan Šilarelaborate function now replaces field variables with arrays
1ab796528aJan ŠilarelabField function - converts field into array. Not finished yet.
01c0933bb5Jan Šilarstarted writing function elabField
8d3896689dJan ŠilarAll changes from PDE branch from svn in one commit.
748d6d5762adrpofix windows build
801d118186Per ÖstlundGeneric AVL tree improvements.
e0b0d22a6dMartin SjölundChanges for bootstrapping header
0c39bf621fLena Buffoniupdate requirement bindings
f45a8b27a2Per ÖstlundFix for #3669.
5018d90653vwaurich- dont evaluate start values for parameters if there is a bindExp
0a4684b83aMartin SjölundFix OSX configuration (broken LAPACK)
cf5d61e49eMartin SjölundUpdate 3rdParty
0214b3af35Martin SjölundHandle empty within for Modelica diff
9bf7608837adrpodo not use time in functions used in coverage testing
47ae7d2d75Per ÖstlundFix for #3666.
1a62d7857cMartin SjölundHandle addition of comments in Modelica diff
4f02c17185Adeel AsgharFixes #3670. Order target language. Added `OpenModelica` for `getVersion()` output.
240ce9eb88vrugematchcontinue -> match
86500a3554Rüdiger FrankeRemove obsolete OMCppSystem_FMU_static
6d7b093522Martin SjölundDo not include rtclock in FMU (#3616)
1b64dc04baMartin SjölundFix #3616 - stringAppend missing in FMU
5fcced9802vrugeimproved debuge for optimization
fc1c55df8eRüdiger Frankefix use of dgesv for Cpp FMI export
73392453aeMartin SjölundChanges to compile with VS2010 express
2c85e5f40cRüdiger Frankeadd solver libs to Cpp FMUs compiled with msvc
6f7b438f5cRüdiger Frankefix Cpp FMU name if compiled with msvc
8d53fa9338Lennart OchelFix #3644
d9e7af7b52Martin SjölundAdd a sanity check to the Modelica diff tool
521a5df004Martin SjölundFixes for ticket 3642
fb06e80956Martin SjölundRename solvers
9056eb25bevrugesome fixes from static analysis
63ec077230Per ÖstlundFix for #3528.
08f0eec4ecPer ÖstlundFix for #3608.
a5d0c6951eWilli Braunfix #3659. - accidental removed an exception for inlining while differentiate
a8ef4b2c8dRüdiger FrankeRename hpcom init file
12039e236eRüdiger FrankeRename Cpp simulation init file for OMEdit
002aeac2e9hkieldirect assignment of s in String(s)
24fc4a1ea5hkieloptimize String(s) just return the string
3e1c6c4470hkielruntime code for String(s)
9aeedf519fhkielfix clang analyzer warning
dcc0ed6a46hkielconvert some matchcontinue to match makes some functions tail recursive
905b903ec4Martin SjölundRename explicit trapezoidal rule to Heun (RK2)
9c59763037Martin SjölundAdd support for the trapezoidal method (RK2)
d89bde8c92Martin SjölundDo not stringAppend if either side is empty
379c4c55d2vrugefixed csvInput
530076c5c2vrugecsvInput: input order by name
993bd3a11fhkielchange some matchcontinue to match
e2d5aa8c32Lena BuffoniBindings for requirement modeling support
58962877c6Lennart OchelModify getAvailableLibraries
25cfcd61ccLennart OchelUpdate .gitignore file
333813aaa3Lennart OchelRecover original cse index logic
52c001d296Lennart OchelReset cse indices for each back end run
9968281548Willi Braunactivate wrapFunctionCall for jacobians
ba87c65584Willi Braunremove error messages from convertResidualsIntoSolvedEquations
c81dc9f53dWilli Braunactive symbolic jacobain for loops without functions
4b7f96a849Willi Braunfurther improvments for differentiation
658b927998Willi Braun# This is a combination of 3 commits. # The first commit's message is: fix function differentiation
3ccd90a978Willi Braunfixing differentiation of Records
49bf67a4e9Willi Braunuse global index in wrapfunctionCall module - This allows the usage of the modlue at different stages of the compile process
3029c6409fLennart OchelFix Windows makefile
152dfb16cfvrugeadded flag: csvInput - use libcsv.lib for external input
10e85bd736hkielconvert matchcontinue to match
b1d0c1d501Per ÖstlundFix for #3577.
767d908221Martin SjölundMake source FMU smaller (minimal files for dgesv)
51ca6a500dvrugeimproved heuristic
783a9b0222hkielconvert some matchcontinue to match leads to some tail-recursive functions
06265e0725vrugematchcontinue->match
104520f804vrugeterms heuristic: don't distinguish der(x) from $DERAliasx
b7eda9c2edWilli Braunfix function fixAliasVarsCausal2
de5898cdbbvrugeadded first heuristic for sorting terms (optional)
072f8e9844Martin SjölundFix stack overflow in removeStateDerInfo
b1fb7f98c2hkielget rid of some matchcontinue statements
b04455e08ehkielmake two functions tail recursive
c89f8ab1f6Martin SjölundFix stack overflow
675b7d6fb5Martin SjölundHandle CRLF in the lexer
f614495f16Martin SjölundstringGet should return unsigned integers (0-255)
f105a55be2Per ÖstlundFix for #3640.
ba656e8f89hkielFix order of equations in json file (removed-initial must go directly after initial)
47db7d2ba3Willi Braunfix accedently commited logic
a2e0a2ce3cWilli Brauncleanup of symbolic jacobian of algebraic loops
3e079bc58cWilli Braunpreparations to activate NLSanalyticJacobians
3c8a7d4cffWilli Braunfix discrete differentiation of statements
8c9025a2c2Per ÖstlundFix for #3633.
9f7f95eee6Martin SjölundAdd input index to M_init.xml file
ff6909b744vwaurich-fix visxml for constant systems
2fde1e4245Willi Braunfix function BackendDump.jacobianTypeStr
84d4b50ae3vwaurich- rk12 singlerate solver
1492e9b658vwaurich- proper order of states for multiratepartitioning, some rk12 enhancements
b9b870d65dLennart OchelHandle empty unit strings
67773353ffMartin SjölundInstall the new project files for FMI
b27cca871bvwaurich- fix cpp tests
fd65350e13vwaurich- multirate rk12 solver for cpp runtime
f701c46572vwaurich- task graph based multirate partitioning
71918c7fadmflehmigClean up in HPCOM module.
dc2d3ef046Martin SjölundAdd a simple Modelica diff based on tree parsing
3c6096c5c4mflehmigCleanup with respect to documentation in hpcom
a646bc72fbmflehmigAdded support for dgesv to cpp runtime
cbd807d3a0mflehmigAdded support for dgesv to cpp runtime
f90d6e4570mflehmigAdded support for dgesv to cpp runtime
49412430ccmflehmig- Added dgesv to makefile, compile it into static library
fda9581834Martin SjölundFix order of components in updateComponent() API
71c220705aMartin SjölundDo not use nested functions in AC_TRY_LINK (#3621)
69ff31b44fvwaurich- hpcom clean up
5e38c0c789Per ÖstlundImplemented a persistent array type.
80e3e04fdfvrugesimplify2: improved sorting of constants
f7bf9871b5vwaurich- matchcontinue in resolveLoops
a6c7cb26a6vrugesimplify2: improved sort of constants
dd2007d56cvrugeimproved simplifyAddMakeMul
ed4729083cvrugeimproved simplifyMulJoinFactorsFind
8fd278b908Lennart OchelAdd c run-time flag –ignoreHideResult
386cb98576Lennart OchelAdd support for HideResult annotation
1abd25536dLennart OchelFix potential memory overrun for large models
5e91d0f716vrugeimproved simplifyAddJoinTerms
ecd1bc603dLennart OchelFix memory overrun inside nonlinearSolverHomotopy.c
e8c89b5d2evrugeimproved simplifyMulMakePow
5088b2df72hkieloptimize some functions
8000c936f9Lennart OchelMake use of aux function equivtypes
3e5359659eLennart OchelDon't treat T_UNKNOWN as clock type
a14668695dvwaurich- fix countOperations
eb50a09a82Lennart OchelConsider that sample may have just one argument
9297bf090dLennart OchelFix handling of elsewhen stmts in traverseDAEEquationsStmts
4865156011Martin SjölundTry to detect LAPACK/BLAS better
59c32f17b7Martin SjölundBump 3rdParty for ModelicaExternalC
786049c952vrugesimplify2: - split global simplification in add/sub, mul/div and others - use only one global simplification in each split
f8c1de5508Lennart OchelRemoved some unused variables
2d0bc6b618Lennart OchelMangle arguments of record constructors
49e67ac643Niklas Worschechfix for inverse algorithm in cpp tempplate
ecbede07edNiklas Worschechfix for get simdata in cpp tempalte and vxworks target
8e6d4fbf73Lennart OchelUpdate dumpSimCode
51597ed54bWilli Braunfix incidenceRow for WILD() on left side
b2d40b309fvrugematchcontinue -> match
881d9f61ddPer ÖstlundFix for #3594.
e70366d00bLennart OchelHandle deprecated post-optimization flags
6c8bc92f03Lennart OchelHandle deprecated pre-optimization flags
8759c84697vrugeimrpoved simplifyMulJoinFactors
49a533c036vrugeimproved simplifyBinarySortConstantsMul
d87d488f14vrugeimproved simplifyBinaryAddConstants
5c5b56b725vrugeremove simplify in merge min/max-values
058d1c90aeMarcus WaltherUMFPACK temporary disabled to fix Windows Nightly Build
e4fdb95bc8Marcus WaltherFixed issue with old GCC
ea08c41e51Martin SjölundUpdate 3rdParty sources
231fda98e8Marcus WaltherAdded spaces between template brackets
f5aa013404Martin SjölundFix code generation for String(enum)
9b84eda78dMarcus WaltherFixed build issue with Cpp runtime
5fcf1c8924Willi Braunadded some more significant execstate statements
322d28dc85vrugesimplifyBinarySortConstants: don't sort terms if we don't have constants term
c3cf2aca5fvwaurich- for-loop in IndexReduction.collectVarEqns
eba5efed3eMarcus WaltherParallelized DASSL added to C++ Simulation Runtime
7e7a75baa2Martin SjölundUse the index from the correct set
87f37338e7Martin SjölundFix scaling issues for initialization
5f3520e5c8vwaurich- for-loop in SymbolicJacobian.jacobianNonlinear
ca2207e92evwaurich- for loop in replaceDifferentiatedEqns
e677cacc63vwaurich- changed BackendDAE.ConstraintEquations to array type
45ad04c274Martin SjölundAppend in the fast order
8b75192a36Per ÖstlundImproved BaseVector.
67ce850b10vrugeexpressionSolve: - improved expand - improved rule for simplify - improved termination criterion
2ad55506ddvwaurich- output empty list in differentiateEqnsLst when failing
b09bb10f50vwaurich- rewritten IndexReduction.differentiateEqnsLst()
37ad4ee407Per ÖstlundAdded arrayUpdateNoBoundsChecking.
82962b55c3Per ÖstlundFix redeclare issue with generic types.
cce1788f2cNiklas Worschechfix for inverse algorithm in cpp template
5a4b3a7b67Per ÖstlundImplemented more generic datatypes.
375fb6ddd2Martin SjölundFix cc warning about missing include
cd8c3a1ceaPer ÖstlundFix for #3581.
1a9a853f06Marcus Walther- fixed Intel TBB code generation - fixed serial code generation of HPCOM
352422181dMarcus Walther- added the new output_type to the list of default runtime parameters (cpp-runtime) - removed some unused code
df90683deaMarcus Walther- removed task sorting, because the openMP-runtime seems to use junks of sections for each thread
5028097f92Marcus Walther- changed the tail recursive MCP-algorithms to while-loops --> this will prevent stack overflows for large models
10ac684dc8Niklas Worschechfix for query output results in cpp runtime
7f3814bd16Martin SjölundOptimize warnAboutVars2 for memory consumption
45515a61fcadrpo- fix for feature #3417
fee3aec5c5Adeel AsgharAdded some additional arguments to compile.bat so OMEdit can use it.
063ca3e1e5Martin SjölundMake functions tail-recursive
56d1973397Niklas Worschechfix for external string arrays in cpp template
712e46e6f1Niklas Worschechadded output format parameter to simulation start script of cpp runtime
86dce0fea6wibraunadjust DATA object in C runtime DATA
7eeeca2a15Per ÖstlundFix for #3552.
0581f1eb2dNiklas Worschechfix for handle time events in cpp runtime
372837d0baMarcus Walther- hpcom level and levelfix scheduler will now schedule the largest tasks first
ff60f29999Niklas Worschechfix for change output format in cpp runtime
67b941c702Martin SjölundUse arrayGet for random access instead of listGet
7a8c722682vrugefixed and simplify allTermsForCref - remove recursion - split terms
59192a427cvrugeExpressionSolve: reduce expansion of multiplications
f81f8c6bb7Lennart OchelNew optimization module to wrap function calls
150aaf3627Niklas Worschechfix for PrecompiledHeader and msvc build in cpp runtime
9638dc4c0dMartin SjölundPrint size of DAE for sorting and matching
6ceb89f1bdLennart OchelGenerate additional initialization system for lambda=0
712abe4f31Martin SjölundAllow inheritance when bootstrapping
36b9fbe046Marcus 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)
fe43efbab3Niklas 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
6c675e6ea5vwaurich- getValueReference works with row major order for cpp fmus
292fdcad77adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b6c970ae39adrpo- fix windows build
b7b42318daPer ÖstlundFix for #3552.
65f402e4d0adrpo- fix windows build
2d700ff8c6Adeel AsgharUpdated getClassInformation to get more information for OMEdit.
3bfc949e69Rüdiger Frankeremove boost_system lib from FMU generated with msvc in release mode
2663366d42Marcus 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
885c632bb8Lennart OchelRevert "reduce ExpressionSimplify-Calls inside solve(.)"
0d78a38d37Niklas Worschechchanged msvc build, latest visual studio version is used if no verion is set with VSVERSION flag
dedd5085e3vwaurich- reverse lists in getUnrolledArrayIndex
72f90e7c76vwaurich- fix for SimCodeUtil.getUnrolledArrayIndex()
fe52534966Federico BergeroDump empty arrays {} as fill(0,0)
945d450490fbergeroGenerating modelica output in the flat DAE dump
6c58add6ffvrugeDIVISION_SIM improved check, using old logic
9f2a0ec31aMarcus Walther- removed trailing whitspaces
66c68d2586Marcus Walther- removed empty lines at the end of files
b9f455efe7Marcus Walther- fixed HPCOM measure time functionality
d8fb05717aMarcus Walther- some simple cleanups
9d31ebc8f6Marcus Walther- fixed Linux build issues
7014278800Niklas Worschechfix for cpp runtime release build
ee4f5b62a2Marcus Walther- disabled boost threads in MSVC release mode
f0b4fd3d7bNiklas Worschechadded flag to mingw make files to change Visual Studio version VSVERSION=[2010,2012,2013,2015] default is 2010
e144c6d608Willi Brauncleanup and revise dassl code
da87f6ade2Martin SjölundFix OSX paths for new suitesparse dependencies
bad389217dvrugesimplifyAllExpressions: - don't use simplify use simplify1 - see: https://trac.openmodelica.org/OpenModelica/ticket/2647
a59b7ee8ddMartin SjölundThe exe extension on OSX is not .app
7458c241a7Per ÖstlundFix for #3460.
d162439700RuedKamp-USE_CPP_03 is not defined under VxWorks although not using C++11
328cdad88bRuedKamp-removed OMDEV Variable from VxWorks makefile
c780050125RuedKamp-some minor changes
d237bc50e4Martin SjölundMinor performance fixes for Absyn.traverseExp
13854c1c06Per ÖstlundFix for #3574.
2b1abe8852RuedKamp-fixed functionblock generation
e09f1554f2RuedKamp-changed defines for sparse solver
83b998c751RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a5b060172dWilli Braunfix minor issue in dassl.c and clean up
ad626e112bMarcus Walther- added cpp-runtime flags to Windows-Makefile
f2cca5abe1Marcus Walther- removed spaces in Modelica.cpp
51b0039a74Marcus Walther- Documentation updates
7a131d669aMartin SjölundRewrote Absyn.pathString
487eea1818vwaurich- fix for evalOutputOnly
4564e1cd39vwaurich- changed dumpSimCode implementation
199d4cd499Lennart OchelRevert "Hack for ticket 3544"
dbb674db7bMarcus Walther- changed the flag "USE_CPP_ELEVEN" to "USE_CPP_03" to be compatible with further standards
fb2973748eNiklas Worschechre-added accidentally removed assert warning
57d05fd105Willi Braunadding context depending extrapolation
920eedf11dMarcus Walther- increased memory for precompiled headers (MSVC)
fb0cb73851Lennart OchelHack for ticket 3544
e090d3da58hudsonMerge remote-tracking branch 'origin/master' into pullrequest
e1afc3d0eaNiklas Worschechreverted 2d6e1a7d26ee397d9295368aec0f9450d9db1e23
5ea6c42033Per ÖstlundCleanup DAE.Mod.REDECL.
7fcf026a6cNiklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
3011206159Niklas Worschechrevert 2d6e1a7d26ee397d9295368aec0f9450d9db1e23 in cpp template
6d1160c77fNiklas Worschechfix for external string in cpp template
609f8a7d56Niklas Worschechadded assert warnings in cpp template
e1aa8b0326RuedKamp-xml file generation for functionsblock
63cd39e46avwaurich- fix for evaluateOutputOnly
f2902c0710RuedKamp-improved xml FunctionBlock generation
78bf148493RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b33dd2e311RuedKamp-improved xml FunctionBlock generation
2d6e1a7d26Niklas Worschechfix for external string in cpp template
9da56998f1Niklas Worschechadded assert warnings in cpp template
d110f644c2Per ÖstlundFix for #2964.
c7b7e74d45vwaurich- replace evalAllParams-implementation - dump bipartite graphs for sccs after backend
4b930ae6b0vrugeExpressionSolve: matchcontinue in match
afa3ac41f6vrugeExpressionSolve: matchcontinue in match
0071e68091vrugeExpressionSolve: using guard
79c8b96a49vrugeimproved SolveSimpleEquation using (for loops, reduce number of operation)
bd00240bcavrugereduce ExpressionSimplify-Calls inside solve(.)
16b1a424devrugeExpressionSolve: matchcontinue in match
a6891f398bLennart OchelFix performance issue of module inlineWhenForInitialization
7550912d44vruge- improved stop criteria in ExpressionSolve.solve - reduce simplify-calls in ExpressionSolve.solve2 - fixed start value for iterration var in simplifyComplexFunction
ee25428c01RuedKamp-removed one environmental variable required in VxWorks makefile
c672f553ecRuedKamp-copy some headers required for VxWorks build
75acf015cbRüdiger Frankeremove $(OMHOME) substitution for nmake
85c4f53f11Martin SjölundAdd tail recursion for Expression.makeMatrix
ced7bfa9eeRuedKamp-add export for VxWorks makefile
18c0050a2fRuedKamp-fixed some VxWorks error -adapted VxWorks makefile
50f43eb647RuedKamp-xml file generation for functionsblock
65da0bc77eRuedKamp-fixed some VxWorks error -adapted VxWorks makefile
e480d238bfRuedKamp-xml file generation for functionsblock
415e95d419Per ÖstlundFix for #2964.
936fccdcb1vwaurich- replace evalAllParams-implementation - dump bipartite graphs for sccs after backend
29c46641cevrugeExpressionSolve: matchcontinue in match
f2b7cd2e24vrugeExpressionSolve: matchcontinue in match
d3176fd2fcvrugeExpressionSolve: using guard
997e514081vrugeimproved SolveSimpleEquation using (for loops, reduce number of operation)
4b79bb8de2vrugereduce ExpressionSimplify-Calls inside solve(.)
4756935cc4vrugeExpressionSolve: matchcontinue in match
c45436a1f3Lennart OchelFix performance issue of module inlineWhenForInitialization
199855a7fdvruge- improved stop criteria in ExpressionSolve.solve - reduce simplify-calls in ExpressionSolve.solve2 - fixed start value for iterration var in simplifyComplexFunction
4647aa6ac7RuedKamp-removed one environmental variable required in VxWorks makefile
c0cc940b66RuedKamp-copy some headers required for VxWorks build
c462bedbb2RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
db7e3316ebRuedKamp-removed one environmental variable required in VxWorks makefile
420c34b8abRuedKamp-copy some headers required for VxWorks build
5a65e9df30Rüdiger Frankeremove $(OMHOME) substitution for nmake
352fa2afd4Martin SjölundAdd tail recursion for Expression.makeMatrix
37f75383a6RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
eb3c09a901RuedKamp-add export for VxWorks makefile
071107013cRuedKamp-fixed some VxWorks error -adapted VxWorks makefile
851aaca7c5RuedKamp-xml file generation for functionsblock
2e30872234RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
62a6e06579RuedKamp-fixed some VxWorks error -adapted VxWorks makefile
446a0903b1unknownfix for daeExpReduction in cpp template
64a0568e98Niklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
e344cf7049unknownfix for daeExpReduction in cpp template
13983f6a9fMartin SjölundAlways compile with ipopt
44ea7beda3Lennart OchelRemove short type declarations
e430545a28Lennart OchelRemove unused imports
d700365c28Lennart OchelRenamed --forceRecommendedOrdering to --defaultOptModulesOrdering
3fe15e2648Martin SjölundDo CONFIG_OS in autoconf
80f16ca9c5Martin SjölundRun without OPENMODELICAHOME on Windows
7b269d16cbLennart OchelAdd special cases to enable/disable additional opt modules
9f852892cdMartin SjölundAdd configure option --with-msys=msys-root
11653b52cbadrpo- small optimizations - use memcpy instead of for loop - do not copy the hashtable if not needed
e0d2d02a29Rüdiger Frankere-add Jacobian variable refs if +d=gendebugsymbols
d2ceb48d14adrpo- small optimization
91f3526d11Per ÖstlundFix for #2959.
43df7a65edRüdiger Frankerefinements to Cpp FMU makefiles for win32
5fb2fc51eaRüdiger Frankeupdate Makefile for Cpp FMI export using msvc
52a439f43fRüdiger Frankereplace Jacobian variable refs and initializers with defines
f20146ebddRüdiger Frankeskip Jacobian::get* code if there are no equations
3107627313Lennart OchelClean up default initOptModules
40390de261Willi Braunadded density information to backenddaeinfo of liner torn systems
be96874407Martin SjölundCan now cross-compile a working omc from Linux
f19ece7b87Martin SjölundFixes to compile using msys2 on Linux
4f43fa197eLennart OchelFix handling of symbolic Jacobians
f75088c5e7Lennart OchelClean up default postOptModules
72230edf4aLennart OchelClean up default preOptModules
8597f421b1RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
cda5d97dd4RuedKamp-xml file generation for functionsblock
fff2ee5531Willi Braun - added new linear solver klu from suitespase
2b53c2b456Willi Braun - fix 3rdParty
33012b07fbNiklas Worschechfix for typo in define alias string variable in cpp Template/CodegenCpp.tpl
3a3e682e04Niklas Worschechfix for typo in define alias string variable in cpp Template/CodegenCpp.tpl
50deea622eLennart OchelRemove newUnitChecking config flag
44a6be4a69Lennart OchelFix *OptModules+ flags
ca73a56b20Lennart OchelRearrange optimization modules for symbolic Jacobians
43143af017Lennart OchelAdd config flags to enable/disable certain optimization modules
c5e16b0011Lennart OchelImproved warnings/errors
ca7e4474c7Lennart OchelAllow not-recommended module ordering in modelEquationsUC
8a170eceedLennart OchelDump dae type to pre-opt module heading
cc923c7dbbLennart OchelForce recommended pre-/post-/init-opt module ordering
27e482212dvrugeRevert "attempt: extends getFunctionInputsOutputBody for Array-Types"
511edc7e17vrugeRevert "workaround for [https://trac.openmodelica.org/OpenModelica/ticket/3531 #3531]"
aff0026ed4Rüdiger Frankeremove DOS line endings
1ba1aac920adrpo- attempt to fix windows build again
0e0b9116c8Rüdiger Frankefix least size of static vectors and return value
1da7404e86Martin SjölundSome updates for mingw cross-compilation
36cabeec86adrpo- fix Windows build, for now C FMUs are broken
f401b32013vrugeworkaround for [https://trac.openmodelica.org/OpenModelica/ticket/3531 #3531] - added option inline function with array type (defaulte= false) - option will be irnored insidedynamicStateSelection
1c737e1827Martin SjölundTry harder to preserve whitespace
ab2a526e16Martin SjölundUse the INFO from the CLASS when updating program
ea546267cfLennart OchelAdd replace rules for clock expressions
d465e48753Lennart OchelReplace matching algorithm that is used by fixInitialSystem
186cf15070Niklas Worschechfix for external C functions an string arrays in cpp runtime
460260f95fMartin SjölundMake 2.0 ME FMI the default
b14997c53bMartin SjölundCompile MinGW FMUs with static libgcc
c578a6be3bMartin SjölundFMU export changes
e89eaf5ae2Martin SjölundUse autoconf in the source-code FMUs
d77c3cff4fMartin SjölundMake colorNodePartitions tail-recursive
a9225b77f0RuedKamp-fixed simObjects also for VxWorks
ae2c200392RuedKamp-fixed simObjects also for VxWorks
1858edc35bRuedKamp-enable sparse solver only for vxworks
4be732e6fcRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9ef7f9061eRuedKamp-fixed simObjects also for VxWorks
f2791803f5RuedKamp-fixed simObjects also for VxWorks
0320fe7c7cMahder Gebremedhin+ Fix handling of complex equations so that we won't generate unecessary nonlinear systems.
b612c7ac32RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e6a9a5dc5fRuedKamp-enable sparse solver only for vxworks
b635a28dd1Lennart OchelFix mat file import for parameters
2af9d16528Lennart OchelFix start values for algebraic states
a14041dd0fLennart OchelFix analysis of over-determined systems
1f77ff2a57Lennart OchelFix start value dependent initial equations
51fcae41c3Lennart OchelMake module detectJacobianSparsePattern dispensable
90fe820ce7Rüdiger Frankeremove NULL to please gcc 4.4 and boost
36d2ed8a6dLennart OchelFix modelEquationsUC
ecc4f61035Lennart OchelStore all optimization modules in only one list
6880ebb4daLennart OchelMerge interface for pre/post-optimization modules
13a7f096b7Niklas Worschechremoved PreVariables class from cpp runtime
168aff96d0Rüdiger Frankeremove unnecessary dependencies from exported FMUs
291f55df5eMahder Gebremedhin+ Fixed handling of complex residual equations. We expand all complex residuals to simple residuals now.
0311246266Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b7a55c71c4Niklas Worschechfix for fmu instantiation in cpp runtime
bf9ac82048Per ÖstlundFix for Buildings.
91906e76a8Rüdiger Frankefix quotes
5e2e086cc7Lennart OchelFix type information of temporary variables
604f9170caRüdiger Frankesimplify XML output for clocks according to FCP-001
c2668175f9adrpo- add first prototype of FMI for Co-simulation - fix a typo in dassl.h
3598a1f69eNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
1e2fbd796bNiklas WorschechMoved write output classes of cpp runtime in DataExchange lib
11fb0e937aMartin SjölundFix for C89
fb6950e123Per ÖstlundFix for Buildings library, #3506:
1034be47a9Martin SjölundUse equivTypes function instead of equality
728d95da3cAdeel AsgharAdded new API `removeComponentModifiers` and `removeExtendsModifiers`
fefe856a6bMartin SjölundFix OSX stack base on Mavericks
a498326c45RuedKamp-fixed typo
d9734be4cbRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ce4ab8c7a3RuedKamp-fixed typo
c9447a6c26Martin SjölundFix for old C standards in FMU Jacobians
acb946eac3Martin SjölundFixes bug in lookup of builtin classes
4d8edfa31aRuedKamp-add factory for vxworks
1edd09e599Rüdiger Frankeextend Cpp runtime with sub clocks
ceca57ec49Rüdiger Frankeextend FMI export with sub clocks
693d9cff90Rüdiger Frankeskip FMI initial and start attributes for alias variables
2490aa1ec5Rüdiger Frankedisable elimination of alias references for C FMI export
161ad391f3Rüdiger Frankeimplement direct memory access in Cpp FMI 2.0
5e6d738f1bRüdiger Frankeenable direct memory access with FMI value references
0d33c3b2d0Lennart OchelRemove redundant deep copy
f4a51e2213RuedKamp-removed unused variable, which caused an runtime error with msvc
f1c1c96987Rüdiger Frankeintroduce isFMIVersion10 check for old versions
525b6daa7cRüdiger Frankedeclare usage of boost::numeric::ublas explicitly
d172abda4fvwaurich- introduce alias eqs and no alias vars in CSE
30a76f91b6Rüdiger Frankeremove two unused libs from Cpp FMU build
4acff37eb7Adrian PopMerge pull request #241 from gossen/ticket-3520
712c8c356aRüdiger Frankeremove unused SimData and FactoryExport from FMU
db830e586aLennart OchelAdd description of flag newUnitChecking
3d8d346b6dLennart OchelRename function insertUnitinEquation
fe7b58c76cLennart OchelSuppress some warnings
7c390101e6Lennart OchelImprove error message
c1d6eb48b8Lennart OchelClean up indentation
0ac9894f5cfbergeroRemoving white space
ece74d0369fbergeroCorrect checking of range for derivatives
e71335cad9fbergero* 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).
afc37d0e13Rüdiger Frankereplace hash tables for pre SimVars with offsets
398dd55357Paul ScottFixed alias default and initial equation sub expression tag
dd7ca6ed4avrugeattempt: extends getFunctionInputsOutputBody for Array-Types
101b6b243cRüdiger Frankesmall fix to delay buffers
7c86a6a8e7Rüdiger Frankeuse std::deque for delay buffers (#3522)
d96c198267vwaurich- fix getNoDerivativePosition
8f2cd7e7b7vwaurich- fix for modified Pantelides
57cecad867Martin SjölundFMUs need to contain the info.json data
c5120f3da2vwaurich- handle empty systems in CSE
0f589ef15cMartin SjölundInclude dgesv in static source FMU external code
7c902c1de5Marcus Walther- fixed FMU start value behaviour
90cc19cdf8Marcus Walther- start values are now correctly set for exported FMU 1.0 ModelExchange
33b29ef19fRüdiger Frankefix integer once more
02c1d40be3Rüdiger Frankereplace lexical_cast with to_string (#3522)
4ca8547d01Willi Braun - fixed noEquidistant mode
e15a57ad8cWilli Braun - fix noEquidistantGrid mode of dassl
a2254ab48bRüdiger Frankeuse C++11 builtin range based for loop (#3522)
27e6c56122Rüdiger Frankeuse std::hash to obtain thread number with C++11
608360da21Rüdiger Frankeuse C++11 std::unordered_map and set (#3522)
64ec735f4eRüdiger Frankereplace boost list_of with C++11 builtins (#3522)
069f34ed12Lennart OchelFix replacements for NORETCALL in when equations
93d872f3e2Martin SjölundRemove readline dependency from OMCompiler
ab452a3546Rüdiger Frankefix usage of trunc
bc3311a9c6adrpofix msvc build
0425c8f4d7Rüdiger Frankeintroduce namespace omcpp for more C++11 (#3522)
5da3ed26bcvrugeextended the case tuple() = tuple in simplfyComplexFunction for array types in lhs/rhs
5c33b207b7vruge Inline.inlineCall and forceInlineCall return DAE.TUPLE for more than a single assignment statement
111757f3a9Rüdiger Frankere-add a used boost include
730289784cRüdiger Frankealign using boost::get with usage of tuple (#3522)
0b4c125070Rüdiger Frankereplace using namespace std with std::abs (#3522)
014017110eRüdiger Frankeremove unused boost includes and usings (#3522)
d5a8183182Willi Braunimproved extrapolation of non-linear initial guess
b04f8ee79eRüdiger Frankemove FMU solver factory include to solver creation
f65e383894Adeel AsgharUpdate component comment when component contains dimensions.
7f4c0010e4adrporemove deleted files from cmake makefiles to please the msvc build
82c9ab7ddcMartin SjölundRemove the dependency on expat from FMUs
a5e016e84bMartin SjölundCheck that we do not revert 3rdParty by accident
5bcd7ee53dRüdiger Frankemove solver creation to specific Cpp FMU system
4bf245a651vwaurich- fix for simjacCSRToCSC
b0724337bchudsonMerge remote-tracking branch 'origin/master' into pullrequest
08c5320ea9Niklas Worschechfix for csv output in cpp runtime
03f5aaf5f1Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b5101ef99dvwaurich- activate modified pantelides
56d9b006c1vwaurich- get smaller MSSS for pantelides
29ef347b3aRüdiger Frankeuse C++11 to_string for numeric values (#3522)
8907348a75Marcus Walther- simple fix for array slices - typo fixes for array operations
57d7bf3785Niklas Worschechsimplified inheritance structure for Modelica system in cpp template
5b15507c75Niklas Worschechsimplified inheritance structure for Modelica system in cpp template
3c5fbea49dRüdiger Franketypo in previous commit
f5433093d4Rüdiger Frankefix new WriteOutputVar for boolean aliases (#3524)
33ae1ea7a2RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
49554e71c8RuedKamp-fixed error with boost::minmax for c++11 in msvc
cc068045eaMarcus Walther- fixed windows build
b99d59c5d4RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
85dda17c7aRüdiger Frankere-add boost lib to FMI export prior to C++11
abf63499a8Rüdiger Frankeremove unused FactoryExport from FMU
6d1f0254c4RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a51c28ce36Willi Braun - fix symbolic jacobian generation in dynamic state selection
ab4c771395Rüdiger Frankemove xml parser include to XmlPropertyReader
4eede182a8Rüdiger Frankeuse C++11 minmax_element (#3522)
cfc7caf9d1Lennart OchelClean up match pattern
3b89fb7462Rüdiger Frankeremove duplicate includes from FactoryConfig.h
9ea2fe6f07Rüdiger Frankecompletely remove boost libs from FMI export
8beab334fcRüdiger FrankeLocalize use of boost filesystem and program_options (#3522)
8d2f20e820Martin SjölundFMU support for OSX, which does not support cp -u
1bb207d00dMartin SjölundReduce stack space
300f04e8a5Rüdiger Frankeremove dummy LoadLibrary from static Cpp runtime
ea09fa1eceMartin SjölundUse va_copy when re-using a va_list
c7fdce2cddMarcus Walther- cpp runtime logger is now enabled on windows systems
657b5ca095RuedKamp-added FactoryExport for VxWorks
6166cfd5b0RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
83daf1ecbaRuedKamp-added FactoryExport for VxWorks
b2c8ddd11fRüdiger Frankeremove boost_filesystem and boost_program_options from FMU (#3522)
d462a69050Rüdiger Frankemove Logger call from generated code to FMUWrapper
5ad900c627Rüdiger Frankeremove unused XmlPropertyReader from FMU build (#3522)
860b463702hudsonMerge remote-tracking branch 'origin/master' into pullrequest
19bd533d89Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
5a22ed334fNiklas Worschechrestored fix for hard coded start values in cpp template
56438a0916hudsonMerge remote-tracking branch 'origin/master' into pullrequest
8c2f3ec733RuedKamp-removed klu includes
fe751df68fMartin SjölundInit Boehm GC (necessary for OSX)
aa32aa8566RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
308b0b104aNiklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
9576b56651Marcus Walther- fixed windows build
4ca01e4931Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
6544142facRüdiger Frankefix StaticOMCFactory after previous commit
e7c2e15d60Rüdiger Frankeseparate out static solver factories (#3522)
63842aa661Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a6932e46ddRüdiger Frankeremove remaining use of boost::multi_array (#3522)
1362549a78RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
96a1c7828dPer ÖstlundFix inst of Annex60 (and maybe Buildings).
7bd5b8cde0RuedKamp-added Broyden's method
11d211cc71RuedKamp-added Broyden's method
8ee84dfcf5RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3f4cc57edeNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
137767a3d3vwaurich- restructured and extended graph dump of bipartite graphs
1ebf92014fRuedKamp-fixed typo
08df195dc9RuedKamp-fixed typo
c12fd20b25RuedKamp-fixed typo
a1cfadd5d7RuedKamp-some changes for vxworks
085c2c7dcfRuedKamp-added Broyden
a027236a2fRuedKamp-added Broyden
31050196e3RuedKamp-added Broyden method
948a483cc9RuedKamp-reverted original newton method
d17b30006aRuedKamp-removed klu
3a9ccebcb0RuedKamp-reverted
3ad22ddf85RuedKamp-actually nothing changed
e64c91371fRuedKamp-added broyden solver
22f67d2a02RuedKamp-added using boost::dynamic_pointer_cast;
f4f5eb0313Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
0c1e4fb1d3Rüdiger Frankeextend FMI2 Cpp interface with clock interval
9c388fa76aRüdiger Frankerevert Cpp Newton solver to version f23c4961
3844b740bfgossenAllow to instantiate inherited classes
88d0d6f217gossenAllow to not throw error if qualified class hasn't found in Absyn.Program
af50501702gossenRemove unused arguments from function Interactive.getClassesInClass
96d6e28cbcgossenIn function CevalScript.loadModel replace recursive call with List functions
8505a24a19Rüdiger Frankefix getClockInterval for integer clocks
f62e535c5bRüdiger Frankeremove $PRE replacements that don't apply
b1f63b615dRüdiger Frankeuse nice names for $PRE and $CLKPRE in C and Cpp runtimes
463e40ecb0Rüdiger Frankechange order of clocked variable attributes
b71ca8a524Rüdiger Frankemark clocked variables discrete
f1a843359cRüdiger Frankemake clockIndex optional instead of 0
4002cbdf53Rüdiger Frankereplace $PRE and $CLKPRE with nicer names (cf. $DER)
fc6c659c83Rüdiger Frankeremove obsolete workaround
308ffab2f4Niklas Worschechfix for uninitialized xmlreader and hardcoded start values in cpp template
89c5e8ce99Niklas WorschechMerge branch 'master' of https://github.com/niklwors/OMCompiler
524ce11471Marcus 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
fbb8233806Rüdiger Frankepopulate clockIndex to FMI 2 modelDescription.xml
3792fac23cNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3a9e48eeb1Lennart OchelAdd support for interval operator to c runtime
38d9d5e57eNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d248f480a1Niklas Worschechmove WriteOutputVar class from MatFileWriter to Writer removed unnecessary typedef's
8cbbb37941Lennart OchelRemove outdated QSS implementation
cc63c1f247Marcus Walther- fixed std::shared_ptr and boost::shared_ptr mixing - fixed undefined reference to return value in WriteOutputVar
e1a4c64d5bPer ÖstlundFix for attribute propagation with redeclares.
f9ed55d4bfMarcus Walther- added some more array operations to c++ runtime - fixed some issues with array slices
b3391fe1c5Niklas Worschechfix in intialization routine, if variable is a negated alias
e26b2abc4dNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3c084f6741Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f34585c80eRüdiger FrankegetClockInterval returns 0.0 instead of 1.0 if unknown
ef387e7ebcRüdiger Frankeuse implementation of SES_IFEQUATION from C for Cpp
51ba47061fRüdiger Frankeadd basic clocks to FMI modelDescription.xml
994c933849Lennart OchelMerge remote-tracking branch 'fbergero/fmu-experimental' into merge-fmu-experimental
17c6d82421Lennart OchelFix some typos (#236)
1e22e09652Per ÖstlundAdd new flag --useLocalDirection.
91f79f8b5dWilli Braunadded debug flags for differentation
cb8e341382Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
2a6e75635cNiklas Worschechfix for negated Alias Vars in write output routine
22a42a4b21mahge+ Fix #2933. Fix type informations for nested array reductions
db371fa848Willi Braun - use functionTree from initDAE further for simDAE
cde0a70f1cLennart OchelTry to fix floating point exception
ad77454e23Lennart OchelRevised substitutePartitionOpExps and substClock
46923d2154Lennart OchelRevised function substituteParitionOpExps
0d1a7a82feLennart OchelCleaned up SynchronousFeatures.mo
244b2a2709Lennart OchelAdd more TRACE instructions
6bec458803Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
176b400700Lennart OchelAdd missing TRACE instructions
748021d468Lennart OchelFix indentation
b297e3a0e1Rüdiger Frankecleanup creation of non-clocked variables
d404391e27Rüdiger Frankesupport clocked states of any base type
c7257cc6d7adrpomore fixes to #3503, fix clock substitution
55125bf2ceRüdiger Frankeimplement interval operator in Cpp runtime
c1357acebdRüdiger Frankefix initialization of clocked variables (#3497)
3e6f284f65adrpofix more typos
8447b1bd07vwaurich- store crefs for protected variables in visual.xml
3370770659Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
213ddae555adrpofix typo in function names
96486005e5fbergeroMerge with master
9608520fd2Lennart OchelUse module "Error" instead of print for errors
cea00ab48fLennart OchelAdd more helpful error message
1eff681c37Federico BergeroMerge pull request #1 from OpenModelica/master
93652648e7adrpomore fixes for #3503, handle shiftSample arguments better
ae1a72c736adrpomore fixes for #3503 - fix subSample, superSample argument checking - fix to allow Clock to be used as a connector
e78c79d901Lennart OchelUse constant emptyInputData
0b7d5fb789Lennart OchelSimplified record DIFFINPUTDATA
7e6ad026afWilli Braun - fix diffInputData for zero differentiation
9079fd27f1Lennart OchelAdd missing brackets to cast expressions
2f0f007dbbmahge- parenthesize expression is div()
eb0d20985eNiklas Worschechfix for addContainerToWriteQueue
bfa33db853gossenIn Lookup.lookupConnectorVar get inner/outer prefix for first ident
9ef520ebd1Lennart OchelFixed module simplifyComplexFunction
e02e8c96bfgossenUse ConnectUtil.componentFaceType function for detecting top level variables
c43ea9289agossenReplace recursive call to CheckModel.countVarEqnSize function with List utility function
c5ce437f2badrpofix for #3503, prefix clocks
3a9498464eNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e88115af61fbergeroAdding dependencies for NL System RHS
0610df2e21adrpoadd the new files to the msvc cmake files
fb0df3440cadrpofix windows build and source fmu test on gcc
fb7644bdf6Rüdiger Frankeattempt to fix #3502
5dfc9cded4Rüdiger FrankeAbstract naming of previous variables
794b44452eRüdiger Frankeadapt whitespaces to existing tests
b0d49ab819Rüdiger FrankeExtend FMI2 export with DiscreteState
0a6d92e255Rüdiger FrankeIntroduce clocked state variables
e28a98faa7adrpoupdate 3rdParty
23515467b3adrpofix windows build
5a5e52f3f4Rüdiger FrankeCpp update for initialization of clocked variables (#3497)
9e5b3b0d65Rüdiger Frankedistinguish clocked variables during initialization (#3497)
886ec2b176fbergeroIntroducing the GetSpecificDerivatives in the FMU and the corresponding debug flag
b570c96de5fbergeroMaking the function TR
fae5a0ac1eAdrian PopMerge pull request #229 from lochel/PlanarMechanics
7212ce4b96fbergeroMoving FMU Experimental outside QSS and into SimCodeUtil
2f9f8a7324Lennart OchelFix missing brackets for rhs of division
4b5a985594Lennart OchelRemove useless line of code
74bab69704Lennart OchelFix dump of sparsity information
175945493efbergeroFirst working version of the FMU extension
8734a496e5vwaurich- rewritten ResolveLoops.partitionBipartiteGraph
1363820eadLennart OchelTry to fix #3482/#3498
10f5341502Per ÖstlundFix for #3479.
2ed993a62aMartin SjölundAllow generation of source-code FMUs
4cdc91bcf8Lennart OchelImproved some error messages
7bf48ba72dmflehmig- Added some german translations of error and warning messages. - Small cleanup in flag description.
62eff23216adrpoupdate 3rdParty submodule
4dfa16d8bbadrporemove tabs
09dea26142adrpofix msvc build, ansi C and cmake files
eda1836bf6Rüdiger Frankeimplement clocks in Cpp FMI2 interface
b021f4a3ddRüdiger Frankeadd clock accessors to Cpp model
92cf27fa43Martin SjölundUpdate ModelicaExternalC for Noise library
8ed87db689adrpofix gcc build
29aa22f276Lennart OchelRemoved unused variable
2602d04a96Lennart OchelSpeed up initialization
75feda9cf7Martin SjölundChange simulation_input_xml from C++ to pure C
672f53e057Martin SjölundRemove one more C++ hashmap
ca9109b874Lennart OchelKeep also removed equations of empty eq systems
7c88a18b3cLennart OchelRevised implementation of analyzeInitialSystem
a030088e56Martin SjölundChange implementation to fread instead of getline
f0f7bc97f5adrpofix msvc issue
1c35b32d5aadrporemove bad free
3ba85d73d6adrporemove tabs
6f05b75f4aadrpoattempt to fix the windows build
4a406ed4b6Martin SjölundIntroduce uthash to the XML reader
0283c7b7f5Martin SjölundRemoved some C++ features from the XML reader
9e822e78cbLennart OchelDecompose exectStat for initialization phase
42a54d3d13Marcus Walther- boost root is now only passed to cmake if it is set to something != ""
1aff8213a8Lennart OchelOmit some unnecessary parenthesis
9913bac06bLennart OchelGenerate c code with less nested brackets
482b658b29vwaurich- remove invalid comment section
18a82cf047vwaurich- clean up vectorization for trunk
21d79d8f0dMartin SjölundFix logic error for SystemImpl__removeDirectory
6f37672075Marcus Walther- fix for GCC 5
f317b8bcceLennart OchelUpdate .gitignore file for java_interface
79cd7cacdeMarcus Walther- try to fix OSX Cpp-Runtime Job
5fd45cfe4cLennart OchelDeactivate module constantLinearSystem
5119eb72bdMarcus Walther- try to fix OSX Cpp-Runtime Job
88785c86edLennart OchelSimplified implementation of execStat
30fb32ef76Martin SjölundReduce the number of dependencies in FMUs
bf00971054Lennart OchelAdd mssing Jacobian types
e5e550e4bfLennart OchelFixed definition of StrongComponent
a378a1ab95Marcus Walther- try to fix OSX Cpp-Runtime Job
bd69748132adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
87c24d8e81adrpoupdate the relative path to Compiler directory
ea9b035f5eRuedKamp-added initialization of pointers
d353fa6f23RuedKamp-changed cycletime for vxworks
a5e1cee0cbRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9e3866dd1badrpofix windows build
5d714dc32dRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ed9ce6f734Lennart OchelRemoved initial equations from simulation system
c181c4a78eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
6af90d9360RuedKamp-added initialization of pointers
210bf97ee2Marcus Walther- "using namespace::std" now depends on compiler
3a20542368Marcus Walther- resolved some warnings and namespace issues
919c27ee9aMarcus Walther- resolved some boost namespcae problems - added c++11 option to autoconf
e81337e27cMarcus Walther- moved property inclusion to modelica.h
2ea6a5abbaMarcus Walther- fixed namespaces::std issues
d0cef12fc8Marcus Walther- removed some empty lines
4d33f4770aMarcus Walther-reorganized some includes
8c752627deMarcus 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
116b7c73fcMartin SjölundMoved the location of java_interface
c71d1aeda2Martin SjölundDo not override the user's --std choice
8c0b06e548Martin SjölundAllow the use of package.order
f9b879fcc4Rüdiger Frankeevaluate Cpp events at final time as well
326a2f5610Rüdiger Frankerefinements to Cpp synchronous support
732ac5dc55Ruediger Frankeremove virtual qualifier for hpcom
fffbbaf610Ruediger Frankeinitial version of Cpp synchronous support
1f2a731a43Lennart OchelTry to fix ticket 3477
c5706c47e2Lennart OchelAdded differentiation rule for start values
c835a1d83eNiklas Worschechfix for getfreeContainer in writer class
3fb3c9b12fNiklas Worschechfix for merger error in cpp template
9aa4b65ae3Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
19c8d32899Niklas Worschechchanged output method uses xml file to pass variables from simvars to output routine
6b5d3a2c74Lennart OchelFilter const when conditions within shared object
88a65ee3afLennart OchelFilter constant when conditions
aca0480fb5vwaurich- fix for evalAllParams
4a58ffa05dMarcus Walther- removed wrong brackets
2fa610a1eeMarcus 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
4a959d0959Marcus Walther- duplicated ModelicaLibraryConfig for gcc and msvc
ef8b4ae616Lennart OchelFixed ticket 2337
a78d281e05Lennart OchelCleaned up Differentiate.mo
ad14fcb8eaPer ÖstlundFix for #3473.
b384418abdMarcus 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)
5e4b2b110eLennart OchelNew flag to dump functions
ee793f0c26RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b33dc5a5b6RuedKamp-changed cycletime for vxworks
0ed9bc8eb8Lennart OchelAdded index reduction to optdaedump
56804f2550RuedKamp-fixed typo
95e6533086RuedKamp-commented out klu
0b32c47f68RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e86e3e9c9aRuedKamp-commented out sparse solver klu
dfdabf30e9RuedKamp-changed settings for vxworks
e2767e6a48Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9c70b1b19cNiklas Worschechfix for external C Array arguments data pointer
72fac42ec1RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
76a8d190edRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
bbce7feaf6Lennart OchelAdapted optimization modules for Jacobians
9db05a8c7eRuedKamp-changed xml path for vxworks -added string to simVars for vxworks -changed default settings for vxworks
e7e6f99b76Lennart OchelAdded new backend module "simplifyAllExpressions"
4fc9dfb3baRuedKamp-removed some obsolete stuff
fcb03b16e0RuedKamp-added define for Vxworks
9318f20822Marcus Walther- fix typo
12df3f8ee3Marcus 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
8453937246Niklas Worschechfix for start index for array creation in cpp template
ffb9197825Niklas Worschechfix for createArray in cpp template
f49a665badNiklas Worschechfix for start index for array creation in cpp template
e44b65be54Lennart OchelExclude removeInitializationStuff from
a59dc08e11Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
dc45f54a70Niklas Worschechfix for createArray in cpp template
b7dbd4a85cLennart OchelMoved some optimization modules
01d3cd1d76Lennart OchelMark assertions that are triggered during initialization
805ce17e43Lennart OchelFixed ticket 2659
76217d26e1bernhard ThieleFixed array dimension error
f9eb551eb2bernhard ThieleAdded some missing start values
8d8549fdccLennart OchelAdded missing descriptions for opt. modules
707bc0b083Lennart OchelCleaned up BackendDAETransform
0de2ae0c4aPer ÖstlundFix for #3467.
0ad7abbd85Marcus 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)
ac0ef81b85Marcus Walther- removed $-sign from variable/parameter names in modelDescription of c++ runtime (FMU 1.0)
058d92ceafMarcus 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
e6cfb0d757Rüdiger Frankedisable erronous dimensioning of array (#3464)
1663998379Adeel AsgharCopy the required binaries for FMU. Display information about state when fails.
f71d5c4535Rüdiger Frankeavoid duplicate definition of Cpp alias records
a23d238e11Lennart OchelAdded missing options to potOptModules ...
bf8a3b9934Lennart OchelAdded initOptModules to documentation
827c7a92d2RuedKamp-added string Vars to simVars for VxWorks
75935f471dRüdiger Frankeredo yesterday's Array commits after merge 31041f6
381292290aRuedKamp-fixed merge conflicts
80f4a6531dRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e71411d001RuedKamp-some changes during intialization of linear algloops -some changes in default settings for vxworks
0ea0def39fRuedKamp-changed to broyden's method
8749018535RuedKamp-fixed typo in "newton"
d0b65ef847RuedKamp-added bool for initializiation
21527ac0a8RuedKamp-added blas and lapack methods
6158667796RuedKamp-added Newton Solver for Vxworks
608f05bc4bRuedKamp-added sparse solver
62659ebda8RuedKamp-changed to broyden and added sparse linear solver
cd20244e83RuedKamp-fixed bug with zero states
dc6ee4f055Per ÖstlundBootstrapping fix.
28fda15a2dNiklas Worschechfix in cpp runtime for XmlPropertyReader and fmi export
31041f6ecdNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
eeef9c426dNiklas Worschechfix for build of shared DataExchange lib
71012083adLennart OchelFixed #2763
a2f905b9caRüdiger Frankereplace dynamic boost::multi_array with new/delete
483b18adc1Rüdiger Frankereplace static boost::array with built-in array
e19799fc64Marcus 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
442b07a6deNiklas Worschechfix for precompiled header for msvc cpp runtime
2ed0fcd7d5Niklas Worschechfix for load ini xml file with msvc for cpp runtime
f8ebb31b43Niklas Worschechfix for precompiled header for msvc cpp runtime
1a4a35798eNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
967f532aadLennart OchelRemoved match statement from removeUnusedFunctions
b786010b49Lennart OchelAdded dae type information to post-opt ...
edba84e7a2bernhard ThieleAdded support for timeInState()
4597a3a5ebAdeel AsgharHandle case when baseclass not defined.
8cbf8b3581Rüdiger Frankedereference system from when equation in alg loop
e785f3b5b9bernhard ThieleAdd support for ticksInState() op
cd7c5dc18dbernhard ThieleRenamed misleading function name
1dff76a87cRüdiger Frankecleanup Cpp daeExpBinary (#3458)
d78c1bfa80adrpofix for #3458, proper type in DAE.MUL_MATRIX_PRODUCT
94be67b295Rüdiger Frankeimplement Cpp cast_array
d8285af801mahge- Minor explicit parmodelica fixes - consistent library naming - add cmake compilation
e376889902mahge- Fix parmodelica automatic parallelization - Fix function signatures - Consistent cost handling - Fix makefiles. Update CMake rules
8de5c5e6a7Martin SjölundCheck hwloc exit status before using the data
ef0a90639dLennart OchelFixed removeUnusedFunctions
c14ac39896Lennart OchelAdded config flag ...
56d186b60dLennart OchelSeparation of back end transformations...
523217eb68vwaurich- new +d=evalOutputOnly feature
00ba1c4e99Marcus Walther- removed unused parts of init.xml-file (cpp runtime)
d5feda678cMartin SjölundMake the gettext targets start working again
b135ff80cftbeuFix typo in message
1eda356a7dMartin SjölundWhen merging annotation, consider the order
3b35f139efbernhard ThieleLess intrusive wrap hack
e444b71eeaMartin SjölundHandle delete+whitespace+add better
456e413431Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f27e16bc3cNiklas Worschechfix for load ini xml file with msvc for cpp runtime
326bdaac6avwaurich- new evalAllParams implementation
83ee71a691bernhard ThieleActivated wrap-hack for SMs
a2fb46584aRüdiger Frankeresolve name clashes with built-in math functions
ed38335895Marcus Walther- added missing type (array of enumerations)
2523b1becdNiklas Worschechfix for logger dll export in cpp runtime
8717b8eef4Marcus Walther- removed unused boost_export
f23c4961adMarcus 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"
631897c964Marcus Walther- hpcom levelfix scheduler is now available in combination with openmp
494b8d6791Per ÖstlundFix for #3421.
555db1445aMartin SjölundDo not allow 2D arrays in for loops
1ecd285b00Martin SjölundFix tail recursion (#3448)
260aeb544bMartin SjölundFixes for stack overflow detection
ceb197503bPer ÖstlundFix for #3409.
0e43de5952adrpofix #3444 - show only real numbers with 4 decimal digits
d68413f838Marcus 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)
1322e7704eadrpoadd 1.9.4 version
1dae48da7dadrpoadd 1.10.0 version
f7a9b467cagossenFix bug #3327
deca16e80dMartin SjölundHandle only removals when merging text files
2ca32d44f7Marcus Walther- fix typo
06ce3b8d3fhkielFix system() call by continuing to wait if EINTR is received from child process
7c85c2ebbbRüdiger Franketreat reductions to empty connection sets (#3430)
83ed62aae3mahge- Check and exit if there are no valid OpenCL devices. - Fix makefile.
5e4151e9dfAdeel AsgharAdded new API `getInheritedClasses`. Returns the list of inherited classes. Better than using `getInheritanceCount` and `getNthInheritedClass`.
e33279aa3cadrpoMerge upstream changes
38b8a98c18adrpofix for ticket #3444
6f0b7a70fcadrpomore fixes for #3430, handle both lists empty
4300bd200dmahge - Fix inculde path for Intel OpenCL - Fix include directory for build - Disable extra timing outputs
d78c686c48Martin SjölundUse class info for inserted classes
19b35e19eeRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
20a6b173cfvwaurich- dont care about dummystates in plts
6fe518d79aPer Östlund Fix for #3386:
cdb08e09a8Adeel AsgharFixes #3442 Also fixes the make clean. Use $(OMBUILDDIR).
7b9a6c997fMartin SjölundHandle diffs better when there are only additions
3632351366vwaurich- make limit for plts configurable
5490591ea2RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
385a51dff3mflehmig- fixed newline bug
c2c3d4d462RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
299d7170d5RuedKamp-some minor changes
c5a5c81042adrpocopy recursive
c97eca9bc9adrpoproper include directory for sundials
a1671c506fadrpoadd more sundials dependecies so parallel make works
3a5180c43dNiklas Worschechfix for missing FactoryExport include
14b86ba694Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c3cc02de79adrpocomment out the search for libsundials_arkode
6c80f5f36cNiklas Worschechremoved sundials includes from FactoryPolicy from cpp runtime
77249d4640adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
865e87c23aadrpocompile 3rdParty/sundials on Windows during build
9a1798243dNiklas Worschechfix in cpp runtime isConsistent method
27d04a518dNiklas Worschechfix in cpp template for wrong sparse pattern index
c4b6d782f4Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c542205025Niklas Worschechfix in cpp runtime isConsistent method
a5fb0ef4a7vwaurich- interrupt for-loop eval correctly
a54318fbe0vwaurich- interrupt eval forLoops if nothing is evaluated
52e1cc8fd6vwaurich- constant call-types are not always evaluated
f252d1fac8vwaurich- remove Repl for const funcCalls
d1ecf33d5bvwaurich- fix non-evaluatable for-loops
91fa0e7eefvwaurich- fix plts,eval for-loops,eval params
477db3ca39Lennart OchelFixed implicit declaration of function debugDouble
c4ec9b3b3eMartin SjölundAdd Windows ifdef's for stack overflow
e1d541a8e8Martin SjölundDependencies for array dimensions in functions
7f30078699Martin SjölundOnly guard against stack overflow in the topmost ceval call
3fd5375595Martin SjölundAdd stack overflow checks without signal handlers
d8ff3e0d6dMartin SjölundTry to fix OSX install name path
8b93f29f4bLennart OchelFixed function createVars
7c20b57cadMarcus Walther- preserved "=" if the argument was not replaced
355aa82252Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d115f8bce5Marcus Walther- fixed leading "=" in result file if OMEdit is used - removed @CMAKE_C_FLAGS@ from config file
c242492f2aMarcus 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"
44eef17e37Rüdiger Frankesmall cleanup of stream implementation
1a782bb708RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d6f4cb02aaRuedKamp-some changes for sparse matrices without lineartearing
32a85cdae2Niklas Worschechmerged common folder
050c0ba83cNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3ba9138e98Niklas Worschechfix in cpp template for wrong sparse pattern index
ef238a6303vwaurich- add SimCodeUtil.simJacCSRToCSC
7075c87e61Niklas Worschechfix for wrong ublas matrix indices removed not needed files
79df0142d3Niklas Worschechfix for wrong ublas matrix indices removed not needed files
1213c368d1mflehmig- Error message handling in Cpp Runtime, fixes ticket #3429; - Merged constructors of class ModelicaSimulationError into one.
e18a45ae32Rüdiger Frankereduce inStream equations for zero flow (#3430)
7a8b275d95vwaurich- fix 4bba, fix setRecordTypes for tuples
04b8271446vwaurich- remove debug output
e58a9beea0vwaurich- remove 2nd preCalcStart
0da7c2bd48vwaurich- merge commit
fad9fe29bbvwaurich- fix for EvaluateFunctions.getStatementLHS
b19dc57700vwaurich- enhance partFuncEval for initValues
15d68519bavwaurichsingle eval of knvars
2d51ecfa73vwaurich- evaluate funcCalls in start-values
6e76cee652Marcus Walther- changed the default buildtype for linux back to RelWithDebInfo
890f7b4d10hudsonMerge remote-tracking branch 'origin/master' into pullrequest
8efdf53089Niklas Worschechfix for missing ModelicaUtilities include in cpp runtime
68b4a6027cadrpoadapt code to agree with ANSI C for the msvc compiler
10c501bf86Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e9df6e7613Niklas Worschechfix for cpp runtime release msvc build and msvc precompiled header
a481fe6a68mahge- 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).
e747152e2emahge- Fix #3335 and #3336 - Update assert defines - Fix boxed function issues for functions with parallel variables. - Fix arg types for parallel arguments
010b686233mahge- Fix #3334 - Update/fix code generation of parallel functions.
fec5e5b91dmahge- 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).
17d8596bf1mahge- Fix #3198. - modelica_string (void*) expected. Not const char*. No implicit conversion in C++.
2683a17cbbmahge- ParModelica fixes. - Move global declarations to the source file.
6c17d0c541vwaurich- remove debug output
e83657d8dcvwaurich- new module evalAllParams
b6bb89dfa4Marcus 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
76858d6babgossenPrint error for clocked continuous systems
cdf4d68362gossenAdd support for Boolean clocks
43e12c93f8gossenFix clock partitioning in encapsulateWhenConditions
60202fe1f2gossenDump partitions info in BackendDump.printShared function
81dc5b007egossenEmit results before clock equations fired
da4018549dgossenSave pre values for clocked variables
cbfc72333agossenFix typo
d9175e1d34gossen"previous" operator support in C simulation runtime
9fa1b91b2cgossenSupport for previous operator in SimCode
e090c54aebgossenClocked vars simcode translation changes
58bd3ab2d4gossenImplement interval Clock support in C simulation runtime
9ca046fd4egossenImprove clock partitioning
96c79085a0gossenRemove duplicate function MMath.printNumber
3f8214dd87gossenExtract functions from prefixed_simulation function
a0f09a7fb9Rüdiger FrankeTweak pass by reference in Cpp function closures
cd36c55594Rüdiger Frankeremove unspecific metatype from Cpp function closures
e9cd5237b1Marcus 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
e8a399455bmflehmig* Typos, Indention, Logging
ec7b8ac2e3hkielignore generated files and dirs
d96bc58211hkielbump to current version
614402501cMarcus Walther- fix for array allocation in hpcom profiling
3dc3315e43Marcus Walther- fixed wrong build type of cpp-runtime
4535b26413Marcus Walther- simple fix for hpcom profiling
cb5014a925adrpopropagate buildtype on Windows for bug #3426
a96b59aff4Marcus 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)
02bc3aa012Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f94d39ed47Niklas Worschechoptimized isConsistent in SystemDefaultImplementation
fcbfeb5331Marcus Walther- fixed profiling in hpcom
a783b5ebd6Marcus Walther- integer-function should now work according to modelica specification (cpp runtime)
e683e8bfcbRüdiger FrankeQuick fix for div operator
e03b065398Per ÖstlundRevert fix for #3386, since it doesn't work correctly.
cf16403b07Niklas Worschechfix in cpp template for wrong StatArray dimension size added therefore a dimension check function in Expression.mo
1bdca5e78cNiklas Worschechmerged OMCompiler/Common
6b681c4666Niklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
fe6d8edd7bNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f6a3cc1eddNiklas Worschechfix in cpp template for wrong StatArray dimension size added therefore a dimension check function in Expression.mo
9138159eabMartin SjölundFix for return in try-block
1cb6082469Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3f56facb75Niklas Worschechfix in cpp template for allocating Jacobian
076671c581Niklas Worschechmerged OMCompiler/Common
fc527e92c9Niklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
52a9c9309aNiklas Worschechfix in cpp template for allocating Jacobian
f70ec8bd76RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c30bade9f3RuedKamp-updated VxWorks makefile -some experimental changes to improve sparseMatrices
e47e0611baNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
1981ce9472Per ÖstlundSome List changes:
540a4646edPer ÖstlundChanged some unneccesary uses of List.find to List.selectFirst.
ccced530e3Martin SjölundUse faster addressing of arrays
395a4e727dRüdiger Frankeexploit type info available for function pointers
669dc8990aNiklas Worschechmerged OMCompiler/Common
879063bafcNiklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
0500ba250fNiklas Worschechmerged OMCompiler/Common
336b14a65aNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
605ae75452Niklas Worschechadded restoreOldValues and restoreNewValues to Algoop of cpp runtime to restore all alglopvalues during output routine
8c86132057Rüdiger Frankeimplement function inputs to functions
023bd80106vwaurich- function to dump simJac
629f329b8aPer ÖstlundFix for #3386:
9e20c7d937vwaurich- make try/else around orderExtVars
108a8453f8vwaurich- order external vars correctly
9c088a9adfNiklas Worschechfix in Kinsol if perturbed system matrix, system evaluation was missing after system was solved
7079463490Per ÖstlundFix for #3401:
820257d964adrpoupdate .gitignore with new template file
a504a6249aWilli Braun - fix elsewhen handling in BackendDAECreate
1654145f0dNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f79d9636e8Niklas Worschechadded initialization method for parameter equations to cpp system fix in Kinsol, function evaluation was missing after system was solved
32ed7bfc9dWilli Braunrevise isDiscretExp function for zero-crossings
45e4f5066cWilli Braun- removed most stuff that deals with WHEN_CLAUSES
e949cdd3afMarcus 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
92eaf4ad18Willi Braun -fix BackendInline.inlineWhenEq
afb23b09bdWilli Braun - fix replaceWhenEquation
98b6821bf5Rüdiger Frankechange import order for duplicates like crefStr
2d797bbfe2Rüdiger Frankeadapt Cpp terminate() to other runtimes
005f9dc905Willi Braun replace WHEN_EQ with WHEN_STMTS
46442658a8Martin SjölundRewrite using more recent language features
97de296ec7Martin SjölundFix for GCC 5.x
fed7fe571fWilli Braunfix variable transform replacements
e965b64ea4Willi Braunfix CPP-Runtime
8d63159d8cWilli Braunfix XMLDump output
108b0bd5d2Willi Braun - fixed Serialized model info
e7db13c225Willi Braunmore fixes to make when equation work again
88a5a6610aWilli Braunadapt SimCode and Codegeneration
e351ab13ebWilli Braunfixed module detectSparsePattern
69e92993c3Willi Braunfixed module removeSimpleEquations
d09df9ffbbWilli Braunfixed module encapsulateWhenConditions
d97b9f4cc4Willi Braunfixed module clockPartitioning
f7635bb3faWilli Braun- push further new when equation record
ce9bdb5e16Willi Braunstarted to remove when clauses
3a46e9d1b9Rüdiger Frankeadd treatment of tuple return with records
ce835a2c20Rüdiger Frankereduce max file size back to 684k in sanity check
8cf492e533Niklas Worschechfix in Ida, Ida did not stop if an error accrued in non linear solver
6fdcf3601fNiklas Worschechremoved BOM in Kinsol
5cf2b90b95Niklas 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
3d953f0628Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
4906ef49e0Niklas Worschechfix in Ida, Ida did not stop if an error accrued in non linear solver
6bcab709b3Rüdiger Frankeremove pragma once from main compilation files
c79c991cc4Niklas Worschechsplitted cpp template file throw exception if Newton stops with error Kinsol always throws exception if Kinsol stops with error
fc2558adefNiklas Worschechremoved BOM in Kinsol
52249f276fNiklas 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
ed2fbf807fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
03cb48d003Niklas Worschechsplitted cpp template file throw exception if Newton stops with error Kinsol always throws exception if Kinsol stops with error
44f0b9150aRüdiger Frankefix memory error in OMEdit options parser
23a483a99cMarcus Walther- Metis-Scheduler is now working if n was set to 1
7f2317642cMarcus Walther- Logger of cpp-runtime can now be disabled by passing an argument to cmake - removed a lot of logger output in FMUWrapper.h
85dbcb379fMartin SjölundDo not use a macro called time
2e38570883Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
49329bba59adrpoincrease max file size to 800k in sanity-check
ce556f3701Martin SjölundFixes for listFile
7180491cd9Rüdiger Frankeenable pull request for CodegenCpp.tpl
50ff4c2705Rüdiger Frankecherry pick initialization of record variables
9027f74ab6Niklas Worschechremoved BOM in Kinsol
68654dbd1aNiklas 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
630c7beb53Niklas Worschechremoved BOM in Kinsol
573d09bb02Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
887bfa485aNiklas 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
fd7495952dadrpofix bug #3291 - set default values for record members in functions
9f28039fe2Marcus Walther- forgot new getter/setter in global settings for FMU 2.0 export
f0b6faea12Marcus Walther- fix for new sundials-version in cpp-runtime
b5906fa4a4Marcus Walther- removed wrong enum forward-declaration - fix for new sundials-version in cpp-runtime
61b36136e0Marcus Walther- function arguments for the !WITH_SUNDIALS functions are now up to date again
12f2912dc8Marcus 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
3e376747b5Rüdiger Frankeimplement terminate() in Cpp runtime
5ccde2312eRüdiger Frankeuse explicit StatArray constructors and operator=
a892206ef9Martin SjölundMove threadData away from simulation data
2f482f2e6dRüdiger Frankesaveguard array copy operations against zero size
3917c8111dWilli Braun - add DIVISION replacement also for symbolic jacobians
1c2c804215Marcus Walther- removed debug output
21c6f3bd7eMarcus Walther- _AMaxColors is now initialized with 0, to prevent access to uninitialized value from cvode
d3a395374eMarcus Walther- added some helper functions to extract data from objects (getCompsOfMatching and getSimVarMappingOfBackendMapping) - HPCOM is now able to handle models with NO_MATCHING()
ef23054608Rüdiger Frankerelax precautions for wrong uses of StatArray
19060fd4e7Rüdiger Frankerename Cpp command line arguments
6ac54189ccRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ec27dd855bMarcus Walther- fixed a stack overflow in HPCOM
2d7e7249b4RuedKamp-enabled test for real time with msvc
9819b58213Marcus 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
a0f0122e49Niklas Worschechfix in Array getData and getDataCopy for segmentation fault
a037dd8471Niklas Worschechfix for missing include in FactoryExport of Kinsol
74d4e2f374Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c34f65ceceNiklas Worschechfix for missing include in KinsolLapack of cpp runtime
28f13edca8Marcus Walther- fixed FMU generation if kinsol is used as non linear solver
2d652462aeMarcus Walther- removed the old documentation stuff -> it's now part of the openmodelica-doc-project
e5cd1b4d11Niklas Worschechfix for missing kinsol_klu include in cpp runtime
6f0267d16fNiklas Worschechadded missed files for cpp runtime
f4ba1f47d4Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
de80e2bfc9Niklas 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
9d54400166Rüdiger Frankefree memory of strings from external C functions
9352ce6a8eMartin SjölundFix for OSX stack overflow check
f9a05a162aRüdiger Frankefix treatment of outputs of external C functions
a05d7975ccAdeel 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.
c8ffe0bcb1Rüdiger Frankefurther Array refinements
e182aade28Rüdiger Frankeadapt processing of outputs to recent changes
e2b32ce8c7Rüdiger Frankere-add processing of outputs of external functions
80fd0d6206Marcus Walther- updated the gitignore file - README update for Windows build of cpp-runtime - removed the unused --with-cppruntime-args
6732193336Marcus Walther- fixed some typos in configure - output directories for cpp-runtime libraries are now written into Makefile.env - changed README for cpp-runtime
078b80ae5cMarcus Walther- fix for autoconf of cpp runtime
354f8a23cfMarcus Walther- paramters for the cpp-runtime are now handled in configure instead of makefile
992f6e455dMartin SjölundLibraries are not needed for omc-no-sim
799bcc3307ptaeuber- fix bug in newton solver with fvec
3236596ea8ptaeuberintroduced dynamic tearing
e522fc2fcfAdeel AsgharDo not create empty documentation folders.
08f747ba8eMartin SjölundSkip the commit message sanity check
6443c248abRüdiger Frankefix implementation of delay operator
d2ac409a43Martin SjölundAdd hook for testing commit messages
b6c518b288Martin SjölundImprove check for long commit messages
6b6457c830Lennart OchelRemoved unused inputs to get cleaner interfaces
e05e21a35eMarcus 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
e427c5c10bLennart OchelRevised createFunctions
228800efc5Lennart OchelRemoved unused vars from createSimCode
50e2ca643fMartin SjölundHandle external string arrays better (fixes #3292)
8b6bf38595Rüdiger Frankefix assignment of pre values of Cpp arrays
c689bad04eMartin SjölundPrevent stack overflow for differentiateExp
6670be24beRuedKamp-bug fix in RTEuler
1e10ce245eLennart OchelFixed regression in BioChem lib
b985f3cbe0Rüdiger Frankemake FMU Cpp compiler optimization flag configurable in local makefile
ff736de64fRüdiger FrankeLet operator= of StatArray copy data like previous StatRefArray
bee37e0fabRüdiger FrankeFixes after first test round
1ffe2deb4cRüdiger Frankeadd runtime checks for proper use
3cf48567abRüdiger Frankefixes to previous commit
832c3beaabRüdiger Frankeextend StatArray to also work with external data
3027167a0dMarcus Walther- added missing return value to default implementation of peer solver
42f521d790Martin SjölundPrint string list default values in Sphinx doc
16fa18465aMarcus Walther- further fixes for HPCOM compare components
49ec8ae577Martin SjölundFixes #3395. Generate lhs crefs instead of rhs.
860b23c2a1Willi Braunchange variability for fmi 1.0 back
49a6e7ecddWilli Braunfix attribute name for causality
e3641b8ea4RuedKamp-some changes for vxworks
4a7ed5cb61RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
f4c643a1feRuedKamp-some changes for vxworks
59be825341Martin SjölundAdditional messages if files do not exist
6fd7783b9fMarcus Walther- fixed MSVC build if openmp was not found
236b21bcfdLennart OchelRemoved obsolete initial() testing
cebbe0416cMartin SjölundFix #3380: Handle save() for short class definitions
57a269ecf7hudsonMerge remote-tracking branch 'origin/master' into pullrequest
72c5b339cbMarcus Walther- fixed Intel TBB build with c++ simulation runtime - HPCOM Task-Graph validation should now work correctly
21ff51970eMarcus Walther- peer-cmake should now work if no openmp was found on system
cc84d1c368Marcus Walther- peer-cmake should now work if no openmp was found on system
bd115c168dMarcus Walther- removed some unused code, to stay below 684k and fix the sanity check
259fa727f9Marcus 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
95c1f364a6Marcus Walther- peer-cmake should now work if no openmp was found on system
bd201bdc4dMarcus Walther- peer-cmake should now work if no openmp was found on system
4cd88de65cMarcus Walther- removed some unused code, to stay below 684k and fix the sanity check
ef76cd6ec4Willi Braunonly evaluate the model if something changed
57646056a4Marcus 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
177055d7a5RuedKamp-added handling for singular matrices
927783ca5eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b4d1655bedRuedKamp-commented out boost::math::isfinite for vxworks
fd6076ef33RuedKamp-commented out boost::math::isfinite for vxworks
e7091b642aadrpo- fix conversion script for Annex lib to handle bad input
494d5cffbaadrpo- check for None in conversion script
cc94341a92adrpo- print the file we convert
e43f7a00abNiklas Worschechfix in umfpack solver, only include umfpack.h if umfpack was found
ebe75f6845unknownadded correct numeric bindings version
35e39f7b42Niklas Worschechadapted umfpack solver of cpp runtime on new Matrix interfaces
fbe1b9dd1fNiklas Worschechremoved wrong version of numeric bindings
3bea645486Niklas Worschechfix in umfpack solver, only include umfpack.h if umfpack was found
91a2bb1e85Lennart OchelAdded default values for matching and index reduction
36c6ff771aLennart OchelAdded default values for "--preOptModules" and "--postOptModules" to help page
1577288a55unknownadded correct numeric bindings version
3f974fc288Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
cbe21ee20aNiklas Worschechadapted umfpack solver of cpp runtime on new Matrix interfaces
2c8a396e31Willi Braun - deactivate symbolic jacobian calculation for fmi2.0, since it's currently not used anyway.
aed449ccecWilli Braunfix some debug output in symbolic jacobain
564af844c4vwaurich- dont use artificial vars for prestartcalc
3082af8b2cNiklas Worschechremoved wrong version of numeric bindings
9bbf3adc23gossenReplace expr in Clock constructors to previous(expr)
3d21fe70d5gossenAdd initial synchronous support to simcode and c-codegen
e93d69cb60gossenprevious operator should be marked as known and its variable should be a fixed
ad5f2bd2c8gossenSome refactoring
f9f8aae8bbvwaurich- fix countoperations for small nl-systems
6f2f71529fNiklas Worschechfix in cpp template for getSystemMatrix method
4a391c0c45Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
8d089ff3a0Niklas Worschechadded config flag to switch the matrix format in cpp runtime +matrixFormat=[dense,sparse]
e2e030f989Lennart OchelAdded missing vars to SimCode
ec93d42fc6Marcus Walther- fixed windows build of cpp-runtime
cbe8e9dd53Marcus Walther- the number of event indicators should now be correct for c and c++ simulation runtime
d9b26e6b6fMarcus Walther- Kinsol can now be used for FMUs, by passing a parameter to cmake - added some logger output to the kinsol and newton solver
810476f8adLennart OchelRemoved obsolete cases in RemoveSimpleEquations
fa5acbcb2cMarcus 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
dfee2945ecNiklas Worschechfix for memory leak in algloop system of cpp runtime
201b0726f3Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
5ff3cc0effNiklas 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
12822bc2b7unknownupdated numeric bindings
b0fae1745fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
af9687a1c3Niklas 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
fd0d73bc4cLennart OchelDon't print empty dimensions list
a49f7c1f49RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
15ba0155c7RuedKamp-some changes for vxWorks
f9c741ae0bunknownupdated numeric bindings
fff5d101fcWilli Braun - fix alpha constant for damping. Fixes partially #3118.
4a52c46f68Willi Braun - fix debug output
d1656bbac7Willi Braun - revise lambda debug output
65593bf212gossenSimCode refactoring
c30ebadd3dbernhard ThieleNew Modelica state machine prototype
e8d65ec9c4vrugecosmetic changes
e3690021bdvrugesome fixes for complex functions
32bc6830eeLennart OchelRevised singularity check for linear systems
b454d6132evwaurich- warning for singular systems instead error
fca1e8a4favwaurich- continue Translation after SingularSystemCheck
f15f3a2aa5vwaurich- stupid fix for PrismaticConstraint
9a7e0fb793vwaurich- proper debug Matching in IndexReduktion (reverted from commit 1cd837980a2d5e2b708cc0181f0498713d5d912a)
847d505497vwaurich- proper debug Matching in IndexReduktion
ca563fceccPer ÖstlundFix for #3382.
ab4e34c95cRuedKamp-changed evaluateAll in Cvode to evaluate evaluateODE
9573413a95RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
4bc045b3cdRuedKamp- added some brackets
0db3df1842vwaurich- continue Translation after SingularSystemCheck
c2ea9a5ad5vwaurich- stupid fix for PrismaticConstraint
cc8f06f196vwaurich- evaluate ASUB-Calls partially (fix gravityAcc)
78d8b9ea0cvwaurich- proper debug Matching in IndexReduktion (reverted from commit 1cd837980a2d5e2b708cc0181f0498713d5d912a)
d2e10c48f5vwaurich- proper debug Matching in IndexReduktion
59cca54a35RuedKamp-commented out arkode
3dab5aa47aRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
a757ab529bRuedKamp-commented out arkode in CMakeLists.txt
26a008ac0bRuedKamp-used anyedit
6a5d5bd001kbalzereit - added step-sie control for symbolic inline solver
890bfba4e5RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
639e64f40eRuedKamp-changed std::vector to double * in AlgLoopDefaultImplementation
006502b58dLennart OchelStop pre/post-optimization on failure properly
2fcf8c139fadrpo- ANSI C please to please the MSVC compiler :)
af61d763d0Lennart OchelCleaned up #116
f7b4037a27Willi Braun - fixed indentation
35e6782661kbalzereit - collected commits for improving non-linear solver newton.
4a8e668369Willi Braun - add simulation flag -nlsInfo that generates csv files for every non-linear system for detailed analysis propose
8b345f03b8Lennart OchelFixed typos in flag descriptions
74002730a3vwaurich- Errormessage in IndexReduktion
bff5955157vwaurich- some ErrorMessages for IndexReduktion
ce246869e0Lennart OchelFixed nls dump for newton method
69cde813d2vwaurichsingleThreadSchedule
37686b4752vwaurichrevised partScheduler and reversed idxs in eventgraph
403163e08eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
98141da953RuedKamp-changes for vxworks
5838895b1dRuedKamp-changes for vxworks
b25d1f38d8adrpo- handle BackendDAE.NO_MATCHING inside BackendDAEUtil.getStrongComponents - remove msgpack include as we don't have it anymore in 3rdParty (why is that?)
eaac1dc068hudsonMerge remote-tracking branch 'origin/master' into pullrequest
160737d24cNiklas Worschechadapted newton solver of cpp runtime for linear tearing
92491bd2a7Marcus Walther- added the old switch-case-statements again, to handle fmu 2.0 export correctly
1caa4f9e37gossenReplace SIMCODE record constructors
41e9fb059cMarcus 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)
52eb407ccdNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
4476180d99gossenDont filter out clocked partitions with removed equations
7c8141652cgossenDo partitioning for removed equations
706508369egossenSplit removed equations beetwen shared and eqsystems sections of dae
b9431117bagossenPrint base clocks in synchronous dump info
9116d28f67gossenRemove FindZeroCrossings getters functions
e728806dc4Marcus Walther- added missing comma to json profiling files
5be3c0864aadrpo- update 3rdParty
db870f4428adrpo- use strol instead of strtoll as MSVC doesn't like it
1b3e57a25eadrpo- do not use atoll as MSVC does not have it
61a6e5aa78adrpo- more fixes for mingw64
a6dc843ba4adrpo- some mingw64 bit fixes
95c827c4d6Lennart OchelCall module "expandDerOperator" before module "clockPartitioning"
a4ddaa188cNiklas Worschechfix in kinsol of cpp runtime for linear tearing system
66ba9e3f3eNiklas Worschechlinear tearing systems using jacobians for A matrix in cpp runtime
d53f8f577fNiklas Worschechadded getJacobian matrix method for an Jacobain matrix index to cpp runtime
6327e130f5Niklas Worschechaktivated linear Tearing in cpp template
33972b1fb3Lennart OchelGenerate cleaner code for when clauses
8cb67d01beNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
9205fb7d45Niklas Worschechfix in kinsol of cpp runtime for linear tearing system
1ef03bc1b5RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ffbbe2c4a4RuedKamp-some changes for vxworks
1df8f02067RuedKamp-whitespace error whatever
18bbee159fRuedKamp-merged
f9236803f6adrpo- put back --emit_protected for CPP runtime as is used by Hudson library coverage script
d490ce2bf2Lennart OchelGenerate cleaner code for reinit statements
f186db9f33Lennart OchelClear the flag discreteCall on the same level on which it is set
812ef728c4adrpo- fix MSVC build of simulation code
6a820527c2Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
21906db5b5Niklas Worschechlinear tearing systems using jacobians for A matrix in cpp runtime
2839510c68Lennart OchelRevised Initialization.mo
026f2b473fMarcus 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
42f53d1c8bMarcus Walther- removed alias variable initialization - removed some unused flags from cpp-runtime
1a4cb22bd5vwaurich- more trailing whitespace stuff
3b2b0aadc3vwaurich- remove trailing whitespaces
083ced88f0vwaurich- apply GRS for DAe and ZeroFunc System, adapt validateTaskGraph
f04aa02386Lennart OchelHide SimCodeUtil error if initialization fails
2980576bf1Marcus 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
6cd6458be0Marcus Walther- cpp-runtime will now create reference variables instead of defines, if +d=gendebugsymbols is set
db1ab6ea91Lennart OchelReplaced some more record constructors
21bb0ca09bMartin SjölundRevise handling of MM singleton uniontypes
10cb0fb530Martin SjölundMake List.position return failure
6547655f05gossenReplace BackendDAE record constructors
1195db0770Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
98ca067f8eMartin SjölundHandle boxed arguments in ranges
1488c5e78eLennart OchelMake use of singleton uniontypes in the back end
129db8b176Lennart OchelReplaced function Util.isSome by built-in function isSome
bd201785abLennart OchelMake use of singleton uniontypes in the back end
4306540e2eMartin SjölundUse singleton records without matching
069390107aMartin SjölundTreat singleton uniontypes as records
0e1c517134gossenUse BackendDAEUtil.emptyClocks function
1f4d2f289cgossenMove base clocks info from SHARED.EVENT_INFO record to SHARED record
2362cf33b7Per Östlund- Differentiate between generated and non-generated meta records.
ce51c36113Per ÖstlundMetaUtil cleanup and fixes.
7fcda78a77Niklas Worschechadded getJacobian matrix method for an Jacobain matrix index to cpp runtime
b876223fd3gossenReplace BackendDAE record constructors in VisualXML
a9303a80f9gossenReplace BackendDAE record constructors in SimCodeUtil
ca80204882gossenReplace BackendDAE record constructors in RemoveSimpleEquations
511dbadd29gossenReplace BackendDAE record constructors in IndexReduction
aadcee5bd9gossenReplace BackendDAE record constructors in FindZeroCrossings
14e4611441gossenReplace BackendDAE record constructors in EvaluateParameter
db74734cc9RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c9721cc62agossenReplace BackendDAE record constructors in Initialization
426d2c1bf3gossenReplace BackendDAE record constructors in StateMachineFeatures
5f29c5c7ffgossenReplace BackendDAE record constructors in BackendDAEUtil
08a8ac2adegossenAdd function setSharedOptimica in BackendDAEUtil
d1fdf8210aLennart OchelRevised function preBalanceInitialSystem2
324df49446Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c9ea075081RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
26c02a24bagossenSynchronousFeatures refactoring
b8c8618cbfgossenReplace BackendDAE record constructors in RemoveSimpleEquations
31da2af4e9gossenReplace BackendDAE record constructors in ResolveLoops
23af696ff8gossenReplace BackendDAE record constructors in Vectorization
e2ec7cfd5fgossenReplace BackendDAE record constructors in OpenTURNS
811d799bf5gossenReplace BackendDAE record constructors in Matching
70d59a90aagossen Replace BackendDAE record constructors in InlineArrayEquations
248535d58bgossenReplace BackendDAE record constructors in Initialization
5691325478gossenReplacing BackendDAE record constructors in FindZeroCrossings
fbf521a1afgossenReplacing BackendDAE record constructors in EvaluateParameter
b604146eb0gossenReplacing BackendDAE record constructors in DynamicOptimization
cbf3347ea1gossenReplacing BackendDAE record constructors in CommonSubExpression
8e856290c7gossenReplacing BackendDAE record constructors in BackendDAEUtil
409d49b896gossenAdd function setEqSystMatrices to BackendDAEUtil
afe896e992gossenReplace BackendDAE record constructors in BackendInline
e0c6d316e4gossenReplace BackendDAE record constructors in BackendDAETransform
bcde872f80Martin SjölundCompile fewer packages when bootstrapping
ff50eb254fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
452a7cc5f0Martin SjölundRemove unused imports
a5ea4c9637Martin SjölundSplit CevalScript into CevalScriptBackend
aea876d893Marcus Walther- added zeroFunc-Schedule to HPCOM - fixed windows msvc build for cpp-runtime
bf98442b54Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
509f225c4cMartin SjölundSplit CodegenC into CodegenCFunctions
1b616669efNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
471efb23b9Martin SjölundMake it possible to compile OMC without backend
28efb3efd5Martin SjölundFix c99eeed
cb40561ea9adrpo- fix compilation
c99eeed8d3adrpo- fix Windows build by prefixing the enumerations in the CPP runtime settings with OM_ as otherwise the MSVC compiler complains madly
dba5362362Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
69e41fc434Lennart OchelCleanup package Initialization
69ba9498f6RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
74f231ca57Lennart OchelFixed typos in flag descriptions
aa6c0e0ad1Martin SjölundFix for missing __func__
b38ffe3751RuedKamp-changed encoding
78af16b84cMartin SjölundUse GNU sed
3c606c7109Martin SjölundFixes #3367,#3249 (unknown dim in function call)
5643d00bb1RuedKamp-whitespaces
f5b68bb65eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b65b1532cbRuedKamp-whitespace error
afaf039769RuedKamp-changes reverted
876a71052cRuedKamp-some adaptions for vxworks
4609f5a099Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
728c5a3f4avrugeimporved "collect" of terms
6518e3cf9evrugeadded prototype recursive tearing
c5516d9d31Martin SjölundAdd API diffModelicaFileListings
8c65974892Martin SjölundaddComponent API now uses the correct filename
0c8443671eAdeel AsgharFixes #3375 OMNotebook array plotting.
1a677547f9Adeel Asghar- Updated Types patch to fix Windows build.
f9f25dd798Lennart OchelFixed typos, indentation and coding style
226e96dec8Lennart OchelFixed some error messages
b1e44121d8marchartungFixed Windows bug for conversion const int to LogLevel
4f4dbe2181Martin SjölundCompile the ModelicaDiff lexer with OMC
adab1eea06Martin SjölundAdd target to update the lexer
09c0b45ce7gossenReplace BackendDAE record constructors in BackendDAEOptimize
ddeca2f9f9gossenAdd function clearEqSyst
7f24872550vrugefixed whitespace
e4f030addfvrugeclean up
d94675ccdcvrugeimproved simplifySumOperatorExpression
e9b910ea96vrugeimproved symplifyLoops
5942fbcdcevrugeadded post module for simplify loops for the simulation/optimization
c53af00d32Martin SjölundAdd ModelicaDiff lexer
49f3f03cadMartin SjölundCheck commit summary and message lengths
e234aa1356marchartungFixed FMU2-Errors. Static member FMU2Wrapper::logCategory is now FMU2Wrapper::LogCategoryFMU
16dee2532cmarchartungLogger for CPP-Runtime updated
7e74d3bc2bMarcus Walther- added boost::atomic to windows cpp-runtime-build
3385317104Marcus 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
48def8bdeeLennart OchelFixed typos
4446bdb9fbLennart OchelFixed some typos
45d02162e4Lennart 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
70c020cb53Martin SjölundPatch the bootstrapping tarball
127ddbfe75Martin SjölundFix some polymorphism checks
91eaa018acLennart OchelMerge branch 'master' into inverse-algorithm
639dcf9c20Lennart 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.
14c7f83d6eMarcus Walther- support for Intel Compiler added to C++ Simulation Runtime (by Joseph Schuchart)
9847abb110Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
2542dd936aNiklas Worschechaktivated linear Tearing in cpp template
3aa480b21dMartin SjölundAdd missing fail calls
ac6e440cbaMartin SjölundPrint default values
072de1ac4aLennart OchelRemoved case for empty algorithms in SerializeModelInfo.serializeEquation There should be no empty algorithms in the backend anymore.
166d282f79Martin SjölundAdd a complete sphinx help text
f2102e3559Lennart 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.
8927383effLennart OchelDon't add empty algorithms to BackendDAE
3c02ab5602Martin SjölundImprove --help=simulation
ec9f2b8e42Willi Braun - fix noevents debug flag
281db692c4Martin SjölundImplement Myer's diff algorithm
3a59575371Martin SjölundImprove operator overloading and error-messages
ced8714222Martin SjölundHandle array as iterator
e924e3c86aMartin SjölundFix umfpack rpath
05fad1a9ffhudsonMerge remote-tracking branch 'origin/master' into pullrequest
9f8ce9c5d5Martin SjölundSupport pattern matching for enumerations
3432e3e7b8Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
2ab80728d2Marcus Walther- added sundials license file to cpp-runtime and to FMU distribution
c464299983Marcus 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)
47ff858e34gossenReplace BackendDAE record constructors with BackendDAEUtil helper functions
7ae1fb468egossenAdd functions setVars and setEqs to BackendDAEUtil
30ddcebb0dgossenAdd function setSharedInitialEqns
2263f8d82agossenReplace BackendDAE setter functions with new ones with uniform name and prototype
b6d7f284b9Martin SjölundSupport the now standard Connections.rooted
234e916ba0Martin SjölundFix for OMPCC on OSX
5942cf8306marchartungFixed Modelica.Thermal.HeatTransfer.Examples.Motor for debug=hpcom
dd9ec804e6Martin SjölundFix wrong parameter name for regex
e691274579vrugeimproved sortEqnsAndVars
95945478b6vrugeadded: sortEqnsVars -> heuristic for sorting eqns and vars. TODO: improve the heuristic
0fc49fbadaMartin SjölundUpdate system libs list
b0733603c2RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
18b5e7e5e1RuedKamp-added functionblock for vxworks69
d084a77e39Per ÖstlundMade ConnectUtil.sizeOfVariable2 handle array dimensions better.
1a119b6f81Lennart OchelChange some matchcontinue statements to match statements Remove some unhelpful comments
e8f8cc5947Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
0feb1da876Rüdiger Frankeadd libs of external objects to gcc makefile of Cpp FMI
930ee92427Rüdiger FrankeAdapt Cpp FMI2 to recent changes to make it compile again
c0786262e5Ruediger FrankeRedo 8963da5 to make Cpp FMI2 work again
ef62d68d27Martin SjölundAdd a CONTRIBUTING file
433bd28f9cMarcus Walther- Added measureTime-Regions to thread-functions
c1b896dab9Marcus Walther- fix for undefined MEASURETIME_REGION
44e6e5e4dbMarcus Walther- fixed some linker problems - added measureTime-statements for threads of thread-schedule
164e53e174Martin SjölundFix ipopt compilation on OSX
77a112e21bMartin SjölundAdd weak linking for OSX umfpack
5d52a95fc6Martin SjölundFix sanity check
ee53ba6667Martin SjölundMake a tail-recursive call
390d475331Willi Braun - fix codegeneration of sparse pattern
97c3eb8ad0Marcus Walther- fixed CVodeWriteOutput-Tracing
8e9e1aed60Marcus Walther- fixed CVodeWriteOutput-Tracing
1a975c24c4Marcus Walther- fix for FMU export - fixed CVodeWriteOutput-Tracing
4d21edaad6Lennart OchelFix #3358 (Strange discrete behavior in algorithms)
ed4808a236RuedKamp-fixed whitespace
d335cc63bbMarcus Walther- further changes on Makefile structure, to disable papi if scorep is used
e052ac0843RuedKamp-fixed whitespaces
59574f7d5bMarcus Walther- removed runtime_static_linking from mingw-makefile - removed threading instruction for scorep
e6aeb1d16eRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
69e381087bWilli Braun - change execStat usage a bit to get a better overview
c9cd590a4cHenning Kielsome fixes for compilation on OS X
d32effdcc1Marcus Walther- fixed segfault
f3cb54a807Marcus Walther- added missing static library
39283a106fMarcus Walther- removed runtime_static_linking from Makefile
7b13279fa6Martin SjölundIntroduce new API call listFile
c0aed9a778Marcus Walther- fixed runtimeStaticLinking - fixed ScoreP-Support
b0dc6e73a6Niklas Worschechfix for external c calls return values in cpp runtime
0af65300b9Martin SjölundUse better version
bd9ddd2013RuedKamp-fixed whitespaces
cddf270173RuedKamp-fixed whitespaces
d92fe2ed0dRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ca33ed1ef0Marcus Walther- fixed mingw build
5753321017Marcus Walther- ScoreP-include added
0c25b668bbMarcus Walther- fixed ScoreP-Handling in Cmake
800439e6eeMarcus Walther- fixed mingw build
371736ec03Marcus Walther- ScoreP-include added
e7e2890301Marcus Walther- fixed ScoreP-Handling in Cmake
1a632d21b6hudsonMerge remote-tracking branch 'origin/master' into pullrequest
7a965d793aMarcus Walther- fixed msvc build
5f59a5b476Martin SjölundInstall pre-commit hook
562f2cb17dRuedKamp-fixed whitespaces
42e3157daeMarcus WaltherMerge remote-tracking branch 'origin/master' into fastMW2
a5bdcbf7b9Marcus Walther- removed experimental PropertyReader - updated gitignore-file
55f5ad0525RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
0d01144193Marcus Walther- added missing property reader interface
1ed94c99ffMarcus Walther- cherry picked niklas changes
cf1058ae25Marcus Walther- added XmlPropertyReader-Class - Fix for FMU shared object generation
2c70f15c52Marcus Waltherfix for msvc build of cpp runtime fix msvc build in cpp runtime
df48d6ed17hudsonMerge remote-tracking branch 'origin/master' into pullrequest
d36f27a3b5Martin SjölundLook for Susan-generated files
b2427203bfptaeuber- minor bug fix
6f28e4181cPer ÖstlundFix for #3357: - Simplify actualStream when flow direction can be determined from min/max of flow variable.
b2d7e9fadfMarcus Walther- first version of initialization XML for c++ simulation runtime added
1abf2a92f2Martin SjölundUpdate sanity check
e6dec7cd72Martin SjölundFix MODELICAPATH/OMHOME confusion
f2b42a73fcptaeuberMerge branch 'master' into passSystem
7db7104f75ptaeuber- pass second tearing set to runtime
bffe982e51Per ÖstlundFixed naming of record constructors when using enumeration arrays.
0f3a1f9e23RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
10e080e240vwaurich- remove trailing whitespaces
3a00a4279bvwaurich- fix for var replacements
96c3492bb2vwaurich- extend var replacement to substitute partial function calls
810b701c54vwaurich- remove file that does not belong to this branch
c97550e752vwaurich- remove trailing whitespaces
9b7f32e780vwaurich- fix indexing of partial function evaluation
55f212251bvwaurich- fix function evaluation
eeeb68ede9vwaurich- remove some debug output in eval funcs
8da901279cvwaurich- even mroe fixes
abf4da5399vwaurich- more fixes for eval func epxs
35582b75fdvwaurich- some more stuff for eval function calls
c53f53cdebvwaurich- added evaluation of function calls in exp, replace ceval with this in removesimpleequations
16a7b8a8fdRuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e145aa85f0hudsonMerge remote-tracking branch 'origin/master' into pullrequest
de1412c596Marcus Walther- fix for windows build
cbb42691a0marchartungBugFix level scheduler
7b43f2b660marchartungAdded new statistical profiling feature
a48c2f9e8cmarchartungAdded statistical support for profiling
f4112f439cmarchartungUpdating profiling cpp
47f02a3094RuedKamp-fixed whitespaces
876897cfd3RuedKampMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
27e85a18a9RuedKamp-added some fixed concerning VxWorks
004a350bdaMartin SjölundImprove sanity check by checking all commits
3ec9602ba6Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
f7f3c6652cMarcus Walther- fixed runtimeStaticLinking for C++ Runtime
752d5e7382Martin SjölundEvaluate NORETCALL function as well
7417377b3bMartin SjölundFix getClassComment
e78a319f40Martin SjölundRemove references to OMVisualize
bf14425402Martin SjölundAdd stringSplit to the API functions
940803f8d7gossenUse Absyn path equality check function in SCode.hasExtendsOfExternalObject function
8d8d325e72adrpo- the MSVC compiler does not like the structure to be constructed while returning from a function; fix function rat2Real
50340df485adrpo- the C language does not have bool and the MSVC crap compiler complains about it, change it to int
080582ddccgossenFix typo in InstUtil failtrace messages
8319e8c7d2Martin SjölundTrim trailing whitespace
db90b5d566Martin SjölundSquashed commit of the following:
9300fd4ba8vrugeskipped createStateSets for dummyDerivatives
8d92effe93Willi Braun - improve symbolic jacobian just by removing unionList
131f0134fdgossenAdd rational number support in SimulationRuntime-C.
32417fc462Marcus Walther- fixed msvc build
6e8220bc8bMarcus Walther-Added kinsol library to FMU
ebc9ca9923adrpo- return value from Logger::isEnabled
97f4aaf350vrugemakeEquationToResidualExp: added case for Wild
7dfa590eadMarcus Walther- added some gitignore-files for cpp-runtime - FMU includes the kinsol library now
7e2e9c58bfMarcus Walther- changed return type of evluate functions to void
b913ad9c60Marcus Walther- moved creation of build-folder from clean- to runtimeCPP-target
c04586ef15Marcus 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
f760fd3fd5Marcus Walther- splitted evaluate-functions
8020ee945aMarcus Walther- fixed initialization
541a4430b5Marcus Walther- fixed fmu-logging
57f18a987eMarcus Walther- fixed linking issue with FMULogger
0232968b3aMarcus Walther- fix for Cpp-Runtime
fcaa46e5cbMarcus Walther- logging can now be switched on and off
8963da5732Marcus Walther- fixed FMU logger and getter- and setters
278ed061c6Marcus Walther- FMU cleanup (CPP-Runtime)
13c46982f9Marcus Walther- added a simple logger class to cpp-runtime - cleaned up FMU files
c0cb378c20Marcus Walther- removed the eclipse stuff because it is part of the superproject
933ebb37b2Marcus Walther- some fmu-cleanups for cpp runtime
71bd4c298dMarcus Walther- changed return type of evluate functions to void
f03a9557dfadrpo- split the CodegenFMU.tpl into several files
2b2d49903dptaeuberpass second tearing set to runtime
f7600b21faMarcus Walther- moved creation of build-folder from clean- to runtimeCPP-target
82bcd946f1Marcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
c885abde30Marcus 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
95d54df03bvrugechange flag +d=extendsDynOpt in loop2con=all added option for loop2con: none, all, lin, noLin
4344719b52vrugeadded flag: nonlinear loops --> nonlinear constraints
ed6c94996bMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
47955e830aMarcus Walther- splitted evaluate-functions
8d8f136cc0Martin SjölundUpdate instructions
32b35ec266Marcus Walther- fixed initialization
f778574a8aMarcus Walther- fixed fmu-logging
b22e36e7bdRuedKamp-added missing files
6adadd7b19RuedKamp-added solver arkode
f54c86fb37Martin SjölundAdd a sanity check for OMCompiler
07d7d9aac0Marcus Walther- fixed linking issue with FMULogger
90b6c5d5davrugecosmetic change
538b90949dvrugegenerateCrefsExpLstFromExp: added case for der(x)
c2017c2f1dMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
0a7c2fae91Marcus Walther- fix for Cpp-Runtime
6ebad16a46vrugedisable optimization OptModules for dynopt where +simCodeTarget=XML
b3abd2b507vrugeadded postOptModule for dynamic optmization: simplifyConstraints - try to simplify nonlinear constraint in box constraints (expansion planned)
df3bcafde0Martin SjölundMake alt text unique for profiling images
1462eb5d64hudsonMerge remote-tracking branch 'origin/master' into pullrequest
8cc1cf792dLennart 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.
ac4dc2e81eMarcus Walther- logging can now be switched on and off
6c67400e1fMarcus Walther- fixed FMU logger and getter- and setters
780b277df7Martin SjölundDump Optimica cref's
41793d5d4dMarcus Walther- FMU cleanup (CPP-Runtime)
403265c491Marcus Walther- added a simple logger class to cpp-runtime - cleaned up FMU files
be21653441Marcus Walther- removed the eclipse stuff because it is part of the superproject
bd824ec450Martin SjölundAdd support to filter to CSV
36f6156b98vrugeadded assert for pow(x,0.5) = sqrt(x)
ec3daec074Marcus Walther- some fmu-cleanups for cpp runtime
5b20ca63fdmarchartungUpdate HPCOM-IntelTBB (Task-Arena, Bug-Fix)
26ab95a951Martin SjölundFix indentation
bd5ab445beMarcus Walther- removed a whitespace
b38eaf292fMarcus Walther- moved serializer.cpp to the correct location
8d7d1f718dMarcus Walther- added serializer files again
06264302fbMarcus WaltherMerge remote-tracking branch 'origin/master' into masterMW
25a4f71f3eMarcus Walther- fix for msvc build
79613997f1Per Östlund- Fixed typo.
db388688a0vrugedynOpt: using IndexReduction=dummyDerivatives
fea68cf9a6vrugecosmetic change
7778c46127vrugecosmetic change
89587729ddvrugecosmetic change
f32cefe261vrugecosmetic change
6d53562079vrugecosmetic change
44e54ebc0avrugecosmetic change
8de4ae3011Per Östlund- Fixed typo.
f141d14f09vrugedynOpt: using IndexReduction=dummyDerivatives
dd0e9a6f99vrugecosmetic change
2678ace106vrugecosmetic change
dfb35e8c94vrugecosmetic change
ed177d3b93vrugecosmetic change
0b4809c283vrugecosmetic change
3dcc1b410fvrugecosmetic change
4db1c9a435Marcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
c5496789c2Marcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
5386ff0bdcMarcus WaltherMerge branch 'master' into masterMW
47155523faMarcus 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
61a29c2b52Marcus 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
450d0f7823Marcus Walther- fixed fmu export of cpp-runtime - cleaned up some static-linking stuff - fixed a segfault with the newly added profiling-points
5ec662ed7fMarcus Walther- added new profiling points to c++ runtime - improved compile performance
2ad8c899fcMarcus Walther- some simple improvements for HPCOM
c537d6e761Marcus 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
dbce3475bfMarcus Walther- removed whitespaces
f3cd8338cbMarcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
f5ac5cf2a4Marcus 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
757ad0519bMarcus Walther- fixed fmu export of cpp-runtime - cleaned up some static-linking stuff - fixed a segfault with the newly added profiling-points
4dba01a2baMarcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
04f6fcaa09Marcus WaltherMerge branch 'master' into masterMW
c7db96163dMarcus Walther- some simple improvements for HPCOM
c8a2562092leonardoAdds serialization of MMC values
272e2c6adbMarcus 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
e3c2d0a9e0Marcus Walther- fixed fmu export of cpp-runtime - cleaned up some static-linking stuff - fixed a segfault with the newly added profiling-points
b407268283Marcus WaltherMerge remote-tracking branch 'originMW/master' into masterMW
a8a58f801dMarcus WaltherMerge branch 'master' into masterMW
d11bd4bf54Marcus Walther- some simple improvements for HPCOM
1ab4b1ac1dMarcus WaltherMerge branch 'master' into masterMW
5b680aefcdMarcus Walther- added new profiling points to c++ runtime - improved compile performance
7f603ec4ccLennart OchelRemove duplicated interface declaration
7dccb34f5cMartin SjölundMerge remote-tracking branch 'origin/maxDer'
26abf7f516Marcus Walther- some simple improvements for HPCOM
b406a81e82Per ÖstlundFix for #3337: - Lift type modifiers to the dimensions of the component.
9b0b4387c1vwaurich- fix for highestDerivativeAdd a README
201cc12883Marcus WaltherMerge pull request #1 from OpenModelica/master
b7387b3b35Martin SjölundAdd a README
09168902cfMartin SjölundMerge pull request #9 from vruge/disableDynStateSelectionInDynOpt2
99f5ac6567vrugefixed: disable dynamic state selction
1eb6ca8076Marcus Walther- removed some debug output
199d2aac1cMarcus Walther- some cleanups in HpcOmMemory - empty-scheduler contains an equation-list now - c++-simulation runtime can now calculate the dae-system in parallel
28ad2449b0vrugeMerge branch 'disableDynStateSelectionInDynOpt'
3828ff11c3vruge- attempt disable dynamic state selction in dyn. optmization - cosmetic changes in IndexReduction.mo - using for loop construct - scale heutistic in IndexReduction for StateSelection
5992e4a1c4Per Östlund- Fixed encoding of HpcOmScheduler.mo and SimCodeUtil.mo.
b8bb7135cbvwaurich- fix testsuite for now, still have to handle underdetermined systems with derivation loops
b98a5ebfe9Per Östlund- Don't treat outer parameters without binding as a special case in Static.elabCref2, to enable vectorization.
df2d272456vwaurich- added information about highest derivative to SimCode.ModelInfo
19efba22f5Martin SjölundMerge pull request #7 from sjoelund/master
dd06f18195Martin SjölundBase everything on @perost commit before vwaurich merge
0a1de37821Martin SjölundMerge pull request #6 from sjoelund/master
89982147f3Niklas Worschechfix for typo
124e8b80acMartin SjölundManually force away some commits
9ca7f93881Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
13d2ab883aMartin SjölundMerge master into branch without b13b350
d32301f99bNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
7357a72093Lennart OchelReplace recursions with loops
94cddf13d8Lennart OchelReplace recursions with loops
89e8201829Per Östlund- Changed recursive instantiation of enumeration arrays to a loop, to avoid issues with type checking.
29b89aceb5vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
8739469937Per Ö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.
9991681240vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8) (reverted from commit af3393f641463c913c4c74512d04e941de8abf9d)
ca6d73778avwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
8f4cc512a8Lennart OchelAdd workaround to RemoveSimpleEquations to sort out known vars from alias vars (#3323)
ad3d7cdb20Martin SjölundRemove usertab.c as expected
996bcc1604Martin SjölundRemove usertab.c from cppruntime as it should never be compiled
045b50a999Martin SjölundFixes #3332, ParModelica install paths
a4a032a62eNiklas Worschechreplaced for loop with std::transform in SimVars.initRealAliasArray
c786ac7865Niklas Worschechfix for ModelicaExternalC usertab linker error in cpp runtime
482de6d280Martin SjölundFix 8a7b5a0 by updating to the latest submodules
2af70e228cadrpo- fix testsuite on windows, checking if first char is '/' is obviously not Windows friendly
f8df9d6e7aNiklas Worschechfix for typo in SimController comment
58985dcf02Niklas Worschechfix for debug msvc cpp runtime build
58f885701eNiklas Worschechchanged msvc build type for cpp runtime to release
81b98e355eAdeel Asghar- git describe instead of git rev-parse for getVersion()
6cf73dc424Niklas 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
80fd8be078Niklas Worschechadded doxygen config file for cpp runtime, add doxygen group comments in cpp runtime source files
837ddfba3cLennart OchelReplace recursions with loops
fac1d4ea73vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
185e25ff21vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8) (reverted from commit af3393f641463c913c4c74512d04e941de8abf9d)
af3393f641vwaurichMerge remote-tracking branch 'origin/master' (reverted from commit b13b350383859be31fd5f6f39d0198c26776d4f8)
b13b350383vwaurichMerge remote-tracking branch 'origin/master'
e95da2bb8dPer Östlund- Changed recursive instantiation of enumeration arrays to a loop, to avoid issues with type checking.
aec10af19bPer Ö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.
cc6a016f19Lennart OchelAdd workaround to RemoveSimpleEquations to sort out known vars from alias vars (#3323)
fd2efe96caMartin SjölundRemove usertab.c as expected
a63f61bd41Martin SjölundRemove usertab.c from cppruntime as it should never be compiled
dff6c83120Martin SjölundFixes #3332, ParModelica install paths
04badcea13Niklas Worschechreplaced for loop with std::transform in SimVars.initRealAliasArray
5c9479acfaNiklas Worschechfix for ModelicaExternalC usertab linker error in cpp runtime
c112818594ptaeuberPass casual tearing set to SimCode
6584fe1056vwaurichMerge remote-tracking branch 'origin/master'
eb6f8146f8Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
6f309c9710Niklas Worschechfix for typo in SimController comment
9f6854b467Martin SjölundFix 8a7b5a0 by updating to the latest submodules
0e1eab34eaadrpo- fix testsuite on windows, checking if first char is '/' is obviously not Windows friendly
76f2202f97vwaurichMerge remote-tracking branch 'origin/master'
b110e2f9fevwaurich- added information about highest derivative of complete model to modelinfo
8a7b5a0d29Niklas Worschechfix for debug msvc cpp runtime build
1b90621711Niklas Worschechchanged msvc build type for cpp runtime to release
dbe14945acNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c1dcb6563aNiklas 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
537d965fd4Adeel Asghar- git describe instead of git rev-parse for getVersion()
ed947eff2aNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
cf3a3f6fc9Niklas Worschechadded doxygen config file for cpp runtime, add doxygen group comments in cpp runtime source files
1bda3b0d74vwaurich- fix for visualization xml
5608b79b97Martin SjölundUpdate README.Linux.md
841c42bc44Martin SjölundUpdate README.Linux.md
a87083051aMartin SjölundChange the Linux readme to markdown
3ede179acbMartin SjölundPass CFLAGS/CXXFLAGS to ipopt
f2f0f3925avwaurich- visualization xml stores equations for protected, time-dependent variables
76801feaf0Lennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e0381a2e35vwaurich- added BackendDAE.FOR_EQUATION related to vectorization
72f9143d87Lennart OchelMerge branch 'qss'
bb4056bdf4Martin SjölundRemove Modelica3D from OMCompiler (moved to OMLibraries)
060a0ac627Martin SjölundUse the configured CXX in cppruntime
38d0c59d2dMartin SjölundUse C++11 by default
7201a95cb0Lennart OchelMerge branch 'master' into qss
bf6ce68997Lennart OchelFix generation of sparse pattern for systems with just one state
60c93f57dcLennart OchelMerge pull request #4 from ptaeuber/tearing2
77066968bfptaeuberfix SimCodeUtil.mo after merging
6db7559034ptaeuberMerge branch 'master' into tearing2
3f57560dabMarcus Walther- sundials 2.4.0 has support for colored jacobian, so I've changed the ifdef
b3dabebbe6adrpoMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
0fa54ddeafadrpo- try to improve on #3318 by giving memory back as much as possible to the OS on Windows
b97fedb30eMarcus 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
e2a22243eavrugedyn. optmization: attempt to fix CombiTimeTable with Periodic
defa77ce50Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
7abb7cca4bLennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
d01c9049e9Lennart OchelRemove unused code - there is no $dummy state anymore
8b2edc75f5Lennart OchelDon't add a dummy state to generate symbolic Jacobians
dcf2a053d2mflehmig- Added for-loops to dumpEqs.
57e65788ebmflehmig- Codegen for vectorization using for loops.
3b55904103mflehmig- Cleaned up vectorization. - Fixed upper bound for vectorization.
e145287ec0Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
27df1e58e9adrpo- fix windows compilation
6d49a94d6fMartin SjölundMerge outputs 2 and 3 of diffSimulationResults
ab8f95a54cMartin SjölundBump 3rdParty
2bf2c4e2c8Martin SjölundQuote directory names
0d42956ed0Martin 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
98e9206e39Martin SjölundAllocate the correct size
eaf99f9ed1Niklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ba5b824d94Martin SjölundSimulation results fixes - Add failed variables as output from diffSimulationResults - Add numberOfIntervals flag to filterSimulationResults
6c14d24639Martin SjölundCreate GC_asprintf function
a332da61abNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
e1788d44deNiklas Worschechremoved special case for static factory policies
a6b4656e04Lennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
b0b4602e69Lennart OchelRemove workaround for dummy state in dassl solver since there is no dummy state for algebraic systems anymore.
23a54a4225vwaurich- removed some debug dumps in vectorization
0295dd0683vwaurich- some fixes for vectorization
ea135be250vwaurich- extended vectorization (reverted from commit 4e506d6574516164ddaf3ee1eee666e5b4c31857)
bb28025cc3vwaurichMerge remote-tracking branch 'origin/master'
4e506d6574vwaurich- extended vectorization
20a5a0cc9aMarcus Walther- fixed GCC compiler warnings for invalid-pch define and force_inline
c895e990c4vwaurich- fixed appended subscripts for vectorization
c5fb326852Lennart OchelRemove workaround for algebraic systems
6c53415a11Lennart OchelAdd new post-opt module "addTimeAsState" This module introduces $time as state variable (+addTimeAsState).
348b22c3faMarcus 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
6303044af6Marcus 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
97f744c604adrpo- update 3rdParty and .gitignore
0bed96358dLennart OchelMinor changes to qss solver - Add warning for the case that all derivatives become zero - Clean-up, formatting, ...
d8cca3fb02mflehmigMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
ee02481b33mflehmigChanges towards vectorization
638f287d17mflehmigChanges towards vectorization.
60dd426dceLennart OchelMerge branch 'master' into qss
454c9c45ccadrpo- support -emit_protected for CPP runtime
ec0bb5e2eavrugesymEuler: fixed values for der(x)
ed7da3e898vrugefixed symEuler
bae5316c68adrpo- proper include
969cb9c8c4adrpo- more fixes for MSVC compilation
dadc3dc390adrpo- fix MSVC compilation of C runtime
adf53f3a42adrpo- update 3rdParty in OMCompiler
945b16da01Per Östlund- Fix previous commit, due to constants with wrong type getting eating.
ed483a28dbPer Östlund- Removed unused delayed type checking to simplify SCode.Mod.
475d005a5cvrugeextends dyn. optmization: update var direction
56f577dec5vrugerelax the rules for reduce and extends dyn. optimization flags
6913c02b44vrugesymEler: improved generation of helper-var DT
af3435e49fNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
74189fa7d3Niklas Worschechremoved special includes for static cpp runtime build
9e6d93d424vrugeExpressionSolve: added additional for symEuler(dt == 0)
29cd04e2bfMartin SjölundBuild cppruntime into OMBUILDDIR
4f787ab67eNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
3a51e346a4adrpo- add Compiler/OpenModelicaSetup to .gitignore
550f780c3aadrpo- fix library coverage script, have emit_protected defined on all branches, otherwise you get an error when running system
8c0132ba23Martin SjölundFix OMC path for --without-omc
47bae7abd7Martin SjölundHandle filtering negative aliases
ff139a309aMarcus 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)
c160230deaNiklas WorschechMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
93754c4fe2Niklas Worschechseparated defines and includes in Modelica.h
de41cdb56cMartin SjölundFix off-by-4 error
08c1d7ead9Marcus 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
d2765ee71aMarcus 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
0f658eea12Marcus 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
723695e70eMartin SjölundHandle mixed OMC and Dymola names better
7023616eb1Martin SjölundFix a rollback bug
77acafc051Martin SjölundUpdate submodules
e4460295edadrpo- attempt to partially fix #3313 and the library coverage hangs
a09817b40bvrugereduce symEuler-system
6b8dc8e078vrugeMerge remote-tracking branch 'upmaster/master' into symEuler2
5fc88b51dfvrugeimproved symEuler
009ab2dbffMartin SjölundShow the Java test command
ecc9596c28Adeel Asghar- case sensitivity.
4ee2c6cdc2vwaurich- some more infos about arraycrefs in dumpSimCode
8d64f4bf3bvrugeimproved symEuler
7c55968de6vrugeimproved symEuler
db89c1f326vrugeimproved symEuler
6fb6271d2fvrugeimproved symEuler
57c9092901vwaurich- some more fixes for vectorization
ce23826cb8vrugeimproved symEuler
8ad90c5288vrugeimproved symEuler
1ff5d9a01avwaurich- get cref as ident for the visualizationxml objects instead of string
074dd84439vwaurichadded BackendVarTransform.replaceEquationAttributes
3ad6e72d05Martin SjölundChange default path to reference files
66346e3015Martin SjölundUpdate gitignore
15c798a599Martin SjölundImprove the mat4 reader to also lookup Dymola-style names
d254dbf4b5Martin SjölundFix detection of version in submodules
cb69a5af4dMartin SjölundFix testing of the Java interface
cbc725d06aMartin SjölundImprove the filtering of results files
06ed6bf71aMarcus 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
b83df49b5cLennart OchelHandle systems that are in steady state
ff2cc7c53aLennart OchelMerge remote-tracking branch 'origin/master' into lochel/qss
fa70703afaMarcus Walther- update reference commit
c91e3219f8Lennart OchelMerge branch 'master' of https://github.com/OpenModelica/OMCompiler
c52b5f340aAdeel AsgharUpdate 3rdParty.
673eaa12beLennart OchelHighlight workaround for "symEuler"
e2edb497dfMartin SjölundMerge pull request #3 from vruge/master
9bc4e2e999Vitalij Rugefixed symEuler
506ac549faMartin SjölundFix install paths
baef0588e8Martin SjölundPrint the whole path always
d6cbc6179dAdeel Asgharomc/qwt include is moved to omplot/qwt
505d30a626adrpo- properly clean 3rdParty/ModelicaExternalC
f9cb094f90Per Östlund- Remove dead code to get rid of compilation warning.
b1c294da01adrpo- fix compilation of Compiler/Template/CodegenCpp.tpl
dcdf6143d9Lennart OchelDefine HashTableCrIListArray.HashTable in SimCodeTV.mo
96caac0cb0adrpo- more propagation of OMBUILDDIR
14e08b2e49Lennart OchelMerge branch 'master' into qss
b55e4eee11Adeel Asghar- More fixes for windows compilation.
b8f8ff5da7ptaeuber- prepared SimCode for dynamic tearing - still not able to build omc because of unspecified error
7d696cd749Martin SjölundInclude the scripting API files in build
68fb39e4d0Martin SjölundMake git describe always work
4e57ea427badrpo- use $OMBUILDDIR properly in Windows build
8960bd8dfeadrpo- fix Windows build to use $OMBUILDDIR
70377b4884Martin SjölundFix OMC bootstrapping path
89b699ec55Martin SjölundFix some warnings in logs, skip re-compiling if target already exists
907803b45bPer ÖstlundMerge branch 'master' of ssh://github.com:22/OpenModelica/OMCompiler
a27a9ed3b0Per Östlund- Ignore vim buffer files.
6c148e7973Adeel AsgharOMBUILDDIR absolute path and git HEAD
a6085583eaAdeel Asgharset OMBUILDDIR in root makefile
c422bf07dfMartin SjölundFix compilation using different build directory
521fee19e3Lennart OchelUpdate .gitignore file
bc25068039Martin SjölundUpdate gitignore
aecbc157edMartin SjölundAllow configuration of build directory
9870b17391Marcus WaltherMerge remote-tracking branch 'originMW/master'
d5f6a985b1Marcus Walther- some changes on hpcom memory optimization - added more files to gitignore
5b594bb7eeMarcus Walther- some changes on hpcom memory optimization - added more files to gitignore
5b92c2a9bdLennart OchelMerge branch 'master' into qss
56ab447319Martin SjölundAdd gitattributes
8806a1661dPer Östlund- Ignore input/output when counting connector variables.
dad53816deMartin SjölundMerge pull request #2 from MarcusWalther/master
4e29a0caabMarcus Walther- external tool builder for eclipse added
cce4cff385Lennart OchelMerge branch 'master' into qss
873ece23f2Martin SjölundMerge pull request #1 from OpenModelica/lochel-gitignore
a4f2a4a28aLennart OchelUpdate .gitignore
6b95dbaab3Lennart OchelInitial commit for elementary qss solver
0b11f8d1fbLennart OchelAdd .gitignore file
d79e9ec0f4Martin SjölundAdd support for new API: filterSimulationResults
23686e66ceadrpo- put back the Windows Makefiles (Makefile.omdev.mingw) - fix windows build of the OMCompiler
4114344242Martin SjölundFix compilation of cppruntime
fc27f01df6Martin SjölundCompile UMFPACK as a shared library
bed6717626Martin SjölundAdd bootstrapping tarball
33c62391a1Martin SjölundIpopt include path
f34600b066Martin SjölundFix ipopt clang compilation
aa74a256caMartin SjölundUse git describe for version
d256b6c67aMartin SjölundFix lis compilation from clean
193371b997Martin SjölundAdd mkbuilddirs
9689db132eMartin SjölundAdd mkbuilddirs
a997190003Martin SjölundFix make clean
f8fba98ebeMartin SjölundRemove qtclients references
623a4772f7Martin SjölundCompilation --without-UMFPACK is now working
ae1c524461Martin SjölundGetting a little further, failing at metis now
35e46050f2Martin SjölundAdd Cminpack including OMC patches
d042ebb697Martin SjölundAdd some of the 3rdParty modules
3e1de4b058Martin SjölundAdd a submodule for 3rdParty sources
778d3b394erfrankesupport for loops over Real ranges
a3052d49dasjoelund.seAlso include antlr3config.h
f65334da74Martin SjölundMissing omc in the path
d834a7ff66Martin Sjölundantlr3 library changed name to omantlr3
74d8748a7cMartin SjölundAdd host_short to install correct antlr files
5a2380c1afOpenModelica Hudson[Janitor mode] Fix whitespace
da50f0232aMartin SjölundInstall antlr3 includes. Fix OMNotebook linking
556609d758Martin SjölundRename libantlr3.a to libomantlr3.so
dbefb5764eMartin SjölundRemove the old antlr jar-file
a575fd97b8Martin SjölundCopy antlr-2.7.7 as well; it is needed for org.antlr.Tool
c8fd4cb1d4Martin SjölundUpdate java_interface to use the antlr-3.2 jar
2d328d6d1fRuediger Frankeattempt to fix pre variables in algebraic loops
d1043b9f30Ruediger Frankeimplement pre values of arrays
62bbc24dd8Vitalij RugemarkStateEquationsWork: rewrite with while loop
344c23e5e1Martin SjölundLink lapack
6f2dde4dc2Martin SjölundFix compilation of libcsv in C++ mode
0ddc8a1c2cMartin SjölundCopy more results file reading functions with the includes
e80bc51ff1Vitalij Rugesmall improvement
b760c6a985Martin SjölundLock OMNotebook/OMPlot/OMShell for edits since they are being moved to the git repositories
c5cc093829Ruediger Frankeprevent clang++ warning "lookup of 'set' in member access expression is ambiguous; using member of 'mapped_type'"
244eeeb828Ruediger Frankebug fix to previous commit r25871
aa43b695f7Ruediger Frankeremove double parenthesis from if statements to avoid clang++ warning "equality comparison with extraneous parentheses"
c92ce0327bRuediger Frankeattempt to fix access to seed variables from algebraic loops in Jacobian evaluation
22f067e171Ruediger Frankefix newlines between Algloop includes of Jacobian files
f14a53ff65Ruediger Frankefix code generation for createArray from functions
4cfa5ba3b4Ruediger Frankeskip initialization of aliases if they are just references now
edbccc71a2Ruediger Frankeseparate ArraySliceConst from ArraySlice to enable slices of const arrays
ce9e27e09bMartin SjölundOSX fix
087afe0bacRuediger Frankedon't use references for external objects (fixes r25804)
d2ab89bd32Ruediger Frankefix FMU makefile after r25821
202be2956cRuediger Frankeremove second accessElement method from ArraySlice
683c60c852Ruediger Frankeadd const qualifiers to array operations
b3594d5cadMartin SjölundFix modelica3d paths
c5df3e60deMartin SjölundMove qmake detection to separate m4-file
35e60a4e09OpenModelica Hudson[Janitor mode] Fix whitespace
b85bc79840Volker Waurich- added template functions for DAE.SUM and SimCode.SES_FOR_LOOP
799136a9d7Martin SjölundInstall cppruntime libraries in the correct directory
998faebc61Martin SjölundFix a broken install path
e07a8fde68Martin SjölundUpdate bootstrapping tarball
9a9e8b9738Martin SjölundSee if bootstrapping is fixed without a new tarball (skip checking for ModelicaExternalC when bootstrapping)
e553b2d810Volker Waurich- removed some debug prints for vectorization
178cbda6c7Martin SjölundFix linker paths
af9a702f11OpenModelica Hudson[Janitor mode] Fix whitespace
8d6ce3a4bfVolker Waurich- some more fixes for Vectorization.mo
9510ad4ef3Martin SjölundFix mkbuilddirs
7fdfaed4e1Martin 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
f521cf9beeOpenModelica Hudson[Janitor mode] Fix whitespace
df6001a292Marcus 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
28e0e8820dOpenModelica Hudson[Janitor mode] Fix whitespace
0595c66d92Volker Waurich- some fixes for alias handling when unrolling variable arrays (for vectorization)
1dd25caabaRuediger Frankeadd support for read access to data of RefArray and make arg of sum_array const
c107825001Adrian Pop- handle Clang also
762167cf9cAdrian Pop- fix Windows build - fix nightly-build (get OMPython from github)
50157ff734Martin SjölundTry to fix fmil dependency in Compiler/runtime
cd70933c19Martin 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.
876ee3e85fMartin SjölundUpdate makefiles for better cross-compilation
1714881712Niklas Worschechadded cpp runtime config for gcc and msvc
8ec90b9493Per Östlund- Fix flag typo.
dc27e82a37Volker Waurich- remove more whitespaces
d61f402881Niklas Worschechre added missing boost ublas vector
55d8775036Marcus Walther- support for non constant array-indices added to variable - memory - mapping
dbedd11607Volker Waurich- remove whitespace in array subscripts
473a03538bMartin SjölundFix installation target (* copies all directories)
1821f5bbe4OpenModelica Hudson[Janitor mode] Fix whitespace
795603189cMarcus Walther- added handling for special case, that variables have a subscript at the end but are not part of an array
af0384daa0Martin SjölundFix installation of idl file
8b738d608eOpenModelica Hudson[Janitor mode] Fix whitespace
2f771a17a5Marcus Walther- added optimization variables to mapping - added some scripts to execute all simulations in the msl with special flags
1a2bb57867Marcus 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
516588475aOpenModelica Hudson[Janitor mode] Fix whitespace
ad1232f04eVolker Waurich- removed some additional prints to fix tests
6c0221c1acVolker Waurich- added SimCode.SES_FOR_LOOP and DAE.SUM expression to express loop-equations
9ad1051d43Niklas Worschechremoved boost ublas includes for mac os because of build errors
c135e9939aRuediger Frankeexploit new getDataCopy in assign to DynArray
cf8c348455Martin Sjölund#2619 Move OMPython to https://github.com/OpenModelica/OMPython
cd5fbe6aacRuediger Frankeremove irrelevant cases from algStmtAssignArr to fix assignment to array slices
46295b52afRuediger Frankeadd more missing throw
453d33f344Per Östlund- Propagate the actual attributes to match aliases, to allow assigning to them if they are non-inputs.
d8892d1f84Niklas Worschechfix in Array getData, added missing throw
1e37a76cd0OpenModelica Hudson[Janitor mode] Fix whitespace
2db19012feNiklas Worschechfix for precompiled header of cpp runtime msvc build added use of precompiled header for cpp runtime libraries
e4d15d5d8cOpenModelica Hudson[Janitor mode] Fix whitespace
2da1e338ffPatrick Marcel Taeuber- included Jacobian in TearingSet because it differs for different sets - adapt some modules to new tearing structure
fb2ca722abLennart Ochel- Use common variable names (ass1, ass2) to store matching information - Add comments to make clear what is actually stored in ass1 and ass2
46c3015311Lennart Ochel- use new syntax to access arrays
3631bcffa7Lennart Ochel- Restore r25682 and r25683
7eab2fc879Ruediger Frankeremove unused outputAllocate from external function code
e20ab9588bRuediger Frankemake Cpp code generation work for Modelica.Math.Matrices.leastSquares
7865309c36Henning Kiel- ignore some more generated files
cc81be1ea8Martin SjölundRename configure.in to configure.ac
45fcbb3aa6Martin SjölundFix builds
6a3fcd4e08Martin SjölundTry to fix builds
e240093a90Per Östlund- Don't simplify MetaModelica array ASUBs in ExpressionSimplify, it doesn't know which side an expression is on.
16cfe1989fMartin 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)
c33cb3a3a3OpenModelica Hudson[Janitor mode] Fix whitespace
32f9749de4Volker Waurich- add Vectorization.mo
4e0bde5a26Volker Waurich- added first implementation for handling for-loops and variable arrays
337e2badcdOpenModelica Hudson[Janitor mode] Fix whitespace
3dab9b1fb4Niklas Worschechmoved linear solver selection to initialization method
90e88f08bbOpenModelica Hudson[Janitor mode] Set auto-props
bae454fef1Ruediger Kampfmann-moved FactoryExport.h to include directory
26a4f091dfRuediger Kampfmann-moved FactoryExport.h to header
831361ef8fRuediger Frankeavoid underflow of unsigned size_t and access to NULL if there are no real variables
6ddc3165ddRuediger Frankerevert changes of previous commit on CVode.cpp and introduce an internal dummy state instead
c5ef2559c9Ruediger Frankeremove dummy state from Cpp runtime as well (#3057)
e6017b43f7Ruediger Frankefix Cpp code generation for complex types
c3ab2b81ccRuediger Frankereplace memcpy with std::copy to make arrays work with complex types (fixes r25735)
0a7073df93OpenModelica Hudson[Janitor mode] Fix whitespace
d8ec3c18a0Ruediger Frankereplace specialized string arrays with a converter for external "C"
2d119c70f8Lennart Ochel- Use "listEmpty(...)" instead of "listLength(...) > 0" or similar expressions
2736819c38Ruediger Frankeremove const qualifiers from data constructors of RefArrays (fixes r25725)
c26c9da3abRuediger Frankeadd some more array constructors
e2e732694fRuediger Frankeadd const qualifiers to data arguments of array constructors
f23c302e6fRuediger Frankefix StatArrayDim3
f628fa0cdaVitalij Rugesimplify adjacency row for tearing - important for symEuler
d17bcea524OpenModelica Hudson[Janitor mode] Fix whitespace
5147a694bbVitalij Rugeadded symbolic implicit euler. Improvements will come!!
681f96c3e9Ruediger Frankeimplement POW_ARRAY_SCALAR in Cpp runtime
7bf8847761Henning Kieleliminate List.isNotEmpty() and List.first() (replaced by listEmpty() and listHead())
045668adaeNiklas Worschechfix for linker error in StatArray.resize
db58904418Niklas Worschechfix for r25703
044184b84fOpenModelica Hudson[Janitor mode] Fix whitespace
a114ce4455Niklas Worschechadded special assignment operator one,two and three dim StateArray which call assignment operator from base array
bd6eb589fdRuediger Frankefix negation of aliases for boolean variables
53ce52a124Adeel Asghar- Fix builds.
679fd4d091Adeel Asghar- Fix build, - Don't use Qt threads with OpenModelicaCompiler shared library.
7181721821OpenModelica Hudson[Janitor mode] Fix whitespace
e4baa369c3Adeel Asghar- Removed the plotSilent flag. - Added argument forceOMPlot to plot APIs.
753a764becRuediger Frankeremove reindex(1) from DynArrays to get the same zero based indexing as in other arrays
4e83a6303eRuediger Frankemove iterator from DynArray to DynArrayDim1, where it was before
3ae39f71ebRuediger Frankeintroduce base classes StatArray and DynArray to avoid repeated code
73fa6370f6Adeel Asghar#1768 - Set a call back function for plot commands. - Updated OMNotebook to use the OpenModelicaCompiler shared library.
8a9f3b41b4Lennart Ochel- Removed List.isEmpty
aa7cd40ce4Volker Waurich- uncomment separation of parameter dependent and variable dependent asserts, have to fix dae-task-graph generation first
31ea9af71dOpenModelica Hudson[Janitor mode] Fix whitespace
c0ea844a8bLennart Ochel- Reverted r25682 and r25683 until the bootstrapping tarball is updated
d62f8e8bfeVolker Waurich- put parameter dependent asserts in the paramEquation section and not in all-equations
2d01a1a8a8Lennart Ochel- Removed workaround for #3281
6cdd11dd44Lennart Ochel- use new syntax to access arrays
1902e06c36Ruediger Frankeremove reference array code from static arrays
038cffed53Patrick 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
b35172a8abPer ÖstlundFix for #3281: - Fixed handling of subscripted MetaModelica array crefs.
b0bedfc972Lennart Ochel- avoid unnecessary wrapping
4d1f61e3fcLennart Ochel- Fixed sorting of boolean parameters
2729e7deb2Adrian PopFix: #3288 - properly convert between modelica_string to fmiString - some warning fixes in SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c
28657dfddcOpenModelica Hudson[Janitor mode] Fix whitespace
5d4fa21ee8Ruediger Frankeimplement specific classes for reference arrays accessing simvars
854821e85dRuediger Frankemore universal version of previous commit
84b3de38dfRuediger Frankeimplement assign from ref arrays
ec198e99ffLennart Ochel- Oops!
43f2f50766Lennart Ochel- Some improvements to Tarjan's algorithm
79fa406454OpenModelica Hudson[Janitor mode] Fix whitespace
4c16895d85Volker Waurich- dump alias vars in dumpSimCode
bb207eed74Lennart Ochel- Merged TarjanTransposed and TarjanTransposedPartial
aee0b0eb15Patrick Marcel Taeuber- remove inadvertent comments
e6644252e4Patrick 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"
4172d0007eOpenModelica Hudson[Janitor mode] Fix whitespace
dcb7ea9124Lennart Ochel- Use new implementation of Tarjan's algorithm in omc tearing - Removed old implementation of Tarjan's algorithm
651b1ba6d6Lennart Ochel- Use new implementation of Tarjan's algorithm for blt sorting
bc0e5047d2Niklas Worschechremoved shared array from simvars
c04e35cf06Niklas Worschechfix for typo in SimVars initBoolVar
5156f823a5OpenModelica Hudson[Janitor mode] Fix whitespace
fd6dd1edb9Niklas Worschechadded method for the initialization of alias arrays in cpp runtime
44426d1681Lennart Ochel- cleanup BackendDAETransform
a0a74f0bc7Lennart Ochel- cleanup calculateJacobianRow2
8a732ad4e3Lennart Ochel- Removed obsolete module strongComponents
846c4873ecOpenModelica Hudson[Janitor mode] Fix whitespace
2dc3048dceMarcus 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
5dbaa55236Lennart Ochel- Use new implementation of Tarjan's algorithm for OnRelaxation
0e17b8f745Lennart Ochel- Use new implementation of Tarjan's algorithm for uncertainties
599c412cc4OpenModelica Hudson[Janitor mode] Fix whitespace
19d996953bOpenModelica Hudson[Janitor mode] Set auto-props
eff2d7ecf7Volker Waurich- moved visualizationXML dump to extra files - dump ast for complex expressions in visualization xml
da1dbb5ca0Lennart Ochel- Use new implementation of Tarjan's algorithm for evaluating parameters
c399b9fb73OpenModelica Hudson[Janitor mode] Fix whitespace
face8330f4Lennart Ochel- Use new implementation of Tarjan's algorithm for index reduction
381f8b500aNiklas Worschechadded special StatArray constructor for alias arrays
3e154216a9Lennart Ochel- Added new package "Sorting" to collect all the different sorting algorithms
e39a232312Ruediger Frankeremove templates that became obsolete with last but one commit
cbfb3fa19eOpenModelica Hudson[Janitor mode] Fix whitespace
f0c15aedf9Ruediger FrankeSupport multi-dimensional arrays in the external "C" interface again (#3286)
d329ff27adMichael Kloeppeladd missing changes
287faafcaaMichael Kloeppelexchange custom sparse matrix format in c++-runtime umfpack for boost::ublas sparse format adapt test case
bdc18edf3dRuediger FrankeReduce impact of new internal matrix layout
69f49b8e79OpenModelica Hudson[Janitor mode] Fix whitespace
d8d901e806Ruediger Frankemove check of program options to precompiled OMCFactory
8f85408fe2Ruediger Frankeoptimize access to elements of DynArray's
12f2ec1901Ruediger Frankebug fix for r25611
7965cf276eRuediger FrankeAdd missing pieces for changed internal storage layout (#3286)
2c274efde4Ruediger FrankeChange internal storage layout of arrays in Cpp runtime to improve linear algebra (#3286)
25474a7bc2Ruediger Frankereplace std::vector _tmp_data with boost::multi_array to make ArraySlice work for bool as well
15772169f6Ruediger Frankestore dimensions of array slice to reduce code size and speed up getDim
25860e39bdHenning Kiel- fix some warnings - spellfix
e8fd706ef1Lennart Ochel- fix indentation
5604fc874cLennart Ochel- Added transposed version of Tarjan's algorithm
8da9195c09Lennart Ochel- Simplified interface for function PerfectMatching
1ae29dcfeaNiklas Worschechfix in ArraySlice operator(), does not return a value
02c5931b26Adrian 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
5c52f069c7OpenModelica Hudson[Janitor mode] Fix whitespace
c6b8c970fcMarcus 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
3072a77326Adrian 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
2e037259d8OpenModelica Hudson[Janitor mode] Fix whitespace
511bafb28dRuediger Frankefix and generalize transpose_array
78e0e43d30Adrian PopFix bug: #3282 - allow parsing of {} for mos scripts
22d069adb5Ruediger Frankeavoid nested comments and quintuple printout of ExpressionDump
ef6eda1740OpenModelica Hudson[Janitor mode] Fix whitespace
9b2eab43edVitalij Rugeextend flag for inputs from r25582
a9cf8445c0Ruediger Frankeuse int instead of size_t in reduction expressions (see also r25564)
0efc38a35cHenning Kielreplaced "if listLength(lst)>0 then" with "if not listEmpty(lst) then" to reduce run time (O(n) -> O(1))
0db243462dRuediger Frankemake linkage of LAPACK libs platform independent (fixes r25566)
267c74d43aOpenModelica Hudson[Janitor mode] Fix whitespace
aa1e97b23eVitalij Rugenew debuge flag: added new_var = var/nominal where var is state
36b0ad4092Jan SilarFixed C# template after numeric initialization removal.
20f6a9086cBernhard BachmannSome improvements to the matching algorithm
a26562da48OpenModelica Hudson[Janitor mode] Fix whitespace
d448b0b6a4Niklas Worschechclean uclean up static array class for assign and operator= method in cpp runtime expected output
39f82c0664OpenModelica Hudson[Janitor mode] Fix whitespace
c83dfc4cc6Ruediger Frankea more rigorous attempt to fix the "targTest91" problem (#3263)
5fe6f5075cRuediger Frankeadd support for external F77 to Cpp runtime
b817b4dad9Ruediger Frankelet getDim of Arrays return int instead of size_t
fcbdf2728fRuediger Frankerevert r25560 back to r25552 because functions returning arrays need assign with const arg
1e754dd403OpenModelica Hudson[Janitor mode] Fix whitespace
71fa8503feNiklas Worschechclean up static array class for assign and operator= method in cpp runtime
4823b9e213Ruediger Kampfmann-adapted VxWworks for SimVars
4e2e897487Lennart Ochel- New implementation of Tarjan's strongly connected components algorithm
bb7689a6b9OpenModelica Hudson[Janitor mode] Fix whitespace
396ed5a698Ruediger Kampfmann-adapted VxWworks for SimVars
3ccb61267dOpenModelica Hudson[Janitor mode] Fix whitespace
0bbced24ebVolker Waurich- estimate execution costs for removedEquations as well
4960dab035Nils Menageradded functions to factoryexport for bodas and vxworks
beabea06aeNiklas Worschechfix in getDatCopy for dynamic array in cpp runtime
a22ca5ff93Ruediger Frankerevert CodegenCpp.tpl from previous commit
e2a7d2400eRuediger Frankeadapt ArraySlice to r25546
cc66014554OpenModelica Hudson[Janitor mode] Fix whitespace
780062938fNiklas Worschechfix for reference array methods assign,operator= and getData in cpp runtime
e9f1e1a1a0OpenModelica Hudson[Janitor mode] Fix whitespace
26d28e4c0cMarcus 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
6b1e7bb36eLennart Ochel- revise implementation of Tarjan's strongly connected components algorithm
63116a4106Patrick Marcel Taeuber- use while loop instead of recursion in Tarjan matching
806fe1d29fLennart Ochel- fix indentation
d8ebf83117OpenModelica Hudson[Janitor mode] Fix whitespace
fa793d48e4Volker Waurich- added stuff to dump a xml file that contains information about visualization objects
fb7d0d028eOpenModelica Hudson[Janitor mode] Fix whitespace
f2eeacd1d2Vitalij Ruge- attempt to fix partial negation of the lhs inside createNonlinearResidualEquationsComplex - added warnings for generateCrefsExpFromExp and generateCrefsExpLstFromExp
364f69f6c0OpenModelica Hudson[Janitor mode] Fix whitespace
f124afbf56Nils Menagerchange in SimController (_simMgr is now member variable again)
92b049bf0aVitalij Rugeimproved r25524
a863589dd5Lennart Ochel- clean implementation of some dumps
79efc13314OpenModelica Hudson[Janitor mode] Fix whitespace
ddad86f116Vitalij Rugeadded flag for diasbale Msg from omc
56d931389dLennart Ochel- cleanup
48537f9806Willi Braun - added additional flags for dassl for output control in non-equidistant mode
4e56867dadOpenModelica Hudson[Janitor mode] Fix whitespace
e4b05e70afVitalij Rugesymbolical QR-solver: added householder(default)
3facf89d0bOpenModelica Hudson[Janitor mode] Fix whitespace
4e44eca2fcPer ÖstlundFix for #3250: - Rewrote Static.replaceEnd to handle qualified/fully qualified crefs correctly.
56d5208e77Adeel Asghar- Fix documentation examples.
17967e7d09Marcus Walther- fixed HPCOM-Cpp-Tests (memory optimization is still broken) - added some HPCOM-Cpp-Tests to Hudson
305ab23be6Ruediger Frankefix name clash if a Modelica model uses a variable pow (#3268)
9fdfa27b98Ruediger Frankeadapt FMI2 to new SimVars
d9e3df55d4Lennart Ochel- minor changes to some comments
08bd5e0ccaLennart Ochel- Avoid redundant code
52f33df515Lennart Ochel- Use new matching implementation in Initialization.mo
36a2492d97OpenModelica Hudson[Janitor mode] Fix whitespace
2b7a190244OpenModelica Hudson[Janitor mode] Set auto-props
cdfcc84626Niklas 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
166d96bb4fRuediger Frankeunify name of iteration variable in ranges to avoid c++ warning about changed lookup rules
ab7e76478eAdrian PopFix bug: #3269 - add code for deleteFile in Compiler/Script/CevalScript.mo - add test in: testsuite/openmodelica/interactive-API/Bug3269_deleteFile.mos
14ffb438a4Ruediger Frankeadd ModelicaExternalC and ModelicaStandardTables to Cpp targets
2c0590eb15Ruediger Frankeimplicit treatment of multiplication of zero dimensional arrays
7d9a87e77fAdeel Asghar#2860 - Allow preserving the zoom level. Don't always auto rescale for new variables in plot.
1e8e07225eRuediger Frankeimplement multiply_array for 1D and 2D arrays
105fdb28a6Adrian 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
d6ee7ce70eOpenModelica Hudson[Janitor mode] Fix whitespace
bbc6f03020Bernhard BachmannAdded another implementation of the "usual" matching algorithm. Method also works in combination with the available index reduction methods.
74cdd7078fVitalij Rugeimproved r25421
e33cf67b8aOpenModelica Hudson[Janitor mode] Fix whitespace
fcb1fadd8cLennart Ochel- increase informative value of some error messages
409e11db29Lennart 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, ...)
f158abb933Ruediger Frankemove call to initializeAlgloopSolverVariables from initialize to constructor
148ec3d5cdOpenModelica Hudson[Janitor mode] Fix whitespace
2ae042b5bdNils Menagercleanup of Policy Files for Bodas and VxWorks
294834078fOpenModelica Hudson[Janitor mode] Fix whitespace
ffdd23ba69OpenModelica Hudson[Janitor mode] Set auto-props
a9009b7e38Ruediger FrankeFMI2 Cpp: separate initializeMemory from initializeFreeVariables to avoid memory leak in fmi2Reset and to speed it up
e296a44cadRuediger Kampfmann-added files for vxWorks
2644fd5b0fRuediger Kampfmann-added files for vxWorks
761b251cc7Nils Menagerchanged function name for BODAS and VxWorks Factory function (cpp runtime)
2398851ee3Ruediger Frankeoptimize ArraySlice to avoid internal copy of a given index set (#3263)
d6d55cbd56Ruediger Frankemake Cpp code using BOOST_FOREACH work with DynArrayDim1
80ecad3dd3OpenModelica Hudson[Janitor mode] Fix whitespace
cee9227083Adeel Asghar- Moved the exception handling to OpenModelicaScriptingAPIQt.cpp. Just emit the signal with exception from there and show it in OMEdit.
267f1de608Ruediger Frankeuse ArraySlice for rhs expressions as well, replacing create_array_from_shape
cbd5978508Ruediger Frankereplace unsigned int with size_t for sizes
c5560490c0Ruediger Frankeremove useless const's from *ArrayDim2, typo, some whitespaces
6e9befcf41Ruediger Frankeadd getDim method to arrays to avoid temporary vectors if just one size is wanted
b109d6407bRuediger Frankemore const refs
ce0bfafcccRuediger Frankeadd missing const qualifiers and pass indices by reference for to access operator
504a45ce68Ruediger Frankeadd support for SLICE expression
3abb26c7e7Nils Menageradded ifdef's for BODAS in RTEuler
db703eb4d4OpenModelica Hudson[Janitor mode] Fix whitespace
9a24136aacOpenModelica Hudson[Janitor mode] Set auto-props
10fc0ebb53Ruediger Kampfmann-added RTEuler
9d6750f727Ruediger Kampfmann-added RTEuler
885c6e3872Ruediger Kampfmann-added RTEuler
e446f56227Ruediger Kampfmann-added RTEuler
87d477b30aVitalij Rugesymbolical QR-solver: - improved handling for const exp - added scaling
3905d14e75Nils Menageradded boost::algorithm::string to Modelica.h in cpp runtime
4be42e29ebOpenModelica Hudson[Janitor mode] Fix whitespace
ccc0e9ecccOpenModelica Hudson[Janitor mode] Set auto-props
c1810e5414Nils Menageradded BodasFactory to cpp runtime
153ff9f9a5Ruediger Kampfmann-removed obsolete method setcycletime()
d086b470a1Lennart Ochel- don't observe strictly singular systems during initialization (just for testing)
ff32e76855Nils Menageradded Policies in cpp runtime for BODAS
144e4154e4OpenModelica Hudson[Janitor mode] Fix whitespace
456f638bf1Vitalij Rugesymbolical QR-solver: improved handling of know-vars
bd14462cd2Ruediger Frankeinstall new file ArraySlice.h (#3263)
25108d4792Lennart Ochel- blanks
46ec26287aOpenModelica Hudson[Janitor mode] Fix whitespace
f20f727138Volker Waurich- added removedEquations to the DAE-TaskGraph
1509df2452OpenModelica Hudson[Janitor mode] Fix whitespace
22abefc689Ruediger Frankeintroduce ArraySlice to treat assignments to subarrays on the lhs (#3263)
4661b7ed9eRuediger Frankefix initialization of array output and implement assignment of a range to an array (#3263)
f98f34d1dbAdrian Pop- attempt to add -fPIC even if getconf LONG_BIT != 64 (as it seems to be on ARM)
a4075f4dc5OpenModelica Hudson[Janitor mode] Fix whitespace
81a6c7930cRuediger Frankerevert changes to FMI1 again (r25397), because they are incomplete
07ccc17cf3Ruediger FrankeFMI2 Cpp: implement fmi2Reset function
2fd6859223OpenModelica Hudson[Janitor mode] Fix whitespace
8b611a2a90Ruediger Frankeseparate initialization of free variables from initialization of bound variables
229d3ebd50Ruediger FrankeFMI2 Cpp: additional changes to remove writing of output file from FMU
6c18317f2cRuediger FrankeFMI2 Cpp: remove writing of output file from FMU
18dd1410fdRuediger FrankeFMI2 Cpp: upgrade initialization
f2e146ea3bRuediger Frankeformattings
f956dabf93Ruediger Frankefix r25379
d152f3ff0dRuediger FrankeFMI2 Cpp: add rpath to solver libs
25a53cd649Ruediger Frankefix FMU solver names
d4e2b94c14Adrian PopMore fixes to bug: #3261 - use '!' instead of '|' which could be used when overriding the regular expression from variableFilter
f6abf617a3Adrian 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
5eb0f62f72Ruediger Franketreat multiline doc strings (cf. r24891)
a8fde2f1a4Ruediger Frankefix initialization of dependent variables
b077351ae9Ruediger FrankeFMI2 Cpp: apply runtime license
6787788d35Adrian PopFix bug: #3261 - support parsing the variable names containing array indexes (which contains ",") - added test: testsuite/simulation/modelica/others/Bug3261.mos
e418ae346cWilli Braunfix #3251
7aaefa843bOpenModelica Hudson[Janitor mode] Fix whitespace
2a962db71cWilli Braun - adapt BackendDAEUtil.reduceEqSystem for symbolic jacobians and utilize it.
9992292ac9Marcus Walther- fixed build
97ef07226cOpenModelica Hudson[Janitor mode] Fix whitespace
c12a0de124Marcus Walther- moved mixed array vars from SimCode to ModelInfo-SimVars - cpp tests updated
2820451b80OpenModelica Hudson[Janitor mode] Fix whitespace
77636ee68aRuediger FrankeFMI2 Cpp: resolve alias variables in new getters and setters
3e36691a59Ruediger Frankefix memory leak in ModelicaSimulationError (#3256)
9c7baf7613OpenModelica Hudson[Janitor mode] Fix whitespace
4affa10c77Ruediger Kampfmann-fixed #3258: Missing AlgebraicModelJacobian::initializeColoredJacobianA()
2f79736366Volker Waurich- addded proper ordering for metis scheduler - added messages if parallel simulation isn't worth
3a4f448cf6Martin SjölundSome fixes to compile with parmodelica
0b3b011a8cRuediger Frankecosmetic changes to r25337 (#3253)
460d445b92Olena Rogovchenkofigaro changes
16830d325dAdrian PopFix bug: #3254 - return component annotations that are not graphical classes also - added test: testsuite/openmodelica/interactive-API/choicesAllMatching.mos
ca0f0dc615Adrian 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).
aa24eef336Ruediger FrankeFMI2 Cpp: add libOMCppMath_static to FMU (#3238)
07c4c4475eMartin SjölundHandle empty origin and rotation
b853bbc7d5OpenModelica Hudson[Janitor mode] Fix whitespace
9160007852Ruediger FrankeFMI2 Cpp: introduce new getters and setters
80a062f8deOpenModelica Hudson[Janitor mode] Fix whitespace
db98b830e2Ruediger Kampfmann-adapted cpp runtime files for vxworks
efada569bfOpenModelica Hudson[Janitor mode] Fix whitespace
a8fa5985eaMarcus Walther- added additional information to sim code, about array-variables that contain state or state derivative variables together with other variables
a045c5533dOpenModelica Hudson[Janitor mode] Fix whitespace
367e696b9dOpenModelica Hudson[Janitor mode] Set auto-props
289da2cdfbNils MenagerAdded necessary ifdefs for ModelicaSimulationError on RT targets (cpp runtime)
a1bc23b9ecRuediger Kampfmann-some changes concerning colored jacobians
e6b9337271OpenModelica Hudson[Janitor mode] Fix whitespace
a639d116dfOlena Rogovchenkofigaro changes
39174d74ceOlena Rogovchenkofigaro changes
d9490d4f90OpenModelica Hudson[Janitor mode] Fix whitespace
4d73bbf47dRuediger Kampfmann-some changes concerning colored jacobians
69f32e07b9Martin SjölundGC library changed name
055bfe8a43Martin SjölundChange libgc to libomcgc to make sure we link against the correct version of boehm-gc
2b4c9defd2Ruediger Frankeallocate options vector optv dynamically (fixes r25299)
1c36eccf3eRuediger FrankeFMI2 Cpp: remove macro OBJECTCONSTRUCTOR
0f669b27fcRuediger FrankeFMI2 Cpp: distinguish model identifier from model class
26bd25889eRuediger FrankeFMI2 Cpp: fix name of FMU binary for hierarchical models
0b93dff21dOpenModelica Hudson[Janitor mode] Fix whitespace
c0099a237aOlena Rogovchenkofigaro changes
089ffc1923Olena Rogovchenkofigaro tweak
6c71abdf0bOlena Rogovchenkofigaro tweak
1b94ea5cbeAdrian Pop- plot only the last week for the detailed library trend
5bffb6b0d6Ruediger Frankeremove some clumsiness of previous commit
0aa3aa315eRuediger Franketreat OMEdit override option in Cpp runtime (#3233)
44fea8357cRuediger Frankeremove symbolic link from Cpp makefile for Linux
5ccd835fceRuediger Frankeadd default options to Cpp executable (#3233)
18bc2720b8Vitalij Rugecosmetic change
31c55daf85Niklas Worschechchanged the name for the simulation executable of the cpp runtime to [Model].exe
d8bd7a383cAdrian 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
65f22e71feVitalij Rugeimproved reduceDynamicOptimization
7ceb890ddeRuediger Frankeadd exception handling to fmi2Instantiate
4977eb57a1Ruediger Frankefix getReal of Cpp FMI 1.0 and correct sizes of _tmp_real_buffer
c932275eaeRuediger Frankefix Cpp getInt/Bool/String
5c94581030Vitalij Ruge-improved reduceDynamicOptimization -added test for combination reduceDynamicOptimization and extendDynamicOptimization
936a7af8aaAdrian PopFix #3247 - use the class modification from the environment
3e8fc88eb8Marcus Walther-Boost real paths can now be used optionally
0e7a877fe6OpenModelica Hudson[Janitor mode] Fix whitespace
a9cf315d82Marcus 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
b7d3ed76b6OpenModelica Hudson[Janitor mode] Fix whitespace
450ee5e691Vitalij Rugeadded module reduceDynamicOptimization (Thanks, Willi) - remove eqs and vars, which are not part of the optimization problem
74781e3225Ruediger FrankeFMI2 Cpp: add FMU2 to installation
1c2faebd22Ruediger Frankefix uint
5fef56ddc1OpenModelica Hudson[Janitor mode] Fix whitespace
87b383371aBernhard BachmannPrototype of a new RemoveSimpleEquation module added
5e2cdf6b8cAdeel Asghar- Fix the checkModel output. - Fix failing tests.
8a60b27f84Adeel 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.
4537d4b105OpenModelica Hudson[Janitor mode] Fix whitespace
1ed8728959Willi Braun - added config flag for removeSimpleEquation to select the choose method
bb1ac6c378Per ÖstlundFix for #3245: - Fix code generation for assignment to record slices in functions.
ba6fe3e764Marcus Walther- forgot to update one cmake version
ea7c1aaa80Marcus 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)
1a009710fcRuediger Frankecosmetic change
9ce5e954aeRuediger FrankeFMI2 Cpp: add debug logging and exception handling
b369c6dd46Adrian Pop- allocate the structure, not the pointer
36dd31ed78OpenModelica Hudson[Janitor mode] Fix whitespace
d6f59bde58Adeel AsgharAnother try to fix FMI tests
3a574f3954OpenModelica Hudson[Janitor mode] Fix whitespace
bff8ce0824Mahder Alemseged Gebremedhin- Keep External decls.
623e897365OpenModelica Hudson[Janitor mode] Fix whitespace
b0f7d5bbd1Volker Waurich- fix for preCalculateStartValues
30ee7b5083Ruediger FrankeFMI2 Cpp: fix ordering of real variables (aliases behind parameters)
4be6003730OpenModelica Hudson[Janitor mode] Fix whitespace
a496e139afAdeel Asghar- Try to fix FMI tests.
0e77d95e0aVitalij Rugefixed extends dynamic optimization formulation - initial guess with file - handling der(x)
56bd4dceedRuediger FrankeFix _dimReal to size expected by getReal and setReal, including aliases and states
20e53ecbcdRuediger FrankeFMI2 Cpp: re-add boost libs to Makefile (got lost in r25209)
bd33e054b5Ruediger Frankeadd extra parser to accept OMEdit options
a0bdd00244Adeel 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.
08efd30871Mahder Alemseged Gebremedhin- ParModelica interface update
b3ed891209Marcus Walther- improved cmake error handling if umfpack was not found
f62345fbcaOpenModelica Hudson[Janitor mode] Fix whitespace
5cde2c4298Marcus 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)
87be1d4179Mahder Alemseged Gebremedhin- Clean up of tuple return handling.
4f6b67a104Marcus Walther- improved path handling of cpp-runtime
574dcac200OpenModelica Hudson[Janitor mode] Fix whitespace
04a519d343Marcus 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
1211dd856aRuediger FrankeFMI2 Cpp: remove duplicated generation of simulation files as contextFMI does not appear to make a difference.
131bf48be2Ruediger FrankeFMI2 Cpp: fix naming to consistent use of short model identifiers (#3241)
5d4eb06e20Lennart Ochel- update DSS dump
c00f64013bAdrian 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
0097e5dc54Ruediger Frankepermit repeated simulation with Cpp runtime by removing already existing link
899c1fb410Ruediger Frankeattempt to treat #3233 by just warning about unrecognized command line options
0be801ec4aRuediger FrankeFMI2 Cpp: generate missing source files and extend Makefile (#3238)
32ac8d115eOpenModelica Hudson[Janitor mode] Fix whitespace
85ead7a222Ruediger FrankeFMI2 Cpp: adapt generated model wrapper to FMI version
993877cbd0Ruediger FrankeFMI2 Cpp: generate appropriate modelDescription.xml
9b531d4e0dRuediger Frankere-fix whitespace (see r25194)
9696bb73f2Ruediger Frankefix wrong LDFLAGS (#3238)
97c73b4702OpenModelica Hudson[Janitor mode] Fix whitespace
4d1eb66722Ruediger Frankerevert unintended change of previous commit
0a27636438Ruediger FrankeInitial version of FMI 2.0 export with Cpp runtime (#3238)
57ea85f84aVitalij Rugefixed handling der(x) in extends dynamic optimization formulation
857b7d76f0Volker Waurich- added BackendDAEUtil.isSimulationDAE()
021c789b03Volker Waurich- some fixes for constant jacobian evaluation
72fad54b2eOpenModelica Hudson[Janitor mode] Fix whitespace
056f99f660Vitalij Rugeimproved extends dynamic optimization formulation
27c2636c48Per Östlund- Fix ThermoPower tests.
d2570c43cbMahder Alemseged Gebremedhin- Keep restrictions.
df00103d3aOpenModelica Hudson[Janitor mode] Fix whitespace
544cf65b13Mahder Alemseged Gebremedhin+ fix parmodelica kernel function interface generations.
2ebb2d8441Mahder Alemseged Gebremedhin- Add missing decalrations for in_* functions. We need them declared as extern C.
f432f940f2Per Östlund- Prepare Mod.elabModValue to return the cache.
72597fbf64OpenModelica Hudson[Janitor mode] Fix whitespace
3392478c76Vitalij Rugeadded module for move loops as equal constrains in NLP - cheaper,simple evaluation for jacobians, DAE - bigger NLP open issues: initial guess.
95593e3657OpenModelica Hudson[Janitor mode] Fix whitespace
83251a0bc8Per Östlund- Make Mod.elabModValue fail if Ceval prints an error message.
a4e433aef8Volker Waurich- array equations that solve non-array vars have to be handled as non-linear systems
9b852f186dMartin SjölundTry to output \r for string literals that used \r explicitly
2c55fff2aeMartin SjölundSimplify trimming for whitespace
c0e2b8e61dMartin Sjölund#3169 Try to fix darwin name again
7d2cc18143Adrian Pop- ISO week number
e974a71973Adrian Pop- even more fixes to library trend plotting
3b6b907413Adrian Pop- more fixes to library trend plotting
5559a103feAdrian Pop- more fixes to library trend plotting
466d7721dcAdrian Pop- try echo 0 not 0.
514d1eee3dAdrian Pop- add verification curve to library trends (set to 0 now if it doesn't exist)
b53a9615cbLennart Ochel- use hash set instead of hash table to collect variables used in when clauses
42051949b1Lennart Ochel- cleanup
c2eb4de3e3Lennart Ochel- remove unnecessary cases for when/elsewhen in algorithms
5e7ac6fe6bAdrian Pop- fix bad typo in ModelicaBuiltin.mo
2fb5d6b151Adrian Pop- increase version to 1.9.3 nightly
80b135dbffAdrian Pop- switch version to 1.9.2
290b631b0eOpenModelica Hudson[Janitor mode] Fix whitespace
c555854041Mahder 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.
02db2b276cVolker Waurich- solve linear systems with constant jacobian and variable b-Vector symbolically with +d=constjac
62783d021fAdrian 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
09c5cf1bb1Adrian 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
5c8a28d0f9Mahder Alemseged GebremedhinFix List.combinationMap1 too.
9478fb9336Mahder Alemseged Gebremedhin+ workaround for cpp runtime until the template gets updated for array handling changes.
5a9c2c7e8aOpenModelica Hudson[Janitor mode] Fix whitespace
b8529bac16Mahder 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.
2f3e6ec127Willi Braun - fix the counting of #3217, but record of arrays are currently not supported by the runtime.
4d3a80016ePer Östlund- Fix Expression.typeof for ASUB with non-scalar subscripts.
a798a5f887Per ÖstlundFix for #3212 and #3213: - Changed Expression.expandSubscript to use expandRange, so that it's able to also handle non-integer ranges.
8cd1d4b7b5Lennart Ochel- rename Expression.traverseExp to Expression.traverseExpBottomUp
bd3df36b36Lennart Ochel- minor cleanup to traverseExp
9863ec82c4Martin SjölundReplace MM trig functions with Modelica equivalents
89457a026aLennart Ochel- cleanup
1c2ae3cc51Vitalij Ruge added flag for using ExpressionSolve in adjacencyRowEnhanced - can be used e.g. for warmstart in dyn. optimization
d94fa40edbAdrian Pop- switch back to 1.9.2 Nightly
f5ac4fe57dHenning Kieluse realTan instead of realSin/realCos
0779485654Adrian Pop- revert r25066, modelica_string is *NOT* const char*, is MetaModelica string, defined as: typedef modelica_metatype modelica_string;
93983ebd64Adrian Pop- switch version to 1.9.2 Beta2
f7944834fdMahder Alemseged Gebremedhin- c++ compatibility. const correctness required.
47730a812aLennart Ochel- prepare module to encapsulate all function calls
dce49f5c0aPer Östlund- Fix some bad enum to int conversions in the back end. - Some code clean up.
b640ae0bf6Mahder Alemseged GebremedhinFix wrong array scalar marking.
4b47dbdb40Lennart Ochel- don't handle homotopy in cse module
fa61ca65c4Lennart Ochel- fix indentation
a15b84d666Volker Waurich- revert r25052, will fix it later
a285b3f241Volker Waurich- array equations solving non-array variables are actually non-linear systems
8f4e8a851fMartin FlehmigAdded cppFlags to simulation makefile.
138f2b4fdfMartin SjölundClean cmake crap better
0acd505b09Adrian Pop- make sure is gcc before you add the extra flags - make the cmake verbose for easier build debugging
00dc56ddd3Adrian Pop- pass the cc flags to metis building
52096b79a0Martin FlehmigAdded flag 'cppFlags' in order to commit flags for C++ compiler in CppRuntime.
0fa91a6515OpenModelica Hudson[Janitor mode] Fix whitespace
3464a66793Per Östlund- Handle other types than integer ranges in BackendDAEUtil.extendRange.
361b4a6c1eMartin FlehmigAdded config flag 'cppFlags' in order to commit flags to C++ compiler in cppRuntime.
3f94931f25Henning Kiel- replace most List.isEmpty/List.isNotEmpty by internal listEmpty - replace recursive function with while loop
6570b17c7eLennart Ochel- typo
08082c4d9dOpenModelica Hudson[Janitor mode] Fix whitespace
c8db6a2d12Niklas Worschechfix for getReal method in cpp template expected output
a31b4dff99Marcus Walther- metis added to bootstrap-dependencies
cfee79625fMarcus Walther- metis include added
8dff8e64aeLennart Ochel- some cleanup
1ed8384f6bMarcus Walther-enabled metis for linux and mac by default
c78e112b20Marcus Walther- added metis to windows build (mingw)
76e956b972Adrian Pop- fix code generation for OpenTURNS (Uncertainties) which was broken since r22958 (bad assert).
3e4a58a97cAdrian Pop- more tries to fix #3056 by fishing in the dark :) - update 3rdParty to r137/OpenModelicaExternal
3b82e2ac60Willi 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.
0f31e5760aAdrian 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
918039efdfWilli Braunmake Modelica.Fluid.Examples.PumpingSystem working again - by adding hybrid solver to the homotopy solver
950d9f44beAdrian PopFix #3209 - keep only unique equations for initialization
d5a87d2468Martin SjölundHandle different host vendors (default is unknown; dpkg uses pc)
6c1dd7cfc3Lennart Ochel- revert r25012, since it breaks some stuff
09180c42b9Lennart Ochel- attempt to fix #3211
418a23ae50Adeel Asghar- Add a default start value for inputs.
caab11c207Martin SjölundSerialize algorithm sections with a single assignment differently
9cd11c89ffAdeel Asghar- Fixed fmiEventUpdate.
14abf44abbAdrian 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
6d2afdd64cLennart Ochel- disable warning if removeSimpleEquations failed for a subsystem - cleanup
0776a08d0aLennart Ochel- skip subsystems if removeSimpleEquations failed
08e1c29bc6Adeel Asghar#3205 - Fix output causality.
96fb6d9bdaAdrian Pop- msvc friendly implementation
2826f4eaddOpenModelica Hudson[Janitor mode] Fix whitespace
bdcc4ccf9aNiklas Worschechfix for Jacobian initialization in cpp template
3010a0bb91Martin SjölundFix printing of sparse Jacobian matrix (crashed for large systems) - Also skip printing the system unless the stream flag is set
5dffe2aac6Martin SjölundFix type checking error - `Type mismatch in assignment in colorMap := {{0, 0, 0}} of Real[n_colors, 3] := Integer[1, 3]`
a66a652088Adrian 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
360a84ea8dMarcus Walther- changed implementation of tpl.iterSeparatorAlignWrapString to while-loop instead of recursion, to fix stack overflow for large rexroth model
8ce63e596eAdrian PopFix #3051 - merge modifiers for the class from the environment - add tests: testsuite/flattening/modelica/modification/MissingModifiers.mo, testsuite/flattening/modelica/modification/TestMissingModifiers.mos
d0a00165d3Mahder Alemseged GebremedhinRevert output counting changes until we fix all the issues.
66c19d2b7bOpenModelica Hudson[Janitor mode] Fix whitespace
a4fa7a9a8eMahder Alemseged Gebremedhin- Hanlde multi dimensional array exressions in array equations. - Fix cref expansions.
95053ca323OpenModelica Hudson[Janitor mode] Fix whitespace
953f298061Per ÖstlundFix #3193: - Made TplParser.restOfTemplLine iterative to avoid stack overflows.
42447f5465Adrian 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
f8b44dd8b3Adrian Pop- fix unparsing of Absyn.AS
d5eff898aaVitalij Rugefixed r24971
081be3adebOpenModelica Hudson[Janitor mode] Fix whitespace
17abe8bdb1Vitalij Rugeusing time grid inside model for dyn. optimization
d924b0fb65Mahder Alemseged Gebremedhin- Improve r24961.
95c013ff51OpenModelica Hudson[Janitor mode] Fix whitespace
e87391212dAdeel Asghar- FMI 1.0 co-simulation API skeleton.
49c55782eeAdeel Asghar#3034 - Define default start value for input causality.
849516ba83Lennart Ochel- improve error message of transformation module "sort components" - cleanup pattern matching and unused arguments
4a344db818Lennart Ochel- some cleanup
d768c90b93Adeel Asghar#3171 - Do not generate the empty TypeDefinitions section.
314bdd897dAdrian 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
9be3b1cffeLennart Ochel- mark function createStateSets as protected
f7e4fa2243Ruediger Kampfmann-new target vxworks69
ec62468866Martin SjölundFix number of spaces
78d1b2497eOpenModelica Hudson[Janitor mode] Fix whitespace
51aca84c19Ruediger Kampfmann-new target vxworks69
c55c29d686Vitalij Rugeadded interface for user time grid in dyn. optimization
a4189ad556OpenModelica Hudson[Janitor mode] Fix whitespace
6bac956339Mahder 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
2c510caea5OpenModelica Hudson[Janitor mode] Fix whitespace
01ea458dfcBernhard Bachmannsome cleanup and correction to the nonlinear homotopy solver
88e15bf553Adrian Pop- revert r24941 (and r24942) as it breaks the builds
e6c3fbc18fOpenModelica Hudson[Janitor mode] Fix whitespace
090894a0beRuediger Kampfmann-new target vxworks69
145fbaeeb4Marcus Walther- revert revision 24937, because windows build fails
eff9e59011Adrian Pop- small change on DAE.VAR printing - add element source type list dumping, commented out for now
04830c8fd3Adeel Asghar- Start generating co-simulation FMUs. The FMU doesn't contain valid code yet but will soon.
c712037951Marcus Walther- changed cvode to cvode_lapack - some cleanups for ILapack.h
871b241b16OpenModelica Hudson[Janitor mode] Fix whitespace
1ab23ac23eNiklas Worschechfix for Jacobian variable names in cpp template
de54b76dddVitalij Rugeimproved time grid in dyn. optimization
76f0fa74a2Mahder Alemseged GebremedhinFix #3190
c2593a15b5Mahder Alemseged GebremedhinFix boolean slice assignments in c runtime. Fix #3188
936719c7b6OpenModelica Hudson[Janitor mode] Fix whitespace
73113bd2f1Adrian Pop- fix the type source for the enumeration type inside DAE.ElementSource.typeList (port from rml branch)
e19d57d522Bernhard Bachmannspeed-up of non-linear homotopy solver by adding new stop criteria
4d0c547a40Mahder Alemseged Gebremedhin- Improved handling of slice arrays - Fixed slice array assignments - Fix #3184
ae11989ce8Lennart Ochel- remove obsolete util stuff
61172b73a8Lennart Ochel- change directory separators in some description strings
3f5f21e4b4OpenModelica Hudson[Janitor mode] Fix whitespace
dd21d7e7c2Marcus 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
582614e977Adrian Pop- fmilib needs shlwapi, not OpenModelicaFMIRuntimeC
adae419984Adrian Pop- order matters shlwapi needs to be after fmilib
d168428b22OpenModelica Hudson[Janitor mode] Fix whitespace
b826ccff69Patrick Marcel Taeuber- improved Cellier tearing, now it is able to handle large components
efd471ab6cMartin SjölundDocument symbolic operations
a463dd5ce5OpenModelica Hudson[Janitor mode] Fix whitespace
a645f637ddNiklas Worschechfix for string array in cpp template
395cb1eb8dLennart Ochel- change messages
a37b7ea482Henning Kielfix some warnings
9e24c0accaLennart Ochel- initialize spare structure for jacobian A if qss solver is used
63ea0b9dd6Adrian Pop- better handling of lib strings for +target=msvc
9176dcb67aOpenModelica Hudson[Janitor mode] Fix whitespace
2d85d41dd4Willi Braun - improved handling of differentiated variable names for symbolic jacobians
0342f2cf2cAdrian 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
949fd208a6Marcus Walther- fixed some cpp-runtime-tests
697b89a8f9Adrian Pop- suppress library not found message when running the testsuite.
f8470726dfOpenModelica Hudson[Janitor mode] Fix whitespace
d40dee77e0Mahder Alemseged Gebremedhin+ Use exps in array assignments instead of direct crefs. + Fix array algorithm assignment generation.
1e44714176Adrian Pop- increase simulation executable stack size on Windows
4623b8113dMarcus Walther- changed PreVariables-Array from dynamic to static - added a "isSome"-function to the Util-module
348afb1cefNiklas Worschechfix for initialization of string parameter in cpp template
6227835a18Martin SjölundAvoid generating platform-specific Modelica code for FMU's
c983b602f0Martin SjölundAdd %APPDATA% to get a directory to store user files on Windows
8c28716778Martin SjölundFix assertion of json text
cf0390dacaOpenModelica Hudson[Janitor mode] Fix whitespace
293a54fe35Vitalij Rugeaktived postOptModul lateInlineFunction
0aab849754Niklas Worschechfix for cpnvertBoolToInt in cpp runtime
3dfe5c9642Martin SjölundFix the debug info according to the schema
94a443a4caVitalij Rugefixed makeNoEvent?
ab6c8f4ce6Lennart Ochel- more cleanup
b36365b9feOpenModelica Hudson[Janitor mode] Fix whitespace
93cad0ec1fNiklas Worschechfix for initialization of string alias variables in cpp template
8d0f908eabVitalij Rugerevert r24844, don't work
26071c2342Vitalij Rugeimproved handling of not derivable function calls in ExpressionSolve
60240740ccLennart Ochel- some cleanup
3848114630Lennart Ochel- mark public templates in CodegenC.tpl
38aa136d90Lennart Ochel- cleanup of some obsolete templates
e3c80b8047Volker Waurich- dump type information for equations in +d=dumpSimCode
1cb172cbacOpenModelica Hudson[Janitor mode] Fix whitespace
7803d9ab73Per Östlund- Completely wreck scodeInst.
b339f9cbd9Henning Kielsome cleanup
00c28f7b36Lennart Ochel- prepare qss solver development (using euler method as place holder)
7c3bb7807eOpenModelica Hudson[Janitor mode] Fix whitespace
1935b7aabaLennart Ochel- fix string handling
aa906305c2Niklas Worschechfix for pre call for array in cpp template
3754f6b1dcOpenModelica Hudson[Janitor mode] Fix whitespace
ae60742912Lennart Ochel- add auxiliary function for printing sparse structure of jacobian A
2cdd472a6aRuediger Kampfmann-removed argument cycletime in calcOneStep and runSingleStep
91056c7bbaRuediger Frankeremove call to dimensionKnown from Static.elabBuiltinDiagonal (#3168)
e88f2c1f0dAdrian PopFix #3180 - fix unparsing of dummy derivative operations in Model_info.json
ec580e2fc3Vitalij Rugeadded simplify rule for differentiation of function call (active with flag)
ce92a6a3e7Adrian Pop- split the detailed trend into a new file
8a75ddc3f8Vitalij Rugeactivated some optimization for jacobians
f398394ac2Henning Kielfix warning fix memory leak
2e796ee83aLennart Ochel- remove unused import statement
deee448b7aLennart Ochel- move auxiliary functions to BackendDAEUtil
70fdb7c0b0Lennart Ochel- translate html dump into English
daa3a56f57Lennart Ochel- fix trailing blanks
9fa79540d6Lennart Ochel- some more cleanup
da2f81e151Lennart Ochel- cleanup DumpHTML stuff
721d9d0043OpenModelica Hudson[Janitor mode] Fix whitespace
041dcfb9dbLennart Ochel- new xml dump that can be placed at each position of the pre/post optimization phase
c765b0e83cLennart Ochel- cleanup dumpXMLDAE implementation
e416fb86aaLennart Ochel- new dump that can be placed at each position of the pre/post optimization phase
d659af3c89Lennart Ochel- dump states properly (LOG_DASSL_STATES)
f4cd0419d4Lennart Ochel- dump tolerances properly (LOG_SOLVER)
b61c576d47Vitalij Rugefixed output
3b0a884843Marcus Walther- copy-constructor added to cpp-runtime model-class - some cleanup and fixes for arrays in membervariabledefine in cpp-template and cpp-hpcom-template
46ba65620bOpenModelica Hudson[Janitor mode] Fix whitespace
5ce643a009Volker Waurich- fix hpcom for empty system, set numProc correctly for empty systems
f92b988605Adrian Pop- better handling of detailed trend part
91927af25dAdrian Pop- generate also *-trend-detailed.svg and png with the last 2 weeks
8f626cbb4cAdrian Pop- make it executable
578cd5aac2Adrian Pop- add the trend generator to svn
e674424fcdOpenModelica Hudson[Janitor mode] Fix whitespace
fe1b3b8856Olena Rogovchenkofigaro export bug fix in xml generation
a561f6c5ceMartin Sjölund- use cd() for current directory as you cannot call System.pwd inside ModelicaBuiltin.mo
daed35fea2Adrian Pop- use "." for current directory as you cannot call System.pwd inside ModelicaBuiltin.mo
e3f87030c8OpenModelica Hudson[Janitor mode] Fix whitespace
459a498a4bHenning Kielfix mkdtemp according to definition from man page
be2b428a80Olena Rogovchenkofigaro export bug fix
37c80aa48aMartin SjölundAllow --std=latest to change to the default (was previosuly impossible)
e10c23c17fOpenModelica Hudson[Janitor mode] Fix whitespace
0e6484e67dPer Ö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.
165374bf27OpenModelica Hudson[Janitor mode] Fix whitespace
958e4fecfeMarcus Walther- fixed a strange segmentation fault of gcc, if hpcom-openmp code is used
74314a7ffdOpenModelica Hudson[Janitor mode] Fix whitespace
6823b02b3fLennart Ochel- new flag to deactivate partitioning
46db20a4e0OpenModelica Hudson[Janitor mode] Set auto-props
be66770e16Lennart Ochel- separate dumpGraphML stuff from index reduction
f636fff6d0OpenModelica Hudson[Janitor mode] Fix whitespace
1a0275d135Per ÖstlundFix for #3178: - Fix dead store elimination for loops.
01a71e1a09Volker Waurich- output cpCosts for level-Scheduling
54bb76f42dAdrian Pop- don't write after the end of the string, read the mkdtemp definition (template ends in 6 chars which are rewritten in place)
44bbb15fa6Marcus Walther- removed cachemap-dump if hpcom-dump-flag is set
997ee5f21aHenning Kielfix generation of tmp path in mkdtemp
9cfe86c96cVitalij Rugefixed output
313fe2bc87Adrian Pop- use rand instead of uuid to get rid of some dependencies
c1457fe747Adrian Pop- fix MSVC includes
7458ec6ce6Adrian Pop- implement mkdtemp for MinGW and MSVC
56be07b866Vitalij Rugeinitial guess with file for dyn. opt.
94cf0d3c44Martin SjölundRemove odd linux32/linux64 hacks from when omc started using the wrong fmu platform string
a63f281aa2OpenModelica Hudson[Janitor mode] Fix whitespace
0f64ea66b9Lennart Ochel- clean up index reduction
d796a6ff46Martin SjölundAutomatically compile used libraries if Resources/BuildProjects is available
7f4b1c7cecOpenModelica Hudson[Janitor mode] Fix whitespace
d9bc2f1d9cOlena RogovchenkoFigaroExport interface update
4e9952f3ffLennart Ochel- add proper cse debug output of substitution - remove unused/duplicated variables
540518342bOpenModelica Hudson[Janitor mode] Fix whitespace
9d4364206aLennart Ochel- fix internal generation of discrete cse variables
d87131102fWilli Braun - fixed #3053.
681bc84ce6Lennart Ochel- fix type of cse binary substitution - add debug output to trace unsupported cse types
2788d6ebacOpenModelica Hudson[Janitor mode] Fix whitespace
c789f13b17Lennart Ochel- fix statistics of cse call expressions - proper cse debug output of creating cse statistics
9e59c0c84eLennart Ochel- dump equations after variables, since this is the way we dump most stuff
e96b610251Lennart Ochel- fix binary statistics of cse module
6e920f8527Lennart Ochel- clean up (remove unused variables, ...)
7e833383cdMartin SjölundRe-enable looking for libraries
ed98b2996aAdrian Pop- disable the check for now to make the builds work
07e9fbdec5Adrian Pop- make it a warning until we sort things out
956256c239Martin 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
4950de8510Martin SjölundChange := in modifications to a warning instead of error, fix MM sources
2bd5e821b0Martin SjölundDo not allow using := in modifiers
bd4959b6c8Martin Sjölundm:#1595 Do not use := as modifiers in functions
d4c85dad34Henning KielOSX is always special
f59da8963eBernhard ThieleDisabled debug output
6f47d5a0b9Bernhard ThieleAdded one sample period "delay" to avoid executing twice at t=0
1d1e10b53aLennart Ochel- fix initialization of state machines
e39faa2604Martin SjölundPatch _main.c twice
02642a98b3Martin SjölundFix compilation
94763c9703Martin SjölundPatch `_main.c` to avoid a new tarball
c55967eb25Henning KielStatic analysis fixes
d0bc4bfabcMartin SjölundFix compilation
1888ecac48Martin SjölundStatic analysis fixes
e2ac4ce611Martin SjölundImprove the static analysis
edd88e18d9Lennart Ochel- add hints to README in case that one wants not to place OMDev into c:\OMDev
ca4a9ccf50Marcus Walther- CVode and IDA are now calculating the "final time point" correctly - Added a simple getter for global-settings
6acedf7590OpenModelica Hudson[Janitor mode] Fix whitespace
37ff87af8fBernhard ThieleDeleted unintentionally ressurrected resurrected directories "SimulationRuntime/interactive" and "SimulationRuntime/c/simulation/libf2c"
d7d5bbf2d0Volker Waurich- rule in startValue calculation that (time > -1.0) is not evaluated
db2e171018Adeel Asghar- Added the fmi interface files inside fmu. - modelDescription.xml not required in sources directory.
34c5af0472Adrian Pop- support both the old Modelica.Math.Matrices.LAPACK.dgelsx and the new one so one can use evaluation with older MSLs too
5c429bd1a3OpenModelica Hudson[Janitor mode] Fix whitespace
b2ba263e09Bernhard ThieleMerged StateMachine branch back into trunk!
bf2593f319Volker Waurich- added Flag to disable pre-Calculation of start-values - disable start value calculation for linSymSolConstA test
eeeb02637dVolker Waurich- activate PreCalculateStartValues
854976105cMartin SjölundFind first
a369e43b74Martin SjölundStatic analysis
6382bf1801Martin SjölundCompile using CXX; feature-check C++ variadic macros (part of C++11)
dd529a91a4Martin SjölundStatic analysis
7c619223bbMartin SjölundFix warning
5bff6b5176OpenModelica Hudson[Janitor mode] Fix whitespace
7a4dc582a3Mahder Alemseged GebremedhinFix Cpp test.
b366981fa2Adrian Pop- min and max does not exist in C Linux it seems
225b154888Adrian 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
c843f04e22Adrian 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
544c14bc6aMartin Sjölund#3169 fix going into the correct case when using osx
0bc41237a0Martin Sjölund#3169 Fix OSX name in FMU's
0b1d872b9dAdrian Pop- use the alloc interface not malloc directly
18a23d0bdaMartin SjölundFix typo
fa33eb30a4Henning Kielsome code cleanup
0e6a26a89dOpenModelica Hudson[Janitor mode] Fix whitespace
b010babf56Mahder Alemseged GebremedhinHandle Slices in simulation contexts. Use correct types when creating common subsexpressions. Fix faulty array expansions.
7d1a1f7c52Vitalij Rugeimproved solveLinearSystem
f1599b9509OpenModelica Hudson[Janitor mode] Fix whitespace
47506f42aaMarcus Walther- fixed static linking of cpp-runtime - fix for missing kinsol-includes
ff39f086b3Bernhard Bachmannimproved convergence criteria of Newton solver (within Homotopy solver)
3c1329f3a9OpenModelica Hudson[Janitor mode] Fix whitespace
84731f6227Marcus 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
061cf87f99Henning Kielfix last commit
2a44b01375Henning Kielfixed some annotations
65f1416ed5Lennart Ochel- fix initialization of over-determined systems containing when-clause
b74f69360bMartin Sjölund#3166 Escape \r in C strings
466b1a8d8cOpenModelica Hudson[Janitor mode] Fix whitespace
6a1a75d4fdNiklas Worschechseparated LoadSystem Method in SimController class in LoadSystem and LoadSimData
cf0776bd80Volker Waurich- enable BackendEquation.traverseExpsOfEquationList to replace crefs with constants - removed fail message
7f784b9398Volker Waurich- revert last commit
6fd4d4fee7Volker Waurich- activate preCalculateStartValues (will be reverted)
338816bf81OpenModelica Hudson[Janitor mode] Fix whitespace
9c4fd4cdc0Henning 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)
1b352cf706Volker Waurich- dont replace discrete vars in cseReplacement
3f3b49b4dfWilli Braun - fix #3151
7135184438Lennart Ochel- code simplifications and more debug output
c87d04985cHenning Kielfix some warnings
0a284a1fa8Volker Waurich- added missing files
3b73d9e68fVolker Waurich- added preCalculateStartValues (not activated now)
f6178d4ac3Adrian Pop- more removal of __attribute__
491f09af29Adrian Pop- attempt to fix builds
f3fd414a59Willi Braun - improved assert output further with debug - fixed #3074
17420d7d73OpenModelica Hudson[Janitor mode] Fix whitespace
3a87bcd3deMahder Alemseged GebremedhinAttempt to fix PowerSystems tests.
b88ecfb92dMahder Alemseged GebremedhinRe-enable diagonal() simplification with minor changes. Back-end can't handle unsimplified ones in some cases.
fbd8cc7f6aHenning Kielsmall optimizations
c74f4f6baaAdrian Pop- ansi c for msvc
5750854f4cOpenModelica Hudson[Janitor mode] Fix whitespace
588735d7bdMahder Alemseged Gebremedhin+ Fix #2726. Handle diagonal() in code generation instead of simplifying it.
e985982bfdVolker Waurich- keep the correct type when replacing constant alias vars
8d4137598fVolker Waurich- added partition scheduler
4811323785Lennart Ochel- fix output format "ia" for strings
900d0e1304Ruediger Kampfmann-typo fix
3bdec1d45dWilli Braun - added more information for a triggered Modelica assert - fixes partially #3074
8612d77128OpenModelica Hudson[Janitor mode] Fix whitespace
456d6db75aMahder Alemseged Gebremedhin+ Removed some unnecessary asub creations. + consider subscripts when looking for cref dependencies.
b895d5acf7OpenModelica Hudson[Janitor mode] Fix whitespace
7e8b29f163Vitalij Rugeadded structure for der(input) for dyn. opt.
9822673c9dAdrian PopFix bug: #3157 - handle also empty Name annotations, i.e.: annotation(Name); - add test testsuite/openmodelica/interactive-API/getDialogAnnotation.mos
4ba9af062eAdrian Pop- fix Windows builds, msvc doesn't like empty arrays with no initializer.
c80c47b331Willi Braun - moved debug flag "doLinearTearing" to config flag "disableLinearTearing"
c00de9fea3OpenModelica Hudson[Janitor mode] Fix whitespace
112fcfc4d9Willi Braun- added singular system solver for umfpack - added support for linear tearing systems to umfpack and lis - added more test-cases (e.g. EngineVN)
db81d2920fLennart Ochel- code simplification of function getNominalAsserts
8eb3ff7b47Martin SjölundPass some DAE.ElementSource when doing CSE
6ae1d9a211Lennart Ochel- code simplification of function getMinMaxAsserts
53ee5b5853Martin SjölundTry to only use the GCC workaround if gcc version is 4.8
2e7ebe9dceMartin SjölundPut back the GCC 4.8 flags
a6ff312287Martin Sjölund#3147 - Use `goto` instead of `MMC_THROW_INTERNAL` when possible
c9162b8fbbMartin SjölundAdd missing file SanityCheck.mos
eb336e8f42Martin SjölundAdd target sanity-check
257f828e7cMahder Alemseged Gebremedhin+ Fix Build.
7b6e7e2803OpenModelica Hudson[Janitor mode] Fix whitespace
99a799a8d2Mahder 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.
674bc95582Martin SjölundStrip -g from FMIL. Comment why we pass CC twice to FMIL.
ada3543e50Adrian Pop- pass CC/CXX flags to make
27d844d3e8OpenModelica Hudson[Janitor mode] Fix whitespace
b14d6d1074Willi Braun- changed sparsity pattern translation - moved mapping (BackendVar->SimVar) from runtime to compile time - added FMI 2.0 modelStructure to SimCode
06ee0c207aPer ÖstlundFix for #3155: - Handle subscripts that use for-loop iterators better.
83484cfd8eJoseph SchuchartRemove superfluous const int return type definition to fix compiler warning
46dd119835Adrian Pop- use remove(messageFile) instead of system("rm -f " + messageFile);
34bce09b4bAdrian Pop- use MMC_IS_INTEGER instead of doing bitwise and directly
a4bd9d9b8dAdrian Pop- initialize modelica_string variables to NULL otherwise the debugger breaks searching for the type of un-initialized meta variables
4816ffff2dAdrian 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
83d65d4d06Adrian Pop- strdup to allocate memory
8565fb84bfOpenModelica Hudson[Janitor mode] Fix whitespace
ddf67c7782OpenModelica Hudson[Janitor mode] Set auto-props
42aecfbb09Adrian 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/
7bdfc0d8f5OpenModelica Hudson[Janitor mode] Fix whitespace
37eb6040bfAdeel Asghar- logging of arrays.
2a1d2238aaAdrian PopFix #3137 - revive +target=msvc - compile umfpack, cminpack and cdaskr files - update CMakeLists.txt
b92fc6d1bcHenning Kielmalloc via GC fix some warnings
0b2f124aeaAdrian 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
0d5d7815beMarcus Walther- changed BOOST_REALPATH to Boost_REALPATH, because cmake is case sensitive at this case
35becd6874OpenModelica Hudson[Janitor mode] Fix whitespace
92b054e17cAdeel Asghar- Added toString method for structs for logging.
107d190c7bAdrian Pop- too many 'end match'
cf21081726OpenModelica Hudson[Janitor mode] Fix whitespace
c901fef50eMartin FlehmigIndent; added missing 'end match's
9b4234220fAdrian Pop- fix _omc_copyMatrix()
525e2aecdfHenning Kielfix some warnings proper implementation of _omc_copyMatrix()
73c4823fccMarcus 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')
a4ba91938aMarcus Walther- changed boost libraries to realpath, to prevent issues with different installed boost versions
dd9c8806f8Marcus Walther- fix for missing "umfpack.h"
35c2404338OpenModelica Hudson[Janitor mode] Fix whitespace
8931a2d211Marcus Walther- fixed issue with discrete event class and static linking on windows
150db6a015OpenModelica Hudson[Janitor mode] Fix whitespace
9b1b9b8242Marcus 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
337c35cdb9Adrian PopFix bug: #3150 - do not use the constant-ness of iterator when calculating the constant-ness of the array reduction
4ff29a9a09Adrian Pop- ddlspec(dllexport|dllimport) should be first before the return type
6ee280ade5OpenModelica Hudson[Janitor mode] Fix whitespace
d084ea1f0cOpenModelica Hudson[Janitor mode] Set auto-props
40a760f83dNiklas Worschechchanged SimulationError exception class of cpp runtime
1aabc0b7edOpenModelica Hudson[Janitor mode] Fix whitespace
17e24b6d47Per ÖstlundFix for #3041: - Implemented deduction of implicit iteration ranges for reductions.
120de98947Martin SjölundRemove some -I flags so the headers copied from simulation runtime works without changes
4377493938Martin SjölundUse `__attribute__` from omc_msvc.h
6959bd6295Adrian Pop- some compilers have no idea what __attribute__((unused)) is
016a235823Martin SjölundFix some unused variables
ed7bdecbf7Adeel Asghar- Generate command arguments as string for logging.
0249252274Adeel Asghar- Generate response as string for logging.
08d8b97285Martin SjölundRemove %>
73d30dc619Henning Kielsome code cleanup
0f2b05ade0Adeel Asghar- Moved getComponentModifierNames to ModelicaBuiltin.mo. - updated getComponentModifierNames to scripting API.
8b67827353Martin SjölundRemoved some -lf2c that should not be needed
1c86e217a7Adeel Asghar- Moved getParameterValue to ModelicaBuiltin.mo. - updated getParameterValue to scripting API.
4a5443854bAdeel Asghar- Moved getClaasRestriction & getParameterNames to ModelicaBuiltin.mo. - updated getClaasRestriction to scripting API. Removed some unused APIs from OMCProxy.
ead213b5d6Adeel Asghar- Fixed isEnumeration.
d5f3d459e5OpenModelica Hudson[Janitor mode] Fix whitespace
93c777363fAdeel Asghar- Moved some class restriction query APIs to ModelicaBuiltin.mo.
0bb85f6388Lennart Ochel- #3138: add assertions for not dependent parameters
9e45cdf6a1Martin SjölundFix stack overflow
887a839e21Lennart Ochel- fix wrong else case of function selectSecondaryParameters
3788eadfe6Lennart Ochel- #3138: remove wrong asserts of secondary parameters
caed35ea68Vitalij Rugesmall improvements of the derivatives for dyn. optimization
97ab2d3662Adrian PopFix #3140 - add XML_ParserFree(parser); at the end of modelInfoXmlInit - thanks go to Mathilde for reporting this
36e2623864Adrian Pop- attempt to fix #3136
1516a3e6b3Vitalij Rugefixed generation of dyn. optimization vars
2b807def79Per ÖstlundFix for #3070: - Fix dependency analysis of some cases of redeclares classes.
498cab6e99Martin SjölundBetter makefile for parallelism
c1a432fbe7Martin SjölundRemove OpenModelicaScriptingAPI.mo as Adrian updated the tarball
33d3e2ddf1Adeel Asghar- Generate struct field names based on function output names. - Converted few more API calls in OMEdit to use scripting API.
2900bdefcdNiklas Worschechchanged exception call in cpp template
fa3e21b525OpenModelica Hudson[Janitor mode] Fix whitespace
8c864cca03Ruediger Kampfmann-some fix for older C++ standard
37ed16a48aAdrian 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
5688a32649Adrian Pop- missing -f
063b01f121Adeel Asghar- emit signals from scripting API for logging.
43bacd0ec7Lennart Ochel- restore indentation
8aba4fd3edVolker Waurich- fix ordering of parameter equations - removed start value calculation - extended dumpSimEqSystem
ca7a56eee7Martin SjölundForce updating the scripting API to the latest version when bootstrapping
5d3e19235bMartin SjölundUse only 1 version of the threadData and symbol table
39c71b81e4Martin SjölundFix accidental spaces
559a06862eMartin SjölundMove the copying of the Qt cpp and header files from bootstrapping to omedit target
e56a24408cAdeel Asghar- make OSX happy.
f98ff9b4b6Martin SjölundMake sure the scripting API is generated
b4970240d0Lennart Ochel- remove duplicated function
84e9228b4aLennart Ochel- remove obsolete debug flag "+d=symbolicInitialization"
1b526bb623Lennart Ochel- remove obsolete debug flag "+d=dumpoptinit"
3628240ef1Lennart Ochel- remove obsolete optimization module "optimizeInitialSystem"
e9dfd6555dLennart Ochel- remove obsolete function
5fe31636bdAdeel Asghar- Removed the OMOptim documentation as it is already part of OpenModelicaUsersGuide.pdf.
fa46752f52Martin SjölundUpdate scripting API
be73191e19Martin SjölundAdd getComponentsTest API (typed version of getComponents)
11df4e4fc9Per Östlund- Some minor optimizations.
abdc5218deLennart Ochel- cleanup
f3e214ea74Niklas Worschechfix for c-lang build error in SimController class
0e04f58838Lennart Ochel- add flag "+d=disableComSubExp" to disable module "comSubExp" since it breaks some models
77727f6c51OpenModelica Hudson[Janitor mode] Fix whitespace
cf6179485aAdeel Asghar- minor changes in Qt API interface.
c43b6291f4OpenModelica Hudson[Janitor mode] Fix whitespace
713904dea9OpenModelica Hudson[Janitor mode] Set auto-props
00003439b8Niklas Worschechadded new exception class for all simulation errors in cpp runtime
f800645a39OpenModelica Hudson[Janitor mode] Fix whitespace
9599667346Adrian Pop- expand uniontype records into metarecords on loadFileInteractiveQualified (helps MDT give content assist for uniontype records)
a45c9e4ab6Willi Braun - fix the huge linear solver failings output
86f06df367OpenModelica Hudson[Janitor mode] Fix whitespace
7cd499eb34Michael Kloeppelfix IDAGetDky issue
990e467e49OpenModelica Hudson[Janitor mode] Fix whitespace
a9979fbdbcMartin SjölundFix assertion output (uses the API for log messages)
4612ff0f30Willi Braun - switch the linear solver, to lapack with totalpivot as fallback
727a5df4ddMarcus Walther- RUNTIME_STATIC_LINKING is now working for Windows systems (MinGW)
27f7b48f23Martin SjölundModelicaUtilities should output to the chosen log format
aa2160398dOpenModelica Hudson[Janitor mode] Fix whitespace
da36c48ab7Michael Kloeppeladd IDA solver to CPP runtime
94150145d1Per ÖstlundFix for #2977: - Allow fewer subscripts than dimensions.
ddc308080eAdrian Pop- use in Windows the same error reporting for dll loading as in Línux
bcdda87201Adrian Pop- back to 1.9.2 nightly
d22c585707OpenModelica Hudson[Janitor mode] Fix whitespace
9e1ce973e3Lennart Ochel- there is no jacobian G anymore
da958b846cLennart Ochel- remove more code from numeric initialization approach
5bb9ff382dNils MenagerFix for time events that occur in every cycle in calcOneStep()
1378b569a2Lennart Ochel- remove obsolete functions traverseAlgorithmFinder and createInitialParamAssignments
ee8830b445Adrian Pop- switch version to 1.9.2 beta1
2ce7805a56Adrian Pop- back to 1.9.2 nightly
135390e5e2Adrian Pop- switch version to 1.9.2 Beta
ca81b4654fAdrian Pop- fix some typos
a92c746f9dAdrian Pop- try some voodoo
79a0deac14Adrian 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
e5df72f80fLennart Ochel- remove more code for removed numeric initialization
e40489727fLennart Ochel- remove more code for removed numeric initialization
7680a65610Martin SjölundFix some abs/fabs warnings (possibly abs was also part of f2c and was an fabs in disguise)
9c48a4acf8Martin SjölundDon't call max() in generated code
83e9f56075Martin SjölundLogic fix
6013e6fdb2OpenModelica Hudson[Janitor mode] Fix whitespace
c376912ae1Ruediger Kampfmann+ some fix due to inputs for vxworks
b76a1d6ec0Lennart Ochel- fix call to min
1b823e9fb3Martin Sjölundmin/max fixes after f2c.h was removed
ca48d9a359Martin SjölundRemove call to min
f2969f964dMartin Sjölundf2c.h fixes, remove some math files from svn
4f13e7004aMartin SjölundThere is no more f2c.h
74a5354253Martin SjölundNo more f2c.h
9c5ae60a39Martin SjölundRemove f2c and a bit more from the simulation runtime (thanks to r24305)
2c49ede02bAdrian Pop- avoid having extern twice
df9bef23f3Adrian 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
55721f2ce3Martin SjölundFix performance profiling for info.json files
8ecb6e7a4bAdrian Pop- on some weird systems case matters :)
dc4d75be86OpenModelica Hudson[Janitor mode] Fix whitespace
e79e4e434aNiklas Worschechadapted BufferReaderWriter of cpp runtime to new writer interface
31db4b3190Lennart 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
e10c650284Adrian 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
b68318f6ebPer Östlund- Added new package StringUtil for string utility functions. - Improved Util.stringWrap and renamed it StringUtil.wordWrap.
109ae13385Martin SjölundPrint the source files used to run the script
50403286b5Lennart Ochel- #3114: handle empty system in initialization
617aa90fc7OpenModelica Hudson[Janitor mode] Fix whitespace
5b3738643bMartin SjölundTry to make msl-external-libs thread-safe
7899e7aef7Lennart Ochel- #3113: fix missing implicit defined initial conditions
65e1319098Lennart Ochel- remove redundant case
336ad043b7Lennart Ochel- fix initialization of inactive when-equations (example from #3092)
678e229acaMartin SjölundDetect der() being used inside a function
3736f27c70Marcus Walther- Threads are now joined correctly after simulation
dec4b3cb80Martin SjölundDo not require setting PATH to run the compliance suite
0fed5cf8abAdrian 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)
587a307493Adrian Pop- more fixes for Windows - add include to omc_config.h - ansi-c for the highness
f8a291ffd7Willi Braun - update help text.
0c9873e2cbVitalij Rugefixed hessian structure
a3b4047c4eWilli Braun - update help text
0e37c9cd9fMartin SjölundTry to fix OSX build
42f70caabbMartin 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)
b94f6a4f04Willi 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.
7ac7506063OpenModelica Hudson[Janitor mode] Fix whitespace
90d4309b67Marcus Walther- improved memory optimization
7615f9d478Martin SjölundFix spelling
e709a5e65dAdrian Pop- space junkie
5523e30429Martin SjölundFix compilation
44e9c29156Martin 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)
32ea17000eVolker Waurich- use initial values of parameters from binding expressions
a9f97c5a1bVitalij RugeExpressionSolve: fixed sign in pow(x,y) = z with respect to x
e2e08967c0Adrian Pop- change alarm to also kill the children (the entire process tree) on Windows
89620a531dMarcus Walther- fixed FMU-Cpp Tests
af7ae50923Lennart Ochel- remove unused variable
6d9aa04acaLennart Ochel- #3094: fix some asserts that were not formatted according to "logFormat"
0af4437cd3Marcus Walther- fixed levelfix-scheduler
96c539f91aOpenModelica Hudson[Janitor mode] Fix whitespace
8480703f43Marcus Walther- fixed hpcom of cpp-runtime (levelfix-scheduler still broken) - fixed measure time of cpp-runtime
b4b45cec26OpenModelica Hudson[Janitor mode] Fix whitespace
52c412c1a6Willi Braun - fix differentiate that results in a zeroExp.
c94f64d654OpenModelica Hudson[Janitor mode] Fix whitespace
fd7de1966cWilli Braun - use BackendEquation.travese* functions, to not change the ordering of the given variables and equations
8ec2622d7fMartin SjölundRemove unused code
a49a2f3b06Martin SjölundSwap Linux/Windows
0fbfc87698Martin Sjölund#3107 Send SIGALRM to children when the alarm is triggered
7e55368c13Willi Braun - remove workaround case
61bcfa035bOpenModelica Hudson[Janitor mode] Fix whitespace
dd53542c6dWilli Braun - improved CSE module further. - a remaining isssue that lot of models have issues with the indexReduction if cseCall is activated
922c68509eWilli Braun - fix isRecType
013ebfbfc4Vitalij RugeExpressionSolve: improved numeric for qe
7c9df043f8Martin Sjölund#3106 We no longer install txt-files as documentation
b46fb2dcb2Marcus Walther- changed library order to fix cpp-build with statically linked boost
f90635f44aVolker Waurich- changed cost estimation model
32df748bd0Martin SjölundDo not evaluate functions marked `__OpenModelica_Impure=true`
1a3b70f140Henning Kielfix #2939 again (for windows)
011d9903edOpenModelica Hudson[Janitor mode] Fix whitespace
d160160ce5Niklas Worschechfix for algloop vars initialization for analytic Jacobian
c2ae48960eOpenModelica Hudson[Janitor mode] Fix whitespace
f69fefcd4bWilli Braun - fix SimCode generation for expression like TUPLE() = f().
a6b3a321b8Marcus Walther- forgot one file
b418da2f0aOpenModelica Hudson[Janitor mode] Fix whitespace
c7556d2b5eMarcus 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
0fd212813fOpenModelica Hudson[Janitor mode] Fix whitespace
b5d2be1ddbWilli Braun - fix minor issues in some aux functions
7c755e4a34Lennart Ochel- recover communicateStatus since it is used by OMEdit
395ff9b613Henning Kielfix some compile warnings
abdeca1f21Henning Kielfix #2939
ef36822064Vitalij RugeExpressionSolve: - used Vieta's formulas for qe - improved initial guess
a9c82c35adMartin SjölundTry to fix the builds
4f4b59c80cLennart Ochel- remove interactive flag properly
6bbba9c2fbLennart Ochel- remove communicateStatus properly
492d18befaLennart Ochel- remove communicateStatus once more
0ee476a662Lennart Ochel- remove communicateStatus (interactive simulation)
614a89a3eeMartin SjölundRemove interactive flag from help text
c56b70ca61Martin SjölundRemove interactive simulation couplings from simulation_runtime.cpp - Add socket.cpp to c/simulation (TODO: move to c/util as a C interface)
a2757ce315Willi Braun - remove more interactive stuff
e60bd9449eMartin SjölundRemove libinteractive stuff
bfd6aee57dMartin SjölundRemove interactive simulation
0d8fa46b57Vitalij RugeExpressionSolve: update rule for x^y^ = z
426fec1db1Martin SjölundAllow installing qt interface files to fail
2ddfb15227Martin SjölundInstall qt scripting API files into build
871d00a022Marcus Walther- fixed hpcom codegeneration
0f687cb1a0Martin SjölundUpdate OpenModelicaScriptingAPI (Qt version)
ec9e301c2cMarcus Walther- now hpcom codegeneration is working again
d1b7f9308cMarcus Walther- some changes in hpcom to get it running again, but it's still not working
e379abd81bVitalij RugeExpressionSolve: improved rule for solve abs(.)
78a111aaa9Adrian Pop- back to 1.9.2+dev
48966ac372Adrian Pop- switch version to 1.9.2 Beta
d0d6cba8ebOpenModelica Hudson[Janitor mode] Fix whitespace
cfb28f509dVitalij RugeExpressionSolve: fixed initial guess
a7e494d3dcOpenModelica Hudson[Janitor mode] Fix whitespace
087ed2b511Vitalij RugeExpressionSolve: - improved cos(x) - added rule for sin(x) and tan(x) update tests
2c2d9a1d5eOpenModelica Hudson[Janitor mode] Fix whitespace
596c31daaeWilli 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
25217f1fdbNiklas Worschechfix in cpp template for DiscreteEvent file include
e89830ea7fMartin Sjölund#3096 Implement prototype for dot operator
56877377c9Willi Braun - fix the order of equations dumped by simCodeDump
cba6a8aedbMarcus Walther- fixed build
e1a5eb36baHenning Kiel- some code cleanup - converted recursive matchcontinue to simple while loop
5216c43148Martin SjölundWork in progress Qt interface
8cd3650279Vitalij Rugepartial revert of r24150 - side effect of the tearing - broke some examples
5789935d8dWilli Braun - fix the function BackendEquation.replaceDerOpInEquationList
ba453bfe9cMarcus Walther- simple bug fix - improved error handling in cmake
ba9308aa6aAdeel Asghar- updated MDT link.
b84cafbe4bVitalij Rugeactivated solveSimpleEquations for initialization - probably fixed #3091
a991a08b3cOpenModelica Hudson[Janitor mode] Fix whitespace
5502c6dbebNiklas Worschechfix for delete objects in cpp template, removed includes SystemDefaultimplementation of cpp runtime
75100a4b38Vitalij Rugeactivated solveSimpleEquations
8dfdb422e2OpenModelica Hudson[Janitor mode] Fix whitespace
c5329635f9Niklas Worschechfix in cpp template for DiscreteEvents in algloop- files
6ef1ec20c9Lennart Ochel- keep pattern clean
9eeca3b1b2Lennart Ochel- cleanup
611c0dd425OpenModelica Hudson[Janitor mode] Fix whitespace
44120c9fabWilli Braun - improve return value handling in cse module.
02c371776bWilli Braun - added debug flag dumpSimCode.
42857722ccOpenModelica Hudson[Janitor mode] Fix whitespace
5af15bc5b8Willi Braun - fixed #2669.
f7981e150bOpenModelica Hudson[Janitor mode] Fix whitespace
8259cd6507Willi Braun - fixed #3092
fe85339fb4Niklas Worschechfix in fmu cpp template for missing PreVariables file
d9e9f3389aOpenModelica Hudson[Janitor mode] Fix whitespace
affedaeb6fOpenModelica Hudson[Janitor mode] Set auto-props
6d2782c99fLennart 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
dad9896ed6Niklas Worschechsplitted EventHandling class in DiscreteEvents,ContinuousEvents and PreVariables
d649b41e33Per ÖstlundFix for #3075: - Fixed Util.stringWrap so it handles strings ending with a space properly.
20b84827ffOpenModelica Hudson[Janitor mode] Fix whitespace
1c5687786aMarcus Walther- initAlgloopSolverVariables is now called in initialize, to prevent an invalid free - renamed initAlgloopSolverVariables to initializeAlgloopSolverVariables - added umfpack to analyzation mode
dbc94f245cAdrian Pop- use +version instead of ++v which is not available anymore
9d69d14e7aAdrian Pop- somebody played with the flags, use +version instead of ++v
32939a616cOpenModelica Hudson[Janitor mode] Fix whitespace
77598f17e4Patrick Marcel Taeuber- Temporarily use omcTearing for strong components bigger than 200 variables until problem with Cellier Tearing is fixed
cf31ae1191Willi Braun - move printCurrentStatesVector to get more information
107762076aPer Östlund- Changed version flag back to --v, -v was already taken by vectorization limit.
907b96332aPer ÖstlundPartial fix for #3075: - Improved the flag parsing and added a test case for it.
487cfb734bLennart Ochel- Fix result via tcp/ip
28ba3743deOpenModelica Hudson[Janitor mode] Fix whitespace
6daf323e77Willi Braun - added debug outputs for dassl evaluation context - added simulation runtime flag LOG_DASSL_STATS, which outputs current states vector
7df0eb838dWilli Braun - added statistics for all non-linear solvers
67edf005d2Lennart Ochel- random cleanup
95cd2c5b69Lennart Ochel- fix typo
a3eb49f5afHenning Kieluse "else" instead of "case _ then" in match(continue) expressions
9024c893faMarcus Walther- changed default hpcom-code to openmp
05f745045aOpenModelica Hudson[Janitor mode] Fix whitespace
6f45669755Per Östlund- Improved the handling of if-expressions to better handle arrays with different sizes in the branches.
a3d3b120ddLennart Ochel- update some error messages
5e36cd4710OpenModelica Hudson[Janitor mode] Fix whitespace
bb6000a8efVitalij Rugeimproved simplification of relations
7fc2156c83Henning Kieluse match instead of matchcontinue where possible use try/catch instead of matchcontinue
7752284aa5Lennart Ochel- update some error messages
db2e82fa90Nils MenagerIntegration of Component ModelicaCompiler to cpp runtime in CMake File and LibrariesConfig.h.in
3b283b6941OpenModelica Hudson[Janitor mode] Fix whitespace
0c05fbfa9fMarcus 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)
7cfec8bb8aLennart Ochel- fix format string
1454ee1c54Bernhard BachmannFixed LOG_NLS_JAC dump
a36a7d7cf3Adeel Asghar- Added FMI version settings. - Allows exporting version 2 FMUs.
9e1f9451beLennart Ochel- remove unnecessary simplifications before pre-opt modules
02da4b2b7eWilli Braun - fixed assert handling during event iteration and event handling
5105359e49OpenModelica Hudson[Janitor mode] Fix whitespace
35c73126c1Lennart Ochel- declare numeric initialization as deprecated
0396498549Lennart Ochel- put trace dump on flag
1cf0e4cabbOpenModelica Hudson[Janitor mode] Fix whitespace
b4515949bfLennart Ochel- Fix initialization of primary/secondary parameters. The analysis of the symbolic initialization is now used instead of the one from the old approach.
1870e97869Vitalij Rugefixed r24047.
82a4bdb3a7OpenModelica Hudson[Janitor mode] Fix whitespace
bf1a3ecec7Vitalij RugedifferentiateExpSolve: guard if() and sign()
0f0e06547cOpenModelica Hudson[Janitor mode] Fix whitespace
571159ce6dVitalij RugecreateResidualExp: reduce fractions
f4bb4fbcdbAdrian Pop- fix typo, hopefully Mac can start simulating models again after r23974
c015ec3bf1Willi Braun - activate case from r24039
3927067b0fOpenModelica Hudson[Janitor mode] Fix whitespace
8bbe824ab8Willi Braun - added case to avoid generation of nonlinear systems for record constructor in tuple calls (e.g. (R(r1,r2),x) = f(x)).
95eaaf57b6OpenModelica Hudson[Janitor mode] Fix whitespace
3ab706f2faVitalij RugecreateResidualExp: using fraction for simplify residual
43b807bf40Martin SjölundFix elab/simplify/ceval for identity and diagonal
62ab4d132eNiklas Worschechmodified setStartValue and getStartValue in cpp runtime
395fbba79eOpenModelica Hudson[Janitor mode] Fix whitespace
976ec43276Niklas Worschechmodified pre method in cpp runtime, removed second parameter expected output
26a21f0e6aMartin SjölundEnable modelica3d with --enable-modelica3d
4ff428c9ebVolker Waurich-extended dump of compInfo
bf32ebd2bfAdeel 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.
4a5d82dea6Martin SjölundFix Modelica format strings on 64-bit platforms
96d909e002Marcus Walther- result-file is now only written if outputFormat!=EMPTY and outputPointType!=EMPTY
0adcbc0e08OpenModelica Hudson[Janitor mode] Fix whitespace
fb8f8ed60eVitalij Rugefix numerical hessian structure for dyn. optimization without nonlinear constraints
33e60d65daVolker Waurich- extended countOperations for division
f92dbf352aOpenModelica Hudson[Janitor mode] Fix whitespace
cae79583f3Marcus 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
de2f4d4223OpenModelica Hudson[Janitor mode] Fix whitespace
e97f44777fVitalij Rugefixed empty dyn. optimization
15b286cb94Martin Sjölund#3063 - Fix switch of string in cases
df6b717f8bOpenModelica Hudson[Janitor mode] Fix whitespace
4e8d6e323aPatrick 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
d079dd07c6OpenModelica Hudson[Janitor mode] Fix whitespace
d4946d490aVitalij Rugeadded postOptModules for solving linear system symbolical in BackEnd (based on QR decomposition) Improvements will come!
2b4b277df3Martin SjölundDon't filter out every component in the record constructor
ebbaacf84dOpenModelica Hudson[Janitor mode] Fix whitespace
8f08f3eea7Martin Sjölund#2978 Make it an error to add ExternalObject components to records - Update modelica3d
125504b7edLennart Ochel- restore r23957 partially (introduce __DEBUG_TRACE_HANDLE)
484c891fefLennart Ochel- move initialization of stateSelection properly
dc6377d81bMarcus Walther- try to fix windows and mac OS build
6f1e3d2bdeAdrian Pop- ansi C
60a34f0a05OpenModelica Hudson[Janitor mode] Fix whitespace
17683717daWilli 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
af9cf5c6b1Willi Braun - fix #3064 by moving the stateSelection after the intialization
2b389a7eb5Adrian Pop- fix sending constant strings to external functions - added test for ExternalMedia model: testsuite/simulation/modelica/external_functions/ts.mos
df2693cac4OpenModelica Hudson[Janitor mode] Fix whitespace
0b33566fdcLennart Ochel- add more TRACE information
a7b270dfcfOpenModelica Hudson[Janitor mode] Fix whitespace
3e3e58f6bdLennart Ochel- add TRACE information to more generated functions
fc15467c5fMartin SjölundFix stack overflow, expected output
8f4ce6be9dWilli Braun - fix #3057
a01449dd3bLennart Ochel- revert r23957
b3705ef6cbOpenModelica Hudson[Janitor mode] Fix whitespace
f1d0190095Lennart Ochel- new flag –lv=LOG_TRACE to control TRACE-dump for debugging purpose
9b0d7a8d70Martin FlehmigTypo
7e49f27e12Marcus Walther- fixed wrong measureTime results for evaluateAll
06fedd0173OpenModelica Hudson[Janitor mode] Fix whitespace
1112fba0b6Patrick 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
c43f2cdb6dWilli Braun - inner equations of the non-linear solver are updated by the solver
23cb85baa7Willi Braun - fix #3060.
1d9d15fefaWilli Braun - next attempt to fix the testsuite
3aa1f42c1eWilli 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.
da4d075e52Lennart Ochel- cleanup
60bb840863Willi Braun - attempt to fix fmu binaries path name, mention in #3057.
bf805554daWilli Braun - belongs also to r23943
524f93112aWilli Braun - belongs to r23943
090ba38a15Willi Braun - adding relativ tolerance for bisection event search
903aeec88fOpenModelica Hudson[Janitor mode] Fix whitespace
2768e5e5c9Marcus Walther- hpcom is now able to handle empty ode-systems correctly -- this should fix the simple resistor test
611f0d23a6OpenModelica Hudson[Janitor mode] Fix whitespace
6bbd9ee83dWilli Braunfixed variables sorting in FMI 2.0 (see #3057 part 2)
b8923aa450OpenModelica Hudson[Janitor mode] Fix whitespace
c8e68bad0cWilli Braunprevent adding a dummy state if no states are present - don't use dassl if no state are present
703b0bfe40Volker Waurich- transfer initial value for replaced common sub expressions
74cb4e6447Lennart Ochel- don't overwrite primary parameters while initialization (e.g. #3050)
fa62b150b8Vitalij Rugeimporved negate for binary
ebaae8568bVitalij Rugeimproved solveSimpleEquations
b79fe717b2OpenModelica Hudson[Janitor mode] Fix whitespace
61d1eadbe2Nils MenagerTime Event fix
87f4492a58Nils MenagerGet new states after time event
e4a96be035OpenModelica Hudson[Janitor mode] Fix whitespace
11366f67c7Vitalij RugeExpressionSolve: improved handling of modelica functions
744bd1ce03OpenModelica Hudson[Janitor mode] Fix whitespace
b363c87293Vitalij RugepostOptModules: added solveSimpleEquations with manipulations from ExpressionSolve (disable)
e6c0107b6bHenning Kielsome code cleanup: match ... else then ... -> match ... else ... case (exp as ...) ...exp... -> case (...) ...inExp...
4da0c1d2baWilli Braun - revert for now r23902, since it break some build
e5f52ba512OpenModelica Hudson[Janitor mode] Fix whitespace
ecb10bcf81Willi 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
611c14d293Willi Braun - fix dist-clean by adding synonym for really-clean
f0bedf7330Vitalij RugeExpressionSolve: - solve cos(x) = y
043c82b5caVitalij RugeExpressionSolve: - simplify qe case
afff8b130dOpenModelica Hudson[Janitor mode] Fix whitespace
07dc484f55Vitalij Rugemproved DynamicOptimization: use - if-else-construction - for-loop-construction
426142a4d5Willi Braun - added min, max and nominal attribute to FMI 2.0
4805bdb13eOpenModelica Hudson[Janitor mode] Fix whitespace
af3b5bc4e1Vitalij Rugeimproved DynamicOptimization: use if-else-construction
025e732163OpenModelica Hudson[Janitor mode] Fix whitespace
55023e5266Willi Braun - improvement of r23889.
07cf0aa9b0OpenModelica Hudson[Janitor mode] Fix whitespace
f64a9be198Willi Braun - added rule for max of an array expression. - fixed #3048
299db8c4faAdeel Asghar- Don't copy the SourceInfo so that user can save the copied class to new location.
504e79d313Vitalij Rugeadded test case for dyn. optimization
b4221d2b95Vitalij Rugedyn. optization: fixed handling case with dummy state
e8b7995a7aVitalij Rugeclean up ExpressionSolve.mo
e78c2433f8OpenModelica Hudson[Janitor mode] Fix whitespace
ad31576ef6Volker Waurich- restrict cse functionality until next year
c7f12ec14dVolker Waurich- dont remove state vars in cse
901d5c56c9Marcus Walther- fixed metis clustering
1d32a22413Volker Waurich- fix for cse
7d679c60a1Adrian Pop- use +n=1 for Makefile.depends bootstrapping target (it seems to deadlock on Windows)
8d1192a255Lennart Ochel- add reminder to prevent secondary parameters from being overwritten
48d16fcafbAdeel Asghar#2746 - FMU type ModelExchange and CoSimulation is not supported yet.
34e3d0bf69OpenModelica Hudson[Janitor mode] Fix whitespace
e7eb8f33cbAdeel Asghar- Make FMI 1.0 co-simulation work.
eff1d76b80Volker Waurich- fix for cost estimation
4d03efe82bMarcus Walther- GC is now disabled if HPCOM-Flag is set - added BDP-Modell to hpcom testsuite
1daea97fdbLennart Ochel- Fix initialization of dependent parameters - Detect cyclically dependent parameters - except for some special cases, e.g. parameter Real p = 2p;
1bc9fc0badOpenModelica Hudson[Janitor mode] Fix whitespace
e887372481Marcus 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
6fea97e37eOpenModelica Hudson[Janitor mode] Fix whitespace
98b4b7c2c8Marcus Walther- reverted evaluateODE-call in evaluateAll (cpp-runtime)
0312dda704Vitalij RugeExpressionSolve: improved handling of sqrt
66503245eeVitalij RugeExpressionSolve: added case for quadratic equation - a*x^n - b*x^m
2c02aad5b4OpenModelica Hudson[Janitor mode] Fix whitespace
53f7ebe12bVitalij RugeTestExpressionSolve: - improved solve of quadratic equation
aa34db7fb6OpenModelica Hudson[Janitor mode] Fix whitespace
2ac4703119Willi Braun - fixes for FMI 2.0 - corrected some case of initial, variability and causality - fixed Boolean handling - added test cases for Boolen and Integer
74612094b7OpenModelica Hudson[Janitor mode] Fix whitespace
21a005c604Vitalij RugeTestExpressionSolve: - solve some kinds of quadratic equation
8ebe0db36dMichael Kloeppelfurther fix for METIS scheduler
057f79d84dOpenModelica Hudson[Janitor mode] Fix whitespace
b3bbecf147Volker Waurich- introduce der calls for equation systems too (plts)
60d5b2e4aaWilli Braun - fixed fmu import for zero states case
1771a44f85OpenModelica Hudson[Janitor mode] Fix whitespace
e4fbdab56eMichael Kloeppelfixes for METIS scheduler and UMFPACK solver
f65b079464Volker Waurich- reintroduce der calls in new residual equations for plts
e20f76b75eOpenModelica Hudson[Janitor mode] Fix whitespace
5df5805bcbVolker Waurich- assign start values for auxiliary variables
257a7f6c42Volker Waurich- deactivate plts
beb8e9519aVolker Waurich- remove debug print
434194655dVolker Waurich- activate plts
29749ccbceOpenModelica Hudson[Janitor mode] Fix whitespace
a8fa928454Vitalij Ruge- improved expPow - added case for isNegativeOrZero
398516f08dVitalij RugeTestExpressionSolve: added case for cosh
6749782f68Adrian Pop- use i386-pc-linux instead of linux-i686 as Willi suggested (unfortunately I have no idea what $host is returning inside configure)
391396b77eVolker Waurich- equation systems of size 1 are ok when there is a dummy state - removed prints for partlintornsystems
e0fcc8b987Willi Braun - fixed fmi platform for linux32
91a0a0f4c6Adrian Pop- the platform string has changed in r23795, attempt to fix the testsuite.
c42cec5135Vitalij RugeExpressionSolve: - improved cases for abs, pow(x,n) with Expression.isPositiveOrZero - improved cases for sinh, tanh with tmp vars
7743e11046Volker Waurich- dont apply partlintornsystem for systems including dummy states
f79268868cWilli Braun - fix for #2840 - a bit of clean up in the fmi interfaces
58fad24bc4Willi Braun - fmi2: use platform strings according to the spec: linux64 and linux32
2984f03e82Per ÖstlundFix for #3028: - Workaround for compiler bug in Static.getOptionalNamedArg.
abde7d1f64Martin SjölundUse host instead of uname to determine platform (since we compile 32-bit files on 64-bit OS)
359cc86c90Vitalij RugeExpressionSimplify.simplify2: - fixed simplifyMulJoinFactorsFind for case "e11-e12 and e12-e11, negative -1.0 factor"
d5e5273b18Willi Braun - fix #3036 by adding an event at terminal()
afb7e55eb6Marcus Walther- swapped the __x86_64__ and __i386__ cases in measure time - hopefully this will fix measureTime on x64 machines
8479333528OpenModelica Hudson[Janitor mode] Fix whitespace
4cd26e08caVolker Waurichfurther extension for countOperations
cf2b87f52bOpenModelica Hudson[Janitor mode] Fix whitespace
0d3bd335a5Niklas Worschechremoved saveDiscreteVars in cpp template, activated get and set method for variables only for fmi code generation in cpp template
631b813582OpenModelica Hudson[Janitor mode] Fix whitespace
14a8735bf0Willi Braun - fixes and testcase for #3034
2c7c62c8e2OpenModelica Hudson[Janitor mode] Fix whitespace
60b2c6811fNils MenagerHandling time events at one time instant at once
df6a4389b6OpenModelica Hudson[Janitor mode] Fix whitespace
9a0d8e60f3Niklas Worschechsplitted write values in cpp template
cad9e5cf41Vitalij RugeExpressionSolve: improved numeric for makeProduct
c9615a7892Adeel Asghar- fixed typo.
f2b07d93b2OpenModelica Hudson[Janitor mode] Fix whitespace
d89adcd9f0Volker Waurich- get more precise information with countOperations
3cf7b7505fOpenModelica Hudson[Janitor mode] Fix whitespace
87cef19b70Marcus 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
01058b1d38OpenModelica Hudson[Janitor mode] Fix whitespace
867c206b6cNiklas Worschechfix for one dimensional arrays in cpp template
ec6e2d5decPer Östlund- Updated documentation for simulate/buildModel.
79efe3758bRuediger Kampfmann-fix in SimManager
088f47034bRuediger Kampfmann-fix in SimManager
b2ac5a13b9Ruediger Kampfmann-fix in SimManager
a4d6717b14OpenModelica Hudson[Janitor mode] Fix whitespace
a9c029a1cbMarcus 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
29158def85Niklas Worschechchanged 3d array of cpp runtime to row-major order
560aea7f0dOpenModelica Hudson[Janitor mode] Fix whitespace
7ad52f0b79Marcus 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
9fb71ed070Adrian Pop- use GC_malloc_uncollectable for stringVars in initialization.c too
f2367a9e9eAdrian Pop- fix testsuite (we fixed using GC_malloc_uncollectable in one place but there were more places)
7db0bbb8b0Vitalij RugeExpressionSolve: improved solve for if-expression
e4dbe3b136Adrian 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
44803eccbeAdrian Pop- transform to char* where needed
fa3f55ac8dHenning Kiel- added skew() and symmetric() to CodegenC.tpl
e53ed782f2Henning Kiel- implement unary minus for integer arrays - fix pow, exp, division for integer array alloc version
46b35a983dHenning Kielfix matrix multiplication for integer arrays in SimulationRuntime/c
db2b683b95Henning Kieladded element wise multiplication of integer arrays to SimulationRuntime/c
18aed9c03fHenning KielFix type casting in CodegenC.tpl
70c1514ea4OpenModelica Hudson[Janitor mode] Fix whitespace
966250816fVitalij RugeExpressionSolve.solve2: fixed $_initialGuess and tmp vars.
9322b32bc5Niklas Worschechfix for create array in cpp template
5aa69a5ddeHenning Kielfix typo
a23b8a80e7Henning Kiel#3026 - Fixed some more integer array operations.
9541f6e29fAdeel Asghar#3026 - Fixed the boolean array assignment. DoublePendulum test should work now.
f59b12accbOpenModelica Hudson[Janitor mode] Fix whitespace
522a7e427eNiklas Worschechreomved start index for writeparams in cpp template
79c0219843OpenModelica Hudson[Janitor mode] Fix whitespace
f8c56cfef4Vitalij Rugeimproved r23722 - handling of sign() by solve e.g. abs(x) or pow(x,2)
0a5b7c3588Adeel Asghar#3026 - Fixed the integer array assignment.
2eca0f4eddAdeel Asghar- Only check for invalidNumber & nullPointer when NUMBER_OF_STATES > 0.
3917aaf61cAdeel Asghar- Fixed FMI import code generation.
a138e6b25dOpenModelica Hudson[Janitor mode] Fix whitespace
cf82a10725Vitalij RugeExressionSolve.solve2:
645b24a2a1Adeel Asghar- print the error level
aa168dc445Volker Waurich-another fix for cse
b0d170c6b3Niklas Worschechfix in cpp template for array indeces
d8841b6bddAdeel Asghar- Avoid `FMU could not converge in event update` error by setting the iterationConverged to true.
ad664f7957Volker Waurich- fix for cse
090a0c4434Vitalij Ruge#3023 createSingleComplexEqnCode2: update case tupple() = f() - check crefs from lhs inside rhs
14cc257c23OpenModelica Hudson[Janitor mode] Fix whitespace
6617dd1337Niklas Worschechseparated array initialization in cpp template
01855e1427Adeel Asghar- Fix last commit.
10d936a7bfAdeel Asghar- Remove the eol comma separator from csv output.
2e58dbd1deMarcus Walther- fixed pthreads_spin codegeneration for hpcom - improved measure time and busy waiting locks - added cvode-metrics to measuretime
9ba42c7999Martin SjölundIgnore errors
f2eae9ee89Martin SjölundAutomatically generate OpenModelicaScriptingAPI.mo
7b223d6371Martin SjölundUse the impact package listing in getAvailableLibraries
337c485ec9Martin SjölundFix not loading too low package versions
69bbeb1628Martin SjölundAdd `loadModel(requireExactVersion=true)`, which does not automatically load MSL 3.2.1 if MSL 3.2 is requested
0128ee596cMartin SjölundRemove duplicated function introduced in r23676
0c53cff3c0Martin SjölundAlso only install libraries if the user libraries path is on the MODELICAPATH
da5bbac063Martin SjölundDuring `loadModel`, use the `impact` command if the user has impact installed
9e90ddcd2eNiklas Worschechfix for wirteParams in cpp template
bba24ff86aAdeel Asghar- Better names for flow control variables.
ad72f292faMartin Sjölund#3019 Serialize `NEW_DUMMY_DER`
1cb0dbaebcLennart Ochel- Removed some unnecessary local variables
7a1c087775Lennart Ochel- Use of try-else-construction
5cb155271eAdeel Asghar- Raise the ModelicaError when any of the fmi* functions fail. - Fixed the assert tests.
8cac80f70cLennart Ochel- adapt statistics dump to make it collapsible in the new simulation output view of OMEdit
bbf01770adAdeel Asghar- fmiSetString should work the same as fmiSetReal/Integer/Boolean.
f9962402c2OpenModelica Hudson[Janitor mode] Fix whitespace
6b78d10d00Per Ö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).
e8bcc2cc55Adeel Asghar- Dump the variables in a better way.
f13d08e6f8Willi Braun - added statistics section for linears systems - revise linear system
06158644d4OpenModelica Hudson[Janitor mode] Fix whitespace
2cfcbd3923Marcus 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
f66863f2ddAdrian Pop- do not load files in parallel for target Makefile.sources
a0a22f20caOpenModelica Hudson[Janitor mode] Fix whitespace
44d2ee1460Adeel 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.
2e8c09e885Lennart Ochel- fix #3014
e09f1fecb7Lennart Ochel- fix #3009
f09c7f8290OpenModelica Hudson[Janitor mode] Fix whitespace
09e7e3ea42Niklas Worschechsplitted writeParams method in cpp template
7062c16435Marcus Walther- added cpp-file splitting to hpcom template
df185a957aOpenModelica Hudson[Janitor mode] Fix whitespace
779ad03e71Marcus Walther- profiling of the cpp-runtime can now be enabled with the help of the makefile argument 'RUNTIME_PROFILING="true"'
c2ad1b127cOpenModelica Hudson[Janitor mode] Fix whitespace
0dfde5b240Niklas Worschechsplitted initialization and writeoutput files in cpp template
ee2785259eOpenModelica Hudson[Janitor mode] Fix whitespace
f28fb27db9Vitalij RugeBackendEquation.solveEquation: - passed DAE.FunctionTree - inline function calls
d9c07f2329OpenModelica Hudson[Janitor mode] Fix whitespace
e701ae7d47Lennart Ochel- revert r23613, because it breaks initialization of parameters in some cases
344fbe715cPer Östlund- Fix tests.
27936a328eMarcus Walther- removed some debug output commands from HpcOmMemory.mo - additional time points for measure time added to cpp runtime
e3786a3136OpenModelica Hudson[Janitor mode] Fix whitespace
91c5ffb925Martin Sjölund#3012 Add StateSelect to ModelicaBuiltin.mo
f9116f5934Marcus Walther- fixed hpcom windows builds
c9096710b9OpenModelica Hudson[Janitor mode] Fix whitespace
707489b3c8Vitalij RugeExpressionSolve: - try to solve modelica functions - inline function calls and hope ExpressionSolve can solve new expression
ccb0e1be36Per Östlund- Fix tests?
434807444aPer Östlund- Fix build.
c51018a578OpenModelica Hudson[Janitor mode] Fix whitespace
18e8fd8be1Per Östlund- More cleanup of Static.
0b23e35df7OpenModelica Hudson[Janitor mode] Fix whitespace
09ad2d89feMartin FlehmigRemoved redundancy in templates, brief review
ba0ab84651Nils MenagerSmall fix for calculation of sample cycles
78da5d02feOpenModelica Hudson[Janitor mode] Fix whitespace
34fd6de974Niklas Worschechfix for array index operator call in cpp template, separated external vars initialization in cpp template
a467730378Vitalij RugeExpressionSolve: - added more nonlinear cases for sinh,cosh,log10 - change collect-strategy - update test
879ff2493bOpenModelica Hudson[Janitor mode] Fix whitespace
d8975aedb2Marcus Walther- fixed deleteObject() in hpcom cpp-runtime - disabled memory optimization for level scheduler
7bfa7b63c3Bernhard Bachmannproper initialization of counter "numberOfIterations"
771a0a80cfAdeel Asghar#2550, #2390 - Fully support showStartAttribute in OMEdit.
8470c7d421Lennart Ochel- attempt to fix initialization for parameters that have no binding but a start value
5d17b4dfc6OpenModelica Hudson[Janitor mode] Fix whitespace
6e0b98f05fVitalij RugeExpressionSolve: - update expand-strategy - improved cases for pow - added and update tests
0a2fddeeafOpenModelica Hudson[Janitor mode] Fix whitespace
4ff378b890Marcus Walther- memory optimization of hpcom can now handle int and bool variables - cpp-runtime uses hpcom variable positions now as defines
74ce4ad90fHenning KielCreate real fake files
2835d11d4dOpenModelica Hudson[Janitor mode] Fix whitespace
bfd431f70dVitalij 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)
660d44547dBernhard Bachmannsome fixes from static analysis adapted test case
985aa85d70Bernhard Bachmannadded more debug information on nonlinear systems
ce91d43edcMarcus Walther- fixed profiling in cpp runtime on windows machines
da5bfb6f96OpenModelica Hudson[Janitor mode] Fix whitespace
aecd360d8bVitalij RugeExpressionSimplify.simplify: simplify check for Expression.operatorEqual(a,b) or Expression.operatorEqual(c,d)
a344d2eb59OpenModelica Hudson[Janitor mode] Fix whitespace
f1c02f164bVolker Waurich- fix partlintornsystem for Asub expressions
8dd40f9e20Vitalij Rugeupdate some cases for createResidualExp2
55eb47ae73OpenModelica Hudson[Janitor mode] Fix whitespace
6ed4967d93Bernhard 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
b0d65689afVolker Waurich- fix partlintornsystem for linear systems that have to be solved numerically (contain function calls with x as inputs)
dd80764ffaVolker Waurich- fix partlintornsystem if there are scalar array exps that hide inside cref exps
24e4c4822aVitalij Ruge- change sum for residual (order) - activated simplify in moveDivToMul
820a8b6b31Henning KielRemove quotation marks
4e9e185cf2Adrian Pop- more proper clean
0fcfe95211Adrian Pop- more proper clean
f1fa2b1e8eOpenModelica Hudson[Janitor mode] Fix whitespace
c9754243a1Jim NutaroUpdates to the sparse FMI generator
cc2791ead0Per Östlund- Allow enum variables in metarecords.
a4ea0f82afMartin SjölundMark some more allocation uncollectable
fe436818baVolker Waurich- fix partlintornsystem if states are involved
09a16679c5Martin SjölundChange daeExpSconst to use MMC string literals (since we do not optimize away all literals in simulation context)
acacf03163OpenModelica Hudson[Janitor mode] Fix whitespace
d0f2d560fcNiklas Worschechfix for 3d array in cpp runtime, added stop method to solver interface,
e03dabef3aAdrian PopFix bug #2980 - use GC_malloc_uncollectable to signal that the arrays of strings are roots - added test gc2980.mos
bf1014d347Volker Waurich- extended decomposition of equation systems by Cramer Rule
4bd920581fAdrian 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
a376f1d126OpenModelica Hudson[Janitor mode] Fix whitespace
ebccc8012eVitalij Ruge- fixed ExressionSolve.solve: remove wrong case for cosh - improved Expression.createResidualExp2: clean up cases, try to simplify more than once
7eed77f4eaOpenModelica Hudson[Janitor mode] Fix whitespace
31f0529e94Nils MenagerSmall fix for memory issues in CVode
47134f35ecWilli Braun - update help text
b2357afc35OpenModelica Hudson[Janitor mode] Fix whitespace
e14505d6dfVitalij Rugeimproved ExpressionSolve.solve: - added more cases like - sqrt(x) - sqrt(f(x)) = 0 - improved case 1/(x) + 1/(x+1) = 0
268f3ca4a4Adrian Pop- use GC_malloc instead of GC_malloc_atomic as WE DO HAVE POINTERS in the string arrays - fix typo
b469c4c76cAdrian Pop- support 7.2 gc version too (which does not have GC profile stats)
3bf34a0e62Bernhard 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 - ...
2b833b0fccOpenModelica Hudson[Janitor mode] Fix whitespace
2ab8d71a6ePer Östlund- Some cleanup of Interactive.evaluateGraphicalApi.
6d58d6e9ebOpenModelica Hudson[Janitor mode] Fix whitespace
48044ef1bcMarcus Walther- moved sorting of hpcom sim equations to the HpcOmSimCodeMain-module - fixed memory optimization for fixed level scheduler
3ff7ddcd57OpenModelica Hudson[Janitor mode] Fix whitespace
b77bd71416Vitalij 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
1af56e0a57Per ÖstlundFix for #2995: - Added boolean literals to Expression.isValidSubscript and subscriptContants.
9b12f9de21Martin SjölundUse getInstanceName() to query function names automatically (updated automatically as the the functions are moved)
a18cd0c751OpenModelica Hudson[Janitor mode] Fix whitespace
3ff65a98f9Per Östlund- Fix java stuff.
a61b477764Henning Kiel- some fixes for successful compilation on rasberry pi (arm) or other slow machines - fix some typos
1adcd213bbOpenModelica Hudson[Janitor mode] Fix whitespace
ee4e5e6262Nils MenagerAdded time events for oneStepMode
69f1e27b92Lennart Ochel- don't create lists to pass single elements to functions if possible
55353face2Volker Waurich- fix for partlintornsystems(zeros in b vector) - added Sarrus rule
15e59288baVitalij Rugeimproved extraPolate value insinde [min,max] exception old value was not insinde [min,max]
bb7b8441d9Adrian Pop- more matchcontinue -> match
36d923a2bbAdrian Pop- use match instead of matchontinue (to hopefully get tail recursion in these functions)
91800275bdMartin FlehmigIf flag 'useMPI' is active, a MPI evironment is initalized but computation is not MPI parallel .
a8123ef956Per ÖstlundFix for #2995: - Don't try to expand already expanded equations.
e40f9fb1edPer Östlund- Reverted r23504, seems to cause bootstrapping issues for some reason.
9157d5a31eOpenModelica Hudson[Janitor mode] Fix whitespace
7ab2b1ca1aPer Östlund- Cleaned up Interactive.evaluateGraphicalApi.
93de56d201Martin SjölundDo not add errors if subscriptInt fails
bf2c9f5c1fLennart Ochel- improved names for some auxiliary functions
64f76acba0Martin Sjölund- Add half-implemented API call generateScriptingAPI - Handle variables with dimension false and true in SimCode
70cc730c5aVolker Waurich- fixed partlintornsystem for equation systems
7ced61c024OpenModelica Hudson[Janitor mode] Fix whitespace
b1240e5390Volker Waurich- apply Cramer Rule to EquationSystems of size 2
a2b340055eAdrian Pop- update MSL 3.2.1 to latest: m:r7901 - update tests - some small Windows changes
fcfdb09952Adrian Pop- handle size({}, dim) as zero in Compiler/Template/CodegenC.tpl
cbc63db0cbLennart Ochel- Hide warnings about not imported start values for self-generated variables
4ebd2092e7Vitalij RugecreateResidualExp: added heuristic for a-b=0 or b-a=0
20ffbea2a6Per Östlund- Recommit r22962.
3667844743Jan SilarFix for CSharp template - removed wrong shift in algebraic int and bool indexes
9eeeee10bbOpenModelica Hudson[Janitor mode] Fix whitespace
47269e8fc3Vitalij Rugeimproved createResidualExp - reduction of sub and mul operations
6552508e5dPer Östlund- Removed misleading documentation annotation from listDelete.
23d1cc6b8cPer Östlund- Removed deprecated arrayNth too.
d6fbc97637Per Östlund- Keep listNth in simulation runtime until we have a new tar-ball.
c70276b9e4Per Östlund- Removed deprecated listNth.
eae25c1d4eHenning Kielmodifications for compilation on arm
a128a85fc9OpenModelica Hudson[Janitor mode] Fix whitespace
ba50b00750Lennart Ochel- Changed BackendDAEUtil.mapEqSystemAndFold to not create unnecessary tuples - Some random cleanup
33f4b4f292Per ÖstlundFix for #2966: - Improved setComponentModifierValue API functions.
556de0a269Martin SjölundFail if type-checking fails (did not assign to the output)
bb8d008646Lennart Ochel- Use of List.mapFold2 to avoid unnecessary tuples
b0b4369184OpenModelica Hudson[Janitor mode] Fix whitespace
1fd9250d9aLennart Ochel- Renamed/revised some more auxiliary fucntions: - traverseExpsOfEquationList (from traverseBackendDAEExpsEqnList) - traverseEquationArray (from traverseBackendDAEEqns) - traverseEquationArrayWithStop (from traverseBackendDAEEqnsWithStop) - traverseEquationArrayWithUpdate (from traverseBackendDAEEqnsWithUpdate)
7b0b3eda07Martin FlehmigAdded debug flag 'useMPI'. This adds MPI init and finalize to main method and MPI compiler wrappers to makefile.
c25aef220dMartin FlehmigIndent
f468a6e0ecLennart Ochel- Renamed following auxiliary functions: - BackendDAEUtil.traverseArrayNoCopyWithUpdate (from BackendDAEUtil.traverseBackendDAEArrayNoCopyWithUpdate) - BackendDAEUtil.traverseArrayNoCopyWithStop (from BackendDAEUtil.traverseBackendDAEArrayNoCopyWithStop) - BackendDAEUtil.traverseArrayNoCopy (from BackendDAEUtil.traverseBackendDAEArrayNoCopy)
6384b9c371Lennart 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
0e0300b04aMartin SjölundFix building of OMEdit without corba configured
6380b36142Marcus Walther- fixed AliasVar-Codegeneration of CPP-Runtime
2aed85361cVitalij Ruge- improved expAdd,expSub, expPow - added test for expAdd, expSub, expPow
2ddef83790OpenModelica Hudson[Janitor mode] Fix whitespace
6146605055Martin Sjölund#2987 alternative method of getting the OPENMODELICAHOME from a .dylib file
88e11398a3Martin SjölundHandle some invalid uses-annotations, like `annotation(uses(Modelica))`
e446dfd2dfVitalij Ruge- update SimplifyTest - added rule a-(-b)/c = a+b/c - small fixes inside simplify
4788bb40c3Martin SjölundFix OSX
048cf73e87Vitalij Rugeupdate SimplifyTest
fa23f7bab0Martin SjölundRun mkbuilddirs for qwt
c099be2129Vitalij Ruge-improved simplify -update test
f32c3d3944OpenModelica Hudson[Janitor mode] Fix whitespace
0eb2422763Patrick Marcel Taeuber- Introduced "TearingSelect" as variable attribute in BackendDAE.VAR
7930e507f4Vitalij RugeFix simplify: simplify(((e1 op2 e) * e3) op1 ((e4*e5) op2 e))
0c218aec74OpenModelica Hudson[Janitor mode] Fix whitespace
52695a0baeVolker Waurich- use Cramer Rule instead of Gaussian for partlintornsystem
7158968e6fOpenModelica Hudson[Janitor mode] Fix whitespace
322ad41c48Volker Waurich- fix for bipartite graphDump, only edges between state vars and equations with der(state)
75bbe541d2Martin SjölundFix simplify: simplify((-x) / y - x / z) = (-x) * (1.0 / y + 1.0 / z)
72dae91e78Martin Sjölund#2987 Try to fix OSX again
7583445214Martin Sjölund#2987 Try to fix OSX issues by forcing rpath to be used for libOpenModelicaCompiler.dylib
535538bb3aLennart Ochel- fixed #2990
4490009e4aVolker Waurich- fix cse for Annex60 model
3b5ade5c01Adrian 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)
2a7043f132Adrian Pop- fix typo
b2434cd25aOpenModelica Hudson[Janitor mode] Fix whitespace
7bfda4aa30Willi Braun - fixed #2981
705db3412aOpenModelica Hudson[Janitor mode] Fix whitespace
26e387c4c0Per ÖstlundFix for #2925: - Don't force ceval of reduction iterators in functions. - Fixed ceval of min/max of arrays.
c8fec8ec2cOpenModelica Hudson[Janitor mode] Fix whitespace
051c7d400dWilli Braun - added mixedSystem flag for nonlinear systems. Not used, yet.
42f5de67a5Lennart Ochel- remove obsolete attribute from SimCodeTV.SIMCODE
e56ba910d1Henning Kiel#include if compiling rtclock.c for unsupoorted target
70efb94daaOpenModelica Hudson[Janitor mode] Fix whitespace
3157ccca70Per Östlund- Some code cleanup.
7f91f596f5Volker Waurich- activate CSE
e6993d81eeMartin SjölundCompile OMEdit even if omc is configured without CORBA bindings
82f63c6550OpenModelica Hudson[Janitor mode] Fix whitespace
be8b179657Volker Waurich- print number of merged tasks for hpcomDump
0b3a478fefVolker Waurich- refactored mergeParentNodes
2f52b936baMartin SjölundGenerate the shared object directly in build/lib/omc
205dfffb48Martin SjölundTry allowing undefined symbols at compile time in OSX
02606a0600Martin SjölundTry to build a dynamic omc on OSX
68397f7e5dMartin 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
7d1194cca5OpenModelica Hudson[Janitor mode] Fix whitespace
9afcf3092eVolker Waurich- fix build - added Symbolic Gaussian to HpcOmEqSystems.mo
ce01598b8fOpenModelica Hudson[Janitor mode] Fix whitespace
25e5292739Volker Waurich- refactoring GRS, only mergeSimpleNodes for now
5afb32df86OpenModelica Hudson[Janitor mode] Fix whitespace
3186d69b0fLennart 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.)
204dc37162OpenModelica Hudson[Janitor mode] Fix whitespace
44bc61fd7cWilli Braun - #2975 fixed.
ddeeba38a3OpenModelica Hudson[Janitor mode] Fix whitespace
cdfd5d09c9Marcus Walther- splitted large generated cpp functions into smaller ones
d1dcc1cf77Martin Sjölund#2982 Sort if-expressions correctly in function context
1ff3a639e7OpenModelica Hudson[Janitor mode] Fix whitespace
11cfa24e0cVolker Waurich- added cse module
abfc842d42Willi Braun - a bit cleanup of the nonlinear solver
1b87e16b1fMartin SjölundDisplay the error-message instead of the help-text
4d396dbb76Martin SjölundSimplify handling of result files
98e932b622Henning Kiel- fixed some types
4cc53996bcHenning Kiel- improved performance of exp_real_array/exp_integer_array functions
a4bf598676OpenModelica Hudson[Janitor mode] Fix whitespace
c86dccd9d4Martin FlehmigAdded function intRandom an interface to C/C++ rand function
5d15ce582cMartin FlehmigAdded random scheduler to HPCOM module
96133c32feMartin SjölundUse the better randomness also during matching
d5f884af19Willi Braun - fix build warnings
cfca2acbccOpenModelica Hudson[Janitor mode] Fix whitespace
667f376da3Marcus 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
5df37cbd5fMartin SjölundFix System.intRand (low bits did not have enough entropy)
29141f0dd2Martin 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
fae56d99afOpenModelica Hudson[Janitor mode] Fix whitespace
5cce585b71Per Östlund- Fixed some code generation issues for subscripted crefs in tuples. - Code cleanup. - Updated and enabled some MetaModelica tests which had started to work.
6c836e660cMartin Sjölund#2976 Add depends to _includes.h files
cf643e7ccaAdrian Pop- fix File.write test fputs using EOF, seems to work on both Linux and Windows.
f78ab67a57Adrian Pop- fix File.write (why would you expect fputs to always return 1??!!)
416d9f181fMartin SjölundChange to using Model_info.json by default
71b4e00060Martin SjölundOMEdit: handle equations also for Model_info.json files
0245655f97Lennart Ochel- Clean up some more patterns.
0c1daf1624Per Östlund- Dump comments in the correct place for for-equations/statements.
126efba134Lennart Ochel- clenup pattern of createOdeSystem2
ecd3174aaaLennart 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.
5c27cbe127OpenModelica Hudson[Janitor mode] Fix whitespace
4bfa251e3eMarcus Walther- forgot to add barrier file
1495f53090Marcus 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
5e98ba286fMahder Alemseged Gebremedhin+ Put correct types when vectorizing qualified assignments. - this used to send wrong types all the way to code generation.
81fbc24007Lennart Ochel- cleanup of traversingisDiscreteExpFinder
be43a219cfLennart Ochel- fix comments
38e87a7e8eMartin SjölundRefactor/remove some no-op code
21474792abMartin 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)
ff215b5ac7Lennart Ochel- typo
736de63b60Martin Sjölund- Fix loadFiles() when parsing only 1 file - Use loadFile instead of loadFiles in GenerateInterface since it always loads exactly 1 file
0611eee04bMartin Sjölund- Add missing file in previous commit
3e9d57c2a1Martin SjölundEnable parallel loadModel (gives 2~3x speed-up depending on CPU)
efcf9b574eAdeel Asghar#2906 - Drop down menus for Enumeration and Boolean types. - Added a new API getBuiltinType.
7dc01b66f3OpenModelica Hudson[Janitor mode] Fix whitespace
89f00133c2Per ÖstlundFix for #2947: - Optimized usage of BackendDAE.VARIABLES in the backend to improve performance. - Some cleaning up.
da98a1f2aeMartin SjölundParse all operations correctly for JSON
8d3347ad82OpenModelica Hudson[Janitor mode] Fix whitespace
68215995b0Lennart Ochel- changed r23269. relations/zero crossings get only dumped if LOG_EVENTS_V is used
024812dcc0OpenModelica Hudson[Janitor mode] Fix whitespace
74d0abdc3eLennart Ochel- dump relations/zero crossings after events
0501fdf148OpenModelica Hudson[Janitor mode] Fix whitespace
68693d61a5Niklas Worschechfix for assert in cpp template
6aeb900812Martin SjölundAdd check for using reserved identifiers as components
4e9730ef45Martin SjölundRe-add check for duplicate names in enumeration
522c324393Martin SjölundSkip _= in front of arrayUpdate calls
ad5de84ff7Martin SjölundRemove some unused calls, removed _ from some that are used
2dd6c8569aWilli Braun - fixed #1228, by adding when equation also to other torn equations.
c02de7619eMartin SjölundRemoved some calls that should not do anything
027cda71efMartin SjölundCheck performance when not adding replacements already in the hashtable
92b4dd462eMartin SjölundSome HashTable implementation changes
7cbb7ad8ebMartin SjölundSkip unused get call in VarTransform
8ace60b1ecMartin Sjölund#2968 Treat function calls as a variable being used (if it is an unbound function pointer)
3c3d38e862Adeel Asghar- more typo fixes
c080d1632cAdeel Asghar- Fixed typos in dassl simulation flags.
26b3ad3badOpenModelica Hudson[Janitor mode] Fix whitespace
40aef38c6aNiklas Worschechmoved allocating of algloop vars in initialization
d5e4477575Martin SjölundRefactoring `REC(_)=>REC()`
819a2ff176OpenModelica Hudson[Janitor mode] Fix whitespace
98e1440c2bVolker Waurich- added flag +graphml to dump a bipartite graph after causalization and a task graph on SCC level. use yEd for visualization
1be83ab285Martin SjölundRefactor some more things away
79faad14d9OpenModelica Hudson[Janitor mode] Fix whitespace
a279a49468Adeel Asghar#2190 - Added a new copyClass API. - Added GUI for new copyClass API in OMEdit.
263f1870adMarcus Walther- Peer Solver preliminaries added to CPP-Runtime
6f83bdcdeeOpenModelica Hudson[Janitor mode] Fix whitespace
f9fb8f7ecaMartin SjölundUpdated the refactoring script, handling `REC(name=_)=>REC()` - Ran the refactoring script
43dbce1df4OpenModelica Hudson[Janitor mode] Fix whitespace
8630439e93Niklas Worschechfix for paramater initialization, fix for allocating A matrix in cpp template
4385e1a40eMartin SjölundUse lookupType instead of lookupClass to handle DIM_ENUM/DIM_BOOLEAN
72320b341cMartin SjölundUpdate traverseType to not create a tuple in each step
ff43ec6a9bMartin SjölundFix logic error in assertion (checking the level condition before it was assigned)
e41145dcd2Willi Braun - fixed #2878.
485a7a1d58Lennart Ochel- Some random cleanups.
f8d6c7f444Henning Kiel- remove superfluous strlen() - add short description strings for builtin functions
e0e9c63b94Martin SjölundGuard against some domain errors for trig functions
ab77fa60f0OpenModelica Hudson[Janitor mode] Fix whitespace
c4259c1bdcWilli Braun- fixed #2867 by fixing the calculation of adjacency rows for ASUB expressions
d9892249c3Lennart Ochel- fixed compilation
a888b87bd0OpenModelica Hudson[Janitor mode] Fix whitespace
3334f8e635Nils Menageradded call of initialization functions for the jacobian in cpp runtime
22beed0e92Volker Waurich- use partlintornsystem only flag controlled
4736f03b95Volker Waurich- extended simplification in partlintornsystem
aca8ab8e49Martin 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
9898297892OpenModelica Hudson[Janitor mode] Fix whitespace
f3f25f6887Volker Waurich- extended partlintornsystem
035e213fc9OpenModelica Hudson[Janitor mode] Fix whitespace
cb6c654530Lennart Ochel- Added functionality to dump zero crossings during runtime
2fe6e0853fLennart 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
71756960b2Martin SjölundOnly restrict root user from using the interactive interfaces (sockets/CORBA)
dc16af3495Bernhard ThieleCollecting outgoing transitions of a mode/state in MODE data structure
42e7722261Per Östlund- sourceInfo returns SourceInfo, not FileInfo.
1d01378a91OpenModelica Hudson[Janitor mode] Fix whitespace
a7e28ab1f9Bernhard BachmannImproved linear solver "LU with total pivoting" for solvable underdetermined systems
609a3454edLennart Ochel- Modified epsilon of event hysteresis - Remove unnecessary counter from BackendDAE.EVENT_INFO
cc239e281aPer Östlund- Some cleaning up.
0ca107670dLennart Ochel- fixed dumped number of zero crossings and updated test cases
f6e5763646Lennart Ochel- revert r23183 temporary
7f3ee651dfLennart Ochel- fixed dumped number of zero crossings
d8535eba8eLennart Ochel- improve info message by adding current time value
b0599b43a7Bernhard ThieleAssigning equations to states
38dc646c9eVolker Waurich- use list scheduler as default hpcom scheduler
0b28874918OpenModelica Hudson[Janitor mode] Fix whitespace
cdc647607cLennart 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
b8ab116598Volker Waurich- fix for partlintornsystem, debug dump for jacobian
e5f4fe1dc5OpenModelica Hudson[Janitor mode] Fix whitespace
4fd863a3cdBernhard Bachmannadded new linear solver based on LU decomposision using total pivoting - activated it also as default - updated some tests
ba4e44540dVitalij Rugeimproved output for optDebugeJac
e2436e3a5fMartin SjölundWeird work-around for size(arr /* suze [0,2] */, 2) to return 0 at run-time (used by Modelica tables)
2155696d7bMartin SjölundMake sourceInfo() testsuite-friendly
aed7ecd9e1Martin Sjölundmake clean: remove generated templates
86e0233b39Martin SjölundFix r23156
8cd2a88fceMartin SjölundAdd sourceInfo() to all Error.addInternalError calls
64bbc7de08Martin SjölundRename flag "nodoSCodeDep" to "noscodeDep"
9fcdd6a708Martin SjölundRemove unused flag usedep
225ad80facMartin SjölundTail recursion
8592b2fe02Per Östlund- Got rid of some listArray/arrayList calls.
bb15576c63Vitalij Ruge-support min and max values by extraPolate -imporevd output for nonlinear solver
5a4ae1254cOpenModelica Hudson[Janitor mode] Fix whitespace
51f68989e3Per Östlund- Fix Array.map.
458751587cWilli Braun - added flag for SKF TLM Master Solver Interface.
1505656a4fMartin SjölundSome refactoring to use assignment to fields
148e7c737bOpenModelica Hudson[Janitor mode] Fix whitespace
9002e08f71Per Östlund- Removed Array.append (since we have arrayAppend now). - Optimized some Array functions. - Some random cleanups.
d51b7bf84cMartin SjölundDo not dump bindings to outputs in the interface functions
2569667d19Martin SjölundFix indexes of some metarecord literals (Susan does not warn you shadow the variable index with a new index)
8bd5d5b17aVolker Waurich- rewritten partlintornsystem module
4066c642dbVitalij Rugeimproved output for optDebugeJac
8e374aa390Martin SjölundPrint SourceInfo to MM definitions
e64cd0c31eMartin SjölundAbsyn no longer needs to be its own dependency class (Util no longer imports Absyn)
fc59b4b371Martin SjölundSusan no longer depends on Absyn
b6f399e877Martin 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.
6f72cec470OpenModelica Hudson[Janitor mode] Fix whitespace
073404243cMartin SjölundSusan: Handle builtin uniontypes
72145782c8Vitalij Ruge- improved optDebugeJac compare analytical and numerical jacobian
5db24959b4Adrian Pop- fix bug #2882 (careful with the evaluation of expressions having DAE.T_CODE type)
7ce663d032Adrian Pop- fix bug #2943 (the error was introduced in r23049) - added test: testsuite/openmodelica/interactive-API/Bug2943.mos
08ba06d655Martin SjölundFix code generation for assignment to metarecord fields
cee22a2a01OpenModelica Hudson[Janitor mode] Fix whitespace
8e56d0c3a3Henning KielRecommit change from r23112 with appropriate fixes
cb6049377dNiklas Worschechfix for dae exp reductions in cpp template, fix for memory leaks in cpp runtime
68dad5b2d6Per Östlund- Reverted part of 23112 that broke the build.
cc1a03d040OpenModelica Hudson[Janitor mode] Fix whitespace
7a27ec3e2bPer Östlund- Some optimizations in BackendDAEUtil.
820667c8b9Henning KielFix some uninitialized values.
4e79073f37Martin SjölundRemove pointless call
29e81496d6Adrian Pop- make distclean for gc on top clean
405cae2b13Adrian 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
b3d2e0e17cPer Östlund- Removed arrayAdd, it's unused and very inefficient, and arrayAppend can do the same thing.
31303c737dPer Östlund- Implemented builtin MetaModelica operators arrayAppend and MetaModelica.Dangerous.arrayCreateNoInit.
3747ceda29Martin 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
03d7d9d6d5Lennart Ochel- moved BackendDAEUtil.analyzeJacobian to package SymbolicJacobian
dee4d7cee9Martin SjölundAlways dump builtin external declarations since it affects the interface
fa7bbfa91fMartin SjölundMissing changes in CevalScript
53d85a2dfbMartin SjölundStrip external sections and class comments for the interface files
385bedda27Willi Braun - fixed #2754.
6d0c42fda9Willi Braun - fixed nominal, min and max attributes for linear systems
4fd5ed2013OpenModelica Hudson[Janitor mode] Fix whitespace
d470248679Willi Braunfixed #2868 and #2754 partially - by using the in BackendEquation.equationToResidualForm and SimCodeUtil the same function createResidualExp
c61d210220Adrian Pop- GC_expand_hp 150M for Windows, 300M for others
bc53862654Adrian 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
f6cf013539Vitalij Rugefixed optDebugeJac
a1d8cbe9a2Marcus Walther- fixed analyzation_mode
e8cc177c9bVitalij Rugefixed optDebugeJac
eb682eb2ebLennart 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
7577765895Lennart 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
43229ae413OpenModelica Hudson[Janitor mode] Fix whitespace
72429c5f45Ruediger Kampfmann-added some functions required for vxworks
19e6ea1368Marcus Walther- fixed cpp runtime build
b7bd3c8a56Marcus Walther- moved Solver header files into the include folder to fix windows build
6f85d2ed2aVitalij Rugefixed 23080
b3b1e196a0Vitalij Rugefixed output
d1eb10784eVitalij Rugefixed output format
67f59119e2Martin SjölundRemove RML references from the readme
bd6aa738c2Vitalij Rugeimproved debuging of the jacobian matrix in dyn. optimization
a4b691fd87Per Ö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.
47ea0a53f7Martin SjölundEnable Figaro
4b598ffa73Martin SjölundTweak arrayCreate (inline)
10b89b93faLennart 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
faf7e01364OpenModelica Hudson[Janitor mode] Fix whitespace
f3bb4db316Martin SjölundClean CevalScript.compileModel
8666ba5de2Nils MenagerAdaptions for VxWorks and Bodas in Kinsol and AlgLoopSolverFactory and cleanup of files in cpp runtime
d8a615c844Lennart Ochel- Cleaned up more patterns
e4f7af7f67OpenModelica Hudson[Janitor mode] Fix whitespace
b1a2bc297cMarcus 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
174f34e650Vitalij Rugeadded option for debuging derivations
31624e1c08Adrian 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)
c5e95d232dAdrian 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
35ca2e96b7Martin SjölundCall `GC_expand` in main to make the test suite 100% (hopefully)
201c5cd3f5Vitalij Rugefix indentation
ae867502c4Bernhard ThieleModelica state machines data structure extension
ddb11c91a7OpenModelica Hudson[Janitor mode] Fix whitespace
2a8f86017dJulian Opheyfix in cpp template for external functions
e567c70a41OpenModelica Hudson[Janitor mode] Fix whitespace
d6355a4417Martin SjölundRemoved the old MetaModelica operators from the parser (+& ==& +. ==., etc)
38435b1968Per Östlund- Some case merging and various improvements.
36d0f700e4Lennart Ochel- fix r23046
d50f4dbf68Willi Braun - fix printMatrix
7d7218be0aLennart Ochel- clean-up some patterns
9ae856bc02Lennart Ochel- Removed unnecessary cases - Merged cases if possible - Some more clean-up
9b94e295e8Per Östlund- Improved Util.stringWrap.
a174a5927bMartin SjölundStart removal of Debug.mo: Removed bcall* fcall* bprint* fprint*, etc
33fc8e5da5Bernhard ThieleRestricting special inner outer rules for variables in state machines to output variables
182def48b9Willi Braun - fixed nominal, min and max attributes for linear systems
eb68f0c549Martin 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)
56fd672a08Per Östlund- Readd listReverseInPlace in List, doesn't seem to be the issue.
aa4758e35dPer Östlund- Remove all listReverseInPlace to see if they are causing issues with FourBitBinaryAdder.
648f3bbeaaPer Östlund- Removed some potentially unsafe listReverseInPlace.
d36312faffLennart Ochel- Merged functions collectZCAlgs and collectZCAlgsFor - Removed unused function arguments - Some more clean-up
64513156caLennart Ochel- fix documentation of one more function
7f15d5e974OpenModelica Hudson[Janitor mode] Fix whitespace
e4dba6c72cLennart Ochel- revise new 'math library' from r23023 - fix some wrong pointers - fix documentation
03e6c640eeAdrian 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
808acc6d9eWilli Braun - some preparation for linear solver improvments
3b464114e1Willi Braun - more fixes for omc_math library
e95e409360Adrian Pop- fix Windows build
082b08a320OpenModelica Hudson[Janitor mode] Fix whitespace
e66ac81defWilli Braun - update lapack solver to use omc_math
d5fa00c67aWilli Braun - added own small math library for vectors and matrix
52b690ec7cAdrian Pop- update boehm gc to latest from github (via OpenModelicaExternal 3rdParty/gc) - rename 3rdParty/gc-7.2 to 3rdParty/gc
324e1bdb29OpenModelica Hudson[Janitor mode] Fix whitespace
0aca84eea5Lennart Ochel- remove unnecessary lists
ed2525c987Lennart Ochel- fix Util.if_
4453b9091cBernhard ThieleReverted back to r23007 since last commit of file was unintentional
0b8a191f9bOpenModelica Hudson[Janitor mode] Fix whitespace
4c603f1fc3Bernhard ThieleModelica State Machines module (not ready, yet). Module is not yet activated (entry commented out in Flags.mo).
e09fc1ac6eLennart Ochel- use BackendDAEUtil.mapEqSystem instead of BackendDAEUtil.mapEqSystemAndFold
676db7eeadLennart Ochel- don't search in shared object for zero crossings
8f96a65e13Lennart Ochel- don't search in initial equations for zero crossings
7a09487808OpenModelica Hudson[Janitor mode] Fix whitespace
891509c9f6Per Östlund- List optimizations by using dangerous listReverseInPlace.
d0a8032fe9Martin SjölundReplace `Util.if_` with if-expressions
a7bb0f209dOpenModelica Hudson[Janitor mode] Fix whitespace
f2f0c0c51bVitalij Ruge-imporved error msg for dyn. optimization -some fixes from static analysis
090e12d229Lennart Ochel- use zc::lst instead of listAppend({zc}, lst)
258654df98Nils MenagerAdaptions in Kinsol (Cpp Runtime) for VxWorks and Bodas
925a4248a3Martin 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
967779ca20OpenModelica Hudson[Janitor mode] Fix whitespace
9bc199fc96Niklas Worschechfix for get start value in cpp template
0ac8b0b6c7Lennart 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
c8ddc965f8OpenModelica Hudson[Janitor mode] Fix whitespace
ca4471bf7bMarcus Walther- added defines for measure time, to support scoreP - scoreP support to c++ profiling added
045378016dMartin SjölundIncrease time limits for library testing
fe7c64eea6Marcus Walther- fix for hpcom analyzation mode
2ce864d355Volker Waurich- replace numArrayDim with ExpressionDump.dimensionIntString only in the simCodeVar and not in the backendVar - some dumpSimCode extension for constant and parameter vars
70ab734f12Martin SjölundReplace matchcontinue without accumulator with a reverse for-loop
fdf9cbab1cOpenModelica Hudson[Janitor mode] Fix whitespace
17f361c580Willi 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
66da7d0feeMartin Sjölund#2932 Do not make protected functions static
f1208de2e0OpenModelica Hudson[Janitor mode] Fix whitespace
6b7fbc97cdNils MenagerCleanup of Cpp Runtime files
53333de854Lennart Ochel- some cleanup, removed unnecessary matchcontinue statements, ...
5b0863d864Volker Waurich- use the size instead of the Absyn.path in ExpressionDump.dimensionString()
f837a7bc9bOpenModelica Hudson[Janitor mode] Fix whitespace
4511848726Per Östlund- Fixed logic in Main.main2.
efdaa466d9Niklas Worschechdeactivated function parameter generation in cpp template
1312a9bf04Martin SjölundUpdate tarball for partial function evaluation - Removed List.fold5 and List.fold6 (called directly using `List.fold(..., function f(x1=y1,x2=y2)`
3d5bf5be5fMartin SjölundHandle metaarray when generating code
4037b0a74cLennart 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
de29fb1035OpenModelica Hudson[Janitor mode] Fix whitespace
dff9b25406Per Östlund- Case merging.
20ca1f20aeLennart Ochel- Unraveling some indices by making List.position work with one-based index.
d88ae5f86dMartin SjölundRemove bootstrapping version text since RML is no longer in use
253cb47804Martin SjölundRemove RML references from configure
708c137eb3Martin SjölundDo not expand-expand-...-expand crefs hoping this will change the results
4daf4d1e4cAdrian Pop- merge cases based on output from rml -Eunify (https://dev.openmodelica.org/~adrpo/rml-unifications-original.txt)
8da37a600fMartin Sjölundcppruntime uses cminpack
1a65260776Per Östlund- Fix previous fix.
41a6753638OpenModelica Hudson[Janitor mode] Fix whitespace
d08bfbc472Per Östlund- Another try to fix build, avoid function partial evaluation.
fa69a34e5cPer Östlund- Try to fix build, function partial evaluation seems a bit buggy.
194a5d1d64OpenModelica Hudson[Janitor mode] Fix whitespace
d8ea3a0271Per Ö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.
bd3faed4e4Martin SjölundKeep System_isRML until we make a new tarball
9a56a9c69aMartin SjölundRemove some RML stuff
76df8c9b21Lennart Ochel- Removed function List.delete, since it was just an rml workaround - Changed listDelete to work with one-based index (mm:#1623)
6690dc7078Martin SjölundRemove generated susan files (should not be needed since we always have omc available)
24cec0328bMartin SjölundRemove the NONE check from the parser; we no longer need special checks for RML stuff
7c246abb39Adrian Pop- no more rml_compatibility.h
f6a9a76c1bAdrian Pop- more cleanup - use CFLAGS=-g -O2 -falign-functions on Windows
f1fee065abAdrian Pop- mk_* -> mmc_mk_*
102e4dacfbAdrian Pop- more proper RML cleanup
a84edccfe7Per Östlund- Removed strict RML checks.
7268e5ccdbAdrian Pop- more rml cleanup
9fd0b89903Adrian Pop- Compiler/omc_release is no more, nothing to clean
242e84445cMartin SjölundDon't generate omc_release
6fbeedd303Martin SjölundRemove RML version of BlockCallRewrite.mo
8560c0e0bfMartin SjölundRemove some RML stuff
386c20d2b3Adrian Pop- build the omc-bootstrapped by default on Linux also
6bc74cdfb6Adrian Pop- switch version to 1.9.2+dev
0a5b77a94bAdrian Pop- update version to 1.9.1 release
0f60125e59OpenModelica Hudson[Janitor mode] Fix whitespace
2b5888f2a7Lennart Ochel- removed obsolete/unused code from package Differentiate - function getFunctionResultTypes - function differentiateExpCrefFunction - function differentiateExpCref - function differentiateFunctionPartial - function differentiatePartialFunctionwrt - function addElementVars2AllVars - function addElementVars2InDep - function addIndependentVars
3c69a09d77Lennart Ochel- marked some functions as protected - removed a few unused variables
c333452929OpenModelica Hudson[Janitor mode] Fix whitespace
2ab8ae445eRuediger Kampfmann-adapted cpp runtime files for vxworks
51a2318346Adrian Pop- fix bootstrapping - fix UTF-8 encoding
42b5aebceaOpenModelica Hudson[Janitor mode] Fix whitespace
c6c97bc07cOpenModelica Hudson[Janitor mode] Set auto-props
e518546f1aRuediger Kampfmann-adapted cpp runtime includes for vxworks
fb4672a596Ruediger Kampfmann-added for vxworks
79dd4ff82fOpenModelica Hudson[Janitor mode] Fix whitespace
5766264bcfWilli Braun - added tranformModelFMU to scripting commands
f107cb633dPer Östlund- Optimized the adding of connect equations to the DAE.
09bcd6563bOpenModelica Hudson[Janitor mode] Set auto-props
729f0309f4Martin SjölundUTF-8 fixes
01de4cf284Lennart Ochel- Update unit check module - Use of hash tables instead of lists - Minor fixes (e.g. messages)
a0315728acOpenModelica Hudson[Janitor mode] Fix whitespace
6178f9c772Nils MenagerAdditional changes in include files for Bodas and VxWorks in Cpp Core
e2824ca6efOpenModelica Hudson[Janitor mode] Fix whitespace
58510d5758OpenModelica Hudson[Janitor mode] Set auto-props
cdd125a0b8Nils MenagerIntegration of Bodas and VxWorks functions into Cpp Simcore
64604bb5f3Adeel 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.
9934577fa0Ruediger Kampfmann-added include for vxworks
2a9396c39cLennart Ochel- remove redundant functions
5d7c17caf5OpenModelica Hudson[Janitor mode] Fix whitespace
40bcdea6ebNils MenagerExtension for VxWorks and Bodas
222c7c1053Lennart Ochel- add missing optmodules description
d78f14e7bbLennart Ochel- fix indentation
01f4145ee6OpenModelica Hudson[Janitor mode] Fix whitespace
1a6edc450eRuediger Kampfmann-added stepStarted method
474d83cb99Niklas Worschechfix in SimCodeUtil, correct number of outputs
0165625c1fOpenModelica Hudson[Janitor mode] Fix whitespace
c7ac9f5ce8Niklas Worschechadded library path to Simcode, used for external functions in shared libraries
eca612a816Martin 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)
213280cccfMartin SjölundFix bootstrapping without updating tarball
c80fed2bbcMartin 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
f612a29403Martin SjölundAllow failing to load a model from uses-annotation. Append the regular MODELICAPATH when searching for packages in uses-annotations
1fedf0520cMartin SjölundMake loadFile("Modelica/package.mo") also consider the uses-annotation and load those packages (just like loadModel does, but with a different MODELICAPATH)
2406f95310OpenModelica Hudson[Janitor mode] Fix whitespace
1ee2d85439Julian Opheyfix in cpp template for external objects
1144193ff2Per Östlund- Make continue work in cases also.
1dd6aa6b35Adrian Pop- fix bug: #2917 - handle protected sections better
231155d319Willi Braun - fix events in fmi 2.0 - added more tests for fmi 2.0
e4bb7632c5OpenModelica Hudson[Janitor mode] Fix whitespace
848214c750Willi Braun - fixes for FMI 2.0 import and export - reorganize testsuite for fmi
51d7e25e22Martin SjölundAdd missing imports
3356e5d3f3Martin SjölundCreate package Util/ClockIndexes (used to be part of Script/GlobalScript) in order to decouple susan from the front-end modules
48413dce99Per Östlund- More RML fixes (RML seems to be making errors up now).
8c7c8d2c96Martin SjölundRML fix
e53218167fMartin 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"
dac27359e5Per Östlund- RML fix.
1ad1ef9801Per Östlund- More RML fixes.
6a7a33716eMartin SjölundIndentation
41a7c0bffaPer Östlund- Fix RML compilation.
d4a5709dc8OpenModelica Hudson[Janitor mode] Fix whitespace
7e6f28e2c8OpenModelica Hudson[Janitor mode] Fix whitespace
a88f41d7e9Per Ö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.
8c63eb91f9Julian Ophey-fix in cpp-template for external objects/external functions
6551d11df4Martin SjölundFix compiler sources for r22831
f99931e41cMartin 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)
fe5bb5a890Niklas Worschechfix for bat file in cpp template
42a9ba8f1eAdrian 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
6a0e3c39acPer Östlund- Updated swedish translation of OMC.
6528e5f99aWilli Braun - #2911 fixed. replace also comma in a generated variable
012006740bWilli Braun - fix some typos in fmi
1975f0e79dNiklas Worschechfix for assign array in cpp template
4086780698Adrian Pop- fix bug #2899 - partial fix for bug #2484 (still needs some work on dae declaring complex components, i.e. connectors inside expandable connector)
9ee276449dAdrian 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
96b97c795cAdrian Pop- fix FMI crashes?
ee0b6b9b83Adrian Pop- don't go searching where you shouldn't
ccaa86a140Henning KielFree allocated memory again.
3806e270daAdrian Pop- attempt to fix SimulationRuntime/cpp compilation on Win MSVC, target runtimeCPPmsvcinstall
019ae0028aWilli Braun#2840 - added assertion handling to fmi1 and fmi2 export
9894e2c819Martin Sjölund#2898 ComplianceSuite should no longer need to delete classes
4a763fb242Per ÖstlundFix for #2898: - Made the compiler less sensitive to errors in unused models.
5568f743ecMartin Sjölund#2889 Fix for r22769 accidentally reverting r22763
a327ab48f4Martin Sjölund#2897 Implement continue statements in MetaModelica
b33cd4c698OpenModelica Hudson[Janitor mode] Fix whitespace
bbab77eb46Vitalij Rugeimproved r22777
f9f64b54e6OpenModelica Hudson[Janitor mode] Fix whitespace
9c278624dcVitalij Rugeadded some rules for simplification of residuals e.g. sqrt(f(x)) = 0 -> f(x) = 0, exp(x) - exp(y) = 0 -> x-y = 0
3bca16ee71Willi Braun - fix FMU makefile, to be able build a fmu just with the source directory.
447047ce34OpenModelica Hudson[Janitor mode] Fix whitespace
e963b0287cWilli Braun#2888 - fix for #2888
9fedfd520fOpenModelica Hudson[Janitor mode] Fix whitespace
c1aaa75dcaMarcus 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
7cdd71f3b3Martin Sjölund#2897 Replace continue with cont (preparation for continue becoming a keyword)
ada0fdc17cLennart Ochel- revert r22764 (and r22765), since it breaks the bootstrapped stuff
6a2360f76aMartin Sjölund#2896 Fix simplify asub when `array` types are involved
f118ef0bc6Lennart Ochel- Update unit check module - Use of Hash Tables instead of lists - Minor fixes (e.g. messages)
6eb97b4ad1Martin Sjölund#2889 Save default binding of SimCode.FUNCTION_PTR
3d22103a47Martin Sjölund#2890 Sort record declarations before generating code
71acece909Martin Sjölund#2885 Allow function partial application to be used as general expressions (MetaModelica only)
25fb0533edMartin SjölundFix parser for gcc
52ad968455Martin 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)
bc9f9ad924OpenModelica Hudson[Janitor mode] Fix whitespace
4a29dfab73Mahder Alemseged Gebremedhin+ clustering support for the dynamic scheduler. Have been sitting on it for a while. + Some more minor fixes and timing informations.
5be18078e2OpenModelica Hudson[Janitor mode] Fix whitespace
34f2e23bd3Mahder Alemseged Gebremedhin- Update task system dumping and reading of linear and non-linear systems.
c8f36f7378Vitalij Rugesome fixes from static analysis
67ae819488OpenModelica Hudson[Janitor mode] Fix whitespace
188e8a4138Niklas Worschechfix for const vars in cpp template
67f9335196OpenModelica Hudson[Janitor mode] Fix whitespace
997af4edf3Niklas Worschechadded string array to cpp runtime
f1c754b469Vitalij Rugeimproved solver rule for pow(f(x),y) = g(z) => f(x) = h(pre(x))*pow(g(z),1/y)
c030536038Vitalij Rugeadded rule for abs(-x) = abs(x) and pow(-x,2) = pow(x,2)
bd55949f6eOpenModelica Hudson[Janitor mode] Fix whitespace
8391b5fc66Vitalij Rugesplit some function inside dyn. optimization
8caa260789Vitalij Rugefixed assert handling in dyn. optimization, thanks Willi
2402f4c8bfPer Östlund- Made clang happier.
e29ce8cccaMartin SjölundAdd tail recursion for NORETCALL in match-expressions
8f7a983994Niklas Worschechfix for fill array in cpp template
4d06274f85Lennart Ochel- separate Simcode from BackEnd
7754588402Adeel Asghar- Fixed wrong documentation example.
4475b4c749Martin SjölundHandle connections of subtype of basic (Real)
fe688a6e24Per Östlund- Reverted part of r22716, fix wasn't good enough.
a4c55be82fOpenModelica Hudson[Janitor mode] Fix whitespace
09965cd757Per Ö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.
273e2e5bf3Martin SjölundHandle arrays of mixed Integer and subtype of basic type (Real)
914b9fba6eMartin SjölundFix simplify `{a,b,c}*0.0`→`{0.0,0.0,0.0}` instead of `0.0`
20601e0ec7Martin SjölundUse --version for for checkSettings since -v is verbose in clang
63834ee948Martin SjölundSimplify `vector()` expressions
4723729ff8Per ÖstlundFix for #2879: - Better implementation of r22703. - Also handles multiline strings in comments.
bf0ffe2193Per ÖstlundFix for #2879: - Fixed Absyn, SCode and DAE dumping of multiline comments.
a5b51b6375Martin Sjölund#2873 Implemented for-loop for MM arrays
df3fc54f0cMartin Sjölund#2318 Use `_` instead of `{}` in lhs of equations
f64b0b10c8Martin SjölundFix #2695, add testcase
6c91ee96c4OpenModelica Hudson[Janitor mode] Fix whitespace
24a9ea525aVolker Waurich- some optimization for partlintornsystem to get less equations
978e2327ebMartin Sjölund1.9.1 beta4 was released
1c98030ac6OpenModelica Hudson[Janitor mode] Fix whitespace
1831165535Mahder Alemseged Gebremedhin+ Improve r22851. Fix 2452. + Proper counting of algorithm section outputs. Make sure we don't count sections from array components multiple times.
dd53ee410aMartin SjölundKeep flattening operation for array equations
61f7c21fb6Volker Waurich- moved partlintornsystem to the post-opt-modules
0a904feacdNiklas Worschechexpected output
e6f2e7651bOpenModelica Hudson[Janitor mode] Fix whitespace
d346797e52OpenModelica Hudson[Janitor mode] Fix whitespace
62abd92c25Volker Waurich- fix for partlintornsystem
a1d9f8a815Martin Flehmig* Begin of MPI parallelization in HPCOM module.
6cfb6f53c8Adrian PopFix bug: #2853 - more careful reverse lookup for functions
9084d05aecAdrian Pop- back to 1.9.1+dev
40487f5a68Adrian Pop- update version to 1.9.1Beta4.
9615d45cdeAdrian PopFix bug #2871 - as the new env has references and destructive updates we need to clone it when returning it in Builtin.intialGraph
da5f75346aVitalij Rugesmall changes for expAdd and expDiv
e98009ce30Vitalij Ruge remove workaround inside equationToScalarResidualForm
6e4eecc6abVitalij Rugefixed BackendEquation.solveEquation for RESIDUAL_EQUATION
6f34b0ef95Volker Waurich- add functionpath to parameter crefs in function calls to get unique parameter crefs, only for CPP runtime
38a1dffc13OpenModelica Hudson[Janitor mode] Fix whitespace
8239c18e04Vitalij 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
5e59cebf54OpenModelica Hudson[Janitor mode] Fix whitespace
21de29f1efNiklas Worschechfix in kinsol of cpp runtime for kinsol vectors
880e77247eOpenModelica Hudson[Janitor mode] Fix whitespace
45e92f3383Lennart 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)
0f55ac7567Marcus Walther- disabled parallel write output to fix clang tests
6ad1c0dffbMarcus Walther- fixed log and parallel writeOutput - parallel writeOutput is now enabled if boost::threads are found
842508659dOpenModelica Hudson[Janitor mode] Fix whitespace
e7c9fd3addLennart Ochel- enable tearing for all systems
2d59380c49Niklas Worschechfix for tmp vars in cpp template
4ed0e67216Adrian Pop- back to 1.9.1+dev
14e6bd8321Adrian Pop- update version to 1.9.1Beta3.
b279e11d60Adrian Pop- forgot some bad lines in there.
4e3b1498f3Adrian 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
86489508a4Marcus Walther- small msvc fix for hpcom code based on openmp
4c66278c13Volker Waurich- moved reshuffling of systems of equations from Tearing.mo to ResolveLoops.mo, added post-opt module for this
37dfab03bcVolker Waurich- remove resolveLoopsInCOmps from BackendDAEOptimize.mo
a299497422Vitalij Rugeadded rule atan2(0,x) = 0
eaa9d77b3fMartin Sjölund#2862 - testing performance of not replacing `size(exp, 1)` with a non-constant expressions
b6301f4e36Martin SjölundFail at once if encapsulateWhenConditions fails. Print more error-messages on opt-module failures.
3d1405e9a5Martin SjölundAdd line numbers to error-messages from RemoveSimpleEquations
65a1588d10Volker Waurich- comment out columark and mark in Tearing.tearingBFS
3f0ccddf8bVolker Waurich- rewritten HpcOmTaskGraph.updateContinuousEntriesInList
181b5d0e28Adrian 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)
f1d702dd74Martin SjölundHandle array-reductions with more than one dimension (as long as the inner dimensions have known sizes)
f04d176bfbAdrian 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
1808e46019Martin SjölundPrint an error in the template instead of when compiling code
4e965d2b6cMartin SjölundChange array_alloc_x_array to take `array_t` as input instead of `array_t*` (solves codegen issues for MSL trunk)
56b8c1556aMartin SjölundSwitch the default flag for evalConstFuncs to true (`+d=noevalConstFuncs` now disables instead of `+d=evalConstFuncs` disabling (logic error))
b3bcf473eeAdrian 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)
1290f9c634Adrian 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
b4d050d5b1Adrian Pop- all MSL 3.2.1 now compiles - add the previously failing tests to the testsuite
dd8afe7c9aOpenModelica Hudson[Janitor mode] Fix whitespace
223969c9b5Mahder Alemseged GebremedhinFix #2452. Improve #2271 (and also #2112 maybe ?). Counting of algorithm section equation outputs involving arrays and records.
d42a6c3aedMartin 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.)'''''
41caac0bdbMartin 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.
391e2eadc4Martin SjölundDo not create a version scope for operator records
f579503436OpenModelica Hudson[Janitor mode] Fix whitespace
112569e1c2Ruediger Kampfmann-vxworks include
cedb83fdf2Ruediger Kampfmann-vxworks includes
5105e612ffRuediger Kampfmann-vxworks includes
23d9d2daebRuediger Kampfmann-vxworks includes
de977fb38eRuediger Kampfmann-vxworks includes
030bc8d7dfRuediger Kampfmann-vxworks includes
cb95afc032Ruediger Kampfmann-vxworks includes
bda162335fRuediger Kampfmann-vxworks includes
1f1710e19aRuediger Kampfmann-vxworks includes
0a007820d6OpenModelica Hudson[Janitor mode] Fix whitespace
6813105692Ruediger Kampfmann-vxworks includes
4989ebfe62Ruediger Kampfmann-vxworks includes
203f1ccd3eRuediger Kampfmann-vxworks includes
2ac436ea20Ruediger Kampfmann-vxworks includes
c28fb95b2aOpenModelica Hudson[Janitor mode] Fix whitespace
853e5c2755Ruediger Kampfmann-vxworks includes
b0fa405d45OpenModelica Hudson[Janitor mode] Fix whitespace
2e1cd00398Ruediger Kampfmann-vxworks includes
cd4b840006Ruediger Kampfmann-vxworks includes
352ad76367Volker Waurich- extend shuffling for torn systems
1b5b0b3e0bLennart Ochel- **workaround**: generate dummy attributes, since symbolic jacobians break generated c-code
ba20d9ab0eOpenModelica Hudson[Janitor mode] Fix whitespace
ff45d32c53Lennart Ochel- provide additional information (nominal, min, max) for **linear** systems
34e26cc221Bernhard ThieleDifferent handling for "outer" variables if declared in a State Machine state instance
b9cb34e0aaLennart Ochel- **ugly** fix for initialization of symbolic jacobians - add test for #2673
63abd6d0b5Martin SjölundInclude the time taken to run each mos-script for debugging
cb8e7f88e8OpenModelica Hudson[Janitor mode] Fix whitespace
47bcf276e6Adrian Pop- hopefully properly silence the coding style.
2d25e014ebVitalij Rugeupdate tests
1d605b23c8Adrian Pop- silence the coding style.
1db8c03912Vitalij Ruge- update ipopt settings - update tests - added a flag for dyn. optimization for warm start - added test
aacc16cb22Volker Waurich- the hpcom GRS doesnt need so many iterations as before
2b970b6739Martin SjölundAdd new option `readSimulationResultVars(readParameters=false)`, and use this for the reference file comparison
c4fbafd1acOpenModelica Hudson[Janitor mode] Fix whitespace
7502ca1422Lennart 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
5179589465Martin SjölundReset the alarm before the call to buildModel
215683e0ffMartin SjölundNote about config
566b709e76OpenModelica Hudson[Janitor mode] Fix whitespace
e8f42564baMarcus 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
4407c7e8b4Lennart Ochel- fix fmi stuff
e8db5f148dOpenModelica Hudson[Janitor mode] Fix whitespace
8b0f30e496OpenModelica Hudson[Janitor mode] Fix whitespace
8f3b64b0e7Lennart Ochel- fix non-linear system solver for iteration variables with bounded attributes (#2841)
7d61c46ed8Ruediger Kampfmann-removed boost bind
492ea2d0faAdrian Pop- switch colors in trend plots (blue for compilation and green for simulation) to be more visible.
d5469bb952Lennart Ochel- make some dumps and record names less confusing
ed133b8ea9Adrian 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
61e34ace9fOpenModelica Hudson[Janitor mode] Fix whitespace
6eb5a8bde5OpenModelica Hudson[Janitor mode] Set auto-props
338b60a693Niklas Worschechchanged math library to shared library
1287830a2aNiklas Worschech missing modified CodegenCpp.mo file
99742351c7OpenModelica Hudson[Janitor mode] Fix whitespace
78d78b81feOpenModelica Hudson[Janitor mode] Fix whitespace
3e12519e6fRuediger Kampfmann-removed boost bind
bc86917b76Ruediger Kampfmann-removed boost bind
6aea557ba4Lennart Ochel- improve +d=backenddaeinfo - show backendaeinfo for initial system - dump dae kind
377b9e2d59Ruediger Kampfmann-removed boost bind
4214eeb470Martin SjölundFMI 2.0 spec uses the horrible name darwin64 for the binary location of x86 code... Whatever.
e426d9050fMartin Sjölund#2761 Add testcase for System2.mo from Buildings (used to generate a seg.fault)
e2f0debb4cAdrian Pop- don't use System.gettext for Modelica constructs
070507520bAdrian PopMerged branches/FFrontEnd into trunk/
2a3e9ebb58Adrian PopFix bug #2851 - handle named arguments for homotopy
3e6692efa7Martin SjölundFix code generation for simulation executables (broken by r22482)
a9813ab1e1Martin SjölundMake protected functions static in the generated code
e09b5f74e4OpenModelica Hudson[Janitor mode] Fix whitespace
1f43726f81Niklas Worschechfix for typo in cpp template
d7e5c54a8aLennart 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
41e2892a9bOpenModelica Hudson[Janitor mode] Fix whitespace
535b5f2855Niklas Worschechfix in array operations sum_array and dot_array
fc738cecceOpenModelica Hudson[Janitor mode] Fix whitespace
2c13e06dbdRuediger Kampfmann-some changes in divide_array
7d936167caOpenModelica Hudson[Janitor mode] Fix whitespace
5f2e6abcc2Ruediger Kampfmann-some changes in divide_array
838c7ea12dAdrian PopFix bug #2837 - properly handle array equations in RemoveSimpleEquations.mo
82b1afbadaOpenModelica Hudson[Janitor mode] Fix whitespace
451f9c6225Ruediger Kampfmann- some improvements concerning array.h
29a8943527Ruediger Kampfmann- some improvements concerning array.h
41f185b647Ruediger Kampfmann- some improvements concerning array.h
31835f52e5Lennart Ochel- fix indentation
73b0786627OpenModelica Hudson[Janitor mode] Fix whitespace
65a2be73faRuediger Kampfmann-changed removed a senseless copy in the end of functions
935d236484Martin Sjölund#2832 Propagate annotations into DAE.EXTOBJCLASS
bde9d59754Martin Sjölund#2817 Handle unknown dimensions better when initializing a function variable from a binding
1704d24e48OpenModelica Hudson[Janitor mode] Fix whitespace
e8b466d47bRuediger Kampfmann- changed initialization of parameters in functions
4d007c6621OpenModelica Hudson[Janitor mode] Fix whitespace
ea005e73f8Volker Waurich- get thick lines in graphML output for solvable edges and thin lines for nonsolvable edges
fc23d16489Marcus Walther- fixed msvc build
e4a3ac81f2Martin SjölundTail recursive filter1OnTrueSync_tail
cbc75e6029OpenModelica Hudson[Janitor mode] Fix whitespace
a814f4ac09Marcus Walther- splitted the writeOutput-function to speed-up complile time a little bit - activated papi in cmake
1c72b31caeOpenModelica Hudson[Janitor mode] Fix whitespace
4f8d431edaVolker Waurich- added experimental functions to manipulate systems of equations (work in progress)
ccd5f2fb97Marcus Walther- fixed my previous commit
31f9503c45OpenModelica Hudson[Janitor mode] Fix whitespace
4f656e742dMarcus Walther- optimized parallel write output - added profiling points for the write output functionality - added profiling based on papi counters to the cpp-runtime
487c23dbe0Martin SjölundFix the type of list/listReverse comprehensions with multiple iterators
6c7ffee606Per Östlund- Fixed dependency analysis for classes redeclared multiple times.
ccbfa81309Marcus Walther- fixed hpcom
2f976ad689Per ÖstlundFix for #2834: - Don't print out builtin attributes in type mismatch errors, they just make the errors harder to read.
c612384b67Per ÖstlundFix for #2836: - Handle builtin types better in NFSCodeDependency.
c6d215bddeOpenModelica Hudson[Janitor mode] Fix whitespace
4d4ba627e4Volker 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
f1353a1c78Vitalij Rugesome fixes from static analysis
351ba91eb4Adeel Asghar#2767 - If fmi2Terminate is called and then fmi2Reset is called then reinitialize the data.
1935535d13Adeel Asghar#2764, #2765 - Added the InitialUnknows section in modelDescription.xml
360abbc4ecAdeel Asghar#2765 - Use StartString2 instead of initValXml.
fbc604ac94OpenModelica Hudson[Janitor mode] Fix whitespace
c2e5686b5eVitalij Ruge#2833 fixed - added solver rules for e.g g(.) + f(.)/h(.,x) = 0.0 - improved rule for x^r = x^(1/r)
898ec0055fLennart Ochel- update unused interactive stuff
10f0ca8d96Lennart Ochel- improve #2614
db42c3198cMarcus Walther- temporarily disabled colord jacobian
0dbd5bedeaWilli Braun - deactivate dae dumps for symbolic jacobians
c717716fbdNiklas Worschechfix in dot array of cpp runtime
9f2caf5eb4Volker Waurich- added flag to set tolerance for reshuffle algorithm +reshuffle=0/1/2/3
cfa38aae5bAdeel Asghar#2767 - Fixed fmi2GetDerivatives & getReal. - Added LogCategories to modelDescription.xml
74ba08cc3eLennart Ochel- unfix #2830
d899f94a5fOpenModelica Hudson[Janitor mode] Fix whitespace
991c2be7c2Niklas Worschechadded terminate function to cpp tempalte
6795340c45Volker Waurich- added some functions to benchmark exeCosts for tasks in HpcOmSimCodeMain.mo
61d069a2c9OpenModelica Hudson[Janitor mode] Fix whitespace
6e54882fecMarcus Walther- tabified precompiled header file - made measure time functionality available for windows (mingw) - FORCE_INLINE is now defined for gcc and msvc
269a95a698Vitalij Ruge- remove cot,coth rulse // not exist in Modelica // thanks Martin - added some rules for e.g. sin/tan, sinh/tanh
d03b6e89b9Lennart Ochel- fix #2830
b739f823bfMartin SjölundFix errorneous message for `String(format=...)` and expected output
e470e7f0ebOpenModelica Hudson[Janitor mode] Fix whitespace
bec64d29a2Martin Sjölund#2829 Print errors for missing arguments
d5497ec152Volker Waurich- removed print message
721d03a050Marcus Walther- splitted the getInt-Function - fixed HPCOM of CPP-Runtime
0bbf7dab81Marcus Walther- improved error handling - reactivated colored jacobian
b7d6d38f92OpenModelica Hudson[Janitor mode] Fix whitespace
b42e0c23c2Volker Waurich- added variability to record constructors
a25546391aOlena Rogovchenkoblockcall update
e46df41c5cOpenModelica Hudson[Janitor mode] Fix whitespace
aa6621ccb6Vitalij Rugeadded rules for sinh,cosh,tanh,coth
d3891372a2OpenModelica Hudson[Janitor mode] Fix whitespace
3475fc4a36Vitalij Rugeadded rules for sin, cos, tan, cot
76e345f0c7Adrian Pop- don't expect that functions with the same name in different scopes are recursive extends! - fixes a model that Francesco is working on.
77735d58fbMahder Alemseged GebremedhinCreate correct array types for complex type using the prefix dim info.
3d6fa34550OpenModelica Hudson[Janitor mode] Fix whitespace
30463bda58Adrian Pop- fix typo in r22359
455a003213Niklas Worschechfix for some modelica internal functions in cpp template
9a3a2cb7e1OpenModelica Hudson[Janitor mode] Fix whitespace
8af57bb07cMartin SjölundFixes compilation
162383d8a8Olena Rogovchenkoblock call prototype
a8a35a4c26Martin Sjölund#2801 Propagate visibility to DAE.FUNCTION
701dc333b6OpenModelica Hudson[Janitor mode] Fix whitespace
254816c013Olena Rogovchenkoblock call prototype
6ee8e5f06aOlena Rogovchenkoblock call prototype
295dd47a38Martin Sjölund#2823 Speed up replaceLiteralExp for large lists
49c391b78eMartin Sjölund#2827 Handle more MM types in code generation
fde96ad72dMartin SjölundRML crap
69c7dea535Martin Sjölund#2824 - Create new internal foldName and resultName when simplifying reductions with multiple iterators
4b7f24ec71Niklas Worschechdeactivated call CVDlsSetDenseJacFn in CVode.cpp
ddff833fcaVitalij Rugesome fixes from static analysis
655b3c7f39Vitalij Rugekeep extrapolate inputs inside bounds
37e475349dOpenModelica Hudson[Janitor mode] Fix whitespace
8898506117Vitalij Rugefixed output from dyn. optimization
238eaef461Niklas Worschechremoved includes in CVode.h
4a4b649820Niklas Worschechtry to fix compiler error for CV_JCallback
3db3d33620Martin Sjölund#2822 Also consider derived functions when looking for function to compile
19eead66f1Martin 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
9ef6f32b8dOpenModelica Hudson[Janitor mode] Fix whitespace
c924d55c5cWilli Braun - fixes for FMI dependencies calculation
5c5fbfac97Vitalij Rugefixed discrete vars and events in dyn. optimization
5f4bd3e1ebOpenModelica Hudson[Janitor mode] Fix whitespace
3f57eed2bdLennart 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
0f312a9b05Per Östlund- Made Types.matchTypes tail recursive. - Made Static.elabBuiltinTransition3 not fail.
2bd62ee2f8OpenModelica Hudson[Janitor mode] Fix whitespace
47cd2a56d9Niklas Worschechfix in cvode for write output
afc1870033Per Östlund- More listFirst -> listHead.
c362bfdeecPer Östlund- Fixed bootstrapping implementation of listHead/listRest so that they fail on empty lists instead of segfaulting (and are named correctly...).
9b83729280Adrian Pop- coding style utf-8 without bom use (C) instead of the Copyright sign
26f1abe1afOpenModelica Hudson[Janitor mode] Fix whitespace
48acc4b9cdBernhard 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.
27b0b0007bAdeel Asghar- Updated to FMI 2.0 files.
474c547e77OpenModelica Hudson[Janitor mode] Fix whitespace
a63c700081Vitalij Rugefixed -lv LOG_IPOPT_ERROR for final cosntarints
77ef913662Vitalij Rugesome fixes from static analysis
9a91e9175fAdrian Pop- fix bootstrapping
edf4a5e1c9Willi Braun - fix c compiler warning
2c4594f8c1OpenModelica Hudson[Janitor mode] Fix whitespace
806b1625c0Willi Braun#2764 - FMI: added dependecies feature for derivatives and outputs
be7ef973a6Adeel Asghar#2818 - Copy the model's experiment annotation values to the generated FMU.
7f2db9f8f9OpenModelica Hudson[Janitor mode] Fix whitespace
84a82e444eMarcus Walther- optimized measureTime
821b3a507aMartin 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
dac1c9996fOpenModelica Hudson[Janitor mode] Fix whitespace
dd75640ea5Marcus 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
ef99e6ccd2Adrian Pop- fix build
de3b0ee53fPer Östlund- Removed dependency on List _tail-functions in Static.
b7a5aca2f5Martin SjölundAdd support for threaded reductions using +g=MetaModelica
299cdd8690OpenModelica Hudson[Janitor mode] Fix whitespace
4f516aa601Michael Kloeppeluse umfpack only for (very) sparse matrices fix umfpack test's Makefile
6afa020c12OpenModelica Hudson[Janitor mode] Fix whitespace
35a6f78c16Mahder 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.
eb2b3eb118Per Östlund- Implemented isNone/isSome in the bootstrapped compiler.
0d3b421d62Martin Sjölund#2813 Allocate temporary variable used by the for statement *before* generating the body statements (prevents re-use of indexes)
f47b4c8179Volker Waurich- fix in EvaluateFunctions.mo for empty tuple type in CallAttributes
19061898b6OpenModelica Hudson[Janitor mode] Fix whitespace
a24658baa9Niklas Worschechfix for int_max in cpp template
8a7f3086c0Volker Waurich- fix for getEventTaskGraph
65ff40cd42Martin SjölundFix reinit of subscripted crefs
475bb7fdf7Martin SjölundGenerate notifications for invalid typespecs like `list` already during the Absyn to SCode phase
2a53044278Per Östlund- C99 issues.
f53eacf380Per Östlund- Updated OM for FMIL 2.0.
7c65241781Martin 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
936e526b3eOpenModelica Hudson[Janitor mode] Fix whitespace
21563c0b01Vitalij Rugeimproved DynamicOptimization.mo
7e792af765Marcus Walther- disabled always_inline attribute, to fix msvc build
3b96e94b75Adeel Asghar- Keep arrayLength static inline. Gives performance. - New function for debugger mmc_gdb_arrayLength. - Use the new function in OMEdit.
364e40a87eAdeel Asghar- Do not make the arrayLength function static inline.
2e7480a0e4OpenModelica Hudson[Janitor mode] Fix whitespace
6a970489a7Niklas Worschechfix for copy pdb files of cpp runtime
ea172c4b44Martin Sjölund#2811 Allow iterating over lists in for statements
13d19e0207Marcus Walther- SimCodeTV.mo was not merged correctly
64fb00309aOpenModelica Hudson[Janitor mode] Fix whitespace
57bfe738f4Marcus Walther- redo changes of rev22212, but this time without circular dependency
5543876ff8Martin Sjölund#2810 fix segmentation faults on case guards
302a6072edOpenModelica Hudson[Janitor mode] Fix whitespace
851e633ca9Vitalij Rugefixed hessian in dyn. optimization
182b7a9a5fNiklas Worschechfix for append array in cpp runtime
00f6b4034cMartin Sjölund#2786 - Fix code generation for multiple iterators (threaded) - Ceval constant function calls in the front-end
63840b582bNiklas Worschechdeactivated colored Jacobian in cvode
700695c289Martin SjölundRevert to r22211
b6cdd978ecOpenModelica Hudson[Janitor mode] Fix whitespace
9f41cd4a61Marcus Walther- improved levelfix-scheduler of HPCOM - improved measureTime-functionality of cpp-runtime
8ad1c8e9b6Per Östlund- Reverted accidental commit of wrong file.
aa7fea92d7Per Östlund- Even more fixes.
90495a60aePer Östlund- And some more fixes.
08e94269afPer Östlund- More fixes.
8403fa8bc2Per Östlund- Some more fixes for r22200.
00cda59400Adrian Pop- fix grep and replace from r22200
4b091f598cOpenModelica Hudson[Janitor mode] Fix whitespace
bbc2331dcfPer Östlund- Reverted (mostly) the previous commit due to RML grumpiness.
d276a6d454Per Östlund- Fixed builtin listEmpty and replaced List.isEmpty with it.
b6136b9aaeVolker Waurich- added attr varKind to SimCode.Variable - some debug print functions
c6dfea8563Per ÖstlundFix for #2806: - Remove input/output also from record components that are not top-level.
d54087515bAdrian Pop- fix bootstrapping
4ba144b3f7Vitalij Rugeimproved scaling of goal function in dyn. optimization
4d1024b77eAdrian Pop- proper MetaModelica (RML) fix (RML doesn't like things thaat start with "_": _complexity)
102855e687Adrian Pop- fix MetaModelica (RML) compilation
a7c0893c65Adeel Asghar- Add -g to CFLAGS if +d=gendebugsymbols is set.
87e118ff53OpenModelica Hudson[Janitor mode] Fix whitespace
16759baf5bNiklas WorschechActivated colored Jacobian in cvode
ad491c9d2aMartin Sjölund#2800 - Rewrote traverseExp and traverseExpTopDown to take a function with 2 inputs and outputs instead of using tuples
5e5591c150Willi Braun#2808 - fixed #2808
23d4ef9e16OpenModelica Hudson[Janitor mode] Fix whitespace
fe07115210Per Ö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.
2845735f07Per ÖstlundFix for #2806: - Remove input/output from variables which are not at top-level or inside a top-level connector.
198e349c13Volker Waurich- fix simpleResistor test
ad3a5bde8bVolker Waurich- rewritten HpcOmTaskGraph.cutTaskGraph
fdc7cda155Marcus Walther- fixed RML build
5882315d02OpenModelica Hudson[Janitor mode] Fix whitespace
07ad137d75Marcus Walther- added var indices to hpcom-communication-object
a982de4eb7OpenModelica Hudson[Janitor mode] Fix whitespace
c987ace0ffVitalij Ruge- fixed start-values in dyn. optimization - added test
41534e650cOpenModelica Hudson[Janitor mode] Fix whitespace
9eba358355Niklas Worschechexpexted output, fix for min max function in cpp runtime
582fe68491OpenModelica Hudson[Janitor mode] Fix whitespace
28ce7eea0fMahder 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.
905362dd00Marcus Walther- fixed measureTime in CPP-Runtime
a091d5a4d7Michael Kloeppelfix umfpack issues under windows
188060622bMarcus Walther- fixed RML-build
c23611b749OpenModelica Hudson[Janitor mode] Fix whitespace
fcc7fbb1f9Marcus Walther- removed ASSIGNLOCKTASK and RELEASELOCKTASK and added a new Structure called DEPTASK
821909b148Marcus Walther- removed deinitialization of measure time
b35e62d705OpenModelica Hudson[Janitor mode] Fix whitespace
a1813b01fbNiklas Worschechfix for sum array in cpp template, reverted cvode changes for colored jacobian
baa0654300OpenModelica Hudson[Janitor mode] Fix whitespace
e16a51947eMarcus Walther- fixed segfault in measureTime
f0103e786cOpenModelica Hudson[Janitor mode] Fix whitespace
ca69856b59Niklas Worschechfix for dot and div array in cpp tempalte.Colored Jacobian in cvode of cpp runtime
d9329e372fBernhard ThieleAdded clock constant in dispatch for Expression.traverseExpTopDown1
52a577ba6dOpenModelica Hudson[Janitor mode] Fix whitespace
f61e67157eNiklas Worschechfix for promote and transpose array in cpp template
1dc9639149Vitalij Rugeadded a warning in dyn. optimization
3fa198cdc9Vitalij Rugefixed 22127
d78dc7d3fcVitalij Ruge- added protype interface for external state estimation data //important for nmpc loops - fixed final constraints
2a078d6a28Lennart Ochel- fix sub-clock partitioning (sub-clock indices were twisted due to a wrong listReverse)
bb60015908Vitalij Rugeimproved derivatives for arctan2 and r^x
39206fcd21OpenModelica Hudson[Janitor mode] Fix whitespace
b34f41cf33Marcus Walther- dump graph to graphml can now be influenced with GraphDumpOptions
2e7834b419Vitalij Ruge- fixed r22109
ff2ea6887fVitalij Ruge- fixed cmake
5d4efc6c66Michael Kloeppelfix msvc build
344af77aa4OpenModelica Hudson[Janitor mode] Fix whitespace
aa0ccf9d34Vitalij 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
59dee8ddfeOpenModelica Hudson[Janitor mode] Fix whitespace
08750ba171Niklas Worschechfix for cat array function in cpp template
df6c408133Bernhard ThieleCleaned up code
3e89aea130Marcus Walther- fixed measure time linker error (GCC)
492f289d27Michael Kloeppelfix build
c4fb485761Michael Kloeppelfix build
c28f099611Michael Kloeppelumfpack related changes to Makefiles and CMake scripts
5867ce35ccMarcus Walther- fixed clang build
d672ec9d9dMarcus Walther- some more clang error fixes
fe5e6c28a6Marcus Walther- fix clang build
bd015150ecOpenModelica Hudson[Janitor mode] Fix whitespace
777ce4c02dMarcus Walther- separated the communication variables of hpcom into int, float and bool
d7025f4d2dOpenModelica Hudson[Janitor mode] Fix whitespace
9218d724b7Ruediger Kampfmann-fixed an error concerning colored Jacobians
970f5538a3OpenModelica Hudson[Janitor mode] Fix whitespace
491439a27bRuediger Kampfmann-fixed an error concerning colored Jacobians
6022db6f9dRuediger Kampfmann-fixed an error concerning colored Jacobians
183696c865Adrian Pop- fix bootstrapping
ec7415ce72Bernhard ThieleImproved the elaboration of state machine operators
0674aabeecOpenModelica Hudson[Janitor mode] Fix whitespace
755749e14fRuediger Kampfmann- colored Jacobians
7de849d2ecPer Östlund- Fixed CodegenCpp (no german characters please).
a8e227df0cOpenModelica Hudson[Janitor mode] Fix whitespace
ed560c86fbRuediger Kampfmann- colored Jacobians
04b92504c6Ruediger Kampfmann- colored Jacobians
ed0d9dbcbcPer ÖstlundFix for #2793: - Hack to handle messed up cref types when checking subscript bounds for connects.
5bb2490c48OpenModelica Hudson[Janitor mode] Fix whitespace
a66c486e7eNiklas Worschechfix for fill_array in cpp template
1c60034dfbOpenModelica Hudson[Janitor mode] Fix whitespace
f4c5d09da8Per ÖstlundFix for #2790: - Implemented type checking of array dimensions for array modifiers. - Fixed Types.getDimensionNth to work for all kinds of dimension configurations.
7b8fcc602cAdrian Pop- fix bootstrapping
812fe69afeOpenModelica Hudson[Janitor mode] Fix whitespace
7a145f4909Vitalij Ruge- rewrite DynamicOptimization parts in BackEnd - create DynamicOptimization.mo - mv some parts inside DynamicOptimization.mo - added annotation marker for DynamicOptimization - update tests for DynamicOptimization
38a8d7f2a1OpenModelica Hudson[Janitor mode] Fix whitespace
142c4e2f35Niklas Worschechchanged A matrix for linear systems to static array in cpp runtime
ad76695223Adrian 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.
23bb4be538Bernhard ThieleAdded state machine operators to front end
71fefdc9c8Marcus Walther- fix for clang
212781eca7OpenModelica Hudson[Janitor mode] Fix whitespace
528a33b185Marcus Walther- separated umfpack-include from cflags
97b3a93ad3Marcus Walther- oeprator() defined for SparseMatrix-type
47ae17a129Niklas Worschechfix for precompiled header msvc build
cbaeb876d6Marcus Walther- excluded precompiled header just for msvc build
a506449764Marcus Walther- deactivated precompiled header temporarily to fix msvc-build
ceb830c9f6Michael Kloeppelcorrected umfpack-clean target in Makefile.common
02d1168eacMichael Kloeppelallows to compile umfpack in 3rdParty and use it in cpp-runtime only the LGPL version in 3rdParty is used
40d25e00c5Marcus Walther- fixed realDiv mistake
cbd0b02fd0OpenModelica Hudson[Janitor mode] Fix whitespace
8a876879deMarcus 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
73856dbefbMartin 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).
fbbbf2ffcdAdeel Asghar- Fix build.
5bdf0da902Adeel Asghar- Merged the debugger branch with the trunk. - Generate the GDB parser make files.
8e92d60a1cOpenModelica Hudson[Janitor mode] Fix whitespace
beaf160571Per ÖstlundFix for #2789: - Restructured modifier handling to provide better error messages.
3cf1f11bddVitalij Ruge-updated and added new tests for the dyn. optimization
6844d5bd66Marcus Walther- fixed Expression.isCrefListWithEqualIdents
4111c31288Niklas Worschechfix for add array function in cpp template
691b01e75eMartin Sjölund#2791 Rewrite multiple iterators to nested reductions
f15686dc21Niklas Worschechadded accidentally removed function in cpp template
2ca1f03e1fRuediger Kampfmann-changed input parameter in division from std::string to const char*
7d063dfaa3Ruediger Kampfmann-changed input parameter in division from std::string to const char*
3838fccf8aOpenModelica Hudson[Janitor mode] Fix whitespace
9170c0fa25Niklas Worschechadded append method to array class in cpp runtime.
7055590f19OpenModelica Hudson[Janitor mode] Fix whitespace
4234f3a958Ruediger Kampfmann-changed passing of structs from call by value to call by reference
14a2065573Per Östlund- Removed duplicated cref<->path functions in Static.
000242bedcOpenModelica Hudson[Janitor mode] Fix whitespace
7b41e89291Per Östlund- Slight optimization of elaboration of EnumToInteger.
b94cd80a96Lennart Ochel- revert r21963 and change the test from #2788
1854729e16Lennart Ochel- partially revert r21426 to fix #2788
c0579fbcbeVitalij Rugeimproved guarding for if-exp
574188afe1Lennart Ochel- hide sub-clock partitioning information by default
864744f3a6OpenModelica Hudson[Janitor mode] Fix whitespace
585c4de317Lennart Ochel- sub-clock partitioning (each equation gets assigned an sub-clock partition index)
15a8310b36Jim NutaroAdded linear system solver to sparse FMI, working on events
e66c1dd3c5Vitalij Rugefixed #2787
23faeaaa25Vitalij Rugefixed pre sim in optimization
7c10ecf09fOpenModelica Hudson[Janitor mode] Fix whitespace
eeb534f07bPer Östlund- Actual commit of stuff that should have been committed in r21937 (accidentally only committed testsuite in that commit).
7e83e3b0baMartin SjölundFix the elaborated result tuples sooner, so moving the last statement works
cca816ac56Martin 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)
63643f304fMartin 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)
8fb864aa56Marcus Walther- changed "#include " to "#include "
518d93a9dbMarcus Walther- changed "#include " to "#include "
49aaadd883Marcus 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
b7085cf8c9OpenModelica Hudson[Janitor mode] Fix whitespace
8c1b40dce4Marcus Walther- isCrefListWithEqualIdents - added to the expression-module, to check if a list of expressions uses the same cref-identifier
c29e1bad53Marcus Walther-rml fix
5795ae2de5Martin SjölundFix configure script
0be828f33eOpenModelica Hudson[Janitor mode] Fix whitespace
95d964bc8cMarcus 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
08f4d8d97eMartin 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)
b6d6d29125Vitalij Rugeadded simplify rule
9fcdb695f3Vitalij Rugeadded simplify rule
8062860d0fOpenModelica Hudson[Janitor mode] Fix whitespace
4d64e3fca9Vitalij Rugeadded solver rule
9ff5f64f5dVitalij Rugeadded some simplify rules
10ac602da2OpenModelica Hudson[Janitor mode] Fix whitespace
ce76a7e788Ruediger Kampfmann-changed declaration of temp strings
cf4120a426Martin SjölundSkip compressing some unnecessary files in the tarball
004e15f89cAdrian Pop- fix omc-bootstrapped target for Windows MinGW (still some issues with un-tarring of sources)
34c844135dMarcus Walther- fixed build of ANALYZATION_MODE
5e06d6bd01Martin SjölundAdded some tail recursion for the connection trie graph (moves some variables around in equations, and some equations too)
f040d6415aNiklas Worschechfix for some function calls in cpp template
59389f97eeMarcus Walther- some changes in the measure_time functionality - fixed stack overflow of MCP-Scheduler
d9e41cc845Vitalij Rugesome fixes from static analysis
2b2468252bMartin SjölundTail-recursive instArray2 for DIM_INTEGER (at the cost of moving some equations around)
c5a0fedca3Martin SjölundTail recursive getMemberOnTrue
4f8d37dff3Martin SjölundFix some tail recursion
2c2f5671c2Martin SjölundImprove the error-messages for domain errors like `log(<0)` (make it part of the messages using the XML output)
c3e9a96627Marcus Walther- fixed i386 compilation of RDTSC
c61fb7afe5Martin SjölundBootstrapping fixes
d2101dee9bNiklas Worschechadded flag for use threads in cpp runtime
1a14a33fb8OpenModelica Hudson[Janitor mode] Fix whitespace
e25466d39cMarcus Walther- added profiling-support to cpp-runtime - fixed deadlock in hpcom-cpp simulation runs
c00fd07414OpenModelica Hudson[Janitor mode] Fix whitespace
d26ed5e439Jim NutaroMore work on the Sparse FMI back-end
e71ac19471Niklas Worschechrevert unfortunately check in cmake file
f69795357aNiklas Worschechfix for function signature with no arguments in cpp template
7f9a891544OpenModelica Hudson[Janitor mode] Fix whitespace
75843b5dc2Niklas Worschechfix for function output type in cpp template.
2fffcd4585OpenModelica Hudson[Janitor mode] Fix whitespace
77960f4090Niklas Worschechchanged datatype in TextFileWriter and MatFileWriter of cpp runtime
431bc16446Ruediger Kampfmann-changed functions from call by value to call by reference
26f9d7d71dOpenModelica Hudson[Janitor mode] Fix whitespace
6b6993dce6Ruediger Kampfmann-exchanged some for loops with std:copy
30b4991213OpenModelica Hudson[Janitor mode] Fix whitespace
9574839fb5Ruediger Kampfmann-changed functions from call by value to call by reference
f77677a0d9Ruediger Kampfmann-removed assign(0.0)
dad8e948d2OpenModelica Hudson[Janitor mode] Fix whitespace
0fbe9568d2Niklas Worschechchanged array type in function arguments to BaseArray in cpp template
e242b04081Marcus Walther- destructors of array-classes are now virtual - hpcom cpp-codegeneration is now generating the new array classes
7a66c38ad2Marcus Walther- fixed state selection bug
d9f1b3513cNiklas Worschechfix in stateselection getAMatrix in cpp template
f736ef7f5dMarcus Walther-fix rml-build
a69ec4c004Marcus Walther- rml-fix
511b2596cdOpenModelica Hudson[Janitor mode] Fix whitespace
40f0496dd0Marcus Walther- fixed hpcom-cpp-runtime integration - removed some spelling mistakes in CPP-Template - some array unrolling improvements for hpcom
d562959fceOpenModelica Hudson[Janitor mode] Fix whitespace
f9d96f635eNiklas Worschechtemporary removed unused array classes
15bae9b306Ruediger Kampfmannsome errors fixed
5595109315OpenModelica Hudson[Janitor mode] Fix whitespace
7a00d6afa6Vitalij Rugefixed jacobian index handling in optimization
cdc1875045OpenModelica Hudson[Janitor mode] Fix whitespace
7704927697Niklas Worschechfix for correct array variable names in simulation results file
6fe245ceccRuediger Kampfmannsome errors fixed
d8af7859ffRuediger Kampfmannsome errors fixed
260c6afc4eNiklas Worschechfix in Array assign in cpp runtime
efa25b005cOpenModelica Hudson[Janitor mode] Fix whitespace
51a5cccce3Niklas Worschechadded assign operator to DynArray class
83a0ffc354OpenModelica Hudson[Janitor mode] Fix whitespace
80fb1b1537Niklas Worschechfix for assign array from function return, adapted state selection for new array class
16787abf9fJim NutaroSparse FMI works for simple systems in state space form
619995e342Niklas Worschechfix in Array.h getDims
624bedde3eMartin SjölundFix cpp tests (unisgned int != size_t)
91e2dd2d62Martin SjölundFix template indentation
397a9c6ae1Martin SjölundFix C++ compilation...
f6cd1884f0Martin SjölundFix bootstrapping
e9b77930e4OpenModelica Hudson[Janitor mode] Fix whitespace
a0a287885cOpenModelica Hudson[Janitor mode] Set auto-props
55155a312bRuediger KampfmannAdded new array class to cpp runtime. Changed arrays in cpp template.
18e2f163b5Martin SjölundFix for compiling modelica3d on OSX (force libstdc++ instead of the default libc++ since OSG is compiled against libstdc++)
f9e20a539eOpenModelica Hudson[Janitor mode] Fix whitespace
790055515cNiklas Worschechseparated initialequations and getReal,setReal method in cpp template
83966e5e3eOpenModelica Hudson[Janitor mode] Fix whitespace
6af96bbf4eJim NutaroMore work on SparseFMI
7387a820c3Martin SjölundMake dimensionsKnownAndEqual not fail if the inputs are DIM_UNKNOWN()
12952dd168Martin SjölundAllow DIM_EXP on both sides of a matrix multiplication
a21efc5955Niklas Worschechfix for typo in SimCodeUtil.mo
f21f70d839Martin SjölundAllow DIM_EXP():=DIM_EXP() (do run-time checks since we cannot do everything at compile-time)
cf88681a69OpenModelica Hudson[Janitor mode] Fix whitespace
2223624fb3Niklas Worschechremoved some result output variables in cpp template
6939e8350cMartin 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)
e11cec6f19Lennart 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
27aed168c2OpenModelica Hudson[Janitor mode] Fix whitespace
e6c884a6d2Patrick Marcel TaeuberModified Tarjan Matching a bit
e940461fadMartin SjölundSome documentation
9862e28815Martin SjölundAdd scripting function stringVariableName Also made it possible to do things like `val(stringVariableName("b"),...)` or `v:=stringVariableName("b");val(v,...);`
557f2cd5f5Lennart Ochel- BackendEquation.mo - remove obsolete code, fix typos and comments, fix bugs (even if they did not appear yet)
c461bf7b9aVitalij Rugefixed some issues with optimization: - jac handling - memory - output
2278f0bba7Lennart Ochel- fix rml compilation
2372f3c196Martin Sjölund#2757 Fix the types set when simplifying reductions
0d8f7259b2Lennart Ochel- review BackendEquation.mo
d88b430bebVolker Waurich- replaced HpcOmTaskGraph.transposeTaskGraph with BackendDAEUtil.transposeMatrix
2f6a8ed2edOpenModelica Hudson[Janitor mode] Fix whitespace
57ef971387Vitalij Rugeadded rule x/(r*y) => (1/r)*x/y
1228cd4ccaMartin Sjölund#2772 Do not exit the master thread when unloading FMU's. Cancel the worker threads in thread objects instead.
76aa90efa3OpenModelica Hudson[Janitor mode] Fix whitespace
2d1f6c3b2bVitalij Rugeadded rules: - a*x*b + c*x = x*(a*b + c) - a*x + b*x*c = x*(a + b*c)
f3b69cc516Vitalij Rugeswapped args in hasOnlyFactors
7d9fa2e8e3OpenModelica Hudson[Janitor mode] Fix whitespace
1ab69827edVitalij Ruge- added rule for a*x*c + d*x*e => x*(a*c + d*e)
aeaea6d24dMarcus Walther- fixed Susan Indent level
ba6522566eOpenModelica Hudson[Janitor mode] Fix whitespace
54311b27dcJim NutaroMore work on the sparse FMI generator
feac7048acLennart Ochel- remove BackendEquation.equationNth0 since it is deprecated (equationNth1 can be used instead)
274adf08e9Martin SjölundFix last commit (ModelicaReference does not need to be loaded)
4db9f7bf87Martin SjölundWhen generating documentation, also add a case-insensitive .zip for Windows systems
30c76ef547Lennart Ochel- fix r21757
2c48a9259fOpenModelica Hudson[Janitor mode] Fix whitespace
f19450e7d1Lennart Ochel- don't use zero-based indexing for (equation) arrays
9c93085023OpenModelica Hudson[Janitor mode] Fix whitespace
0bd0421818Vitalij Ruge fixed r21754
6ccc986764Vitalij Ruge- added some rules in ExpressionSolve
9bc19264b1Vitalij Ruge- improved some rules in ExpressionSolve
81cb9ea63cLennart Ochel- fix initialization of fmi example
58c09c91fdOpenModelica Hudson[Janitor mode] Fix whitespace
f160476841Vitalij Ruge- added rule for simplify if
0a931426f9Lennart Ochel- revise some functions
73d78b46baMartin SjölundFix bootstrapping (broken by r21745)
4754df08caOpenModelica Hudson[Janitor mode] Fix whitespace
d78f5d9392Jim NutaroAdded start of a sparse FMI generator for creating QSS compatible FMIs
01f7157100Martin Sjölund#2768 Instantiate partial functions in the normal way when running checkModel
c5b3732c6cMarcus Walther- update for msvc hpcom code generation
4968dc2404Martin Sjölund#2769 Traverse the function body of used partially evaluated functions when looking for unused functions...
3b9a7c99e0Martin Sjölund#2770 Handle vectorization of function calls with unknown array dimensions better
36a12e6510OpenModelica Hudson[Janitor mode] Fix whitespace
5441ab1530Marcus Walther- hpcom msvc support added - debug output for hpcomMemory included to find array unrolling issues
37959e2292Martin SjölundImprove message for mismatching array dimensions
24d7c69efbOpenModelica Hudson[Janitor mode] Fix whitespace
202151f727Martin Eitelanother buffer optimization in MatfileWriter.h
0ccc50e8ecMartin SjölundTypo
41912ee230Martin SjölundSome refactoring
03a6c8a8d9Marcus Walther- fixed bootstrapper
affaf685bdVitalij Rugeadded some solver rules
07dc105ec0Vitalij Rugeadded solver rule for power
47406332d0Vitalij Ruge- solver rule for power
f8c335f979Lennart Ochel- break redundant calculations
212bc30344Lennart 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
1f74e224c0OpenModelica Hudson[Janitor mode] Fix whitespace
201e144ab7Niklas Worschechdisabled write parameter vars for csv in cpp template
86af412d41Lennart Ochel- avoid unnecessary recursions - avoid array to list conversions and vice versa
3994679339OpenModelica Hudson[Janitor mode] Fix whitespace
21f3aafbccMarcus Walther- fix for hpcom: the hpcomMemory logic is now fully disabled if the hpcomMemoryOpt-Flag is not set - hpcom execstats slightly changed
82730c9021Marcus Walther- fix for NOTFOUND - Bug if boost log is not installed
ac453cff19Vitalij Rugefixed r21710 (atan2)
aeb3692fabOpenModelica Hudson[Janitor mode] Fix whitespace
7a48a1e542Vitalij Ruge- fixes from static analysis - uncomment diff(atan2(y,0)) rule
bd4ed227d2OpenModelica Hudson[Janitor mode] Fix whitespace
66c0c054a2Lennart 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
100c73a214OpenModelica Hudson[Janitor mode] Fix whitespace
76f42ac47aNiklas Worschechremoved unnecessary initialization in cpp template.
7e5a61edb6OpenModelica Hudson[Janitor mode] Fix whitespace
c8d620cf0bVitalij Rugeadded some rules for atan2
c7a4c0dee7Martin SjölundAdd function stringTypeName, the inverse of typeNameString
68b75685fbOpenModelica Hudson[Janitor mode] Fix whitespace
66c25e78c3Volker Waurich- replace crefs in nonlinear systems for tds
35e14af659OpenModelica Hudson[Janitor mode] Fix whitespace
b7b7440a30Marcus Walther- Cpp-Runtime: initializeParameterVars-function is now seperated into blocks of 100 variables - HpcomMemory: some more dump functions added
88badee9f2OpenModelica Hudson[Janitor mode] Fix whitespace
285282dff0Volker Waurich- some fixes for tds
a1a4b77f1cMartin 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)
74ea2b7764OpenModelica Hudson[Janitor mode] Fix whitespace
166ea80c92Volker Waurich. fix tds for systems with discrete equations
bfad62f191Willi Braun - fix differentiation of atan2
4de7557d72OpenModelica Hudson[Janitor mode] Fix whitespace
39f02fcb9fVolker Waurich- reassign all indexes of simEqSystems when duplicating tasks
76475bdb57Adrian Pop- fix bootstrapping (BackendDAE.EQ_ATTR_DEFAULT_INITIAL is a constant, not a record constructor)
457763ab3aAdrian Pop- fix bootstrapping (BackendDAE.EQ_ATTR_DEFAULT_UNKNOWN is a constant, not a record constructor)
641f1ad929OpenModelica Hudson[Janitor mode] Fix whitespace
180519f77cAdrian Popimplement #2760 - allow comments with // only in the override file
445b5291b1OpenModelica Hudson[Janitor mode] Fix whitespace
cbf20223fdMartin Eitelusage of temp buffers in MatlabFileWriter.h optimized
cf3a305e4bWilli Braun - fixed iterator variables for symbolic jacobians
bacb3f99a5OpenModelica Hudson[Janitor mode] Fix whitespace
cb83b441bcLennart Ochel- use predefined default equation attributes
c45cf3fc84Lennart Ochel- use predefined default equation attributes
895e199666Lennart Ochel- rearrange equation attributes - new equation attribute for sub-clock partitioning
ff35d4a203Willi Braun#2762 - removed findSimVar and replaced by findSimVarCompare
dc2841fbdaOpenModelica Hudson[Janitor mode] Fix whitespace
4734579909Volker Waurich- update equations in linear systems when duplicating tasks
e0b690d70bOpenModelica Hudson[Janitor mode] Fix whitespace
bb93cf3df0Martin Eitelreduced the number of allocating and reallocating temp buffers
7b1e4349f5OpenModelica Hudson[Janitor mode] Fix whitespace
013a42bf70OpenModelica Hudson[Janitor mode] Set auto-props
37b566e81bMartin EitelAdded MatFileWriter to cpp runtime. Adapted cpp runtime testsuite for the new MAT file output.
a101ea1eb3Volker Waurich- fix bootstrapper
59b2c4d859Marcus Walther- get condition system partially deactivated because it consumes to much memory - some time points renamed
9915dcc7eaVolker Waurich- get schedulerInfo for levelSchedule
656cb22c19Marcus Walther- excluded boost thread and atomic versions lower than 1.54
c8e0b29d4dOpenModelica Hudson[Janitor mode] Fix whitespace
ffa477f490Volker Waurich- don't calculate level in getCriticalPaths
bc51f02a7fWilli Braun#2752 - fixed mergeZeroCrossings
56ff9ccf82OpenModelica Hudson[Janitor mode] Fix whitespace
b408a20b74Marcus Walther- fixed pThread and mixed code generation of cpp-runtime - updated the hpcom testsuite
b9a7d5454bOpenModelica Hudson[Janitor mode] Fix whitespace
d8d01ca841Volker Waurich- generate complete DAE task-graph including asserts
65d11fa3d7OpenModelica Hudson[Janitor mode] Fix whitespace
c07507f795Marcus 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
ae4957c8c0Vitalij Rugefixed build
d8ac563effVitalij Rugefixed jacobian index in optimization
b7c173b6bdOpenModelica Hudson[Janitor mode] Fix whitespace
6e0795ffa1Willi Braun - fix compilation
621c5caae9Marcus Walther- removed circlar dependency between hpcomsimcode and simcode
03f640ed3aMarcus Walther- removed circular dependency of hpcomSimCodeMain and hpcomScheduler
681a7582bcMarcus 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
a21fd7de0eOpenModelica Hudson[Janitor mode] Fix whitespace
35717019ebLennart Ochel- new output-format "ia", which sends the simulation results to a TCP/IP server
ddb5824e8eRakhi WarriarModified python file for ngspice to Modelica conversion.
6eb6410892OpenModelica Hudson[Janitor mode] Fix whitespace
cfe62e8e5bMahder Alemseged GebremedhinFix #2749. Indexed assignments with integer arrays
cffed7b58fOpenModelica Hudson[Janitor mode] Fix whitespace
48a7df60b5Mahder Alemseged Gebremedhin+ Fix #2688. Removed replacing of loop iterator dependent crefs with ASUB expressions.
0bf696ce5eNiklas Worschechfix for missing timer include in Modelica.h
d96be3cb65Marcus Walther- fix for non terminating stateSelection
52bcf3fcf3Niklas Worschechremoved boost timer include
eabce46919Adeel Asghar- minor formatting and proper comment.
db1c138dd9Niklas Worschechfix for fmu global settings in cpp runtime
ceee2fe9ddOpenModelica Hudson[Janitor mode] Fix whitespace
5e0df259d6OpenModelica Hudson[Janitor mode] Set auto-props
afbe38b4f8Niklas Worschechfix for free system object in cpp runtime
cc973b39dfOpenModelica Hudson[Janitor mode] Set auto-props
e1e8edcadfRakhi WarriarAdded function ngspicetoModelica() to convert ngspice netlists to Modelica code.
5bb97160ccVitalij Rugefixed r21575
13ef4000d2Vitalij Rugefixes from static analysis
ca8d66af76Vitalij Rugefixes from static analysis
ddebf3fd7bVitalij Rugefixes from static analysis
8fb3ad2fb7OpenModelica Hudson[Janitor mode] Fix whitespace
9519658554Vitalij Ruge-fixes from static analysis -added warning if jacobian matrix is singular
2992cc4275Vitalij Rugefixed memory leak
630cb8063eVitalij Rugeadded case for extraPolate
154d6b16adVitalij Rugefixes from static analysis
05474c599eVitalij Ruge- fixes from static analysis
2fb3bdfd64Willi Braun - added improved newton solver with damping strategies - added -newton flag to simulation runtime to select different strategies
94f010849cLennart Ochel- fix expected output
b362d8b039Willi Braun - added TRACE_PUSH and TRACE_POP to all generated equations and functions
0c1f5dc383Marcus Walther- fix for linux_nightly_build
996d143535Lennart Ochel- analyze base-clock partition kind
ba5bcf17b8OpenModelica Hudson[Janitor mode] Fix whitespace
fc0f726463Volker Waurich- added experimental scheduler single block schedule - updated hpcom tests for linear tearing
40385fa7a5OpenModelica Hudson[Janitor mode] Fix whitespace
589e0a4248Willi 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.
c1a9b436c0OpenModelica Hudson[Janitor mode] Fix whitespace
d28d6cb4eaNiklas Worschechfix for set dimZerofuncs in SimManager
a9767e0dccOpenModelica Hudson[Janitor mode] Fix whitespace
faa5f83cfbMarcus Walther- removed the get / setResultOutput-functions from the globalSettings - some more compile time optimisations for the cpp runtime
ecc780a40bVolker Waurich- calculate the max range of addressed indexes in a for-loop if the index is a computable expression
97b0c594faNiklas Worschechfix for boost log lib name
6e2f48272cMartin SjölundFix the templates
669acbc4dfLennart Ochel- fix error message
86bff8bd4aOpenModelica Hudson[Janitor mode] Fix whitespace
da9514b7d9Marcus Walther- fixed missing _function member-variable in c++ - algLoops
f209f27eecOpenModelica Hudson[Janitor mode] Fix whitespace
950f8783b3Bernhard ThieleDeleted flag +synchronousFeatures and replaced it by checking for flag +std=3.3 or greater
12bda04112OpenModelica Hudson[Janitor mode] Fix whitespace
aa4ecad84fNiklas Worschechfix for time in Functions of cpp runtime
4452976be9OpenModelica Hudson[Janitor mode] Fix whitespace
dbe0c230ceMarcus Walther- Update for MSVC-FMU makefile
389ad05bfaOpenModelica Hudson[Janitor mode] Fix whitespace
a4ff4b5a4fMarcus Walther- reduced compile time of cpp-runtime by including the cpp-files directly into a "meta cpp file"
bf22c5b3baOpenModelica Hudson[Janitor mode] Fix whitespace
24208434deMichael Kloeppelexcluded check for umfpack
a147e87e6fMichael Kloeppelfurther bugfixes for umfpack-integration in CPP-runtime
3adc024816Marcus Walther- fix for windows build
aa070cc2d2Per Östlund- Fixed bootstrapping.
13574ec3c2Volker Waurich- fix expandCref for qualified crefs containing arraytypes of complex types
e951b61b5fLennart Ochel- merged r21292-r21522 from branches/SynchronousModelica/
3ab3f3c2f9Marcus Walther- fixed state var reinitialization in CVode
e92fb0b543Martin SjölundAllow passing constant identifiers as inputs to external functions (dgees uses a protected constant array as dummy input to F77)
a4f66cff55Martin SjölundAlso print some nice information about the used packages
2bd7088992Martin SjölundAdding script to read the .uses and .classes files from coverage testing
a4102c3dd2Marcus Walther- find_package(suitesparse) fully disabled to fix OSX build - hpcom condition graph creation disabled to fix hpcom tests
be51e1b6abMartin SjölundIncluded class coverage when running BuildModelRecursive.mos (not part of the reports)
efc9a6be5eMarcus Walther- fix for FMI tests
0e8a14f8feMarcus Walther- umfpack temporary disabled
9c80634496Marcus Walther- rml fix for HpcOmScheduler
8de9a44331Marcus Walther- hpcomTaskGraph fixed (I don't know why it is not producing these errors on my local machine)
4237335554Marcus Walther- hpcomTaskGraph fixed
18f3391c76OpenModelica Hudson[Janitor mode] Fix whitespace
2dbbd849c6Marcus 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
6fbfb4e1dfVolker Waurich- nodes can be blocked for the task rewriting system so that they are not going to be merged
24f0835726Lennart Ochel- enable base-clock partitioning - new dump: +d=dumpSynchronous
74c35c4996Adeel Asghar- DiscreteStates has been removed in RC2. - Generate FMI model structure for all sim vars.
a62d144a31Vitalij Rugefixed pre-sim for optimization
9ca15af52fMartin SjölundAdding API call `getUsedClassNames`, which is a combination of `saveTotalModel` and `getClassNames(recursive=true)`
d2fcd6d9b3Volker Waurich- added dump functions (output string) and print functions for all hpcom task and schedule objects
e804418875OpenModelica Hudson[Janitor mode] Fix whitespace
2dbb2737b9Lennart Ochel- base-clock partitioning (incomplete yet) - propagation of new attribute EQSYSTEM.partitionKind - new incidence matrix type: BASECLOCK
3467c6ddd6OpenModelica Hudson[Janitor mode] Fix whitespace
ba38758bc3Volker Waurich- added some functions to analyse systems of equations
2d41741c9cOpenModelica Hudson[Janitor mode] Fix whitespace
88176d8475Volker Waurich- fixed graphML generation for resolveLoops
5f1c26cd79Volker Waurich- removed unreferenced function call
294fe934f8OpenModelica Hudson[Janitor mode] Fix whitespace
d1301c2d87Volker Waurich- added bipartete and DAG graphML output for systems of equations
3a6590e314Niklas Worschechchange solver lower limit and simmanger end time tolerance of cpp runtime
2f853649a7Vitalij Rugeremove wrong rule
40b8b4abdeAdrian Pop- fix bootstrapping
3a04273da1OpenModelica Hudson[Janitor mode] Fix whitespace
1830f906c7Vitalij Rugeimproved rules for pow in ExpressionSolve.mo
bff32a8f95Volker Waurich- changed getGraphLevel to improve memory requirements
838343169eOpenModelica Hudson[Janitor mode] Fix whitespace
13fd991127Vitalij Rugeimproved guarding rule in ExpressionSolve agianst sign and IFEXP
322f92bb58OpenModelica Hudson[Janitor mode] Fix whitespace
0268b2928cNiklas Worschechfix in kinsol, change stability mode in cvode of cpp runtime
a90c0d19edVitalij Rugefixes from static analysis
873f788c42OpenModelica Hudson[Janitor mode] Fix whitespace
95c3a07260Vitalij Ruge- clean up ExpressionSolve (features from r21400) - guard IFEXP in ExpressionSolve against dependency in condition
bbb37c78d1OpenModelica Hudson[Janitor mode] Fix whitespace
ca0bd020f1Jan SilarFixing c# template -- problem with intial values
6b1b493c42Martin SjölundAdd some documentation for dumpXMLDae
94e9edeaadVolker Waurich- fix bls for branchingDynamicPipes
0ca026b62bVolker Waurich- extend printSchedule for EMPTYSCHEDULE
de7fe43566Volker Waurich- fix bls scheduler for taskgraphs with shorter critical paths than level
6a46745a42Volker Waurich- rewritten SimCodeUtil.getMaxSimEqSystemIndex
756ee90f79Volker Waurich- removed unused functions, added comments for bls functions
398aa7c947Martin SjölundHandle the inverse of log10. Rewrite ExpressionSolve to swap the arguments instead of writing two cases for each expression to solve for...
e1e2be2026Volker Waurich- rewritten bls scheduler
cb80b9a98cMartin SjölundWrite incomplete result-files, so it is possible to see the signals until the error was triggered
83e92ebf1bMichael Kloeppelbugfixes for umfpack-binding
662bb3ad1aOpenModelica Hudson[Janitor mode] Fix whitespace
aae287e9ddMichael Kloeppelfix bug with non-existent umfpack.h
4193688b1aJan SilarC# template fix discrete variables, division
b79bb98254Michael Kloeppelfurther bug fixes for the sparse matrix format in cpp-runtime
a3a6fb47b2Per Östlund- Fix RML compilation.
868301b811OpenModelica Hudson[Janitor mode] Fix whitespace
26bf7aa244Per ÖstlundFix for #2743: - Extended Expression.transposeArray to handle >2 dimensions. - Removed evaluation of transpose from Static and Ceval, let ExpressionSimplify handle it instead.
8f16a5d942Per ÖstlundFix for #2741: - Fix connector size count for subtypes of basic types.
4644d3a954OpenModelica Hudson[Janitor mode] Fix whitespace
6eb0c5790bVitalij Rugeadded rule in ExpressionSolve for sqrt
516d80e8d9Michael Kloeppelfixes bug with sparse_matrix type
406ecfb829Martin SjölundFix the logic of min/max of integer arrays
fc96b9af90Martin Sjölundmin({}) is not 0...
dd1c2953a9Michael Kloeppelallows to use the sparse linear solver umfpack in the cpp-runtime
03b5a946c0OpenModelica Hudson[Janitor mode] Fix whitespace
62fb464eceVitalij Rugefixed #2682
b8c1db77afMartin SjölundOutput annotations on external declarations so total models are complete
8d4ad273b3OpenModelica Hudson[Janitor mode] Fix whitespace
f94e6822ebMartin SjölundFix order of prefixes (`discrete input`, not `input discrete`)
ee3a7f7547Marcus 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)
8b67345edaVitalij Rugefixed r21364
bc13138a02Vitalij Ruge- improved solver rule x = y^n
63931702d2Vitalij Ruge- fixed r21362
feac0c5ae3Vitalij Rugeadded solver rules for g(a)/f(a) = b
6bb67be09dOpenModelica Hudson[Janitor mode] Fix whitespace
9b71838346Vitalij Ruge- improved solver rules - f(a) * b = c => f(a) = c/b - b / f(a) = c => f(a) = b/c solver for a
11ff408f25Vitalij Rugeimproved ExpressionSolve - log(f(a)) = b - exp(f(a)) = b
27511cb01dMartin SjölundRML
9070d0ededMartin 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.
281175ea6fOpenModelica Hudson[Janitor mode] Fix whitespace
e9b0cc46fcVolker Waurich- fix analyseScheduledTaskGraph for serial level calcTasks
329dc66089Marcus Walther- forgot the suiteSparse-Package file
2fbbd22bfeOpenModelica Hudson[Janitor mode] Fix whitespace
7fa0d9934dMartin 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)
6bea751204Volker Waurich- fixed hpcom simEqSys mapping for SINGLECOMPLEXEQUATION components - added test Graetz
09100735eaOpenModelica Hudson[Janitor mode] Set auto-props
7f0b6a33fbMarcus Walther- SparseMatrix-Support added for umfpack-linear solver
10b2b6f0faMartin SjölundAdd more details about the system to the generated mos-files
bd46bfabe1Martin SjölundFix the library last change line
8e7353fc5eVolker Waurich- replace function longestPathMethod with getCriticalPaths - some clean up - predict speedUp for level scheduling
be7e0df819Vitalij Rugeguard atol again nominal <= 0
65e0b71cafMartin SjölundFix the last compliance test for partially evaluated functions
70e7dcf455Martin SjölundHandle PARTEVALFUNCTION that specializes a variable rather than a function
7f0b1fbd4bMartin SjölundAdd missing changes
9056c51d8fMartin SjölundChange the error to a notification since sometimes we need to allow it...
f5cbe3bb8bMartin SjölundImprove Susan error handling
aadb80dbb6Martin SjölundDon't remove functions that are passed through CREF in the backend (partially evaluated functions use it)
216870200fMartin SjölundGenerate correct boxptr code for `String[:]`
919b5577bbOpenModelica Hudson[Janitor mode] Fix whitespace
19bb0032b0Niklas Worschechfix in Kinsol of cpp runtime
b483b84618Martin SjölundFix template
88a4cc25aaOpenModelica Hudson[Janitor mode] Fix whitespace
60b1018234Niklas Worschechfix in cpp template for algoop evaluation changed zero crossing tollernce in cpp template change absolute tollerance in cvode
0d74baddabMartin Sjölund#1949 Changed implementation of DAE.PARTEVALFUNCTION - PartFn.mo was removed - We now create a closure in the code-generation instead
5c8950a83aVolker Waurich- fixed level scheduling
1456d7c110Per Östlund- Fixed bootstrapping.
b2495eb1d2OpenModelica Hudson[Janitor mode] Fix whitespace
1369dcaa0ePer ÖstlundFix for #2738: - Respect fully qualified crefs in Static.elabCrefSubs. - Some random code cleaning in Expression.
98565f6767OpenModelica Hudson[Janitor mode] Fix whitespace
b9c9d00c8aPatrick Marcel Taeuber- fixed some problem with tearingSelect=always
3f7d5949d7Volker Waurich- replace function makeCalcLevelTaskLst
9f87423c77Martin SjölundAdd some source info to the Susan error-message for number of arguments don't match
ca36211782OpenModelica Hudson[Janitor mode] Fix whitespace
7d223b31a3Volker Waurich- fixed level attribute in graphml output for level scheduling - added serial level calc object - added bls scheduler
fedf084d63OpenModelica Hudson[Janitor mode] Fix whitespace
acfdc860b7Niklas Worschechfix for Chuacircuit in Cvode an kinsol
01c76a6d6bPer Östlund- Removed some redundant calls to simplify1 in ExpressionSimplify.simplifyBinaryCoeff. Speeds up instantiation of BatchPlant_StandardWater with 25% (4m45s => 3m30s for me).
a0c13ebdb3Martin SjölundFix the type of a simplified `fill()` expression - Some additional debugging code for the `+t` flag
74ec2d697cOpenModelica Hudson[Janitor mode] Fix whitespace
3396bc6351Niklas Worschechadd missing interface method
2f2c19098fNiklas Worschechadded get nominal state to cpp template, fix for redundant algloop equations
784f8ad3a4Marcus Walther- fix for non terminating EventHandling in Cpp-Runtime
a141edbecaMartin Sjölund#2731 Always append `/` for `classDirectory()` calls
0f68eb18baMarcus Walther- fixed HPCOM build
b3c3891eeePer Ö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.
a98159c70cMartin Sjölund#2731 Append the path delimiter to the string returned by `classDirectory()`
f7982527e7Martin SjölundC fix
69ea80d971Martin Sjölund#2641 Use C++ locale-independent functions when reading csv-files in OMPlot
a3569c4e22OpenModelica Hudson[Janitor mode] Fix whitespace
49ba3084bbVolker Waurich- fix hpcom for algorithm components with multiple outputs - little clean up
0386b3bc01Martin SjölundRemove some more references
b48ffb26c6OpenModelica Hudson[Janitor mode] Fix whitespace
4593c52652Marcus 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
f6c5956ca5Martin 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.
ab3fa9bb40Volker Waurich- use matchcontinue in mergeSingleNodes
bda85c0adaOpenModelica Hudson[Janitor mode] Fix whitespace
a7b82baa12Vitalij Rugeduplicate case from max to min
a475d6aae7Martin SjölundAdd options to CustomCommands.mos to make it possible to generate the directory structure of the MSL regression testing suite
0c605c9d60OpenModelica Hudson[Janitor mode] Fix whitespace
44edc3c517Volker Waurich- fix for distributeToClusters in mergingSingleNodes
1df5178c94OpenModelica Hudson[Janitor mode] Fix whitespace
129cfad5eaVolker Waurich- level schedule rewritten, handles merged tasks - remove some unused stuff
cd397679dfVitalij Ruge- improved optimization order 1
a984893909Vitalij Ruge- improved optimization - sorting
66700f86deMartin Sjölundm:r7723 fixes Fluid.Dissipation issues, so we no longer need to set the debug-flag
aaf147ec14Lennart Ochel- fix some runtime messages
774bc97c89Volker Waurich- fix mergeSingleNodes
fedd2f6c5dOpenModelica Hudson[Janitor mode] Fix whitespace
78969c0a39Lennart 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.
117a1c8bf0Volker Waurich- activate mergeSingleNodes
1b1bac4108Volker Waurich- fix bootstrapper
a0a33c4b7cOpenModelica Hudson[Janitor mode] Fix whitespace
6f1340f205Volker Waurich- added new graph merging rule, mergeSingleNodes, not yet activated
f4c51dbe95Lennart Ochel- remove unused imports
9d71aea439Per Östlund- Fixed RML compilation.
90d2f883caOpenModelica Hudson[Janitor mode] Fix whitespace
8914fdea21Per ÖstlundFix for #2723: - Check for connect in when equations and if equations with non-parameter conditions. - Cleaned up some test cases.
ffd890ff28Lennart Ochel- attempt to fix #2708 (unquote q-idents)
7f9a6aee33OpenModelica Hudson[Janitor mode] Fix whitespace
8aa75448a7Mahder Alemseged Gebremedhin+ unquote more. make sure to unquote each ident and not just the whole cref/path string.
7beba6b9b6Per Östlund- Made SimCodeUtil.setVariableIndexHelper tail recursive to fix some test cases for the bootstrapped compiler.
cd63ceb8a0Martin SjölundBetter coding style fix
4a88d3475bAdrian Pop- fix coding style?
fa824f63ddMartin SjölundFix for xml logFormat where messages contain quotes
9e7a359823Per Östlund- Removed propagation of modifiers when instantiating equations and algorithms, since those can't be modified anyway.
f82d1766d7OpenModelica Hudson[Janitor mode] Fix whitespace
cf469df0b4OpenModelica Hudson[Janitor mode] Set auto-props
f6352ead43Adeel Asghar- Updated to FMI2 RC2 from FMI2 RC1.
94b99d60ffVolker Waurich- limit the number of vars in the resolved equations
a86388de40Vitalij Ruge- imporved rule x/c1 = c2*x
3c1edf04cfOpenModelica Hudson[Janitor mode] Fix whitespace
3a23460fb8Vitalij Ruge- improved optimization - evaluation derivations
120174475fMichael Kloeppelfixed a bug connected with an empty _compiler_FLAGS variable
228d361ce9OpenModelica Hudson[Janitor mode] Fix whitespace
10cd1f8a3eNiklas Worschechfix in Kinsol, catch exception change evaluate call in cvode calcfunction
05cbd148ddOpenModelica Hudson[Janitor mode] Fix whitespace
dffd80f47dPer Ö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.
80df2297d5OpenModelica Hudson[Janitor mode] Fix whitespace
9955077636Marcus Walther- Analyzation Mode fixed
c310fe43e4Marcus Walther- fix for CPP runtime
270650f96cMartin 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.
6f47988639OpenModelica Hudson[Janitor mode] Fix whitespace
c6031169fbNiklas Worschechfix for init aliasvars in cpp template
1e289f80d6Marcus Walther- updated the FMUGlobalSettings to the new IGlobalSettings interface
f4b199ce9dMarcus Walther- updated the FMUGlobalSettings to the new IGlobalSettings interface
818e77e4afMarcus Walther- copy-command for LinSolverOMCFactory added
2c371ba6dfMarcus Walther- copy-command for ILinSolverSettings added
379c97bb25Adeel Asghar- Make OpenModelica 2.0 FMUs work for Dymola.
df2d71f41aVolker Waurich- added function SimCodeUtil.getAssignedSimEqSysIdx
5cde57e5aeOpenModelica Hudson[Janitor mode] Fix whitespace
af4d8bb2c4Marcus Walther- added forgoten file
74025114c3OpenModelica Hudson[Janitor mode] Fix whitespace
1ab50888f9Marcus 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)
681407b939Lennart Ochel- fix over-determined initialization (e.g. ThermoPower.PowerPlants.SteamTurbineGroup.Tests.TestSTG_cc)
0d9dee92e1Adrian Pop- fix bootstrapping
55219bca6eOpenModelica Hudson[Janitor mode] Fix whitespace
23c7673386Adeel Asghar- Write derivatives dependecies.
f0a3a19d97Niklas Worschechfix for subscripts in cpp template
0c26cb2e7fMartin SjölundFix balancing of XML tags with -w and non-linear system errors
2b55d3df94OpenModelica Hudson[Janitor mode] Fix whitespace
cd3a2f9275Marcus Walther- removed some warnings of the gcc build - changed the globalSettings reference to a pointer (just a quickfix to get the ANALYZATION_MODE running)
b2f1e4f94cOpenModelica Hudson[Janitor mode] Fix whitespace
9a58493c0cAdeel Asghar- Generate the outputs & derivatives in the model structure section.
b0efe4ead3Martin SjölundOSX fixes for Modelica3D
5995980b0fMartin SjölundFix debugging line...
a1df5d5d11Martin Sjölund#2654 Use OSX-specific suffixes
2371918d34Adeel Asghar- Use variable_index instead of index to define ordered indexes for simvars.
84c869f1f2Adrian 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
a5051976dcOpenModelica Hudson[Janitor mode] Fix whitespace
713db2b82bAdeel Asghar- Define ordered indexes for simvars. Used in FMI 2.0 model description xml file.
b6f65b9137OpenModelica Hudson[Janitor mode] Fix whitespace
af660efe46Niklas Worschechfix for struct in cpp template
a6b54f3824Willi Braun - added flags maxStepSize and maxIntegrationOrder for dassl.
cd0e9bdf4eOpenModelica Hudson[Janitor mode] Fix whitespace
9a28c82b9bNiklas Worschechfix for record return type in cpp template expected output
fb8e340648Lennart Ochel- fix for complex equations in over-determined systems
c495c2687cNiklas Worschechfix in cpp template for missing evaluate
45b3430a20Niklas Worschechchanged linking order in cpp template
31a18eddeeMartin 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
51fbb1e1edWilli Braun - fix xml variables xml modelinfo
645af85727Martin SjölundLink to the correct OMC versions
d7f6334500Martin SjölundMake the regression testing of library results work again
e56806656fOpenModelica Hudson[Janitor mode] Fix whitespace
9f4703dbd3Marcus Walther- the hpcom module can now create the serial code (designed for testing) - fixed the tbb-codegeneration
326c054cbeAdrian Pop- attempt to fix bootstrapping, more assignments to inputs
16098af936Adrian Pop- attempt to fix bootstrapping, use mOut instead of mIn in: Initialization.manipulatedAdjacencyMatrix2
9929864afeLennart Ochel- improve initialization approach for over-determined systems - add some test cases for over-determined systems
fa647283a0Niklas Worschechdisabled boost log in cmakefile
e15119d69eOpenModelica Hudson[Janitor mode] Fix whitespace
1dd34cffb5Niklas Worschechexpected output updated boost in cpp runtime
8e0b025e89Martin Sjölund#2724 - Reject non-constructor functions returning an external object
21e64e6b83Martin SjölundFree allocated data
2396ae48ffMarcus Walther- fixed segmentation fault
510ae97572Adeel Asghar- Fixed fmiNewDiscreteStates function.
c571ce20beMartin Sjölund#2722 - Generate function definitions in list(OpenModelica...) again - Cache the initial SCode.Program
2782105aceVolker Waurich- append String to last ident instead of joinCrefs when duplicating variables - extended dumpSimCode
2a9f2ec985OpenModelica Hudson[Janitor mode] Fix whitespace
41abe648fbVolker Waurich- use scheduled task graph to get scheduleInfo and CriticalPathInfo
4f5525a49cLennart Ochel- fix propagation of equation kind property
1401f1d882OpenModelica Hudson[Janitor mode] Fix whitespace
70e0221d1cLennart Ochel- propagate equation kind property
15206e3757OpenModelica Hudson[Janitor mode] Fix whitespace
8ccd3386c2Per Östlund- Fixed RML compilation.
439f7667f7Per Östlund- Greatly speed up flattening of large arrays by using simplified lookup when prefixing.
fa611fab5bLennart Ochel- fix some include paths
9960809893Marcus Walther- fixed build
7fafe61642OpenModelica Hudson[Janitor mode] Fix whitespace
76f6256c01Volker Waurich- update modelInfo for tds
d269c49be8OpenModelica Hudson[Janitor mode] Fix whitespace
4547136ab1Christian 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
90ed7d058bOpenModelica Hudson[Janitor mode] Fix whitespace
7ea333a0acMarcus Walther- the hpcomMemory-Module can now handle contracted nodes and state variables - fixed the double description in graphML-files
482fa414e4OpenModelica Hudson[Janitor mode] Fix whitespace
8257764194Niklas Worschechadd variable description and paramter values to writeoutput in cpp template
241155c6b3OpenModelica Hudson[Janitor mode] Fix whitespace
717b0571ebVolker Waurich- insert locks in schedule with duplicated tasks
20917573adVolker Waurich- fix bootstrapper
aee9b982e2OpenModelica Hudson[Janitor mode] Fix whitespace
07cfc7399ePatrick Marcel Taeuber- manual selection of tearing variables now also works for omcTearing (see r20929)
9ee20c1c42Adeel Asghar- Set FMU model states according to FMI specifications.
233e4d9cceAdeel Asghar- Added empty ModelStructure format for modelDescription.xml - Added fmiEventUpdate.
1f8c58b3e6OpenModelica Hudson[Janitor mode] Fix whitespace
161207b34eLennart Ochel- propagate equation kind property
7ec9b651d2Martin SjölundPrint initial equations for the debugger better
0ece1f2addOpenModelica Hudson[Janitor mode] Fix whitespace
a4eb77ff54Volker Waurich- build a new task graph including duplicated tasks
6f06ccdfa5Adeel Asghar- Implemented fmiSetContinuousStates, fmiGetDerivatives, fmiGetEventIndicators, fmiGetContinuousStates & fmiGetNominalsOfContinuousStates functions for FMI 2.0 export.
2b5e60a15bPer ÖstlundFix for #2720: - Call external object constructors in the order as they are defined in.
3632c44a51OpenModelica Hudson[Janitor mode] Fix whitespace
aed9fe0476Lennart 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
945453e5e9Jim NutaroFixed problem with initializing if statements in the adevs backend
b670f88e1cWilli Braun - added a inner ring-buffer for dassl solver to ensure consistent extrapolation data for non-linear loops.
f0e986fcf3Willi Braun - fix bug #2718
53982805d7OpenModelica Hudson[Janitor mode] Fix whitespace
7135e1c01dVolker Waurich- add initial equations for duplicated tasks
368966f4ffNiklas Worschechchanged evaluate call in CVode
9a672be46dOpenModelica Hudson[Janitor mode] Fix whitespace
428164885aNiklas Worschechchanged in Kinsol and CVode some tolerances
1f3b48e4a5Volker Waurich- replace duplicated crefs in non-duplicated tasks
8116dbb7a9Niklas Worschechfix for makefile in cpp template
fa69c63499Niklas Worschechswitched build of cpp runtime to release
c532c4753bMartin SjölundFix the icon generation
4015c5049fMartin 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
63f1650584OpenModelica Hudson[Janitor mode] Fix whitespace
f24e338603Volker Waurich- generate new task graph for duplicated tasks
0563a9754bPer ÖstlundFix for #2709: - Added functionality to propagate final prefixes from modifiers to components. Disabled for now, since it breaks some tests.
c2cf53e2d9OpenModelica Hudson[Janitor mode] Fix whitespace
d29b2bbff4Marcus Walther- hpcom level-scheduling fixed for windows - update for hpcom-tests
342209e10dOpenModelica Hudson[Janitor mode] Fix whitespace
a14096aeabNiklas Worschechforgotten mo files of templates
be821c81a2Niklas Worschechseparated evaluate in cpp template in update for ode- and zero crossing- and all equations
e99cf2fc9fVolker Waurich- update indexes for LS, NLS, Mixed systems when duplicating tasks
e5576175efMartin 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
c8d7058711OpenModelica Hudson[Janitor mode] Fix whitespace
65dea6025aWilli Braun - revised dassl implmentation - added additional rhs evalution to ensure a consistent ringbuffer for extrapolation - removed f2c binding - rename simData to data
83f1cca273OpenModelica Hudson[Janitor mode] Fix whitespace
1c453c1339Mahder 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.
3088027aedAdeel Asghar- Implemented fmiEnterEventMode & fmiCompletedIntegratorStep functions for FMI 2.0 export.
feb9a03cefVolker Waurich- fix for td scheduler
ed7f507ca4OpenModelica Hudson[Janitor mode] Fix whitespace
cdef825a51Martin SjölundSkip linking libgc for qtclients
6db80fa13dVolker Waurich- task duplication scheduler codegen completed
aff0f3daf5Alexander CarlqvistRemoved default values for exportToFigaro.
5208be46b1Adeel Asghar- For *FMUstate functions just log that they are not supported right now and return fmierror.
bbc2a0362cMartin SjölundFix compilation warning
4a864f1896Martin Sjölund#1795 Remove `getExperimentAnnotation()` since `getSimulationOptions()` is better
f796418bbbMartin SjölundReduce the timeout for buildModel since the times for simulating is no longer inclusive
934d6556a7Martin 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.
84f2f217d1OpenModelica Hudson[Janitor mode] Fix whitespace
df4a8e1f16Alexander CarlqvistSignature of exportToFigaro updated.
44296ddb80Adeel Asghar#2509 - Use the omniORB specific parameters. They are different from MICO parameters.
af0a99338eMahder Alemseged Gebremedhin+ Fix #2708
01aeb10859Martin SjölundAdd license information
c525048a2dAdeel Asghar- Implemented fmiReset, fmiGet* & fmiSet* functions for FMI 2.0 export.
4a863821caVolker Waurich-activated case in inlineArrayEquations.mo
d3290658aeVolker Waurich- added case in InlineArrayEquations.mo
ba6b1115a1Lennart Ochel- attempt to fix r20930
c8fc287bf8OpenModelica Hudson[Janitor mode] Fix whitespace
507088397dMartin 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
baeb18dfe2Vitalij Rugepartial support of equal constraints
fc39e62e73Patrick 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)
31afef240aVolker Waurich- choose which entries of the incidenceMatrix you want to get (all,positive,negative) via an additional input in SimCodeUtil.getSimVarsInSimEq and SimCodeUtil.getSimEqsOfSimVar
c6b09d5542Volker Waurich- updated hpcom tests, moved predicted SpeedUp message to hpcomDump
a867dfa3e2Alexander 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.
12b10d696ePer ÖstlundFix for #2707: - Give MUL and DIV the same priority in Dump.priorityBinopRhs.
2603d6836dMartin SjölundRead files >4GB of size on 64-bit platforms
19f4fb15d8Adeel Asghar#2706 - Fixed the FMU memmory allocation & free memory issues.
bcc9fb24b0Adeel Asghar- Implemented fmiSetTime function for FMI 2.0 export.
83a4d607bbNiklas Worschechfix for HPCom cpp makefile expected output
86dc68ae67OpenModelica Hudson[Janitor mode] Fix whitespace
6e0d6731c4Mahder 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.
28f4207a42Lennart Ochel- workaround for builtin functions that are impure, but not marked as impure - expected output (revert some bad changes from r20848)
19c1841709OpenModelica Hudson[Janitor mode] Fix whitespace
11147ac265Niklas Worschechfix for empty discrete vars in cpp template
68d584c53aMarcus Walther-fixed ANALYZATION_MODE of cpp-runtime
2c71800b4aMarcus Walther-fix for hpcom-cpp codegeneration
6afafad6d3Niklas Worschechfix for getStartValue in cpp template
057633b0b2OpenModelica Hudson[Janitor mode] Fix whitespace
cd85a06246Lennart Ochel- workaround: sample-calls are not marked as impure
299a5e64dbLennart Ochel- fix last commit
fd64d5649fLennart Ochel- make +d=iterationVars a bit nicer
3a1f4123e1Adeel Asghar- Implemented fmiSetDebugLogging, fmiTerminate, fmiNewDiscreteStates & fmiEnterContinuousTimeMode functions for FMI 2.0 export. - Fixed fmiFreeInstance.
39c96f9f52OpenModelica Hudson[Janitor mode] Fix whitespace
5082112e64Volker Waurich- push current status for tds
f90dc5b453Adeel Asghar- Implemented fmiGetTypesPlatform, fmiGetVersion, fmiInstantiate, fmiFreeInstance, fmiSetupExperiment, fmiEnterInitializationMode & fmiExitInitializationMode functions for FMI 2.0 export.
8501fa3971Willi 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.
d8686029d3OpenModelica Hudson[Janitor mode] Fix whitespace
f7ed18b9e1Niklas Worschechfix for usub function in cpp template
cb7cfd1504Volker Waurich-reverted 20880 since one model fails, will check this on monday
e815612706Niklas Worschechfix for include in KINSol
802d9187ecVolker Waurich- added case in getScalarArrayEqns1 (improve enhancedAdjacency)
47a7b1bc8cOpenModelica Hudson[Janitor mode] Fix whitespace
d775bd1d1aNiklas Worschechfix for non returning Kinsol in cpp runtime
eb84611ca0Adeel Asghar- Fixed FMU makefile.
3a6328258eAdeel Asghar- Only add the FMU version error if version number is invalid.
19f9947cfcNiklas Worschechfix for typo
d6a16a208fOpenModelica Hudson[Janitor mode] Fix whitespace
6dbc72c542OpenModelica Hudson[Janitor mode] Set auto-props
76a42040f1OpenModelica Hudson[Janitor mode] Fix whitespace
b884ca8bf2Niklas Worschechchanged initialization method for variables in cpp runtime removed unused files in cpp runtime removed some includes
62bedf3563Christian SChubertmake SimulationResultsCmp obey runningTestsuite flag to fix test
24626a5c1aOpenModelica Hudson[Janitor mode] Fix whitespace
05632880b7Per Östlund- Fix RML compilation.
666cd0f0cdPer ÖstlundFix for #2705: - Propagate inline annotations in derived component functions.
350780decfPer ÖstlundFix for #2707: - Consider multiplication to be non-associative when dumping expressions.
b597c8798dChristian 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
3fe28d6c7cAdeel Asghar- Added FMI 2.0 Model Exchange export functions.
c273efbc7fAdeel Asghar- Removed the index attribute.
4b2e78fe86Adeel Asghar- Add empty model structure tag to make the FMI 2.0 xml valid.
2222b7da26Adrian Pop- properly fix alarm stuff (use extern "C" when cpp is defined!)
f037d18683OpenModelica Hudson[Janitor mode] Fix whitespace
e374b55dafLennart Ochel- attempt to improve r20789 (don't handle impure functions as constant)
9f1818aa91Vitalij Ruge- improved numerical hessian
879b880a40Vitalij Ruge- improved numerical hessian
c1af8e1400Vitalij Ruge- fixed r20844
2d3d4cd728Vitalij Ruge- fixed keepHessian
7d241f21c3Adrian Pop- ansi C
768e0be455Adrian Pop- attempt to fix windows build
fc625e46cdPer Östlund- Added output of parentheses for if-expressions on the LHS in dumpers.
6166857edaOpenModelica Hudson[Janitor mode] Fix whitespace
989f5f7d09Martin SjölundProbably fixes r20834
00dcba97f9OpenModelica Hudson[Janitor mode] Fix whitespace
108f43ca69Lennart Ochel- add more TRACE information (to DASSL and event system)
c8b9ce0f6cLennart Ochel- fix missing space
f8032ded5aLennart Ochel- new debug-flag: +d=iterationVars - this flag generates a list with all iteration vars for both simulation system and initialization system
ffd0ca1d5fOpenModelica Hudson[Janitor mode] Fix whitespace
c8e2d2f0b1Per Östlund- Improved DAEDumpTpl and switched to it as default. - Untupled min and max in DAE.VariableAttributes.
76325345dcMartin SjölundGuard against `arrayCreate(-1,...)` Use arrayCreate instead of `listArray(listFill(...))`
19ecbf7460Willi Braun - fix uncertainties test
e12ae55b41OpenModelica Hudson[Janitor mode] Fix whitespace
675c65d694Volker Waurich- deactivate schedule repetition, provide backendDAE and SimCode for schedule method
e0ecf1b495OpenModelica Hudson[Janitor mode] Fix whitespace
0429f2ae81Lennart Ochel- remove cases for impure functions from function traversingTimeVarsFinder - mark delay as impure
7533267564Martin Sjölund- Add -alarm=seconds as option to simulations, and start using alarms in the model testing to prevent spinning in the testsuite
8fcbb5157aMarcus Walther- compareMode-enum to task graph comparator added
d6ff87b9f3Willi Braun - an other attempt to fix IndexReduction
b71eb5174aMartin SjölundplotAll/parametric fixes
5e85f457f2Martin Sjölund#2701 - Fix plot() command not executing - Change vfork to posix_spawn since it is suggested by static analysis
0f22838f5dOpenModelica Hudson[Janitor mode] Fix whitespace
aac910c59fLennart Ochel- fix printAllVarsDebug
adb9c5273aOpenModelica Hudson[Janitor mode] Fix whitespace
299bcf181aNiklas Worschechfix in cpp template for evaluate return value
b3899d5de2Lennart Ochel- expected output
483e4c3f8dVolker Waurich- use the critical criterion to set up initial clusters
f4832947c5Martin SjölundFix r20795 (didn't revert both revisions)
917e7dedd4Martin SjölundReverting r20742,r20792. Willi will provide better fixes for them next week.
f7efea49d8OpenModelica Hudson[Janitor mode] Fix whitespace
1e3c1e6e20Willi Braun - partial fixes for IndexReduction - there are still more issues with array indexing - added also more debug output to bltdumps
203014cb51OpenModelica Hudson[Janitor mode] Fix whitespace
14e5c612ddLennart Ochel- fix #2704 (don't handle impure functions as constant) - add TRACE information to dassl.c::functionODE_residual and solver_main.c::finishSimulation
3d977ef895Volker Waurich- fixed case in createTDSInitialCluster1
df8a9a372bVolker Waurich- tds schedule using cluster compaction
57668fe2edOpenModelica Hudson[Janitor mode] Fix whitespace
80c82850c5Marcus Walther- fix for hpcom-cpp-code generation
835624c840Martin SjölundAlso analyse user-defined reductions
d484592de9Martin SjölundThe tokens should be in reverse order
6c7305938fLennart Ochel- remove unnecessary if(ACTIVE_STREAM(..)) statements
8183b054ccLennart Ochel- fix messageClose
e113af902fMartin SjölundAdd runtime checks for BackendDAEEXT.getAssignment (breaks the testsuite because it should not work at the moment)
5045d06694OpenModelica Hudson[Janitor mode] Fix whitespace
ee94a07a17Mahder 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
838773594dVitalij Ruge- fixed 20771
8c8c74da8dVitalij Ruge- fixed numerical hessian - new flag for keep hessian constant
f5c5366b08Volker Waurich- create initial clusters for the td scheduler
7b886df5ffOpenModelica Hudson[Janitor mode] Fix whitespace
ecd0ae83c9Niklas Worschechchanged saveAll in cpp template and cpp runtime
5ace460823Volker Waurich- some functions to calculate task parameters for td scheduling, rewritten copmuteALAP - added function List.map2rm
fda69b23c3OpenModelica Hudson[Janitor mode] Fix whitespace
65041cbdafLennart Ochel- fix a debug-message - add some additional TRACE information
419d7936f9OpenModelica Hudson[Janitor mode] Fix whitespace
8c8d6c4efaLennart 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
2d42497702OpenModelica Hudson[Janitor mode] Fix whitespace
233bf0b8d5Volker Waurich- started working on task duplication scheduler, computation of est,ect,last,lact,level,fpred
7794f0a057Jim NutaroFixed problem caused by not recalculating parameter equations when calculating all other variables
52852791c3Martin SjölundChange Absyn.REAL to store a String instead of a Real in order to unparse without changes
269695c77bVitalij Rugeadded rule for pow(x/y,-r) => pow(y/x,r)
8a26ac64f1Willi Braun - fixed index reduction (kudos to Jens) - use higher order derivative index instead of just counting up
fac37181cfMartin SjölundWhen traversing if-statements, preserve the reference pointer if nothing changed (bugfix for the else/elseif parts)
3cbe652c9cOpenModelica Hudson[Janitor mode] Fix whitespace
bb4ad8d4c3Martin SjölundAdd flag `+d=printStructuralParameters` to print the names of structural parameters evaluated by the front-end
9afe9f3519Vitalij 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)
e49513a19aMartin SjölundFix compilation
c063e82c04OpenModelica Hudson[Janitor mode] Fix whitespace
6520d2ffccVitalij 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)
8d801b8e89Niklas Worschechfix in cpp template for init alias vars and smaller fixes
15a77d44e7Martin SjölundRename libqwt to libomqwt to avoid conflicts on OSX
13101998d6Martin SjölundHopefully fixes the Linux builds for qwt (shared version) - Also should add OMOptimBasis as a shared library
b1c14f7682Vitalij Ruge revert 20715 there, some issues with clang build
e72e4df223Vitalij Rugeadded rule - e^a / e => e^(a-1)
ed27ece35eMartin SjölundDo Adeel's work for him :)
d9b4bc8dceAdeel Asghar- another try to fix compilation.
b9065ee7e1Adeel Asghar- build Qwt with clients
e6802f6d16Volker 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
084b52d855OpenModelica Hudson[Janitor mode] Fix whitespace
a1e2e81065Niklas Worschechfix for getNominalvars and initVars in cpp template
369cdeec9bVolker Waurich- fix bootstrapper
901ac7c656Volker Waurich- annotations in graphML - use either profiling or parallel simulation
4c68c5b98cVolker Waurich- perform removeSimpleEquations after partial function evaluation only if functions have been evaluated
8f4b10a333Willi Braun - fix issue with r20669 - correct spelling
268432320dOpenModelica Hudson[Janitor mode] Fix whitespace
43d669d17eNiklas Worschechfix for unknown type in cpp template
4f4aa15a46Marcus Walther- includes for ANALYZATION_MODE added, otherwise it's not working
202ff98d79Willi Braun - use negated value while handling alias variables - that makes the EngineV6 model working again
2cc797aed3Volker Waurich- update type of evaluated function outputs
8d54d9306eVolker Waurich- get all entries from the incidence matrix, even the negatives in getSimEqsOfSimVar
e0684f16d1Martin SjölundAvoid simulating chattering models in the library testing - Also some tail recursion fixes
9d76aa64b4Martin SjölundMake filterOnTrue_tail use `match` in case the optimizer fails to convert it
80df71b4afMartin 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.
1172166471Martin SjölundBump MSL version to match GITLIBRARIES=Yes
27d7cb77efWilli Braun - more fixes for differentiation module
5c07e18b52Willi Braun - fixing differentiation errors in annex60 and Buildings
0a03f0748cAdrian Pop- fix bad negation logic
fe1e65d9bcAdrian 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!
9a13618f31OpenModelica Hudson[Janitor mode] Fix whitespace
98dddecd8cNiklas Worschechfix in cpp template for semiLinear call
5f86b0de19Niklas Worschechbetter scaling for kinsol in cpp runtime
665d22270eOpenModelica Hudson[Janitor mode] Fix whitespace
f4c0fece59Willi Braun - fix differentiate STMT_TUPLE_ASSIGN
b9ff83d057Vitalij Ruge- improved optimizer constraints for ode
db88c49192Vitalij Ruge- improved goal function evaluation
a56005df47Vitalij Ruge- improved gradient evaluation
4b7b997826Lennart Ochel- remove unnecessary call of saveZeroCrossings (which calls function_ZeroCrossings)
2d5772cb05Vitalij Ruge- improved numerical hessian
af2c8d751dVitalij Ruge- improved numerical hessian
8b54365dbfVitalij Ruge- fixed some compiler warnings
7948960589Volker Waurich- changed expanding of crefs and expressions of function inputs
b947590ea3Lennart 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
5e5792685bVitalij Ruge- fixed some compiler warnings
e1ea7d6fa0Lennart Ochel- improve last commit
dcc1f1d7b2OpenModelica Hudson[Janitor mode] Fix whitespace
b0c21e09afVolker Waurich- made some fail-messages dependent on +d=evalFuncDump
3530a3fbd1Niklas Worschechremoved some includes in cpp runtime add solve in Kinsol for linear system if linear tearing is active
7810845a1dVolker Waurich- support array vars in getScalarVarSize (fix for Annex model)
e5459122afOpenModelica Hudson[Janitor mode] Fix whitespace
c5895d8afaLennart 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
53c00b59c1Volker Waurich- disable partial function evaluations with +d=evalConstFuncs
e2f4835c52Martin SjölundFix bootstrapping
b4d2fed627Vitalij Ruge- update Makefile for ipopt thanks Willi
e5087c287eVolker Waurich- added annotation attribute to task graph graphML
afa162a805Lennart Ochel- small update to r20622
ca8beb53bcWilli Braun - update message for 0^x to "Model error - 0^x is not defined" - moved also test
79c4c2389bOpenModelica Hudson[Janitor mode] Fix whitespace
276403ac06Willi Braun - improved differentiation of functions - use partial differentiation for jacobians instead of total differentiation
7ddfa55b9dOpenModelica Hudson[Janitor mode] Fix whitespace
83a8aeddb5Alexander 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.
2b4908e98eVolker Waurich- activate partial function evaluation
cf5e16772cOpenModelica Hudson[Janitor mode] Fix whitespace
8849a08368Vitalij Ruge- added rule a - (-b)*c = a + b*c
65da2d6339OpenModelica Hudson[Janitor mode] Fix whitespace
618f2e018cVitalij Ruge- added rule - x*x = x^2
99105fca3bWilli Braun - added an assert to real_int_pow - adjust tests
5043b8c8dfOpenModelica Hudson[Janitor mode] Fix whitespace
cf2a74d2f3Vitalij 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
2a436a68b4Lennart Ochel- update last commit - simplify macros RELATIONHYSTERESIS and RELATION and remove useless cases
7243544ad5Lennart Ochel- simplify macros RELATIONHYSTERESIS and RELATION and remove useless cases
93e56b1eebMartin SjölundHandle transpose for matrices
587c82b597Martin SjölundHandle some additional expressions
f654556708Lennart Ochel- fix handling of relations, which triggered assertions in nonlinear system during initialization - msl32/Modelica.Fluid.Examples.HeatingSystem.mos starts to simulate
a6f348ba90Lennart Ochel- attempt to simplify makro RELATIONHYSTERESIS
69786a450cLennart Ochel- update "warning | While solving non-linear system an assertion failed." message again
34a69e31cfVitalij Rugefixes from static analysis
feee3c0357Martin 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; }}}
6c537e99fbLennart Ochel- minor changes - add time point to "warning | While solving non-linear system an assertion failed." message
09dac6a18fPer Östlund- Fix exponential complexity of Static.createCrefArray.
1933c50826Volker Waurich- do not declare complexEquations of size 1 to single equations(fix for kc_evenGapLaminar)
74f94a219aVolker Waurich- fixed for loop evaluation for ASUBs
c0935681ebMarcus Walther- fixed pthreads_spin code for cpp-hpcom-template
93571f516eVitalij Ruge- fixed some warning from static analysis
8064869527Volker Waurich-reverted default function evaluation
f1b62de14aVolker Waurich- another try to check what breaks when setting partial function evaluation as default (is going to be reverted)
47142e8751Volker Waurich- fix for arrays in getScalarExpSize (partial function evaluation)
b0b56318f7Adrian Pop- small improvements
0f012947aeVitalij Ruge- fixed output - fixed warning for intial guess
c3b6abc9e3Niklas Worschechadapted fmu cpp template
9a87450a22Marcus Walther- fix for wrong profiling results
94047a87d6Vitalij 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
343c89f8bbVolker Waurich- reverted changes in unparseType - added dump function for subscripts
a6c14087a4Niklas Worschechfix for clang build of cpp runtime
b6dc2ed8ceOpenModelica Hudson[Janitor mode] Fix whitespace
18c512e9a6Niklas Worschechadded for msvc build in cpp runtime build type variable
0e21f594e5Per ÖstlundFix for #2690: - Use spliced exp data when vectorizing discrete arrays.
5490060180Volker Waurich- removed debug dumps from inlineArrayEquations stuff
1e7b979793OpenModelica Hudson[Janitor mode] Fix whitespace
732151a895Vitalij Ruge- some fixes from static analysis - improve structure for handling ode order in optimization
c0a60f820aVitalij Ruge- improve hessian approximation
47d09378acMarcus Walther- ModelicaUtilities library added to hpcomAnalyzationMode - fixed hpcom-list-scheduling of cpp-runtime
0912dbf7f2Marcus Walther- added "-fPIC" - Flag to CPP-runtime (g++ build) - modified the includes of the hpcom-cpp-codefile
9daa946c2dOpenModelica Hudson[Janitor mode] Fix whitespace
ef810e810cVitalij Rugeimprove memory handling
d9508f8a37OpenModelica Hudson[Janitor mode] Fix whitespace
073dbcd80bAdrian Pop- test whitespace again
1a6bf90ee2Adeel Asghar- Handle the new plot grid options in plotting APIs & OMNotebook.
fab8c2e414Vitalij Rugeimprove memory handling
9575907b77Adeel Asghar#2679 - OMPlot setup option to set titles. - Added the footer option to plots.
c6750ab40cVolker Waurich- extend inlineArrayEquations for multidimensional arrays
884dd9e88fOpenModelica Hudson[Janitor mode] Fix whitespace
631342f46eMarcus 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
4e413d37dfVolker Waurich- abort evaluation for reinit,terminate,return
33422b46ecLennart Ochel- remove makro ZEROCROSSING
abb1ad9a7cMarcus 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"')
1d68c76869Volker Waurich- do not consider wildcards when calculating equation size in partial function evaluation (fix for kc_evenGapLaminar.mos)
26a28998a3OpenModelica Hudson[Janitor mode] Set auto-props
014309c7c6Martin 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}`
77053a02d1Niklas Worschechadd Modelica.cpp file to cpp runtime
d53075eb85Lennart Ochel- dump relations
c499df07ecVolker Waurich- fixed more models concerning partial function evaluation
e407b90c0cOpenModelica Hudson[Janitor mode] Fix whitespace
23477a03e3Niklas Worschechadded precompiled header for msvc in cpp runtime cmakefile and cpp template
45f69f42c9OpenModelica Hudson[Janitor mode] Fix whitespace
03e89b57d5Willi Braun - added non-linear mixed strategy (use first newton than hybrid) - improved newton solver
3b0c613f8fOpenModelica Hudson[Janitor mode] Fix whitespace
527a784808Volker Waurich- do not remove an evaluated, constant function if there is an assert (fix for AssertTest6)
bcd66eeec0Marcus Walther- some fixes to get the cpp-runtime running on our HPC machines using MKL
25251018deVolker Waurich- fixed more bugs in BackendDAE.Equation declaration for partial function evaluation (ThermoSysPro)
259963ea96Adrian Pop- reverted Static.mo changes from r20486
02316fb917OpenModelica Hudson[Janitor mode] Fix whitespace
f2bced5290Martin SjölundRemove cjson from the rml makefiles
12b7158a49Volker Waurich- flag controlled dumps for partial function evaluation - fixed bug for wrong BackendDAE.Equation declaration (QualifiedCrefArg.mos)
a02065460cMartin SjölundAdd cJSON to SimulationRuntime/c since the bootstrapped compiler and OSX won't fail to build (Hint: cmake never solved anyone's problems)
c7b3954516Adrian Pop- generate correct target platform from CMake
89992fb084Adrian Pop- propagate flags from top level to CMake when building cJSON
f72ca580b9Adrian Pop- add cjson to bootstrap-dependencies
1b4fa441f1Adrian Pop- add -lcJSON to bootstrapped linker flags
234f3f76e9Marcus Walther- another day, another try to add cjson to HpcOmBenchmarkExt.cpp
54312b83b6Volker Waurich- reverted function evaluation, updated testsuite
4761dee793Volker Waurich- give it a try and see what breaks when using partial function evaluation as default (will be reverted after the tests)
5d2f43a37bVitalij RugeCleaned up optimization folder.
f516d9c6e9Volker Waurich- function evaluation of Shared objects like parameters.just some first functions
3dd9ea8420Volker Waurich- fix bootstrapper
6168897098OpenModelica Hudson[Janitor mode] Fix whitespace
1e7543ad27Volker Waurich- try to fix bug at InlineArrayEquations.mo, lets see if it breaks something
de18331da4OpenModelica Hudson[Janitor mode] Fix whitespace
6f0bf6cc05Vitalij Ruge- fixed initial guess in optimization with external input
a4023091fbLennart Ochel- add time point to some log messages
d32dfb6845Martin SjölundDon't inline simplify match-expressions that return tuples
43b666b4e1Martin SjölundSimplify `match () case () then exp; end match` to `exp`
c4178ca178OpenModelica Hudson[Janitor mode] Fix whitespace
2f9ccd9134Willi Braun - fixed debug stream print
437155695eMarcus Walther- revert r20442,20445,20446,20450 and 20451
8f5fe9a2d3Adrian Pop- add cjson to omc-rml deps too
d737ce9621Marcus Walther- another fix
c425306234Martin SjölundForce binary for Windows
bafb80b949Marcus Walther- I still try to fix the cJSON bug...
d101bb489aMarcus Walther- try to fix clang-build
6b739532c1Martin SjölundHandle the case when we do not need to match against any pattern
ff310c7213OpenModelica Hudson[Janitor mode] Fix whitespace
c6d05d8f71Marcus Walther- included cjson into build and HpcOmBenchmarkExt.cpp
d1b2327f31Vitalij Ruge- fixed merge 20440
b94a9ad425Vitalij Ruge- fixed 20413 Thanks Willi!
fc34bd1247Martin SjölundChange Error_rml to do the same thing Error_omc does (it works as long as you call the functions through dynload)
bf16b24850Martin Sjölund#2683 Do not generate self-assignments for tail-recursive calls
b58e19d6f2Niklas Worschechfix in cpp runtime cmake file for clang
fd5c79cb86OpenModelica Hudson[Janitor mode] Fix whitespace
9c7992487bLennart Ochel- fix debug output
9661969399OpenModelica Hudson[Janitor mode] Fix whitespace
04463b5fbdAdrian Pop- add a whitespace to check the SVN post-commit hook behavior
e0ccfbccf3Adrian Pop- add a whitespace to check the SVN post-commit hook behavior
1df29e94e3Per Östlund- Fix RML.
31de92b2e9Per Östlund- Cleaned up some code.
a656c4cc91Vitalij Rugerevert -r 20413-20418
4c4f3c8cecMartin SjölundUse throwStreamPrint instead of assert to try falling back in case a non-linear solver generates asub indexes depending on guesses...
5b2a4141d4Vitalij Ruge- added header
241b839fd6Vitalij Ruge- added header
23b418963bVitalij Ruge- added header
7e1bd00f19OpenModelica Hudson[Janitor mode] Fix whitespace
418f45d648Vitalij Ruge- improve optimization - scaling - cheaper function evalution - improve data structure - preprocessing for derivations - improve evaluation goal function + constraints - mathematical background - improve hessian structure
eb9b6b45d6OpenModelica Hudson[Janitor mode] Fix whitespace
9d1a1fac02Volker Waurich- added function: BackendDAEUtil.replaceKnownVarsInShared - extended Expression.getComplexContents for ASUB and cref defined arrays - extended ExpressionDump.dumpExpStr for ASUB BOX and UNBOX
2568dd346aVolker Waurich- update partial function evaluation to fix CascodeCircuit
2056ca7f87Niklas Worschechadded cflag variable to cpp runtime CMakefile which is used in cpp template
a930ec6af5OpenModelica Hudson[Janitor mode] Fix whitespace
42e7a122f3Volker Waurich- some fixes for partial function evaluation (one dimensional records, tuple including scalar record values)
cdd4f6b025Martin SjölundSilence make clean
407db93febMartin SjölundThe linking to msgpack is not needed
14b3a650ecMartin SjölundUpdate bootstrapping tarball
3856a19518Martin SjölundRemove the modpar library as it has been disabled for a long time
5a7e51c7adOpenModelica Hudson[Janitor mode] Fix whitespace
a006075665Martin SjölundFormatting
1d019a01d5Marcus 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
d9f313cc12OpenModelica Hudson[Janitor mode] Fix whitespace
a4a8708720Marcus Walther- rereverting my previous commit, but this time without the c++ - code
13a2ea5453Martin 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)
0fb421abe2OpenModelica Hudson[Janitor mode] Fix whitespace
5528a3a039Marcus Walther- Cycle based clock is now available for linux systems - HpcOmBenchmark module is now able to read execution costs from xml or json files
6b5f1d7105Lennart Ochel- change LOG_SOLVER dump
d3c6bd8caaPer Östlund- Added check for invalid modifiers on external objects.
4e6148b6d3Per ÖstlundFix for #2681: - Make Expression.dimensionsAdd handle more cases.
fb5fc17b99Martin Sjölundgcc fix
cbfe927049Martin SjölundSilence clang warnings
65a0927eb1Martin SjölundDo not generate unnecessary strlen variables
828ec551fbNiklas Worschechadapted cpp runtime build to use configured installed gcc version
b760d0b93bLennart Ochel- remove obsolete functions
00c6b817cbLennart Ochel- update last commit
fc4e5c28dfLennart Ochel- fix/hack for #2563
fd7a5b9df8Martin SjölundRevert r20341 (breaks systems without g++-4.4 packages)
40c4450223Niklas Worschechchanged g++ version for cpp runtime (workarround)
047d2a990aNiklas Worschechadded debug falgs to cpp template
8ce9539427Niklas Worschechtry to fix fpic error in cpp template
1cc8562cf8Niklas Worschechreverted commit 20323
2e3ae63049Martin Sjölund#2680 - Fix for detecting unix
2f173e7fcbMartin SjölundAdd PREFIX/lib/omc to the OSX rpath
e51f66425fNiklas Worschechchanged build type in cpp runtime make file to release with debug info
cc1d513a51Martin Sjölund#2680 - Fix OSX OMEdit rpath
633502d436OpenModelica Hudson[Janitor mode] Fix whitespace
9728563786Niklas Worschechfix typo in Cmakefile, fix in kinso for NAN in residum
5afa9fb9b8OpenModelica Hudson[Janitor mode] Fix whitespace
e2868d3872Volker Waurich- check initEquations for states when updating varKind
3985a57e33Lennart Ochel- experimental support of overdetermined initialization problems
397663485aOpenModelica Hudson[Janitor mode] Fix whitespace
5172cf2004Volker Waurich- extended partial function evaluation for various statement types - some bugfixes
e4b991a161Niklas Worschechadded cmake function to create precompiled header for cpp runtime for gcc
6b3ea471c5Martin SjölundAdd new API call for OMEdit to query valid config flag options, like `getConfigFlagValidOptions("profiling")`
3949791c01Martin SjölundFix for gcc
8502e45d52Martin 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
67ddee0bb6Marcus Walther- removed scorep-tracing-commands
8af25fc122OpenModelica Hudson[Janitor mode] Fix whitespace
962072d3d6Niklas Worschechfix in cpp template for heatlosses example
1a2c36b428Per Östlund- Got rid of some Clang warnings.
cd7688364fOpenModelica Hudson[Janitor mode] Fix whitespace
39a749e451Niklas Worschechfix in Kinsol of cpp runtime
1c0f99d557Marcus Walther- some scorep-tracing commands added for performance-analyzation
3f070954eeOpenModelica Hudson[Janitor mode] Fix whitespace
9eece3acc9Martin 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
f0a2ed8bacNiklas Worschechfix for some array functions in cpp template and cpp runtime
1524561f0fMarcus Walther- fix hpcom test
df20622184OpenModelica Hudson[Janitor mode] Fix whitespace
75df3a97f9Volker Waurich- fixed bug at partial function evaluation
a9c8b63780Marcus Walther- try to fix bootstrapper
88993e1149OpenModelica Hudson[Janitor mode] Fix whitespace
cbac82356fMarcus Walther- fix for previous commit
f55a25cb90Marcus 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
ee1e767f1fOpenModelica Hudson[Janitor mode] Fix whitespace
9779788986Volker Waurich- rewritten ifStmt - prediction
fd0c1608ddMahder Alemseged Gebremedhin+ Fix bootstrapping.
91f6ff41d6OpenModelica Hudson[Janitor mode] Fix whitespace
090bdf63bfOpenModelica Hudson[Janitor mode] Set auto-props
5c93afc09aMahder Alemseged Gebremedhin+ Added the task graph implementations.
a7a5c11fd3OpenModelica Hudson[Janitor mode] Fix whitespace
de667642edVolker Waurich- rewritten evaluation of if statements - removed some unused stuff in EvaluateFunctions.mo
ff516f6091OpenModelica Hudson[Janitor mode] Fix whitespace
42ce73752aMarcus Walther- added kinsol support to ANALYZATION_MODE - simple scorep-trace macro for cvode-initialization added
1b251bed45Adrian Pop- use normal malloc / free as GC_malloc seems to have issues
deb3809f5eAdrian Pop- crappy MSVC compilers do not know stack array of size given by input argument
1da8afabd5Martin SjölundImprove make clean
8337c897bdMartin SjölundFix the include directory
5145f408b0Martin SjölundSome improvements to make qtclean
b9c8d32df2Martin 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
67b87e28ffOpenModelica Hudson[Janitor mode] Fix whitespace
61dfb88ae0Volker Waurich- update partial function evaluation
e5e79f27e2Adeel Asghar- Added variability, initial & derivative attributes for ScalarVariable tag for fmi 2.0 modelDescription.xml file.
3e723dcbfeMartin SjölundAvoid using the susan_codegen directory since it does not use the configured OMC
b93d35ef49OpenModelica Hudson[Janitor mode] Fix whitespace
f67bc64f49Volker Waurich- added debug dump flag for partial function evaluation - fix for removing replacements in tuple assignments
90ba752ba4OpenModelica Hudson[Janitor mode] Fix whitespace
caa8811cc1Volker Waurich- added function to output the SimCode.SimEqSys for a given var index
b0600d6ed0Niklas Worschechmodified Kinsol for cpp runtime (fix for NaN)
23d2543fc4OpenModelica Hudson[Janitor mode] Fix whitespace
d6e70f57d1Volker Waurich- update varKind after partial function evaluation
5490f3b68cMartin SjölundFixes #2675 (functions returning function pointers)
70820de483OpenModelica Hudson[Janitor mode] Fix whitespace
6324d8f03ePer ÖstlundFix for #2642: - Rewrote handling of builtin attributes to be less repetitive. - Added detection of duplicated modifiers on builtin types.
be7769ae87Martin 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
7aebf91c35OpenModelica Hudson[Janitor mode] Fix whitespace
6ae89c3379Volker Waurich- some fixes for tuple statements in partial function evaluation
e9abc0059cOpenModelica Hudson[Janitor mode] Fix whitespace
09b5ee3fc5Niklas Worschechmodified Kinsol for cpp runtime
decae7ffc1Martin SjölundCannot refactor everything that the compiler gives notifications about
909f51a4ddMartin SjölundFix for libraries that begin with the same prefix
1302eba4e4Martin SjölundFix info.json-file - Generate all equation kinds - Tested by parsing all generated json in the testsuite - Generate function names
dc89026cd0OpenModelica Hudson[Janitor mode] Fix whitespace
f3cfdd2087Per ÖstlundFix for #2644: - Make iterators have precedence when evaluating interactive statements.
263877e19eNiklas Worschechadded array functions for promote,transpose, create_from_shape
227a29bfabVolker Waurich- fixed getSimEqsOfSimVar for state variables
8128b724ceOpenModelica Hudson[Janitor mode] Fix whitespace
f2352478f4Lennart Ochel- add EquationKind to BackendDAE.Equation
deae72268aOpenModelica Hudson[Janitor mode] Fix whitespace
05a47013f2Adeel Asghar- Added ModelVariables tag for fmi 2.0 modelDescription.xml file (not complete yet).
cc344daebfPer Östlund- An empty matrix is always constant.
599f6c777aVolker Waurich- some features for partial function evaluation: cast support, expand tuple equation
b4466e2f80Per Östlund- Fix tests.
abe375db2dPer Östlund- Fix rml compilation.
bfefaaa451Per ÖstlundFix for #2668: - Fixed simplification rule for matrix +/- array so that it doesn't swap lhs and rhs. - Some optimizations for ExpressionSimplify.
7d6b0fb2c1Niklas Worschechfix for Kinsol in cpp runtime, added scaling of variables vector
536a88f9b9Adeel Asghar- Validate the FMU version argument.
0a4d7edfb1OpenModelica Hudson[Janitor mode] Fix whitespace
e72c964b6fNiklas WorschechFixes for KinSol in CPP Runtime (now default)
f7daf5c2baMartin SjölundCXX=$(CXX)
d0ce701221OpenModelica Hudson[Janitor mode] Fix whitespace
3bb32eb967Adrian Pop- replace list with Env.Env - FFrontEnd: * add names for edges * resolve component types after constrainedby and class extends
6bcf8a5c2eOpenModelica Hudson[Janitor mode] Fix whitespace
bdc2615d4fAdrian Pop- some small fixes and changes
5c052ac6aaAdrian Pop- propagate build flags! - add more deps
253787831fAdrian Pop- more dependencies.
f434642820Adrian Pop- more linking
3631fc065aAdrian Pop- bah, of course the freaking bootstrapped stuff needs to be different.
b5e40d0088Adrian Pop- add proper dependencies for GraphStreamExt*.c* - import Util, duh
6542024518Adrian Pop- fix Linux build - call the viewer from share/omc/java, not 3rdParty
237be590a5Adrian Pop- actually build libnetstream.a on Linux.
e8198d33f7Adrian Pop- include unistd.h for sleep
a4e635a53fOpenModelica Hudson[Janitor mode] Fix whitespace
6350211199OpenModelica Hudson[Janitor mode] Set auto-props
4f9d823d70Adrian 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
884cfb4214OpenModelica Hudson[Janitor mode] Fix whitespace
7b72abd2abMichael KloeppelFixes issues with some of the test cases
70778470b9Martin SjölundFix the broken merge of r20192 and r20194
79ac4334b4Martin SjölundRemove unused assignments
804a17570cOpenModelica Hudson[Janitor mode] Fix whitespace
29db969ac3Volker Waurich- next working status for partial function evaluation
670d4afd0dOpenModelica Hudson[Janitor mode] Fix whitespace
9be37e8be0Willi Braun - fixes for fmi-export(#2664) - removed ringbuffer usage - activated logging - fixed InOutTest testcase
405996641eMartin SjölundRemove some more unused bindings
102a3ad7ebAdeel Asghar- Added TypeDefinitions & DefaultExperiment tags for fmi 2.0 modelDescription.xml file.
84d622cd72Adeel Asghar- Added ModelExchange tag for fmi 2.0 modelDescription.xml file.
fd129449a0Adeel Asghar- Added model's description/comment to fmi 1.0 modelDescription file.
60e8e2a2dcAdeel Asghar- Generate the fmiModelDescription tag for fmi 2.0
0cd7e1d124Per Östlund- Type fixes for outerProduct.
07a0428b28OpenModelica Hudson[Janitor mode] Fix whitespace
1a29f88d51Martin SjölundUpdated the script to remove a few more unnecessary bindings
d159d9ffdfVolker Waurich- try to fix bootstrapper
65fb207952OpenModelica Hudson[Janitor mode] Fix whitespace
abee0671bfVolker Waurich- addded functions getSimVarsInSimEq and getSimEqsOfSimVar
4f87cb23afOpenModelica Hudson[Janitor mode] Fix whitespace
1c5fc4c4dfVolker Waurich- extended BackendMapping with matching information and dependency graph - added function getReqSimEqsForSimVar
d4bcfaa9c2Willi Braun - fixed #2667
530fedfefeOpenModelica Hudson[Janitor mode] Fix whitespace
63b588b143Per Östlund- Some cleanup of SCode.
876732ada2Martin SjölundAlso ignore git directories
f30c28d319OpenModelica Hudson[Janitor mode] Fix whitespace
a8d62d9e69Martin 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
7331c110b9Lennart Ochel- move InlineSolver.mo to Compiler/Unused/
b5b94854a7Volker Waurich- added SimCode.BackendMapping to store mapping information between backEnd structure and simCode structure
4a0fb3ffebAdeel Asghar- Generate separate include folders for fmi1 & fmi2. - Create a definition & make file for fmi2.
8f66424d91Adeel 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
454d886b32Martin 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)
c1e3cd2381Martin SjölundStrip out some old copyright notices on donated code
8ace1b5a91Jan KokertCorrecting mail address in readme
72567e0622Martin SjölundSkip assertion
e01dca8b41Martin SjölundFix bad typo
568de058cdMartin SjölundActually pass a struct...
5d4cc5af02Martin SjölundImprove code readability
08493ff8d5Martin SjölundRe-run susan to remove copyright notice...
fa54533744Martin SjölundUpdated copyright notices to 2014 - The script uses regex to update copyright notices since we have different years in there
aad940631eMartin SjölundUpdate license headers
a54fce9f54Martin SjölundDisable SerializeModelInfo until we update the bootstrapping tarball
21476b875eMartin SjölundFix unparsing of newlines in string comments
863ecbb33dMartin SjölundUpdate runtime code to OSMC-PL 1.2 runtime license (BSD 3-clause, GPLv3, or OSMC-PL conditions)
dd13b0aa04Martin SjölundRML fix
c1eae01c53Martin SjölundVarious fixes - Fix bootstrapping - Fix unparsing of string comments - Update OSMC-PL header in Compiler/*/*.mo
62f4a2e3e1Per Östlund- Handle caching of function type instantiation better.
80df834a3dPer ÖstlundFix for #2662: - Remove equations and algorithms from base classes too when instantiating a function type.
c8275d3fecMartin SjölundComment out import like I intended to
1eaa01350fMartin SjölundSwitch the msgpack serialization for JSON using Util/File.mo
5b8623521aJim NutaroUpdates and fixes for the Adevs backend
a42b035a31Leonardo Laguna- Adds List.fold3r function
483c72e2f8Per Östlund- Fix configure.
8410870ec5Willi Braun - fix non c89 comments
b9be1dfcdeWilli Braun - added some white lines to dumpeqninorder to make it more readable
61edba131bWilli Braun - added differention rule for DAE.WILD()
97a7c2a584Michael KloeppelChanged step sizes in numeric evaluation of the Jacobian
3206e8e2fcMartin SjölundAllow external objects to be passed in polymorphic function calls
c15067e493Adeel Asghar#2626 - Support fmiset* and type generations for the co-simulation FMUs.
931b061412Martin SjölundImprove error-message for type mismatch in function calls when there is only one candidate function
823982233eMartin SjölundCheck the path without +d=failtrace
39d0daee6aMartin SjölundOnly run templates if the omc executable exists
fcd664742eMartin SjölundUse the nolink target
5890f748b7Adeel Asghar#2623 - Use the extracted FMU path for resources.
6498a4c965Volker Waurich- do not take all useless statements in the partial function
ac1d0e91aeMartin SjölundOSX fix
0b9695ef3cWilli Braun - added zero cases for differentiation rule of pow
98a0a9ff00Adrian Pop- if -lcdaskr is part of -lSimulationRuntime remove it from config.h Windows linking flags!
a19abcad4aPer Östlund- Functions are also classes.
0da4280546Martin 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
2cbc4481e3Volker Waurich- optimized replacement management in partial function evaluation - changed BackendVarTransform.removeReplacement, it only needs a key and not a replacement
4c4d7061bdMartin 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)
4c5375f2d2Adrian 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.
80dc8da809Adrian Pop- another attempt to fix OSX build
094125f164Adrian Pop- fix CPP runtime compilation on MinGW (static libcminpack.a on MinGW)
5da5b04692Adrian Pop- attempt a OSX build fix
1b661e9bddAdrian Pop- fix Windows MSVC stuff in SimulationRuntime/c/math-support/CMakeLists.txt as some files vanished
f66d1b88a7Adrian Pop- attempt to fix non-Windows builds
afb13111c6Martin SjölundFixed a bug where a polymorphic function input is a function variable returning two values, one of which is of polymorphic tuple type
cb9febeca6Adeel Asghar- Link with static lib of CMinpack for Windows.
5e248e5663Adrian Pop- attempt to fix Windows build (vasprintf)
1f888988ddWilli Braun - switch non-linear solver hybrid from f2c version to cminpack version. - fixed some issues - removed old f2c version from math-support
5f020a04d8Volker Waurich- added function BackendVarTransform.removeReplacement
31e17f0975Volker Waurich- added debugflag implOde to activate implicite codegen
0783070fe1Martin SjölundAdd missing file
9c895fb5abMartin 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()
df5e737199Adeel Asghar- Generate the multiple type definition code only once.
0adf6b6d88Volker Waurich- push next working status of partial function evaluation including: - correct path names for new functions - prediction of if-outputs with not-evaluable cases
a6b57e5a45Martin SjölundDo a real string unescape for the Include annotation
9941187ddfVolker Waurich- preserve the element type in DAEUtil.varCref - added function DAEUtil.getTupleExps
ee92903fa1Adeel Asghar- Use the mapping function to convert integer to enumertation for generated Modelica code from FMU.
8956c5d107Martin SjölundAdding new DAE.Element: INITIAL_NORETCALL (for initial equation sections)
280dea420bLennart Ochel- fix typos - add functions to dump matching information
55169d2052Adrian Pop- rename impure to impure_
8eba766184Martin 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
a56f496d17OpenModelica Hudson[Janitor mode] Fix tabs
acc25bf276Willi Braunadded a damped newton heuristic
629c114ca2Per Östlund- Fix bootstrapping test.
b67654fd8ePer Östlund- Attempt to keep RML happy.
0d2aecdea2Per ÖstlundFix for #2556: - Implemented support for qualified crefs as external function arguments. - Removed Static.isTuple (duplicate of Types.isTuple).
62ae247706Vitalij Ruge- fixed LOG_IPOPT_ERROR
4608a24aaeVitalij Ruge- improve update model data in optimization - improve initial guess for inputs - fixed constant initial guess
1e5cdab035Lennart Ochel- fix typo
1aaf77d607Michael Kloeppel- fixed bugs in algorithm, which prevented the efficient solution of linear systems
4946a97b37Vitalij Ruge- improve update model data in optimization
3b5662aca2Patrick Marcel Taeuber- remove unused inputs
a0e5c7f2ddAdrian 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
9cad2f6be2Adrian 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.
34093c181eVitalij Ruge- improve evaluation of mayer term
d2792b2958Vitalij Ruge- improve evaluation for hessian in optimization - objective function
86525841ffVitalij Ruge- improve evaluation for hessian in optimization
f6a8c9a955Martin SjölundMaybe libgc.so not depend on mkbuilddirs since that makes it perform the copy even if it was not needed
449b40cb2eVitalij Ruge- improve evaluation jacobian,gradient in optimization
20e2c3d8a6Adrian Pop- revert r20005 and r20009 as previous duplicate definitions from daskr are now prefixed since r20024
c6c2b6fdb7Willi Braun - revert r20006
0560a88cb5Willi Braun - updated the daskr package (added a prefix to all functions)
3bcd2165c2Lennart Ochel- keep tolZS > 0
af01810a48Martin SjölundMove the Modelica3D headers into the library instead of directly in the omc includes
bee0999ddeMartin Sjölundextern "C" ifdef to ModelicaUtilities
3f42307dd9Niklas Worschechadded getNominalReal to Algoop interface and hybrj solver in cpp runtime add empty as output format to cpp runtime time and cpp template
483db26f2bLeonardo Laguna- Removing duplicated type declaration (breaks my code analyzer)
00541ba18fVitalij Ruge- restructure data for optimization - fixed indices for nonlinear constraints
b2e8146aefMartin SjölundUpdate to the modelica.org version of ModelicaUtilities.h
1418a0e8f6Volker Waurich- function evaluation of tuple-functions, removeSimpleEquations after function evaluation, fixed bug with missing statement - updated tests - added function Expression.isTuple
84136718ffAdrian Pop- change the order of libraries with duplicate symbols when linking otherwise the solver cycles forever. - use tee in windows testsuite
edc5e21475Martin SjölundRemove dlinpk.c since the nightly builds complain about duplicate symbols
b236ab8679Willi Braun - fix cppruntime
e3cc6738d3Adrian 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
8f75537f71Adrian Pop- remove removed files from CMakeLists.txt
e1bc34a374Martin SjölundUpdate cdaspk with fixes for printing strings that are not NULL-terminated
66da2af5c0Martin SjölundMake sure we use the new dassl by not linking in the old files (removed from svn to make sure)
1f16b0415fMartin SjölundFix static analysis warning
50d55a606bAdrian Pop- last ditch effort on trying to be clever
46dbc85731Adrian Pop- va_list is implemented in so many ways in different compiler, skip initialization as it doesn't work on all platforms.
c59b99dce3Adrian Pop- fix Linux builds ... duh!
a802444d27Adrian Pop- fix Windows build: the order of imports matter somehow.
cd12582fd5Willi Braun - changed order of linking libraries
7e332fbd3aMartin 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
08d64f0b0eLeonardo Laguna - Minor fix to uncertainties code
8dcadeafcbOpenModelica Hudson[Janitor mode] Fix tabs
c5b1d0ff9eWilli Braun - switch to newer dassl version (daskr without f2c) from 3rdParty - rename LOG_DASRT to LOG_DASSL
61ac42694aAdeel Asghar- Handle the enumeration types in the Modelica code generated from FMU.
837128c1cdVitalij Ruge- improve step size for numerical hessian
51904e4086Martin SjölundFix bootstrapping
161dc48955Martin 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)
953b0a5161Adrian PopFix bug: #2650 - proper prefixing of outer when you have same name several times in the prefix. - added testsuite/flattening/modelica/scoping/InnerOuterSamePrefix.mo
27323cf2c3Adrian Pop- re-enable MessagePack.mo and SerializeModelInfo.mo as now they work on Windows. - link with -lmsgpackc
e30ddd06c4Martin SjölundUpdate msgpack-modelica.h for Windows
190f34b814OpenModelica Hudson[Janitor mode] Set auto-props
306e9d3aabAdrian Pop- delete all unused files - add README.txt
efd6fa0d3aAdrian 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
a66c321c7cAdrian Pop- cheat the dependency analysis to get non-separate bootstrapping compilation working. - how did it worked before??!!
873860c94cWilli Braun - belongs to r19965: adjust also numberOfIntervals
f54776b698Adeel Asghar- Some fixes for TypeDefinitions code generation.
60a8ecaa17OpenModelica Hudson[Janitor mode] Fix tabs
510bdf5cd9Adeel Asghar- Support TypeDefinitions when importing the FMU.
726545cd14Martin SjölundHandle NORETCALL for reduction expressions
16192f6df6Adrian Pop- properly include omc_msvc.h on all paths so we have OMC_INLINE defined!
a8438dccdbAdrian Pop- fix Windows build: include omc_msvc.h and use OMC_INLINE instead of inline
54c7e9d985Willi 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
d9e8715831Martin SjölundAdd times for reading init.xml and info.xml to the stats
a5046fd4fbAdeel Asghar- Fix build.
1ce25d1a37OpenModelica Hudson[Janitor mode] Fix tabs
d9b5fe6de1Martin SjölundRefactoring: Remove some unused as-bindings
d3f12f6b93OpenModelica Hudson[Janitor mode] Fix tabs
7550ab732eAdeel Asghar- Generate TypeDefinitions in the FMU modelDescription xml file. - This might break FMI tests.
9c14b99378Patrick Marcel Taeuber- deleted redundant functions in Tearing.mo - renamed Cellier-tearing from "tearingSystem1_1" to "CellierTearing" - set default heuristic for Cellier tearing to MC3
ac9e008aa6Michael KloeppelFixed a typo which prevented the usage of the metis library when ./configure --with-METIS=DIR is used.
b0c8f3e6c1Martin SjölundRemoving dead statements with the script
1a84f6f89aMartin SjölundPrint the number of compared signals for verified results
f2aa445920Martin SjölundSome more inlining for arrays
33c7044f28Adrian Pop- fix coding style
0e76eb587cAdrian Pop- partial commit FFrontEnd, more to come
6295251596Martin SjölundWhy???
86bee880fcMartin SjölundDon't pretend you are in svn, HpcOmSchedulerExt.unix.h.in
2a98995f5bMartin SjölundCleaning up HpcOmSchedulerExt
85b63ea5efMartin SjölundConvert matchcontinue to match
a6c53f6c6aMartin SjölundFix stringUpdateStringChar by writing the 0-char at the end...
5e17f81c54Martin SjölundFix string_array code to match code generation
72388bc6e1Adrian 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
ad5d5dff16Martin 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
31852a8cc4Adrian 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
299f738036Willi 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
b7e5c39da5Willi Braun - fixed output of execstat
812018ad77Martin SjölundRML fixes
053a3631e0Martin SjölundAdd various warnings if you try to compile with non-free packages
ac620a62f2Martin SjölundFix code generation for TSUB(ix=2) and similar
efb0251521Volker Waurich- fixed bug at evalConstFuncs when adding various constant functions
77f8d9ab93OpenModelica Hudson[Janitor mode] Fix tabs
a565e5d6adMichael 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.
72d818bf72Martin Sjölund- Handle boxptr function with NULL arguments - Generate a temporary for tuple pattern-matching to avoid calling a function twice
f326687695Martin 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'''''
87d0fc3435Niklas Worschechupdated cpp runtime tests
83c8ea93b2Volker Waurich- added additional index to the pathname for the new partial function
188af0ad9eLennart Ochel- use named qualifier
2b046f6785OpenModelica Hudson[Janitor mode] Fix tabs
70d62e5891Patrick Marcel Taeuber-added information what tearing is used for to tearingdump (e.g. simulation, initialization,...)
b62f02cf8dPer ÖstlundFix for #2643: - Remove default values on record members if the are given a binding by a modifier.
970ddecc3eVitalij Ruge- improve num hessian
866f0a0d0dAdeel Asghar- Do not insert the ENUM comment in the XML file.
8b6168a7d4Volker Waurich- moved partial function evaluation to EvaluateFunctions.mo
b7260c7f23Volker Waurich- added function Expression.isNotComplex and ComponentReference.crefInLst
3f9172d566Vitalij Rugefixed memory leak in scaling
e2345a558fVitalij Ruge- restructure data for optimization (continuing) - using stored alg vars for initial guess
29ce82eaccOpenModelica Hudson[Janitor mode] Fix tabs
8edde0ca45Niklas Worschech - add cat_array and sum_array to cpp runtime
1fffee0cddVitalij Rugesome fixes from static analysis
39c217e00dVitalij Ruge- some fixes from static analysis
d52ecece23Martin SjölundFix UTF-8
efa43eee17OpenModelica Hudson[Janitor mode] Fix tabs
7810c24803OpenModelica Hudson[Janitor mode] Set auto-props
550af6e1bcAdeel Asghar- Almost empty template for FMI2.0 export.
16e495b22fVitalij Ruge- independent memory for constraints,objective, alg vars in optimization
9c65724594Vitalij Ruge- added helper var - counter for collocation points
45b9a39f35Vitalij Ruge- independent memory for gradient in optimizatio
5b56d62aa1Vitalij Ruge- independent memory for jacobian in optimization
1b0cfe6292Vitalij Ruge- Removed unused variables in optimization - restructure data for optimization (continuing) - diminsion counter for all variables - default value for gradient
2eb4aaf32eVitalij Ruge- improve numeric in hessian
19e43c422bMartin SjölundFix the broken tests by outputting error messages thrown when trying to find zero crossings
2cac3cabbcAdrian Pop- properly fold (don't loose stuff) when traversing SCode.ALG_IF in SCode.traverseStatements2
016bd45120Vitalij RugeRemoved unused variables in optimization
8db0752005Vitalij Ruge- restructure data for optimization (continuing) - derivations - fixed small bug in sparse structure for hessian
7eb7b66dfbVitalij Rugeimprove scaling, thanks Kshitij Kulshreshtha
aa117f8e14Vitalij Ruge- restructure data for optimization (continuing) - scaling - improve scaling - added helper var for interim results
93b83f3ba6Adrian Popvoid function should not return 0!
b9336a5236Vitalij Ruge- Removed unused variables in optimization
9cd5abaa43Martin SjölundFix compiler warning
5154bd76faVitalij Ruge- restructure data for optimization (continuing) - bounds
cfb70f6b5bAdeel Asghar- Renamed the interface file to avoid conflicts.
9795b80fa3Adeel Asghar- Fix fmi path for msvc simulation runtime.
0dcdffc98dAdeel Asghar- Forgot to move files in the last commit.
7e3bb357a2Adeel Asghar- make separate folders for fmi versions.
c6cf635a55Vitalij Ruge- restructure data for optimization (continuing) - helper pointer for collocation
9c0a69e393Volker Waurich- try to fix bootstrapper
a2ba67d2d9Adeel Asghar- Fix Linux build
a6e0d46d01Vitalij Ruge- rm unsused variable in optimization - fixed preSim flag in optimization
d4a4718ac9Vitalij Ruge- restructure data for optimization (continuing) - structure Jac, Hessian
4c7331d33fVolker Waurich- push current status of partial function evaluation
90060e53d0Volker Waurich- added some frontend-functions and some dump functions
6e21dee7dfVolker Waurich- added function List.filter1OnTrueSync which does the same filtering synchronously on a 2nd list
f79e10301cAdeel Asghar- Kill old FMI import.
bcbb3063deVitalij Ruge- restructure data for optimization (continuing) - time vector
5e6b3cdd0bAdeel Asghar- Removed the old FMI import implementation.
eb9728ee82Vitalij Ruge- restructure data for optimization (continuing) - poly coeff
3954a9fe80Vitalij Ruge- restructure data for optimization (continuing) - time grid
fce0e09b24Vitalij Ruge- restructure data for optimization (continuing) - quadrature weight
b8e6fa3e19Martin SjölundSome fixes from static analysis
434954c29dMartin SjölundUse noreturn attribute also for cppruntime
ce8190e8e9Martin SjölundFix for some rpm-based Linux
eacff81a90Martin SjölundFix compilation errors
a424099c63Martin SjölundSome -Werror fixes (including missing headers, making sure noreturn functions never return)
6fba80d30fMartin SjölundFix return type
1142ca2257Per ÖstlundFix for #2366 and #2640: - Implemented evaluation of default arguments in function calls.
3bed792401Marcus Walther- simple changes in the makefiles to activate ANALYZATION_MODE more easily (Part 2)
8d9131fae5Marcus Walther- simple changes in the makefiles to activate ANALYZATION_MODE more easily
75f20f7033Marcus Walther- fix for analyzation_mode on Linux
15287c2f4cNiklas Worschech- fix in cpp template for function calls with state vars
546d17c1d0Marcus Walther- small fix for analyzation mode
8c06cc0302Adrian Pop- attempt to fix OpenModelica_BUILD_AND_TEST_CPP_RUNTIME job
3fa2e4665eAdeel Asghar- Fixed FMI memory leaks and warnings.
b1c5d8efd3Vitalij Ruge- rm num_diff_symColoredObject
ae68302673Martin SjölundFixed some compiler warnings
3ac1b311adVitalij Ruge- restructure data for optimization (continuing)
d27f938e50Martin SjölundUpdate installation instructions
9ebfb741adVitalij Ruge- starting restructure data for optimization
eccb8ebf1cVitalij Rugeimprove code for optimization based on (updated )static analysis, thanks Martin
3af86b8d95Martin Sjölundclang analyzer does not like reasoning about struct pointer member variables, so fix false positive
5268a63400OpenModelica Hudson[Janitor mode] Fix tabs
b5b0cda645Patrick Marcel Taeuber- Added some tests for new Cellier heuristic - deleted interface TearingMethodFunction
0b817b6342Marcus Walther- improvement for level-scheduling added (is not working with mingw at the moment)
326a4347b0Martin SjölundFix petrol test
13f3f2c956Vitalij Ruge- improve solver_main.c code based static analyses, thanks Martin - added missing SOLVER_LOGs for solvers
bc1af67835Martin SjölundAdded targets to handle runtimeCPPinstall dependency on msl-external-libs
e31f3af029Vitalij Ruge- improve solver code based on static analyses
81ab0f3433Vitalij Ruge- improve code for optimization based on static analyse thanks Martin
2b3a32a021Adrian Pop- handle DAE.CAST in SimCodeUtil.createNonlinearResidualEquationsComplex [fixes an issue in a model from Tom Short]
80b91b326fAdrian Pop- fix Windows build, ansi c
c83f3d09b1Adrian Pop- this one was not so useless as dirname can play with the string
0cb84096b4Adrian Pop- kill more GC nightmare code, move from getString() -> clearBuf -> printBuf to saveAndClearBuf -> restoreBuf
cc88faa4fcAdrian Pop- remove more useless GC_strdup
5d071643adMartin SjölundMove stdarg.h include
eb6fe37a42Martin SjölundIt's called modelica_integer_max, not int_max...
5a52d24f7cMartin SjölundAdd required includes
adb1b098a3Martin SjölundRML compilation
8331cb1583Martin SjölundCleaning up compiler warnings, generating code that should generate fewer warnings
f16bc7d306Martin SjölundGuard open_memstream better
471dd615a7Martin SjölundTypo
7207f27d6dMartin SjölundOSX fix
63ed05a883Martin SjölundFix OSX path
53bb71fe74Martin Sjölund- Look for msgpack headers in correct directory - Fix msgpack target dependencies
f8f300a763Martin SjölundAdd missing sources
44225e0b56Martin SjölundFix Patternm.mo ugly RML syntax
b01222b306Martin SjölundAdd non-symlink
716f7bc9d3Martin SjölundAdd a non-symlink of MessagePack.mo
0b2a0bd570Martin SjölundAlso add the missing include
5a7130c3c8Martin 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
3300e29b0cAdrian Pop- remove useless GC_strdup as the buffer will be copied yet again in *mk_scon
284ec25e7eAdrian 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
69437bbea9Adrian 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
11261efee1OpenModelica Hudson[Janitor mode] Fix tabs
acf9488f4eJim NutaroCorrected code for initialization in the adevs backend
96d30c3f7bMartin SjölundFix some warnings
46bb5711a7Martin SjölundAdd runtimeCPP dependency
2e5aa8d768Martin SjölundCompile modelica3d with gcc instead of clang
a5be7e6c54Adrian Pop- kill GC nightmare code
d5d3490f27Martin Sjölundmatch new[] with delete[]
abdc145ae1Martin SjölundBetter fix than r19761
dcb3428969Martin SjölundMake a static variable to avoid returning a pointer into the stack frame
1636ff0823Martin SjölundFix dangerous VLA declaration
272656e4ddAdeel Asghar- MetaModelica array handling support for debugger.
e53b7a0394Martin SjölundAdding attribute noreturn to relevant ModelicaUtilities functions
1cafe93ca3Lennart Ochel- move ResidualCmp.mo to Compiler/Unused/
6aed0d0605Adrian 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)));
d4834ee5e3Niklas Worschechupdated cpp tests
ac2b965e42Adeel Asghar- Remove the unused definitions.
f72a266626Vitalij Ruge- missing rule
198232b404Adrian Pop- another attempt to fix the build.
e73c54bed3Adeel Asghar- Removed the extra implementation of realpath. - Better debugging function. Just use 1 instead of 4.
c98c79fd6fAdrian Pop- fix the emptyHashTable reference from the correct package.
b609b87ad2Adrian Pop- same package, don't use qualified references
98d89b4614Lennart Ochel- move function getArraySubs from SimCodeUtil to ComponentReference - move functions getZeroCrossings and getRelations from SimCodeUtil to FindZeroCrossings - make some functions from package SimCodeUtil protected
3ba34e3f51Martin SjölundFix dylib version
07a7ae95bbAdeel Asghar- Fixed Windows build. Added the required CFLAGS for msgpack.
afd3792079Martin SjölundClean msgpack on make clean
0f58b4f750Martin SjölundAdding makefile target to build libmsgpackc
ca6a66926fOpenModelica Hudson[Janitor mode] Fix tabs
807bc6fdaaMartin SjölundActually add the files the last commit was supposed to add...
72629c018bMartin Sjölund#2641 Added a locale-independent version of strtod (taken from ruby)
c11a138bebVitalij Ruge- guard again c<0 for sqrt(c*e) => c1*sqrt(e)
0b8cea1a8bVitalij Ruge- added rule for sqrt(c*e) => c1*sqrt(e)
77826cf11cAdrian 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!
46bac05f42Adrian 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
7049f60684Adeel Asghar- function to get all the information of the tuple element. Used by debugger.
fbf364c073Vitalij Rugeadded rule for (e * e1) * e => e1*e^2
83dd3edc49Martin SjölundGuard against str+str => 2*str
281b5e694fVitalij Ruge- fixed a + a = 2*a
ed42237c79Martin 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
340afbf03bVitalij Ruge- improve case 0/x for makeProductLst
46a684483cMartin 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)
e024c4f2eaVitalij Rugeadded in makeProductLst two cases for x/0
a1d80593e6Adeel Asghar- function to get all the information of the option element. Used by debugger.
9b6b0f6403Adrian Pop- meta_modelica_real.* are gone.
c9800552ceMartin SjölundTry to fix Windows builds
b135fe8980Vitalij Ruge- simplifyBinaryCoeff -> checking for x/0 - fixed inverseFactors for 0/x (not possible 0/x)
ce485b04ecLeonardo Laguna- Adds wrapper function Dump.unparseElementArgStr needed by MathCore
fb64da956fOpenModelica Hudson[Janitor mode] Fix tabs
8b7ac24cc4Niklas Worschechupdated cpp runtime tests
15c63b4ab6OpenModelica Hudson[Janitor mode] Fix tabs
a03fe4eba0Willi Braun - simulation throw now directly an error if a non-linear system isn't solved proper
73eb44c749Martin 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
c745e93cebLennart Ochel- make function replaceExp protected
06e7b61da0Lennart Ochel- minor code simplifications
7876872daaMartin SjölundFixing boxptr for record constructors
fee49fb219Adrian Pop- more mmc_alloc_words_atomic for #if !defined(RML_STYLE_TAGPTR) - works much better in Windows where omc is a 32 bit process
ffe9a0c8adAdrian 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
909fc761b5Martin SjölundAdd the r19697 changes also for OSX
e4fc276348Martin Sjölund#2635 - Add rpath to qt clients using gc
5ad2878326Martin SjölundMade Graph.allReachableNodes not spin infinity if we try to get the reachable nodes from a non-existing node
c634370014Martin SjölundFix separate code generation for boxing external objects and generating constructor/destructor functions
c05c10421cMartin Sjölund- Avoid some unused expression warnings for failure(_ = fn()) - Fix the variableFilter regex for OSX
fdc58e2a4cOpenModelica Hudson[Janitor mode] Fix tabs
835a635618Niklas 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
711af1cad9Adeel Asghar- convert list item name to string.
b86a356cb0Martin SjölundTry to fix OSX nightly
01bedd56a1Martin SjölundUse $ORIGIN and $ORIGIN/../lib/omc as origins
b0cf76a389Martin SjölundUpdate the bootstrapping build scripts to support packages in packages (so we can create nicer package structures)
7fb3709f9dLennart Ochel- remove unused function differentZeroCrossing
cc7bdf2697Marcus Walther- simCodeEquations are now ordered correctly when using taskdep-scheduling
aa7ab85c78Martin SjölundDump () for empty argument list in external functions
f98bfed0d2Adrian Pop- ansi C.
899e0df1a7Lennart Ochel- remove space characters
d8071647b2Martin SjölundTry to make msvc happy
714685aa1fLennart Ochel- fix #2633
12a4a19e99Marcus Walther- openMP 4.0 task dependency support added for CodegenC
0d881d0c1dMartin Sjölund- Fix scoping issue for MatchDotNotation (wrong component env) - Added the new language extensions to Basic-Exercise-MetaModelica.onb
5dfb5d02e5Marcus Walther- fixed generated code for level scheduling - cpp-codegeneration with enabled hpcom-flag is working again
ee1a077f6aAdrian Pop- ansi C.
1b9cc0ae27Adeel Asghar- Properly get the length of the pointer.
c1d710c3a5Martin Sjölund- Output fewer errors when doing partial function type instantiation
025b74ad4aOpenModelica Hudson[Janitor mode] Fix tabs
f3a991d454Patrick Marcel Taeuberintroduced some modified heuristics to Cellier tearing
01f0579c44Per Östlund- Forgot to commit changes to AbsynDumpTpl.
0cce23791fOpenModelica Hudson[Janitor mode] Fix tabs
12fe7dc9e2Per Östlund- Added back unparseClassStr and unparseClassList in Dump.
3f792b8055Martin 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
03953a917eOpenModelica Hudson[Janitor mode] Fix tabs
870fd2b5ddOpenModelica Hudson[Janitor mode] Set auto-props
9fcf37bf88Marcus 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"
9235b88bfbAdrian PopAttempt to fix: #2627 - disable +a (+keepArrays) when evaluating the graphical API
795c77bbc9Adeel Asghar- function to get all the information of the list item. Used by debugger.
e34d97f48aAdeel Asghar- Do not return the value.
67adbd976aAdrian Pop- ansi C please!
61b63ab42aMartin SjölundDon't use empty dependencies...
4a990f9dbcMartin SjölundTry a different guard so make clean works better
556e11c919Martin SjölundRemove Dependency.mo and AbsynDep.mo as they were unused in OpenModelica and replaced by more robust SCode dependency analysis
f07f98e43bAdeel Asghar- function to get all the information of the record element. Used by debugger.
f97adf5089Martin 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''
ee6618fbbfPer Östlund- Fixed compilation.
4519450b28OpenModelica Hudson[Janitor mode] Fix tabs
7f20c6eb05Marcus 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..."
6037fc2752Martin SjölundRevert r19617 to unbreak unix builds. Windows-specific copying goes into Windows-specific makefiles
4bff18935dAdrian Pop- avoid recursive *public* dependency between AbsynDumpTpl and Dump as MetaModelica/RML will consume all memory.
941c2801fbPer ÖstlundReplaced unparsing parts of Dump with templates.
4b2ca6a480Niklas Worschechmodified make file to copy minpack dll to build/bin folder
cbf706e1faOpenModelica Hudson[Janitor mode] Fix tabs
daad0c5cbcNiklas Worschechadded call to state selection in CVode solver
0976f41217Volker Waurich- push an intermediate status of evalConstFuncs (mostly handling of if/elseif/else) - added function Debug.bcallret2_2
6c46801deeLennart Ochel- move findZeroCrossings to FindZeroCrossings.mo
54716f4924Marcus Walther- changed the boost_thread library to optional
9f0c090887Adrian 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
69ffaa8df3Willi Braun - fix bad calculation of the range in zero-crossings search. (occured in #2621)
976905576aMarcus Walther- support for boost threads added (required for hpcom)
b3a9199713Marcus Walther- revert my previous commit
447c8a97e7Volker Waurich- extended Expression.isConst for records
2bc4975003Marcus Walther- support for boost threads added (required for hpcom)
f5a16f2fd7Marcus Walther- analyzation flag for hpcom added - cpp code generation has now support for hpcom-pThreads
f9cffd583cLennart Ochel- move optimization module 'resolveLoops' to ResolveLoops.mo
1fd72aaae2Martin SjölundAdd missing sources
63c3e4c11cLennart Ochel- fix #2336 - move optimization module 'inlineArrayEqn' to InlineArrayEquations.mo - add description for optimization module 'inlineArrayEqn' - remove unused modules
989344c2aeMartin SjölundCall destructors for external objects created locally in functions
872e61f32dMartin SjölundAdd -lgc also for omplot. Add gc as dependency in the makefiles
0b2449d920Adeel Asghar#2598 - Fixed plotting of CSV result files.
0f3fa9c970Willi Braun - improved fix to #2510 and also the testcase for enumeration, interger and boolean.
9cf3f1ec71Vitalij Ruge- improve stepsize for num hessian
2c4aec27aeVitalij Ruge- fixed LOG_IPOPT_ERROR
64360fd67fVitalij Rugeremove redundant case
7ded586f34Vitalij Ruge- split generation for jacobian structure in the optimization - improve output format for LOG_IPOPT_JAC
a2415e7477Martin SjölundCheck for negative dimensions
fb92e2b510Martin SjölundFixes for ModelicaCompliance.Algorithms.For.BoolRange
ced95190ceWilli Braun - fix for #2510. Substract one to map modelica index(1:n) to c index(0:(n-1))
b0931998dbVitalij Ruge- improve sparsety structure for hessian
87c14b137dOpenModelica Hudson[Janitor mode] Fix tabs
8a0c803418Niklas Worschech- added index parameter to stateset methods, in order to distinguish between different statessets - fix in hybrj for initialization of linear systems
6dc125be46Martin SjölundUse Absyn.pathCompare(...) instead of stringCompare(pathString...)
07bc649e0eMartin SjölundDon't compare strings 3 times
42c9e6de79Vitalij Ruge- improve scaling
76f7f8d2bfAdrian Pop- ANSI C please! - fix Windows builds (VS)
402280febfMartin SjölundAdding function DAEUtil.avlKeyCompare instead of hard-coding this
ae0d26c1f4Lennart Ochel- add error message for #2614
47163a75d1Per ÖstlundFix for #2616: - Handle DAE.DEFINE in InstUtil.moveBindings.
bbc022e647Henrik TidefeltFix/improve error messages for implicit Integer to enumeration conversion
b8df1614e6Willi Braun - remove an accidentally commit change
038198339eWilli Braun - more fixes DEBUG_OUTPUT, added debugStreamPrintWithEquationIndexes
7d7ec63fdfWilli Braun - fixed compiling of DEBUG_OUTPUT further
35720bc171Adrian Pop- attempt to fix the coding style job.
37b1a3d428Willi Braun - fixed DEBUG_OUTPUT compilation
50b0d523b0Henrik TidefeltAllow integer instead of enum constant when compiler is invoked with +intEnumConversion
180e7f58fdLennart Ochel- fix last commit
7f9e35d6d0Lennart Ochel- some code simplifications
58557630b1Niklas Worschechfix in cpp template initialize equations
9ea166d9b8Volker Waurich- commented out 2 cases in Expression.isConst, that hopefully fix the tests
a59b19c6baMartin SjölundRemoved not needed import
dbdc4fa544Niklas Worschechfix in cpp tempalte for initvars
a3cd325412Volker Waurichhandle complex functions in evalConstFuncs
597dca7ccaMartin SjölundDo inlining of arrayGet by default (halves the cost). - OMCC: Use unsafe arrayGet in the parser (eliminates the cost of arrayGet almost completely)
5c77736db7Adrian Pop- switch back to 1.9.1Nightly
c85f59eb8aAdrian Pop- update version to 1.9.1 Beta2
73430dd7d5Martin 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
21d3185b52Vitalij Ruge- improve output format
0d0aa16ebcVitalij Rugefixed pre simulation for optimization
b68af4158aMartin SjölundAdd -fno-stack-protector as a default flag since it messes with some systems
245ad85bc4Vitalij Ruge- fixed warning
13dec42c38Adrian Pop- support multiple indexes for ASUB (subscripting of general expressions like function calls) in XMLDump.mo
b7570b3053Volker Waurich- added a case for record expressions to DAEDump.dumpExpStr
40537d65c9Adrian Pop- fix Windows build include omc_inline.h to make VS happy
2c3d86a1a1Lennart 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)
9be13ce01cPer Östlund- More punctuation.
cc8c7df255Per Östlund- Punctuation.
c84bd029daVolker 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"
374b6bb9f8Martin SjölundUse newly added MetaModelica.Dangerous.listReverseInPlace to save a little more time in the OMCC lexer
31afccab1dMartin Sjölund- Inline some more MetaModelica functions - OMCC: Combine the Absyn.INFO lines/columns into the OMCCTypes.TOKEN directly (1 fewer allocation)
fcd56fed3fOpenModelica Hudson[Janitor mode] Fix tabs
9b9b39b571Niklas Worschechfix in cpp template for changed stateset jacobian names
fd641b4ae3Niklas Worschechfix in cpp template for call of executable in Linux script
1f9d33c122Lennart Ochel- revert r19458, since it breaks working test cases
13f27fb711Willi 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).
3995d2cc94Martin SjölundFix whitespace
737761e27aMartin Sjölund- Add MetaModelica.Dangerous.stringGetNoBoundsChecking - Change LexerCode.action to return a token with index=-1 instead of NONE()
9c23fef5d3OpenModelica Hudson[Janitor mode] Fix tabs
0d172aecb7Niklas Worschechfix for typo in cpp template
4d92d0668aOpenModelica Hudson[Janitor mode] Fix tabs
b8b4f3870fOpenModelica Hudson[Janitor mode] Set auto-props
7f9dae544dMartin 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)
c5a8510890Niklas Worschechfix in cpp template for linux executable name
c2634e2732Niklas 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
7650787f44Martin 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
3c381255cfVitalij Ruge- temporyry fix for optimization with output file
d0660ecc09Willi Braun - fixed initial guess for optimize
937b5ea4c3Adeel Asghar- Removed PySimulator since it is moved to github. - Only creates the OMPython directories when user installs it.
0ee1e91d71Martin SjölundAdding MetaModelica builtin stringGet (returns a byte as Integer)
e782576d57Lennart Ochel- fix initialization by matfile
e90e5dee91Adrian Pop- optimize template unparsing a bit (mostly memory but also speed)
64794761e8Vitalij Ruge- improve output format
ac1dc0db2fVitalij Rugefixed time grid for optimization
0f18ca41b8Vitalij Ruge- fixed ipopt warning
97d2835612Vitalij Ruge- cheking ipopt max iter
edaea71b17Per ÖstlundFix for #2607: - Take associativity into account when printing expressions.
dcedca09f5Martin 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)
9a2cdce8e1OpenModelica Hudson[Janitor mode] Fix tabs
cfcb3b0c8fWilli Braun - moved also calculation of jacobians of dynamic StateSet from SimCodeUtil to Backend module
1b3bdf22d1Willi 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
438dc6e4aaVitalij Ruge- fixed output format
db8c0342b4Vitalij Ruge- fixed output format
95bd57bcfcMartin SjölundAdd mingw Makefile so make clean works
b3272f960dMartin SjölundAdd code to generate a main entry-point easier
b7f69cdc8aOpenModelica Hudson[Janitor mode] Fix tabs
a3e30c7c18Willi 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.
263c98e2bdVolker Waurich- removed some comments, unused code and debug-prints from resolveLoops
ef10d31772Martin Sjölundmake clean bootstrapping
01e48735b0Volker Waurich- resolve a loop when the no.outVars+1 <= no.InVars
ac33c30cd7Vitalij Ruge- changed default linear solver for ipopt
ade3134c8fVolker Waurich- bugfix for sortPathsAsChain1 (resolveLoops)
f4f8e16eb9Per Östlund- Got rid of datarootdir warning in Makefile.in.
95ab577611Martin SjölundShave a few seconds by not re-linking shared objects if nothing changed
adc729e8c2Vitalij Ruge- improve max_iter flag for ipopt
a7a1c4e3b8Vitalij Ruge- improve max_iter flag for ipopt - max_iter=1e6 now support
325a0db283Mahder Alemseged Gebremedhin- Moved to branch.
0dcb9033a4Vitalij Ruge- added LOG_IPOPT_ERROR for following max error in the optimization - added example for LOG_IPOPT_ERROR
549b7c824cVitalij Ruge- added flag: max_iter for ipopt
4b04b28d33Vitalij Ruge- improve external input
85dbfe27caMartin SjölundFix depends on shared library...
a8092ee6d1Martin SjölundCopy the shared library for the shared version, not the static
a6d46c6668Martin SjölundProperly build shared and static versions (were swapped before and the shared ALSO linked all objects)
b03eee1bb9Martin SjölundAllow static linking
161a3192cbMartin SjölundTry to guard against inclusion
3543bb0e3fMartin SjölundUpdate targets for bootstrapping
35a65afb4fMartin SjölundAdded targets to bootstrap with the new build system (Compiler/boot)
1379148ac1Bill JanssenRemoved use of $ in XML element tags
4ab1c8eff9Vitalij Ruge- fixed initial guess and pre simulation for optimization
c97e66afeaVitalij Ruge- fixed intial guess for optimizer - fixed pre simulation in the optimization
06add81284Vitalij Ruge- fixed optimization - writing of results
4804f96c81Martin SjölundSome files to generate sources for bootstrapping
4540fdadf7Adrian Pop- improve a bit the division by zero message
2a5d29a441Lennart Ochel- typo
17c718f2e8Lennart Ochel- recover r19259 and r19260
df9c73bbbbMartin 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
dcfe9f62f7Willi Braun - remove algorithms completely, if all statement are removed.
485654cf25Volker Waurich- detect loops that form loops, updated test
f92973774bOpenModelica Hudson[Janitor mode] Fix tabs
1519d7524eWilli Braun - added config flag for genaration of symbolic jacobian and linearization
b63a956beaWilli Braun - fixed function differentiation for protected variables
88bb1ab074Adrian Pop- fix coding style * UTF8 encoding (mahge930 please set your workspace to UTF8 no BOM in Eclipse).
70cf37ff99OpenModelica Hudson[Janitor mode] Set auto-props
79453cee3dMahder Alemseged Gebremedhin+ Let the scheduler implement it's own executor.
39220e0353Martin 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)
fcb3d1cc9cOpenModelica Hudson[Janitor mode] Fix tabs
a7b6ececbaVolker Waurich- output graphml for every equation system - fixed bug at partitionBipartiteGraph
c0e3abf513Marcus Walther- try to fix hpcom tests
d057cbe525Martin SjölundSend options to SCodeDumpTpl. Replace some old unparsing functions with the template ones.
3e21f104e3Marcus Walther- GraphMLNew.mo removed from trunk
566d767912Marcus Walther- try to fix bootstrapper
09d6ec0dceMartin SjölundIncrease JS memory to 768MB
5f73ebef6cOpenModelica Hudson[Janitor mode] Fix tabs
8123660235Marcus 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
c2b25f4de1OpenModelica Hudson[Janitor mode] Fix tabs
5c6c2c68c6Marcus Walther- changed GraphML-Dump to GraphMLNew-Dump
45f8d31dd0Volker Waurich- some resolveLoops changes (resolveloops_main as matchcontinue, heuristic to priorize the equations that could be replaced)
4a0ef1899eMartin Sjölund#2603 - Handle escaping strings where the string-length does not change
c9f5ab7648Martin Sjölund- Copy expat.h at the correct place
0a61f6b45dMartin 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)
b84a109601OpenModelica Hudson[Janitor mode] Fix tabs
cb0c3634b9Vitalij Ruge- fixed input update - improve interpolation for input - improve initial guess
05b9ab59dcVitalij Ruge- improve initial guess
af9978827cOpenModelica Hudson[Janitor mode] Fix tabs
35279c32e2Vitalij Ruge- dev functionality for ploting structure of jac and hessian matrix
8240524d31Martin SjölundRefactoring
cee4d60caaMartin SjölundRefactor code (remove duplicate sections)
755e452eb7Martin SjölundConvert from int buffer to string; the nodejs function does not accept int buffers
391dc0245cMartin Sjölund- JavaScript target: Use separate xml-files instead of embedding in the JS - Backend: Propagate "protected" boolean to SimCode
0650772bdaMarcus Walther- adapted hpcom code to the cpp - class structure
7248a9d522Marcus Walther- openmp parallel code for all hpcom-scheduler now available
98e964d0a6Martin SjölundAdd a "play" button to run a javascript-based simulation in the browser
15c7772caeOpenModelica Hudson[Janitor mode] Fix tabs
8c08c75782Vitalij Ruge- improve initial guess
6720a2eebdMarcus Walther- try to fix clang test
f7c0516098Volker Waurich- changed handling of loops with variable-crossNodes (resolveLoops)
76e2d02e41Martin Sjölundmake emcc now downloads a minimal set of mdpad files
f420147c9bVitalij Ruge- improve initail guess
1a464fa543Marcus Walther- try to fix bootstrapper (forgot to upload one file)
1547841150Marcus Walther- try to fix bootstrapper
c4d3279745Marcus 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
dc6a8d92ebOpenModelica Hudson[Janitor mode] Fix tabs
7021281426Vitalij Ruge- added pre simulation for optimization - using startTime from Optimica
4b581812e0Martin Sjölundmake emcc in the root directory now installs all the dependencies
c57408b006Martin Sjölund- Partially revert r19289 (broken bootstrapping tarball) - Fix JavaScript target - Fix bootstrapping
d24eea4411Adrian PopFix bug: #2412 - propagate program inside CACHE so we have access to it even if there is not symbol table available.
e445894301Adrian 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.
42a4e11af6Martin SjölundDisable the link-time optimizer. Download the binary files when doing make emcc
a391652ce8Martin SjölundAdd description to FMU
e51ffea03cMartin SjölundAdd description to the _init.xml
ebcf3b970dMartin SjölundMore information in the logs
3e3ef6cc41Martin SjölundUpdate legend
3e11736adfPer Östlund- Fixed character encoding.
1e3665b311Martin SjölundCopy to .so-files as expected
a67ca3a45cMarcus Walther- pthreads_spinlocks are working again in hpcom
9e61d3179aVolker Waurich- fixed small bug at resolveLoops (traverse partitions)
0de3ec08faMartin SjölundCreate the xml-file and then convert it to a C literal since Susan performance suffers if we do it in memory
7aeec11187OpenModelica Hudson[Janitor mode] Fix tabs
363d961cbfOpenModelica Hudson[Janitor mode] Set auto-props
42c645baf9Mahder 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.
fac68fe415Volker Waurich- changed evaluateLoop function for resolveLoops
0ada9915a8Lennart Ochel- revert r19259 and r19260, because it breaks the optimization
7f220c955aAdrian Pop- fix typo
3da7db82c4OpenModelica Hudson[Janitor mode] Fix tabs
d0ea8da4d0Vitalij Ruge- seperate output file for inputs vars
35d80c730cLennart Ochelnew warnings for alias sets with different nominal values - maybe this should be hidden per default and only displayed with some new flag
fe6d1e2eabLennart Ochel- minor simplifications - change "Alias set with several start values" warning
f747deccd1Lennart Ochel- move initSample call
10522ee1eaLennart Ochel- remove obsolete workaround
6ef983831bLennart Ochel- remove obsolete workaround
313fb0335aMartin SjölundAdd target to build libModelicaExternalC and libModelicaTables using the JS implementation
cc97e9cc7cLennart Ochel- fix *_init.xml file generation for variable attributes - fix #2597 - fix #2601
49f46e5ebeLennart Ochel- move some post-initialization procedures - change stream for a assertion notification
b958f611a8Martin SjölundJavaScript performance - less setjmp (limited max number of setjmp allowed in emscripten)
455c8486b8Martin 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
1a8e0b5aa9Vitalij Ruge- improve output - modefiy example final parameter in parameter
f0f56a3c2bLennart Ochel- fix incompatible pointer types
73061b18c8Bernhard BachmannFixed output format
0255d9ef97Vitalij Ruge- changes from Willi for r19242
9f9d3ed9ecVitalij Ruge- changes from Willi for r19242
4d143e116dMartin SjölundUse the chosen stopTime, etc in the javascript .md template
b743411b5aOpenModelica Hudson[Janitor mode] Fix tabs
88767132feVitalij Ruge- improved preliminary functionality for external input file - initial point - added missing .h file to Makefile
1c4f6e60b3Willi Braun - fixed solving tuples for correct variable - that break some avm models, but there for we need to fix ticket(#2599)
0d7e46f5adLennart Ochel- fix nominal values for the *_init.xml file (see #2597)
7339d12e27Martin Sjölund#2555 - Enforce casting of the value of a binding, in addition to the expression
f8de6d6cfeOpenModelica Hudson[Janitor mode] Fix tabs
2dcb155c52Bernhard Bachmann- improved preliminary functionality for external input file
dc33e54aeeVolker Waurichfor resolveLoops: - rewrote sortPathAsChain - bugfix at replacing heuristic
33aeef4888Martin SjölundUse omc_error instead of the simulation streams (since expressions can be called from the function run-time)
9df0539525Martin SjölundDo some run-time array bounds checking
d114913b22Volker Waurich- dump graphML after resolvingLoops - resolve paths which connect 2 simple loops - bugfix for sortPaths
55d0791856OpenModelica Hudson[Janitor mode] Fix tabs
dd30eafe94Vitalij Ruge- added functionality: read external input from csv for dassl and optimization - for cheking input or initial optimization
f851f83c58Adrian 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
2950d45464Willi Braun - revert r19222 for now, since some other issues raised with it
3765d79733OpenModelica Hudson[Janitor mode] Fix tabs
79aa7424adWilli Braun - fixed solving tuples for correct variable - added more cases for solving tuples
612854894aLennart Ochel- prepare time events
e94dab9217Lennart Ochel- Oops! revert r19216 and r19217
599bd32863Lennart Ochel- update templates
0160ccce47Mahder Alemseged Gebremedhin+ Option to dump simulation systems as arrays of functions.
8cb5c9a4e3Lennart 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)
99a54fa19cLennart Ochel- rename attribute initial_ to start
a1cd02e146Vitalij Ruge- improve counter for hessian
39f36491afVolker Waurich- added function List.hasSeveralElements
a0184e0230Volker Waurich- restructure resolveLoops - changed some heuristics to replace equation and to find the loops for resolveLoops
081b34fa12Lennart Ochel- add Modelica-like output for dumpindxdae using +d=dumpTransformedModelica (just a prototype)
47a6843412Martin SjölundFixes for no kinsol
8f3cfe3dbcVitalij Ruge- reduce one add in hessian
7dd064e927OpenModelica Hudson[Janitor mode] Fix tabs
febc91924bVitalij Ruge- improve counter for hessian - small changed in c-code (mv, del)
5be1a1d2bdOpenModelica Hudson[Janitor mode] Fix tabs
bc1bf77d1fVitalij Ruge- reduce hesse elements - fixed output for constraints - fixed matching for constraints - active testcase for alias constraints
2ce1ebc903OpenModelica Hudson[Janitor mode] Fix tabs
747f9c8b94OpenModelica Hudson[Janitor mode] Set auto-props
e24b663035Mahder Alemseged Gebremedhin+ update missed configure script.
2a7e1e29b9Mahder Alemseged Gebremedhin- Rearrange parmodelica includes to the new include structure.
0a0a6bb661OpenModelica Hudson[Janitor mode] Fix tabs
6df0be9dfeNiklas Worschechfix in CVode of cpp runtime, initialization of zeroSign vector was not correct
8dd444b98dOpenModelica Hudson[Janitor mode] Fix tabs
13713d718aVitalij Ruge- print -Inf and +Inf for to big or to small numbers in optimization
3f82dc6983OpenModelica Hudson[Janitor mode] Fix tabs
9ebde03de7Niklas Worschech-separated calculation of Jacobian's of cpp Modelica system in extra class
04b7cf0eb1Willi Braun - don't simplify in differentiationExp it's too slow - fixed differentiation of for loops - fixed differentiation of scalar product
bed94e98d2Martin SjölundFix kinsol stuff...
78e890733aVitalij Ruge- useNominal = true, after update - fixed 19146 for start value - fixed output for optimization
f992efa7eeMartin SjölundHandle Modelica.Utilities.Streams.error in simulations
1ea3bb0557Martin SjölundFix kinsol dummy wrapper
ded5eebbd3Martin SjölundMove ModelicaUtilities.h to the root of the includes, since the specification says it should be included with , not
81b38390b2Martin SjölundFix MSVC crap?
9a0fc13c72Martin SjölundHandle NULL threadData
14e3ebd666Martin Sjölundmake clean now also cleans the bootstrapping directory
6528bd0b04Martin SjölundFix warnings
f33ace6f34Martin SjölundRemove the global jump buffers; do the jumping via threadData instead
0ffd50d45fPer ÖstlundFix for #2587: - Added simplification rules -{e1, e2, ...} => {-e1, -e2, ...} and -[e1, e2, ...] => [-e1, e2, ...]. - Improved Static.elabMatrixCatTwoExp so it handles more cases.
2fb07f443dMartin SjölundRevert r19152 (should be re-done without adding additional argument to all functions; keep ERROR_HANDLE inside threadData_t)
d9537dce06Martin SjölundMove the C includes to build/include/omc/c. Probably fixed bootstrapping
21306871f2OpenModelica Hudson[Janitor mode] Fix tabs
412b2660eaWilli Braun - passing error-handle round all runtime function to remove it from global scope
4ba83026a0Mahder Alemseged Gebremedhin+ Fix bootstrapping. Hunted down the culprit.
e3f3a873b8Adrian Pop- spelling of: backend -> back-end jacobian -> Jacobian
31982035f1Mahder Alemseged Gebremedhin+ Update include paths for FMI/FMU and bootstrapping.
1408d0d0c8Vitalij Ruge- fixed initial guess for optimization
cf37d212b6Vitalij Ruge- fixed setting of bounds for input in optimization
303db6575fPer ÖstlundFix for #2585: - Handle cardinality on arrays properly.
95a5c5b2c4Mahder Alemseged GebremedhinFix includes in Simulation runtime. Keep them relative. Keep simulation runtime header structure in build directory.
b4c99c488aOpenModelica Hudson[Janitor mode] Fix tabs
51ac34f35fVitalij Ruge- join constraints and algebraic vars
dfe54a3fc3Martin SjölundSome more Tpl functions now use match instead of matchcontinue
7784fdcba0Martin SjölundFix MetaModelicaDev tests
774eb59233Per Östlund- Only return the new classes in Main.handleCommand2, not all loaded top-level classes.
80d1ffa09cMartin SjölundFix if-equation translation for omcc
a2baf5cd57Vitalij Ruge- add function for pick up input attributes - missng free
09f61ef1c9Martin SjölundAdded a better error-message for using subscripts in modifiers
f1a8ed13f5Vitalij Ruge- new simplify rule for a + (-b)/x = a - b/x
83335f9d29Willi Braun - removed linear flag for SimCode.createEquation - allow also no-linear for jacobians - fixed function for linearization
413a0d99f5Lennart Ochel- remove unused flag +d=dumpderrepl - auto-enable +d=backenddaeinfo if either +d=stateselection or +d=discreteinfo is used
d19da6de86Vitalij Ruge- fixed r19122
4fc8a16803Lennart Ochel- revert r19122
84ce63388cLennart Ochel- fix r19111 - get ./simulation/libraries/3rdParty/ThermoSysPro/ThermoSysPro.Examples.SimpleExamples.TestJunctions4.mos working again
a862e2f339Vitalij Ruge- restruct constraints (optimization) - new VarKind for constraints - new SimVars for constraints
d55215513cMartin 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)
26d7bf3dbeLennart Ochel- fix #2583
892ff19080Martin Sjölund+d=backenddaeinfo now prints to the Error.mo buffer instead of stdout
e3ce9bd5daMartin 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)
cf70e5e733Martin SjölundDump info regarding linear system density
170cb6ca0dOpenModelica Hudson[Janitor mode] Fix tabs
158b10e3b9Vitalij Ruge- split DAE and ODE in the context of event
33558ce920Vitalij 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
f223a224feLennart Ochel- add "discrete states" to +d=backenddaeinfo - see #2397
4603d975acVitalij Ruge- removed duplicated simplification
436cded664Vitalij Ruge- simplify tsub
2d3b254e99Vitalij Ruge- fixed last commit
a4c0882a96Vitalij Ruge- checking const tsubs for derivations
f4bcb63f5cWilli Braun - work-a-round for index reduction, don't differentiate tuple for now - fixes for avm models
690d22b7ebVitalij Ruge- update initial guess solver
33f62ec43fVitalij Ruge- changed default values for ipopt
706b552ee9Willi 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
4a9f69dd94Lennart Ochel- move warnings for parameters from front end to back end - get rid of false warnings
26cc5078a7OpenModelica Hudson[Janitor mode] Fix tabs
d62d215138Vitalij Ruge- fixed numerical gradient for lagrange term
57424fb07cVitalij Ruge- added numerical gradient for objective function
9e973d7c93Lennart Ochel- add new initialization test case for parameters - minor changes to LOG_INIT and LOG_SOTI
f23ff3bb0cOpenModelica Hudson[Janitor mode] Fix tabs
c84465054bVitalij Ruge- improve last commit
05c9498364Vitalij Ruge- added dense numerical jac
b6f1f207ceOpenModelica Hudson[Janitor mode] Fix tabs
c37f130270Vitalij Ruge- num jac for optimization (num gradient missing) for compare num and sym jac
465ac1b71bLennart Ochel- update initial comment for generated *_08bnd.c files
16b7745039Lennart Ochel- update function name to its new functionality (updateBoundStartValues -> updateBoundVariableAttributes)
9c04f9678cVitalij Ruge- remove unless code - optica flag don't break simulation code
d3308a6008Vitalij Ruge- detailed output
250bc6292fLennart Ochel- second try: fix parameter dependent attributes (nominal, min, max)
c5f4afa632Lennart Ochel- revert r19076 (some cppruntime and hpcom tests seem to became non-deterministic)
ef4bdf6503Lennart Ochel- fix parameter dependent attributes (nominal, min, max)
dfd56c58ecMartin Sjölund- After suggestion by Adrian, order the pattern-matching in a smarter way: do cheap patterns before more complex ones
4011c66889Willi Braun - just function renaming from greate to create
0a7036fa7aVitalij Ruge- added warnings for optimizations flags
17615feea7Vitalij Ruge- remove unused operation
78f21e8553Lennart Ochel- fix duplicate warnings - there are still some duplicate warnings from the front end (Adrian is working on that)
e80d154560OpenModelica Hudson[Janitor mode] Fix tabs
3be0cff1feMarcus 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)
6207706933OpenModelica Hudson[Janitor mode] Fix tabs
a6179aff12Niklas Worschechworkaround fix for discrete relations in cpp tempalte reactivated jacobians in cpp template
16aeaf9eb0OpenModelica Hudson[Janitor mode] Fix tabs
87bb6b3c87Vitalij Ruge-improve r19056
a005f08ea3Martin SjölundThe order of the base classes matters
c5640a57c5Martin SjölundDeterministic identifiers in generated svg
64d687f938Vitalij Ruge- split function
9a9ce0d3d6Vitalij Ruge- add warning for optimization
c81b058bd4Vitalij Ruge- split function
37546f5059OpenModelica Hudson[Janitor mode] Fix tabs
796667a3d9Vitalij Ruge- split function
25b970a30aVitalij Ruge- remove function call
6d7ab38ae5OpenModelica Hudson[Janitor mode] Fix tabs
88105019cdVitalij Ruge- spliting function
e8b562a38cAdrian Pop- small speed improvements in some of the connection handling.
54859fa68eWilli Braun - add functionTree to shared
c8f9e53497Lennart Ochel- improve last commit
f1c2b5522bLennart Ochel- fix #2566
b3c7588026Martin SjölundRevert accidental change in r19041
7676bdad59Martin SjölundBump MSL 3.2.1
7d5805374dVitalij Ruge- fixed constraints (thanks Willi)
f726aa176aMartin 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
b265ebb912Per ÖstlundFix for #2570: - Print parentheses when dumping empty annotation with Dump module.
84fc523362Martin 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)
b0f07aa1c5Willi Braun - fixed #2574
7b818029beWilli Braun - fixed #2575
833fb628a7Adrian 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
ab1137d6c6OpenModelica Hudson[Janitor mode] Fix tabs
2f845d7112Vitalij Ruge- fixed lagrange term - new test for timetable
a1772cc422Adrian PopFix #2566 in the FrontEnd - report parameter T p(start = value, fixed = true) and use the start value.
bca2a7990aAdrian Pop- apply evaluation of rooted and isRoot at the same time to save time.
8c34e0e5daMartin SjölundRevert r19001 (missing CodegenC.tpl changes and changes to the jmpbuf structure)
07a4d1589fMartin Sjölundlis only create x-vector once
1ce72d5ad8OpenModelica Hudson[Janitor mode] Fix tabs
bdb0d222aePer Ö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.
7098ffa81fMartin Sjölund#2571 - Return valid values for getSimulationOptions
182184fbe6Willi Braun - try to handel simple division by zero errors
43d9787041Martin SjölundRemove the third argument of the DIVISION macro, passing equation index instead (for debugging)
391cfbad01Per Östlund- Changed DAEDump to always print out modifications after the variable name instead of after the type name.
681db07ba3Martin SjölundFix some variables and comments for the documentation generation
ad9b86ae73Niklas Worschech fix for array state variable assignment in cpp tempalte activated sorting of simvars in SimCodeUtil for cpp runtime
4ed11eecf1Per ÖstlundFix for #2062: - Better handling of cardinality.
01548be823Lennart Ochel- fix warning
3359575af3Lennart Ochel- fix #2566
15e7f395a9Martin SjölundUncomment icons creation
ea04354746Niklas Worschechremoved no longer used functions from SimCode to calculate state variable index which were used in cpp template
3b2f89a90cOpenModelica Hudson[Janitor mode] Fix tabs
6094262445OpenModelica Hudson[Janitor mode] Set auto-props
9b5c701b5eNiklas Worschech-separated writing of simulation results of cpp Modelica system in extra class
62aca377ccLennart Ochel- fix #2561
0a3ae7e035Martin Sjölund#2554 make distclean instead of make clean
75feaf4bf9Lennart Ochel- fix #2504
6c9a31c2f0Martin SjölundFix library testing script spinning
5a6fb36420Adrian Pop- implement alarm in Windows (using thread/sleep/kill process)
59ae476692Martin SjölundAdded new API alarm(seconds) - a timeout before omc is killed. alarm(0) unsets the alarm
8804e1eb85Martin SjölundRML compilation
7babbaf9eeMartin SjölundAvoid matchcontinue
5190e5e4aeMartin SjölundRenamed crefEqualStringCompare to crefEqualVerySlowStringCompareDoNotUse - crefEqual now uses crefEqualNoStringCompare - only cppruntime uses crefEqualVerySlowStringCompareDoNotUse
6b9437c43dMartin SjölundTruncate before making the string valid xml
640c5c0376Adrian Pop- switch back to 1.9.1+dev
29db005214Adrian Pop- redo 1.9.1 Beta1 (request by Adeel as he fixed some stuff in OMEdit)
1b6192ba91Adrian Pop- strange as it sounds -v affects -t in ulimit, remove -v
dfb0867c16Adrian 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.
7e3423d1fdAdrian PopFix for #2557 - propely display the warning message - add the line number information to the warning message too
d27739e9b7OpenModelica Hudson[Janitor mode] Fix tabs
359e01cad5Vitalij Ruge- new initial guess option for optimization
9301cda445OpenModelica Hudson[Janitor mode] Fix tabs
3813fafa16Vitalij Ruge- added new flag: higher print level in ipopt
aa7ada5ff8Vitalij Ruge- added new flag for checking JAC and HESSE in optimization
2054cbac93OpenModelica Hudson[Janitor mode] Fix tabs
1fd7d441a0Vitalij Ruge- added flag: swtch hesse in ipopt e.g. BFGS
3c5c7da623Martin SjölundSet ulimit -v for BuildModelicaRecursive.mos
e7824ef7f0Martin SjölundFix printing of negative real numbers that look like integers
9c81a0e6f0Martin 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
de9fa7f477Lennart Ochel- fix #2557
4f9caa5e8eMartin SjölundTry to fix OSX weird problems
aa51830a18Adrian Pop- switch back to 1.9.1+dev
91640fbb54Adrian Pop- update version to 1.9.1 Beta1
46d7724245Adrian 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?)
4cede07aacAdrian Pop- susan_codegen needs omc!
8e51c2d3cfMartin SjölundReturn the exit status we got from the simulation runtime
f78c9a686cOpenModelica Hudson[Janitor mode] Fix tabs
afd9951c87Marcus Walther- try to fix bootstrapper bug
04bbc9fa1bMarcus Walther- Template for hpcom-cpp target added to the template-folder - Changed EXIT(0) to return 0 in _main_simulation_runtime
8a17ec83b2Adrian Pop- flag +d=disableWindowsPathCheckWarning (Disables warnings on Windows if OPENMODELICAHOME/MinGW is missing).
cf8385aeeaOpenModelica Hudson[Janitor mode] Fix tabs
815a10b088Niklas Worschech-separated initialization of cpp Modelica system in extra class
f185de1932Volker Waurich- round graphCosts - updated referenceGraphs
db09538d85Volker Waurich- round the values for serialTime, parallel Time, critical Path - always use num_threads from the flag +n=.. for level scheduling
1ef26bc656Martin SjölundOnly use --enable-64bit on x86_64 CPUs for antlr
c3a4099127Martin SjölundTry to override LDFLAGS in case it in part of the environment
fc9b8131c3Martin SjölundBump MSL 3.2.1
949c06d19aMartin SjölundRemove antlr3 header on make clean (needed to actually make the gcc hudson job do a clean build)
c5cb3660a1Martin SjölundPass the CC since antlr uses different typedefs and includes depending on compiler
0b92789410Martin SjölundEnable 64-bit code generation for antlr
302a02da0cMartin SjölundChanges for FreeBSD compilation
219be0623eMartin SjölundFix antlr compilation
6552ff4620Martin SjölundAdding makefile dependencies
8a6f62f3baMartin Sjölund- Run ./configure in antlr-3.2 to ensure a valid configuration is generated
aee3534d65Martin SjölundSome updates to the README
742025b4ddMarcus Walther- the hpcom speedup is now printed to stdout with an accuracy of two digits after the decimal point
45cfb62cfeMartin SjölundNew revision for new nightly
82dded3915Volker Waurich- output whole dae graph as graphml when resolving loops
ee566e39faLennart Ochel- revert r18840
ed41277518Lennart Ochel- fix #2553
e6fb779fd3Adrian Pop- more fixes for Mac OS
b7ab08e5b9Marcus Walther- debug output removed
3028466d16Marcus Walther- bootstrapper fixed (sorry, it took a little bit longer to localize the issue)
e9b98f0a86Adrian Pop- fix bootstrapping (some bootstrapping bug here, see my comment inside the code)
1ef176fa6eMarcus Walther- bug fixed: hpcom taskgraphmeta is not longer invalid, if the model contains more than one EqSystem
6ff3ce88fdAdrian 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#
66a2bd9d68Adrian 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));
3a155cb93bAdrian Pop- no .so on Mac OS, use $SHREXT instead
e35af1d471Adrian Pop- attempt to fix MacOS handling of libcminpack
c76c90f366Adrian Pop- copy to build/lib/omc not to build/bin! - also use 3rdParty/CMinpack/install/lib*/ as it might be lib64 on Linux!
db499b4271Christian SChuberttry to fix build for cpp runtime with cminpack
f1b3a191f8Martin SjölundPatch for emcc (javascript runtime) from tshort
31bf767df2Vitalij Ruge- fixed constraints
3a339cee0cNiklas Worschechfix for ticket #2548. Added case for msvc for external library directory linker path
d7c0e9cfc4Niklas Worschechfix in cpp tempalte: gcc make file, link to ModelicaExternalC
f6f2ec04aeVitalij Ruge- better time grid for optimization
0673e6cf58OpenModelica Hudson[Janitor mode] Fix tabs
e4bd0389c2Vitalij Rugefixed r18817
6cb7e30501Vitalij Ruge- free memory for analyticJacobians structure
a5e7a6a4b3Niklas Worschechrenamed ModelicaExternalC lib in cpp runtime without prefix OMCpp
394f7c2a11Niklas Worschechadded clean in cpp runtime make files
c75d65f02aOpenModelica Hudson[Janitor mode] Fix tabs
87168ff47eVitalij Ruge- missing free()
0e141acd4bVitalij Ruge- fixed constraints size
24c7c44a1eAdrian Pop- reverted r18808 as it breaks some tests and make some tests run forever even if we have ulimit -t
7bde9cb76fVitalij Ruge- fixed constraints size
d535f310e8Vitalij Ruge- small fix for constraints in hesse
bae0da5cf5Niklas Worschechextended cpp tempalte for external C- functions
17f07e748eVolker Waurich- try to fix build_clang
3ff6740abcVolker Waurich- implemented a heuristic whether to resolve a loop or not, some rewriting
359db39e87Leonardo Laguna- Reverted bad commit
4ed9d5ae05Leonardo LagunaFixing bug in VarTransform.replaceExpRepeated
f597bc5da9Christian SChuberthopefully, this commit will fix the build of cminpack together with the cppruntime
635d750a4fMartin SjölundOnly output variables that are actually in the reference results (use outputFormat="empty" if not checking reference files)
45c18232efMartin SjölundFix generation of all models again
d44efefca5Niklas Worschechfix in cpp template for algorithm array assign
a4e5e4b8a0Adrian Pop- more fixes for Windows MSVC (int32_t header included) - fixed the filename in SimulationRuntime/c/simulation/results/CMakeLists.txt
b57e06c8abAdrian Pop- fix Windows build (htonl is in some other header)
493a89f779Martin SjölundRemove some unused headers
e3fdb3bf7cMartin SjölundFix compilation
e407ad420cOpenModelica Hudson[Janitor mode] Fix tabs
60040a0481Michael TillerAdding support for wall files
7b0a94cf74Niklas Worschechadded -fPIC Compiler flag to ModelicaExternalC lib of cpp runtime
90ea88bdf2Martin SjölundEnable tracing the flattening operation (from SCode to DAE)
7f4f0b1665Niklas Worschechdeactivated hybrj solver again, clean Minpack build before does not help
2653de0626Niklas Worschechsecond try of activating hybrj solver with make clean build of CMinpack
9c7538397cChristian SChubertadded cminpack-clean to clean target, building cminpack with visual studio when building runtimeCPPmsvcinstall
d7b436cd88Niklas Worschechfix in cpp template for algloop file names.
d003fb1269Niklas Worschechdeactivated hybrj because of build errors
22185ddb84Vitalij Ruge- update scaling hess
fc023bef55Niklas Worschech-Activated hybrj solver in cpp runtime -changed generated cpp file names with fileNamePrefix
578d38e6faNiklas Worschechadd find call for CMinpack library and header files to cpp runtime cmakefile
eb2f79bc50Vitalij Ruge- fixed indices for constraints (optimization)
23307a65bcChristian SChubertattempt to fix windows build (strict checking of msvc regarding c coding conventions)
0348d0871bNiklas Worschechchange ModelicaExternalC library from cpp runtime to use c files form MSL. Adapted cpp template for external objects removed unused files in cpp runtime
57aba426d7Vitalij Ruge- fixed constraints scaling
f5ba88d5f3Martin SjölundHandle single quotes and spaces in URL's better
ef3e06d317OpenModelica Hudson[Janitor mode] Fix tabs
5a3d1aa4c2OpenModelica Hudson[Janitor mode] Fix tabs
7fbf5e9a28Volker Waurich- additional output for -lV=LOG_LS_V
c5fc1bf477Vitalij Ruge- simplify constraints (optimization) - fixed jacobian size (optimization)
b5b9fb89c2Volker Waurich- added a function to get the loops in a complex bipartite graph (just for testing)
80051776caOpenModelica Hudson[Janitor mode] Fix tabs
7f884c26a0Patrick Marcel Taeuber- modified Cellier-Tearing to solve mixed Systems - fixed some problems with Cellier-Tearing
29bbd287ecMartin SjölundGuard against divisions by zero
a16f990206OpenModelica Hudson[Janitor mode] Fix tabs
632f717e05Per ÖstlundFix for #2532: - Fixed slicing of qualified crefs.
81e2c12fc3Volker Waurich- fix bootstrapper
0e1ead3c70Vitalij Ruge- fixed hessian for constraints (optimization)
3d90ff3a37Volker Waurich- rearranged code for resolveLoops - some bugfixes for resolveLoops - introduced resolvedLoops as a postOptModule that handles StrongComponents (not yet finished) - updated tests
2d017f1793Vitalij Ruge- fixed hessian for constraints (optimization)
65c24df422OpenModelica Hudson[Janitor mode] Fix tabs
41253bc7d3Vitalij Ruge- support constraint block (optimica) - add example
9635f1c6edMartin 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)
0cfe45fd01Willi Braun - removed global optimization functions
a31dc78ddbMartin SjölundBy default don't export svg elements with display="none" since some renderers do not ignore these elements...
1923024e24Willi Braun - fixed issue of r18708 (missing function definition).
eb31a2e84eMartin SjölundHandle in class comments
a99b042f90OpenModelica Hudson[Janitor mode] Fix tabs
351ffb9f12Vitalij Ruge- jacobians for nonlinear constraints (optimization)
7f5cfae4caJan KokertFixed CR/LF in script for Windows
213515f64aPer Östlund- Preserve enum literals in Static.elabCrefSlice.
f8c15518b9Adrian PopFix for bug: #2385 - expand array elements added to expandable connectors - add test: testsuite/flattening/modelica/expandable/ConnectorTest.mos
30ef637c80Willi Braun - removed rounding step-size work-a-round
095936ba15Adrian 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.
5d3e3be127Martin SjölundFixes #2376, simplification of slicing array crefs
853fb3ea81Volker Waurich- resolveloops: the resolved equation has the form 0 = ... in order to simplify the expression on one side - updated tests
a8b6da1f6eWilli Braun - added fix for stepSize calculation and output intervals #2539
6a6b9fa19dMartin SjölundFix LOG_INIT stream
d63e6a9850Willi Braun - fix bootstrap compiler
f46533d923Willi Braun - added an interface function for partial derivatives of functions
f17a93849cMartin SjölundUgly hacks for unelabExp of empty arrays
cd1847bbe0Martin SjölundCheck for ACTIVE_STREAM vs. DEBUG_STREAM with LOG_DEBUG (used as both infoStream and debugStream; one is removed by the preprocessor)
79686896cfMartin SjölundAlso fix CodegenFMUCpp
a79556e21eMartin Sjölund- Fix OSX compilation of cppruntime - Fix name of ModelicaConfig.inc - Return 1 (failure) if the output format was not supported
38fa42224aVolker Waurich- fixed resolveLoops (sort loop before resolving it) - updated tests - added test to Makefile
3fa48efac4Martin SjölundHandle cppruntime in BuildModelRecursive.mos
676eb60becMartin 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)
e6da93e763Adrian 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
030edbd849Adrian PopFix for bug #2537 - added diff(homotopy(e1, e2)) -> homotopy(diff(e1), diff(e2)) - added test also: testsuite/simulation/modelica/others/Bug2537.mos
d20eb01154Martin SjölundRemoving scodeInstShortcut from library testing
63b94594aaLennart Ochel- minor changes
2371b9af3fLennart Ochel- remove attribute offset from structure SOLVER_DATA
dc089bb649OpenModelica Hudson[Janitor mode] Fix tabs
08bac50066Vitalij Ruge- partially using of hessian structure
c77bf6b591Vitalij Ruge- update calculation numerical hesssian - update calculation gradient
f6c36c9966Vitalij Ruge- change handling for numerical issue for hessian
0c00097647Martin SjölundUse correct signature for pthread_once
e4d809e21cAdrian Pop- strtok_r not available in MinGW, added an implementation for it.
ea4422a307Volker Waurich- rewritten resolveLoops module - added function listIsLonger and extract1OnTrue to List.mo - updated tests
e7fe286784Martin 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
613b2f6ae0Lennart Ochel- minor changes to LOG_STATS
b62a72fa9bMartin 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
b4c810116fAdrian Pop- attempt to fix Windows build in Compiler/Util/Util.mo - fix indentation a bit in Compiler/runtime/System_rml.c
bbeecc0655Adrian Pop- reverted r18640 as it breaks builds and tests.
b41d27137eNiklas Worschechadded link to minpack for hybrj solver in cpp runtime
965ad400cdMartin Sjölund- Some small changes after investigating GC performance with different flags (enabling LARGE_CONFIG)
c5f1d8a7a7Martin SjölundAdded threading support for loadFile(), called loadFiles(). Saves roughly 1/3 the time of loading the compiler sources using 5 threads.
499484a4a7OpenModelica Hudson[Janitor mode] Fix tabs
368bda2417Niklas Worschechfix for cpp runtime simulation call for windows, removed unused variables from CevalScript simulate
c3b3b09379Adrian Pop- ansi-C
f7b8c019b8Henning Kiel- fix calls of assertStreamPrint() and throwStreamPrint() - fix some warnings - reduce scope of objects - "unsigned" -> "unsigned int" for better readability
c702a47a68Martin Sjölund#2530 - Handle identity() in functions better
2e94ffc2b9Martin SjölundUse the generated shell-script to run Cpp simulations. Respect the fileNamePrefix parameter a bit more
b8c5a56a10Adrian Pop- some comments in the makefiles
ca4a3bf4caAdrian 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
d3463dd55aNiklas Worschechadded function to cevalscript to get script extension
4746465214Niklas Worschechfix for cpp simulation Linux run script, removed typo
7626efc415Niklas Worschechfix in cpp template, changed linker order of cpp libraries
ce3f06bccfMartin 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
2f5a438180Martin 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)
609efca71bNiklas Worschechfix for cpp windwos simulation run script.
5ea6477dc9Adrian 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
64a283d824Adrian Pop- partial commit for rewrite rules: rule file loading and parsing
c14b7c0561Volker Waurich- added debugFlag resolveLoops, - commented out some prints for debugging in resolveLoops
1a41b7c6c9Volker Waurich- added some more function for the resolveLoops module
4838de3369Adeel 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
55c22a6970Henning Kiel- revert loop index to signed type
5faa0243a9Henning Kiel- fix some compiler/cppcheck warnings - fix a memory hole - fix a copy/paste error - fix some variable initialisations
786fe41ec6Volker Waurich- fixed graphMLDump of equationSystems
a9460142b0Lennart 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
d31849aa2bAdeel Asghar- Fixed simcodedump.xml. Remove the extra quote. - Added the candidate tag in the parser.
9caf8be24eMartin SjölundRemove extra `'`
e38e14174bMartin Sjölund#2529 - Vectorize function calls with DIM_EXP() as dimension
5526c33d5bNiklas Worschechadded generation of script file for linux to run cpp simulation with simulation parameter
fd01c6fe8aMatthias Arzt- C++Target add methods for reading an writing algebraic variables in blocks removed methods for reading an writing single algebraic variables
c1c54c3032Martin SjölundAdd support to compare without the tubes using a tolerance of 0
617a563006Christian SChubertbugfix CodegenCpp: OmCpp was added twice for mixed systems, Compile cminpack
a32d4f9152Adrian 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
bddc47a17bMartin SjölundUse the pooled allocation interface for the JavaScript target
2b989d0baeVolker Waurich- try to fix bootstrapper
a7aca9c264Adrian Pop- attempt to fix bootstrapping.
ede22e7670Volker Waurich- added some functions for resolveLoops, not yet finished - fixed bug for graphML dump of equationsystems - added makeTupleR to Util/Util.mo
2f5446f997Martin SjölundFixes for RML signatures
53721d9957Martin Sjölund#2525 - Put initial array equations that are reductions in the correct section
cf784e669cHenning Kiel- some fixes from cppcheck - pass parameter of size_of_dimension_*_array by reference to improve performance
df1d6e84daOpenModelica Hudson[Janitor mode] Fix tabs
cc38f83c87Alachew Mengist- Fixed #2410: XML Dump doesnot generate equation for Linear Systems and Non-Linear Systems. - Fixd Iinitial equations - Generate XML for delay function
e38217a5d3Adrian Pop- fix compilation. - strange that ResidualCmp.createResidualCmp needs SimCode.MAKEFILE_PARAMS but whatever.
ffcb55fc77Niklas Worschechadded generation of script file for windows to run cpp simulation with simulation parameter
5a09ffacd7Vitalij Ruge- fixed lagrange term
e0c6481900Volker Waurich- added some functions to partition the graph for resolveLoops
c20eca6d72Martin Sjölund#2521 - Don't try to correct the type of a correct subscripted cref
3d7b6b873bVolker 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
e36d6570feVolker Waurich- added function to dump a bipartite graph as GraphML for a set of equations and vars.
34d1ef0f10Niklas Worschech-added link against libdl in cpp template
a89cb11222Volker Waurich- added Util.arrayMemberNoOpt which does the same like Util.arrayMember but requires no array>
73473d7ecfChristian SChubertcpp_runtime: added parallel compilation for mingw on windows. But only if testsuite is not running.
44d2365df5OpenModelica Hudson[Janitor mode] Fix tabs
20b03c43f5Niklas Worschechfix: changed parameter of createSimulation method in cpp runtime
4997fac2a2Willi Braun - fixed code-generation issues for #2494
e26706f882Willi Braun - bug fix for #2437
774b3daaaaOpenModelica Hudson[Janitor mode] Fix tabs
eb43c96a3dNiklas Worschechchanged cpp runtime generated output file names for system lib and cpp files generate executable for cpp runtime
cd5c422998Martin Sjölund#2401 - Don't accept partial functions in the parser except in function calls
fd504b6e9bWilli Braun - added for evaluation of actualStream-operator smooth(0, exp) - actualStream-Operator should not generate events
f4fbe8cc77Willi Braun - added SimVars of Jacobian to *_info.xml files - moved collecting function from Codegen to SimCode
c70e237737Martin Sjölund#1732 - Check for invalid use of record components in external function declarations
83171158bcJan KokertUpdated installation notes (my first commit)
96daed5f1dAdrian Pop- Fix for #2519 - added the test from the ticket too
6e011358a1Volker Waurich- dumpEquationSystemAsGraphML works for torn systems and equation systems
5e7849a0bfMartin SjölundMaybe fix #2313 #2518
b212460db1Per ÖstlundFix for #2503: - Propagate visibility prefix to components of structured components.
f67dc27faePer Östlund- Fixed simplification rule |e1| op |e2| => |e1 op e2| (was => |e1 * e2|).
d5bef05572Martin SjölundFix OSX compilation
49b7807bf3Volker Waurich- functions to dump a bipartite graph of linear torn systems (as .graphml, can be viewed in yEd)
7f73ad6d1dMartin Sjölund#2513 - Propagate -lintl to rml-generated code
b3c3ab2868Martin SjölundRemove debug print
1f2c13daefWilli Braun - fix numArrayElement for temp array simVars.
265602cacdMartin SjölundFor csv output, don't output aliases of parameters since we don't output parameters
55f4436242Vitalij Ruge- fixed time table for optimization - fixed setting of input-vars in optimization
8b157b092bHenning Kiel- fix some findings from cppcheck
e44974e0baMartin SjölundAlso output that custom commands were used
90f60597acVolker Waurich- build a single equation instead of an equation system if the size of the torn system is one when using +d=partlintornsystem
803137e58bPer ÖstlundFixed for new instantiation: - Fixed support for StateSelect. - Forbid subscripted function calls. - Added missing listReverse in List.findMap*.
278ccf632bVolker Waurich- moved functions to handle equationsystems for hpcom to HpcOmEqSystems.mo
2f686d34e2Volker Waurich- use analyticJacobian to solve reduced linear equationsystem when using +d=partlintornsystem
b875dff029Martin Sjölund#2508 - Don't enable output of variables unless they match the regex - Don't output all alias variables for csv and plt
cb9f6f325dPer Östlund- Improved name prefixing in new instantiation.
b3b1f89f8fVolker Waurich- added hpcom test
ee71ffb151Volker Waurich- fixed bug for varSCCmapping concerning tornsystems including records
d9f7d4a782Vitalij Ruge- fixed handling of time in optimization
2e4ce73726Vitalij Ruge- fixed memory leak
2bb2a8d5daOpenModelica Hudson[Janitor mode] Fix tabs
58a5c639d8Vitalij Ruge- fixed: coloring for gradient| Thanks Willi - mv Willi's solution from (newadol-c)branch to the trunk - acktivated: coloring for gradient
a3798cb310Martin SjölundBump me!
6217b6d3f7Vitalij Ruge- partial fix for gradient
1fb26528dfMartin SjölundFix bug reporting URL
0942725a65Vitalij Ruge- partial for gradient - rename reference files in optmization
81fcbb94bdMartin Sjölund#2498 - Add array variable references to the info.xml
bd20d99bbcPer Östlund- Check more instantiation restrictions on components in the new instantiation.
7341889e5bPer Östlund- Better error messages for lookup errors in new instantiation.
2781d7972cMartin SjölundDon't strip so many stack frames from seg.fault messages
c83f8a9590Martin 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)
f8438b4820Per Östlund- Fixed class redeclaration in new instantiation.
08de4e6db0Volker Waurich- added function removeSuperfluousLocks to HpcOmScheduler.mo
42f44f6e76Marcus Walther- additional execstat-informations are now available for hpcom
9a17df3edcPer Östlund- More enumeration fixes for the new instantiation.
592451130fMartin SjölundDon't recompile the parser all the time
a5815f9ed0Lennart Ochel- don't try to generate a graph for the matching before the matching is actually performed
f024e35b43Lennart Ochel- make +d=graphvizDump working with +d=dumpdaelow
76c4c6359cPer Östlund- Load builtins in new instantiation.
258a82caf8Martin Sjölund#2501 Fix C-compiler warnings
4b7482b904Adrian Pop- fix Windows build
22b472d6c6Martin SjölundMaybe fixes windows builds
46507bd83cMartin SjölundTranspose with correct dimensions
788c611ad0Martin SjölundFix reading of csv-files, including caching and tranposing variables for increased performance
6e97464cbeMartin 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
ade2ad36b1Per Östlund- Removed unused record NFInstTypes.PACKAGE.
706fc41798Per Östlund- Fixes for enumerations in new instantiation.
bc31e4e289Lennart Ochel- make +d=graphvizDump working with +d=dumpindxdae
4b6a5a2cafPer Östlund- Removed Absyn.CREF_INVALID, it's not been used for a while. - Updated bootstrapping tarball.
f43cca064ePer ÖstlundFixes for the new instantiation: - Added new package NFInstPrefix and moved the Prefix type and related functions to it. - Fixed several prefixing issues.
70054ad3b6Marcus Walther- changed the HpcOmSchedulerExt interface to metis-style
df94d6dc6eMartin SjölundAdd a PHONY target for the omc program or it might not recompile everything
64da6a11aeAdrian Pop- fix Windows msvc build: ansi-c please
1e28a6a09bVolker Waurich- arranged some additional output in function analyseScheduledTaskGraph
6ea80e01d4Martin SjölundWrite equation indexes for NLS failures in the XML log
c1582632ffVolker Waurich- added flag +d=hpcomDump that outputs additional information for hpcom
5262530e25Martin SjölundAdd support to load libraries not in the default directory
91d9d31482Martin SjölundDo .depend first
1a50a6fcd5Martin SjölundDo DAE.c first also for the nolink target
3f52a211c0Lennart Ochel- remove temporary test template
74282703e2Martin SjölundParallelize cpp runtime builds
ec2632d162Lennart 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
9245adb28bMartin SjölundAlso force .depend for the nolink target so we don't crash build machines again
0fb5c97793Martin SjölundTry to do more things in parallel
c44e86b13bMartin Sjölund+d=infoXmlOperations now enables storing the operations in the _info.xml
7d310a9550Martin SjölundDetect chattering models. Prints something like: ``
1529a8088dPer ÖstlundFix for #2496: - Changed Susan syntax for arrays from Type[:] to array.
7e83e90f33Per Östlund- Committed generated TplCodegen.mo in Template also.
0bb4123450Marcus Walther- fix for clang compiler
d4e1139972Per ÖstlundFix for #2496: - Fixed code generation for arrays in Susan.
01c098b725Niklas Worschechadded workaround in cpp tempate: try to solve algloop discrete if it not solvable
96c81edc73OpenModelica Hudson[Janitor mode] Fix tabs
8ae89a17ccMarcus Walther- interface for external hpcom-scheduler added
1f099bf126Leonardo Laguna- Changing the scope of a function used by MathCore
846d2fce6fVolker Waurich- if num_proc flag is not set, a reasonable number will be offered. repeat scheduling iteratively
8715a6279eNiklas Worschechfix for algloop event iteration -added isConsistent to IAlgLoop to check if a condition has changed moved setCondition and getCondition to SystemDefaultImplementation
324a485bbfOpenModelica Hudson[Janitor mode] Fix tabs
6242b5dcfbVitalij Ruge- update calculation of gradient for optimization
a71c72140bMartin SjölundHandle some #ifdef'ed cases
dcacc9a270Martin 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.
323f946f87Adrian Pop- copy omc_msvc.h also to build/include/omc/
43e3519524Adrian Pop- include omc_msvc.h only if we're in the MSVC compiler.
55d8251fbdAdrian Pop- use omc_msvc.h for the MSVC support in the previous commit.
6e748691e2Adrian Pop- attempt to fix Windows MSVC compilation: + define __attribute__ only for GNUC + do not define inline for MSVC
1d852115e0Martin 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)
fd9b4a55bbVolker Waurich- removed flag NUM_PROC in the codegen for hpcom
23687d179dVolker 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
3d3c278ec0Willi Braun - fixed removeSimpleEquations for TUPLE(WILD,cref)
33d355b23fWilli Braun - do not inline functions for jacobians.
2c5a13d3b8Willi Braun - added a first part of mapping from Backend equation index to SimCode equation index (strong components omit for now) - update equation in ZeroCrossings
a9be4d22f2Willi Braun - fixed BackendDAECreate to create equations for something like DAE.TUPLE() = DAE.CALL() instead of algorithms - adjusted some relevant functions.
8d872fc8a4Martin SjölundAlso clean cppruntime if we ask it to please make clean
8a87f916eeNiklas Worschechfix event iteration for algloops
2cb3f6e71bAdrian Pop- fix Windows clean
6d20718d20OpenModelica Hudson[Janitor mode] Fix tabs
933f341d7fNiklas Worschech+added event counter in CVode +added event iteration for algloops
7fbb3195feMartin SjölundBetter clean
a112556afbVitalij Ruge- new comand "optimize"
b16c2dc8a8Martin Sjölund- Double fixes for f2c.h problems on OSX; always use our f2c.h
e5a8bfb9acPer Östlund- Fixed function name prefixing in the new instantiation.
68c3d90754Lennart Ochel- minor fix for dump of reinit
32a7b126d7Lennart Ochel- rename RK4 to RK4_DATA
2647c7feb2Martin Sjölund- Use boehm GC for HPCOM pthreads - Don't use boehm GC, but rather the chosen allocation scheme for create_index_spec
abf6fc421bWilli Braun - improved LOG_EVENTS_V debug dump.
27577e0538Per Östlund- Less magic in name prefixing in the new instantiation.
8b0c025247Willi Braun - changed log level for event iteration. - added testcase for debugDumps cruntime.
5b2754e7fdOpenModelica Hudson[Janitor mode] Set auto-props
f70f34937bMarcus Walther- fixed the mac os pthreads_spin_lock bug
1e4bd1e761OpenModelica Hudson[Janitor mode] Fix tabs
98244a0590Vitalij Ruge- update heuristic for nominal in optimization
4f920952aeWilli Braun - fixes for symbolic jacobians
0ebd1f9723Volker Waurichchanged some output
0bf218f064Martin SjölundLook for flags needed for gcc 4.8 bootstrapping
444dfbaa8fMartin SjölundUse system(..., outputFile = "...") to redirect seg.faults on OSX
d0e5caad7fVolker Waurich-try to fix hpcom test using spinlocks for osx
3a34bec7f2Lennart Ochel- add case for BackendDAE.JAC_NO_ANALYTIC() to Initialization.warnAboutIterationVariablesWithDefaultZeroStartAttribute2
1c95a2c08dHenrik TidefeltDefine new error Severity INTERNAL (aka ErrorLevel_internal)
6c48c58e8cAdeel Asghar- Fixed the System.systemCall when its called with outFile argument for Windows.
b8853505f9Adeel Asghar- Fix Windows build.
8645b50d8dWilli Braun - fixed memory leak in LOG_JAC output
0836b8bdf9Martin SjölundFix some compiler warnings
50fa1a7dc9Willi Braun - added a case for SOLVED_EQUATION
660e07f866Vitalij Ruge- update heuristic for nominal in optimization
3824c33686Martin Sjölundhpcom now uses libgc functions directly in the runtime
e3cadabb8cVitalij Ruge- When ipopt fail, then try other strategy
44dba8b6e3Vitalij Ruge- changed default ipopt flags
b7db69abe2Per Östlund- Improvements to the new instantiation, mostly redeclare and modifier handling.
d00cafa4f0Martin 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()
e991939d23Volker Waurich- use GC_pthread_create instead of pthread_create
1ff4433587Martin SjölundAdd an RPATH so the debian builds don't complain so much
ac745ec47dVitalij Ruge- update heuristic for nominal in optimization
3ba8975bfaVitalij Ruge- update heuristic for nominal in optimization
5f2ae65c42Vitalij Ruge- fixed empty gradient
be707b7599Martin SjölundGenerate working code for FMUCpp on OSX
bc0d6bd02aVitalij Ruge- changed expression sequence for (more stable?) hessian
a80d11779cMartin SjölundLink in fewer libraries
d1114d012fMartin SjölundDependencies
4da9e4e647Martin SjölundInclude LDFLAGS in the configured RT_LDFLAGS flags
ddb3c675bdMartin SjölundLink in libstdc++ also for dynload since it contains the csv reader
464082a4e8Martin SjölundTry to link fewer libraries
6b303cb7d0Henning Kielrecommit fixed r18258
fe429659e3Adrian Pop- fix linker flags for Windows
05fec6b88fMartin SjölundCheck for -lrt
8ad363930cMartin 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
13671067ebMartin SjölundAvoid inlining problems
f3177c0c06Martin 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
c370157922Adrian Pop- revert changes to Compiler/BackEnd/Uncertainties.mo from r18258 as they break some tests.
421c1e8f67Henning Kielreplaced O(n) listLength(L)==0 by O(1) List.isEmpty(L)
7d2f4af409Martin Sjölund- Link against libf2c on OSX as it seems necessary
39667a8fe4Martin SjölundSkip libf2c on OSX too
caf6e9566eMartin Sjölund- Put back the old FMI hack to work on Linux - Disable MSL3.2.1 cppruntime tests until their performance improves
f22b4dfc30Martin SjölundMove f2c linking as the Linux dynamic version has unresolved symbols
c78ce87381Martin Sjölundlibinteractive.a has not yet been copied into build/
08f9653e91Martin SjölundBuild and partially link a .dylib as simulation runtime (makes mixing different C++ and C compilers possible; for OpenMP on OSX, and more)
c4d18c67acAdrian Pop- update OMDev SVN url in the READMEs.
1329f23738Martin SjölundFix the system_parallel implementation
07461df752Martin SjölundStop using OpenMP in the system runtime - use pthreads instead to avoid problems with linkers and library versions trying to mix compilers
818db313c6Martin 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.
5be90bc631OpenModelica Hudson[Janitor mode] Fix tabs
4be61a18d1Vitalij Ruge- changed numiracl handling for hessian in first intervall
90332cca0aMartin SjölundBump MSL
ea7c69c88fNiklas Worschechadded delay to cpp template and runtime
229c357547Martin SjölundRegenerate OpenModelicaBootstrappingHeader.h also for the bootstrapped target
8c0e3c590bMartin SjölundOSX fix
deeba585fbMartin SjölundSymlink the dynamic library instead of messing with soname and install_name
37dfa1d6d6Martin SjölundLoad shared objects with the correct extension on Mac
0ae6f3d6deMartin 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
d4e3f0b8c2Martin SjölundMostly OSX fixes for FMI
90b53fdeb9Willi Braun - fixed wrong adjacency-matrix for STMT_TUPLE_ASSIGN
7d0b872eebMartin Sjölund- Some fixes to the separate compilation - Some fixes to the (generated) omccp sources
f2883dd21eVolker Waurich- fix hpcom (simEq-mapping for systems with nonlinear jacobians) - added test
7cf9e7ffebMartin 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
179655e4d4Martin SjölundRemove some code that should not be accepted
3a08dd8419Martin SjölundLet configure check that BLAS is included when linking LAPACK
7da968f5c8Martin Sjölund- Partest on OSX - Skip some unncessary steps for bootstrapping from tarball
6c4f01ae1dMartin Sjölund- Compile --without-metis - Disable warning if the user has an empty LANG env.var
c919aef88aMartin SjölundConfigure the fortran compiler
2927bb8b99Martin SjölundFix svn-clean script for symlinks to directories
67a40b3dd4Martin SjölundAdding script to clean trunk (like svn-clean, but more platform-independent)
79db84ac83Volker 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)
fd52bede41Volker Waurich- added warning if number of processors is not given when using hpcom
1109bab468Adrian Pop- do not compile ipopt on Windows as it is already part of OMDev.
a52835dccbMartin SjölundFix Linköping
0f4f7b0044Martin SjölundFix configure for locally installed ipopt
95257fbacfOpenModelica Hudson[Janitor mode] Fix tabs
1447779440Willi 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
0d6d5e2cd1Vitalij Ruge- fixed configure for ipopt??!
5ed87bcfa0Vitalij Ruge- fixed configure for ipopt?!
82c60ee135Martin Sjölund- Compile our own version of Ipopt (EPL 1.0 license; compatible with LGPL) - Fix copying of messages from the OMEdit widget
de93785875Volker Waurich- hpcom outputs theoretical speedup and theoretical max speedup - updated tests
71985f0f88Per ÖstlundFix for #2482: - Handle 'end' when used as subscript of qualified cref.
f99b5bb55aMartin 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
14a1a4012bAdeel Asghar- Fix the LOG_STATS output.
9b6274acfaWilli Braun - add simplification rules for DIV_ARR and DIV_ARRAY_SCALAR
c9ee1aa4efMartin Sjölund#2483 - Partial fix for assigning to only some function outputs when the function is constant evaluated
5afaf5d293Martin SjölundRML crap
1f9c1403f5Martin Sjölund#2250 Adding API function to convert between units
cd3a7bc426Vitalij Ruge- added missed return
15be53922cVitalij Ruge- numerical trick for hess
86724e36baMartin 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
e1e3296a72Vitalij Ruge- LOG_STATS adjust for optimiziation - codestyle for hess
46d48c1333Vitalij Ruge- fixed special case( numberIntervall = 1) for optimiziation
65ca2bff3bVitalij Ruge- better evalution (object function) for numerical hess
06590ab4a3Vitalij Ruge- reduced evalution for numerical hess
8c322d6e9eAdrian 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)
5e12b424f7Jim NutaroUpdate to adevs backend to fix initialization involving fixed variables. Updates for new c runtime.
b9046ab730Willi Braun- fixed ordering of stateselect and jacobian equations in *_info.xml
2a207fb1daLennart Ochel- get rid of redundant function body (equationNth0/equationNth1)
93e2399091Vitalij Ruge- better numerical hessian for first time point
b7b109b057Lennart Ochel- move BackendDAEUtil.equationNth to BackendEquation.equationNth0 - move BackendEquation.equationNth to BackendEquation.equationNth1 - remove unused module dependencies
65a7502310Lennart Ochel- make dassl debug-output readable
62e433e7a3Martin SjölundSafer new/free of the matlab reader. Should no longer crash OMEdit if an invalid mat-file is presented
d7632600faVolker Waurich- added case in createSchedule for non-ODE systems
07fc3f564cJim NutaroAdded state variable selection to initialization loop
090241eb18Willi Braun - added missing cases to ExpressionSimplify for Relations.
e588e20d75Volker Waurich- fixed bug at getFinishingTimesForSchedule
98141af5e5Marcus Walther- with the help of the hpcomCode flag, you can now choose between pthreads and openmp code
e497155994Jim NutaroCode cleanup for the adevs backend
a8378095cfVolker Waurich- fixed hpcom for some models with mixedEquationSystems
ee38c94c03Adrian 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
394cca58efAdrian Pop- fix non-separate bootstrapping compilation (MainTest.mos) - beautify the C code a bit
32fc4ffba6Adrian Pop- fix Windows msvc build: ANSI-C please :)
f2505de817Willi Braun - added rounding of stepSize to hit the numberOfInterval point. - added cruntime flag(-noEventEmit) to suppress output at events.
9836731526Niklas Worschechfix for array declarations in cpp template
701fa02671Volker Waurich- fixed bug at ALAP-computation and quicksort - added function getFinishingTimesForSchedule - added function predictExecutionTime - removed some debug prints
8d88013b98Niklas Worschechchanged minimal step size for cvode in cpp runtime fix for array assign for index spec in cpp template
fca59fd58fWilli Braun- added isChangeableValue = true for states
f24069ad9fPer Östlund- Fixed some clang warnings.
dbbc4ecae8Martin SjölundSort more sections
e602732827Martin SjölundSort some equations
44d6c1a53eMartin SjölundSplit up the equations in the info.xml so it is possible to see which equations are initial
047694b29dMartin SjölundUse dynamic omniORB on OSX, check that omniidl command exists
c5b2378cdaWilli Braun - fixing build
176924ec58Willi Braun - added a flag for changeable parameters to *_init.xml file. - parameters that are not evaluated before and constant are changeable.
84ef2c324eMartin SjölundFixes for not using RML-style pointer tagging (saves ~1% total time by being able to use atomic allocations)
c452aeaa47Martin 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)
2c3becb974Lennart Ochel- add tests for high-index initialization (provided by Francesco) - minor changes to compiler warning of over-determined initial systems
f4fc97142aAdrian Pop- disable java finalization and gcj-support for Boehm GC
e29bbac678Vitalij Ruge- expand expression only if it can use for simplify
5bc1d6265cVolker Waurich- new task graph scheduler modified critical path
bc15c5282fVitalij Ruge- evaluated value for error handling and function call (sqrt, log, log10) only once
6797940bd2Adrian 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!
784638e7cdMartin SjölundUse a smaller size for the hashtable in Patternm.mo
b7b1556b22Martin SjölundDo pathHashMod without pathString to not tax the GC so much
eb95a44816Martin SjölundSmarter code generation for empty patterns
8da19c635eWilli Braun- fix for XML stateSpace dump
010963fff6Volker Waurich- reverted workaround for nonlinear solver problems
2cd8ee7491Volker Waurich- re-added (not unused cases, see rev 17956) to ExpressionSimplify.mo in order to fix BranchingDynamicPipes on my machine (nonlin solver error)
63af40c78bMartin SjölundLazily create the hash table (saves 6*10 seconds on the testsuite on dev; probably more for the bootstrapped compiler)
35a3b09fc0Martin SjölundReset tmpTick also for each statement, and after pattern-matching
9179cfe8c3Adrian Pop- comment for Print.writeBuf - dumpXMLDAE improvements: do not use Print.getString as the string is huge, just write it directly to file
51140fb98aMartin SjölundRe-use some of the generated tmpMeta[] variables to save stack space and walk less data in the GC
04245ce763Volker Waurich- reverted previous commit
97ff5f057dVolker Waurich- added new mcp task graph scheduler - added quicksort algorithm
15daf71044Adrian Pop- fix bug: #2243 - new section with containing containing containing any of reinit, assert, terminate, noreturn call - added test: testsuite/openmodelica/xml/BB.mos
d1fd3c6786Adrian Pop- fix bug: #2454 - added testsuite/openmodelica/xml/SimpleTriggeredTrapezoid.mos
aab273a06fMartin SjölundSkip printing the name of the component if the value is unused...
4c6af453c9Martin Sjölund- Added Env.NO_CACHE(), which creates an environment faster than Env.emptyCache(), but also won't cache anything
f1a19a52d6Martin SjölundDon't create the UnitAbsynBuilder unless the flag is set
8747410c01Martin SjölundSome fixes to be able to mix RML and MM datatypes (and change the MM representation with a #define)
5cf2076f4cMartin 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
878f90a003Martin 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.
608f3278bfMartin 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 :)
e3707349c6Niklas Worschechfix in cpp runtime for the initialization interation. Calling initializeEquations instead of evaluate
93de7f734aAdeel Asghar- Fix compilation.
75f0bfbf20Martin 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)
d89d4f90daMartin SjölundFix compilation
e6a5bf63b5Martin SjölundPass threadData to Print.mo and ErrorExt.mo external implementations. Added local roots to store this in the the threadData
5096ce8fa0Willi Braun - bug fix #2399, mark all variable of a tuple in when-statemeants as discrete.
d9391085b7Martin Sjölund#2458 - Remove json files and unused symlinks
0accc584d1Martin SjölundUse match for valueExp
b2674e0b45Adrian Pop- remove envCache functionality as is not used and is actually slower
7eeb9b62e9Adeel Asghar- Don't unset the measure_time_flag when user has explicitly enabled it via measureTime option.
a9084689daMartin SjölundPass threadData using OpenModelica.threadData() in external function calls
d5b507decdMartin SjölundUse the configured omc to build the templates
f6837ce172Martin SjölundFix linking
6c80f56ae5Martin SjölundRenamed some variables due to conflicts in namespace std:: (which apparently some CORBA header uses on OSX)
10931e1ce5Martin SjölundBump main-static by default on OSX
e4c80c1ec4Martin SjölundCompile omc-bootstrapped if --without-rml is requested
2b53879a5aMartin SjölundHash the paths of the generated icons to dedup them
3de182463fMartin SjölundAdded common function for simplifying binary expressions with lhs and rhs being binary expressions
0d318ae8b0Martin SjölundSome minor changes to simplify (manually cache some isConstValue results)
00ebb6b8dfMartin SjölundUse isConstValue instead of isConst for an 18 second testsuite boost
a486e41391Martin 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.
ea663efbb2Niklas Worschechfix for smooth in cpp template
49a08e6c0bWilli Braun- added "stateSpace" option to dumpXMLDAE
4022739f45Niklas 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
40481196bfOpenModelica Hudson[Janitor mode] Fix tabs
641fd6615cPatrick Marcel Taeuber- Cellier-Tearing is now able to handle algorithms, equationarrays,.. - added new heuristics - added new models to testsuite
10f3ed21a3Mahder 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.
89eb97fd23Martin 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
3531c24fd4Adrian Pop- remove assignment to inputs
ed7cb576d4Leonardo Laguna- Adding new function to BaseHashTable.mo
2a9e82d9f6Martin SjölundTraverse match-expressions, keeping the old expression if nothing changed
ea5d8d9d4cMartin SjölundDon't create new reduction expressions when iterating
37a4fd837aMartin SjölundDon't create new matrix expressions unless needed
92cae27255Martin SjölundTweak the diff algorithm, allow larger errors
a7c18feb3fMarcus 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
628d80217fMahder Alemseged Gebremedhin+ Some fixes for ParModelica and g++ compilation.
5680cdd2e5Martin SjölundActually set the tolerance set in the parameters
60168c0d12Martin 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
c1d545a8d7Per ÖstlundFix for #2448: - Handle redeclares in local short class definitions in the dependency analysis.
efeac38a42OpenModelica Hudson[Janitor mode] Fix tabs
de1eaa967bMartin 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
503bb29e2dHenning Kiel- fix tail recursion to use both buffers
d4ce7d6d32Martin SjölundFix swapped x0,y0. Do manual tail recursion so the debugger gives sane output
e1246f921bMartin SjölundRemove even fewer points
5b2d173c05Martin SjölundKeep more curves around, only removing points if they really do not matter
c299554e49Martin SjölundTail recursion
032163c5a1Martin SjölundDo not remove local min or max points
bd0359158aMartin SjölundTail recursion
fbed27516bMartin 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)
46612d5f31Martin SjölundFix event detection
dbbb1b3effOpenModelica Hudson[Janitor mode] Fix tabs
ace0694de0Mahder 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];
68e7d697e0Adrian 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
42457d3c8fAdrian 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/
ee0e6a8634Martin 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)
7ac7af8a35Martin 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)
617ff97999Adeel Asghar- Copy the libgfortran-3.dll to FMU binaries.
8d421d5644Adeel Asghar#2441 - Do not add the comment to enumeration literals initial values.
d26d065684Martin Sjölund- Fixed svg generation for coverage script - Added generation of result verification xml to coverage script - Some tail recursion optimisations
6411e1a846OpenModelica Hudson[Janitor mode] Fix tabs
2beb8d7deaMartin 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
da38ee747aMahder Alemseged GebremedhinRemoved operator record restriction. Now operator records are special cases of record restrictions. saveTotalSCode should work now for models containing operator records.
1a0d508534Per Östlund- Handle the special case of + being used without argument as flag to OMC.
cba5847ff4Martin 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
e5f4bd3196Adrian 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
d82304a211Per Östlund- Propagate modifiers for derived types in new instantiation.
058183efe6Per Östlund- Better modifier propagation in new instantiation.
6c8663e5a9Lennart Ochel- remove empty lines
004983a58eMartin SjölundTail recursion
3ba195b3b1Lennart 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
319ec57ab7Adrian Pop- call GC_init first thing in Main.mo
fc8fd75e82Lennart Ochel- minor code simplifications
24eb7bf0b8Martin SjölundTail recursion
e234a04d9fLennart Ochel- use Error.addInternalError instead of print in Matching.mo - minor changes in Initialization.mo
fffe8b5aa5OpenModelica Hudson[Janitor mode] Fix tabs
a4df62079bMartin SjölundAdding new simulation results comparison based on csv-compare
4c298a0e9fAdrian Pop- fix +target=msvc (include omc_alloc_* in extern "C") - add clean target in the makefile for Visual Studio
ea039bd548Lennart 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
8afe36d18bPer Östlund- Fixed handling of modifiers for nonexistent elements in new instantiation. - Updated swedish translation of OMC.
c1fe31cc7cLennart 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
a98130fe2fLennart Ochel- remove unused functions from IndexReduction.mo - function processComps - function processCompsWork - function processComps1New - function processComps2New - function processComps3New
7531301cf4Lennart Ochel- use Error.addCompilerWarning instead of print in BackendDAETransform
ab7bd526a0Lennart Ochel- use Error.addCompilerWarning instead of print in BackendDAETransform.splitMixedEquations
386ceb9a28Mahder Alemseged GebremedhinRecommit r17828. Updated expected outputs.
265931a12eOpenModelica Hudson[Janitor mode] Fix tabs
48db1c398cOpenModelica Hudson[Janitor mode] Set auto-props
b111129fd7Adrian Pop- add test for bug #2429 - improve debugging in RemoveSimpleEquations.mo
c60d182a9dNiklas Worschechadded hybrj solver to cpp runtime
64eae7ccc4Jens Frenkelfix #2429 use original expression in case of parameter or time alias and negate for global negate
413f313e65Mahder Alemseged Gebremedhin+ Revert parts of r17828 for now until tests are updated.
f9a7bc6d09Mahder Alemseged Gebremedhin+ Fix #2387. Handle Matrix Multiplication of record types according to spec.
4797d694a3Lennart Ochel- make function SimCodeUtil.zeroCrossingsEquations protected - remove unused modules
b1033e0437Lennart Ochel- move zeroCrossingsEquations to SimCodeUtil.mo - move expandDerOperatorto BackendDAEOptimize.mo
22bc5b3244Lennart Ochel- fix identifier at start and end are different
2d5d6f8e2bPer Östlund- Fixed extension of basic type in new instantiation.
61e745396fAdrian Pop- fixes so un-proper compilers can handle the code.
1a10117fa0Lennart Ochel- revert r17809
971d825bc6Martin SjölundAdd a new memory pool for hpcom using a lock and no GC (string allocations are malloc'ed and never free'd)
c4fc2ac5c6Per Ö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.
e3ea789a3cLennart Ochel- move expandDerOperator to BackendDAEOptimize.mo
923b663cd9Martin Sjölund- Fix System.snprintff - check for negative length - Pass positive length in hpcom
9a2f9b6d1bWilli Braun#2360 - rewritten findZeroCrossings2 on a tail-recursive form
88d74678a1Martin SjölundUse GC_malloc instead of GC_MALLOC to be consistent
74a8d3a3f2Martin SjölundTail recursion
8c1da6b327Martin SjölundTail recursion and removal of RML-specific optimisation
0adccd7b2aMartin SjölundRemove failtrace
75d4f854f6Adrian Pop- fix Windows build
47380ae65eMartin 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
1161177903Martin SjölundRemove the memory pool, using GC_malloc in more places (including the bootstrapped compiler)
d634810b18Adrian 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
8e76a86d9eMartin SjölundTail recursion
2581ff0bf1Martin SjölundBetter messages from +d=dynload
7f7ef637b6Martin SjölundAdd the pipes...
059cb5a798Martin SjölundSupport checking csv format in the library test
ca9fe19effOpenModelica Hudson[Janitor mode] Set auto-props
b08fc0522bMartin Sjölund- Adding support to compare results with csv-files - Adding python-script to convert the Buildings reference files to csv-files
10ab1de0c8Martin SjölundLinux fix
6b94399484Martin SjölundAdded support for ModelicaStrings_compare, and fixed the ModelicaStrings_skipWhiteSpace implementation
c1beab1164OpenModelica Hudson[Janitor mode] Set auto-props
7e434a61b1Niklas 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
df1e3ea840Martin 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
b695185195OpenModelica Hudson[Janitor mode] Fix tabs
5d8ac56ed6Patrick Marcel Taeuber- introduced new configuration flag (TEARING_HEURISTIC) for testing different modifications in Cellier heuristic (will be removed when finished testing)
cb1b2db996Mahder Alemseged GebremedhinFix #2285. Fixed issues with array slice assignments.
63d8680329Martin SjölundTail recursion
b19b90d647Per ÖstlundFix for #2383: - Replaced class restriction with specialized class in error messages. - Use pretty-printing of class specialization in ClassInf.assertValid.
5224cb3c3fMartin SjölundMake sure output is utf8
9911065c38Adrian 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.
719ef8031dOpenModelica Hudson[Janitor mode] Fix tabs
1d1a2dae58Patrick Marcel Taeuber- improved cellier heuristic considering the solvability - removed cellier2 - revised tearing testsuite
946e5e66c2Volker Waurich -fixed bug at partlintornsystem
38e47dc48fMarcus Walther- the hpcom module is now part of execstat - integer overflow in dumpGraphSccLevel fixed - benchmarksuite added to hpcom-testsuite
2f7a9c4bf0Adrian Pop- do not crash the compiler on getComponents(Modelica.Media.Air.ReferenceMoistAir) from OMEdit. - execute graphical api with +d=nogen,noevalfunc
a5414f2b97Volker Waurich- longestPathMethod can handle contracted nodes
e617dd0bc4Martin SjölundSkip generating the column for verified results if we don't have any result files set
c3c8d6f787Adrian Pop- properly display alias variables in XMLDump alias="" if there is no alias alias="cref" for alias alias="-cref" for negated alias
a4aa7c0435Adrian Pop- get rid of some more wrong missing each warnings
0a72399c7fAdrian 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
d7e8e34178Henning Kiel- remove() accepts '*' wildcards
8ecec00d17Per Östlund- Fix cref prefixing in NFInst.
52e4d0f7d4Adrian Pop- fix the hpcom tests broken by my previous changes
db3395e730Martin SjölundSwap reference and actual (was wrong order in the result-file)
5a0bb63610Adrian Pop- fix bootstrapping
e3e3a9e4a9Adrian Pop- fix the previous commit
a4e3fe989cAdrian 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")
fd1bbae1a4Volker Waurich- fixed some bugs when +d=partlintornsystem - removeSimpleEquations for the disjointed linear torn system
65858667e6Martin SjölundBump libraries
38ee5b6204Martin SjölundGenerate the plot with the correct prefix
225d6a28b8Martin SjölundUse old gnuplot heading (string headings are not supported on the test server)
778fde2f44Adrian Pop- when deducing unknown dimensions from modifiers handle also matrix, not only array.
aa38134a06Martin SjölundSome more fixes to build
e9be28f08cPer Östlund- Inline rem() operator so it's not output in flat code.
677fc4ba79Martin SjölundTail recursion
af948b452eWilli Braun- fixed bug for ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization, where endless assert were called
ceafebe115Martin SjölundTruncate long simulate logs. Change compression to gz (xz takes too long)
b19328cb15Martin SjölundSome fixes for the hudson version of gnuplot (I hope)
8a692bd8f9Martin SjölundTerminate the command
add16ec2ceMartin SjölundTerminate sed-command
e0dc55097aPer Östlund- Added clearDebugFlags scripting function for consistency.
747b92306bNiklas Worschechadded special zerofunctions for > and < relation
9b382731d0Martin SjölundCopy to correct directory
36222c6362Martin SjölundUpdated the model testing script to include the possibility of comparing simulation results
62f2dbafecAdrian Pop- remove wrong warnings about missing each - added test for this
4aa49f0a75Adrian 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
80315b1a0dAdrian Pop- fix a bad typo in Parser/Makefile.common - add -Wall in Parser/Makfile.in
db20ab5c51Adrian Pop- update Parser/Makefile.in too :)
0c8e945cd0Martin SjölundAdding API function diffSimulationResults, similar to cmpSimulationResults - Outputs a list of csv-files with the compared values (which might be interpolated)
8acb9a92caAdrian 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)
175c72fdaeAdrian 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
699c8adc3dMartin SjölundCevalScript.getConst: Use UMINUS instead of SUB for unary operator
faf6b13590Martin 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
2f4ed9efa9Martin Sjölund#2414 - Split the generated simulation into a more, but smaller functions in order to make GCC much more happy
93f5d58ff2Vitalij Ruge- reduction function call for numerical hessian - changed initial guess solver
b976b36b89Adrian 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
29ba71fa36Martin SjölundMove files to correct directory
eb23e31c4fMartin SjölundUpdates to the javascript target
de022bdc64Martin SjölundRun test correct (updated) script
b6b83f55a5Christian 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)
0855a8d1f1Martin SjölundNew convencience scripts for testing libraries
ef3990f2fbMartin SjölundUse correct types
ad82e9e312Martin SjölundOutput the correct time on simulation failure instead of -1.0
ddb1cb161dAdrian Pop- split initialAnalyticJacobian into several functions one for each sparsity pattern (gets the compilation memory down for Spice examples) - updated tests
219f108424Adrian Pop- update version to 1.9.1+dev
ca7288c21bMartin SjölundLimit log size and print less output
a4781cb088Adrian Pop- OpenModelica 1.9.0 release + updated version number + updated documents
c1bb93faaaMartin 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
ccd63d82a9Martin SjölundAdd working OpenModelicaBootstrappingHeader.h - do not commit changes to this file if you have been running an old omc
196c9d3a7cOpenModelica Hudson[Janitor mode] Fix tabs
5ac8e69759Vitalij Ruge- missing case for algebraic (objective)variables
03c21242e7Niklas 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
c0c33a4445Martin SjölundSet the filename explicitly instead of using __BASE_FILE__ (seems to be broken for large files)
2576b2448bMartin SjölundAlso do the substitution
99a9022d66Adrian Pop- link with -loleaut32 too (used by libExternalMedia.a)
daeed2fb56Adrian 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
2f33393ae0Martin SjölundTry to include stdout for succeeding tests
7a2ef82ccfMartin SjölundBuildModelRecursive.mos update: Now generates junit XML (to be tested on hudson)
e9e44d93cfOpenModelica Hudson[Janitor mode] Fix tabs
482614a97aPatrick Marcel Taeuber-revised backenddaeinfo, now related to recordstructure of BackendDAE.StrongComponent -fixed #2328 -revised Tearingtestsuite
d618a6b690Lennart Ochel- fix #2404
516d007122Martin SjölundUse __BASE_FILE__ instead of __FILE__ since __LINE__ messes up __FILE__
d207124f50Adrian 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.*
86c4faa0b2OpenModelica Hudson[Janitor mode] Fix tabs
ca255008f1Adrian Pop- reverted r17589 by request from Vitalij
e98e46ed35Vitalij Ruge- fixed Makefile
d684cd78beVitalij Ruge- numerical hessian rocking the optimization :)
4b41ce46bbMartin SjölundSome tail recursion
b70897a486Martin SjölundPass threadData from runtime function
db8dbf8457Martin SjölundDon't try to copy removed files
a32a7c89ebPer Östlund- Analyse derived type dimensions in SCodeDependency.
ee395b8de1OpenModelica Hudson[Janitor mode] Fix tabs
b33aae1fc8Marcus 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
f868564966Martin SjölundImplemented convert_lines.pl inside Print.mo
0b22bf8a46Vitalij Ruge- Codestyle - remove not needed function
ca5df488a3Adrian 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.
b6ea4e5a59Adrian Pop- fix MDT debugging (add mmc_gdb_listGet & mmc_gdb_arrayGet)
c763ad5f1bAdrian 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
a3aaa0bb22Martin SjölundAdd example usage for Modelica3D
422d8e0e2aMartin SjölundFix infinite recursion in configure
ab89f81099OpenModelica Hudson[Janitor mode] Fix tabs
17a4d7ded3Vitalij Ruge- added object function to DAE (Thanks Willi) - used symbolically gradient for optimization
37c7d92bcaMartin SjölundTail recursion
f5f3408bc3Martin SjölundFix potential read access to local stack memory after returning from a function
7b27796a97Martin 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.
916b920329Adrian 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
64bf40e55eMartin Sjölund#2375 - Pass around threadData* to all functions called rather than using pthread_getspecific()
72bfd0dc85Martin SjölundFix typo in configure (wiped CFLAGS)
98c9f2bacdMartin 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.
6772667257Adrian Pop- fix bug #2402
ffb07d759aAdrian Pop- correctly unparse WILD for saveTotalSCode
b8a8b2ff1eAdrian Pop- fix SimCodeTest.mos on test.openmodelica.org - fix ADD_METARECORD_DEFINTIONS typo (add missing I) -> ADD_METARECORD_DEFINITIONS
a8e870a9a4Martin SjölundIncrease the timeout
09a4b3c09cAdrian Pop- fix configure - fix tests
564cc1056dVitalij Ruge- used existing information for checking ipopt
ae04eb0dc1Vitalij Ruge- fixed fix
86beb299ccVitalij Ruge- fixed pointer
9f1697e4d5Martin SjölundBetter checks for -fPIC and -march=native
f613cfc8f0Martin SjölundUpdated build system for cross-compilation (most libraries compile for mingw32 on Linux)
7eca9f4835Christian SChubertimproved the output of LOG_NLS_RES a little
e5695c1426Lennart Ochel- try to use more uniform error messages
e1c8aeb454Martin SjölundUse 5 minute limit for EngineV6 simulation, etc
e37d99ff38Adrian Pop- fix +target=msvc (more DLLExport)
f3e2188d80Christian SChubertintroduced new debug flag LOG_NLS_RES into simulation runtime, to monitor every evaluation of the residual function
1ffaf91eecVolker Waurich- inline function calls with asserts and add the corresponding assert statements to the BackendDAE
8315f23f05Adrian 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)
b776364e6dAdrian 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
b4b605ba8aMartin SjölundUse the latest FMIL (which should allow .a-files to be used without compiling a .so)
650a8accb6Per Östlund- Handle assert in new instantiation.
69492b2987Adrian Pop- fixes to get separate compilation to work on Windows.
2aaa3d7870Martin Sjölund- Allow configuring ar
f305f80a4dAdrian Pop- fix compilation.
6501baefaearunkumar palanisamyunparseElementattrStr() for unparsing parallel variables of parmodelica
5edd02ca83Christian SChubertadded openmp flag to msvc makefile if hpcom is enabled
06c835e98aMartin SjölundFix FMIL (needs patch; can't compile only static version)
50d44a154dPer Östlund- Handle more than one dimension in Static.getRecordPath.
6397875ca9Martin SjölundPass CC and CXX to more 3rdParty projects
96e93d05f6Martin SjölundLinux mingw32 is case-sensitive
81790643cdMartin SjölundAdded annotation `__OpenModelica_messageOnLoad=str`, which displays a custom notification when loading a library - Added disclaimer when loading TSP
fa1c4f37a6Per ÖstlundFix for #2355: - Handle extension of local class with the same name as the extending class.
390afd3c31Martin SjölundFix parsing, update tests
34ae14caf0Martin SjölundFix parsing
4a5e40b43aMartin SjölundAllow parsing of non-UTF-8 files (give a warning, fall back to 7-bit ASCII)
eb302775b9Per Östlund- Updated error indices to make them unique.
f539c4c846Martin SjölundFix bootstrapping
f80076e9adMartin SjölundHandle classDirectory() - returns the directory of the mo-file
d7a4b3c3c2OpenModelica Hudson[Janitor mode] Fix tabs
c473808540Marcus 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
de38cd3c67Adrian Pop- unparse constrainedby in SCodeDumpTpl.tpl
effdcc96cbMartin SjölundComment the change
ae16cc1547Martin SjölundFix for compliance suite xml
30d77f8d7bNiklas Worschechadded semiLinear Modelica function to cpp template
39f02c1a6aMartin SjölundBoom! (Forgot to remove debug code)
d585de673dNiklas Worschechfix in cpp template and SimCodeUtil for local variable, added modelica_mod_int to cpp template and enumerate
0325c8fc28Per Östlund- Improved handling of builtin functions in new instantiation.
8a5544f551Martin SjölundTry to avoid MPI-related errors in liblis
6d733744b8Martin SjölundInverted message for expected failure (was printed for the wrong case)
71b34763f2Adrian 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
0b323a3af6Martin SjölundFix for the diff script
f5a975af06Martin SjölundFix the new python parser to accept multi-line strings
5fe683a7d9Adrian 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)
38514cb109Martin Sjölund- Added new option for rtest (ulimit stack size) - Fix compliance suite error-messages
9a829f5b6fMartin SjölundUpdated BackendDAEEXT_omc.cpp to be the same as the RML version (remember to update both functions if you make changes)
351a273b57Martin SjölundDo profiling of linear functions correctly
3c44082938Martin 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)
9a538ab352Martin SjölundFix parsing error
ad19532a74Martin SjölundGenerate SVGs in directory Icons since we cannot tar this many files in one directory
39f1734faeMartin SjölundFix from debugging
38867f2423Martin SjölundBump version number
9ba0f97daeMartin SjölundAlso generate icons for the index page
2fae61bb39Martin SjölundAlso upload the SVGs
b4162cb393Martin SjölundLink to the online versions of the release notes instead of having a copy of trac inside omc
8ca87be1ddMartin SjölundBetter error-message when failing to parse a package
caf187f315Volker Waurich- some changes at the checkForExecutionCost function
86adaea751Martin SjölundRun the correct command from GenerateDoc.mos
7742c9dd1bMartin SjölundSet a ulimit to prevent one package from spinning in place; the SVGs are not critical
fe9ea7934cMartin SjölundPrint more relevant error-messages, handle UTF-8 text icons
0dfdd7f3beVolker Waurich- disabled checking of exeCosts in validateTaskGraphMeta
4f57a09024Martin SjölundGenerate documentation for all classes...
65fa5d8ecbMartin SjölundFix compliance suite
019b5228baVolker 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
e386e0435eMartin SjölundAlso add message to the xml that says expected failure
bfcdc00aebMartin SjölundAdd links to the icons
ef64ad3a59OpenModelica Hudson[Janitor mode] Set auto-props
0b3231c448Martin 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.
cfecabc24eMartin Sjölund#2369 - Unparse Absyn.WILD() as "" in Modelica and "_" in MetaModelica
00e19a4c75Martin Sjölund#2368 - Fix generation of empty array
f357de4d66OpenModelica Hudson[Janitor mode] Fix tabs
56f809b52fNiklas Worschechsecond try to fix event output in cvode , cpp runtime test should work now
0615079001Niklas Worschechchanged event output in cvode, output before and after the event
6162b9de7bMartin SjölundDon't rm stuff from the root...
5b704d5c8aMartin 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)
e7332bc4a4Adrian 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.
80c7fc0053Martin SjölundAdd messages for the compliance suite
61808c2e2eOpenModelica Hudson[Janitor mode] Fix tabs
328dd6276eNiklas Worschechfix in covde for event output
e4edf216edAdrian Pop- more hacks to support relative file names when running testsuite + fix filename in loadFile and runScript + fix filename in ModelTesting.mos script
54f49e404bOpenModelica Hudson[Janitor mode] Fix tabs
ea16765493Niklas Worschechfix in cpp runtime for time events, time events are reseted after handled
b11f5426a4Adrian Pop- fix Cpp tests (use -fPIC for libOMCppMath on Linux)
2aabb85a38Adrian 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
2307c98f19Adrian Pop- fix the fix :)
ed535d8c37Adrian Pop- fix r17384, only prepends if directory does not exist as the sandbox is only used in partest and not regular make test.
6b4d7fb05fPer ÖstlundFix for cppruntime tests: - Made compareSimulationResults more partest friendly.
17b3996f0aOpenModelica Hudson[Janitor mode] Set auto-props
2e3bb38484Niklas Worschechadapted kinsol to changed algloop interfaces
088656b406Adeel Asghar- Added JavaScript in simCodeTarget help text.
c5d981fa0bMartin SjölundFix last commit (commit from dev instead of laptop)
faacceacceMartin SjölundFix getClassInProgram to no longer spin for some cases
fd3299fe4eNiklas Worschechfix for exception handling in cvode
d2a90beec8Adrian Pop- fix Windows simulations, use double quote instead of single ones!
be7ea89eadAdrian Pop- attempt to fix MSVC runtime build. some files changed name from .c to .cpp (why?)
eb2eca9e2eMartin SjölundAdd simCodeTarget=JavaScript, which compiles to .js and creates a .md-file
7b2a2ee731OpenModelica Hudson[Janitor mode] Fix tabs
ec7bcf9a8cMartin SjölundGenerate LLVM bytecode of libraries for use with emscripten - Use make -C SimulationRuntime/c emcc && make
eea2544df8Niklas Worschechnumber of intervals is passed to the cpp runtime fix in cvode for time events activated dens out in cvode
c86ba83509OpenModelica Hudson[Janitor mode] Fix tabs
e5958c6afcNiklas Worschechadded time events in cpp template for sample function BouncingBall test use CVode solver now
6bc93ebb85Martin SjölundUse lines in the graphs instead of linespoints
2e02fa9506Martin SjölundFix array types for PartFn (fixes Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX)
6358903f7eNiklas Worschechfix in cpp runtime cvode, used wrong cvode zerosearch return value
366607740aAdrian Pop- make functions tail recursive (matchcontinue -> match) to fix some bootstrapping tests
158cc4c33eMartin SjölundUse +d=initialization for tests
4f63527185Martin Sjölund#2362 - Fix scalar(size(x))
a15d51916cAdrian Pop- more playing with alias set selection (consider also the depth of cref in the binding)
aeecd5e1d9Adrian Pop- fix typo Aliasset -> Alias set - change alias start value selection heuristics, try to avoid zero.
a479465a85Adrian 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
1afb73fa6cOpenModelica Hudson[Janitor mode] Fix tabs
c2e03fee93Marcus 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
76bf098e46Martin SjölundTry to fix BuildModelTest.sh for empty packages
293c06d6edAdrian 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
1e96fdd781Adrian 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
5b5f4f8ad7Adrian Pop- at least these models started to work: Modelica.Electrical.Digital.Examples.RAM ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A some models in: ModelicaCompliance.Redeclare.ConstrainingType.*
fa6f4da5d5Per Östlund- Fixed broken connector balance checking.
be7d6c7bbfVitalij Ruge- using pkg-config for checking own ipopt package
afc8f6dce6Per Östlund- Added debug flag to disable generation of equations for unconnected flow variables.
83437fb055Adrian 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.
2b8b41cf4fAdrian Pop- fix bug: #2359 and added test
135c8dd9d1Adrian Pop- dump class annotations in SCodeDumpTpl.tpl
57740a69f7Adrian Pop- attempt to get the same output on any system by using fflush(NULL); where messages are printed
bec7e26771Adrian 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.
7de6b1c7b9Adrian Pop- attempt to fix +target=msvc compilation and test.
fa0b7b9d62Adrian 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
afdd3eb19bAdrian 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
aee0904500Adeel Asghar- Set the legend position to top by default gives more space for the plot curves. - Remove the title text "Plot by OpenModelica".
730c4fc622Jens Frenkeladd target testcmsvc to test cruntime with msvc
18ba6fe239Christian SChubertruntimeCPP: added #defines for state variables, so that they can be found when occuring in the source code
e8a4441cadMartin SjölundAllow the normal case: no openmp and no hpcom
22790d8789Per Östlund- Changed swedish translation of OMC: * omfattning => definitionsområde, räckvidd * utplattning => utflatning
b33ee64751Martin SjölundHPCOM fixes (run gcc in the testsuite instead of clang; removed some ugly hacks)
52d01ca829Adeel Asghar- Added a new LegendPosition option to plot command.
509176f15dAdrian Pop- do not use cat, use fgrep -v "... ok" instead to filter tests that are OK.
62148f33a4Martin SjölundAdded configure option to choose openblas target architecture - Reduced tolerance on rectifier to work on both nehalem and sandy bridge
c5c4e6721eWilli Braun- added usage of pkg-config also for own ipopt package
ac5ecc58b8Christian SChubertminor bugfixes for cppRuntime: sample needs to be implemented.
09a07969f9Patrick Marcel Taeuber- Added comments and dumps to omcTearing - Added two non-linear tests to tearing-testsuite
6a1e56e844Christian SChubertcpprutime: added all input-, output- and aliasvariables to csv output. Now BooleanNetwork reports "Files Equal".
7ee6296d3eMartin SjölundTry to build with the same CC to get more consistent results
72cde32527Martin SjölundFix configure script with openblas
3d9fd5ff9eMartin SjölundCompile with our own libopenblas unless the user configures --with-lapack=-llapack or similar
030a5f4c0aMartin SjölundThread safety for Print.mo
5f91e75dc6Per Östlund- Updated swedish translation of OMC. - Added some comments to NFLookup.
71abb8ad2cLennart Ochel- typos
c599e4769aPer Östlund- Fixed bootstrapping.
83b2d70b4bPer Östlund- Reverted accidental change in SCodeUtil.
a31943df43Per Ö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.
4842d7c875Martin SjölundOnly loop through the array
28261e261eMartin SjölundFix windows initialization of the jump buffer using pthread_once
d599e36d79Per Östlund- Revert fix for System_forkCallJoin, seems to break bootstrapping.
17ef6595f7Per Östlund- Fixed bug in System_forkCallJoin. - Some other minor fixes to keep clang happy.
f1ee883e45Christian SChubertruntimeCPP: save every time-varying variable in csv file. Needed for result comparison.
a3c9c53e91Martin 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
b987e654e9Christian SChubertsmall bugfix in simulationResultsCmp: filename in error message was wrong and thus misleading
83bc76ca77Niklas Worschechfix for struct access in cpp template
c7c48adeceChristian SChubertcppRuntime: install sundials libs, if enabled
716c82130cMartin SjölundMaking the ANTLR parser thread-safe
e6af23d22eAdrian 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
6a33fbc92eMartin SjölundUse the old forkCall functions instead of the new experimental one
ba50037820Martin SjölundFixed bootstrapping? If it doesn't we need a new tarball
ad8946e4dcMartin Sjölund#2332 Fix thread safety for MMC_TRY THROW and CATCH
1209179327Adrian Pop- fix error in previous commit \n -> <%\n%> in Template/CodegenC.tpl.
4c0e1a44eeLennart Ochel- fix flag descriptions
24e30ae560Adrian Pop- TSUB(CAST(tuple)) -> CAST(TSUB(tuple))
f0d5ded5c9OpenModelica Hudson[Janitor mode] Fix tabs
8d2a30cf14Martin SjölundFix end identifier
b2c954441cHenning Kielimplemented builtin command remove() to allow for removing directories recursively
9e27e36ef6Niklas Worschechsolver method passed to the cpp runtime, (using cvode instead of dassl)
ae05b81be8Niklas Worschechfix for divide array in cpp runtime
6f314e7669Niklas Worschechfix for divide array in cpp runtime
08611e8cb5Niklas Worschechfix for array access in cpp template
c623a9c0b6Martin Sjölund#2341 Support loadString() parsing optimica
8d167da05fMartin SjölundAdd optimica flag to listed grammars
cf072ef796OpenModelica Hudson[Janitor mode] Fix tabs
6a8337a75aVitalij 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)
092831b90cLennart Ochel- update configure help text
65f84e221aWilli Braun#2341 - fixed remove alias for optimica
fec031e215Lennart Ochel- minor code simplification
d619c21fffHenning Kielchange semantics of mkdir() command to match Unix "mkdir -p" (create subdirs if required)
f88ec56c51Volker Waurich- mergingSimpleNodes considers now endnodes
f9fa40edd6Willi Braun - reorder and removed not used types in BackendDAE
1e2d24c16eLennart Ochelmake public functions protected: - OnRelaxation.dumpMatrix - OnRelaxation.transformJacToMatrix - OnRelaxation.dumpJacMatrix
a0d98c542dOpenModelica Hudson[Janitor mode] Fix tabs
95f2681875OpenModelica Hudson[Janitor mode] Set auto-props
9438ebbb71Niklas Worschechactivated Cvode in cpp runtime
f861d377d8Niklas Worschechfix in cpp template for asub operator
fd3a43dbb6Niklas Worschechfix in cpp template for range operator
036e81f8c9Lennart Ochel- upper and lower case
afa6677265Lennart Ochel- minor changes (fix description strings, comments, typos, ...)
2fa4b4d5e6Henning Kielimplemented builtin command mkdir() to avoid trouble using system("mkdir -p dir")
49885647ebNiklas Worschechfix in cpp template for pre operator
6d055757c2Adrian 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
838279f6b9OpenModelica Hudson[Janitor mode] Fix tabs
971a5bd3b2Niklas Worschech-starttime,stoptime,stepsize are passed to cpp simulation. Added range to cpp template,
085acc2a17Per Östlund- Lots of changes to the new instantiation.
442b97ff69Adrian Pop- empty defines for some openmp functions if we don't have _OPENMP
854bb540b7Adrian Pop- fix wrong negative logic.
26dfba7cc8Adrian Pop- only generate #define HPCOM if compiler is not CLANG.
af0c4802d3Adrian Pop- continue on fix ipopt linking flags on Linux using a quick hack for now
8275ecdf15Adrian Pop- empty defines for some openmp functions if we don't have _OPENMP
8d89e1cd79Adrian Pop- fix ipopt linking flags on Linux using a quick hack for now
2a1008592dLennart Ochel- fix comments (typos, ...)
5873092492Adrian Pop- attempt to fix hpcom tests on CLANG by only adding -fopenmp if the compiler is not clang.
1937f1a574Adrian Pop- fix FMI tests - force static build of fmilib on Windows and shared build of fmilib on Linux/Other
1b92d899e8Lennart Ochel- minor changes (e.g. removal of unused local variables, typos, …)
8de2ae9489OpenModelica Hudson[Janitor mode] Fix tabs
69f7755f1eMarcus 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
de67147166Martin SjölundDon't compile with ipopt if we lack kinsol
f8d945100dMartin SjölundCheck if it is possible to link ipopt before we start using it
88beaf0a1bMartin SjölundShared fmi lib breaks bootstrapping
2ca88f6e07Martin SjölundUse dynamic FMI library. Still keeping C-runtime static because otherwise the fmi library cannot read strings...
a949c35eb6Martin SjölundFix configure on Ubuntu (ipopt on ubuntu is not linked against metis)
c6008727f6Lennart Ochel- minor fix for last commit
400de1dcf5Lennart Ochel- minor formatting changes
001e6e6c76Lennart Ochel- try to improve readability of optimization source code (using spaces, indention, …)
e0cc6ae521Lennart Ochel- move testsuite/simulation/optimization to testsuite/openmodelica/cruntime/optimization - include optimizations tests into testsuite - remove CPU time dump for optimization
9cae56ea16Lennart Ochel- mumps and metis are also needed for ipopt
24b1b9d888Adrian 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.
9c2abed3c6Adrian Pop- add include: INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/optimization so that MSVC can find interfaceOptimization.h
0e701321f0Christian SChubertattempt to fix cppRuntime test, that I broke earlier
911461dd8eMartin SjölundLook for ipopt by default
8991fcb256Christian SChubertsimulationruntimec: added #include "gc.h" as GC_malloc was unknown to msvc
c4cd06db64Christian SChubertfix compilation with target=msvc: compile gc and add it to the makefile
8c35341c1bMartin SjölundNever define function implementations in headers. Use macros or something.
0651b8d015OpenModelica Hudson[Janitor mode] Fix tabs
13f8f8ee99Lennart Ochel- minor changes
c82b8854b6Lennart Ochel- remove unneeded defines because of last revision
342447ad6aVitalij Ruge- use ipopt function only if ipopt is known
3ceecf0484Lennart Ochel- define types if needed (?!)
b5c1e529f2Vitalij Ruge- see r17086
5b9b40e359OpenModelica Hudson[Janitor mode] Fix tabs
aa7ffaac54Christian SChubertcppruntime: minor bugfix linear systems, copy rhs into residuals
1cd1da9ca2Christian SChubertcppRuntime: fixed build with msvc
227edf45b5Christian SChubertminor bugfix cppRuntime: linear systems
b7699f9b6fNiklas Worschechfix in cpp template for linear systems (wrong dim variable was used)
68d9e6f0cbAdrian 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?
bb33c63ca5Vitalij Ruge- missig files for last commit
c2656a8e70OpenModelica Hudson[Janitor mode] Fix tabs
a872839148Vitalij Ruge- fixed simplify - added rules for jacobian - added optimization based on ipopt (thank everybody for help)
678e69bf31Christian 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.
aff2c245bcMartin SjölundSome stack overflow fixes
d1b206e822Martin SjölundTail recursion
28b3050759Martin SjölundTail recursion
b94ef7379fHenning Kiel- fix syntax of PO file
b2985763b9Henning Kiel- update german translation of OMC. - ignore generated files
77a3051443Martin SjölundUpdate bootstrapping sources, strdup workarounds for string assignments
bbe882a7edMartin 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)
ad97068938Adeel Asghar#2327 - Don't force the MetaModelica grammar for MDT. Use the preferences value if you want to set MetaModelica grammar.
4997fd71c8Martin SjölundStack overflow (instantiation of HumMod can now be done in 512kB stack on bootstrapped omc)
d65ed85fb8Per Östlund- Fixed propagation of file info for duplicate enumeration literals error.
8967dd5870Per Östlund- Updated swedish translation of OMC.
4dca48b9c4Martin SjölundFix stackoverflow, expected output
f0b263ff86Adrian Pop- fixes to inner outer prefixing when prefix is Prefix.NOPRE (top scope). - testsuite/flattening/modelica/scoping/InnerEnumeration.mo to test the fix.
8fccb74696Lennart Ochel- public function evaluateAnnotation is not used. Should it be removed? - update some description strings
50f5219d3fLennart Ochel- remove unused debug flag "frontendInlineEuler"
f4b596a550Lennart 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)
024e3ea026Adrian Pop- there is no fsync for MinGW/Windows, use FlushFileBuffers
010089b9faMartin SjölundUse cat instead of echo ...
4aee6b75dbMartin SjölundTry to fix complaince suite oddities
83b099e3d0Martin SjölundTail recursion
ff44f4b564Martin SjölundFix FMU compilation
07c66dfe3aMartin SjölundFix simulation builds again (both OSX and Linux should work)
ea30ceec07Adrian Pop- fix Windows build for simulationruntimecmsvc
bc1c42e424Martin SjölundOSX compilation fixes for lis
ec6b4fedddMartin SjölundFixes for lis compilation on Linux
51307391e6Martin SjölundFix stack overflow
c8d818767fOpenModelica Hudson[Janitor mode] Set auto-props
749ffe6084Marcus Walther- linear solver "lis" with sources added - please update OMDev if you are working under windows
71b529f443Adrian Pop- more classes needs to be deleted (because they generate errors in for different scopes).
da2d7981e5Henning Kiel- fix for rev.17014 (pass option to linker via -Xlinker when using gcc/g++ as linker)
4d37e18eb0Martin SjölundFix stack overflow
e8fc3c42c8Martin SjölundParse the compliance suite using Modelica grammar, not MM
d7bf41a8dbMartin SjölundFix for stack overflow
ff80dbe7b9Henning Kiel- use "--export-all-symbols" instead of "-export-dynamic" for windows (PE targets) as suggested by the linker
31a73c9decMartin SjölundFlush stdout at end of execution since it's not automatically flushed when piped to files on Linux
1b2d4d0ec4Martin SjölundDisable parallel marking (causes the process to spin at exit)
38fde2b918Martin SjölundSome fixes for valgrind crying wolf
515fbaeb4dAdrian Pop- try to fix the Windows testsuite, add -lpthread to the simulation code linker flags.
88eea86474Martin SjölundFix a typo
68c41e1cb2Martin SjölundFewer global symbols, compile fewer functions
2bc2eeb199Henning Kiel- fix infinite recursive loop (call Implementation instead) - include winsock2.h on windows, so that the code compiles there as well
ba2f50630fLennart Ochel- improving the code structure
49c8ab87d1Adrian Pop- fix Windows build (include the needed headers).
a1213a1008Martin SjölundTry new features for separate compilation - Fix socket implementation for bootstrapped omc (OMShell-terminal should now work)
5a53c24317Lennart Ochel- fix commented descriptions
b957f4ba05Lennart Ochel- remove irrelevant and often wrong information from some description strings
ccb775e570Lennart Ochel- attempts to get realtimeTick and realtimeTock for RT_CLOCK_BACKEND on the same level
e46db64412Lennart Ochel- fix last commit
a164f0a5aaLennart Ochel- change some description strings
f4bd012117Patrick Marcel Taeuber- Cellier Tearing algorithm completed - Introduced modified Cellier Tearing (named: cellier2) - Tearing Testsuite revised
f6d0d146d2Lennart OchelReintroduce +d=doLinearTearing to keep backwards compatibility. This will be reverted after the next release.
7b82dba865Martin SjölundAdd text that "debug"-flags are also for experimental features
f1136af6aaLennart Ochel- change +d=doLinearTearing to +linearTearing
569c48d4e0Lennart Ochel- update inner equations for nonlinear systems (fix for #2324)
7d177c117bAdeel Asghar- Removed some unused stuff. - small fixes.
27a8a7dbacLennart Ochelimprove condition expression
d54a8f038bLennart Ochel64-bit windows api is not available in mingw
6d92f1f6d8Martin SjölundTry to fix MinGW compilation
adde5c1aeeOpenModelica Hudson[Janitor mode] Fix tabs
05a82d6911Martin SjölundBootstrapping fixes for OSX and low-memory targets - Added API call to find out system memory size
b7a57ca260Lennart OchelConsider also the inner equations for nonlinear equations. These may also be nonlinear. This is necessary at least for some tearing approaches.
c5c8a913cbMartin SjölundInitial makefile changes for osx bootstrapped omc (which crashes in the GC when compiled with clang)
3ec6af25cfPer Östlund- Updated swedish translation of omc.
427555a24fMartin 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)
6f7d794a3aMartin SjölundFix for OSX
f9165fa97aLennart Ochel- fix for #2310
a15366d1d7Martin SjölundEnable running templates in the bootstrapping target
318180c316Lennart 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'
ac65998499Martin SjölundWindows compilation
18e300fecfMartin 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).
291270ca3ePer Östlund- Updated swedish translation of omc.
e7a3f51505Adrian Pop- added dumpSCCGraphML to dump Strongly Connected Components as GraphML.
cedad80ca2Adrian 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)
f7581ccaa6Lennart Ochel- fix last commit
d94b6f4321Lennart Ochel- fix initialization of pre variables
166f1c1579Martin SjölundDon't link hwloc against all simulations
5f00158393Martin SjölundMake DAE traversal function tail-recursive, possible to only call on rhs of statements
96b7fe8f7cMartin SjölundRevert r16871 (needs lis source code for linux, or ifdef's to not compile against it)
23a9f28d48OpenModelica Hudson[Janitor mode] Set auto-props
1d12ed1386Marcus Walther- linear solver "lis" added
8945a66b38Lennart Ochel- fix initialization of pre variables (at least for states) - fix #2263
44b1aa953dPer Östlund- Updated swedish translation of OMC.
d1186fb7f7Martin 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
8fef82bab7Martin Sjölund#2316 Add -lblas to compilation command in order to work on OSX 10.6 and earlier
5cee30ab70Lennart Ochel- second try: add x = pre(x) for all continuous-time variables to the initialization system
835da1f5b3Adeel 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.
84c05899baNiklas Worschechfix in cpp template for print time in nonlinear solver error message
ad8a029ec4Martin Sjölund#2309 - Print error-message specifically for ASUB on lhs expression
7e9628c499Martin SjölundTail recursion
26b7ec3a48Niklas Worschechfix for loading math lib in cpp runtime
5d8b92db9bMartin SjölundBootstrapping fix
386c282a78Martin SjölundFix bootstrapping
05e4ab631dMartin Sjölund- Make it possible to change ModelicaAllocateString to use garbage collected allocation in the bootstrapped compiler
2ceed8e811Martin SjölundAlso install CPP runtime for bootstrapping target
cab3a849b0Martin 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)
48f74daaa2Lennart Ochel- revert last commit
4aaf327f05Lennart Ochel- add the equation x = pre(x) for all non-discrete variables to the initialization system
c5e0c5ebd4Lennart Ochel- remove irrelevant information from description strings (e.g. the identifier that belongs to the description string) - minor changes to improve consistent formatting
8af4966672Lennart Ochel- change more description strings
fb8e31735fLennart Ochel- change description strings
ffe7ae6d3cLennart Ochel- change format of description strings
a8872933e4Lennart Ochel- improve error message for #2310 - minor formatting changes
336d018e6cLennart Ochel- fix constant declaration - change init_env to initEnv on page 95 in OpenModelicaMetaProgramming documentation
b8943cce6aAdrian Pop- more -fPIC for Linux.
445e2676abMartin SjölundFix bootstrapping header
fd7ca0131bAdrian Pop- more attempts to fix SimulationRuntime CPP build. - use -fPIC for UNIX - #include in GlobalSettings.cpp
2deda72b98Adrian 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.
da5a08db4fAdrian Pop- more attempts to fix SimulationRuntime CPP build. - fix weird includes
4a49ded404Adrian Pop- more attempts to fix SimulationRuntime CPP build. - fix ISimdata.h case, should be ISimData.h
ba364459d4Adrian Pop- attempt to fix SimulationRuntime CPP build. - fix IAlgloopSolverFactory.h case, it should be IAlgLoopSolverFactory.h
28b2f429b4Adrian 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)
e33fb175ccHenning 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
dacfab91e7OpenModelica Hudson[Janitor mode] Fix tabs
e2b9d381aaOpenModelica Hudson[Janitor mode] Set auto-props
38d3208b95Niklas 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
0d7c818a09OpenModelica Hudson[Janitor mode] Fix tabs
1199632c81Marcus 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
c64a038dbfLennart Ochel- fix Windows build
2556776472Martin SjölundAdded API call numProcessors(), which returns the number of physical cores (if available), falling back to returning the number of hardware threads
1b2385b5b0Martin SjölundFix index of metarecords when comments are used within uniontypes
1215d9664cMartin SjölundSeparate compilation now works with dependency analysis. There are still some tweaks to be performed though.
170cc45c5ePer Östlund- Fixed flag handling for +debug and added +h as synonym for +help.
80fdb94348Matthias Arzt- fmu c++ traget, fix bug introduced in revision 16736 when compiling on 64 bit linux
fa170fdb18Martin SjölundMore refactoring
d01eca7d42Martin SjölundMore refactoring
ea2e9d278dLennart Ochel- use consistent naming in uniontype Context - change comments to description strings
e9165df2f5Adeel Asghar- added comments to parameters.
060316d81dLennart Ochel- fix indention
faa5d2ba49OpenModelica Hudson[Janitor mode] Fix tabs
e37a229c97Vitalij Ruge- CodegenC for Optimica
88b5afd8deAdeel Asghar- fixes for FMI co-simulation stand alone.
d265de4afcMartin SjölundMore refactoring
fa87cc5d3bLeonardo Laguna- Changing the scope of a function used by MathCore
44afde4a69Henning Kiel- ansi C fixes
1b03bf7993Leonardo Laguna- Small fix for HashTable6.mo
2ce9bd595bMartin Sjölund#2297 Remove some duplicate elements
18b53675d5Mahder Alemseged Gebremedhin+ Improved handling of logical operation on boolean array types.Improved r16724.
60d5815329Lennart Ochel- remove unnecessary import statements
097a5ec86aMartin SjölundMore refactoring (fewer inter-module dependencies)
6d4d62a750Marcus Walther- added a Scheduling-Module for hpcom - added a method to create a transposed hpcom-taskgraph
1f15fb499bLennart Ochel- count number of discrete reals for simulation runtime - fix numeric initialization of discrete reals - update test cases
f8a70e35f3Lennart Ochel- fix encapsulateWhenConditions (avoid additional initial equations)
23506aa5b0Lennart Ochel- remove unused modules after refactoring
1b53b39c2dMartin SjölundSome refactoring
2739ef39b6Martin SjölundSome refactoring to break dependencies
f27058c9e3Martin Sjölund#2294 Simplify sign(constant)
aa1c0896e0Marcus 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
30bbe40c91Matthias Arzt- C++ Target and SimulationRuntime: add return value to "update" and "handleSystemEvents" which indicates if an state variable had been reinitialized.
a34bf4f56fMartin SjölundFix code generation for subscripting record arrays in equation context
85638871d4Martin SjölundReally turn off trying to find OM installation
a34e5598a5Martin SjölundFix compilation with CORBA disabled
13c47a54f9Martin SjölundTry to fix Windows build
6b2d5ea50fLennart Ochel- revert r16720 because it still causes errors
0d59bae912Henning 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
f7c8e5a4c3Mahder Alemseged Gebremedhin+ Handle boolean array literals too, not just array crefs.
1327209268Lennart Ochel- recover r16717
d0b51357f2Mahder Alemseged Gebremedhin+ Fix r16715.
efd48e56c0Lennart Ochel- revert last commit until Hudson is at least almost happy
a4ced5ee88Lennart Ochel- count number of discrete reals for simulation runtime - fix numeric initialization of discrete reals - fix encapsulateWhenConditions (avoid additional initial equations) - update test cases
260801a48cMartin SjölundBump MSL version to RC1 (+1 commit so it parses)
579ef474b0Mahder Alemseged Gebremedhin+ Improved handling of binary logical operations on boolean arrays (fixed #2286).
a79ba421a9Matthias Arzt- fix wrong string buffer size calculations in fmi import
8e822ec358OpenModelica Hudson[Janitor mode] Fix tabs
7808886c20Marcus 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
384bb3e614Adeel Asghar- Added a named argument useQuotes to getExtendsModifierNames. Returns the array of strings where each string is enclosed in quotes if useQuotes is true.
99d7b573aaVolker Waurich- added new functions to dump information about criticalPaths and graph levels
5c4956227bMarcus Walther- second fix for RDTSC(), hopefully this will work
75a43d7357OpenModelica Hudson[Janitor mode] Fix tabs
82fd236b6aMarcus Walther- fix for RDTSC() and visual studio compiler
45d9afe78fMarcus Walther- added some comments to HpcOmSimCode.mo - removed the print output of the critical path - updated the hpcom testsuite
5eb2612ebeOpenModelica Hudson[Janitor mode] Fix tabs
533b5897ebMarcus 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
336ab4b283Adeel 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.
a11f647457Volker Waurich- some changes on the taskGraph-function longestPathMethod to make it faster
32aedaf4dfVolker Waurich- modified taskGraphTests - minor changes in the longestPathMethod
484d6ac104Volker Waurich-longestPathMethod can handle empty TaskGraphs
c0f43fe384Volker Waurich- add longestPathMethod for computing criticalPath and nodeLeveling on taskGraph - removed some unused stuff - fixed bug in rootNodes in taskGraphMeta for the ODE-system
7e78e90bcaMartin SjölundFix assignment to records in tuple assignment calls
20239aa2fcOpenModelica Hudson[Janitor mode] Fix tabs
87a1ebde62Marcus Walther- Renamed compareTaskGraphs to checkTaskGraph, because the execution and communication costs are now checked too
b177aba5a4Lennart Ochel- disable not used function modPar - experimental call graph for Main.mo
bfcf4be209Matthias Arzt- fmu export for c++ target, minor chances, make it compile with mingw on windows
03b2fa0c87Marcus Walther-fixed missing modification of GraphML.addEdge in FGraphDump.mo
a7ad7cf2d0Adeel Asghar- getSimulationStepSize returns boolean value telling the user to take step or not.
4ab95c99b5OpenModelica Hudson[Janitor mode] Fix tabs
157d533ba1Marcus 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
439531cbecMartin SjölundBump MSL to latest
764d7b9268Jim NutaroDerivatives in delay expressions were translated into wrong C reference. Fixed.
0a16d9fdfbLennart Ochel- disable unused functions
027b39669dOpenModelica Hudson[Janitor mode] Fix tabs
f69c199419Marcus 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
083868226aAdeel Asghar- Set FMU version text.
3ecc7b584cLennart Ochel- disable unused functions - Should these be completely deleted?
4eb195c012Lennart Ochel- disable unused code
604a534f02Volker Waurich- adapted communicationCosts for the subsystems in taskGraphMeta - improved nodeDescription for .graphml output
b8c2c562b7Lennart Ochel- make functions protected
5fe9366dbeAdeel Asghar- Added function to get the step size value.
cb28bbc17bLennart Ochel- minor fixes
f2db4eaac7Lennart Ochel- fix #2288
c57d52b4b6Lennart Ochel- prepare postOptModule BackendDAEOptimize.addInitialStmtsToAlgorithms - this replaces the previously existing function BackendDAEUtil.expandAlgorithmsbyInitStmts
94d24b4e0aLennart Ochel- edit desc. strings
6affad5634Lennart Ochel- edit desc. string
c550c7c57aLennart Ochel- try to use more uniform names
ea350d35cdLennart Ochel- minor changes
ef9e327190Lennart Ochel- fix inconsistent flags iim and iom
ef81fa6f7dLennart Ochel- rename BaseHashSet.hashSetCurrentSize to BaseHashSet.currentSize
4686e7b65cLennart Ochel- minor improvements of "RemoveSimpleEquations" dumps
b3568813a1Lennart Ochel- add blanks to make the code easier to read
59907f9b70Henning Kiel- ansi C fixes - reworked string trimming - fixed horrible "do-not-free-constants" code - put single char directly into string instead of using sprintf
c305590a83Lennart Ochel- remove unused but imported modules
e41f1509e0Adeel Asghar- Fix build.
45598efcb5OpenModelica Hudson[Janitor mode] Set auto-props
d8e452bb62Adeel Asghar- Generate the Modelica code for FMI 2.0 Model Exchange fmus. - Added Wrapper functions for FMI 2.0 in libOpenModelicaFMIRuntimeC.
d7242d23fdLennart 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
63b7ba276eAdrian Pop- trying to fix boostrapping.
e3d83f7913Adeel 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.
5c8ca8fae1Adeel Asghar- Use SettingsImpl__getTempDirectoryPath for retrieving the temp directory path.
b1687ad5e2Jens Frenkel- add Tests for MSL32 Runtime CPP
960b1701c1Adeel Asghar- flush the output.
70f7c069f2Lennart Ochel- fix format string
f5d1f9f821OpenModelica Hudson[Janitor mode] Fix tabs
6f17cfda49Matthias Arzt- fix segmentation fault on windows when OPENMODELICAHOME is not set.
98c9cf3cd7Volker Waurich- fixed bug of the description of nodes for arrays - updated some functions for new datatypes
cf2e82de7cAdrian Pop- small comment change
aade754deeAdrian Pop- fix bug: #2283 - added test testsuite/flattening/modelica/declarations/TestPackageConstantHandling.mo
b65891fe4bLennart Ochel- minor change to error message "inverse algorithm needs to be solved"
db462287e0Lennart Ochel- do not collapse (initial) algorithms for dumping
23c210de8aAdrian Pop- reverting r16595 for now until I investigate why it doesn't work.
3ba66edc82Lennart Ochel- fix default startTime value for function simulate and linearize
69aa46ded5Leonardo Laguna- Fixing bug in VarTransform when using DAE.ASUB
e1ae03f2c9Adeel Asghar- Fix FMI tests.
4d96b7c3fcAdeel Asghar- Another Try to fix fmi tests.
e0c5d16eddAdeel Asghar- Try to fix fmi tests.
7055ec2307Adeel Asghar#1985 - Set the input variables. - Some changes in the generated code. - Fixed tests.
5671bfc5f8Adeel Asghar- Add the start & fixed values to the exported ScalarVariable of FMU.
4719b1ddb8Adeel Asghar- Free the FMU binary properly.
d9c6d6e4c8Lennart Ochel- move inactive stateset code to end of file (probably it can be removed)
330c629bb2Martin SjölundSome sanity checks for linking script
2c40208756Adeel Asghar- Fixed some warnings.
761c5d66e7Adeel Asghar- Fix bootstrapping test.
8609ed60ecAdeel Asghar- Fix FMI tests.
5a2809565cAdeel Asghar- Fix build.
773cccf11aVolker Waurich- added functions to compute levels of nodes in the taskGraph - added function to arrange the taskGraph in these levels
a58c16c547Adeel Asghar#2131 - Try to initialize FMI import objects as the external objects. Do not use the static variables.
bdc372416cMatthias 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
54abbc3945Lennart Ochel- fix function rem (#2279)
38f8437f64OpenModelica Hudson[Janitor mode] Fix tabs
0d215487ffMarcus 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
a00188d9bcVolker Waurich- added functions to contract simple nodes in the task graph - added function copyTaskGraphMeta in order to avoid overwriting of arrays
a7dcb6d14aAdeel Asghar- Fixed the plotParametric parameters for OMNotebook.
cd8ffd0133Lennart Ochel- remove annoying output
8594c6fa74Martin SjölundAdded function Global.initialize() to init roots that are expected to have a default value
b93853f5fbMahder Alemseged Gebremedhin+ Fix for MetaModelica tests.
08710de8f3Christian SChubertmsvc-build: removed missing ModelicaExternalC reference, fixed isnan for visual studio in radau.c
37d1c38653Volker Waurich- changed TaskGraphMeta handling
837a0af11aChristian 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
2e4fc63064Lennart Ochel- add support for homotopy (experimental implementation)
5594363079Per ÖstlundFix for #2163: - Fully qualify the paths to equalityConstraint functions so they can be found properly.
a261bea8c1Volker Waurich- added a testfunction to check the ODE-system in HpcOmTaskGraph.mo - changed pdf for the metaprogramming doc (see revision 16543)
a384b45d5bVolker Waurich- filled nodeMark in TaskGraphMeta - changed intLt operator to < on page 312 in MetaProgramming documentary
0a240d2dc1Adrian Pop- make the buffer size bigger.
04853662bfVolker Waurich- added revised dumpAsGraphMLSccLevel
6bb6851431Volker Waurich- fix bootstrapper
1fbb689cf6OpenModelica Hudson[Janitor mode] Fix tabs
84f3982905Pavol Privitzer- update to C# target template
9d2c48c316OpenModelica Hudson[Janitor mode] Set auto-props
77715602ddMahder 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.
1dea272a67Volker Waurich- new type structure for the task graph (TaskGraphMeta and TaskGraph) - added additional information to TaskGraphMeta (nodeMark,costs...) - some useful dump functions
4272192762Martin 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)
a3ac10e697OpenModelica Hudson[Janitor mode] Fix tabs
20b485a257Vitalij Ruge- added simplify rule - changed radau output
1fc297c36cLennart Ochel- add some spaces
5b3ada20abLennart Ochel- fix failtrace message for function statementOutputs
4b34f64bb6Adeel Asghar- Handle getClassRestriction case when the class doesn't exist.
4fd5493a02OpenModelica Hudson[Janitor mode] Fix tabs
5827a36e04Vitalij Rugeadd some simplify rules
7367ae887bMartin SjölundAdding script to test parallel generateCodeSeparate (seems to work fine, but needs dependency analysis)
e3eb234ba7Lennart Ochel- collapse warnings
2179a33204Adeel AsgharAdd output to clearCommandLineOptions definition.
195a85d3a1OpenModelica Hudson[Janitor mode] Fix tabs
287769dcb9Vitalij Ruge fixed r16506 | Thanks to Martin.
8c5ed0f506OpenModelica Hudson[Janitor mode] Fix tabs
5e57ef3116Vitalij RugeAdded missing case in ExpressionSimplify (see #2268 idea of Martin)
b62572e053Per Östlund- Added clearCommandLineOptions API command.
445c5d1460Volker Waurichfixed the generation of the ode taskgraph (for torn systems and complex equations)
cf7ee504d9Martin SjölundFix compliance suite
13b5428c94Martin Sjölund#2136 - Fix FMU export (compile the XML-files into the binary)
44acf0220cLennart Ochel- remove hack that suppresses +d=execstat during initialization
fb5462dcf0Lennart Ochel- minor fixes to initialization - minor cleanup
26e093e715Willi Braun - bug fix for linearization(modelname with underscore instaed of dot) - bug fix added uniqueEqIndex for symbolic jacobian for *_info.xml
60f9580511Lennart Ochel- fix #2263
b7e3704360Willi Braun#2209 - added differentation rule for smooth() - don't generate events for smooth()
98624ff729Martin SjölundFix and bump the compliance suite
a96f4b9528Martin Sjölund#2262 Handle change(sizezero)
99ff8d2a4dLeonardo Laguna- Changing the scope of DAEDump.dumpInlineTypeStr - Using Print.saveAndClearBuf for function ValuesUtil.valString - Applying replacements on ASUB subindices
e72f24538aAdeel Asghar- Allow setting the curve style & width.
4b721b4ed3Martin Sjölund- Fixed the parser (quoted identifiers are only allowed a restricted set of characters) - Fixed XML escaping of variable- and classnames
d64f82fb83Per Östlund- Updated translation of OMC.
d22f741951Per Östlund- Fixed bootstrapping. - Fixed indentation in DAEDumpTpl.
077d2d76fdVolker Waurichgets the taskgraph for the ode-system
214be052a7Lennart Ochel- change warnings
f1864a11e8Lennart Ochel- add notification for suppressed warnings of the initialization
87ca44c84cLennart Ochel- remove unused modules
1c29663155Lennart Ochel- restore accidentally deleted unused code
f8fe0ffe98Lennart Ochel- remove unused code
b918ed910eLennart Ochel- meger removeBindExp and setBindExp as well as removeBindValue and setBindValue
cf9a88a9acLennart Ochel- remove unused code - improve warnings (+d=initialization)
17f1f14ebfLennart Ochel- remove unused code
df165d1de6Adrian Pop- handling of EnumToInteger directly in Static.mo (just there and in Builtin.mo).
a466cecb11OpenModelica Hudson[Janitor mode] Fix tabs
233182ad8cMarcus 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
960b411185Lennart Ochel- fix #2204
a3e1a2a2b1Willi Braun - fix typo
164b1a67beMartin SjölundSeparate compilation: Do not instantiate functions until necessary
88701d32b0Lennart Ochel- new debug flag: +d=initialization
707203ba58Lennart Ochel- revise initialization - fix output of missing initial conditions (+d=pedantic) - remove all "Ignore unused variable" messages (+d=pedantic) - clean up SimCodeUtil
8596b82f8dMartin Sjölund- Fix separate compilation - Add separate compilation test to the testsuite so people do not break it again
0809ddbd6eMartin Sjölund- Bump MSL - Fix ClassLoader (if we have directory Test, no Test/package.mo, and Test.mo in a package)
d68b3931bcLennart Ochel- fix #2253
570aaeebb7Martin 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)
f28e719b78Martin SjölundEscape $ for linux rpath
2c8a33b8b2Martin SjölundFix rpath on OSX
0fc45a4ad0Martin Sjölundmake qtclients now works when configured --without-paradiseo
47959b9d64Martin SjölundSimplify asin and acos of constant expressions
751d7e051cAdrian 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!
6dd71101f4OpenModelica Hudson[Janitor mode] Fix tabs
dd3c9f1bfcAdrian Pop- fix Windows build (ansi C). - small fix to CPP Makefile.omdev.mingw.
388b23c1fdWilli Braun - attempt to fix gcc test-suite
d133bbfc8aAdrian Pop- better handling of EnumToInteger hack.
9447e2d29fWilli Braun - fix r16390
1609ed00e6Martin SjölundFix some unsafe code using setjmp/longjmp
8d1b09a285Willi Braun - fixed bootstrap
8af38bc8f9Willi 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
9607ebd119Leonardo Laguna- Optimized VarTransform.mo (do only perform union every 7th addition.)
7e11886793Leonardo Laguna- Reverting my previous commit to fix the test
a133bca6f9Leonardo 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
f9e615bbc9Lennart Ochel- remove more „Ignore unused variable“ messages (+d=pedantic) - typos
a7f7f488acVolker WaurichtaskGraph supports now all types of StrongComponents
329062c7c3Lennart Ochel- initialize pre values of continuous variables - remove annoying „Ignore unused variable“ messages (+d=pedantic)
204c310336Alachew Mengist- Fixed XML for when conditions,Initial equations,,
f537651946Martin SjölundTypo
1bd2e37889Martin SjölundFix OSX compilation
f199620fa4Mahder Alemseged Gebremedhin+ fix bug #2217. Consider subscripts when taking type from crefs for handling of pre() in initialization.
fdd8b23e07Martin 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)
2db502c457Martin SjölundClean-up for bootstrapped compiler
243917e98fMartin SjölundFix some unused code for separate compilation
380bd65df5Lennart Ochel- fix output
e0f7e67936Lennart Ochel- minor changes to codegen
fc11a83b92Volker Waurichcreate taskgraph for every eqSystem in list, assign a proper graphml name
c923767cc7Adeel Asghar- Fix bootstrapping.
2a518db31aPer Östlund- Updated the swedish translation of OMC.
b842e91561Martin 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)
2009395716Per Östlund- Fix flag spelling, coundOperations => countOperations.
912f6bd1d7Volker WaurichgetAdjacencyList of TaskGraph, added comments, more SCC types supported
fcd2f9feb0Willi Braun - added description text to Flags.relidx
095e565245Jens Frenkel- Description for flag "paramdlowdump"
a79cb54691Martin SjölundSupposed to be nogen, not noevalfunc. Lots of stuff breaks if we do not eval functions ;)
bdd32c81c0Martin Sjölund#2212 Documented the patternm debug-flags. Renamed a few of them.
13e21040e6Martin Sjölund#2244 simulate now puts the output log in a file $prefix.log to avoid conflicts
7ab260e55aMartin SjölundRevert r16351; seems hudson did handle the old code... It was just not updated yet...
65fd6d3192Martin SjölundMake compliance suite set system-out so hudson will show it (doesn't show error type or message)
1304809e8bWilli Braun#2242 - bug fix. Added mising case for tuples in Expression.factorsWork
d3b84a700aPer Östlund- Make configure detect lrelease. - Updated swedish translation of OMEdit.
28be309305Henning Kiel- add/update some german translations
2a65306a91Martin SjölundUpdated compliance suite to output error-messages (for hudson)
7be877628dLennart Ochel- change default value of –ils to 1 - remove option –iom=nelder_mead_ex2 (use –iom=nelder_mead_ex [–ils=1] instead)
e11c9c774fMartin Sjölund#2238 Document linearize()
3e4628a0e7Per Östlund- fileds => fields.
cca2475066Martin 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
99face82b8Adrian Pop- attempt to fix Windows builds
852b23af1cMartin SjölundFix some formatting of the svg (y-axis range, lines between points, etc)
1ba45719feMartin Sjölund#2240 - Fix invalid xml (escape &)
352e2a3626Martin 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
18b080a37bMartin 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
f9b67a5360Volker WaurichTaskGraph handles Algorithms, improved warnings
cf4aa90a2aMartin SjölundDon't comment stuff out
96594a6589Martin SjölundAdded script to run the compliance suite (to be added to hudson?)
e31243571eMartin Sjölund- Fix not caching modified result-files
bcaed16f44Volker WaurichTaskGraph can handle SingleWhenEquations, improved eqDesc
cbf92e8a18Martin SjölundFix revision added
7529114d45Martin Sjölund- Adding new API calls: classAnnotationExists and getBooleanClassAnnotation - Some translation fixes
4b281cdfe0Per Östlund- Updated swedish translation of omc. - Some fixes for command line flags.
41748393dbPer ÖstlundFix for #2215: - Replaced parenthesize algorithm in Dump with the algorithm from ExpressionDump.
d7d2eac5a4Martin SjölundFix FreeBSD compilation
0542229f2dPer Östlund- Fix some clang warnings.
bb3182a9cdMartin SjölundReverting stupid change :)
9a3bbfa542Martin SjölundIncreasing execution time limit for no good reason
8d17ac8d1bLennart Ochel- stop printing failing nonlinear systems after the first one
01e3a84100Lennart Ochel- improve maintainability of NLS code
16eb2ccf0cPer Östlund- Fix previous fix.
849bfba062Per Östlund- Attempt to fix some tests.
e470147201Willi Braun - fixed bug in non-linear solver dump
d14ffc3eb9Per Östlund- Fix bootstrapping.
8e965b8518Leonardo Laguna- Fixing a bug in for-statements
b9420ab8f9Per Östlund- Fixed punctuation of error messages.
b170eeefc5Martin SjölundCheck for pthreads
579c691a4eLennart Ochel- KINLapackDense is unknown (windows only) - using KINDense instead
3d838291e3Per Östlund- Updated translation file.
79db711bc8Lennart Ochel- see r16266
22eca66582OpenModelica Hudson[Janitor mode] Fix tabs
2066caaf8cVitalij Ruge- check for inputs
5eebfb63f9Volker Waurichadd a node description for the task-graph graphml output
e9e81a33c6Lennart 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.
4c17980daeVitalij Ruge- dumps for radau/lobatto solvers
e40a19af20Lennart Ochel- revise some dumps (LOG_EVENTS, LOG_ZEROCROSSINGS)
58ac55d6fdLennart Ochel- rename sample event to time event - revise some DEBUG dumps
0b01973679Vitalij Ruge- search linear solver for Kinsol
63508ec6f5Vitalij Ruge radau/lobatto: - switch linear solver for small systems - error handling
19d3fe75e1OpenModelica Hudson[Janitor mode] Fix tabs
76d656a04aVitalij Ruge- fixed infinity loop in the radau/lobatto solvers - removed slack vars in the radau/lobatto solvers
77c66e4664Martin SjölundMake USR1 signal work once again
6ca4ee2885Adrian Pop- remove ";" to get ANSI C
786e54e396Willi Braun - fixed bug in nonlinear solver - deactived ThermoSysPro.ThermoSysPro.Examples.SimpleExamples.TestTank.mos, since it fails anyway
b05053c9b4Willi Braun- reverted flag change from r16236, since some model stop working
288cd9a375Martin SjölundFix png generation?
a4c54f0cd9Lennart Ochel- improve warnings for failing linear/mixed/nonlinear systems
c26945da2fLennart Ochel- fix one more comment
f0decbcc39Lennart Ochel- fix some comments - change type signature for check_*_solutions [* is an element of {nonlinear,linear,mixed}]
30d6761fb5Per Östlund- Fixed bootstrapping.
a297e3c2e2OpenModelica Hudson[Janitor mode] Fix tabs
125f870319Marcus Walther- added HPC back-end - added node-description to GraphML
97fa8dc09dAdeel Asghar- don't copy the casadi scripts.
f77ff34de3Adeel Asghar- install the casadi scripts to build/share directory.
c4d80180a8Adeel Asghar- Moved the model based optimization scripts to 3rdParty casadi.
a35c2d34dcOpenModelica Hudson[Janitor mode] Set auto-props
57a9a75602Alachew Mengist- Python script for model based optimization done by Vitalij
43fdee14dbMartin Sjölundm:#622 outerProduct, skew, and cross now only give Real outputs
a16a4e7eb0Martin SjölundMove some expressions around when you do simplifications only if this improves the complexity of the expression
3f3ec020b8Martin Sjölund#2197 - Free some memory during initialisation instead of increasing the size of the memory pool
67c8c8efcdMartin SjölundFix warnings
4107100753Martin SjölundFix for OSX? Add an empty file to the tables library to make the linker function
22031d8512Martin SjölundAdding the files lochel forgot to add (they were part of my patch, but you need to svn add them, too)
a1f262665aLennart Ochel- fix #2210. Thanks to Martin.
78419e6939Per Östlund- Oops, bad auto increase.
14067e65d1Lennart Ochel- dump a short comment above all equations (containing the modelica representation)
d7ab0c46a5Per Östlund- Restored +modelicaOutput flag.
404e0658b6Per Östlund- Added descriptions to some debug flags. - Removed "unused" debug flags. - Got rid of some compiler warnings in OMI.
6db5477a0cMartin Sjölund- Use ModelicaFormatError in tables.c to avoid the need use the OpenModelica-specific runtime (only ModelicaUtilities.h)
9226f7c9beMartin 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.
da9151014eMartin SjölundComment debug-flags
2c891e7982Willi Braun - Removed unsed flags and updated some.
a914ef73f2OpenModelica Hudson[Janitor mode] Fix tabs
45d2e34760Pavol 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.
71e5071286Martin 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.
d0229bcf5bMartin SjölundMake aspell happy.
b1d1b13072Martin 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)
b58a33469dPer Östlund- Fixed flag indices.
9b94b7834dPer Östlund- Removed some unused flags.
b815594ce0Adrian Pop- attempt to fix Windows build.
09a163e500Martin SjölundYeah... Forgot debug thingy
5bc3eaced4Adeel Asghar- updated the text annotations for the generate FMU blocks.
c10048c999Martin SjölundFix documentation generation script
2a7233f0c3Lennart Ochel- tiny comment for STATE_SET_DATA
d5a6857924Martin SjölundFix make clean
167dce10e5Willi Braun- fixed one more line in dynamic state selection
b776aecbd2Martin 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)
338fbe4606Willi Braun- fixed memory leak in dynamic stateselection
f47473b862Martin SjölundChanging list(exportAsCode=true) to list(exportKind=...)
e84d301d07Martin SjölundAlso upload the links
1b92a07452Martin SjölundGenerateDoc now lists the file a broken link was found in
936f4470d8Lennart Ochel- remove unused modules
9e60c214acPer Ö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.
25322d7398Lennart 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
9c059814e8Adeel Asghar#2194 - get all the components dimensions.
a72e0aa235Willi Braun - fixed HeatingNPN_OrGate by adding a simplification for smooth.
c4b9526c5cPer Östlund- Fix previous commit.
77e26596b6Per Östlund- Removed some unnecessary failtraces.
bd0cafd36aPer Östlund- Fix bootstrapping.
c3d083fbbfPer Östlund- Implemented expansion of asub slices in ExpressionSimplify.
382efa8df3Martin SjölundClose some tags
7d5927872fAdrian 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.*
300e1e25b9Adrian Pop- fix Windows compilation: define setenv for MinGW and MSVC
3edb355f6cMahder Alemseged Gebremedhin+ Parmodelica: Fix array copy functions. - Compile position independent on linux. - Disbale NVIDIA cache.
f42fe43872Adrian 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.
c63a08dd7eMartin SjölundAdded check for empty arrays to the parser
34f87e3c55Martin SjölundBump MSL. Adrian will make Hudson happy.
7a96419868Willi Braun#2189 - fixed bug in constLinearSystem for states
97b481a12bAdrian Pop- partial fix for bug #132 - added TestPackageInheritance.* tests - we don't check subtyping of redeclared elements yet.
c85b0b3d85Martin SjölundLibrary changed name
6cef107cbfPer Östlund- Better error message for missing else in if-equations.
4be8414b15Lennart Ochel- fix timer statistics
bfa1eea552Per ÖstlundFix for #2177: - Fixed some issues with code generation for arrays with enumeration dimensions.
43d6be4406Martin Sjölund- Revert r16045 (flag wasn't removed yet) - Bump libraries for coverage test
d307bf4d2aLennart Ochel- improve readability of aliasset-warning for several free start values
67b5175fa7Martin SjölundRemove scodeInstShortcut from the build script
9571a8a46bWilli Braun#2178 - bug fixes for non-linear system. - make jacobian calculation continuous - added reset for non-contnuous solving case
b1cec89962Willi Braun - fix model termination, when a system can solved in the final step.
00a238a43dWilli Braun - fixed hysteresis relations.
d5572887cfMartin SjölundBetter formatting for profiling
22ecd6e43cMartin SjölundChange the help text
9e44f9ce6bAdrian 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.
9cf1f2c3baAdrian Pop- ansi C. for pleasing MSVC
ec3d002399Willi Braun- bug fixing non-linear solver (updated 2 fluid models as they began to work)
6274b01b4dMartin SjölundPrint better error-message if things go wrong
12aeb11507Willi Braun- fixed FMI for 32-bit linux. - the binaries directory should called linux32 instead of linux-i686
e87431d6f7Willi Braun - bug fix for nonlinear solver. Restore mode for further iterations.
e355280b58Per Östlund- Fixed code generation for enumeration subscripts.
27c95affb5Martin SjölundSome spelling/grammar (real numbers is more precise and easy to understand)
a16e62b764Jens Frenkel- fix #2095 handle valid circular equalities
c94cd58785Martin SjölundAlso export png-files of the trend
3df253eaefPer Östlund- Added +scalarizeBindings flag, to enable scalarization of array bindings.
94a355e2abMartin SjölundAdded spell checking of strings marked with gettext() (for the CODING_STYLE job)
56ff5f1701Henning Kiel- fix call of modelica_real_to_modelica_string() in C runtime -> makes ModelicaTest.Blocks.Continuous_InitialOutput compile
7d2a529a92Willi Braun- fix for r15980
883d1bc229Leonardo Laguna- Adding more warnings to the uncertainties extraction
93b58b35d0Martin 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.
d0211c184cAdrian Pop- move Compiler/BackEnd/GraphML.mo to Compiler/Util/GraphML.mo and made it way way waaaay faster.
bd65b8bb53Adrian Pop- NEW RML or NEW OMDev is required for this and make clean!
4afb2af7c1Willi Braun#2172 - bug fix for detecting decrete varibales in algorithm
02778d96ffLennart Ochel- fix #2112
ffb8b2cb21Matthias 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.
0f970e758dPer Östlund- Forgot some changed files in last commit.
05c95cb96fPer Östlund- Fixed output of class annotations when +showAnnotations is used.
cba6967df3Martin 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)
bc75df2a63Martin SjölundC-escape the expression printed in the sqrt()-assertion
ce40b4d3ddMartin SjölundHandle relative file:// and local files, always returning an absolute path
894a0e07dcMartin 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
6e28a87ea6Adrian Pop- fix Windows builds, cast int to size_t.
da09856f9aOpenModelica Hudson[Janitor mode] Fix tabs
2d14922387Martin Sjölundfix-tab now actually contains a tab and not 8 spaces...
652bf9a973Martin 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
111e61493bOpenModelica Hudson[Janitor mode] Fix tabs
817d54c80fMartin SjölundAdd target fix-tab
dfa6c26e2cMartin SjölundUse varargs for throwing assertions so we can produce better messages in the code generator
0bf0af6aafPer Östlund- Added better error message for variable range expressions in for-equations.
51201a0789Martin SjölundAdded missing DAE.DIM_BOOLEAN (analogous to DIM_ENUM)
705fc3f635Martin SjölundFix ceval of false:true
d480f1613aMartin SjölundOutput a nice trend overview
ce460a3e8aMartin SjölundDo not look for sundials_idas -- it is not actually used
40e106d77eOpenModelica Hudson[Janitor mode] Set auto-props
3c8e7cdd52Mahder 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.
63220cf4bdOpenModelica Hudson[Janitor mode] Set auto-props
1c5314ae7fMartin SjölundChanging the autoprops from find to a script that can parse the svn config [auto-props] format
b08629a9f6Martin Sjölund- sample with first sample before start-time of the simulation is now treated correctly
f6441b610bAdrian Pop- removed tab.
32c80fc810Willi Braunbugfixes for FMI: - added *_info.xml and *_init.xml to resoursses - therefore added default simulation options to translateFMU in CevalScript.mo
1927fb66b1Adrian Pop- fix ANSI C (variable declaration before any other statements) to make MSVC compiler happy
d8af539b09Per Östlund- Got rid of some clang warnings.
bc0dd06c96Martin Sjölund#1863 Removed simulation options noClean and storeInTemp since they do not work and there are no tests for them
a214c4810aVitalij Ruge- FIXED: lobatto6 - FIXED: allocate for lobatto/radau solver
149437afe1Vitalij Ruge- BUGFIX: initial guess, scaling and nonlinear solver stragegy are more stable for radau/lobatto solver.
6d99b6c86cMartin 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
c47607eafaJim 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.
f20bb42f1dPer Östlund- Fixed spelling mistake in swedish translation.
193aecc370Martin SjölundPreserve function comments and annotations for external functions
302ba78c45Mahder 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.
c88e38a470Leonardo Laguna- Added flag to return correct cref types
b23c6b116eVitalij Ruge- BUGFIX: now initial guess and scaling are more stable for radau/lobatto solver.
9230092ecaMartin SjölundFix to rebuild all svg-files when running the MSL coverage
aadfa5109dVitalij Ruge- BUGFIX: initial guess for radau/lobatto solver
ee966ce44fMartin SjölundCopy-paste error (always asks for the MSL revision; not the actual library)
daef9b7f45Adrian 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
da9910532dMartin SjölundFix the build script
9dd327ede1Martin SjölundFix the bootstrapping target
669297230cMartin 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)
1ab0e772adAdrian 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;
cd36f902e4Mahder Alemseged Gebremedhin+ revert r15893.
37464d0042Mahder 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.
84aecc2086Henning Kiel- fix message string (DELETE_AND_LOAD) to display the referenced filename
fc8553e8d4Martin SjölundPretty code
2a3e488cbcAdrian Pop- ANSI C an unnamed C compiler said :)
4d37fb2de6Martin SjölundFix test for clang
8c02217cdeAdrian 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.
7d2713cd30Martin Sjölund(OpenMP) Use the memory pool of the current thread
ab7eb560e1Adrian 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).
1b66bde0c5Martin SjölundAdding new makefile Makefile.libraries - Try make GITLIBRARIES=Yes to check out the new build system for libraries
b3b07e20c8Leonardo Laguna- (recommit) Eliminating error message when the StaticScript.elabCallInteractive succeds
c68246f5e1Martin SjölundNicer BuildModelRecursive script (easier to change the library we build; prints the name and version of that library)
18a7d9aaa2Jens Frenkel- remove unnecessary lines of code
012ec582a4Per ÖstlundFix for #2159: - Sort connector components before connecting them, to make sure that their order doesn't matter.
75b813bf51Jens Frenkel- remove unnecessary line of code
7173e4f875Martin Sjölund#2150 pack/unpack external C integer array
e8f00e61faAdrian 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
2ab07ad307Martin 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
9bc4a51921Martin SjölundAllow non-structural parameters to be used as conditions in if-equations
aefba3b613Martin Sjölund#2155 Allow declaring a record component constant even if the elements have bindings
12f6599286Per Östlund- Reverted r15866, since it broke some testcases.
96efeb232aPer ÖstlundFix for #2159: - Only consider components in modifiers when sorting elements during instantiation.
879c931d9aWilli Braun#2136 - generate _info.xml file also for FMU
362202ea98Per Östlund- Handle arrays of records inside records correctly in DAEDump.
42a0f2fbf7Adrian Pop- don't build the initial env all the time.
a98fd3a453Adrian Pop- fix System.realpath on Windozz/Mingwz, was broken since its inception.
ff80ffab12Martin Sjölund- Fix tests by only rolling back language version if a temporary was requested
3fdcb16333Per Östlund- Don't replace enum dimensions with integers when checking the binding type.
c362dd790bMartin SjölundGenerateDoc.mos now creates documentation for all loaded packages
953886e680Martin SjölundUpdated BioChem to 1.0.1
05ca6e2019Martin 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)
cc521029f8Martin SjölundFix the recursive build model test (recursion depth was calculated for each expression in reductions instead of the depth)
d5733f83e7Martin Sjölund#2158 Add a maximum recursion depth for Ceval.ceval
0080a4c3e4Martin SjölundGenerate UTF-8 meta tag since apache doesn't host as UTF-8 by default
41b71124bbMartin SjölundRevert r15847 (breaks testsuite badly)
0946a13472Leonardo Laguna- Added an error rollback when calling elabCall. In interactive mode some functions are elaborated by StaticScript.elabCall but the error messages are kept.
e32e10a001Per Östlund- Handle more cases for prefixing inner/outer arrays.
a903b4406fAdrian 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
4503757bddMartin SjölundAlso look for symlinks in the parser
1807a2ca40Adrian Pop- include to f2c.h
412f060f03Adrian 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.
cf765cbad8Martin SjölundBuild some more documentation if the libraries are available
56caed583fMartin 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)
970617bdc5Per Östlund- Fixed generation of asserts for constant/parameter arrays in connectors.
5c1efe82b8Per Östlund- Preserve the comment for the flattened class in the flattened output. - Don't translate enumeration literals to integers when simplifying asubs.
d5c187a1d0Adrian Pop- partial fix for bug #2002 handle constant modifiers in class redeclare modifiers - update some tests
1fc5d896d3Per Östlund- Fixed connecting components of deleted arrays.
d6c55d851bMartin SjölundGenerate correct documentation for UTF-8
3050399e6fMartin SjölundEnable MixedTearing by default (as it used to be)
2272097e05Per Östlund- Fixed inner/outer prefixing of array elements.
b2cfcb7e5bMartin SjölundMake nogen default
c5a10ec20aMartin Sjölund#2146 Fix previous commit (NO_GEN was renamed to GEN, etc for clarity in the code...)
c8cf98121aMartin Sjölund#2146 Clean up debug flags, -gen and nogen are now the same thing. Debug flags can have default on or off set.
743bd7b2c8Niklas Worschechfix in cpp template for initialization of bool variables
1597b909e6Adrian Pop- consider that functions containing external declarations are complete.
e833582915Adrian 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
d102cff91bAdrian 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.
182b8deb46Martin SjölundMove test UriLookup.mos. Allow non-existing files at the time of compilation for UriLookup.
3f807f127aMartin SjölundCoding style
1d7a5d0fc5Martin 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.
18db2056d3Martin SjölundgetVersion(X) now returns "" if the library uses a non-string annotation
9323539f1dMartin SjölundOSX compilation
c5d0cdce82Martin Sjölund- OSX compilation. Works with the NewTables package
e36a585636Martin SjölundChange to using the build system in OpenSourceTables
1128d99401Martin Sjölund- Re-add stuff for OSX
fd3518f698Adrian 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
667ed0643fMartin SjölundUpdated configure script slightly
56df3ec559Martin SjölundAdding NewTables for testing
d087b7b01aAdrian Pop- revision 6155 of MSL has changed "Lapack" Library annotations to "lapack" so we need to handle both cases.
84e7ec8f7fPer ÖstlundFix for #2143: - Print out element-wise operators in flattened code when appropriate.
c24c0e15ccMartin SjölundAdded code gen for array-array multiplication
1a7a9542eaMartin SjölundDo not try to evaluate cyclical bindings when deducing function return dimensions
4ea02ffadbMartin SjölundForgot one important dependency
c1a9649eb1Martin SjölundSome hints to build the kernel on rpm-based linux
81f3d590bfMartin SjölundMake a new source tarball
643a8c6bb4Martin Sjölund- Java is needed to compile the parser
df07e2fd51Niklas Worschechfix in cpp template for pre- variables in initial equations
e344a6c10fHenning Kiel- fix some typos in strings - fixed calculation of escaped string length - optimized some string operations
baeebde24cHenning 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)
a128a40b4aMartin Sjölund- Patch MSL 2.2.2 for 32-bit platforms
d501b6a6aaMartin Sjölund- Fix wrong prototype used in some libraries
11e27ea429Martin Sjölund- Move f2c.h includes to implementation files. Should not be part of the default headers.
cf01109b24Niklas Worschechfix for VS build in Core/System CMake file
478134fab5Niklas Worschechremoved tabs
28bbccf4b3Niklas Worschechfix in CMakefile for core.system installation of AlgLoopSolverFactory.h file
276750e885Niklas WorschechAdded IStepEvent extended cpp template for symbolic initialization system fix in event iteration
8d7fa0ef6fMartin SjölundGet a new revision to make a nightly build that works
263c5b5f9cMartin SjölundUpdate README
81dff2b199Martin SjölundAdding rule for d/dtime tan(x)
1c390b1307Per Östlund- Removed the last remains of subscripted modifiers.
b23a898b21Per Ö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.
67bc1921dfMartin Sjölund- Adding highly useful +simCodeTarget=None
ce16b0d191Jim NutaroFixed update_vars to reset the init flag in adevs event functions
10e9d84ccaAdrian Pop- tabs are not welcome here :)
a1edc4558dPavol 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)
6472b18f8eMartin 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.
d0c69bbb78Matthias 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.
6dac3ad8ceMatthias 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.
df65c8d97cMartin Sjölund- Added API to get scriptable uses annotation
ade9352e59Martin SjölundChanged MSL 2.2.1 with OM modifications to MSL 2.2.2 from the maintenance branch on modelica.org
c5d7999114Per Östlund- Added source information to some error messages.
2912dda045Martin 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
e51264c1caMartin 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
e30f00fe91Martin SjölundWorkaround in uriToFilename for stupid omc bug
48764ecf60Leonardo Laguna- Adding a flag to run the MathCore testsuite
d847a98079Per ÖstlundFixes for #2126: - Fixed simplification of cat. - Fixed elaboration of identity.
9609487191Martin SjölundAutomatic refactoring
98feb3397fMartin Sjölund- Automatic refactoring
d7188515cdAdeel Asghar- Set fileName empty as default for Bitmap record.
49de14135ePer ÖstlundFix for #2124: - Reverse the iterators in reductions so we evaluate them in the correct order.
e404c0be5fMartin Sjölund- Fallback from OpenMP to serial code on clang (by #ifdef)
971d8b5bc0Adeel 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.
736116dfa1Jens Frenkel- bugfix type of constant
324be10bcaJens Frenkel- add new functions to BackendVariable.mo
f0929b5efcMartin 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
3ef9680073Martin SjölundInstantiate functions fully even when not in function context (to get the full type; previously we returned an empty DAE which seemed weird)
fe922ff10ePer Östlund- Removed checks for duplicate elements and type names that are the same as the component name from SCodeUtil.
70ad1c02e2Martin Sjölund- Revert r15544 (too many models stopped working)
6220241932Martin SjölundDon't allow max(scalar)
3b365f0ac7Willi Braunadded minpack disclaimer to COPYING file
06810843e5Willi Braun#2114 - fix codegeneration for array for pre variables
71f4f9817eJens Frenkel- add some functions, needed for further improvements
540b235d1cMartin Sjölund- Use only make omc-diff, not make difftool
06e283c3c7Martin SjölundAttempt to fix trunk by using non-standard placement of annotation
5e3b1aeb53Martin SjölundAttempt to fix testsuite with minimal effort
141f748b3cMartin SjölundRemove workaround that didn't work as planned
4746583977Martin SjölundOnly make omc-diff if the testsuite directory exists
9eabd1a35bMartin Sjölund- Make *ModelicaBuiltin.mo possible to parse using MLS 3.1+ (annotations only at end of classes or external decls)
ab858e1a98Lennart Ochel- use c comments for our c-runtime! - uncomment unused templates
35e78af7f2Martin SjölundReturn empty string as the documentation says
89238321a4Martin Sjölund- Don't segfault if we have 0 libraries
ac903dff10Martin SjölundImprove documentation a little
c56bcd7550Martin Sjölund#2111 - Handle ASUB for change()
5a9b75549fAdeel Asghar#2108 - Retain the array dimensions of the component. - Don't trigger unnecessary updateComponent calls.
8c22aa8b6dAdrian Pop- partially revert r15474 (ComponentReference.mo) - i will put this change back in when i fix more things in the compiler
362901b8f1Willi Braun#2104 - fixed discrete expression detection
c63606a62fMartin SjölundDon't use dots in new identifiers in functions
0168fca1d6Martin SjölundTrim trailing whitespace
7b26050186Willi Braun - removed tabs
d30d55361bWilli Braun - fix function definition
48a0ffd890Pavol 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
bff05d6908Alachew Mengist+ added XML code generation for - islinear - component reference for Optimica - builtin function sin, cos and exp + remove extra line spaces between templates
e470f8d235Per Östlund- Fixed bootstrapping.
c2dde9de24Peter 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.
6d1d4c0b3aPeter 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).
861702fa25Per ÖstlundFix for ticket #2102: - Fixed reduction iterator handling in CevalFunction.
73141bce7bPer ÖstlundFix for ticket #2099: - Fixed simplification of array multiplication. - Changed behaviour of Expression.arrayContainZeroDimension to do what the name suggests it should do.
75f0f149a4Jim NutaroAdded array assignments to code generated for residuals
a1ed8b86ffPer Östlund- Fixed clang warnings in the compiler runtime.
4a537862f1Martin Sjölund- Link with -llapack even if we don't find sundials
a2156b9bccJens Frenkelrevert r15456, other tests fail because one function was changed to be tailrecursive
22c02d9041Martin SjölundRevert r15458 (causes stack overflows)
71b2bc41cdMartin Sjölund#2103 - Don't generate commented-out expressions in the C-code (/* Real */ will end the comment)
6222a6fe7dJens Frenkel- uncomment changes from r15456, to much flattening tests to update, see also #1754
0e559ca141Leonardo Laguna- Fixing minimal error on function
d2be51607aPeter 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.
14aead2bb5Jens Frenkel- improve Simplification of Add operations by using HashTable instead of comparing all Elements in the list by List seach
df214ded57Per Östlund- Added Error.addMultiSourceMessage for errors with multiple sources. - Big update of new new instantiation.
00698301b8Mahder Alemseged Gebremedhin+ Allow instantiation of connectors deriving from records. + Remove unnecessary error message.
c4d11c39b5Martin 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
be4809c09eJens Frenkel- add functions BackendVarTransform: replacementCurrentSize,replaceEquationsArr,dumpStatistics
d9f86c6620Jens Frenkel- fix bug in copyVariables
2775756d9cJens Frenkel- fix algebraic loop in algorithm for undifferentiable subsets
506b66ff7dJens Frenkel- make Tarjans Algorithme O(N)
1427fde921Jens Frenkel- remove useles listReverse, see what happens ;)
106f53cfeaAdeel Asghar- get the modifiers for the derived classes. - New API calls, + getDerivedClassModifierNames + getDerivedClassModifierValue
d7d70c9f40Adeel Asghar- Add the complete dialog record as defined in Modelica specs.
dae62f4431Adeel Asghar- fixed bootstrapped windows compilation.
ab855c6d7bAdeel Asghar- Use the one defined in CevalScript.
994fb6a236Vitalij Ruge- radau, lobatto code style
117822fca3Lennart Ochel- reverting revisions r15404-r15407 because Hudson complains of about 50 tests
52b9aaac07Jens Frenkel- try r15398 again but keep the order of variables with an additional listReverse
eea352df4aLennart Ochel- remove Flags.SOLVE_INITIAL_SYSTEM (+d=solveinitialsystem) - simplify initialization to prepare prospective revisions
23676ddabaLennart Ochel- revert r15398 to fix testsuite
954c265276Martin Sjölund- Output at most one generic lexer error
3f1e6e9cb9Jens Frenkel- fix bug in copyVariable - use varsSize to adjust the hashtables of Variables - bugfix infinit loop for undifferentiable subsets
355c866712Jens 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
3df58351e5Martin Sjölund#2096 - Added special lexer rules for &&, ||, !, telling the user the proper Modelica keyword to use
53a9614b4bAdrian Pop- this should have been part of r15029. - add all the new components to the CheckSettingsResult record (already populated by CevalScript.mo)
f0f9339d4aMartin SjölundFix OSX compilation for real
d63ee45efcMartin Sjölund- OSX compilation
9bffeaac0aAlachew Mengist- Add a function that checks weather the referenced class has the restriction \"Optimization\" or not
36a8fcb7a6Willi Braun - added dependecy of hysteresis tolerance to relative tolerance
1a049d16a8Lennart Ochel- disable USE_DEBUG_OUTPUT
1d0c4942c1Lennart Ochel- get rid of compiler warnings for c-runtime - minor changes (typo, spaces, ...)
b2a52008e2Lennart Ochel- fix LOG_DEBUG
d5c9a8208fLeonardo Laguna- Including new simple equations elimination for uncertainties
8f88f457bcMartin SjölundWindows compilation
e4eb8d43abLennart Ochel- remove some unused imported modules
788e3efa0eMartin 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.
e5b28d39f7Lennart Ochel- small fixes for for-loops
bf560e38ebLennart Ochel- fix #2088
c9369efc05Jens Frenkel- flag for usage of countOperations
2f25bc6276Martin 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
8275f33522Henning Kiel- use cached WinLibPath (fixed)
9e04fde316Adeel Asghar- Don't make the winLibPath static. It will get garbage the next time since we free it in settings_rml.c:142.
e735ef48c2Willi Braun - fixed mixedSystem solver by removing simulationInfo.found_solution as it was a source of strange bahavior.
08434fbdf0Henning Kiel- add some "static" keywords - stop file compare when first difference occured - use cached WinLibPath
427f1cc0f1Martin SjölundSome tail recursion
fea7853975Martin Sjölund- Use static libraries on OSX
06f4d98ee1Daniel 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.
a81e91aa78Jens Frenkel- continue FMU for Cpp Runtime
2d1f1df135Martin SjölundAttempt to make runInteractiveSimulation.mos fail less frequently
187bb26eafMartin SjölundDon't generate the tag for the C target
5f32c3afd8Martin SjölundMake eq_functionXX static
878156ebb0Lennart Ochel- fix impure testcase by adding the keyword impure - add Boolean isImpure to DAE.CALL_ATTR - protect impure functions from evaluating to constant values
e61aa419b1Martin SjölundSwitch back to using static simulation runtime until the FMI code is fixed (probably required to get OSX to run FMUs better anyway)
1245e6330fMartin SjölundFix bootstrapping
efacaf7e1cMartin SjölundFixes for bootstrapping
d8e9db8988Martin Sjölund- Fix the print buffers
a105abc763Vitalij Ruge- fixed lobatto solver
725c4478c3Per Östlund- Added missing flag +scalarizeMinMax.
79013a3813Martin Sjölund- Compile FMIL before C-runtime
fb9af63b0aPeter Aronsson-Changed to using Print.saveAndClearBuf and Print.restoreBuf in function textString.
6a02fca041Per Östlund- Added flag +scalarizeMinMax to enable scalarization of min/max reductions.
0cab705d6fMartin Sjölund- Add new API setCFlags(str)/getCFlags
4617f01d2fPer Östlund- Make +orderConnections=false work as intended.
07b9c81594Martin 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
41173e1a8fMartin SjölundGenerate smaller executables by using dynamic libraries in Linux/OSX
1d82356adcAdrian Pop- fix tests and a minor printout of the ClassInf.STATE
fb23d27681Adrian PopImplement task: #2084, CHANGES TO FrontEnd interfaces!
25fd4fbe81Adrian Pop- attempt to fix Windows simulations (always link with -llapack-mingw -ltmglib-mingw -lblas-mingw for runtime)
6e0d7e066bMartin SjölundSilly Windows crap
348cd0b45dMartin SjölundRemove dgesv_aux
c1aebceef8Willi Braun - switched to lapack library instead using internal copy - fixed some compiling warning (clang)
e2bb3100a4Jens Frenkel- if BackendDAE.NO_INDEX_REDUCTION() is selected use NONE() for index reduction method
312843f1a0Jens Frenkel- remove old tearing Implementation - remove old index reduction algorithm - remove unused flags TEARING,RELAXATION,TEARING_AND_RELAXATION
0bcc037c5fJens Frenkel- minor improvements
e3dfb2667fJens Frenkel- update Tests - remove old functions
66a0ee40f7Jens Frenkel- fix for unevaluatable fixed attribute
b0fad43999Jens Frenkel- switch to new evaluate parameter implementation
aead67e351Jens Frenkel- fix warning
4df56ebe4dJens 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
005d569eedJim NutaroFixed state selection and initialization problem in the adevs backend
f4f3c0533dJens Frenkel- minor changes, parameter evaluation, SparsePattern
018d4cef35Martin Sjölund- At least kill the damn executable after the interactive simulation runs (I found no way to actually make the executable exit...)
5010c4d9ceJens Frenkel- speed up generation of linear systems by improve getRhsSystem funktions, generate zero replacements only once - do not clear matching twice
240506105eLennart Ochel- minor (static and const) fixes
3492485b30Lennart 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)
d95eb3ae44Jens Frenkel- speedup inlining of bind exp from parameters with chaching
c520accd1bMartin Sjölund- Improve error-messages when ModelicaBuiltin.mo cannot be found - Force correct OPENMODELICAHOME while building the bootstrapping header
dd3e185502Martin SjölundUse CLOCK_MONOTONIC_RAW only if the platform has it available
9fd19ab603Martin SjölundTypo
6e75b8bc78Martin Sjölund#2070 Create help-text for "topics" and made that the default from scripting/interactive
bad30f5130Martin SjölundFix usage of override flags in runtime
e0dd88616aAdrian Pop- move assignments *AFTER* all the variable definitions to please ANSI C (MSVC).
6a61661f39Jim NutaroState selection seems to work.
9260697fe8Willi Braun - slightly changes to the implicit radau codes - added initial testset for radau codes
a7a2b727e9Jim NutaroCorrected problem with array allocation.
09d9600568Martin SjölundUse svg thumbnails for measureTime (fewer gnuplot warnings, smaller filesize)
3bc88c45e6Martin SjölundWindows crap
64517eee6eMartin Sjölund- Bump MSL revision - Fix measureTime count graphs
11dea7d5bfMartin Sjölund- Don't cast char* to string*
5a4cf8d912Martin SjölundFix Windows/OSX
68b8bb8a2bMartin Sjölund#2073 - Only output one for a block of statements
cf5b4325e8Vitalij Ruge- added some implicit solver -- used kinsol for nlp
a4250b32e5Martin 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)
a307afc0a2Jim NutaroFixed (I think) definition of and indexing into array variables in the adevs backend.
c938b16d52Jens Frenkel- add array information to stateset.x variable
e6eec91851Martin SjölundBump a file to re-run everything in hudson and make sure the server works fine before I leave for home
057630d010Martin 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)
b9d03911a9Martin Sjölund- Also remove the preExp
56c25a3ac6Martin SjölundDon't add unused vardecls to the code
6ce9cb3ef2Martin Sjölund- Fix LibraryDirectory and IncludeDirectory defaults
120ce43a54Pavol 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
e5ca95eb88Per Östlund- Fix syntax in generated modelica code for FMI co-simulation.
166629b846Per ÖstlundFix for #2056: - Use 32-bit integer arrays for external fortran functions. - Added test case LapackInverse, and removed incomplete and broken test case JoinThreeVectors2.
595530c5e9Martin SjölundUse background color instead of foreground to get a better contrast for yellow
baab5bbe6bMartin SjölundSome tail recursion
4e1a57adecMartin SjölundBring back the last part of r15233 (but fixed so it works)
7749cda853Martin SjölundBring back part of r15233
b235e09722Martin SjölundRevert r15233. I'll fix the problems later and recommit it.
cc2355d067Martin SjölundSome more tail recursion
f0863f79e6Martin SjölundReduce size of stack for a few functions
1ad68676e2Martin SjölundHuge performance increase to the new hashing (factor >500 for MetaModelica expressions)
b679880e8eMartin SjölundTry to make bootstrapping work with less stack
eb1f9b8f8dMartin SjölundFix bootstrapping/tail recursion
4e60107012Willi Braun - a small tweak to transposeSparsePattern
42949c270cLennart Ochel- fix uninitialized timers
3369673768Willi Braun - rewritten of getSparsePattern - suppress execStat while instialization
0979c347cePer Östlund- Fix bootstrapping.
9e6971c079Martin SjölundProvide more information for BuildModelRecursive.mos
66f04cbdb3Martin SjölundRespect package.order
227e4eef9bPeter 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.
f833686c6aPavol Privitzermore fix bootstrapping (complete tplCallWithFailError2, too)
e59c8b84c8Martin SjölundFix bootstrapping
17de475e9bPavol PrivitzerTrying to satisfy bootstraping tests
fce8c42d4aPavol 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)
886aa22caePavol Privitzer- a fix of asprintf() for MSVC snprintf() replaced with vsnprintf()
2967495d79Pavol 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
c661013117Pavol 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)
e3fc4eb8ceAdrian Pop- there is NO "c" target, just "C"!
fa49e9f2ecPavol Privitzer- Susan does not generate unreachable match cases for map expressions (a clean-up)
28bec13a0cPavol 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
6c1952b8e2Martin SjölundDie tabs, die!
4a2125b156Adrian Pop- more fixes to CMakeLists.txt (no more _empty.c) - ANSI C (variable declarations are at the top of the function!)
336bc4ca06Willi Braun - added really all equations to *_info.xml what fixes the reading of the *_info.xml
378a179f74Willi Braun - removed simulation options that aren't used anymore more
5b2ea7267eAdrian Pop- fix CMakeLists.txt due to changes from cpp to c.
8c61f42b82Willi Braun#2065 - removed LOG_ENDJAC
a42a65a113Adrian Pop- fix builds
a82b4d53e8Willi Braun - attempt to fix interactive test
bf38a0b664Martin Sjölund- Be able to link without sundials/kinsol
55ffa298e3Martin 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
6c5da28fc7Henning Kiel- fix some prototypes - add "static" keyword for local functions
90dce966ddWilli Braun - attempt to fix interactive mode - basic functions like start, pause, change parameter should work now
73857c3a17Adeel Asghar- handle the time alias var in FMUs.
b82a4f37f1Martin Sjölund- Added support for help("topic") - Added help-text for topic "simulation", which outputs the simulation helptext
c052b64228Willi Braun - attempt to fix windows build
c703f49242Willi Braun - deactivate DEBUG_OUTPUT again
df5913380cWilli Braun - get rid of matrix.h
6f22385472Willi Braun - rewritten mixed system solver from makros to functions
b6afa9ddc7Jim NutaroFirst version of dynamic state selection in the adevs backend.
bfbc1e4602Martin SjölundDon't include our f2c.h if we link against the one from the system
9e26ff369aPer Östlund- Fix includes for interactive runtime in Linux.
ffb5c5d0cfMartin Sjölund"StateSelect =" to "stateSelect ="
1275dc4d9aMartin SjölundDAEDump.tpl: Write "stateSelect =" instead of "StateSelect ="
da94025d8eAdrian Pop- attempt to fix the Windows build, include for cpp.
78fe1a07bcWilli Braun - next try to fix windows build
0af1544d2fWilli Braun - reactivated compilation of interactive mode - updated interactive mode to the current c runtime structure
b0e1ac5002Willi Braun - fix tabs
2c85ce1d49Willi Braun - added fogotten files
df4c38d44bMartin SjölundAdding API getAvailableLibraries() => {"Modelica","ModelicaServices",...}
05ddf10785Willi Braun - rewritten the linear solver interface - updated the broken tests
32a0350e7dAdeel Asghar- Use System.escapedString instead of System.stringReplace
7e534e478aMartin Sjölund#2068 - Tail recursion for SimCodeUtil.elaborateRecordDeclarationsForMetarecords
e192663502Martin Sjölund- Don't build or include libf2c library/headers if we have a system version installed - Update Linux build documentation - Update svn:ignore
9a82b7a1a7Adeel Asghar- kill tabs.
1c3e090d01Adeel 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.
d84dfb3628Adeel Asghar- return file path with forward slashes or double back slashes. Forward slashes are more better and they won't break the test suite.
754e837943Adrian Pop- added $cpuTime to the identifiers known by OpenModelica.
43b3aa706eLennart Ochel- change $cpu_time to $cpuTime because of Adrian's preferences ;-)
0adb67cd05Lennart Ochel- revert 15140
bcf52e28bbLennart Ochel- $cpu_time -> '$cpu_time'
c6c6816660Lennart Ochel- cleanup
b103a256aeLennart Ochel- minor fixes to DSS
a16fea9fa2Christoph HögerAdd fedora's qwt path to default search
19170657dbPer Ö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.
7a7b39e04eLennart Ochel- fix gcc-warnings for c-runtime - introduce new flag -ils (c-runtime)
a84ef06889Mahder Alemseged Gebremedhin+ revert 15132
3dc277f22fMahder Alemseged Gebremedhin+ Fix for operators access in classes which derive an operator record. - Remove unnecessarily printed message to failtrace.
986949e69dAdrian 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.
cd8bbbdc09Lennart Ochel- update LOG_INIT for old initialization
f668310715Adrian PopUtil.mo - fix testsuite on Windows (replace \ with / so relative paths are the same)
119c3301caMartin SjölundEscape FILE_INFO strings
3d7226a3c6Lennart Ochel- update NLS dump - try to stop singular models - that must be revised because of bad design - include MathematicalAspects into test-script
20bf1fc9c5Per ÖstlundFix for #2057: - Evaluate the dimension when constant evaluating self-referential size expressions, instead of hoping that it happens to be an integer.
ef42c82103Adeel 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.
18fe274d29Lennart Ochel- update help-text
22054286c2Lennart Ochel- add -cpu support for plt and csv files
3a653ac735Leonardo Laguna-Fixed problem when extracting uncertainties with approximated equations
3d0f54f044Jens 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
85a99447abMartin SjölundFix for loadFileInteractiveQualified.mos
f252efb56bMartin SjölundFix remaining tests
ded5128a69Martin Sjölund- Some fixes to the parser. Will baseline tests after this.
860606c37bAdrian Pop- forgot this change
2e31cf7f12Adrian Pop- fix windows build
c019bb3352Martin 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?)
a1972933d2Adrian PopPATH_MAX has never been spotted in Windows :)
f066c759deLennart Ochel- update LOG_NLS and LOG_NLS_JAC
34143973a7Lennart Ochel- update LOG_SOTI
ab85818569Lennart Ochel- fix for renaming of DEBUG_STREAM
909b3bafeaLennart Ochel- fix help text for -lv - fix dumps for LOG_DSS, LOG_DSS_JAC - patch from #2058 for SimCodeDump.tpl
75cd767ab5Martin SjölundNote to self: Bootstrapping + changing parser at the same time is annoying
2ff29f38c7Martin SjölundFix bootstrapping damnit
b41ccc5fbaAdrian Pop- fix the broken builds by adding the missing define. change the define if you wanted something else.
38235d9dd1Martin SjölundAlways use full pathnames for file info of parsed files
10cbbda772Peter 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.
ecd9bc4918Jens Frenkel- bugfix stateselection, use nonscalar indizes to get Equations
579cc2832bLennart Ochel- minor changes - rename DEBUG_STREAM -> ACTIVE_STREAM - fix illegal stream-disjunctions
b0d2b7f60fJens Frenkel- fix for asprintf on windows mingw and msvc
99fa25e461Martin SjölundAdded what should be a version of asprintf that works in visual studio
a89bed24c4Jens Frenkel- fix windows build, asprintf: These functions are GNU extensions, not in C or POSIX.
99434461a0Jens Frenkel- update CMAKE for target=msvc because of r15072
8967307ee4Lennart Ochel- new flag (-cpu)
3a174573ffLennart Ochel- care about const
d4118b915aLennart Ochel- update LOG_STATS
9b7d8468dcMartin 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
ffaefb0a78Leonardo Laguna- Updating data reconciliation tests
ba5f6eb466Jim NutaroPartial support for mapping Modelica arrays to C arrays
36f36343d6Jim NutaroStart of work on emitting modelica arrays as C arrays.
8c1636dee6Per Östlund- Fix bootstrapping.
b3ef4e92ccAdrian Pop- remove tabs.
cb7380056eMartin SjölundSet OPENMODELICAHOME for bootstrapped builds
17296b20daPer Östlund- Added some basic sanity checking of type errors.
afcb08d1eaPer Ö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).
75e083709aMartin SjölundDon't touch the grammar file (causes re-compilation if filesystem has high resolution)
d25d07e953Jim NutaroRemoved $ from generated variable names.
b4c9658f18Leonardo Laguna-Removing uncessary print statements
b8408cfe96Martin SjölundFix RML sources
2a1dce8cf9Martin 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
a274303e12Martin SjölundFix for FMU
084bee9264Martin SjölundChange header file from _fileNamePrefix.h to fileNamePrefix_model.h
e792cd33b8Adam BergmarkPartial evaluation/application: Fix variable name generation and positioning of partially papplied arguments. Enables partial application of single functions for normal and recursive functions.
7023944f9cJens Frenkel- speed up Indexreduktion: use List.uniqueIntN instead of List.unique for Integer Lists
5623c28ad0Martin SjölundAllow compiling without sundials again
775f734e92Martin Sjölund- Re-enable patching MSL
6e8695fd7dMartin SjölundBump MSL version
48d5ac22f6Adrian Pop- fix bootstrapping.
9c6bc44ed0Leonardo Laguna- Updating to the uncertainties algorithm. Dumping of steps uses Print.mo
3fb9764331Per ÖstlundFix for issue #2043: - Handle extends when checking external objects in NFSCodeDependency.
f8646aaf4eVitalij Ruge- added new solver method: implicit Runge-Kutta (radau IIA order 5 for stiff systems)
cf8a00f2c8Niklas Worschechfix for nonlin solver selection in cpp template
9c513f2501Niklas Worschechfix for typo in cmake file
7d45756c85Niklas WorschechAdded Kinsol solver selection
01bfc57e37Adrian Pop- bump version number to beta4+dev.
5b0bd37e24Adrian 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.
070bd19336Lennart Ochel- fix flag -port
3f3c8a6929Niklas WorschechAdded Kinsol solver to cpp runtime
358bcc2d4aWilli Braun - fixed memory leak in simulation results compare function - updated some tests
b37de6f1d2Martin SjölundMake +simCodeTarget=Dump handle constant literals
b1602ed4ffHenning Kiel- make local functions static - move if-condition out of for-loop - fixed type
88a5393622Adrian Pop- fix CMakeLists.txt as some things moved around.
971da46c56Adrian Pop- library order hell fixed.
11eb0d9a2bLennart Ochel- minor fixes
d96e7479c6Martin SjölundAdded symbolic tracing of array equation scalarization
aa77ae2312Martin 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)
bc253a3134Martin SjölundWrite dump to the chosen filename instead of the modelname (they are usually the same, but not always)
e40e4b2651Henning 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()
2d8c0159aeWilli 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
04fbc9594dLennart Ochel- revise command line arguments for c-runtime (second part)
2212f21053Martin SjölundFix MeasureTime.mos?
1d105cb873Lennart Ochel- revise command line arguments for c-runtime (part one)
e2bb812ff0Martin Sjölund- Added option +d=shortOutput - Used +d=shortOutput in OMNotebook initialization
b350e81ca9Martin SjölundRevert r15004 (did not update tests; and is a bad fix anyway)
fa9868d731Martin Sjölund- +simCodeTarget=Dump now runs xsltproc on the code automatically
e10f196961Christian SChubertincreased stack size to 32Mb for executables on windows
dcb2cbfbecAlachew Mengist- shortOutput optional argument for simulate API - to return short simulation results
6be1b9fc58Martin Sjölund#2027 - Make linspace evaluate dimensions of parameter input third argument
e861589cbeLennart 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
344d8ab13fMartin SjölundMade typof work better for reductions
7fa439db65Willi Braun - added newton solver as non-linear system solver
b3f99d08d7Willi Braun - fixed dumps of non-linear solver - fixed dump description - let warnings outputs always - changed some INFO messages to DEBUG
c6bf3531eeMartin 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
f5c30462bbLennart Ochel- fix some event-dumps - fix description-enum
43c59af57fPer Östlund- Converted a major part of the new instantiation to the new environment and lookup. - Enabled the scodeinst tests which now works again.
9986a14314Lennart Ochel- filter internal variables correctly
adf8aec6afMartin SjölundExpected output
82f7a46f1aLennart Ochel- filter internal variables correctly
d33e3161ccMartin Sjölund- Re-merge r14982
50e3900290Martin Sjölund- Fix performance issue with SimulationResultsCmp.c (quadratic-time memory allocation)
199fb49362Martin SjölundRevert r14982 (breaks 4 tests; 3 of them badly, 1 of them spins forever)
e797d75028Lennart 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)
b87a47ca81Martin SjölundMark subsequent builds not-beta3
b693c92badMartin Sjölund- Mark this build Beta3 in config.h. Tag this revision as 1.9.0 beta3.
73e51fa3bfMartin Sjölund- 1.9.0 ReleaseNotes. Don't tag this revision.
7a828e29c7Willi Braun - fixed bug with time measurements at runtime
7f88cd8608Adrian Pop- in Windows copy PySimulator to build\share\omc\scripts\PythonInterface for now maybe we can find a better place later.
307a3933c6Martin Sjölund- Added MLS 3.2 ModelicaVFormatMessage/Error - Made the DIVISION() macro use testsuite-friendly filenames
b73c5d97ffPer ÖstlundPartial fix for ticket #2027: - Fix type of array reduction.
fec07cbff1Lennart Ochel- fix c/cpp comment
0fbe185af2Lennart Ochel- disable debug-outputs by default to increase performance
c01b4f79d4Henning Kiel- adjust some paths (testsuite/ related) - fix some typos and formattings
cae0afd888Mahder Alemseged Gebremedhin+ Generate default value bindings for protected components of a record.
a14fcdba48Martin SjölundPrint longer filenames when running the testsuite (no more "which package.mo should I look in?")
77f95132b3Martin SjölundFix regex usage
78af88c06bMartin SjölundFix regex output for empty patterns
8ab86c9a6cAdrian Pop- utf8 no signature.
6207712990Adrian 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")))
8312787b33Adrian Pop- fix utf-8 without signature: SimulationRuntime/cpp/* - fix missing separator testsuite/flattening/modelica/redeclare/Makefile
766fa87374Adrian Pop- geez, stdafx.h actually exists but with small letters. fix case.
6bca731f0bAdrian Pop- guard StdAfx.h with _MSC_VER #if defined(_MSC_VER) #include "StdAfx.h" #endif
732e758b7fWilli Braun - fixed symbolic jacobians for tearing systems - removed some debug output from jacobian calculation calls (performance)
14d79f1220Martin SjölundRemove BOM
30a6937198Niklas Worschechfixed include names in SystemDefaultImplementation
55b0b5fb17Niklas Worschechconverted cpp an h files in cpp runtime to utf8
b5626d9f62Niklas Worschechfixed SimulationRuntime/cpp/Makefile
0a7df03292Christian SChubertone star for msvc
9c30bb68faNiklas WorschechReorganized cpp runtime folders. Simplified solver interface methods. Removed unused functions. Renamed interfaces
92b95b1149Martin Sjölund- Keep using smart, fast code for GCC/Clang
2926298b0dChristian SChubertupdated CMakeLists.txt to use regex.c/h for msvc
22dc3961a6Martin 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)
f791481467Per Östlund- Disabled check for replaceable baseclasses for now, since it doesn't work correctly.
16f9fb7689Christian SChubertCompiler/runtime: inserted changes so that msvc can compile it
68218f6e7bMahder Alemseged Gebremedhin+ Small fix for uncertainties attributes. Expect fully-qualified idents.
7aed191f45Martin SjölundDon't use ModelicaExternalC - we can use alloc_modelica_string directly instead
33c0f0d416Martin Sjölund- Fix simulation runtime handling of regex()
708ea57475Mahder Alemseged Gebremedhin+ Handle protected elements too when evaluating records.
49243825bbPer Östlund- Add parentheses around subscripted expressions in ExpressionDump when needed.
179b3e8020Jens Frenkel- comment out debug output
4d47da8a62Jens Frenkel- bugfix for use assigments from SingularSystemCheck
021b098fe6Martin 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)
0f80740e17Jens Frenkel- looks like some algorithms do not take care on already assigned elements
aa07511abeJens Frenkeltabs
799cb8dc09Federico BergeroUpdating the QSS template and backend
daabcacc6aFederico BergeroFixing some errors in the QSS template
5604dad8e8Lennart Ochel- minor speed up for models without when-clauses - expected output
67d6a898e1Jens Frenkel- add again
4d1de2cec2Jens Frenkel- use matching from singular system check for main matching - do not merge variable attributes of unreplacable variables
6d42703560Jens Frenkel- run tearing behind encapsulateWhenConditions, otherwise the torn systems are lost because matching information is thrown away
3375f15b26Jim NutaroAdded extra argument to sample function
2cc65e17c5Pavol 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)
05295c9e89Martin SjölundAdd JS diff tool to the simcode dump
d7ec12fd53Jens Frenkel- add flag to run OnRelaxation
90674b3928Per Ö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.
fbfafe0ae6Martin Sjölund- Update tracing of symbolic operations for usability/readability
f5c9d75174Christian SChubertfmu: removed forcing of numerical initialization
894e1bcb92Lennart Ochel- move encapsulateWhenCodnitions to post opt. modules
1cc84c8893Christian SChubertfmu: bugfix msvc target
c7e7981574Jens Frenkel- remove special handling of $when, bassed on disscussion with Lennart encapsulateWhenConditions will be moved behind removeSimpleEquations in POST_OPT_MODULES
a81605a57bLennart Ochel- start using sample-lookup for codegen - remove unused function SimCodeUtil.failUnlessResidual
f4fef6355aJens 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
5253abac0aLennart Ochel- continue removing helpVars - fix $PRE.$whenConditionXY to pre($whenConditionXY)
8e12eda6b2Lennart 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
f079c9b8dfPer Östlund- Initial commit of new environment and lookup.
897d61497cJens Frenkel- do not replace lhs of array assign statement - move unreplace constant variables to known vars
c4238882a8Lennart Ochel- start to rewrite handling of sample-calls
0007cdbe9aJens Frenkel- expand cref with range subscripts, this are intruduced when replace for iterators with the range expression.
bf9906688bJens Frenkel- export fmu generated with +target=msvc
3b3c2df896Christian SChubertfmu: initialization crashed because nlsMethod was set to NS_NONE. Now NS_HYBRID is used as default
eeaef33406Christian SChubertfmu: added missing include
b1b55919beJens Frenkel- bugfix traverseExpSubs, use changed list if references not equal
692818a695Martin SjölundUpdate documentation
abd81e0c08Jens Frenkel- report if variable was not found for result compare
88ed7fec2cLennart Ochel- remove some unused functions - fix sample arguments for BackendQSS
ed73736013Jens Frenkel- bugfix state selection
1097784d51Martin Sjölund- Create target to build 3.2.1 version of ModelicaServices modelica3d
dd96143d96Martin Sjölund- Make pre(matrix) have the correct type
ef0baad763Jens Frenkel- bugfix state selection
8140622ad4Jim NutaroFixed name of PRE variables
72d9e536e6Jens Frenkel- bugfix for r14861
9c2232b484Jens 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
de1f6a8460Jens 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
72beca4216Niklas Worschechadapted util/numeric include paths
650e9fbabfVitalij Ruge- generate objective function in C for optimization
64fb040a3aMahder Alemseged Gebremedhin+ Record constructors: get default values from the original record declaration. Not from an instance (possibly modified) of a record.
45143ca280Jens Frenkel- add missing Types to statementOutputs
8edd0b123aJens Frenkel- add Types for all DAE.Statement to ppStmtStr
54c6d6854dMahder Alemseged Gebremedhin+ reverting changes from r14841
22b76c9178Mahder Alemseged Gebremedhin+ Record constructors: get default values from the original record declaration. Not from a [modified] instance of the record.
c467b5dbf0Mahder Alemseged Gebremedhin- cleanup record construction. - see what fails
4a1ad7dd76Lennart Ochel- fix bug in preOptModule encapsulateWhenConditions - fix accidentally generated strong components
8391d741deLennart Ochel- fix bugs in preOptModule encapsulateWhenConditions - consider removed equations - fix handling of pre-statements
2c2db02a4aJens Frenkel- keep branche order for if equations
965cf4fad1Lennart 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
76435ebcdbNiklas Worschechadapted cpp template on removed help vars
26d4b007faJens Frenkel- fix for if equations with internal as algorithm handelt equations - add Test IfEquation6 - Change Error for initial changing pivoting to warning
c4aa195d92Christian SChubertchanged makefile for msvc target: Added missing libraries given through annotations
3fd5cf624cLennart Ochel- remove internal vars from result-file
2381b611f8Martin Sjölund- Added ParallelPRV test to the testsuite
0228571ae9Willi 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.
6c9343ac2dJens Frenkel- fix parseCompilerSources
f2496676bfMartin SjölundLoad-balance algebraics
0f7fc29e6aMartin SjölundMade algebraic continous functions possible to run in parallel
3b3f5ce99fJens Frenkel- fix parseCompilerSources
4eb42a6595Jens Frenkel- remove tabs
d8bf3844dcWilli Braun - bug fix for BackenDAEutil.analyzeJacobian
da969ffc56Jens Frenkel- clean up in Tearing.mo
1e77d8bce1Jens Frenkel- move tearing to Tearing.mo, add new tearing methods, not yet finished
9e053581ccPer ÖstlundFix for issue #2024: - Fixed cref expansion for qualified crefs with subscripts.
50df2999faMartin Sjölund- Make sure empty partitioned independent systems do not count as systems (filter them out)
ced7072d63Jens Frenkel- check systems with constant jacobian if jacobian has full rang (is singular)
1936643dfaLennart Ochel- continue removing helpVars
05b4ea0de0Vitalij Ruge- forgote some outliers
4a5bfe4b9eVitalij Ruge- corrected and add math rules - Code Style
4babe34629Martin Sjölund- Make gnuplot output more robust
813a6e53a8Jens 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
73ccb09c56Lennart Ochel- continue removing helpVars from backend
4868c73552Martin 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
0dbb773306Lennart Ochel- continue removing helpVars from c-runtime
65df476d35Lennart 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.
b284623f7aMahder Alemseged Gebremedhin+ Set constants without bindings in records as input vars to the record constructor. + See which tests fail.
fa6c35f061Martin Sjölund- Rename keyword overload to $overload
4cd0a254ecMahder Alemseged Gebremedhin+ revert changes from r14791.
17af5abddeMahder Alemseged Gebremedhin+ Just to see if anything fails
37a68b9aabMartin SjölundFix bootstrapping
94bea6f792Martin Sjölund- Merge all annotations into one for external definitions (so we never miss one, or use the wrong one)
4c3f34d7eeWilli Braun - fixed some tests by run symbolic initialization as a discrete step
736bf965c2Lennart 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
d43df4ddabMartin Sjölund- Make the filename prefix of the simulate commands be the actual class if using reflections
7baa05102cMartin Sjölund- Updated test-script and results (only use the error module, not printf) - Made BranchingDynamicPipes a lot smaller (suppress the output)
e8b019e11cMahder Alemseged Gebremedhin+ Type functions before typing classes.
12f58e4d98Martin Sjölund- Adding the new model-testing script
3d4a8da7beMahder Alemseged Gebremedhin+ Instantiation and typing of record constructors. + Small fix for call vectorization. + Implemented List.extractOnTrue.
9b8b46378fMartin 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
58601ef487Willi Braun- fixed stepSize bug in simulate builtin-call
acad1a82ffLennart Ochel- upps
553f290f66Lennart Ochel- new preOptModule: encapsulateWhenConditions - this module encapsulates each when-condition in a boolean-variable - debug-dump with: +d=dumpEncapsulateWhenConditions
a5488d9a80Lennart Ochel- fix delay within symbolic initialization
268428d78cBill Janssenfixed bad close tags; change fun:Statments to fun:Statements
1426ac9ad0Jens 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
6c81ce4442Jens Frenkel- add state derivative var to knvars of jacobian state set
974a106b48Martin SjölundImprove errors when BackendDAECreate fails
8181f1fc7eAlachew Mengist- removing unnecessary string name alachew
c17e202a68Martin SjölundMake -help work again
84e495e855Lennart Ochel- provide some more information if kinsol failes
354f2703e1Alachew Mengist-API to translate a Modelica model for XML export from GUI
408935121bJens 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
49130652abJens Frenkel- SIM_PROF_EQ_ is a false friend, we have to do more stuff to get the nonlinear index also daeeqnslist
565ee5ef6cJens Frenkel- bugfix inline solver
034672330bJens Frenkel- bugfix nonlinear system - expected results - move pivoting before initialization, check after initilization if pivoting change and report error message
34eb99ca15Jens 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
df64af6259Martin Sjölund- Read csv-file using C API instead of C++
adc44b09eaJens Frenkel- bugfix for model fmi/ModelExchange, inital system was not solvable now it is
796c1feb43Martin Sjölund- Cleanup
9c78552115Martin Sjölund- Bump MSL version - Fix modelica:// for mo-files
05084741b5Martin Sjölund- Force evaluation of fixed=...
12d6f2fef9Adrian 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
73a3f4f681Lennart Ochel- fix #2011 (sample breaks c-code)
24366f55d2Leonardo Laguna- Changing the scope of functions used by MathCore modules.
1bcaac7901Martin Sjölund- Bump MSL version - Fix MSL coverage test
dfa25bb2aeMartin Sjölund- Fix time column for the SimCode phase
2de71a548fJens Frenkel- less output in case of unsolvable linear system
c807ab41d2Jens Frenkel- workaround for initialsystem to handle dynamic pivot better ToDo: reimplement initialization of simulation runtime for symbolic initial system
10dc7c39abJens Frenkel- add missing return statement - use minimal norm in case of 0/0
20e4e7a3f1Jens Frenkel- add error message for division by zero to initial equations - use c comments - better error message vor pivot.c
9f58e5dee8Martin Sjölund- Bump MSL version Constrain Universal and Revolute now seem to fail
6581f59b2aJens Frenkel- bugfix dynamic state selection, start values for STATESET.A
d39091a991Jens Frenkel- _event_div_integer: check if value2 is zero before call ldiv - trunc for msvc
2ba0b384bfJens Frenkel- bugfix dynamic state selection
366d77fe5eMartin Sjölund- Increase buildModel time limit
c444a960fdMartin Sjölund#1957 - Fixes for Elementar.Surfaces
968cbdb689Martin Sjölund#1957 - Handle Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.jet
5bb1ebbdc6Jens Frenkel- bugfix dynamic state selection
f49a670ab5Jens Frenkel- bugfix dynamic state selection
53967ecf88Jens Frenkel- bugfix dynamic state selection
64e1d4636dJens Frenkel- switch to new state selection method, combines and improves the last two versions
2366ab0de0Jens Frenkel- report warning if solving of liniear system failed
a870549169Adrian Pop- use the proper server name: openmodelica.org instead of the old one: openmodelica.ida.liu.se
3fbb6a7f61Martin Sjölund- Bump MSL version
f4b28f262cJens Frenkel- fix bug from last commit
fc96530ca0Jens Frenkel- improved state selection method, not yet aktivated
fecb58bf22Jens Frenkel- check if protected variables have record or array type, thous are not supported by VarTransform
dc09a612ecJens 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
10f5f2517eJens Frenkel- remove unused parameters from BackendDAETransform.tarjanAlgorithm
5003b976ffJens Frenkel- add information to store how often a state are differentiated - bugfix BackendVariable.hasContinousVar
b011ca9e7dJens Frenkel- work not as expected, switch back to old one
0601faa781Jens Frenkel- remove debug print
6f010a188fJens 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
a76bdc8bceMartin Sjölund- Bump MSL version - Handle "import .A.B.C;" => "import A.B.C;" in Absyn->SCode
b1b36cfdd3Martin Sjölund- Increase simulation time limit to account for EngineV6 taking roughly 1 minute to simulate
bf017ba133Jens Frenkel- bugfix for generate dynamic state selection jacobians
0f47e0fbc2Jens Frenkelif absdouble(time-reftime) > reltol*reftime then report an warning
f85d43ba00Jens Frenkel- bugfix analys strong components, use the same function to check if discrete var is in the block also for splitMixedEquations
a3fa638fcdMartin Sjölund- Fix compilation
efa6fae1cdMartin Sjölund- Fix compilation
4a8cd21c4bJens Frenkel- bugfxi for avoid strange rml bug
2a95c5bd46Jens 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
d9a5dc6c8cMartin Sjölund- Fix uriToFilename API
5f09b717e5Jens Frenkel- avoid strange rml bug
e752d49a9dLennart Ochel#2008
af4b135558Lennart Ochel- upps (fix for multiple definitions)
8453f3295bJens Frenkel- search simple replacements up to MAXTRAVERSALS - add coments, move all public parts upwarts and protected downwarts
5955e87487Martin Sjölund- Fix testsuite and new format of failure to open reference files
9628cc124eVitalij Ruge- Manipulation of the Runge Kutta equations for split StrongComponents
f20ce379deJens 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
f3e8ee3d5cMartin 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)
763925fa4cJens Frenkel- report warning if simulationtime of result file is different to simulation time of model
58c283f109Martin Sjölund- Improve result-file messages
b889e053e7Martin Sjölund- Fix builds using mico (hopefully) - Updated installation instructions
3e7dbe7aafMartin Sjölund- Some fixes for min/max defines and namespaces on older systems
a115e7e427Jens Frenkel- bugfix for delay
a0b372f491Lennart 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
ccdf0702a6Jens Frenkel- partition the state selection system
a74af1bdaaJens Frenkel- equations with "delay" are not time indepentent
ef2b81dc30Jens Frenkel- collect also pre(var) of continues vars used in whens
d6da2dbe5dJens 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
69c0fb5f63Martin Sjölund- Removed $Id$ from generated code (this should reduce number of times svn diff says you changed generated files)
47dc5c2f15Jens Frenkel- bugfix dynamic state selection
312252b481Jens Frenkel- bugfix bootstrapping - do not select discrete variables as tearing variables
df21287ff4Jens Frenkel- bugfix memset jacobian for stateselection
dbb69e83e3Martin Sjölund- Fix logic for opencl runtime
478cf0b0d0Jens Frenkel- bugfix for selection of initial vars from statesets
3cf7975411Martin Sjölund- Disable OpenCL if not found
20e29af570Jens Frenkel- keep differentiated equations as they are and replace state order der(x)=v, replace der(x) with v, only for state selection equations
7632aa0700Jens Frenkel- do not replace crefs from initial equations
631a3b9338Martin Sjölund- Reverting r14595 (r10048 is more important; Windows XP does not report exit status if /B is used)
d1efe07227Martin Sjölund- Fix to build using the apple built-in OpenCL headers
d09bbfbe9cJens Frenkel- do not replace unfixed parameter
2577098413Jens Frenkel- fix for last commit
05ff008a75Jens Frenkel- add missing lapack lib for msvc Target - CodeGenC.expTypeFromExpFlag(flag=2): use modelica_string_t instead of modelica_string makes msvc happy
2d6d9f0714Jens 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
7da6cfa0c7Christian SChubertCompile.bat: exit /b exits only from batch file and does not close the cmd.exe when run on its own
35da308c03Jens Frenkel- ignore inputs
3c1c685f89Jens Frenkel- Initialization: bugfix for inline when statements, report warning without flag for overdetermined systems
acf1e4712eJens 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
4baac9b043Jens Frenkel- fix for last commit
ef1166b7e9Jens Frenkel- switch of debug outputs
ce4a65ab57Jens Frenkel- fix for last commit, move fixed pre to known variables to avoid equal equations var = pre(var), do not replace variables with pre
c1f28247feJens 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
69f42eefeaJens Frenkel- initialisation: generate for each variable of inaktive when statement branch an equation var = pre(var)
97395b4ea6Alachew Mengist- New API for DrModelica
fc2503388cJens Frenkel- check whens and do not replace variabes set in when (equation and algorithm)
9a86c42cd8Jens Frenkel- change handling of inaktive when equations for variables with unused pre(var)
937453c059Jens Frenkel- replace initial() with true and sample(..) with false in initial system
78e1b8c453Jens Frenkel- consider type of cref when generate equation from aktive when equation - do not add variables with constant bindexpression to initial system
77dc3651d6Jens Frenkel- bugfix for last commit
0bff240dc0Jens Frenkel- bugfix emtpy Replacements, check also derConst replacements - add for time independent states candidates derConst replacement
cacb180861Jens Frenkel- do not add toplevel inputs to the initial system
4b6c9f4ef9Jens Frenkel- switch to symbolic initialization - Bugfix dynamic state selection code generation, allocate enough memory
913366c671Jens Frenkel- bugfix for dynamic state selection
0c503bf491Jens Frenkel- add for each used pre(var) of an alias var an variable for code generation - bugfix for jacobian for dynamic state selection
2914311161Jens 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
57c94109aeJens Frenkel- fix for last commit
2aa99bfef0Jens Frenkel- do not evalute the discrete system before symbolic initialization is done
1008d4d356Jens Frenkel- bugfix initialization
2eff5156e1Jens 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
d248ee75e2Martin Sjölund#2000 - Make linspace simplify better
49e0f970feJens 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)
857e2dc1d3Jens 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
b3c3c1924eAdeel Asghar- Allocate and free the proper fmi version structures. - some test cases.
9f327c4295Jens Frenkel- do not call optimizeInitialSystem if +d=solveinitialsystem is used
fa316f9279Adrian Pop- duh! RCONST instead of ICONST. holiday brain damage :)
c9a5da15eaAdrian Pop- fix bug #1993 handle negative start times.
e31c5c4064Lennart Ochel- generate variables for inline solver again (was removed in r14511)
35f5380a08Jens Frenkel- try to solve single assigment statements
0afa2d8a90Jens Frenkel- ignore state set variables for initial variables - add state set statecandidates to initial variables - convert single inaktive when algorithm sections to equations
ef1922bd1cJens Frenkel- partitionIndependentBlocks: dump no error message if throwNoError is true
52beda77ecAdrian Pop- remove one extra run of buildModel done for no apparent reason (probably just a copy paste error). - add flags: setMatchingAlgorithm("PFPlusExt"); setIndexReductionMethod("dynamicStateSelection");
b4091f63b5Jens Frenkel- fix bootstrapping
7d5e346e86Jens Frenkel- splitt the initial system in independend subsystems to see easier what the problem is
42000e562aJens 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
e40736dc32Adrian Pop- do not print = twice in modifiers.
3e011e88a9Adrian 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.
cda1a875b2Jens Frenkel- fix for last commit
66de325fb3Jens Frenkel- do pre replacements also in event info - check also alias vars for discrete pre variables for the system
033352e761Jim NutaroSimplified event handling in the adevs backend
592ed10848Jens Frenkel- help the symbolic initialization by calling simplifyTimeIndepFuncCalls after the initial system is generated
acd9d41bd7Jens Frenkel- Derive: add case for MUL_SCALAR_PRODUCT - check Flag for actuall index reduction version
2248115208Jens Frenkel- Dynamic State Selection, add missing equations to the system if number of equations is equal to number of variables
18e62980f3Jens Frenkel- and switch back to old one
995f622a51Jens Frenkel- try new state selection
0090f58602Jens Frenkel- bugfix dynamic state selection, start value for A Matrix
d848adb69aJens Frenkel- fix tests - bugfix dynamic state selection, planar pendulum works now
203d1952fbJens Frenkel- add missing forward declaration for generated code
7f247409a3Jens Frenkel- do not use the same names for inline vars, fix previous commit from bielefeld people
200cf48599Adrian Pop- fix UTF-8 encodings.
6e1f803ce0Jens Frenkeladd missing files
182dbae489Jens Frenkel- continue dynamic state selection
4b50aa8f97Adrian Pop- fix bootstrapping - dt is given as input so is not needed inside the function. also, you cannot assign to inputs!
8084d461eeVitalij Ruge- collect inlineVars for code generation - symbolic to numeric coefficients for Lobatto IIIA - Lobatto IIIA equations must be better now
d08107fa4aLennart Ochel- again some inline solver stuff - propagate variables to code generation
a75a680b3bJens Frenkel- fix some bugs in sparse jacobian calculation to support NxM
e171af4c8cAdrian Pop- do not split out the modifiers from redeclares in case of functions and records.
dab021a1f5Lennart Ochel- keep original states in the inline-solver-system
d073f5d0a9Lennart Ochel- small changes for indentations and comments
b8961616b9Jens Frenkel- continue dynamic state selection, try to get symbolic jacobian
c3cb7d005cWilli Braun#1992 - fixed alias treatmeant outputFormat plt
6407ead218Vitalij Ruge- variable moved for simplification
4f0b834742Lennart Ochel- upps
bb3e0c606eLennart Ochel- further steps for the implementation of the inline solver
8a97e7780eAdrian Pop- more fixes for bug #1956 for +scodeInstShortcut (should fix some of the AVM models)
c780843c0cAdrian Pop- fixes for bug #1956 for +scodeInstShortcut. add test: testsuite/flattening/modelica/scodeinst/ParameterBug.mos - build omc-diff before omc.
7431019ad6Adrian 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).
1ea63cbec6Lennart Ochel- edit some comments
ca099a3214Vitalij Ruge- Add symbolic equation for Lobatto IIIA
b6f07bde8aMartin Sjölund- Avoid printing error-message
e8c78b0955Jens Frenkel- continue dynamic state selection dynamic pivot
d277935344Jens Frenkel- rewrote BackendDAEUtil.markStateEquations, less programm code to maintain - continue dynamic state selection dynamic pivot
a8d138f498Willi Braun - fix coding style
0098eaee51Willi Braun - fix last commit
b7c035699eWilli 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
9cc08bacb3Lennart 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
67af2953f5Martin Sjölund- Also remove .o-files
6f0f44b678Martin 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
bad55cb278Jens Frenkel- force evaluation of fixed attribute
6ac7652ccfJens Frenkel- bugfix remove simple equations, take care on statesets
08f4d9822fJens Frenkel- add StateSets to BackendDAE.EqSystem continue
900e141990Willi 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.
342c410fdbLennart Ochel- indentation
f4e3dfcef3Lennart Ochel- Compiler/BackEnd/Initialization.mo - minor speedup - Compiler/BackEnd/BackendDump.mo - make some dump-calls more clean
243cc2f853Jens Frenkel- add StateSets to BackendDAE.EqSystem
1a3f1e9032Mahder Alemseged Gebremedhin+ New FrontEnd + Typing of calls. + Vectorization of calls.
178a4544fbMartin 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.
090dabf0c4Per Ö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.
678b2927e9Jens Frenkel- rename delteCrefs -> removeCrefs - continue StateSelection
6d103d0e34Willi 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-
71032ce209Jim NutaroAdded alias variables and removed equations to generated code
2775ed35baJens Frenkeldo not yet build pivot.c with cmake
e747b5f901Adrian Pop- remove tabs, replace with 2 spaces. tabs are rather bad as editors displays them differently.
71a27e4adePer Östlund- Add forward declaration of DATA in simulation runtime to get rid of compiler warnings.
a8125b50cdPer ÖstlundPartial fix for #1956 - Split redeclares into redeclare bit and modifier bit in SCodeUtil for easier error checking. - Fix modifier propagation in SCodeMod.
b123152625Christian SChubertimplemented a very simple (and presumably slow) complete pivoting procedure for rectangular matrices, to be used for the new dynamic state selection
4521e23d6dPer Östlund- Add -lm when checking sundials support, so it works on e.g. ArchLinux.
824f98b633Jens Frenkel- BackendEquation.traverseBackendDAEExpsEqnOutEqn: special case for it initial() then ... else ... end if; only else branch needs to be checked
1fde75c602Jim NutaroAdded support for event generating functions to the adevs backend
9e84fa4068Lennart Ochel- typos
c4b94918e0Vitalij Ruge- begin with the code preparation for implicit methods
16db86629aLennart Ochel- avoid needless copy-instructions for static nls data
917161a848Lennart Ochel- fix #1981 - why do we check for results, that are actually wrong? It is really annoying to figure out which tests really succeed.
846f86587bAdrian Pop- duh, handle all cases: inner, innerouter, outer, regular!
c820da40aeAdrian Pop- more fixes for dependency for inner/outer classes.
66093c796eAdrian Pop- do not push these changes yet.
9244278f84Adrian 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.
5c9cf44292Jens Frenkel- bugfix set variable size for dynamic state selection
e05e255312Jens Frenkel- switch back to old state selection
cd926be6cbJens Frenkel- bugfix singular system error message, use nonscalar indices of equations
485ee4d96eJens Frenkel- do not check differentiated equations twice
df643ce387Jens Frenkel- try new state selection approach
9502f0fff4Adrian 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
42b43b309aMartin Sjölund- Expected output
5fd922082bMartin Sjölund- Fix line-endings
3e8f17ff3aMartin Sjölund- Coding style
00ce2524dcMartin Sjölund- Bump MSL version
b39649de0dJens Frenkel- small speedup for index reduction in case of undiffable mss, stopp differentiation and continue with next set
c717b69186Lennart Ochel- some minor changes
4347c65431Adrian Pop- fix typos.
0e5818c480Lennart Ochel- rename LOG_NONLIN_SYS to LOG_NLS - rename LOG_NONLIN_SYS_V to LOG_NLS_V - add brief description for both flags
9f394d1768Lennart Ochel- one more fix for nonlinear systems
adedb231b7Lennart Ochel- small fix for last commit
19fc2f3925Lennart Ochel- add new nonlinear solver: kinsol (runtime-flag: -nls=kinsol)
59cd63912cJens Frenkel- add enumeration to some places
850e61611dWilli Braun - fixed BackendDAEUtil.isDiscreteExp for initial() condition
d57b2d7910Jens 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
a92ba1c79fJens Frenkel- add new case for not differentiable MSS, search for states without used Derivative in Global System
40f187a9a3Lennart Ochel- start implementing inline solver (for vruge alias vitalij)
42e80e4f49Martin Sjölund- Increase time limit
f3372c31b4Martin Sjölund- Remember to print the warning
8cb7d67eabMartin Sjölund- Also handle tests that crash omc
87bb2e00b5Jens 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
9541ece386Jens Frenkel- improve error handling for matching algorithms, use one funktion to report error
f4889f44d5Jens 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
1925ff9c33Adrian Pop- properly delete everything in omc_release - do *not* delete PantelitesSingulaer* as that will delete the failing log that we need for Hudson!
a8660aee9eAdrian 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 :)
1f4d159c4fAdeel Asghar- First version for FMI 2.0 support. - Separate files for common, model exchange and co-simulation functions.
ad5bb7f73eJens Frenkel- dump Uncertainty attribute of variable
54c87b73feMartin Sjölund- I like typos
377cf5cadaMartin Sjölund- Prettier reports
e79274177aMartin Sjölund- Mark executable
d0b961e714Martin Sjölund- Adding a diff script for BuildModelRecursive.mos
17b1f2f71eJens Frenkel- add Singular System check before start to match the system to detect singular systems
d858fc8e9fAdrian Pop- fix bootstrapping. - add testsuite/flattening/modelica/modification/FixedFalse.mo for bug: #1983
8f717694f8Adrian Pop- fix build
5927c638c2Adrian 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.
5409cbf3c5Adrian 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!
183a4a92c3Adrian Pop- attempt to fix bootstrapping: do less inlining when MetaModelica flag is active.
fb94705326Adeel Asghar- Fix FMI tests.
15306e23f2Jens Frenkel- fix copy past error from last commit
09fd39d2a0Jens Frenkel- try to support GenerateEvents Annotation - merge funktionalty of inlinecall and force inlinecall - fix for allAcausal
3bd3e725c5Lennart Ochel- some minor changes for simulation dumps - if unsupported -lv flag is used, a list of all supported -lv flags is shown
5ce247b3aaJens Frenkel- remove old remove simple equations function - rename BackendDAEUtil.reduceIndexDAE -> causalizeDAE - remove unused code
12348dd38aLeonardo Laguna- Minimal change to the uncertainties algorithm
67f865c021Lennart 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
7415d05b94Jens Frenkel- check for equal alias equations a=a
0678291709Henning Kiel- fix memory leak (unfreed temp space) - removed unnecessary memset() where array is initialized directly afterwards
56fb09c6e8Lennart Ochelsome additional improvements for LOG_EVENTS
e3ce23eb61Lennart Ochelsome minor updates for BackendDump.mo
c0a91aac76Lennart 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)
7f13b68310Jens 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)
c9b646276dJens Frenkel- speed up remove simple equations, use less temp variables
9884cec1c5Jens Frenkel- use type of cref for der call and not T_Real by default, solves issues with Unary(Uminus,Unary(Uminus_Arr,__))
9749e23e77Jens Frenkel- bugfix start value merging
b3cc11e9cfJens Frenkel- bugfix for remove simple equations
7b9a324604Lennart 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
a210f23c08Willi Braun#1979 - fixed codegen bug with mul integer product(maybe we need change more of that functions)
98c844c9fbJens 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
0c145d798fMartin Sjölund- Disable inline of functions with protected variables (until we support it properly)
a2e8cf110eJens Frenkel- remove tabs
eb8d14e703Jens Frenkel- switch to new remove simple equations implementation
3df7186c7aMartin Sjölund- Remove *.orig files left from patch
cf4c4aa779Martin Sjölund- Use System.intMaxLit instead of integerMax since it has a better definition
2a9efac9c5Martin Sjölund- Use getconf instead of uname. It works even in chroot environments.
8df3751affMartin Sjölund- Bump MSL version
1f78036951Lennart 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
70a9142eb8Jens Frenkel- check if types equal for alias equation - expexted output - check if variables replacable
dc3a7aaf05Jens Frenkel- second try new remove simple equations - implement trunc for msvc
96f9da7c69Willi Braun#1975
89de4b1085Jens Frenkel- Tearing: speed up numerical solver by sorting the residuals with direct dependency on tearing variables
71f0e66687Jens Frenkel- small speed up for tearing
0ebd2a2401Jens Frenkel- small speed up for tearing
acbbc8eb8bJens Frenkel- switch back to old remove simple equations, the new implementation works fine but I am to tired to update the working tests
50e3fd8c36Jens Frenkel- bugfix for BackendVariable.existsVar
6d711fbd76Jens Frenkel- bugfix for RemoveSimpleEquations, generate equation if not replacable time independent variable.
68368b7602Jens 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
bce7b1a9faAdrian Pop- remove tabs.
f9734c0373Jens Frenkel- use startvalue from var with shortest name - start to check for unreplacable crefs - BaseHashSet.has: empty set containg nothing
85a837b4c7Jim NutaroFinished support (but not very good support) for delay functions to the adevs backend
5e8c6ebf08Jens Frenkel- bugfix for last commit
d47471dabdJens Frenkel- try new remove simple equations
a81cba1cbaJens Frenkel- make BackendVariable.vararrayNth protected use BackendVariable.getVarAt - add LOG_DEBUG Info to callExternalObjectConstructors - continue new Remove Simple Equations
5a5d4c6ce5Jim NutaroFirst try at support for the delay operator in the adevs backend
f0da33e0b3Adrian Pop- fixes for Modelica3D, sort inner ModelicaServices first, then Modelica then others.
1d9aea5f3cJens Frenkel- add missing free, workaround for last commit
1df0bd6b87Jens Frenkel- fix for last commit, log messages needs memory in initData
7f3d80edc8Jens 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
3f6f37b5aaAdrian 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.
0af9f4780eAdrian 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.
dc12dd7da5Jens Frenkel- add RemoveSimpleEquations.mo again
eaed54f251Adrian Pop- handle also InlineAfterIndexReduction as this changed in the lastes MSL version from __Dymola_InlineAfterIndexReduction.
c2cea351d0Lennart 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
b503ae3087Martin Sjölund- Increase time allowed for building an executable
9ed8fd1b54Jens Frenkel- fix potential bug for simplified if equations in old remove simple equations
a12238ce82Jens Frenkel- fix for Ticket #1971 add tes TestTwoOut.mos , val seems to do not work
f82316e5b4Adrian Pop- not working yet, reverting.
228d02f9deAdrian 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.
b7955d1daeAdrian Pop- reverting the commit by Jens and mine with tabs removal: r14251 and r14248 to see who broke what :)
b08ace6d7fAdrian Pop- squash tabs in RemoveSimpleEquations.mo
03aa37e270Adrian Pop- and not or!
1ad15622b0Adrian Pop- fix RML stupidity with types having the same name as the package.
14a3018e86Jens Frenkel- fix potential bug for simplified if equations in old remove simple equations - add new file RemoveSimpleEquations.mo - add new tests for singular systems
2f1609ebfdAdrian Pop- mind your case please.
a42d5e2749Adrian 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.
c18a4bdec9Willi Braun - fixed delay handling in non-linear systems
c9bc4555d5Mahder Alemseged Gebremedhin+ change operator on Multiplication of an array and a scalar.
337562e211Jens Frenkel- generatede file
3771862206Lennart Ochel- indentation
b45fc7cdbdLennart Ochel- a bit more output for unbalanced initial systems
80f54d13c8Lennart Ochel- Compiler/BackEnd - move some functions from BackendDAEUtil.mo to BackendVariable.mo and BackendEquation.mo - move code for initialization to Initialization.mo
f4bde44519Mahder Alemseged Gebremedhin- New FE: Expand arrays inside cast expressions.
217ea9cb30Willi Braun#1959 - added support for event triggering math function e.g. ceil,floor,div,mod,rem,integer
92b794e93fAdrian Pop- rewrite weird code in System_rml.c isIdenticalFile - remove some warnings in FMIImpl.c
08b8f84f57Jens Frenkel- use intMax for repl Size, as in fact wanted
85e27ca3e7Jens 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
1104053519Martin Sjölund- Bump MSL version (ModelicaServices moved)
6aa322964aMartin Sjölund- Update MSL+OM to calculate the maximum integer size instead of using hardcoded constants
e9ed93df6dHenning Kiel- moved some if statements out of for loops - avoid calloc if memory is directly initialized after allocation
941cf63fa6Jens Frenkel- see what happens without old force inline implementation
c065581ca1Jens Frenkel- first attempt to inline function with multiple statements
2e1aa11af5Lennart 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
2ffd4e0ff2Henning Kiel- fix loop boundaries - remove unused variables
6f8e2b1d73Henning Kiel- rollback of file opening issue
d36ca88025Adrian Pop- handle CombiTable1D tables of 1 row only in tables.c Modelica.Blocks.Tables.CombiTable1D z(table = [0, 0.7]);
73afbf606dMartin 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.
2d4c3d8e0fJens Frenkel- BackendDAECreate.lower3: add missing case for DAE.INITIALDEFINE - SimCodeUtil.createNonlinearResidualExp: add case for Enumerations - Expression.expAdd,expSub: add case for Enumerations
581555f6d1Jens Frenkel- break infintite loop in index reduction - update test - fix bootstrapping (that was not easy)
4336a117bcMartin Sjölund- Update MSL version
653a80c0b2Adrian 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 :)
da3a85ebc2Adrian Pop- attempt to fix bootstrapping.
fdaeb10259Jens Frenkel- BackendVarTransform.replaceExp: add missing cases for DAE.TSUB and PARTEVALFUNCTION
2ba52416e4Leonardo Laguna- Fixed problem making the bootstrap test fail
0c7dcef74eLeonardo Laguna- Update to the uncertainties algorithm
7e0b25f71cHenning Kiel- optimize loops - fix memory leak
d74aed2ab2Willi Braun#1960 -fixed bug with integer valued zerocrossings
4a3d647db9Mahder Alemseged Gebremedhin+ ParModelica: fix parallelism propagation, append omc_ prefix to parallel functions, change modelica_assert to omc_assert
5708e2a97dJens Frenkel- expressions with unfixed parameters cannot moved to simple equations because they are calculated before the unfixed parameter values are calculated, 2th try
f3e644a1e3Jens Frenkel- add model for Ticket #1964
ab9238b02bAdrian 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.
305e07affdAdrian 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
be5d1f88a9Adrian 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
b79b99a9fdJim NutaroFixed problem evaluating pre() function in the adevs backend
685e0cf244Jens Frenkel- comment last changes out
38b7e65c80Jens Frenkel- expressions with unfixed parameters cannot moved to simple equations because they are calculated before the unfixed parameter values are calculated
289eb22851Jens Frenkel- traverse also subscripts of cref in traverseExptopDown
5856a42a20Jens Frenkel- missing function from last commit
60bef9f830Jens Frenkel- improve algortihm for handling undifferentiable mss - copy also lapack and blas for msvc debugging - comment for further developemnt to BackendDAE.STATE
aa6266aa4fAdrian Pop- remove the tabs
c5d9436b81Jim NutaroAdded support for sample to adevs
67c873e3a1Jens Frenkel- bufgix for replace STMT_ASSIGN_ARR
7e15db00c6Jens Frenkel- improve collecting of equations for index reduction
890f1062f0Jens Frenkel- improve collecting of equations for index reduction
e7a18875cbMahder Alemseged Gebremedhin- Coding style.
e253087dc0Jens Frenkel- CheckModel.statementOutputs: add Case for DAE.STMT_BREAK
0ba3105763Jens Frenkel- do not report "Files Equal" if nothing was compared
6cd4a35b99Martin Sjölund- Fix unparse
e0a78f53e9Martin Sjölund#1961 - Fix enumeration index for arrays of enumerations
8afb9afaeeMahder Alemseged Gebremedhin+ Check proper numeric types for operators. + cast operands of pow to real before exponentiation.
c0dbed95bfLennart Ochel- a more general implementation for when-clauses in algorithm-sections for the initialization
581283e752Adrian 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!
edaba5593bAdrian 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.
c19d131762Adeel AsgharFix testsuite.
e2fda47b3aAdeel Asgharfixed tabs.
ef974c39cbAdeel Asghar- Let the user decided whether he want input/output connectors or not.
dded62c962Adeel AsgharGenerate the connector pins for input and output variables. Give a standard annotation to the imported model.
18094901b5Alachew Mengist- Added time Point value and index in XML code generation - Fixed XML code generation for Builtin functions
3e878e3afdLennart 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
e1cdc7660fJens Frenkel- next case for undifferentiable mss, select the first state candidate with unused derivative
e4d39c3167Martin Sjölund- Fixes FMIImport on the bootstrapped compiler
5eb3d3d896Martin 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)
650b06dfd4Martin Sjölund- Fix the path
64db10c85fMartin Sjölund- Fix to build on OSX
817befa6bdJens Frenkel- remove unused code
35cbb96805Jens Frenkel- try to replace final vars in undifferentiable subset
a694b27d9dMahder Alemseged Gebremedhin- fix returned type.
11171a9253Martin Sjölund- Fix copy/paste error in lapack
9ac1e2dcceAdrian Pop- no GC for visual studio!
e6dce00dadMahder 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 .
073e9c451fAdrian Pop- OpenTURNS.mo fixes: + do not reverse the wrapper inputs/outputs! + use the variable names in the description.
a658ebb84cAdrian Pop- link with -lgc the generated code - link with -lgc omc.exe - add the gc includes to the Compiler/runtime/Makefile.omdev.mingw
18963d3917Martin Sjölund- I promise one of these days make will listen to what I mean
85e597e129Martin Sjölund- Fix for parallel builds
d418bc892bMartin Sjölund- Fix build
e7d12cc899Martin Sjölund- Enable boehm-gc by default
65bd171b8bMartin Sjölund- Tail recursion
fc795ebc55Jens Frenkel- fix test - small improvements to OnRelaxation
93b67179daMartin Sjölund- Tail-recursion
ffc2cc51a5Lennart Ochel- generate initalsystem before replacing pre(alias)
d0552ca85dMartin Sjölund- Back to using .a-file instead of .so since we cannot load the file if it uses so
26c1d722a0Martin Sjölund- Use LinearSystems2 2.3 instead of 2.0
138b6fb6aaMartin Sjölund- Let's create the directory before we copy to it
e50a3d4bafJens Frenkel- bugfix for multidim constrained equations with no algebraic variables - improve error message STRUCT_SINGULAR_SYSTEM
5fbe6ed553Martin Sjölund- Updating makefiles so we can enable boehm when it works with dynamically loaded code
ca2d05d613Lennart Ochel- fix bad handled failure of new initialization
10f4f2bdc8Martin Sjölund- Adding boehm gc 7.2d sources to 3rdParty since we need to compile our own version rather than the OS-provided
72a3d0b631Martin Sjölund- Tail-recursion
143d435f20Jens 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
0b5acc8b50Adrian Pop- add the global root for boehm gc also
fcb75cca9eAdrian Pop- attempt to fix the cmake stuff.
4418a89bd4Adrian 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).
32662df6adWilli 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
cbe8ad64d0Lennart Ochel- fix memory leak
9122c2bb60Lennart Ochel- avoid compiler warnings
74da86d229Vitalij Ruge- fix error message
187769a0cdLennart Ochel- improve readability of - some sample test cases - some dumps: LOG_EVENTS and LOG_ZEROCROSSINGS
2adb7b93f8Lennart Ochel- rename SCodeInst.instExp to NFSCodeInst.instExp
303478dfc8Adrian Pop- fix template compilation.
4fce441e60Lennart Ochel- small changes for calculating parameters
97c1873d5cAdrian Pop- naming frenzy :) - changed names of packages belonging to the new instantiation from NAME to NFNAME. NF=NewFrontEnd
61d3ea7f6fMartin Sjölund- Load MSL 3.2 by default
1585859583Adrian 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).
39d55ccebeAdrian Pop- let's try this again to see how the tests are going. previously there were other issues with templates.
34cde47d57Martin Sjölund#1950 - Added symmetric() implementation
a39c5c7146Adeel AsgharMark input variables, call fmiSet* functions for input variables.
ea6610d677Adrian 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.
6d6ddeb58bAdrian Pop- expected output - remove the merging of modifiers in SCodeAnalyseRedeclare.mo for now as it seems to have some issues with the AVM models.
221881a9abAdrian Pop- Fixes for bug: #1954
4a75005459Adrian Pop- fixes for bug: #1953
7e0a299e27Adrian PopFix attempt for bug: #1952 Compiler/FrontEnd/SCodeDependency.mo - call analyseClass on class extends in SCodeDependency.analyseElement
b23d520c1aAdrian 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
b0097a6418Adrian Pop- calling Env.mergeEnvConnectionSet in Inst.mo is not really needed.
d7da10e11eAdrian Pop- do not failtrace on Env.mergeEnvConnectionSet
97dbafff5bAdrian PopCompiler/BackEnd/Derive.mo - add der(sign(x)) -> 0 to Derive.differentiateExpTime
726d9594b7Adrian Pop- send in the file info in BackendDAEUtil.checkAssertCondition so we know where the assertion got triggered
d9c0001470Adeel Asghar- escape the generated code strings.
b97f1f43d2Adeel Asgharhandle input causality for the variable.
97e9473b78Adeel Asghar- Make the FMI Export generate XML according to the specification.
894d611952Adrian 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
89032e8c20Adrian 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!
a07c9c2aeeJens Frenkeltabs
4235b07ceeJens Frenkel- continue translateModelFMU SimulationRuntime CPP
2c2be16497Adrian Pop- small optimization, use funcs directly do not call get func twice.
3fc65f5141Lennart Ochel- remove some redundant parts of SimulationRuntime/c
3d93ab9198Jens Frenkel- remove duplicated variable
475139e7f7Lennart Ochel- bugfix for: unfixed parameters were initialized with their start values, instead of what the initial system says
3f6bf6c72bJens Frenkel- bugfix for last commit
03c3955863Jens Frenkel- additional fix for #1948
1e44e8f353Jens Frenkel- replace bind expression of final vars with evaluated expression
12a960153bJens Frenkel- bugfix for getEqnsforIndexReduction
75ad6b1130Adeel Asghar- few minor fixes in the co-simulation generated code.
90c1c45b63Adrian PopComponentReference.mo - fix comment
82500ed30cAdeel Asghar- removed some unused code. - documentation. - Some minor fixes.
0942778009Jens Frenkel- fix tabs
3b0a97bc9dJens Frenkel- bugfix for singulare sytems, add test SingularePlanarLoop, Ticket #1948
9119907804Martin Sjölund- Force gcc-4.4 for OMOptim builds
7868d92ed9Per Östlund- Disable SCodeLookup.crefStripEnvPrefix when the scodeInst flag is used.
ff8dbdadebPer Östlund- Some enumeration improvements in the new instantiation.
ceb5e01a33Martin Sjölund- Don't link in sundials if it's not working...
c7de30d62aJens 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
6ae5bb381cNiklas Worschechfix in Idas solver for event handling, added reinit before Idas call. fix in cpp template in event iteration if discrete variable has changed.
991b0366c4Adrian Pop- fixes for bug #1947
89f929ffa1Per Östlund- Some code cleanup.
bcd287cd9fPer Östlund- Improved handling of package constants in SCodeInst. - Fixed function parameter order in SCodeInst.
14dde97063Adrian 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.
431c2f9e8eNiklas Worschechfix for coping all cpp runtime libs to /omc/lib/cpp in CMake file
bb4662dd55Niklas Worschechfix in cpp template for correct jacobian tmp vars vector allocation.
6288e04d3fJens Frenkel- fix bootstrapping
e4144967d1Jens Frenkel- expected output
dedaa6a68bAdrian Pop- attempt to fix bootstrapping.
1f66755717Jens Frenkel- partial support for Media Models - Matching.c: do not generate transposet incidence madrix if not necessary - move some Media Models to working group
9b48df584cMartin Sjölund- Fix MeasureTime.mos
fa441d1c82Per Östlund- Got rid of GNU extension asprintf to please clang.
c5769daa28Mahder Alemseged Gebremedhin#1821 - Remove unnecessary error messages.
2b8bc0b50cPer Östlund- Fix component order in SCodeInst. - Added a couple of tests I'd forgotten.
4de0aa57a5Mahder Alemseged Gebremedhin- revert r13984.
d31ed400c9Per Östlund- Oh RML, why are you so lazy?
3dda9d88fcPer Östlund- Fix compilation.
bf001f11aaPer Östlund- Don't return the class from InstSymbolTable.addClass, it's no longer needed since classes are flattened in SCodeInst.instClassItem.
14915b6c7aPer Östlund- Handle package constants in SCodeInst instead of collecting them in SCodeDependency.
d286b650f7Mahder Alemseged Gebremedhin#1821 - Remove unnecessary error messages.
69de9ca3ceMartin Sjölund#1941 - Fix for outerProduct and other earlyInline functions with unknown dimensions in output
f6e7c77825Per Ö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.
2c58d767f8Per Östlund- Fix bootstrapping.
09fafda999Adrian 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.
8929a65300Adrian Pop- get rid of tabs once again.
8b72b30287Adrian 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.
c5aec8131cJim NutaroCode cleanup in adevs backend
d4c7c45642Jim NutaroFixed minor problem in nonlinear system solver for adevs backend
789617ef52Jens Frenkel- ignore toplevel inputs for parameter bound equations
84b2c97fcaJens Frenkel- size of enumeration type is 1
d64605320bJens Frenkel- fix for last commit, ignore constants
dc25bc533aJens Frenkel- fix for last commit, ignore constants
a998770c56Alachew Mengist- Added XML code generation for Optimica Extension
b3fb8f57a8Jens 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
e0f41a7f3cPer Östlund- Removed some dead code from SCodeDependency. - Updated fluid tests.
9a2547acb4Per Östlund- Don't add inside flows for empty arrays.
be531da0d5Jens 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)
d8d7974cdaPer Ö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.
8e25f42852Adrian 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
a0c994d600Martin Sjölund#1941 - Handle inlining of outerProduct() instead of treating it as a builtin call
27063fc7d8Mahder Alemseged GebremedhinFix output.
0606b02d7eMahder Alemseged GebremedhinParModelica: Check declaration of global vars in kernel functions. And add omc prefix to parallel/kernel functions.
e8c210e979Martin Sjölund#1941 - Added code generation for outerProduct
6c5ab518a7Jens Frenkel- test new remove simple equation implementation, switch off
76a03a43c6Jens Frenkel- test new remove simple equation implementation
29ff8d9f36Jens Frenkel- bugfix msvc compile - bugfix for last commit for result .mat
c866ca5800Jens Frenkel- bugfix for alias a = time - bugfix for msvc compile
bfcaaaa4ecAdrian 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.
0794b97cdbAdrian Pop- assume real for T_UNKNOWN + a comment in the C code. wonder how many tests this will break :)
f56eff9d27Adrian 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)
ac2680ac4eAdrian 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;
b7a71957faAdrian Pop- mind your tabs please!
d6f21debdfJim NutaroCode cleanup in the adevs backend
2027acf25dJim NutaroUpdated adevs backend
fbc30a8d54Jens Frenkel- switch replaceEdgeChange on
18145ecfd1Per Östlund- Evaluate generated inStream calls too.
0a0f19382aJens Frenkel- add module replaceEdgeChange
1fde101bacAdrian Pop- sort inners again to put inner Modelica.* component; first. - some tests might need changes, I'll do that next
7ecfb70fcdAdrian PopFlags.mo - +d=showEquationSource to display where an equation comes from. easier for debugging of where the equations come from.
e528f23b4eAlachew Mengist- Added XML code generation for Scalar variable type- min and max attributes
e1a595aeddJim NutaroMixed generates usable code for Adevs backend. Need better test cases.
d6c1fa4ac6Willi Braun prevent throw for division by zero in non-linear system solver, since the solver can manage that.
234451a677Adrian Pop- no more tabs please.
6b899c369bMartin Sjölund#1941 - Allow all sorts of weird stuff if external language is "builtin"
9913f67281Jim NutaroFixed initialization of matrix in the linear solver routine
68b26b762aAdrian Pop- 5th version of the SCodeInstShortcut.mo (+d=scodeInstShortcut)
63fda3a3f2Adrian Pop- fix bootstrapping.
4d2ce3aa5bMartin Sjölund- Handle connecting arrays of records with different names
0bb1572688Jens 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
17fb906782Lennart OchelBackEnd - remove unneeded vars testsuite - add initialization test for ModelicaTest.MultiBody.FourbarVariants.JointUSR (#1929)
f52e7dcaddAdeel Asghar- make the initial section balanced.
ab9d383613Jens Frenkel- bugfix for last commit
8855707685Jens Frenkel- additional fix for last commit
ff9e8e76c6Jens Frenkel- get testsuite working back, Lennart can switch of simplifyTimeIndepFuncCalls module in backendpipeline
e3490e101bJens Frenkel- bugfix simplify change, edge
a395c3440aJens Frenkel- bootstrapping
0833cd1055Adeel Asghar- fixing FMI.
945b989087Jens Frenkel- do not replace PreVariables with information from time-equation-systems - move simplifyTimeIndepFuncCalls behind solveinitialsystem to replace all the pre variables for code generation
0757b9d7c4Jim NutaroCorrections to adevs backend. Still does not support MIXED equations
f15694a28cMartin Sjölund- Don't print this false positive
8a04612a53Lennart OchelCompiler/BackEnd - shrink/simplify BackendDAEUtil.analyzeInitialSystem1 - fix implicit pre-calls (e.g. edge, change)
1a6b1533abJens Frenkel- use a^b = f(..) -> a = sign(pre(a))*(f(...)^(1/b)) only for even integer numbers of b
2b4587a34fJens Frenkel- and switch off
0fda3e240bJens Frenkel- fix bootstrapping - try if relaxation of linear systems works
c5723164e8Jens Frenkel- ExpressionSolve: a^b = f(..) -> a = sign(pre(a))*(f(...)^(1/b))
92c84b1dcaJens Frenkel- bugfix ExpressionSolve
9339461038Jens Frenkel- bugfix for r13850, add when equations not to ode or algebraic equations
048d38f7abJens Frenkel- fix bug in ExpressionSolve
7faaff1fb7Jens Frenkel- continue redesign remove simple equations - BackendVarTransform add functionalety to replace der(cr), this is realy helpfull to handle states - redesign ExpressionSolve.mo
d956ca3302Lennart OchelCompiler/BackEnd - improve warnings and dumps - move printSparsityPattern to BackendDump.mo
971bd5a49bWilli Braun disable tearing of linear system as long as they aren't handled efficent during the simulation
bccc80f0d3Willi Braun activate sparse colored jacobians for dassl as default solver
983e45b6e1Martin Sjölund- Fix lexer to only add optimica keywords if +g=Optimica is used
821b9748a7Mahder 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.
adaad1dfcbMartin Sjölund- Some fixes for evaluating bindings
a60c17830eLennart 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
f997c47c8fMartin Sjölund- Tail recursion
4bb3ae6c11Martin Sjölund- Remove unused ceval call with empty cache and env
4658793b6aJens Frenkel- get Modelica.StateGraph.Examples.ControlledTanks.mos working - move expandAlgorithmsbyInitStmts to SimCodeDump - improve Error Message "Inverse Algorithm needs to be solved for ..."
a9a81ab318Jim NutaroSwitching adevs backend to use the SUNDIAL solvers
2e45e9e482Jens 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
30af893668Adrian Pop- consider also variables with uncertain=Uncertainty.refine as inputs to the OpenTURNS wrapper.
4c0b5e1372Lennart Ochelinitialization - continue with handling of under-determined initial system testsuite - add test for under-determined initial system - remove unneeded test
43689a20e8Lennart Ochelinitialization - first steps to solve under-determined systems testsuite - add case for under-determined initial system
0c9491b1a2Martin Sjölund#1936 - Partial fix to make final modifications work on redeclares. Now passes front-end, but loses some modifications. Possibly related to #1922.
5b79e8de89Jens Frenkel- remove uneseccary case from replaceExp for pre(-a), because this is also done in simplify
d201a6a6daJens Frenkel- use Expression.splitRecord instead of trying to match all combinations of crefs and calls that are possible to split
d2e5bd1f15Jens 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
d753a1a105Jens Frenkel- becauase edge and change uses a and pre(a) do not ignore them - continue redesign of remove simple equation
a802fd21f9Lennart Ochel- fix collectInitialVars - edit compiler-warnings using +d=pedantic
a4f5f0faf3Niklas Worschechfix for jacobian tmp var in cpp template
5b0d61b60fMartin Sjölund- Add dumping of cast to records - Bumped MSL version
55611ee51fMartin 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)
eb15089192Niklas Worschechadapted modifications of jacobian to cpp template
e4dafeeb05Lennart 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
17ab3a64aeAdrian Pop- forgot to add this.
843c11a18aAdrian Pop- add more error info on the issues that might appear.
f4d2ce63bbJens Frenkel- avoid events in inlined functions
f63133cad5Jens Frenkel- bugfix for BackendEquation.aliasEquation
f26af92606Niklas Worschechfix in cpp template for set help var in update method
413c8ea38aMartin Sjölund- Add code to codegen/dump cast to record types
ac81a22cc6Jens Frenkel- continue redesign of remove simple equations
efe2a7a178Jens Frenkel- Expression.iszero use List.mapListAllValueBool in case of matrix - improve BackendEquation.aliasEquation
b874cd64f6Jens Frenkel- Expression.typeof return boolean or array of boolean in case of relation, because relations return boolean values
0d5f9adca8Jens Frenkel- CodegenC.expTypeFromExpFlag return {boolean,modelica_boolean} in case of relation, because relations return booleans values
b0a564a54cJens Frenkel- fix for fmu with nonlinear systems, call allocateNonlinearSystem before simulate - fixes to compile fmu with visual studio
09dcbcf6feJens Frenkel- do not throw information away
a93682646dAdrian Pop- added EnumToInteger(Enumeration) -> Integer as a workaround until Dymola supports Integer(Enumeration) -> Integer.
79e5621e71Jens Frenkel- start to improve remove simple equations
db461f3abeAdeel Asghar#1933. Fixed the exported FMUs fmiTerminate. Use functions.freeMemory instead of free.
6eaf183897Jens Frenkel- support array vars in when equations
2bfbbe8f46Jens Frenkel- support tuple equations in when equations with TSUB, this is not so good see Ticket #1932 - bugfix EquationSize for WhenEquations
d464706f7fJens Frenkel- support also nested if equations in if equtions then branches
eaa1955dadJens Frenkel- basic support for if equations in when equations, still not supported nested if equations in if equations then branches.
feed3681e4Adrian Pop- better error message for not handled when equation.
e07e8bebc5Adrian Pop- use unparseType instead of printType in Types.printConnectorTypeStr as is more user oriented.
e96e9777abAdeel AsgharAllow user to set/unset debugLogging.
e65c844598Adrian Pop- fix bootstrapping
194d685ac0Adrian 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)
2529bf6778Adeel Asgharstupid copy paste. Use fmiModelIdentifier variable instead of hard coded value.
11d4c33ba1Adeel Asghar- call fmiSet* functions.
c0e818a3afMartin Sjölund- Fix for bootstrapping
c303f9f7d1Leonardo Laguna- Adding option to dump all the steps performed when calling uncertainties extraction.
defe62832bAdrian Pop- fix bootstrapping.
98add9f355Adrian 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
6ad962e283Martin Sjölund#1931 - Do not scalarize vector equations + Except constants, parameters, records, complex types, external objects, and maybe some more
9019f879feMahder Alemseged Gebremedhin+ Propagate class attributes for Optimica optimization classes to templates.
a3c53264e4Per Östlund- Remove one of the two f2c.h headers to fix segfaults on some operating systems.
3e3b194bcaMartin Sjölund- More typeinfo when dumping with +t
06ebe5c81bJens Frenkel- fix last commit
672a36fd4aJens Frenkel- rename flag more grammatical
ff129474abAdeel Asghar- Fixed FMI Model Exchange.
8b4077b7b5Jens Frenkel- start to implement stateselection during simulation via pivod function, add flag +dynamicpivod
8caaaf89ddPer Östlund- Use the face stored in OUTERCONNECT instead of trying to determine it in InnerOuter.retrieveOuterConnections2.
8be162c88bMartin Sjölund- Bugfix codegen for unary minus of array
ccf10b8968Martin 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
cb2f485a89Adeel Asghar- flow control.
015894c06bMartin Sjölund- Calculate the constness of partevalfunc calls
2d454deb71Jens Frenkel- consider not pre,change,edge on rhs when equation is solved and rhs is checked for componentref
36e834a413Adeel Asghar- get rid of initial sections.
04336733f2Willi Braun - add relative tolerance to zero-crossing hysteresis function - changed non-linear solving strategy a bit - update test-cases
e95573de97Adeel Asghar- minor fix.
817dc2bbc7Adeel Asghar- Trying to fix FMI.
97cd6bbb0aLennart 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
4eae838f11Adrian Pop- use path equal as it might be fully qualified.
955d822c65Adrian Pop- add extendFrom to builtin API.
63dbb6ef6fJens Frenkel- solve small (less than 10 other equations) linear torn systems with linear solver, commented out because not yet testet
a11f48b40dWilli Braun bug fixes - fixed zeroCrossings generation - initialize simulationInfo.discretCall - chnaged return values if initialization fails
53bad54d4bPer Östlund- Remove debug printout.
b9444fb08aPer Östlund- Flatten the class structure in SCodeInst.instClassItem, so we can avoid handling EXTENDED_ELEMENTS everywhere.
fb796ec0ccMartin Sjölund- Correction for ModelicaTest version
1972b14075Martin Sjölund- Fix indentation of list() command for if-statements - Add comments to algorithmitem
a06d72bbc6Jens Frenkel- improve error report for index reduction
ea02d588d7Martin Sjölund- Update MSL 3.2.1 (Complex and ModelicaTest are now version 3.2.1)
cbad69c401Martin Sjölund- Fix codegen of empty array
dabac3fb42Adrian 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
64fe03a0f2Willi Braun - decrease tolerance for zero-crossing
f8a637b155Jens Frenkel- DynamicStateSelection: start to implement new feature for quaternion constrained equation
1f06aedec4Willi 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
71fa35872aWilli Braun bug fixes - BackendDAECreate.mo fixed findZeroCrossings, scan when clauses with all other shared stuff - CodegenC.tpl fixed memory leak in updateBoundParameters.
1718ed4972Adrian Pop- empty change to test Hudson configuration (OpenModelica*CLANG* should run on testone)
4637378bb9Adrian Pop- a build document for Windows from Zsolt Lattmann - testing new Hudson setup
19b78f5022Jens Frenkel- move zero size equations (terminate,assert,noretcall) to removed equations in initial system
4c30a36960Adrian 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.
b8269df1bbJens Frenkel- avalute also parameters with start value and final=true - start to implement fmu export for cpp runtime
04f010eba5Adeel Asgharsome fixes for FMI initial algorithm section.
f9a3440361Martin Sjölund- Handle comments in equation-sections
6612c15711Niklas Worschechchanged folder of cpp runtime libraries to lib/omc/cpp
bf4261e3a2Jens Frenkel- Reimplement DivisionByZero easier, solves Ticket #1895 - fixes vor msvc compile in case of empty residualEquations or zeroCrossings - fix order of Equations for DynamicStateSelection
f0c43cb294Lennart Ochel- minor code improvements - minor documentation improvements
1843547fffJens Frenkel- DAEDump: add missing elements to dump2
eaa8f3f304Lennart Ochel- set a uniform stop criterion for all initialization methods - always prompt an error, if the initialization fails
310bc20102Lennart 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
8e4e92ae9dWilli Braun- fix test - fix for windows build
cff30ea09aWilli Braun - moved all f2c code to math-support - moved nonlinearSolver interface to solver - fixed testsuite
37af1394cdWilli Braun - fixed reinit in algorithm statements
71fc5e6b39Willi 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)
37b07f11bcPer Ö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.
bfb4f38620Adeel Asghar- SearchClassNames API.
cb7dbf9ee2Jens Frenkel- better error message for sqrt
bbc0ebf90cAdrian Pop- fix Compiler/BackEnd/BackendDAECreate.mo - use +locale=C testsuite/openmodelica/bootstrapping/LinkMain.makefile.mingw
e7bda3b659Jens 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
48fe5b8340Niklas Worschechextended make file to build cpp runtime with visual studio
58ad511b60Jens 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.
6aaa045a2cMartin Sjölund- Let's also copy MSL 3.1 ModelicaServices...
24b9505891Adrian Pop- fix build.
f9a824328bMartin Sjölund- Parallel make omlibrary
038b4f72abMartin 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
413c74bda7Jens Frenkel- switch partitionIndependentBlocks on
832bc5efafJens 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
f7770b1cf5Jens Frenkel- use eqequation to remove aliases in BackendDAECreate
62c473c904Jens Frenkel- fixes for solve inital system
b8858d02a7Jens Frenkel- c comment style // -> /* */ - bugfix for initalSystem and numberOfEquations
f1174e7897Niklas Worschechextended cpp template, make file for visual studio
9ef3f0afedMartin Sjölund- Remove debug print
18a7648abeMartin Sjölund- Ceval arrays with an unknown dimension size
4f5644c554Per Östlund- Implemented partial support for handling redeclares with multiple inheritance.
7096cd2d55Martin Sjölund- Simplify cast of cat
98f66ae768Jens Frenkel- fixes for solve inital system
3d3c19ef6cAdrian Pop- small fix to extends from basic type.
1d312ab403Martin Sjölund- Fix for multi-dim array-literals
2f91bf2b16Leonardo Laguna- Changing the scope of a function
10cfa2fc06Martin Sjölund- Missing function to create a Real range in runtime
a393cde527Martin Sjölund- Also evaluate replaceable functions - Moved one fluid flattening test to failing
9138db430bJens Frenkel- report error only once
e7c9a72b92Jens Frenkel- use flag +d=solveinitialsystem to solve the initial system symbolical
fc61c16d29Jens Frenkel- switch Symbolic generation of initial System of to fix testsuite first
a5807245b6Adrian 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.
eb697858f5Adeel Asghar- For now don't generate Empty Array assignment statements.
c4a26ab027Jens Frenkel- fix compilation
709c8f2deeJens Frenkel- fix last commit
bd6905cf99Jens Frenkel- remove debug print
faef3b1101Jens 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
0721299bedJens Frenkel- move only equalityConstraint with array[0] return value to removed equations
d38fdc4273Jens Frenkel- bugfix for last commit
9db75f93aeJens Frenkel- move equalityConstraint equations to removed equations - move Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.mos and Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier to working test
b4ccec2317Martin Sjölund- Fix scalar flag when using matrix constructor
f3b67f77e0Martin Sjölund- Let +t print information if an array is scalar or not
e02d6b7b74Per Östlund- Print out a warning if a redeclared modifier element can't be found, instead of silently failing.
95d80ea5adPer Östlund- Fix propagation of redeclared redeclare modifiers in new instantiation.
e5bb25b100Willi Braun- added support for terminate() call in runtime - changed assert massage from warning to info
847cbb60e2Jens Frenkel- replace evaluated parameters in if-expressions before index reduction - move Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary to working tests
1604d5a670Jens Frenkel- fix test Modelica.Blocks.Examples.FilterWithDifferentiation - read_matlab4: doublepresision -> doublePrecision
cd529694f1Jens Frenkel- bugfix for OpenModelica.Scripting.compareSimulationResults: in case of empty vars compare all vars from reffile
1e1df2fcb2Martin Sjölund- Easier code to maintain
8286edea82Jens 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
2a0652e4d6Jens Frenkel- use error function to report errors in CodegenC.tpl
ef848b5e06Lennart Ochel- initialization: fix lambda-control for nelderMeadEx - initialization: fix stop criterion for nelderMeadEx - initialization: fix rescaling during initialization - testsuite: update simulation results
e32c64f9e7Jens 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
4f42fb0dacJens Frenkel- added support for {cref,cref,cref,cref} = .... - improve residual code generation for array equations, calculate array equation only once and do not asub
acd3215484Jens Frenkel- use ComponentReference.printComponentRefStr instead of ComponentReference.crefStr to consider subscripts for tempvariable
63415d50e0Jens 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
24286edbcdJens 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
e1bdd99cc2Jens Frenkel- fix some tests, move some to failing
d32228497cJens 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
bf072eda3eMartin Sjölund#1907 - Allow empty arrays on lhs of assignment
d2995bbcf5Niklas Worschech-fix in cpp template missing initial method in algloop system
288d72d56bWilli Braun - fixed bug in solving non-linear systems
c551b3548aJens Frenkel- bugfix for Modelica.Blocks.Examples.Filter - tap
be90161946Jens Frenkel- bugfix for tuple initial equations
0e22c331cbLennart Ochel- revised dump system for the c-runtime
4f3d59bef1Pavol Privitzer- C# CodegenCSharp.tpl fix for residual functions generation
5ffae15503Jens Frenkel- improve tearing, try to select equation with higest difficulty as residual equations
6f51bb7abfChristian SChubertremove warnings in read_matlab4.c
abe7b96060Jens 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
564ad4e125Jens Frenkel- start to generate solveInitialSystem
6cfd21cb8dAdeel Asgharremoved some unnecessary comments.
8a78a62b3dAdeel Asghar- Use Real value for fmiValueReference instead of Integer. - some other minor fixes.
917a55af27Jens Frenkel- report less warning when merging alias vars start value
a768917bf2Jens Frenkel- bugfix local shadow variable
4fc99df546Jens Frenkel- DynamicStateSelection: do not change stateselect value when change var kind to state
05ece79cc7Jens Frenkel- bugfix mergStartValues, now use the fixed one, also if it has not an explicit start value
5eab378a41Jens Frenkel- bugfix adjacencyRowEnhanced - fix tests
4e24d94963Pavol Privitzer- C# template update toward the new zero-crossing treatment - rename of the mixed helper function nextVar() -> NextMixedBoolCombination() - better code for DIVISION()
f90a5ed228Bill Janssenremove extra semicolon
7fb90d8e33Lennart Ochel- fix initialization problems with fixed vars without explicit start-values
d51ac8c401Jens Frenkel- bugfix for Modelica.Blocks.Examples.FilterWithDifferentiation
2075575d12Jens Frenkel- fix commit r13617
ffb96c8867Martin Sjölund- Only force ffloat-store on x86 (32-bit) - Also force fortran fpmath for solver files
d04399433dMartin Sjölund- Force ffloat-store or mfpmath=sse for libf2c code
03580a1972Martin Sjölund- Add MSL 2.x to versions that can load files with bad within-statements
4105a55d5bMartin Sjölund#1906 - Added API commands: getCompiler getCXXCompiler getLinker - Added new OMEdit setting: Compiler
12a6c9c0dfJens 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
be79c29e01Willi Braun - nonlinear solver: don't start solver if is already solved. - now LossyGearDemo2 does work. - minor changes (fix some debug outputs and correct test)
5b88390177Per Östlund- Small fix for cref prefixing in SCodeInst, now even less magic \o/ - Added unary plus to ExpressionDumpTpl.
078333f6dcAdrian Pop- SCodeMod.mo: add some more functions (remove Mod containing self reference, remove self reference ident from expression).
9acb77ff19Adrian 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.
775c7735f8Adrian Pop- add List.applyAndFold1.
18336587c5Jens Frenkel- bugfix for pre(ASUB(..))
99852c8419Jens Frenkel- fix bootstrapping
2606865b2cJens Frenkel- tab
9e432d4728Willi Braun - change debug output for solver, event and zero crossings
834c214a94Lennart Ochel- fix compilation using ipopt for initialization
59276d0e37Per Ö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.
9bffa1945eJens 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
3c9ddcb96bWilli Braun - added config flag to deactivate tearing: +noTearing - added debug flag to deactivate tearing of mixed system: +d=noMixedTearing
01bffef52dLennart Ochel- add description-strings for initial residuals for improved dumps
f8dc980304Jens Frenkel- dump vars and Equations in case of mixed system with something else than EQUATION in discrete part
446f0e886cJens 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
18167cd802Jens Frenkel- CodegenC.tpl: support pre(not(cr))
e24f22f16eJens Frenkel- bufgix IncidenceMatrix solvable for LUNARY
d6b219309eWilli Braun - fixed one potential uninitialized value
c81b9f976eAdrian Pop- display how many tests are OK.
a5d8775064Adrian Pop- do not exit with failure so we can see the log.
92ce9f973aAdrian Pop- show the entire testsuite-trace.txt so we see more info in Hudson.
adcf54a99cLennart 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
c438ad5214Leonardo Laguna- Trivial fixes for compatibility with VC++
324cf7cf75Willi Braun - activate tearing of mixed systems
4eb60f9a41Willi Braun - fixed findZeroCrossing
dec4a284bfLeonardo Laguna- Added dump of distribution type to the uncertainties extraction
7a4eeaee4dAdrian Pop- mind your language please :)
2b94816dd1Jens Frenkel- bugfix for if-equations
9ce555eedaJens Frenkel- fix tab
f8d8971b84Willi 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
89bd92d4bfJens Frenkel- fix tests, report less warnings Alias variables ... have start values ...
b9a2ad2c4eJens Frenkel- avoid Warning Alias Variable ... by improvement of expressionEqual
55607d072aJens 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
7e8ca4d4dbWilli Braunupdates for event handling c simulation runtime - mostly cleaning and restructuring of the code - preparation for changing zero-crossing treatmeant
1d5a279b5cWilli Braun - a bit of clean up in c simulation runtime
5170f1cbbcWilli Braun - fixed a bug in isExpDiscrete
560e06ee97Jens Frenkel- keep der(var) = const
61c86de05cAdrian Pop- forgot to copy libexpat*.lib - add lib/omc/msvc to the CL lib search path as it contains sundials and libexpat libs.
1125a3f198Adrian Pop- switch to new lib directories for msvc.
e7027a25acAdrian Pop- we *really* need the RESULT from Compile.bat to know if we should report a build error in omc.
e8c30ecb6dAdrian Pop- generate nmake targets not the vs projects! - copy the libs after build to build/lib/omc/ - why would we need in options.h??!!
44016cbd65Jens Frenkel- remove also constant derivatives from known vars as the other self generated vars
e3b0c69abfJens Frenkel- keep dimension information of derived variable but check when sorting if all elements are derived.
cb3e316d6aJens 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)
82ffe89b66Jens Frenkel- improve Compile.bat to call also msvc target
c1043a54f1Adrian Pop- make a real list out of TARGET choices.
e8b5f3007dAdrian Pop- squash the tabs.
13bd8a35a9Adrian Pop- add missing tab - add error handling for wrong +target.
1e0a1f8522Adrian Pop- add the missing simulationCodeTarget in SimCodeTV.mo
320b523a3aJens Frenkel- add missing end match
4bb77db5f5Adrian 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.
4c5200407fJens 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
650bcf449bJens Frenkel- ged rid of empty omc_equationInfo_reverse_prof_index to be compileable with vs2010
7c1d635b0eJens 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
5f79278044Leonardo Laguna- Fixed small problem that was giving me segmentation faults
87fd5cc807Adeel Asgharmore documentation and release notes.
c3f965d89aJens Frenkel- add some code (commented out) to tear full mixed system
12ac05c214Jens Frenkel- move tests to failing
51d32f4e91Adrian Pop- fix UTF8 issues
d0ee6d4a4eMartin Sjölund- Update releasenotes
7a9446e757Lennart 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)
5d92bf7302Jens Frenkel- fix test - update cmake files for simulationruntime/c
4e041bca2aJens Frenkel- replace also parameters with evaluate=true annotation in variable attributes when evaluated
df40da6111Per Östlund- Dump the type of untyped components in InstDump.
949be39b1bMartin Sjölund#1895 - Fix codegeneration for reductions in simulation context
166b767484Jens 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"
8ff4015393Jens Frenkel- remove newline from Warning Alias Variables ... - no warning in case of one fixed alias variable start value
e48ba85f2dPer Östlund- Fix dependency checking of extends clauses.
ffd3cde203Jens Frenkel- evalutate also variable attributes (start,fixed) when evaluate final parameters
f8a2e08f87Willi Braun - fixed backenddaeinfo output for mixed tearing systems
2e61c96cb9Jens 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
5bd3246879Martin Sjölund- Formatting
2cf5e2e4a3Martin Sjölund- Update release notes
6381a4931cMartin Sjölund- Bump version number
9f53f7a8b4Jens Frenkel- use startorigin attribute to merge alias start values
6374aedfecMartin Sjölund- Fix to loadModel(ObsoleteModelica,{"3.2"})
6c706cfeddPer Östlund- Got rid of some more clang warnings.
35ab713dd1Adrian 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");
1bcee846bbAdrian 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).
cffc3957acLennart 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
c632e0369cPer Östlund- Some more help text updates.
60f2e7c0c0Per Östlund- Update help text for omc.
429c9e44d1Adeel AsgharThe argument is "-ORBNoResolve" not "ORBNoResolve".
19a8afde2cPer Östlund- Trying to fix corbaimpl on Windows.
744dcef062Adeel Asghar- fixed Windows compilation.
ed6827bf28Per Ö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.
41fc6a068bMartin Sjölund- Fix r13427 also for constant elements in records
c88d76d36eMartin Sjölund- Changed unparsing of DAE.T_FUNCTION
6383f796fcMartin Sjölund#1875 - Do not report errors while doing partial record constructor instantiation
91f2e60535Adrian Pop- no more tabs.
0fc0da4cf6Adrian Pop- utf8
eeccff47d0Adrian Pop- move unused packages to Compiler/Unused
c1e89d51a3Willi Braun- added linearize and simulate as builtin
aa38dc802eWilli Braun- fixed build
801cd9d7d4Adeel 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.
f4d1837b3fAdeel Asghar- Handle the case when we have no events.
504a63bcb6Adeel Asghar- Differentiate among FMI warning, error and fatal error.
0e01441407Adeel Asghar- If a variable doesn't have a start value attribute then don't ask for start value.
0bf11d33bfWilli 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
f44e7b8c5fWilli Braun - changed just warning message for mixed system
8a766737bfPer Östlund- Better handling of class extends in new instantiation.
4efd73f775Jens Frenkel- add cases for DAE.DEFINE and DAE.EQUEQUATION in BackendDAECreate.lowerWhenEq2 - add missing case of alias exp "not a"
3f6e9b6679Jens Frenkel- System_strtok returns emtpy list in case of "" equal to rml version - BackendVariable: bugfix output Warning message
62b2cdac56Martin Sjölund- Change BuildModelRecursive.mos to only run ModelicaTest if asked for (will be a separate report on test server from now on)
26867a6a56Per Östlund- Apparently strndup is not supported by mingw, use strdup instead.
5a36a444bbPer Östlund- Respect constness in FMIImpl.
522b1dfcc5Willi Braun- fixed terminal error in new fmi import
49a506dea3Adeel Asghar- don't allocate memory. a minor fix.
5b5c3ba05eAdeel Asghar- use appropriate variable names. - only write duplicate functions once.
79f21a8427Jens 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)
b554cb56c4Martin Sjölund- Update MSL 3.2.1 version for a spice3 fix - Fix some formatting in generated code
9c796c6fddJens Frenkel- check for cyclic bindings in start values while merging alias variables
d5e063afcfMartin Sjölund#1883 - Check that command-line arguments are UTF-8 encoded. Convert illegal UTF-8 into 7-bit ascii for the error-messages.
681192d6b2Jens Frenkel- add missing thing for last commit
7b867741efJens Frenkel- check for derivatives of inputs
182ec2d543Willi Braun- fixed event handling in new fmi import
6864c6cb6cJens Frenkel- derivatives of variables with type array are not arrays, because not all elements may diverentiated
d5de58930cJens Frenkel- fix for #1827, maybe NORETCALL needs builtin attribut (if there is a buildin function with no return value)
f4c7884ac7Jens Frenkel- traverse NORETCALL in PartFn and BackendDAETransform correct
1aa9316ab4Adrian Pop- circumvent bug in MetaModelica/RML use else_ instead of _else as it seems the .srz parser has some issues
e563d84af2Adrian Pop- fix Compiler/BackEnd/BackendDAE.mo
2559181b9aJens Frenkel- use consOnTrue instead of Util.if_(res, e :: inAccum, inAccum)), save memory - fix bootstrapping
24df1964c4Jens Frenkel- coding stile
1da8fc3975Jens Frenkel- support noretcall in when equation, add example but still not work because of undefined reference to `Modelica_Utilities_Streams_print'
39c18aa73dJens Frenkel- BackendDAECreate: - skipp asserts with condition=true - BackendDAEOptimize.removeSimpleEquations: remove asserts with condition=true from removed equations
32338ffd28Jens Frenkel- use Expression.makeScalarArray for dynamicstate selection equations
c9e0167f4bJens Frenkel- handle asserts in if-equations - removed unused code
cedaeaef41Adeel Asghar- handle the case when there are now continuous states and events.
52b029cb41Martin 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)
3b5d535609Martin Sjölund- Also clean ModelicaTest
8533668dc0Martin Sjölund- Report also number of successful simulations
5531c7a335Adrian Pop- keep the version with find even in msys as hudson SVN kit is 1.4 (ancient) and has .svn directories everywhere.
7795bd9312Jens Frenkelswitch off equality equations to alias variables in BackendDAE.create phase (fix failing tests befor switch on again)
a974b3828cJens Frenkel- switch on equality equations to alias variables in BackendDAE.create phase
8289878992Willi Braun- bug fix for mixed system solver
049db2ee9eWilli Braun - fix coding style
56c21908b4Willi Braun - fixed coding style - fixed some warings in c runtime - fixed linearization test
0138cbc864Willi Braun - setup sparsty pattern calculation as postOptModule (not activated yet by defalt due to some issue with tearing module)
4e6debddfcAdeel Asghar- fixed coding style.
0310a082e8Alachew Mengist- Fixed XML code generation
fbc2ab6d77Jan SilarSolving mixed strong components in runtime not in generated code. Perhaps another bug comes out - some test moved to failingtests.
c06fc35bf8Alachew Mengist- Fixed CodegenXML.tpl
4de934e51dAdrian Pop- attempt to fix ticket #1876 - remove any components already declared in the expandable connector as they will be added anyway.
4fd98d4d43Niklas Worschechfix #1878 for copy_double_data_mem
723d9001d3Adeel Asghar- Handle the new Windows system dependency of FMIL i.e shlwapi.
f00e0574d7Martin Sjölund- Use dots instead of $P in function context
6ee75dd1c7Martin Sjölund#1877 - Support size(cr) in codegen
2efbebb71cJens Frenkel- bugfix for SimCodeUtil.calculateIndex, keep ComponentRef of Var and use not the one from call expression
daf6f0b70cAdrian Pop- faster libraries copy on Windows Msys to build/lib/omlibrary
cb11c40386Adeel Asghar- build all clients. - removed OMTools as is not required. - build instructions.
d1dadbcbbdJens Frenkel- bugfix for SimCodeUtil.calculateIndex, keep ComponentRef of Var and use not the one from call expression
f06efbd13cPer Östlund- Improvements to element redeclares in the new instantiation.
507c2de73fJens 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
14c36aa080Jens 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)
2b6d157a10Jens Frenkel- check if expression is equal before report warning about different start values in case of alias variables.
b8269efe39Bill Janssenfix for issue #1868 -- problems with CodegenXML.tpl
219dce8ea3Willi 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.
101924f5d0Adeel Asghar- Terminate the FMI slave and model. - Free the slave and model instances.
fa3ccef244Adeel Asghar- build instructions.
443ee3eea9Jens Frenkel- prever variable with long names as alias variables and keep variables with short names in system
33233fb8bbMartin Sjölund- Fix UTF-8/Tab errors
8d7a56f610Alachew Mengist- Fix OpenModelica CODING STYLE
5ec767d7dbWilli Braun- changed return code of simulation if it fails
d1afac420bPer Östlund- Some cref prefixing fixes in SCodeInst. - Fixed lots of clang warnings in the C code.
e396bcf318Alachew Mengist- Fixed Makefile.in
1b6b7300c3Alachew Mengist- Fixed OpenModelica CODING STYLE
29d60cbecfAdeel Asghar- Don't Deinitialize data structures twice.
5818b68cb5Martin Sjölund#1870 - Add built-in fail()
033054f927Adrian Pop- more updates
3c6703058cAdeel Asghar- Added OMVisualize.
7b2c60100cAdrian Pop- update to NSIS readme.
b6670981f6Niklas Worschech-fix in cpp template init, save of all pre variables
260f6ab694Martin Sjölund- FIx typo
3cbdda3eb3Adeel Asghar- Fixed some pointer cast warnings.
167bf76f78Martin Sjölund- Improve error-messages for operator deoverloading
807c294b4bPer Östlund- Lots of connection handling in the new instantiation. - Cleaned up BaseHashTable a bit.
39baea0da2Per Östlund- Fix order of extends in SCodeInst.
a9ec0cc61cHenning Kiel- fix truncated library search path if $HOME is longer than 59 chars - malloc appropriate number of chars
9ec7a52e3fJens Frenkel- der(record constructur(..)) = record constructur(der(.),der(.))
34227bd0b5Jens Frenkel- handle also array crefs in reinit
c0eedd2962Jens Frenkel- fix bootstrapping test
75a46b360bJens Frenkel- instantiate also reinit for array variables
edd3d77eb2Jens Frenkel- assign not to input
c8aada46edJens Frenkel- implement code to seperated the equality equations to generate alias variables direct from it but do not activate the code
0eb5e39ccdAdrian Pop- fix the location as we no longer cd to the directory.
88687b0b1aJens Frenkel- bugfix for BackendDAEUtil.getAdjacencyMatrixEnhancedScalar in case of algorithms
ce3986177dWilli Braun - fixed algorithms in NonLinearLoops
48c48712e0Jens Frenkel- fix rml-bug
252630455cJens Frenkel- fix tabs
4ac01013a3Adeel Asghar- Generate code for co-simulation standalone.
ee8f6803a1Niklas Worschech- fix in cpp runtime for CVode event handling. Modified CVode settings.
4308b42643Martin Sjölund- Documentation update
c5d683ab87Martin 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
41ec89cf07Martin 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
e6a2c0c7edJens Frenkel- report times for frontend,backend,tpl and compile even if simulation fails
3dfb4e4741Jens Frenkel- fix compilation
2221f83b31Jens Frenkel- remove some warnings
40c0a57611Jens Frenkel- update CMakeLists files
5c14805e53Adeel Asghar- debugging.
466acfb7c7Adrian 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.
6d2cc1d185Martin Sjölund- Added codegen for edge(not cref) since the backend makes those substitutions now
d596b41f97Martin Sjölund#1864 - Look for libraries in ~/.openmodelica/libraries
76dffc170bMartin Sjölund- Don't use --whole-archive since OSX ld doesn't have it
c2a13db786Per Östlund- Allow inheritance of function parameters in SCodeInst.
bc2879ef7bAdeel Asghar- fix stupid copy paste error.
5497eecda8Adeel Asghar- source code documentation. - some small fixes in the code generation.
57e684195dJens Frenkel- fix bug for if-equation simplification - implement inline var with less memory consumption in BackendDAECreate.lower - bugfix bootstrapping
e071cbc125Jens 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 ..;
eb2f035489Martin Sjölund- Update path
c6f6ab1793Lennart Ochel- bug-fix: avoid infinite-loop in mapToDymolaVars
76a8dc2cadMartin Sjölund#1855 - Handle also assertions inside an encapsulated class
0df382eb5eAdeel Asghar- free the allocated memory.
b375f3e985Martin Sjölund#1851 - Check that outputs are (probably) defined at function exit
6a9214e5b4Adrian Pop- empty annotation should be like annotation();
e2f0cac933Adrian Pop- fix the compilation
7cdee4efb3Adrian Pop- correct unparsing of each.
6460a9c41fAdeel Asghar- Functions to get/set Real/Integer/Boolean/String. - Some more code generation for FMI Import.
65c8b0f438Jens 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
661c8bf2bdAdeel Asghar- breakprocess is moved from bootstrapping to openmodelica/bootstrapping.
a9ce313bffMartin Sjölund- Update build
0a8c7843b8Alachew Mengist--Moved template test files from compiler/template to testsuite/template
6d62f67922Martin 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
9b1a4adaa7Adrian 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.
0da4b68fdeAdrian 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.
f869dbc073Martin 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
0702547f06Jens Frenkel- try to fix test (why does thermoSysPro tests fail when selecting other alias variables?)
638441a6fdMartin Sjölund- The magic word is: Fix the #%@! build
2990e7718dMartin Sjölund- Fix build
7ae75f5f82Martin Sjölund- Removed old stuff we shouldn't use anymore
6d2f7be0feJens Frenkel- readd some functions from reverted commit 13013
d90f302eb1Adrian PopFixes for bug: #1848 - handle (record cref, record cref) = fcall(...); - handle (RECORD_CONSTRUCTOR(x, y, z), record cref) = fcall(...);
860b040618Martin Sjölund#1847 - Look for duplicate elements in the package.order file
791bc88e48Per Östlund- Changed Util.swap to work as expected (i.e. swap on true).
eef66f966cMartin Sjölund- Fix bootstrapping
00b67938a3Martin Sjölund- Do type-conversion on conditions in if-expressions
916bce0543Martin Sjölund- OMNotebook installation
7e259f4340Martin Sjölund- Code-generation for Complex. Functions are now prefixed omc_ instead of _
0ba10f18feAlachew Mengist_ Moved 4 template file tests from testsuite/mytest to ../template and removed testsuite/mytest from testsuite
44fcd09eb3Adeel Asgharwrapping some of the FMIL methods.
5759dff957Martin Sjölund#1833 - Enable check for shadowing local declarations before optimizations
13a290ad69Martin Sjölund#1833 - Elaborate match input in the correct scope
03d92f723bMartin Sjölund#1833 - Enabled check for assignment to inputs - Fix remaining testcases
aafa18c731Martin Sjölund#1833 - Cleanup
2ef4dda9ffMartin Sjölund#1833 - Cleanup
c17f4a7986Martin Sjölund#1833 - Some code cleanup
523f717204Martin Sjölund#1833 - Some code clean-up
54713e413dMartin Sjölund#1833 - Some code clean-up
224d629b17Martin Sjölund#1833 - Code cleanup
3c1063df89Martin Sjölund- Add configure option to disable OMNotebook (for OSX builds)
7275705840Martin Sjölund#1833 - Code cleanup
f94658daa6Adeel 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.
7d3cce6fd9Martin Sjölund#1833 - Code cleanup
d4c59efb6cMartin Sjölund#1833 - Code cleanup
f882590d45Martin SjölundWARNING: You will need the latest rml-mmc to compile this MetaModelica code #1833 - Clean-up
7157aa8bc4Martin 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
d5c1413cf9Martin Sjölund- Added DAE.Const to typeExp
119a7a6c52Willi Braun- BugFix for Ticket #1830
ddf9c505acPer Östlund- Fix some varArgs annotation issues.
fcddc95fd0Martin Sjölund#1829 - Fixes lookup of short class definitions in MetaModelica code
bceff45404Adeel Asghar- Removed tabs.
46ae3201e0Alachew Mengist- Fix some bugs CodegenJava.tpl ,create flag for it and Merged into SVN
d1d8dc09a4Per Östlund- Fix build.
f58fbb430bWilli Braun - fixed SIM_PROF_EQ generation for mixed systems (no warnings anymore while compiling) - fixed a memory leak in struct equationInfo
64d35ec701Willi Braun- removed tabs
a3d71e70b7Per ÖstlundFix for bug #1825: - Made handling of real ranges a bit more robust. - Moved some scodeinst tests to failing tests.
eff6aa597fWilli 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
bf90f2f429Martin SjölundReverse merge (revert commits) * svn merge -r 13001:12998 . Plus fixed some testcases
976176603aMartin Sjölund- tab-error
efabe0d059Martin Sjölund- Spelling
b319256486Martin Sjölund- Configure check for OpenMP availability
347c042911Jens Frenkel- handle negated boolean alias in mat result file
ac90ad2722Adrian 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.
f2aaa77c62Martin Sjölund#1823 - Evaluate constants in generated assertions from connections
2f52f79939Jens Frenkel- add alias a = not b, not a = b, not a = not b, -a = -b - fix write results for boolean alias, ToDo .mat
be020e1c29Adrian 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)
e2331a468fMartin Sjölund- Added stringInt boxptr function
debd32d722Jens Frenkel- bugfix output varname
5dc3093972Jens Frenkel- add missing function to last commit
08dd9a4cb8Jens Frenkel- try to select from EQEQUATION alias and generate not a normal Equation
a7e56f7727Martin Sjölund- Added scripting call system_parallel - Made BuildModelRecursive.mos capable of generating a report while simulating models in parallel
a702cff2aeMartin 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)
2781393242Martin 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
6b80f77471Jens Frenkel- do not remove dummy var because it is not there
fae269cf84Jens Frenkel- fix bootstrapping
782885fbe8Jens Frenkel- fix bootstrapping
40199daf13Jens Frenkel- move add dummy state to SimCodeUtil - remove BinTree from BackendDAE - BackendDAE.Value -> Integer - BackendDAE.Key -> DAE.ComponentRef - remove unused code
b2972fc158Adrian Pop- fix bootstrapping.
e4c13a5964Adrian Pop- fixes for bootstrapping. - empty record constructor, not constant component.
8ee0ffb8e8Adrian Pop- tab squashing.
8edded9eceJens Frenkel- fix compilation
18b1553951Jens Frenkel- fix bug Ticket #1794 - speed up removesimpleequations - start to implement dae residual compare code generation
ff012aa252Leonardo 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.
0169b56a5bPer ÖstlundSome connection improvements for the new instantiation: - Print error message when connecting expandable connector to non-expandable. - Some prefixing fixes.
d4fcfd4ed5Willi Braun - fix the previous commit
af1ba772d2Willi 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
34f8bde924Per ÖstlundFix for bug #1819 - Only disallow assignment to input in functions.
8c530cc8acLeonardo Laguna- Fixed small problem causing failure in bootstrapping
462b08ef70Leonardo Laguna- Moved a few groups of functions from Ceval and CevalScript in order to minimize the dependencies between Ceval->CevalScript.
cd8cf6f15cMartin Sjölund#1820 - Adding new API calls to get index reduction / DSS options and descriptions
751738d841Martin Sjölund- Made Parser use C-files instead of C++, which leads to fewer hacks
43d8b937d1Martin Sjölund- Removed warning about group imports since they are part of Modelica 3.3
df9b78ec7dPer Östlund- Fix prefixing of connectors in the new instantiation.
894b656fdaJens Frenkel- Util.arrayExpand check if expansion is needed before alloc and copy array
0d86332d02Per Östlund- Update types of subcomponents in complex types in Typing.typeElement.
dfbe18a4e1Martin Sjölund- OMVisualize linking
a86cca65c0Alachew Mengist- Fix bootstrapping for windows
a39f9bbe37Niklas Worschech-fix in cvode calcfunction for exception handling.
59e3c473f3Per Östlund- Implemented generation of asserts for constant/parameter connectors. - Lots of connection checking.
d06afad234Per Östlund- Add source information to illegal algorithm section error.
76a62a457fAdeel Asghar- python interface build instructions.
ebc4cbbf52Adeel Asghar- few fixes. - small guide for Modelica3D.
5638aa0b65Martin 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
e731347211Martin Sjölund- Rudimentary support for level=AssertionLevel.warning, also in the runtime - Do type-checking of msg in assert(true, msg)
0ada54c102Martin Sjölund- Test all models please
66a4c4cefdMartin Sjölund- Skip linearize in BuildModelRecursive.mos
e7de5b64bcMartin Sjölund- The buildModel script now include the log of the simulation executables
eb5668cd84Jens Frenkel- small change dynamic state selection
730ed42a99Martin Sjölund#1808 - Look for duplicate elements when parsing a file instead of later when it is too late (for functions)
c4c41f79f5Jens Frenkel- add rule for der(log10(x)) = der(x)/(log(10)*x)
c22336a960Niklas Worschech- fix in SolverDefaultImplemention init
9c9fe31fd6Jens Frenkel- add rule for r^x^ and simplify derivative expression of x^r^
f448d75495Niklas Worschech- fix for cvode initialization in cpp runtime
0efc288c8fMartin Sjölund- Ignore HumMod utf-8 errors
bc7876db92Martin 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
36d2456c9cNiklas Worschech- fix in cpp runtime loading math lib
03cc90f925Jens Frenkel- bugfix dynamic state selection
886aea0b61Niklas Worschech- fix in cpp runtime loading math library
186ab3f012Niklas Worschechremoved tabs
46a41ff6edNiklas Worschech- fix in cpp runtime for division, initialization of CVode
278f3c0aa8Jens 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)
0286fccd06Adeel Asghar- Wrapping the FMIL code for simulation.
dc540c3e4aJens Frenkel- speedup dynamic state selection (10 times faster)
c78f7e5b68Jens Frenkel- fix bootstrapped compilation
f377493beaJens Frenkel- fix compilation
de7e4da511Jens Frenkel- fix taps - fix bootstrapping test
8ad320f664Jens 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
54908dd0c1Leonardo Laguna- Added option to write output file when extracting uncertainties
f77d75ffb3Jens 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
7ee040bab3Alachew Mengist- Added XML code generation module
e9540f2691Martin Sjölund- Fix Windows compilation
75d6677871Jens Frenkel- fix annoying bug for expand variables
af238d5043Martin 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
048da25f4aMartin Sjölund- Add support for +t in ExpressionDumpTpl.tpl operator printing
bf18508618Martin Sjölund#1343 - Pass front-end for AssertionLevel in assert-statements
49db3e7175Martin Sjölund- Fix uninitialized oops for clang -O3
c85e1ad6c7Martin Sjölund- Some compiler warnings
6aeac12d89Per Östlund- Fix dumping of for iterators in DAEDump.
0c73355424Jens Frenkel- take care of order of non residual equations in residual function
7e1231e2ceMartin Sjölund- Fixed MM course tests
db1f9fd1b0Jens Frenkel- tear only time continues part of mixed equation system
5546db6e52Jens Frenkel- bugfix tearing
bf1821a9f6Jens Frenkel- bugfix code generation for torn system
1d14811fe1Adeel Asghar- fix tabs.
b43c708a08Alachew Mengist- Added template based DAE unparser
dda61acbe7Martin 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
0c2a77cdf1Jens Frenkel- bugfix for complex residual equations
b1cda5a326Martin Sjölund#1343 - Refactoring: Add expression for level in assert-equations
db38494fc1Jens Frenkel- move symbolic manipulation from tearing to SimCodeUtil
122e29f128Martin Sjölund- Use configured compilers for cmake crap
32692754c8Martin Sjölund- Update Modelica3D documentation
c1931c810dMartin Sjölund- Fix parsing
d80a1c1559Martin Sjölund- Do not load ObsoleteModelica3. It causes many errors.
7e51e8a204Willi Braun- fixed small bug in BackendDAEUtil.adjacencyMatrixDispatchEnhancedScalar
2d89e8d53eJens Frenkel- fix tests
884b252018Jens Frenkel- add strongcomponent type TORNSYSTEM - keep matching information in constantLinearSystem
4dbc826267Martin Sjölund- Avoid recursive make clean
aa062d953fMartin Sjölund- Enable configure for modelica3d
d2ed14e5c8Willi Braun#1780 - BugFix for Ticket#1780
7c8a4171b7Martin Sjölund- Fix to build on Windows
fc57a6dbf0Jens Frenkel- remove shared from incidence matrix calcualtion because it is not needed
3908d3f406Martin Sjölund- Don't create libexec on Linux
370d0c7c33Martin Sjölund- Adding makefiles for modelica3d
f5b690645fNiklas Worschech- fix in cpp template for initialization of const string variables
2ba2c9e810Martin Sjölund#1799 - Do some code generation for tuple residuals
b7694e3b5eMartin Sjölund- Adding stub for spanish translation
e45f83c328Niklas Worschech- fix in cpp for atan2,smooth init of const vars
c821e20c54Martin Sjölund- Fix wrong C logic (&& || priority)
acc43c3c81Jens Frenkel- remove selfgenerated vars - bugfix derivativeEquation
fbd9ea029cJens Frenkel- improve removesimpleequationsfast/past (less memory, faster)
a6f2c21040Jens Frenkel- fix tests
dbd87c19ccJens Frenkel- improve removesimpleequationsfast/past (less memory, faster), remove unused implementation removesimpleequations
6b268af33aJens Frenkel- fix tests
f7a09735acJens Frenkel- fix tests
9c449b68adJens Frenkel- fix TaskGraph.mo
6784612423Jens Frenkel- fix liniearization
b5b3be7b9cNiklas Worschech-fix in cpp template giveZeroFunc for zero sign
2fc7253e8dJens Frenkel- remove unused flags VAR_INDEX,VAR_INDEX2 - remove unecessary code from removesimpleequationsfast - implement vararrayList2 tailrecursive - fix tests
30f812e08bMartin Sjölund- Do not run readRealParameterModel in the recursive test
f10aa1eff5Leonardo Laguna- Added new implementation of uncertainty extraction algorithm
e7fce4cffbPer ÖstlundFix for bug #1796: - Fixed correct order of dimensions in Inst.makeCrefBaseType and Inst.arrayBasictypeBaseclass.
4275eebe9cJens Frenkel- remove index from BackendDAE.Var
e0b9c67494Jens Frenkel- bugfix replaceDerEquations
47d4da7a21Jens Frenkel- fix tap
f17fbf05d8Jens Frenkel- use average of reference data values for tollerance belt in SimulationResultsCmp
7fa4173c68Jens Frenkel- implement equationDelete without sorting of intList
9fb09880e5Jens Frenkel- remove unused code (calculate indexes/translatedae)
1287cabf80Jens Frenkel- move translateDAE to SimCode and implement it O(n)
a54875b216Jens Frenkel- fix dynamic stateselection der({x,y}) -> {der(x),der(y)}
cb13dcfc1fMartin Sjölund- Bootstrapping
1e5c4d29e9Niklas Worschech- fix for array add in cpp template
0cf71a6fc8Martin Sjölund- Look for StopTime instead of checking all weird stuff to decide on what models to run
c3aeacd37dJens Frenkel- fix tests
11c1edcb53Martin Sjölund- Force Modelica grammar for 3.2.1 since otherwise it does not parse
ea5df06021Jens Frenkel- fix tests
0f3e75e671Lennart Ochel- move log-verbose-level from LOG_INIT to LOG_DEBUG for some debug-messages
eb27191840Martin Sjölund- Fix assertion
ee460e90daJens Frenkel- splitt SimCode in SimCode for data types and SimCodeUtil for functions
ef59eacbbaMartin 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.
2c00cc4404Per Östlund- Removed tabs.
d5d90b6ed3Niklas Worschech-add division scalar array to cpp template
542d327386Niklas Worschech- fix in cpp template for divide, multiply array and asub operation
b928b99498Jens Frenkel- fix compilation
35b242662eJens Frenkel- start to implement new index calculation
bc5af82394Niklas Worschech- removed tab in ArrayOperations
41f6737171Niklas Worschech-fix in cpp template for array assign
bc31b28134Jens Frenkel- collect simvars without listAppend - use markarray to unique equations of strong connected components
b969135bcbAdeel Asghar- Moved gettext back to Util.mo
855a9a74c2Martin Sjölund- eol-style
3481b99415Adeel 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.
f6b6eda499Martin Sjölund- Fix some issues with loading models (I hope)
b1c77aadd9Martin Sjölund#1793 - Changed from an MSL based on 3.2 to 3.2.1 - Should not break the testsuite - Will break the testsuite
745d97305bMartin SjölundDon't copy PythonInterface files to scripts on Linux. We already installed it so Python works...
088bfa6417Henning Kiel- some more .de translations
c8d7c737dbPer Östlund- Implemented check for flow/stream connecting to non-flow/stream for the new instantiation.
0572d7d12aPer Östlund- Bug fix for flow/stream to non-flow/stream check.
4b35393946Jens Frenkel- replace der(dummy_state) -> der_dummy_state in shared only once
3fca9125eaJens Frenkel- speed up index reduction
9cc6990d26Martin Sjölund#1707 - Handle splices with lhs expression dimensions that are not equal to the array dimensions
1b7051d6ebPer Ö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...
4536cb4c14Martin Sjölund- Fix compilation
1e7827f30aJens Frenkel- fix compilation
95c0350ab9Jens Frenkel- change Inline.mo: - tailrecursive, generate less new objects - call lateInline only once
e4804f6db1Martin Sjölund#1670 - Updated help text
1af69cfea2Martin Sjölund- Fix compilation without omniorb
b801e726a8Martin Sjölund- ReleaseNotes
a87c1a859fAdeel Asghar- Added step to install python interface.
c49bebb48fAdeel Asghar- 1.9.0 Release notes.
913a611163Jens Frenkel- switch back to old wights for tearing
63a6611dd8Jens Frenkel- bugfix sortStateCandidatesVars - improve dynamicstate selection, traverse system only once to replace all der(dummy_states) calls
7c364872b2Jens 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
4e18667bf9Martin Sjölund#1775 #1776 - Added detection of usage of unbound local variables in match-expressions - Set eol-style
1c86b566c8Martin Sjölund- Fixed svn:eol-style
11a1b1f899Martin Sjölund- Make version number pretty
f07fd34056Adeel Asghar- added Beta to version.
9ffb7423d1Adeel Asghar- Changed the version numbers. - deleted the old simforge url. - updated the build/setup instructions.
c3fceac8f5Adeel AsgharFMI Import - option to define logging level. - more better code generation.
c0f5b663c6Leonardo Laguna- Removed most of the unused imports warnings
7197c1ffc6Martin Sjölund#1776 - Check lhs patterns for new variables that are bound, enable checks for MetaModelica (match excluded)
4de9d27367Martin Sjölund#1776 - Added detection of unbound variables in functions for Modelica. MetaModelica expressions will be supported Real Soon Now™
24a27f0a2cJens Frenkel- use strncmp instead of strcmp
741196c3deJens Frenkel- fix skip condition
0b29dafb18Mahder Alemseged Gebremedhin+ Don't compile OpenCLRuntime on Mac for now.
d81a29c069Mahder Alemseged Gebremedhin- fix typo.
71ac12641aAdeel Asghar- fix coding style.
e67d806d50Jens Frenkel- fix bugs for runtime cpp - skip warning from initialisation about self generated variables
be5aa99c88Adeel Asghar- Only copy the required binaries. - Updated the NSIS setup readme.
2f9c749e72Jens Frenkel- fix bugs for simCodeTarget Cpp
3bf0dfc67aPer Östlund- Removed space after first parenthesis when dumping asserts in DAEDump, to ease the transition to a template based dumper.
33a770de64Martin 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)
505e3eba15Martin Sjölund- CPPFLAGS are PREPROCESSOR flags, not CFLAGS
99066b7558Martin Sjölund#1789 - Fix table initialization. Seems to be a scope typo (indentation correct, curlies not).
38186adb54Mahder 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
8e6b4b4cc7Mahder Alemseged Gebremedhin+ Don't compile OpenCLRuntime on Mac for now.
80118b5d76Jens Frenkel- implement read csv for SimulationResults - add test for msl31/mechanics runtime cpp (not yet activated)
afbc5f6028Peter Aronsson-Changed implementation of unused (by OpenModelica) function expIsPositive to be based on expIsPositiveOrZero.
cb626fb62dLeonardo Laguna- trivial modification to fix wsm compilation
5316903d5aMartin Sjölund- Compile without omoptim
e531386646Martin Sjölund#1786 - Do not go into an infinite loop if using {} pattern on something that is not a list
a00b45b457Martin Sjölund- Remove r12679 / #1787 work-around - Do not add an = 0.0 binding by default to every paramater that lacks a binding
07c2bffed7Martin 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
3052323d00Martin Sjölund- Also link with termcap
35938d9e39Mahder 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.
801a9332bfJens Frenkel- fix tests
5589f2a28eJens Frenkel- fix tests - take care for liniear torn system that tearing vars not part of relations
69ec413da5Jens Frenkel- add case for simplifyIfExp as workaround for real and integer types, see Ticket #1787
6c41f5231bMahder Alemseged Gebremedhin+ Combined the makefiles + fix for 64 bit + detect vendors and enable extensions properly.
a85bb41485Jens Frenkel- remove some never matched cases from simplifyBinaryConst, fix bug for GREATEREQ, move true=positiveZero(e1)=negativeZero(e2) to simplifyBinary
83ea71a776Jens Frenkel- inline array=array before state selection - move Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.mos to working tests
6f8939d786Mahder Alemseged Gebremedhin- fix again
5517fbbb65Mahder Alemseged Gebremedhin+ fix build dir path
cca561eca2Mahder Alemseged Gebremedhin+ Added ParModelica to the makefiles.
4d7a339b4dJens 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
5e26bd518dMartin Sjölund- Fix for bootstrapping
8f300e167cPer Ö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.
bb341c98f7Martin SjölundFixed #1749 - Do not print an error that rhs should be a function if it actually is a function
4f9b56c109Martin Sjölund#1772 - Do not evaluate a function that returns MM arrays
f6228ca5deMartin Sjölund- Fix for moved static readline location
ae0290fbe6Martin Sjölund- Give correct revision for nightly builds
3aba1628b3Martin Sjölund- Improved isPositiveOrZero - Used isPositiveOrZero for sqrt() calls in codegen to avoid adding assertions
35fe4983bbJens Frenkel- use noEvent for y = semiLinear(x,sa,s1) -> s1 = if noEvent(x>=0) then sa else sb
c066aee2b8Jens Frenkel- add support for semiLinear optimization, see MSL Spec 3.7.2.5
d37731547cMahder 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.
32bd993508Mahder 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
e80f444144Jens Frenkel- add BackendDAEOptimize.optimizeInitialSystem - move linearize/test_01 back to failing tests
6517df6766Jens 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
16612f8b61Jens Frenkel- fix tests dummyDerMatching
f1ef89d38dMartin 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
f264deee7cMartin Sjölund- Updated MSL 3.1 to latest maint branch
52cadd28f4Jens Frenkel- improve dynamic state selection, still problems with initialisation - move PlanarMechanicsForTesting.Examples.KinematicLoop_DynamicStateSelection.mos and PlanarMechanicsForTesting.Examples.KinematicLoop.mos to working tests
c9da59b83aAdeel Asghar- fix tabs.
680facceb3Mahder 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.
f6b3e26447Adeel Asghar- removed tabs.
bc3a0c3458Adeel Asghar- Moved the FMI import code generation to susan.
f1a92b2e5bAdeel Asghar- OMOptim paths were changed.
3c4d95ba8fJens Frenkel- fix compilation
15f3ef7e0eJens 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
d64f975342Adeel AsgharThere is no default log level for jm callbacks. Set it to jm_log_level_debug while initiaizing.
1c7cc9f42bAdeel Asghar- uncommented code generation.
bf2136b12eAdeel Asghar- Free the memory in case we return early because of some error.
5ac8d268e6Adeel Asghar- Generate model variables code by reading the modelVariables section from modelDescription.xml. - Fixed the external objects code.
32762000bcJens Frenkel- bugfix for dynamic state selection
fc9058045fJens Frenkel- change SINGLEARRAY,SINGLEALGORITHM,SINGLECOMPLEXEQUATION to have only one equation index instead of a list
d0e8c5fe77Jens 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
c7aaa603fcMartin Sjölund- Fixed order of elements loaded by loadFile() - Added API setDocumentationAnnotation()
4f21054440Jens Frenkel- rename SimulationRuntime/c/inline to omc_inline to avoid confilct with Inline.h from Compiler/Inline.mo
3ef441a497Jens Frenkel- int writeOutputVars -> void writeOutputVars - use %li for modelica_integer in printf
2e09755683Jens Frenkel- report warning if reference time array is to small - move Modelica.Electrical.MultiPhase.Examples.TransformerYD.mos to working tests
d307360607Jens Frenkel- remove Boolean output from past optimisation modules (modules have to change matching of equation system if rerun of matching algorithm is necessary)
6e4bd24433Jens Frenkel- bugfix BackendVarTransform.replaceEquations - move Modelica.Thermal.FluidHeatFlow.Examples.ParallelCooling.mos to working tests
01359fbabfJens Frenkel- geep information if replacements is performed in equation array - use matching of equationsystem to decide for new matching
b16c703522Martin Sjölund- Don't copy so many includes. Only a few are needed
75bbe2cafbMartin Sjölund- Copy headers for fmu tests
c1b64e209cMartin Sjölund- Compilation
5bfb92c360Martin Sjölund- Only copy essential headers to the installation
b109731bacMartin Sjölund- Copy also the directories
08cf155c16Martin Sjölund- addClassAnnotation has been moved to the typed API - Added OpenModelica.$Code.Expression - Added support for named arguments that have Code type
da0b8860caMartin Sjölund- Detect people who cannot spell Linköping correctly
ab3bbe0c4aMartin Sjölund- Fix testsuite
9c81b9dd09Martin Sjölund- Disallow local variables shadowing in/out
ba976eb041Jens Frenkel- bugfix alias of alias is constant
81ae702571Jens Frenkel- fix bootsrapping
871a1a0844Jens Frenkel- remove local variables with same name as inputs - fix tests
2f089f664aAdeel Asghar- Minor fixes.
099185e164Adeel Asghar- Fix build.
3b78a556ffJens Frenkel- do replacements also in known aliases
7f96e622eaAdeel Asghar- Free the memory properly.
49d1633398Martin Sjölund- Do not link RML files in OMC runtime
96215c371bJens Frenkel- change handling of alias vars in remove simple equations -> good speedup
ae4a87ebddAdeel Asghar- Generate some test code for FMI model exchange.
de0b7047b1Martin 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
9226133d59Martin 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
94e408cdbdAdeel Asghar- Don't generate extra libs. Just use the Compiler/runtime.
6e6bffc38fAdeel Asghar- Generate makefiles.
c9e0300d10Martin Sjölund- Safer make commands (cd nonexisting; make) causes infinite loop
1c54ea2dd0Adeel Asghar- Add fmiwrapper files.
2936776a18Adeel Asghar- Compile FMI stuff separately. - Create fmiwrapper lib.
f0d0cdcb44Jens 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
ac03fd5cb1Pavol 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
177f01b4dcMartin Sjölund- Changed FMIL to build in separate directory again
5557985148Martin Sjölund- Give as many strings as there are %s directives in the error-string
49600db999Jens 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
259a8bda8cMahder Alemseged Gebremedhin+ revert memory pool to 4 mb.
4dc9ef702fMahder Alemseged Gebremedhin+ Generate ParModelica code for function (non-simulation) case too. plus some fixes.
d3c469b705Jens Frenkel- take care tearing var is not used in relation for mixed systems - move Modelica.Mechanics.Translational.Examples.Friction.mos back to tests
f1ab752fdeMartin Sjölund- Flatten and generate correct code for: algorithm (,x) := f(time);
3b1aa9fa5fPavol 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
63461b2cbfMartin Sjölund- Generate readable generated code
ec63c6afbdMartin Sjölund- Fix warnings
25ab8c107eJens Frenkel- improve tearing var selection
f81bd5aac4Jens Frenkel- handle pre,change,edge in adjacencyRowEnhanced1 better
b862e14d67Jens Frenkel- BackendVarTransform: use inFuncTypeExpExpToBooleanOption everywhwere - BackendDAEUtil: bugfix adjacencyRowExpEnhanced1 - SimCode: move skipPreOperator to BackendVarTransform
00682cf1c9Jens Frenkel- fix tab
c50a564f8dJens Frenkel- bugfix tearing for mixed equation systems
9d4b821738Jens Frenkel- bugfix SomCode.solveTrivialArrayEquation
e757b127f6Jens Frenkel- Tearing: handle array equations in nonlinear case
989a7ca419Martin Sjölund- Removed some unused variables - Set LF line endings - Updated refactoring script to contain more profanity (fuck yeah!)
57cd95b3c8Mahder Alemseged Gebremedhin+ Back-end and code generation support for parfor loop.
24e1cfdbaaMartin Sjölund- Fix syntax error
748da59d1aMartin Sjölund- Refactoring
aaad0c7492Martin Sjölund- Fix typo
1852e5d209Martin Sjölund- Ran automatic refactoring
e312b0c057Martin Sjölund- Add LDFLAGS to the ones the simulations use
c8aa34051eMartin Sjölund- Print errors in flags instead of fail execution
2d23f00c74Martin 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
0bab035849Martin Sjölund- Added CPPFLAGS to makefiles
3e10275356Jens Frenkel- check for unsolvable before select tearing vars
18a0934738Jens Frenkel- fix tests
c310bb92b8Martin Sjölund- Added support for guarded case-patterns
c4826a3a81Per ÖstlundFix for bug #1773: - Make sure that we fail properly when we get a type mismatch on a binding, instead of returning UNBOUND.
e487ab7937Martin Sjölund- Tail-recursion optimization on if-statements
2a67dda360Martin Sjölund- Make Debian cmake handle fmil
afba3480f5Martin Sjölund- Don't print so much in colour; it makes us dizzy. Stupid cmake destroying things.
4f2a126934Martin Sjölund- Translation update
3f93801ca6Martin Sjölund- Look for gettext headers
f57b222a87Martin Sjölund- Fix compilation of ASUB in non-function context, too
b4926da45dMartin Sjölund- Fix linkage
e2d66c186cMartin Sjölund- Make compilation a little faster
56973c0b3aMartin Sjölund- Added COPYING file
a3419d121aMartin Sjölund- Configure now handles libqwt5.so (from arch AUR)
585ce8e94eJens Frenkel- bugfix linearize: - generate at least one print commant to have the same index and avoid the strange side effect
03864ced9dJens Frenkel- fix for linearize
254b211cd9Adeel Asghar- Use the static lib of FMIL.
1959d7b2efAdeel Asghar- Updated the debug and profiler makefiles.
17d3bc9cb7Martin Sjölund- Fix Linux compilation
b40e6bb7e8Adeel Asghar- Compile FMIL.
060c012ee5Martin 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
ab1f64c3efJens Frenkel- bugfix compilation
32d6c2491eJens Frenkel- remove unbound local variable
7e07b3ef94Adeel Asghar- Update OMDEV. - Replaced the FMI reading code with FMIL utilities.
25978d2945Martin Sjölund- Bootstrapping
265a4e9023Martin Sjölund- Improve error-message if we do not have CORBA but try to use it
9cf5b4531bMartin 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
ebff3f7903Martin Sjölund- Some simulations start working again after ocl commit
a2e3906395Martin Sjölund- Remove tabs
df5c6f1df2Martin Sjölund- IF I SAY DON'T BUILD OMOPTIM, DON'T TRY TO BUILD OMOPTIMBASIS *STABBB*
8d45a2f4a1Mahder Alemseged Gebremedhin+ ParModelica extensions. BackEnd and Code generation for parallel functions and kernel functions. + Some fixes in runtime.
5601ca5b04Martin Sjölund- Fix modelML models and classloader - Expected output
19db907218Martin Sjölund- Bootstrapping - Expected output
b24c1a079bMartin Sjölund- Fix bootstrapping - Fix ThermoSysPro library errors - Disable within checks for language standard 1.x
248f7c3e3dMartin Sjölund- Fix loading of MSL 3.1 by fixing ClassLoader and the MSL 3.1 package
23379875a5Martin Sjölund- Added checks for loading mo-files in same directory as package.mo
105ea3b7f2Martin Sjölund- Added some checks for loadModel() package.mo-files: * 1 class * correct within * correct classname
cef3e1a899Adeel Asghar- FMI import.
f65d900143Adeel Asghar. Fix Windows build. No langinfo.h for mingw.
7a6225ebf9Martin Sjölund- Fall back on en_US locale since it is rather common
e2a86e41b9Martin Sjölund- Look at the user's previous environment to get a UTF-8 LC_CTYPE locale if possible
2558d0ee7dMartin Sjölund- Fix compilation damnit
b339a59baaMartin Sjölund- Fix compilation
6fde1b6d03Martin 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
01ca5d7b05Martin Sjölund- Fix UTF-8 locale
8981df9d6bMartin Sjölund- Updated the copyright notice
3cdac3b10eJens Frenkel- BackendVariable: - bugfix existsVar - add isVarNonDiscrete
178b2781e0Jens Frenkel- SimCode: handle also complex equations like "Record(x,y) = f()" if solved for x,y - List: add map1rAllValue and foldAllValue
cb45e0fe36Jens Frenkel- BackendDump.printEquation use equationStr - SimCode: handle also Record(..) = f(..) for nonliniear systems
a760503479Martin Sjölund- Installation path
637c114197Per Östlund- Merged the cases in SCodeInst.instFunctionCall, since RML unifies them incorrectly.
3ec058838eMartin Sjölund- Makes omc search for more locales than the given one (to make a good effort of getting LC_CTYPE=UTF-8)
e0be5b5cb7Jens Frenkel- workaround for nonlinear torn systems
bd25e9ec35Jens Frenkel- bugfix tearing for nonlinear systems
abfdb04c28Jens Frenkel- bugfix tearing for nonlinear systems
4cb5597c65Martin Sjölund- Fix gettext charset when not using +locale=..., relying on env.vars instead
3597a7e3adAdeel Asghar- gettext uses environment variable so don't use setlocale for windows. - Pass the OMEdit locale to omc.
d6219051f8Jens 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)
7a44ca1111Martin Sjölund- Finished swedish translation
6cb08dbd9dMartin Sjölund- More translations
06e4cffdcePer Östlund- Changed the configure check for qwt to include qwt6.
671edab424Jens Frenkel- save time, do not update incidence matrix
c09d41bb20Jens Frenkel- bugfix removeSimpleEquationsPast
e1fa93f926Martin Sjölund- Improved translations
d1b80fa7a0Jens Frenkel- tearing, bugfix for array equations
e378b33e02Adeel Asghar- Fixed build for windows.
0ad152d183Per Östlund- Removed some cases for handling stringified crefs.
52e9811887Martin Sjölund- Marked some files in the runtime as translation targets
f6276e9593Per Östlund- Merged Flow and Stream in SCode and DAE into ConnectorType.
fe7aeda66bMartin Sjölund- Enable interactive/interactiveCorba modes again
8497866047Martin Sjölund- Avoid printing multiple copies of the usage if +help is given on the command-line
206157a7d3Martin Sjölund- Enable translation strings for many config flags
60d29cd7b9Jens Frenkel- fix uninicialised variable
f931d19da8Adeel Asghar- Fixed setlocale warning for windows.
6f956338e1Jens Frenkel- implement handling of array equations in BackendDAEOptimize.derive
24da7fb721Martin Sjölund- Updated translation guide
cb16a9a1fcMartin Sjölund- Adding German language stubs to the translations
b28cd79390Martin Sjölund#1767 - Marked strings for translation in Error.mo - Removed some useless whitespace from a few error-messages
66d0c00290Jens Frenkel- do not exceed next time step while search forward for event in reference
0a66154f6eNiklas Worschech-fix in cpp template for algortihm no retcall
acb3222a34Jens Frenkel- improve SimulationResultsCompare, now the left and the right value of an event are compared
a9433decc1Martin Sjölund#1766 - Only set locale for messages so we do not screw up numbers
b19c0e44b8Jens Frenkel- update Loop handling
f22664567fJens FrenkelDo not hand over the scalar incidence Matrix because following modules does not check if scalar or not
57188b47b8Johanna 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”
71e0caa43eMartin Sjölund- Check for gettext
e89017774fMartin Sjölund- Fix clean command (OMOptimBasis)
85dad2356cMartin Sjölund- OMOptimBasis path
0a96687e5dMartin Sjölund- Fix OMOptimBasis paths
74f8575338Niklas Worschech-changed simulation arguments to program_options, modified CevalScript for cpp simulation call
d6af7698adMartin Sjölund- Remove debug print
c30941ab0eMartin 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.
c4c5f0e839Martin Sjölund- Adding directory for translations of the omc kernel
ca6738c091Jens Frenkel- avoid memory leaks - use absdouble()>epsilon for double==double in SimulationResultsCmp
1ff5a0153eMartin Sjölund- Remove results from list of keywords
0f1e199890Jens Frenkel- get rid of bootstrapping warnings
59eac3b4b0Jens Frenkel- remove unused local variable with same name as input to avoid segvault by bootstrapped compiler - remove fastht from BackendDAE.Variables
9d23a7f4fbNiklas Worschech-changed cmake file for lapack and blas lib
973149ce21Niklas Worschech-removed tabs
62257c6221Niklas Worschech-renamed cpp shared libs and executable with OMCpp prefix -changed executable call for cpp runtime in CevalScript
52320a7c4cAdeel 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.
ae17f83dd2Jens Frenkel- fixes for if-equations
593c7bedfdMahder Alemseged Gebremedhin+ Remaining support for Class Attributes (objectives) for optimization class of Optimica extension.
1c4cd274c3Jens Frenkel- add missing functionality for if equations
1d6b0ee099Adeel Asghar- New API call to check if the nested class is protected or not, + isProtectedClass
0353c9ff95Jens Frenkel- add BackendDAEOptimize.simplifyIfEquations - move evaluation of parameters with annotation evalute=True to backend - move handling of if equations to backend
7c852ac0deJens Frenkel- remove transformDAE,mapTransformDAE,transformDAEWork,restartMatching from BackendDAEUtil.mo
97174c4591Jens Frenkel- test new interface for index reduction
cd759d1393Niklas Worschech-changed loading algebraic loop solver library in cpp runtime
8b3d44bc8aNiklas Worschech-added exception for not supported output format
55b08f0928Niklas Worschech-fix removed space in include string
f7f18de282Niklas Worschech-changed simcall in CevalScript for cpp runtime
382a3bb834Niklas Worschech-fix in cpp template for algloop include's
679c347d04Niklas Worschechchanged instantiation of Algloops in cpp template because of assembler errors
ace5190696Adeel Asghar- If the adding component class is partial then declare the added component as replaceable.
7d4e0bc92cPavol PrivitzerC# codegen template little improvements - proper enum support - initial algorithm for bound params support - added (my old) Susan_TODO.txt
8c8a1bd94eJens Frenkel- rename evaluteParameter -> removeevaluteParamters - add evaluateFinalParameters and evaluteParameters,
e490c51c61Lennart Ochel- fix sparse jacobian for initialization
084eed4ac4Lennart Ochel- add interface to get real sparse jacobians - use sparsity pattern for initialization using ipopt - correct indentation in CodegenC.tpl
1761dd0598Jens Frenkel- bugfix rooted
6dcf76789bJens Frenkel- implement evaluation of "rooted" in ConnectionGraph.mo
79639569d5Pavol PrivitzerCleaning of the internal stuff out of the susan_codegen/ - delete susan_codegen/SimCode - move SimCode_design.txt to susan_codegen/
03ae782cbdJens Frenkel- get some loops working
4fc487a3e3Lennart Ochel- generate constant indices for each symbolic jacobian
6669fcd720Lennart Ochel- fix tests using simflags
524e70702aJens Frenkel- continue loop handling
a532cf7f0dNiklas Worschech-fix in cpp template giveZeroFunc
b0d80ac58aJens Frenkel- grammer
9f7cbb1bc1Niklas Worschech-fix in cpp template for make file generation
556cae34c6Lennart Ochelfix for ipopt in std-directory
6df315f7c3Lennart Ochelfix tab-errors
cf71646537Lennart 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)
87f08c25ecJens Frenkel- update OnRelaxation for loops
8743e32701Adeel Asghar- New API calls to check class restriction, + isOperator + isOperatorRecord + isOperatorFunction
f385d68ff7Niklas Worschech-fix for algorithm for loops in cpp template
0568425cc3Niklas Worschech-added struct and Literals generation to cpp template
b8e5f018ebJan SilarFixed bug in C# template - FunDAE - mexed_equation_system. Redundant "," causing nonbuildable generated code.
8c27a19e7eJens Frenkel- add Flag to set cheapmatching algorithm - bugfix for pantelitis index reduction
8e7c9cf159Jens Frenkel- bugfixes index reduction and matching
1be7d96401Jens Frenkel- fix bugs
1b7e191befJens Frenkel- remove tabs
b1383453fdJens Frenkel- listNth -> listGet - update old matching and index reduction to new interface - update DynamicStateSelection, Pantelitis for wrapperles code
01262d2339Jens Frenkel- try some things for loops
3e72ebd93dNiklas Worschech-fix in cpp template for algorithm tuple assign and start values
24f9b1079cJens Frenkel- add module removeFinalParametersPast
58657c17f0Jens Frenkel- rewrite some set functions
8b7c5e50a0Jens Frenkel- add cases for unaray and asub to Expression.mo - do basic simplification for expAdd,expSub,expMul
da3ff32669Jens Frenkel- search also in simple and initial equations for zerocrossings
2f5e8a5808Martin Sjölund- OMOptim build fix
8ec5db594dJens Frenkel- remove unused when clauses from BackendDAETransform.traverseBackendDAEExpsEqn
8c3708589bJens Frenkel- remove index from WHEN_EQ and keep condition of when equation in when equation - install-openturns depends on mkbuilddirs
949b38a688Jens Frenkel- fix tabs
a50d8c8405Jens Frenkel- add code for multi body relaxation, not yet finished, kinematic loops still fail
ffe7af5867Martin Sjölund- Look for paradiseo build directories as well
c7eaf7910aMartin Sjölund- Added index to FOR_EQUATION
5530d12cb8Martin Sjölund- Added utils directory as well
258f730be3Martin Sjölund- Some paradiseo autoconf
a153670817Jens Frenkel- bugfix evaluate parameter evaluate=true
ac364ddff2Jens Frenkel- bugfix if equation for elabelements
a244a6675fMartin Sjölund- paradiseo "help"
f29ff66253Jens Frenkel- handle if equations in Derive and BackendDAETransform.traverseBackendDAEExpsEqnWithSymbolicOperation
0e09cc7b6eJens Frenkel- handle if equations in inline
7c4868e855Jens Frenkel- handle if equations in incidence matrix
fdf9c94871Jens Frenkel- add condition to when equation - handle elsewhen branches in incidence matrix
6e0a8ade10Jens Frenkel- add size information to when equation
28ac9962ceMartin Sjölund- Check for include/qwt5, then check the header for QWT5 macro (using grep)
2caa5f56a5Jens Frenkel- inline condition of when equation only once
eec678d113Jens Frenkel- bugfix tests
e5b37d52e1Jens Frenkel- bugfix tests
f316bf6523Jens Frenkel- add some more support for if equations in backend - add module for evaluate parameter with evaluate=true annotation
b175adc468Niklas Worschech-removed tabs
1334d9776eNiklas Worschech- adapted numeric/bindings header files
361d05618eNiklas Worschech- extended cpp template for sparse jacobian
ff050fe413Jens Frenkel- switch evaluateAnnotation on
dbffe8ce83Jens Frenkel- change implementation of removeFinalParameters and removeProtectedParameters to handle several equationsystems
1f83bf326cJens Frenkel- remove some unused imports - add Env.Cache and Env.Env to BackendDAE.Shared
021f21cc35Jens Frenkel- use traverseBackendDAEExpsNoCopyWithUpdate to geep the simplified expressions and not the old one
4668b42fc4Jens Frenkel- bugfix Tearing
ee7a7024f0Jens Frenkel- Bugfix getVar - Bugfix BackendDAEEXT.setAssignment - use vars and eqns for BackendDAEUtil.analyzeJacobian - bugfix Tearing
f4a7b4125bMartin SjölundFix testsuite
91d7bfb78bMartin 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
e17f1ac635Martin SjölundSome minor documentation updates
f00a8738f5Martin SjölundAdded expansion of if/for, fixed some expansions of algorithm sections (expand the whole sections instead of individual statements)
543b49ff16Jens Frenkel- fix comment for systemSize - fix counting of algorithm outputs
abb60e1bb8Jens Frenkel- BackendDAEUtil: avoid Zero entries in JacMatrix - fix order in equationToExp for arrayEquations - fix order in createNonlinearResidualEquations for arrayEquations
13c4858e1fJens Frenkel- remove debug output - update tearingnew
4a4eea2d88Jens Frenkel- fix tests
8cc472bc81Jens Frenkel- fix tests
fc6d3b1753Jens Frenkel- fix tests
131854b3f4Jens Frenkel- fix tests
74443b8968Jens Frenkel- fix constant liniear system
996dc805e5Jens Frenkel- fix initial equation issus with function equationtoScalarResiduals - add some util functions
fb4dede5d7Niklas Worschech- Switched CVode as default solver for cpp runtime - removed unused cpp case in SimCode createEquationsForSystems - added test model BouncingBall to cppruntimetest- folder
041f440016Martin Sjölund- Added missing testcase function1.mo - Do not expand array-assignments (keep non-expanded as it is not needed to scalarize them)
ef3d89cfc1Martin Sjölund- Fix typing of [:] in function context - TODO: Fix this also for expression, not just declarations of components
40e107ff39Per ÖstlundPre-vacation code dump: - Added List.accumulateMap. - Replaced InstUtil.print* functions with the template based InstDump. - Lots of connection handling and other fixes.
b3ed558150Niklas Worschech-removed tabs
0abd27dc95Adrian Pop- more equation printing in InstUtil.mo - more expansion (not quite right) in SCodeExpand.mo - fail again in Typing.mo in typeFunction.
a0dfae9581Jens Frenkel- filter constant initial expressions
adb7fd6575Adrian Pop- ignore deleted components in Typing.typeConnectorCref2. - better error message in SCodeExpand.mo. - V6 engine gets to expansion now but fails there.
1ec5cf297fNiklas Worschech-changed output format of cpp runtime to csv
bf927bc443Jens Frenkel- fix compilation
dbaa160418Adrian 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.
fff85d6a92Martin Sjölund- Check linking before we assume sundials is recent enough
8be4c2a352Adrian 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).
f59164e580Jens Frenkel- revert some pices of last commit
f1d941b02bJens Frenkel- fix compilation
3ee3517ae1Jens Frenkel- the End of the WRAPPER Era
63ed8ca648Martin Sjölund- Added typing of array allocations
7d0bb6d027Martin Sjölund- Add dependency not to assign to an array before it is allocated
721f3b0637Jens Frenkel- fix count of equations, Expression.sizeof, add a fiew more types
c7fede3d6cMartin 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
130424a7caNiklas Worschech- fix for algorithm if and reinit statements in cpp runtime
7a95b67ac3Jens Frenkel- use CheckModel for checkModel
0d932bd6d7Jens Frenkel- fix coding style
3b84ccfcdcJens Frenkel- fix compilation
e58222a524Jens 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
dfebfce82aJens Frenkel- Inline.mo,BackendVarTransform.mo bugfix for Algorithms - ExpressionSimplify.mo: symblify Range(1,5)+2 -> Range(3,7) - BackendDump.mo: bugfix print If-Equations
1557048958Niklas Worschech- fix for algorithm when statements in cpp template
dc2c4fb6f1Adrian 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).
8902cbf7cfJens Frenkel- fix compilation
9e6d2118b8Jens Frenkel- Inline.mo: add inlineExpOpt and use it in inlineVar - BackendDump: add dumping of If equations
c10ebf0024Martin Sjölund- Sort initial bindings of variables in functions
f6c20d426eJens Frenkel- fix bugs in BackendVarTransform.addExtendReplacement, prior not all necessary extendsions added
34dfc7dcfeJens Frenkel- fix bugs in BackendVarTransform.addExtendReplacement, prior not all necessary extendsions added
7b1fb8d5caJens Frenkel- add boxptr_arrayUpdate, to use arrayUpdate with List.fold1r
097a678c69Adrian 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.
6e0ef54f26Martin Sjölund- Only look for duplicates in the current scope when adding elements
bf7c4b41c9Per Östlund- Added variable declarations to function_sampleInit.
34fafeaeaaMartin Sjölund- Some more function typing
7be649f76dJens Frenkel- fix partitionIndependentBlocks for nowrappereqns - continue nowrappereqns
d9f46ecc27Jens Frenkel- fix testsuite
510b58568dJens Frenkel- fix bootstrapp compilation
0c31730f94Jens Frenkel- fix bootstrapp compilation
e1a0b1bd5bJens 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
583428032fJens Frenkel- start to ged rid of the wrapper equations
4649fe6174Jens Frenkel- BaseHashTable.mo: print also key string in case of an error - Util.mo: add function consN to concate n times an ellement
35225bb0adNiklas Worschech- fix in cmake file for Modelica system
181efacaa9Jens Frenkel- ComponentReference.printComponentRefStr us match - ExpressionDump.printListStr use stringDelimitList and List.map
395fe12078Jens Frenkelremove tabs
469a679a30Jens Frenkel- remove last idea for dynamic state selection
ed5eb02f3dJens Frenkel- bugfix dynamic state selection
58c5b513c2Niklas Worschech-fix for linking new windows boost libraries in Simulation.exe
cda4cb344dJens Frenkel- finish symbolic calculation of determinant of a square matrix
7c4ee0d610Jens Frenkel- switch to dummyderivative - remove unneeded code
6c6c59e2a4Jens Frenkel- try improved dynamic state selection
2917868b2bPer Östlund- Added comments to InstSymbolTable and BaseHashTable.
8c72acd0f1Martin Sjölund- Tab cleansing - use burning fire
64bab5bf03Niklas Worschech- Added cppruntime test folder
3559259330Jens Frenkel- and switch back to dummyderivative
b3820bad14Jens Frenkel- remove Old getVar helpfunctions - fix bug for dummy state selection - try dummystateselection
7edba3c728Niklas Worschech- modified boost version to 1.49 for windows compilation
5c98b7e600Jens Frenkel- print more information in case of pure discrete equation systems
2fa354c819Jens Frenkel- and switch back to the old dummyderivative
6912234208Jens Frenkel- try dynamic state selection
5450e132aaJens Frenkel- fix expandCref for Records
b57bced03aJens Frenkel- fix expandCref for Records
0013def2d5Jens Frenkel- fix expandCref for Records
569873a879Jens Frenkel- fix expandCref for Records
0accc51bb6Jens Frenkelfix compilation
1e4f28e184Jens Frenkel- speedup expandDer - improve BackendVariable.getVar - rewrote a fiew functions tailrecursive in SimCode.mo
1e1e6f84f8Jens Frenkel- move a fiew functions to CodegenUtil.mo - add some dependencies in makefile
4df27f04fcAdrian Pop- add Compiler/BackEnd/MathematicaDump.mo to testsuite/bootstrapping/LoadCompilerSources.mos - fix output parameters in Compiler/BackEnd/MathematicaDump.mo
478d80371bJens Frenkel- remove print from call simulate
0615b00fd0Jens Frenkelfix tests
c35b460c57Jens Frenkel-fix loading of settings file in cpp runtime
769634149eAdrian Pop- use only Windows commands to get rid of "pause" in pyot.bat.
8b0083c86aJens Frenkel-fixed linker path in cpp template
5438bcb030Adrian Pop- tab removal.
970705de1dNiklas Worschech- fix equationInfo field
aef44310a0Jens Frenkel-fixed dynamic libarary loading with path names
ce37188713Jens Frenkel-fix include names in cpp template
51fb58f95eMartin Sjölund- More expansion of functions
9d6cd1c834Niklas Worschech- fix testsuite - add CodegenUtil.tpl/.mo
1c52a6104fMartin Sjölund- Start of function expansion
66acada687Leonardo Laguna- Implemented MathematicaDump.mo for uncertainty calculations
2e98d0e661Per Östlund- Fixed compilation.
9f2d46d742Per Ö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.
c80f0935b6Niklas Worschechfix tests
acfec95dc7Martin Sjölund- Fix compilation
01b1c86039Niklas Worschechfix tests
c7b91e6d5bNiklas Worschech- move tpl from susan_codegen to Template
bbf4a5ffebJens Frenkel-fix for calling cpp simulation exceutable
7852a63a43Martin Sjölund- Make string escaping also handle Windows-style newlines
3ce6b809fdPeter AronssonFixed bug with parameter being evaluated when building openTurns interface.
e95a418fd7Niklas Worschech- fix for algloop include names
630a8dc72bJens Frenkel- fix testsuite
d172acde3eNiklas Worschech-fixed include names in cpp template
f556798451Jens Frenkel- fix testsuite
3462e9ecd3Adrian Pop- remove some extra checks.
95145e06dfNiklas Worschech-fix in Euler CMakefile additional library dependencies
e24d437086Adrian Pop- fixes to OpenTurns to support parallel execution.
1fd2900fe5Jens Frenkel- fix cpp installation
458b21cbd6Jens Frenkelfix runtime cpp for compilation Makefile Source/*.*
334a77213eMahder Alemseged Gebremedhin- Fix for unallocated arrays in records. And some passing tests.
af4d6d4db1Niklas Worschech- fix testsuite
4eed977d3bMartin Sjölund- Fix iconv errors
67c7e9d651Martin Sjölund- Add a HT
ccce539e83Jens Frenkelreplaced includes of Settingsfactory with SettingsFactory
0a02ede57dJens Frenkelreplaced all utils/extension includes with Utils/extension
038cbb3055Per ÖstlundFix for bug #1750: - Fixed propagation of visibility for extends.
400994e761Martin Sjölund- Finished propagation of FunctionHashTable
73da0ea11dJens Frenkel- add targets for runtimeCPP
c0ca49e193Jens Frenkel- add make files for cpp runtime call cmake
2caac13c43Martin Sjölund- Propagate functions further
a52e23f2d8Martin Sjölund- Updated OSMC License
f9aed17333Jens Frenkel- fix testsuite
7aa712a9d3Jens Frenkel- fix tests linearization
45b1d24258Martin Sjölund- cmake is stupid and evil, and people write as poor cross-platform files as make, why use it?
9cea235f7eJens Frenkel- generate for each equation only one function in c code
5377f98e07Jens Frenkel- use state index direct instead of search for it in markStateEquations
85006083c2Niklas WorschechMoved boost::extension to Source/utils/ folder
331b859d51Martin Sjölund- Propagate more functions
a50e841dfdMartin Sjölund- Fix bootstrap compilation
57acd81ad8Jens Frenkel- continue to implement uniqueEqIndex for simcode
f7d4236730Jens Frenkel- start to implement uniqueEqIndex for simcode
4d47482ef5Martin Sjölund- Don't install-openturns on sane systems
8931a07f46Martin Sjölund- Propagate more functions
4256d35a26Adrian Pop- fix windows compilation.
0077476cf5Jens Frenkel- add index to each SimEqSystem
97e830fc5fMartin Sjölund#1751 - Changed the ModelicaInternal_getenv definition to match the declaration
f19610cf6dJens Frenkel- fix bug in calculaton of jacobian, in case of state jacobian have to generated for der(x) not for x
fa0fa4e248Adrian 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
afa4ea5e48Jens Frenkel- and tearing off after test
bee4633a69Jens Frenkel- try testsuite with tearing
356756e099Jens Frenkel- and tearing off after test
feac7ea84eJens Frenkel- try testsuite with tearing
d9cbf5179bJens Frenkel- fix bugs for tearing
15a3d75ebbJens Frenkel- and switch back to tearing off
eeaa1e0325Jens Frenkel- test how many tests fail if tearing is used
cc9ce655d1Jens Frenkel- minor fixes for tearing
975079a547Per Östlund- Fixing the testsuite again.
8bc10898b7Jens Frenkel- fix some bugs for tearing
4b30bc7917Per Östlund- Forgot to commit Error.mo.
19ef8f063fPer Östlund- Added error message when trying to redeclare nonexisting element.
cf6d6f111eJens Frenkel- dump more tearing information
fd49aaed1eJens Frenkel- minor changes to derivall for tearing - remove depug outputs from tearing - bugfix AdjacencyMatrixEnhanced - dynamic state selection, set start value of contition not static
acd39ae9abWilli 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
2fe083b7afJens Frenkel- fix strange infinit loop in c_runtime by reverse the order of the equations in strong component
9abd2daec3Jens Frenkel- remove BackendDAEExt from tarjanAlgorithm - use function transformBackendDAE in Uncertainties
56f61ec004Martin Sjölund- Propagate some more information so we can store functions in the future
52d7c51445Leonardo Laguna- Updated algorithm for equations extraction in uncertainties calculations. Note: no test has been added since we haven't defined the final output
edb69954f0Per Östlund- Fixed prefixing of function variables in SCodeInst.
4b7fc6bb32Martin Sjölund- Added tail-recursion for NORETCALL statements
1b69f3c07eMartin Sjölund- Started work on sending additional options to simplify
b9f3dbe53fJens Frenkel- fix compilation
2783af706dPeter Aronsson-Implemented xml file for Uncertainty interface with OpenTURNS.mo -Updated CantiliverBeam.mos testcase
9462043d06Jens Frenkel- use simplifyTimeIndepFuncCalls module
2357b68dadJens Frenkel- minor fixes for new dynamic state selection
1e14e3ef40Jens Frenkeladd module simplifyTimeIndepFuncCalls
710c467854Jens Frenkel- fix bug for loopIndexTester model from forum
c04aee278fMartin Sjölund- Inst&Type if-statements
6cead72adbMartin Sjölund- Typing/Expand of algorithm sections are now propagated properly (but only for some of them)
349bad6826Jens Frenkel- fix compilation
110776292dJens Frenkel- continue new dynamic state selection
0bd16d6c0fJens Frenkel- fix compilation
97f1cf63e9Jens Frenkel- remove (again) all the unnecessary local BackendDAE.BackendDAE variable declarations
d2a4509761Martin Sjölund- Fix compilation (double errors 2 commits ago; fixed only 1)
e505b35bfaMartin Sjölund- Fix names of outputs to correct ones
af510b4ed7Peter 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:
357d5dcff9Lennart 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)
97dfd9f96eMartin Sjölund- Fix tab errors
8584f82616Niklas Worschechfix in cpp template for array of models code generation
5b29895244Adrian Pop- MODELNAME is not required.
e8851d88c1Adrian Pop- use a defined variable for the wrapper name.
20220de35fPer Östlund- Some conditional component improvements in SCodeInst.
151d50bb81Per Östlund- Fix connector type check in SCodeInst for connectors derived from basic types.
d85b676c1dJens Frenkel- fix compilation
60679287a7Jens Frenkel- remove local var declaration
6144e79812Jens Frenkel- remove tabs
380711895cJens Frenkel- remove tabs
7ce136c80fFederico BergeroFixing bug in QSS target
6aa7a95fc2Jens Frenkel- bugfix compilation
3e36ec3037Jens 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)
4e69e96dc0Per Östlund- Removed tab.
6b855d615ePer Östlund- Added support for x = func(...), where func returns multiple values. - Some fixes for expandable connectors in SCodeInst.
ec56b85301Martin Sjölund- Tabs are evil
44545c5e64Peter 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)
9f551390c9Martin Sjölund- Fix dependency analysis
8e0c50c420Martin Sjölund- Refactoring EQ_NORETCALL (store Exp to simplify implementation/traversal)
b2e4ae1d08Martin Sjölund- Added support for varargs-style functions in SCodeInst
face260e2bMartin Sjölund- Refactoring: SCode.ALG_NORETCALL now takes an expression to simplify traversal
c00395c751Martin Sjölund- Updated examples
2e3b512c86Martin 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
7578b392e9Jens 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
9c77c45b19Jens Frenkel- Inline.mo: splitt function inlineEqOpt in two functions (inlineEq,inlineEqOpt) - Expression.mo: add functions traversingDerAndComponentRefFinder, expHasDerCref, traversingexpHasDerCref
70ec769a06Niklas WorschechAdded Ida solver to cpp runtime
d1234c096aPer Östlund- Allow expandable connector components in connects for SCodeInst.
e38f3d7fa1Martin Sjölund- Instantiate more statements
2be404c5d4Martin Sjölund- Changed structure of SCode.ALG_FOR to be nested instead of a list of iterators (to mimic the EQ_FOR structure)
f0b40291a7Martin Sjölund#1753 - Fix typo
2303359b1dMartin Sjölund- Fix compilation
9a78726fd1Martin Sjölund- Fix compilation
1bb2a31191Martin Sjölund- Changed the range of a for-loop to Option to account for implicit ranges in a more visible manner
e3731e0dc9Martin Sjölund- Handle inst of if-statements
865f644243Martin Sjölund- Fix the getInstanceName() documentation
11d1833930Martin Sjölund- Also generate MetaModelica documentation
3353694333Martin Sjölund- Added documentation for referenceEq - Made Builtin.mo load MetaModelicaBuiltin.mo using the correct filename+line numbers - Added fileName argument to val()
c041b9434eMartin Sjölund- Do not rebuild sample client every time
7299a6571bMartin Sjölund- getClassNames now handles classes with a constrainedby clause
c01ab90aa5Per Östlund- Forbid Real priority in potentialRoot calls.
5268c978bbMartin Sjölund- Adding a function type
f2a8133671Adrian Pop- attempt to fix testsuite on Windows and Linux CLANG
55104a48dcLennart Ochel- fix undefined behaviour
6b60460144Lennart Ochel- fix memory leaks
ee222fb2cbAdeel Asghar- match constrainedBy clause with NONE().
609d55e47aAdeel Asghar- Check the constrainClass while fetching the classnames.
b16c5da1ffJens Frenkel- bugfix compilation bootstrapped
f8b12c5adbJens Frenkel- bugfix compilation bootstrapped
c0a638da7dJens Frenkel- add modules tearing, coundOperations
8021e9fc26Adeel Asghar- Fixed a missing { in getExternalFunctionSpecification. - Also updated the test.
c49b9d26dbAdrian 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}}
7302fe4821Per Östlund- Instantiation/typing of functions for SCodeInst.
5c26799e9bLennart Ochel- undo changes in initialization.c from last commit
271ff37cdfLennart Ochel- minor fixes - add initialization test case
ae62475a83Pavol Privitzer- assert() support in C# simulation code
a5ca9b17c0Lennart Ochel- fix for last commit
9e28fc06cfLennart 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
681afab459Per Ö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.
cba45016e6Martin Sjölund- cp -u is a GNU extension; we support non-GNU systems...
7426d6a4d3Adrian Pop- attempt to fix Windows compilation and testsuite.
80f8fda033Martin Sjölund- Do not add LDFLAGS twice
ff0642d758Martin Sjölund- Link with Sundials only if requested
419bf192a3Martin Sjölund- First step towards compiling without sundials
50ab12a56fJim NutaroFixed event handling in the adevs backend
535901daacJens Frenkel- bugfix linker realRand, intRand
6cf9f7cdbdMartin Sjölund#1746 - Fix for asub in functions
b4cf1fbf9bJens Frenkel- add function getVarDAE
b6eae6c624Jens Frenkel- bugfix tearing
2395631deaPer Östlund- Fix iterator typing in for equations for SCodeInst.
1335932babNiklas WorschechResolved name conflicts for some member variables of AlgLoop System in cpp runtime.
9f5bf0993eMahder Alemseged Gebremedhin+ Part of support for Class Attributes (objectives) for optimization class of Optimica extension.
82e8752588Per ÖstlundFix for bug #1738: - Check variability of first argument to reinit.
c2e589d320Martin Sjölund- Update the UTF-8 error message
3f54593e4aNiklas WorschechResolved name conflicts for some member variables in cpp runtime.
837aa467b2Martin Sjölund#1744 - Add OMDEV to checkSettings() result
8bde5e65a5Adeel Asghar- fix testsuite.
22aba21a32Adeel Asghar- Try -rdynamic instead of -ldl.
74ecd440eeAdrian Pop- no -ldl on MinGW! duh.
5283f2ae70Adrian Pop- mind the space.
d8759fd640Adrian Pop- attempt to fix the testsuite? - add -ldl with -whole-archive
341fc7a1a5Adrian Pop- squash the tabs.
f26242429eBill Janssenremove extra 'apply' around matrix XML dumps (bug #1743)
e3e74f773fAdeel Asghar- load all symbols defined in libSimulationRuntimeC.a into the simulation executable.
8da1bda646Niklas WorschechFix in event iteration of cpp runtime
45829f7e58Adeel 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.
b593b626f7Per Östlund- More cats.
3ad7dd323fAdrian PopOpenTURNS changes - added Makefiles for mingw. - updated to OpenTURNS v1.0. The wrapper .dll generation now works.
3454ba71edPer Östlund- Adding missing file.
1ba159f2bdPer Östlund- Implemented a new template based expression dumping. - Updated test suite.
0fb15e7b5fAdrian Pop- removed tabs in CodegenAdevs.tpl
81edf9cf60Jim NutaroUpdated and cleaned-up the Adevs code generator
05c977e389Adeel Asghar- Fixed lapack linking for FMU code generation.
8040c51176Adrian Pop- fix to make OMC happy.
b290a51e74Federico BergeroFinal version for article. All three example working
5214007c82Adeel Asghar- Fixed simulation for windows. -llapack is called -llapack-mingw on windows.
1d97dc78f9Willi Braun - changed THROWS back to WARNINGS (it seems that not all variables, a present in a dymola result file.)
902ff58131Lennart Ochel- get rid of some type mismatch warnings
dcbeb28cb2Bill Janssenfix for #1740, typo in string literal
dce291e9a2Lennart Ochelresolved dependencies between math-support and simulation/solver
94f3d6e49aAdrian Pop- remove the nominal warning for now. Lennart, please put it back when ready.
fba9e0744fAdrian 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
942a72d0cfAdrian 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.
1b4113b1beFederico BergeroFixing replacement error
0648c1a115Federico BergeroCreating the makefile
39cc21d026Federico BergeroWorking prototype
ffee0ad747Lennart Ocheladded new initialization method: -iom kinsol NOTE: new OMDev needed, do Subversion update on your OMDev!
e58fd6f3c3Martin Sjölund- Recommend omniORB in configure
0bf7367100Martin Sjölund- Add -I. to MICO CFLAGS
bca6824a51Jens Frenkel- dump id for matrix row
02a26d2bd0Jens Frenkel- take care of replace <,>... everywhere in dumpXMLDAE
f54f7f145fMartin Sjölund- Fixed getInstanceName() to work for packages and top-level models
9a201720ccJim NutaroUpdate to Adevs code generator for new simulation runtime
8e78c88ad7Willi Braun- fixed testsuite for last commit
3bc9c3534aFederico BergeroUpdating algebraic loop code
3f8f480059Federico BergeroUsing crefEqual
bb6a96ce79Willi 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.
736d0deda2Per ÖstlundFix for bug #1733: - Fixed connection of complex arrays with subscripts.
7977c3302cPer ÖstlundFix for bug #1731: - Fixed connection of arrays with subscripts. - Updated testsuit due to changed equation order for connects.
49b2b3327aWilli Braun - fixed debug output for symbolic jacobians
a328249da7Jens Frenkel- bugfix coding style
413ad7244cJens Frenkel- bugfix coding style
14467ca3d1Jens Frenkel- compareSimulationResults: report vars in case of file not equal and print error messages if command failed - msl31/simulate: delete all generated files
677602dbb0Mahder Alemseged Gebremedhin+ Fix windows compilation. update r11840. random and srandom. Moved defines to openmodelica.h.
b4af0a1158Jens Frenkel- XMLDump: fix implementation to handle also several indipendent systems - BackendDump: add function debugStrEqnStr
318847e509Martin Sjölund- Use srand/rand instead of srandom/srand on non-POSIX platforms
677e97b1b4Willi Braun - fixed array exp in symbolic jacobians
9f106c1aa4Willi Braun- fixed coding style
a104c51ef9Willi 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
f9251d8612Martin Sjölund- Added better System.*Rand functions based on srandom() and random()
731cb1bc7ePer Östlund- Added check that the first argument to reinit is a subtype of Real.
67041ced18Per Östlund- Removed failtrace from Expression.subscriptIndexExp, since the function is expected to fail sometimes.
4fe6b1f078Willi Braun - included functionTree to BackendDAE - create from removeUnusedFunctions a pastOptModule
1fc44f219bAdrian PopBackEnd/BackendVariable.mo - use ComponentReference.printComponentRefStr to also print the subscripts.
8edc12ecd2Adrian 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.
bf89fcdd6eAdrian PopBackEnd/BackendVariable.mo & FrontEnd/DAE.mo - better error message for variables with values outside the [min, max] interval.
6b08675e63Adrian PopBackendVariable.mo - display the min/max limits for the variable in the assert message.
0393072a11Jens Frenkel- add boxptr_intMin - bugfix setPastOptModules -> postOptModules
f7a34983b7Jens Frenkel- minor changes to dummy state selection heuristic
26ba7dcddcJens Frenkel- BackendDAEOptimize: doReplaceScalarArrayEqns more generic - BackendDAETransform: simplify code, use stateorder for differentiated equations - PlanarMechanics: set initialconditions - Update testsuite
0ce3c23c8dJens Frenkel- add function rand to System
4c54d93821Jens Frenkel- move ModelicaConfic.inc to /include/omc/cpp
6f46409503Jens Frenkel- use full path to include ModelicaConfic.inc - copy LibrariesConfig.h to OM_HOME/include/omc/cpp because this is in include path
691577ee5cJens Frenkel- fix typos
f81249ea1aJens Frenkel- improve handling of complex equations - improve evaluation of parameters with Evaluate=True annotation - add built in functions to set machtingalgorithm - update testsuite
60da35af49Adeel Asghar- Fixed the spaces problem.
e1994a78e9Per Östlund- Fix for previous commit.
9cd50de1c3Per Östlund- XMLDump fixes from Bill Janssen.
b36aabf081Federico BergeroGenerating a linear algebraic loop solve function and a header for parameters
994de6d36aPer Östlund- Fixed compilation.
f1861b7e36Per ÖstlundSCodeInst fixes: - Improved instantiation/typing of equations. - Handle deleted components in connections. - Improved propagation of prefixes, now also propagates class prefixes.
8526c9481dMartin Sjölund- Only enable python interface if we use omniorb
ae54abfe13Federico BergeroMinor modifications to code
0565490998Jens Frenkel- fix testsuite
2f5cb926b2Jens Frenkel- bufix bootstrapp compilation
bfef39edbdFederico BergeroGenerating when handlers
33a4aa37bfWilli Braun - removed some tabs
158fe0827dWilli Braun#1728 - added proper message to findDiscreteEquation - added some failure cases
2bb07f700ePer Östlund- Fixed bootstrapping, and improved an odd error message.
c9ecce66d8Per Östlund- Replaced tabs and converted files to UTF-8.
fcd72635fbPer Östlund- Added Util.arrayFold. - Implemented a phase in SCodeInst which marks all structural parameters, to allow proper constant evaluation.
78c1eb6fdbPer Östlund- Replaced even more tabs.
f341394572Mahder Alemseged Gebremedhin- Moved the OpenCL runtime to SimulationRuntime
22be9a1aeePer Östlund- Replaced tabs.
0c2bb2ff05Niklas WorschechFix for Idas Solver. Initialization of idas memory,initialization zero functions, added RTol and ATol to solver settings.
fdecfb39c0Federico BergeroChanges to the QSS target. Replacing variables and discontinuities
19513ae285Martin Sjölund- Apply the iconv if using non-UTF8 target
bc30c30f25Mahder Alemseged Gebremedhin- Adding support to enable XML export of Optimization Modelica models (Optimica Extensions).
92d539dd3fAdeel Asghar- Removed ptplot.jar and ptplot_license.txt - some translations.
055ec874daAdeel Asghar- Removed plot2, plotparametric2 and the script files associated with it.
21c4acdb87Leonardo Laguna- Fixed small bug in setPos function. - Changed the scope of map1r to public
45597ea68aLennart Ochel#1721 fix for initial()-operator
a2df03be81Martin Sjölund- Added testcase for checking a recursion limit of any class (maximum depth=100)
ac26004f7aMartin Sjölund- Avoid segfault on UTF-8 error
26432f3d9dMartin Sjölund#1723 - Automatically load dependencies of a model (uses annotation) upon instantiation
fed810e182Per Östlund- Save modifiers that only makes a component final in Absyn2SCode. - Handle modifiers that does nothing in SCodeMod.
f1d436a163Martin Sjölund- Add PARTEVALFUNCTION to the list of called functions in a function
077e748440Adeel Asghar- Fix hudson.
4529c6ea0eMartin Sjölund- Check Absyn->SCode before accepting a string or file as valid abstract syntax
5e1236c1e4Adeel Asghar- Fixed isReplaceAble API. - Added testcases for some APIs. - Added French & Romanian to language dropdown. - Moved the translations file to OMEdit/OMEditGUI/Resources/nls/.
b54e2b3b4aMartin Sjölund- Don't return loadFile("package.mo") success on error
a7e47bab63Adeel Asghar- Fixed getNthImport.
09edc2e4e5Per Östlund- Fixed better messages for modifier errors in SCodeInst. - Added better control over constant evaluation in Typing.
50badcf741Martin Sjölund- Revert r11711 as it is plain wrong
d080b848e0Adeel Asghar- Changed the utf-8 error to warning. - getErrorString() only returns messages that have severity = ErrorLevel_error
3193c2df42Martin Sjölund- Fix for the type system when calling getGlobalRoot with a non-boxed lhs
fd71517ef4Jens Frenkel- replace some matchs again inputs with wildcard
bcb9f9b678Jens 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
ce6c2eb85dMartin Sjölund- Move the printing of some config flags around - Added +help=flagName option
faa326d47cJens Frenkel- add flag "matchingAlgorithm" to select the MatchingAlgorithm
c7d5419105Martin Sjölund- OMPython docdir removed
80d1c3d5a4Jens Frenkel- bugfix removeSimplequation alias der - bugfix alias a=der(var)
3d29be7d75Adrian Pop- fix equalityConstraint function return type.
1fafe8a465Adeel Asghar- PTII environment variable not required anymore. - Changed PTII to OMPTII. - Removed OMPython-UserManual. OMPython documentation is moved to OpenModelica usersguide.
ab4cf0b0adJens Frenkel- got rid of bootstrapped warning
df6fd9f43bMartin Sjölund- Install OMPython documentation
2e5c84c3b5Martin Sjölund- Fix testsuite
554a5b3202Martin Sjölund- Some fixes to dumping as corba string
fedb0ed60fPer Östlund- Changed simplification of scalar-array operations with an empty array to return an empty array, instead of an array with one element.
cf18e072e9Per Östlund- Fixed correct types on array-scalar and scalar-array operations. - Updated test cases due to changed operation order.
afb5d60955Martin Sjölund- Added API call setInitXmlStartValue
88e8c362efMartin Sjölund- Make checkSettings() less verbose
fa893b27e6Martin Sjölund- Set OPENMODELICAHOME
af2f6103a5Martin Sjölund- Fixed the Java DefinitionsCreator
2c46dcc01bAdrian Pop- added isShortDefinition API and tests in testsuite/interactive/interactive_api_calls.mos for it.
5c616980cfAdrian Pop- fixed "setParameterValue" API in Interactive.mo to update the program. - added tests for this functionality in testsuite/interactive/interactive_api_param.mos
89af2bc976Adrian 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.
37f28bed4bMartin Sjölund- Some fixes for Java interface
9ee95e0599Martin Sjölund- Added scanReal ceval
754b7f9028Martin Sjölund- Handle Modelica.Utilities.Streams.* external functions without generating so-files
e88393991ePer Ö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.
eebdf96db2Per Östlund- Fix RML compilation...
5d9e5f5c2fPer Östlund- Fixed bootstrapped compilation.
405a23f236Martin Sjölund- Fixes for getAstAsCorbaString
de0e2daa84Federico BergeroChanges in the QSS version.
091ea51124Martin 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)
c9c91e3891Martin Sjölund- Make omniidl command more suitable for parallel jobs
a654e8cf95Martin Sjölund- Fix make install
ef74725f16Martin Sjölund- Install OMEdit nls files
1c211bbb6aAdeel Asghar- Release notes.
d27a356150Willi 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
42954a3f12Martin Sjölund- Expected output, etc
44dd6b9692Martin Sjölund- Fixed some of the testcases (tries to simulate packages, instantiate functions)
dc0a8fab17Martin Sjölund- Add a check for uses-annotations being fulfilled before starting inst/translate model
3711751e44Mahder Alemseged Gebremedhin- Compact free_memory. Check parallel variable type in Template. Generate one more file for ParModelica.
4263885cf2Per Östlund- Better error message for non-connectors in connections.
cdc61a948fMahder Alemseged Gebremedhin- Proper naming.
91fa00685eMartin Sjölund- More detailed parser error
d0a3630b44Mahder Alemseged Gebremedhin+ Added the OpenCL runtime.
823d9287edWilli Braun- fixed coding style
6b95e134b0Willi Braun - changed compilation flag for fmu-export from -O2 to -O - added String support for fmu-import - added MultiBody.DoublePendelum test
f1ede99230Mahder Alemseged GebremedhinFix error in template and remove Tab.
e88c8c845cMahder Alemseged Gebremedhin+ Handling of parallel variables in the Back-end. Mostly fall-through. + Limited handling of parallel variables in Code generation.
8cb443b587Per Östlund- Remove tab.
07e5ba7b49Willi Braun - fixed some fmi-export memory leaks
7f531f226aNiklas WorschechFix for assert expressions in cpp template
8045440be7Jens Frenkel- fix tests
ba32d939cfWilli Braun -fixed CODING_STYLE
4e31a8a44eWilli Braun - fixed FMI-Export Alias variables
e0432ceda5Jens Frenkel- add comments to flags, add flags - bugfix removesimpleequationspast - update teststuite msl31/simulate - add experiment annotation for M.M.Rotational.ElasticBearing
466b80da60Adeel Asghar- More documentation. - New chapter for OMPython in OpenModelicaUsersGuide.
539c9e65f7Jens Frenkel- add function dumpEqnsSolved, to dump the equations in the order of calculate them
c5f65169ecJens Frenkel- Bugfix codegeneration for tearing system, use index from original system
65242fc323Willi Braun - removed some tabs
daa0078787Willi Braun- aded fixes and tests for fmu-export and fmu-import
1a77c3ae35Per Östlund- Initial support for equations in SCodeInst.
fd1e6c09feMartin 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
4f93a145aaMartin Sjölund- Parser now supports the BOM
6e22793e8fMartin 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)
7fa8efee4dAdrian 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/*
0824b1146bMartin Sjölund- Use system isnan
7a57eee00aAdrian Pop- do NOT define isnan in a header! it will conflict with other C headers.
2a77293366Jens 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
dee3a74089Martin Sjölund- PythonInterface make clean
c6c7d60bfcAdeel 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.
38855c87f6Martin 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
b3bc4aa16cMartin Sjölund- Add flag so we can --disable-python-interface
6683e28088Adrian Pop- fix the UTF-8 encoding.
98b6610e18Adrian 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
16097f1405Adeel Asghar- Support for simulation flags.
a577b75d79Martin Sjölund- Succeed on success
41368a7e65Martin Sjölund- Use suffix .in for in-files
eb24dfa956Martin Sjölund- Conversion to UTF-8
c13c989b33Martin Sjölund- Verify that string literals are encoded in UTF-8
42f2f7e5a3Per Östlund- Got rid of tabs.
0d38da2eb4Martin Sjölund- Converted the older libraries to UTF-8
8633dd7eddMartin Sjölund- Fixed the encoding of the remaining files (added .tpl, fixed some illegal chars in interactive)
00aca314e0Martin Sjölund- Fix encoding in CPP and interactive
b2e92d22d9Martin Sjölund- Fix C-runtime encoding (UTF-8)
28a8d0f4ccMartin Sjölund- Converted some files to UTF-8
49db26a928Martin Sjölund- Added make target utf8-error
d34760991fWilli Braun - fixed Makefile for FMI
0f1d979bb8Willi Braun- fixed FMU-Export - fixed FMI-Import - moved FMI-Import to SimulationRuntime
64677d456dAdrian Pop- report an user understandable error message when trying to instantiate or check an model that does not exists.
544986d32dMartin Sjölund- Fix typo
d1def1447eMartin Sjölund- Remove tab
32253b8f31Mahder Alemseged Gebremedhin- Coding style.
3c58c05b0aMahder Alemseged Gebremedhin+ Added filing of arrays from range expressions. - Avoid previous unnecessary array copies.
2f9db908c0Martin Sjölund- Moving python interface
8d132413a5Martin Sjölund- Added simulate(..., simflags="flags") option. It will be passed to the simulation executable in the future
ad42b2901cAdeel Asghar- Auto generate the stub files for clients. - Added/Updated README.txt files for all clients.
5f273efe67Per Östlund- Added check for connect equation in initial equation sections.
49a099eb06Martin Sjölund- Better SimCodeDump for when-equations
f514b5aee4Martin Sjölund- Fix for linear systems with the same index (why add these in the first place?)
a4da03bd7ePer Östlund- Got rid of more compiler warnings.
b671be5035Martin 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
51a70884feMartin Sjölund- Simplify matrix+asub {{...},...,{...}}[1,2] => ...
91baa06d9bPer Östlund- Get rid of some compilation warnings in interactive.
6ebabb3ec9Martin Sjölund- Fix segfault
6fdb6d64d9Per Östlund- Added checks for valid class types of components in SCodeInst.
c1a7519399Martin Sjölund- Some fixes for the gnuplot connection and log-scale of zero measurements
ac140bdfbdMartin Sjölund- Adding some more function calls to the profiling
fc93863f03Martin Sjölund- Some fixes for gcc 4.7
5cb466fcaaPer Östlund- More improvements to cref prefixing in SCodeInst.
7f88639f1dAdeel Asghar- Generate code with +d=gendebugsymbols flag.
920611fdc7Per Östlund- Fix compilation.
ae31ec6b41Per Östlund- Preserve subscripts when prefixing crefs during instantiation.
b701329483Per Östlund- Fixed broken compilation due to RML stupidity.
09eec6356fPer Östlund- Implemented better handling of component names in SCodeInst.
d2a27b490aMahder 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.
09e244b364Jens Frenkel- remove taps
2a829f1a5dJens Frenkel- fix compilation
aca6b7ab09Jens 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
10b0e8ff5aWilli Braun - inverted +v flag. By default are all arrays crefs vectorized. One can set a still a Limit to aviod that.
47ea9e78dfAdeel AsgharFixed python API Interface for Linux.
6ed8d93e39Adeel Asghar- Fixed typo.
b5a78a95b0Adeel Asghar- Generate python stubs in stubs folder. - Added the setup.py script to install python API.
60cef440d1Adeel Asghar- Fixed hudson build.
e427f8f430Adeel Asghar- Changed Parser to OMParser.
c52b87c41cMartin Sjölund- Allow omniidl-python fail on OSX
1102424057Martin Sjölund- Fix to make sure python interface is built - Check if using omniidl, else don't create it
c34408d616Martin Sjölund- Better copying of ompython
5d7f83e6d9Martin 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
72982a62e4Martin Sjölund- Renamed error.h to omc_error.h
6f0de69d5eAdeel Asghar- Fixed build.
eac4868675Adeel Asghar- Added +d=gendebugsymbols flag to generate code with debug symbols for standard Modelica.
e7a9b1405aPavol PrivitzerSmall C# template update
8b6b2b2147Adeel Asghar- Updating OMDEV is required. - Added ompython to Compiler/scripts (From Anand).
6b764044a4Adrian Pop- fix a case of "how the beep did it worked until now"? - EQ_NORETCALL should be returned instead of ALG_NORETCALL
cacbb92960Jens Frenkel- bugfix for complex equations in strong connected components - add test for complex equation in strong connected component
e3481167c3Martin Sjölund- Create the result.xml in the correct directory
84f65b6021Per Östlund- Refactoring of SCodeInst.
66e74ab3e0Henning Kiel- remove stray "*/" - change calloc to malloc for immediately initialized memory
99c6b7505dHenning Kiel- remove typo
f6fcb08b49Martin Sjölund- Fix columns
7abb904ac8Martin Sjölund#1408 - Removed support for min/max(string) as only enum,bool,int,real are allowed
4006b9ddafAdeel Asghar- Fix the tabs :)
225778b2cbAdeel Asghar- Fixed the importFMU. - Removed the moGenerator::getDecompPath(), omc should sent the right output directory to fmigenerator.
bd1da5c336Martin Sjölund- Fix coding style
07d4c53cdcMartin Sjölund- Increase ulimit
5750dc42d3Martin Sjölund- Changed order of cells
001cbb08a5Per Östlund- Fix application of redeclares in SCodeInst.instExtends.
367e8e7729Martin Sjölund- Try to run the simulation in BuildModelRecursive.mos
a6da3c2467Martin Sjölund- Terminate the find regex so we do not find .h0 files on some OSes
fe108e6b11Martin Sjölund- Remove some tabs from sources
dbd429c42aMartin Sjölund- Improved tab detection
b5a0193a71Martin Sjölund- Added make target tab-error
72a80eabf1Martin Sjölund- BuildModelRecursive.mos now sets a ulimit on time
b11e136c25Per Östlund- Removed invalid 'external' prefix from external functions in SCodeDump.
86b309d224Jens 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
42e2194eaaJens Frenkel- bugfix derivative of ASUB
d1b07d89ffMartin Sjölund- Make sum(scalar) an error
1db0c88812Jens Frenkel- fix for Bug [# 1596] Simple equation not found - fix name problem for mosfiles/BouncingBall2
84994474f1Jens Frenkel- remove unused code
0bdd5fe789Jens Frenkel- fix test
20e9f4a2e5Jens Frenkel- break loop in Derive by providing information about inline success
1facf25e3eJens Frenkel- ~10% speedup for removeSimpleEquation
220370b51cMartin Sjölund- Removed support for enum and Integer being compatible types - Testsuite still runs - But probably still problems in MSL31
e04e6ccac5Martin 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
581b865d24Martin Sjölund- Moved connect(a,a) warning to Inst instead of SCode
a0e3910406Jens Frenkel- report Error Message in case of Discrete Equation Systems
9361766054Jens Frenkel- remove rule for min/max (enumeration, int)
145c6ffd50Adeel Asghar- Changed UTF8 to UTF-8.
7399c0c01dPer Östlund- Improved handling of bindings and deduction of array dimensions in SCodeInst. - Added List.lastN and List.stripN.
f440455aa4Johanna Schneider- bugfix tearing
e01ca0430dPer Östlund- Implemented class extends support in SCodeInst.
0be4f0feaaMartin Sjölund#1710 - Check filename for invalid characters
92118aa886Jens Frenkel- simplify min/max(enumeration) - set min max from enumeration for variables (maybe should be done in frontend)
51d48dfac7Adrian Pop- fix the CodegenC.tpl for T_ARRAY (be more specific). - expected output in testsuite/parser/ParseFullModelica3.1.mos
76c40398e1Adrian Pop- MAKE CLEAN is highly recommended!
f0ec206707Jens Frenkel- lower enumerations to discrete vars like integers
8d091bca6eJens Frenkel- Var is either continous or discrete
44cf4ed1c6Adrian Pop- division.h: switch __FILE__ and __LINE__ in DIVISION macro as they are expected by division_error function.
3588d1c905Adrian 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.
a1420dff55Jens Frenkel- fix test
34e306bda1Jens Frenkel- fix compilation
348541cc7cJens Frenkel- add Incidencematrix type SOLVABLE - add compleqs to traverseBackendDAE and checkBackendDAE functions - use traverseBackendDAE in PartFn -> easier maintainance - more information if createOdeSystem fails
fdedaa2f48Lennart Ochel- fix for mapToDymolaVars
666585e4adAdrian Pop- OpenTurns updates.
3ea6b29627Adrian Pop- consider also partially evaluated functions and also do union as we seem to get duplicates.
af5e49a0efAdrian Pop- also consider external functions! duh :) - expected output for some tests.
13085f10d4Jens 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
810dea936fLennart Ochel- import from matfile supports now variables with dymola names
64c3e33962Jens Frenkel- simplify size operator helps media
ffdf6c750dPer Östlund- Removed some deprecated code from SCodeInst.
79b0f32ea6Jens Frenkel- break loop in Derive
c9c77b7fcdLennart Ochel- stop the simulation, if an error occurs
285bca3c20Per Östlund- Partially implemented error message for cyclic dependencies in SCodeInst.
12cc2f8d71Jens Frenkel- fix for bug [# 1693] , use type of expression for mul when calculate the derivative of DIV_ARRAY_SCALAR
afbf0902bcLennart Ochel- minor fix
2f1ad8bb3fLennart Ochel- add two optimization methods from OM1.8.0 (simplex and newuoa)
5c4f06cc21Per Östlund* SCodeInst fixes: - Instantiate cref subscripts. - Correct instantiation of function names.
e319c11e65Martin Sjölund- Parse comments in correct order
0eb0a969e7Jens Frenkel- bugfix blt, do not check continues vars in relations - update path in interaktive readme
298dabc55cJens Frenkel- if derivative of function does not exist force inline to get media examp working
5e46962e9dJens 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
0486c5507eJens Frenkel- add missing code for functions return records in optimisation modules
b053c77368Jens Frenkel- do not force inline for complex equations helps TestMedia
a0dac2654fAdrian Pop- changes in backend considered in XMLDump.mo too - dependency seems to be broken, i think we also need to consider protected imports.
9b8585efa7Jens Frenkel- implement support for functions return records down to code generation, code generation works for record = f(); f() = record
bd395b5989Adeel Asghar- Added OMOptimLib.pro
7c07c88e34Adeel 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.
f0cdf47dcfMartin Sjölund#1707 - Add support for functions returning arrays of strings
8fe51640e5Per Östlund- Fix correct propagation level for modifications in extends in SCodeInst.
061d24bfcbAdeel Asghar- Fixed isReplaceable API, check separately for public and protected elements. Added case for the extended classes as well.
3f54d84aeaMahder 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.
9468fdc14bAdrian Pop- update OpenModelicaBootstrappingHeader.h broken some commits back.
f4f0e99db6Adeel Asghar--new-window flag for visualize API.
ef257dcbc2Martin 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)
309dc85f5cMartin Sjölund- Fixes illegal xml generation when using measureTime=true
b6b1210c92Martin Sjölund- Fix for external noretcall functions
65d9d45787Lennart Ochel- fix init-file for constant expressions - fix initialization by mat-file
25fb5ebe33Per Östlund- Fix MainTest.
1dc0ec2c22Per Ö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.
5a7544b207Jens Frenkel- dump Statistic about the system with +d=backenddaeinfo
e894cf84c9Adrian Pop- expected output. - got rid of print in Inline.mo
807dd761f4Adrian 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 :)
480165cb83Adrian Pop- do not do equiv type checking when MetaModelica as they might be not! - fix some of the expected output in some models.
10dac15038Jens Frenkel- remove forgotten dump call
468ee7cb31Jens Frenkel- check if extension of records was succesfull - remove forgotten dump call
4110066f05Jens Frenkel- compare types before inline expression
0461f31edcKaie KubjasFixed a bug in CodegenCpp.tpl
bbcd202458Adeel Asghar- Fix build.
3fbfd1dcd2Adeel 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.
e8bed5e4d8Per Östlund- Implemented better handling of extending basic and array types in SCodeInst.
023983e802Martin Sjölund- Don't remove single quotes
307f047b3bMahder 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.
c0817019f9Martin SjölundPartial fix for #1702 (enum == Integer is not an allowed relation) - This was also updated in MSL
47166c1c22Per Östlund- Implemented prefix propagation in SCodeInst.
66179bbb6dNiklas WorschechModified interface method giveZeroFunc in cpp runtime, eps parameter is not needed. Fix in CMake file of Modelica System
bcc2d830e6Martin Sjölund- Added target bom-error to test for BOM in files
fff231e846Kaie KubjasFix typo in AlgloopsolverFactory class
6fc393323cMartin Sjölund- OMNotebook now depends on OMPlot
2b1f1721edAdrian Pop- remove forgotten unused SimCodeC.tpl.
dced953891Martin Sjölund- Updated auto-generated file
e0455397e4Martin 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
0cbef56765Niklas WorschechModified event iteration in cpp runtime. Using checkConditions instead of setZeroState from solver
4c24901a2eNiklas Worschechfix for mixed system iteration in cpp runtime fix in CVode for calculation of event state
83b4203708Per ÖstlundFix for bug #1700: - Fixed type of sum.
0338eebfc3Lennart Ochel- update for importStartValues
c53eb8477fJens Frenkel- copy table to avoid loss of data by memorypool
e7233912a4Per Östlund- Fix type dimensions in SCodeInst.
a963de49e3Martin 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
8e46ab3165Martin Sjölund- Added rule Real(i1:i2) => Real(i1):Real(i2)
62a9eca19aMartin 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)
1712a6b055Adrian Pop- gee, shouldn't we return what we compute??!!
fc18a625ecAdeel Asghar- some changes in the Plot API family to support OMNotebook embedded plots.
c05306dafePer Östlund- Implemented expansion of bindings in SCodeExpand.
5656a89bfeMartin Sjölund- Simplify ew array division/multiplication ({1,2}./{2,2}={0.5,1})
2ea4635fa5Kaie Kubjasadded 2 flags and made some small changes for reduction methods
1625165c2cPer Ö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.
d3b5a74cf9Martin Sjölund- Gave MODELICA_TERMINATE a complete type (gcc ignores)
bdb511f389Niklas Worschechchanged prefix of variable names in cpp runtime
920b75ca00Martin Sjölund- Fixed the fix-bom command (removed some BOM)
6dca03acd7Martin Sjölund- Added fix-bom target
3c2a60ba74Niklas WorschechAdded get and set method for conditions vector in IEvent interface
dca4dc4369Martin Sjölund- Re-enabled generation of mosh/src/Makefile
f3d5af857bMartin Sjölund- Added LD_LAPACK to configure.in
6ca9d13e40Niklas Worschechmodified cpp runtime CMake file for system initialization
715ea486faAdrian Pop- got rid of references to c_runtime in configure.in.
f9041571fdAdrian 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.
c5bda889dbNiklas Worschechchanged implementation of condition variables for zero crossing variables in cpp runtime
57e3faca50Adrian Pop- copied qss files from c_runtime
b4830e5016Mahder 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.
999ea70042Lennart Ochel- avoid initialization and use start values instead: simulation-flag "-iim none" - avoid initialization and use existing results instead (matfile): simulation-flag "-iif -iit
25a986ff8cAdrian Pop- fix typo in CodegenC.tpl - use CodegenC instead of old SimCodeC in SimCodeDump.tpl - fix some of the deps.
9104bf817eMartin Sjölund- More logical sorting of paths
ad7d0f90c7Per Ö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.
954bf435ecMahder 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.
5af302a054Adrian Pop- empty commit to test that OpenModelica subversion repository post-commit hook trigger Hudson builds ONLY when we commit in trunk and nowhere else.
50395e7211Adrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
70cf07cbf0Adrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
7f4c22e55eAdrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
dfedc49a65Adrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
7a7f496edfAdrian Pop- empty commit to test that Hudson trigger builds ONLY when we commit in trunk and nowhere else.
bb1b66fdf9Dietmar WinklerNo need to replace %20 in FindFiles.sh since this was taken care of somewhere else.
19ea7b7c47Per Östlund- Implemented handling of conditional component in SCodeInst.
9006250f31Martin Sjölund- Some more toHtml()
eb6f743f4aMartin Sjölund- Sort output
74d6c60b4eMartin Sjölund- Filename-escape
e3992743f0Niklas WorschechAdded ISystemInitialization interface to cpp runtime
399b8824c6Adrian Pop- empty commit to test Hudson
eebc1f156fAdrian Pop- empty commit to test Hudson
b68b1fbe22Per Östlund- Initial support for enumerations in SCodeInst.
8ef0418d99Adrian Pop- empty commit to test Hudson
412bdeafb9Adrian Pop- empty commit to test Hudson
6dcab2eb0fMartin Sjölund- Fix some illegal generated html - Add
 tags to LAPACK again
a152ea8acdMartin Sjölund- FIlter out EngineV6
21b678a6e3Dietmar WinklerMake Tidy.py a little bit more talkative and remove usless lines.
94b3371f6aAdrian Pop- do not depend mosh on omc!
302790fb24Martin Sjölund- Only run soup if tidy says the file is ok
3c93052a59Adrian Pop- added testPar target.
47332a776fDietmar WinklerSynchronised with the changes done for the MSL release script.
31537d8017Per Östlund- Improved modification handling in SCodeInst.
fe1db88287Martin Sjölund- Also load ModelicaTest in the mos-files
e62562ae8bMartin Sjölund- OMPlot: Build lib before exe so parallel builds succeed
c07be781a1Lennart Ochel- minor initialization fix
b3f7152375Lennart Ochel- minor initialization fixes
29256d6755Dietmar WinklerStyle sheet modifications to make the headings look nicer.
853b481db3Martin Sjölund- Partial fix for LineForceWithTwoMasses (preprocessor macros now do not fail)
28ecd8de6fMartin Sjölund- omc +t now dumps info about unary ops
9d09d76960Per Östlund- Ugly, ugly hack to keep anyString and getTypeOfAny from segfaulting on function pointers.
39f9b13ed0Martin Sjölund- Changed location of java_interface
63308b7796Mahder Alemseged Gebremedhin+ propagating parallelism for variables through SCode. Everything just falls through.
2bec83baa6Martin Sjölund- Add ModelicaTest if running MSL3.2 - Skip BaseClasses
98d51a5356Niklas Worschech-fix in cpp writeoutput template, variables has the correct order now, modified giveZeroFunc cpp template, zero functions can not be exactly zero now.
59efbbec93Martin Sjölund- Symlink the correct path
e82116a264Lennart Ochel- fixed detectImplicitDiscreteAlgsStatemens for tuples
3b6880c5b1Martin Sjölund- Wrong order in header
a12c3afd93Martin Sjölund- Build all models
dac7bc3d4bMartin Sjölund- Avoid problems if omc crashes
e1689be8aeHenning Kielfix array access out of bounds static variable buf does not allow reentrance here (would be better put on stack = not static)
2bdf3ac4aaNiklas WorschechAdded fix to KinSol solver for linear systems
a1bba53b27Niklas WorschechAdded improvement for event handling to CVode solver in cpp runtime
e36aff93caMartin Sjölund- Print user-friendly times (not 7.83e3 sec...)
d9d3bb3a86Willi Braun - update the algorithms for coloring and sparse pattern
36886ee3eeMartin Sjölund- Add total time taken to BuildModelRecursive.mos
0c3dc3912eMartin Sjölund- Fix MainTest.mos
be69cddaf9Martin Sjölund- Filter out some more models that are auxilliary
7166459925Martin Sjölund- Updated BuildModelRecursive.mos - Outputs a pretty colour-coded html table - Added some more realtime clock functionality to the API
6440acdc92Martin Sjölund- Added ceval support for String(real,significantDigits=xxx)
796ae91fddMartin Sjölund- Removed debug output
72b69e88a4Martin Sjölund- Forgotten file in last commit
535053df6bMartin 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
bf8cf55d69Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
d1106dbbd7Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
dd6b85881fAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
a45356b3ccAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
bf0d92a968Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
8a53c25f69Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
1cc48694f4Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
88b095f9acAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
9f6cabbdb0Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
287ffe38f0Adrian Pop- test building
7a3e5684edAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
8e007b8cb2Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
21322e3d65Adrian Pop- small update to test build on http://test.openmodelica.org/hudson
48089d136aAdrian Pop- do not clean java_inteface as it no longer exits!
30ce1bd5dcAdrian Pop- small update to test build on http://test.openmodelica.org/hudson
ce5510eb0aAdrian Pop- rebuild SimCodeC.tpl in the susan makefile. - update SimCodeC.mo
d53817d2baAdeel Asghar- fixed a typo.
1c7cfc282fWilli 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
69aa669235Martin Sjölund- Log what files we have started writing to so we can see the progress
b57a908aefMartin 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
7614b72f1bMartin Sjölund- Added scriptable API functions: isPartial isModel regularFileExists - Added script BuildModelRecursive.mos to systematically try to build every example in MSL
297cb69f52Martin Sjölund- Die with fire
32fcf0db80Per Östlund- Implemented deducing of array dimensions from bindings in SCodeInst.
cec3f45f6aAdeel 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.
dde7ac139aMartin Sjölund#1684 - Generate code for assignment to record
35b0ff2a67Martin Sjölund- Removed the static keywords from the ModelicaExternalC C-files instead of using preprocessor macros since that messes with OSX
fdb858363cMartin 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)
af9f206ea2Per Östlund- Fixed error message in BackendDAEOptimize.partitionIndependentBlocksSplitBlocks for over/underdetermined equation systems. - Updated dependency/Modelica.Mechanics.MultiBody test.
7e7a4fbfd0Martin Sjölund- OSX cp doesn't have -u
e015a73efaPer Östlund- A lot of changes to SCodeInst, mostly related to typing of components. - Hijacked SCodeMod and moved modifier handling code from SCodeInst there.
ebce39fcd2Per Ö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.
0fe4c1b9e3Adeel Asghar- We should close the simulation result file after reading the results e.g variables, val, dataset etc....
8b99f18359Per Östlund- Applied patch from forum user janssen to close MathML if-expressions correctly in XMLDump.
c608e2ca59Martin Sjölund#1686 - Added a parse error for connect found in an element list
68a85db1b5Per Östlund- Changed the unbalanced connector error to be a warning.
09b24f96c1Niklas WorschechAdded Kinsol solver source to cpp runtime
a13f06f051Henning Kiel- fixed function protottypes
7bc5450932Adeel Asghar- Some minor fixes.
7b8adf8b9eAdeel Asghar- Added some new APIs to get equation and algorithm items.
7bb82a7109Adrian Pop- first draft of OpenTurns wrapper for OpenModelica generated code with uncertainties
98b818e850Henning Kiel- move if condition out of for loop
9e1537d81fHenning Kiel- substitute goto statement by do-loop
02614d27ceAdrian Pop- copy replace-startValue* with the other scripts.
434824ddafMartin Sjölund- Inline homotopy since it's not yet supported fully
bbaa32eefaMartin Sjölund- Includes
d83e261621Martin Sjölund- Fix Makefile.in
c8c4285805Martin Sjölund- Configure error
0d582c6017Adeel AsgharFixed the makefiles for simulationruntime
f8832fa351Martin Sjölund- Fix compilation errors
8a285a344bMartin Sjölund- Some descriptions of optimization modules
41a8852239Adrian Pop- one for Windows too.
d9a7d55d57Adrian Pop- homogeneous line endings
f6b4e160c3Adrian Pop- more Linux stuff
e51468b7afAdrian Pop- support any type of value
a30239eac0Adrian Pop- not .exe for Linux sake :)
26b770d302Martin Sjölund- Fix for bootstrapping
4c66abd9a4Adrian Pop- small comment update
1e68f82806Adrian Pop- a XSL script and a driver to change a start value inside a Model_init.xml
122db4999dMartin Sjölund- Some documentation updates
c10da1f170Martin Sjölund- Simplify CAST(-arr) = -{CAST(exp),...}
b8b9091701Martin Sjölund- Fixed codegen for boxed non-uniontype records containing function pointers
41817020e3Martin Sjölund- Updated GenerateDoc
1245a56268Jens Frenkelevents.h: bugfix function definition generational.c: avoid warning (vs)
0239c8e476Jens Frenkel- bugfix remove simple equations for uncertainty computations, nobody knows if i or j is the variable or the derivative
849c04a826Willi Braun- removed OMC_SEED_HACK - improved evaluation of jacobians
4c9afd1ddaMartin Sjölund- Fixed compilation of MainTest.mos, but some warnings remain
7d5a2bf35aMartin Sjölund- Fixed some uncertainty compilation errors
dd5d12c5b6Niklas Worschech- fix in cpp template for non linear systems, replacement of state variables
c32f65583fLeonardo Laguna- Implemented support for uncertainty computations
0ddc057728Martin Sjölund- Better error message for equationToExp failed
1905f0a383Niklas WorschechFix in cpp template in mixed systems discrete vars iteration
80577716c4Lennart Ochel- fix dump-messages - fix scaling-coefficients
18068ccc70Niklas WorschechExtended cpp runtime and cpp template for mixed systems
72e3c81abbPer Östlund- Handle time in SCodeDependency.
208e97dcf6Per Östlund- Improved notification on language standard changes.
c7de83f0cdJens Frenkel- update CMakefiles
10df2537d5Martin Sjölund- Renamed trunk to 1.8.1
cc4f7d0d8fAdeel 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.
5463c7de46Martin Sjölund- Flush some more
a9e94a13daAdrian Pop- add a prototype for void *mmc_alloc_bytes(unsigned nbytes);
9392b5ac29Jens Frenkel- change AC_PREREQ([2.65]) to AC_PREREQ([2.63]) to support also CentOS
9a78899864Adrian 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).
de4f237b84Mahder 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
03e55d5635Martin Sjölund- More robust GenerateDoc.mos
941864be6dLennart Ochel- removed redundant equations for initialization - removed unused code - renamed SIMCODE attribute initialEquations to startValueEquations (in order to avoid confusion)
7f04f5fc3aKaie KubjasIn SimCodeCpp.tpl fixed a bug with arrays and extended functions for doing reduction.
9ea9370146Mahder Alemseged Gebremedhin+ Improved operator elaboration. (normal and overloaded)
6df54792ccLennart Ochel- fixed generating of initial equations - removed unneeded stuff from BackendDAEUtil.mo - renamed functions: initializeDataStruc_X_ -> setupDataStruc initializeDataStruc_X_2 -> setupDataStruc2
25030ded41Martin Sjölund- Warn about : in generated code
9379161c4eLennart Ochel- clean createInitialResiduals - fix debug outputs
3b0cc41029Adeel 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.
d70a82f010Lennart Ochel- fix under-determined initialization without initial equations - fix error output for nonlinear systems
71cfa4ffeaWilli Braun- fixed bootstapping MainTest.mos
0c6ae42a49Willi Braun - fixed compilation error for Main.mo - fixed bootstrapping MainTest.mos
42ecbb121dMartin Sjölund- Use BeautifulSoup (Python HTML library) instead of Perl html::Parse since that library destroys too much formatting
d36c58395eWilli Braun- fixed FMU testsuite
b000ddba6cWilli Braun - added graph coloring algorithms to utilize the sparse pattern for a faster evaluation of the analytical jacobians - usage by solver method="dassljac"
41894316d5Adeel Asghar- A minor fix.
49946676fbAdeel Asghar- set named annotation values.
b187049893Martin Sjölund- modelicaLine with extra #
afacb1200dMartin Sjölund- Switch back to as_HTML as as_XML breaks some HTML entities
9181dd0025Martin Sjölund- Use as_XML instead of as_HTML as it doesn't seem to move stuff around as much
cd403aca8eMartin Sjölund- Fixed parser errors
ba99769af3Martin Sjölund- Add transitional doctype
e1191e9002Martin Sjölund- Some more documentation
e1e3e3381fLennart Ochel- fix for under-determined initialization problems - update initialization-tests
d7ac567985Mahder 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.
8dffb4fca8Martin Sjölund- setStackOverflowSignal is now inlined in bootstrapped omc
c5ed3e6372Martin Sjölund- autoconf
b5fbfe71efMahder 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.
f07bc30461Mahder 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.
539bbe69f1Per Ö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.
25bfcc6a8aMartin Sjölund- Some header dependencies
41a2c53e0aMartin Sjölund- Documentation fix
497478d5ddJens Frenkel- implement smoothness=Smoothness.ContinuousDerivative for CombiTable2D using Akima interpolation
e05fb1a19dJens Frenkel-Update CMake Files
b7cccec958Lennart Ochelrenamed functions: - bound_parameter -> updateBoundParameters - initial_function -> updateBoundStartValues
9f113c7c96Jens 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
70fe4f8d3fAdrian Pop- ö changes
92a2699af0Martin Sjölund- Use liblpsolve55_pic.a when using static linkage
43056701a8Martin Sjölund- Don't link every file against ModelicaExternalC; the modeller is supposed to add this dependency
c42a1f288fMartin Sjölund- EOL style on templates
9d62fe282eAdrian Pop- revive the ö in LinkÖping - remove the Windows.h include.
6d34cda4f7Martin Sjölund- Don't send 0 memory states when using dynamic number of OMP threads
b1e6a82a95Martin Sjölund- Tail-recursive pop_message
56a2aa9030Martin Sjölund- Set svn-eol-style on a few files
d16b2cbfa9Martin Sjölund- Make clean now cleans up a bit more of the mess
29c14adef4Per Östlund- Implemented handling of attributes of builtin types to SCodeFlatten.
fcd8489c5aMartin Sjölund- Remove file before ar to be sure nothing remains
0112e0d693Martin Sjölund- Also clean a-files
30a250a64eMartin Sjölund- make clean now cleans all files in the simulation runtime
8ad59d32ccMartin Sjölund- Do static inline
a0fc944d6dMahder Alemseged Gebremedhin+ testsuite fixes for parallel extensions. + Added parallelism attribute to all variables.
61607e3c65Lennart Ochel- removed temporary prefix _X_ from DATA-structure
0f7ced876aWilli Braun - added determination of sparse pattern
1b48768db1Martin Sjölund- Removed configure script as all systems have access to autoconf
1c5e33f769Martin Sjölund- Fix for OSX compilation (Error.h exists in multiple places)
4804f625b1Mahder Alemseged GebremedhinAdded parallelism attribute to all variables.
c4f26c7f86Martin Sjölund- Link ModelicaExternalC with dynamically loaded functions
32c65ac0e2Martin Sjölund- Push to the memory pool when using dynamic function loading
2ed1115191Martin Sjölund- Clean make now succeeds again
8bb948d30bWilli Braun - switch function generation also to new simulation runtime - linking Compiler/runtime to new sim runtime.
9ff6a55766Per Östlund- Redesigned handling of redeclares in SCodeFlatten so that redeclares are replaced in the correct order.
deccb2df57Martin Sjölund- Include builtins
70fbe866e9Martin Sjölund- Added check for non-array iterators in for-loops - Added codegen for pre(matrix[sub1,sub2])
3dda2810c8Martin Sjölund- Only copy headers once
0832aaf76eMartin Sjölund- Fix MetaModelica testcases using the new runtime
1e6d786011Willi Braun - Switch to new SimulationRuntime as default SimulationRuntime. - all simulation tests work as before. - This will break interactive and qss stuff.
dd053729afAdeel Asghar- Fix compilation. - Remove bin directories from trunk as they are created automatically after qmake.
d9519270e0Adrian Pop- remove sendData.
72e361c98eMartin Sjölund- Removed OMPlotWindow as it uses the old plot commands
e420ac3526Martin Sjölund- Removed sendData from the compiler
7d03d7a9f4Martin Sjölund- Removed 3D support from OMNotebook
2f1435ad1bMartin Sjölund- Moved isPackage to the scripting enviornment - GenerateDoc now splits the index page between libraries and builtin environment
48b5d5915bMartin 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
f54383b8cdMartin Sjölund- Fix configure for without-static-readline
8424e02fe8Martin Sjölund- Added configure option --with-static-readline
9788eb1262Martin Sjölund#1674 - Fix dimensions of splice expression
37b502279eMartin Sjölund- dtoa fix for 32-bit Linux
e5bbbb1ffeJens Frenkelfix for bug Bug [# 1608] - functions with inputs (parameters and discrete) have zero derivative - Derive, BackendDAEUtil, BackendVariable - BackendDAETransform: update Debug code
45b6ecebafJens Frenkel- otpimize DAE.IF_STMS while do replace Bug [# 1503]
0a154cfa65Martin Sjölund#1673 - Reject models that contain external declarations
c094e25e00Jens Frenkel- bugfix last commit
760ad71707Jens Frenkel- fix for Bug [# 1671], use real last type
882102593dJens Frenkel- fix for Bug [# 1671], look for crefs without last subscribt
0abaa77036Martin Sjölund#1672 - Allow empty config string lists (pre/postOptModules)
eaa36f7667Willi Braun[newSimulationRuntime] - fixed bug with delay and string parameter
1862310868Lennart Ochel- cleanup
56ca4a771cLennart Ochelintroduce scaling-coefficients for initialization
9564748f70Niklas WorschechExtended cpp template for solving linear systems
73d3b28e96Lennart Ochel- erroneous commit fixed in solver/solver_main.c - avoid pitfalls in error.h
6594173206Martin Sjölund- Documentation update
1c9fb12bdbMartin Sjölund- Added debug option +d=delayBreakLoop - If the delay has a bounded lower limit, we allow it to break algebraic loops
977f2a4a80Martin Sjölund- Don't run modpar if +d=openmp is used
a80c5eca5fHenning Kielmake simple functions static inline to save the jump instructions
97a1bb2e93Henning Kielremoved obsolete file (is integrated in openmodelica.h)
f209e4dc97Lennart Ochel- activate new_cruntime again
ed7fd2d2c1Martin Sjölund- Disable new_cruntime while compilation errors are being sorted out
198b4993f1Martin Sjölund- Handle paths with dots in the (quoted) identifier
91dcf7d60eMartin Sjölund- Documentation, ReleaseNotes
81bc7ab241Willi Braun[newSimulationRuntime] - activated jacobian in DASSL again - added some memory frees to get rid of valgrind claims
0e1e27b9b3Henning Kieluse malloc instead of calloc becuase memory is immediately initialized after allocation
9c2869a4d0Henning Kielthere is no element d_type in OMDev's struct dirent put #ifdef around code section to make file compile again in OMDev
353df92fb2Per Ö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.
6da4e719caMartin Sjölund- getNamedAnnotation now works on ENUMERATION
f6bff07d53Martin Sjölund- Don't try to load txt-files as if they were packages stored as library (in fact: we ignore them)
c1f50f8c1dMartin Sjölund- Small typo
3daeb7da16Martin Sjölund- Meta-documentation
70be4aedbbMartin Sjölund- Comments should not strip valuable characters
da1b5856d7Martin Sjölund- Updated documentation
c8b77402b6Martin Sjölund- Added list API to get short class definitions only
cb882043b9Martin Sjölund- Removed old ModelicaReference as they are not needed (trunk version of ModelicaReference is safe to use as it contains no models)
67ad62a604Martin Sjölund- A function with no public elements isn't really a function; it's only used to take up space
1bc3c0d4abKaie KubjasFixed a bug in SimCodeCpp.tpl:outputIndices.
1d0871d412Martin 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
a13dd0bf9aPer Östlund- Changed Dump to print out 'constrainedby' instead of 'extends' for constraining classes.
b42d921c35Per ÖstlundFix for broken media tests in r10763: - Do not use the cache in CevalScript.evalCodeTypeName, for it is subtle and quick to anger.
4dde283fdbMartin Sjölund- pdf links now work in GenerateDoc.mos
cd7f07926dMartin Sjölund- Massive performance gain for GenerateDoc.mos
64052b38e2Martin Sjölund- Additional speed-up for GenerateDoc.mos
9c15aba0d5Martin Sjölund- Faster GenerateDoc.mos
7f7d3500a5Martin Sjölund- Moved evalutation of typenames from static to cevalscript
0f3330b7ceMartin Sjölund- Also look for pdf's, report duplicate resources
9f9faf75b2Martin Sjölund- Strip annotations when listing the interface
6af8413c0fMartin Sjölund- Don't use debug-version...
422a85c28bMartin Sjölund- Documentation generation now adds a function interface when appropriate
4477b309bcMartin Sjölund- Added option list(func,interfaceOnly=true), which only lists the public parts of a function
4ecf20eea5Jim NutaroUpdates .mo file for SimCodeAdevs
6e8a01317bJim NutaroFixed return type for sqrt in adevs backend
24321feed4Martin Sjölund- loadModel() documentation
279353712eMartin Sjölund- Compilation errors found by make clean (not found by RML dep.analysis)
88956c8db8Martin Sjölund- Some more documentation
d14ffa97cdMartin Sjölund- Some more documentation
694602a012Martin Sjölund- getNamedAnnotation now works on overloaded functions - Improved rooted() description
a2e5daecf1Adrian Pop- details on "rooted" operator
437b6a5b0aMartin Sjölund- Some documentation annotations
dde9374d94Martin Sjölund- Fix for bootstrapping
28ab0ef3fdMartin Sjölund- Also generate documentation for OpenModelica
116346e09fMartin Sjölund- Also add library versions
33fbc6fee6Martin Sjölund- GenerateDoc now generates and executes one single script for all regex
6356a78decJens Frenkel- Update CMakeFiles
09de863f17Martin Sjölund- getVersion(className) now returns the version-annotation as string
3f96430e35Martin Sjölund- Fixed copyright notice - Added some more libraries to generate documentation for
2383a51424Martin Sjölund- Interactive.buildEnvFromSymboltable now caches its result
3019510150Kaie 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
49340eb5b4Adrian Pop- fixes for Visual Studio
ec0661079aAdeel Asghar- getLocalVariables(M1) - Returns the list of local variables defined in a match exp. Returns the same output format as getComponents.
f4afedc81eMartin Sjölund- Don't mangle non-link modelica:// references
c952ca061aMartin Sjölund- Dereference symlinks
e93ad2eec6Martin Sjölund- Added basename/dirname API calls - Updated GenerateDoc example to generate an index page and copy the images to the tarball
9a72a543d8Adrian 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.
7bb0f98c99Adrian Pop'*' cannot be part of a filename in Windoze.
2cd73bbf6cAdrian Pop- msys fixes (') becomes part of the file, eh, is not *n?x.
7ee1dd7bb5Martin Sjölund- Added a simple documentation generation script I worked on at the MDM to the examples directory
b750dc5c45Lennart Ocheladd min/max/nominal attribute to ./SimulationRuntime/c/
5fd55195eePer Östlund- Implemented prefix propagation for redeclares in SCodeFlatten.
cab1614ab0Per Östlund- Added System.appendFile to bootstrapped runtime.
35c28959b3Per Östlund- Updated debug flags with descriptions from Jens.
0176633b82Martin Sjölund- Added sort=bool option to getClassNames (which sorts the paths)
0ff0d373afMartin Sjölund- Added append file API
c103c3ec26Adrian 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.
844634cad2Adeel Asghar- Added the preferredView annotation.
78ea4b7ac0Martin Sjölund- Added some more scripting functions
7db42bb34cMahder 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
f5f484f706Adeel Asghar- getImportCount(M1) and getNthImport(M1, 1).
cbc06b8db8Martin Sjölund- Ninja edit
9c1cd55ef1Martin Sjölund- Allow typenames to be retrieved from the symboltable a:=$TypeName(Modelica); list(a); // equiv. to list(Modelica)
c175010386Martin Sjölund- Fix for getDocumentationAnnotation
6e8f6e7623Martin Sjölund- Made some builtins impure
0b6fd346beLennart Ocheladd min/max attribute to *_init.xml
628f3dcc7eMahder 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
1eac5e2241Martin Sjölund- Moved getDocumentationAnnotation(...) to CevalScript
5833108786Henning KielSimulationRuntime/c/util - complete overhaul implemented some missing functions
e42a5506eeHenning Kielc_runtime: complete overhaul implemented some missing functions
5d5b704684Henning Kieloptimized for loops replaced calloc by malloc where allocated space is immediately initialized by function
b09af2ccf6Adrian Pop- check assignments to inputs in patterns. - only top level patterns in cases are allowed to be inputs (maybe we should disallow that too)
2fd29574fcAdeel 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.
f2cec718f4Martin Sjölund- Some clean-up and testing of the priority queue working for static scheduling
19e27d93caWilli Braun[newSimulationRuntime] - fix compile with senData
3e4acff2beMartin Sjölund- Ran autoconf
19bde3ddf2Willi Braun[newSimulationRuntime] - fixed compilation for windows
d72b578c4dWilli Braun[newSimulationRuntime] - solved some unneeded dependences, thefore reorganised some functions - rewritten Makefile
7cc8598760Martin Sjölund- Started using priority queue for greedy static scheduling
0711327cd7Adeel 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.
6c5d843cb7Martin Sjölund- Added a basic priority queue
ac13eb0764Per Östlund- Call Static.canonCref before prefixing the cref in InstSection.instAssignment2, to get rid of some failtrace. - Changed unbalanced connector warning to an error.
d9a3eb5fdcPer Ö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).
203000fab3Per Östlund- Handle element redeclarations in SCodeInst too.
cea9f42839Per Östlund- Fixed assignment to record in CevalFunction so that Ceval can find the binding. - Added makefile for siemens testcases.
57c22bc7eeMartin Sjölund- Some documentation
3b60260b3aMartin Sjölund- Provide loadString(..., encoding="...") option
a789be6613Per Östlund- Fixed handling of partially bound record in CevalFunction.
7812ec39edMartin Sjölund- Added routine to translate token names to string - Fixed output of ANTLR3_UNWANTED_TOKEN_EXCEPTION
3c991ba507Adrian 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.
82db98b851Adeel AsgharFix OMC compilation, - Removed the extra */ - Copy the iconv-2.dll
b07837e664Adrian Pop- windows fixes, switch includes.
905a165ba1Adrian Pop- fixes for windows (const char*) - added -iconv to link with omc.
3ee93e8937Martin Sjölund- Added scripting function iconv(str,from,to)
dde1e5821cPer Östlund- Added SCode instantiation prototype.
937ed80a56Martin Sjölund- Disable debug checks
f6ac1dc926Martin Sjölund#1663 - Fix for data_of_integer_array on 64-bit platforms (copy the array before sending it to the external function)
24f9b90ef0Lennart Ochelfix for parameters with nominal-attribute
cbbf705e31Martin Sjölund- realString: Output 0.01 instead of 1.e-02
c512d51f75Martin Sjölund- Fix correct length in realString
231ced32deMartin Sjölund- Only simplify max(real,real) if the arguments are real
bb59ec774dMartin Sjölund- Do MMC_CHECK_STRING just in case
a0ec292ceaMartin Sjölund- Fix issues with too small buffers, etc
c9a746e411Martin Sjölund- Do not do mk_scon() on a MetaModelica-style string ;)
91683667f9Lennart Ocheladd nominal-values to xml-file
eb898faa4cMartin Sjölund- Use new dtoa-based realString
01af979db5Martin Sjölund- Use the old simplifyIfExp as it's "better"
9bbb249db0Willi Braun - update generated FMI import model (works now with new CSimulationRuntime also on linux) - adjust FMI export for new CSimulationRuntime
1f6ccae084Jens Frenkel- Expression.mo -add missing case for enumeration - ExpressionSimplify - report if ifexp is simplified
70c7e8d387Martin Sjölund- Removed use of unsafe unification in matching
9b09476f64Willi Braun[FMIimport] - added forgotten header for va_arg(function logger)
468602b391Willi Braun[newSimulationRuntime] - update FMU Export code - fixed bug in initialization
1054196e5dWilli Braun[newSimulationRuntime] - added and adjusted FMU export for new simulation runtime(need more work)
1ac926dd13Martin Sjölund- Do not use unification in functions with potential side-effects ;)
45d0d7c6a2Jens Frenkel- fix for bug [#BUG-1661]. Now BackendDAETransform.differentiateEqns check if a equation has continuous variables before differentiting it.
23dbef25f7Adeel Asghar- new API calls, + getInitialAlgorithmCount + getNthInitialAlgorithm + getInitialEquationCount + getNthInitialEquation
0f5a3e24d9Adeel Asghar- Fixed getAlgorithmCount and getEquationCount - New API call getNthAlgorithm and getNthEquation
3c72b9023cPer Östlund- Removed check for redeclaration of protected elements, since it's actually allowed. - Implemented support for cardinality of connector arrays.
cd44d7a04fMartin Sjölund#1662 - Type-check == <>
eeac5b79ddNiklas WorschechAdded CMakefiles for Idas an Cvode to cpp runtime
93011dfe9bMartin Sjölund- Fix loadModel() for modelica.org trunk
17c7503e94Martin Sjölund- Remove the last expressionsimplify fixpoint iterations reached in the testsuite
363b450cb0Per ÖstlundSome fixes for flags: - Consume -- so that it works as expected for the boostrapped compiler. - Print error messages for unknown long flags.
e96b091bdcMartin Sjölund- Avoid failure to reach fixpoint for some simplifications
7c7dcc21efAdrian 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!
33c500088bAdeel Asghar- new API commands getAlgorithmCount(M1), getEquationCount(M1)
3690dce8a3Martin Sjölund- Some rewrite rules for a*(b^(-r)) => a/(b^r) and similar expressions
6f300fb79eMartin Sjölund- ExpressionSimplify: Added new rules: - a^e*b^e => (a*b)^e - a^e/b^e => (a/b)^e
dacb29d0aaMartin Sjölund- simplify: sqrt(x^2) => abs(x) (abs previously not present)
78cdd8a120Martin 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)
bdb83cb602Martin Sjölund#1658 #1657 - Removed use of unary operators .- and .+ - Removed operator DAE.UPLUS and DAE.UPLUS_ARR; these are handled directly by elabExp
d0948deb83Martin Sjölund- Fix ExpressionDump: -(a+b) is now printed correctly (previously was printed as -a+b)
4c39590e6eWilli 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
896f16af7cMahder 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
590fbc3367Mahder 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.
193778ee9aPer Ö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.
ff47d105f1Per Östlund- Changed nX to : in some functions in PartialTwoPhaseMedium to make them work as intended.
c9512f3663Martin Sjölund- Allow long strings sent over CORBA on Linux
99ca4798d8Adrian 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).
a9d2ad348cMartin Sjölund- Disable newsimruntime
39ae73b54fPer Ö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.
04649a907dMartin 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)
6fdd71fec8Adrian 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.
8af2054a29Niklas WorschechFix for division in cpp runtime and cpp template
cc6446f82fPer Ö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.
dd9cf7400ePer Östlund- Reverted changes from r10570 and fixed *only* System.tolower.
d12bdf0fe8Per Östlund- Fixed System.tolower.
7d94895f22Willi Braun[newSimulationRuntime] - ported bug fix from r10562 - fixed some alias and results bugs - mosfile 30 of 155 failed
16f1702377Adrian Pop- function to check if a list has exactly one element.
4bdbbf3110Adrian Pop- remove commented code as is no longer needed (already present in Types).
5c0e49df21Willi Braun[newSimulationRuntime] - added dassl support
f57a34db51Adrian PopFixes for BUG: #1652
ff2eef6aa4Martin Sjölund- Do not output #line 0 as it's disallowed by clang
35884404e5Adrian PopError.mo - typo fix
a3f224d140Adrian Pop- update a bit the omi_Calculation.cpp with things that are done before callSolver.
d088e81a28Federico BergeroRemoving stand alone solver from the runtime
287ba6b0e8Federico BergeroUpdating code for QSS
fc230f8782Adrian Pop- add fmiclean target.
c78aeee86ePer Östlund- Changed List.filter*OnTrue and List.removeOnTrue to fail if the given functions fails.
4c3edef3e2Per Östlund- Fix broken compilation due to r10543.
bfecc2a200Niklas WorschechExtended cpp code generation for Modelica Tables
56f15b75c2Willi Braun#1651 - fixed Bug [#1651] - added test case
114161ff73Willi Braun - fixed compiling error
927a7d35c6Willi 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
eea2f4eed9Willi Braun[newSimulationRuntime] - fixed csv output - fixed lookup in ringbuffer - fixed solver(euler,rungekutta)
7ecc74d8ddWilli Braun- revert r10533 it break the fmi testsuite and anyway it overwrites many correct fixes!
99518f2284Wuzhu Chen-- some bug fixes -- new functionalities for parsing model description file -- some warning messages removal
0af1212e93Willi Braun[newSimulationruntimeC] - setup the solver_main to work on new data structure
97349d63bfLennart Ochel- provide lookup for ringbuffer
4e96a46acbWilli Braun - updated FMI import and moved fmu to test suite
2c4aa8cea7Willi Braun[newSimulationRuntime] -added support to read all static varinfo data from xml file
2c4b496d67Adeel Asghar- testcases and getDocumentationAnnotation fixed.
b61ff1efdcAdeel Asghar- getDocumentationAnnotation returns {"info","revision"} with info as the first element and revision as the second always.
9cfa56cef8Adrian 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
f17c30eb78Adeel Asghar- Documentation annotation fixes.
8b1653135cMartin Sjölund- Avoid stack overflow in all CORBA calls
0bda1359c7Jens Frenkel- copy fix from r10507 to SimulationRuntime/c
cfa3f1d6ccAdrian 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.
1c702b44efAdrian Pop- last resort fixes for the memory_pool.c (to get the fmi not to crash when calling stuff from the generated dll).
61d7295d50Martin Sjölund- Added getClassNamesRecursive(void) API call
a4502e86c1Jens Frenkel- finish results implemention based on new data structure
af1c551e83Adeel Asghar- Create sections for documentation. So we know which HTML section belongs to info and revisions.
37c2ae568eMartin Sjölund- Use the resul*t*s instead of the resuls
3bae6aa755Martin Sjölund- Don't #include as there is no such thing on some platforms... - Use stdlib.h from the C standard instead
d9b8b1887bWuzhu Chen-- more tested FMU examples -- fixed of bugs -- test version under windows
606d2f12ddJens Frenkel- update simulation resutls (TODO mat,plt)
d744768ab9Lennart Ochel- update_DAEsystem() -> update_DAEsystem(_X_DATA *data)
52e023a107Lennart Ochel- _X_DATA-initialization update
31c4f1a123Jens Frenkel- bugfix parameter value definition
0f826323e7Jens Frenkel- set variable filter for _X_DATA
ab1b03bbd7Lennart Ochel- _X_DATA-initialization update
be22ddccc7Jens Frenkel- add _X_DATA to functiondefinitions
242ad1eb25Willi Braun[newSimulationRuntime] - for now deactivated DASSL to rewrite solver_main
d4c4695553Jens Frenkel- rename deInitializeDataStruc -> callExternalObjectDestructors
735368b2baLennart Ochel- continue using new simulation_data struct in initialization
4842db01b1Jens Frenkel- do not use this very good vararg macro
b307ca9a5dMartin Sjölund- make clean now does not run the depend command
8f16f7b934Jens Frenkel- update bltdump - fix fmu generation for multiple backendaes
92510be848Willi Braun [newSimulationRuntimeC] -added static data from xml-file
a28ccf94b7Lennart Ochel- start to use new simulatio_data struct in initialization - fixed log-messages
18af01166bJens Frenkel- bugfix tables read csv file
57d142b8bdJens Frenkel- bugfix tables.c - try to implement csv file support
7cdb59b88bLennart Ochel- add some debug-outputs - fix deleted else in simulation_runtime
3fc4fe3838Adrian Pop- show the number of failed models and the models that failed.
19fc8eef24Jens Frenkel- bugfix mercurial mingw error for static arrays
8a022491d6Willi Braun[NewSimulationRuntimec] - added ASSERTS for calloc
f0bc1d04d5Willi Braun- [newSimulationRuntime] - fixed bug in initial DASSL Data
90731d39b9Willi Braun- changed max and min to fmax and fmin
5c9bf5afb4Willi Braun- changed solver_main to c - added a lot of bugfixes
59171cd23eLennart Ochel- bugfix in error.h
2e56a5bd57Jens Frenkel- add header to some Makefiles - us ld for long int - tables.cpp -> c
f976eff65dLennart Ochel- bugfix in list - introduce type-free list
156e678c47Willi Braun - update makefile for ModelicaExternalC
a572f5b257Jens Frenkel- continue tables.cpp convert to c-style
45412eee20Lennart Ochel- update delay
ff4e6dab05Lennart Ochel- some error-output macros
21b9b9787eMartin Sjölund- Unix compilation
3b0265509cMartin Sjölund- Unix compilation
c0278601a9Adrian Pop- more fixes so it compiles.
1ef7611e4cJens Frenkel- start to convert tables to c-style
c13417ad2eAdrian Pop- make the new sim runtime C at least compilable.
f8e50e19feLennart Ochel- some utility functions
f7ef6355bcLennart Ochel- adjust makefile for interactive
68ea632b2eJens Frenkel- update cmake files
41a821879bJens Frenkel- update cmake files
5078739a2cJens Frenkel- update cmake files
b635c344ecJens Frenkel- use ${CMAKE_CURRENT_SOURCE_DIR}
679f18da3fJens Frenkel- add nosendData
eaba349077Jens Frenkel- sendata CMAKE build not sendata if QT is not Found
dc05031478Jens Frenkel- sendata CMAKE build not sendata if QT is not Found - bufgix solver_main
f37c42a039Jens Frenkel- function predefinition
f15b1a782fJens Frenkel- events: do not free if not malloc - error msg style
fde99a0b4cAdrian 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.
310f22c3efLennart Ochel- renamed some math-support files
3ab735ad1aJens Frenkel- bufix missing link
018a1ee226Jens Frenkel- add Makefile.common - use longjump in simulation_main - start with _X_DATA
2acad39953Martin Sjölund- M.E.D.E.Adder4 now compiles
ef52124d3dMartin Sjölund- Some fixes for parameter enumerations
2e9be046d5Martin Sjölund- Unix compilation
7fc7cf5e06Martin Sjölund- Use the configured CXX
3d3facc862Martin Sjölund- Configure fix
c766a7cb1bJens Frenkel- fix compilation
25cab05251Jens Frenkel- make list usersave ;)
e647c8d91dJens Frenkel- Bugfix MakeFile
69c783c7b1Per Östlund- Moved global root indices to Global.
b0290130a7Jens Frenkel- update CMakeFiles
3558e15700Lennart Ochel- moved math-support
925266a2d2Lennart Ochel- first try of defining new structs for simulation datas
9795f98629Martin Sjölund- Clean compilation
3d57a30006Jens Frenkel- ged rid of sum waring - use time to call storeDelayedExpression, so globalData is not needed in simulation_delay
7530c3bc26Niklas WorschechAdded code generation for extern functions Functions.h in cpp template
d8afd1f0b5Jens Frenkel- get rid of some warings (mostly size of data type not equal) - clear includes
0327ac93dfPer Östlund- Removed inline for alloc_elements in memory_pool.c, for clang compatibility.
1e3d8b1815Per Östlund- Fixed mistake in DAEUtil.mergeSources.
a6dd9ac3ddJens Frenkel- improve setTermMsg
bd108c9009Willi Braun - added some more fixes for Makefile
ba58cf6457Jens Frenkel- bugfix list.c - bugfix TermMsg
25be6da04fJens Frenkel- bugfix free
befd9e440fJens Frenkelgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10418 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
bceb1f8e04Jens Frenkel- bugfix c-standard - add utility.h
410231c0cdJens Frenkel- bugfix print debug - assert to exit
0b8e2513a3Jens Frenkel- bugfix list init in simulation_events - bugfix TermMsg
b704e31991Willi Braun - merged some fixes
c5f5038dcdLennart Ochel- bugfix for initialization
595315e5bbMartin Sjölund- Add some equation info to the generated code - Comment out some useless code :)
c630f5ce36Jens Frenkel- simulation_events.cpp -> c - add list for simulation_events
a92e823667Lennart Ochela small fix
128900d9fbChristoph HögerFix PHONY targets
efb65ea9f4Lennart Ochel- .PHONY fix for makefiles
8e059bb4d9Jens Frenkel- c-stile comments
242bfaf270Jens Frenkel- simulation_delay.cpp -> c
6aa3db78e5Jens Frenkel- update CMakeFiles - simulation_init.cpp -> simulation_init.c
a9d22fbde7Jens Frenkel- bugfix mscv
1a75e6dc68Lennart Ochel- conert ringbuffer from cpp to c
77d3ba76bbNiklas WorschechAdded fix from Adrian for ModelicaTables to cpp runtime
880e4f0ec9Jens Frenkel- add CMakeFiles to SimulationRuntime
704f50baefAdrian 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).
efc63a6106Martin Sjölund- Use long as modelica_integer type
5694905b11Willi Braun - added once again Makefile
452e009d63Willi Braun - added again Makefile to SimulationRuntime/c
f647f871c4Willi Braun - added one Makefile more to SimulationRuntime/c
a06ec31277Willi Braun - some more fixes on SimulationRuntime/c for testsuite/mosfiles (only 7 tests failed)
2e88f66d00Jens Frenkel- copy bugfix to SimulationRuntime/c
dfdc7a56c7Jens Frenkel- update makefile
79dcdcd010Jens Frenkel- update makefiles
231c25e3eaJens Frenkel- fix makefile
4cc9bbdb21Willi Braun - more SimulationRuntime/c
89b21cb532Willi Braun - changed the Codegen for SimulationRuntime/c
6bda1dc895Jens Frenkel- fix install
934becbaeaJens Frenkel- fix warnings
0984349de4Willi Braun - more Makefile stuff
3210774f47Jens Frenkel- fix warning
da4f410070Willi Braun - get rid of tons waring massages
598443942fJens Frenkel- fix clean
49bbb298d2Jens Frenkel- build SimulationRuntime/c
257b1ebfc9Willi Braun - correncted Makefile.common in SimulationRuntime/c
eb8cb5afa0Willi Braun - added Makefiles for simulation folder
dd2512a626Jens Frenkel- update makefile
8332b2bc5cMartin Sjölund- OMDEV compilation
367b402918Willi Braun- fixing Makefiles for SimulationRuntime/c
2b0794d7cfMartin Sjölund- Share some matrix literals
fd67fccdaaJens Frenkel- update CMakeFiles - include inline.h in memory_pool.c - bugfix for vs us sqrt(double)
7f94d3c791Martin Sjölund- Use the configured make command
17721d85b2Martin Sjölund- Add MAKE=xxx to the configure script (to be used to change the make version used by OMC)
c5ec63c4bfLennart Ochel- bug-fix inside the ringbuffer, because of losing the order during expanding
05ce47c0d1Adrian Pop- table data does not have to be monotonous increasing, it can be equal too!
6e30627ad0Martin Sjölund- Ceval the cref without subscripts if we have variable subscripts
e0885ad6adWilli Braun-fixed compiling issues in SimulationRuntime/c/meta
f9e871e1adMartin Sjölund- MetaModelica: Use C89 instead of C++
7be63b313cLennart Ochel- sync with c_runtime
aba4452f54Niklas WorschechAdded ModelicaTabels from c_runtime to cpp runtime
90316a77feMartin Sjölund- Fixed compilation of util package
f7a407d357Willi Braun-added the forgotten openmodelica.h
99fa31e851Willi Braun- added Makefiles for building every subfolder an own library
4eaabe1cfaLennart Ochel- changed default optimization-method for initialization
520b5cceecMartin Sjölund- Moved read_write back to c_runtime as it seems to break things after a make clean
6cd3a9467dMartin Sjölund- Use multiple regions for the memory pool
376161084cWilli Braun- added TerminateSimulationException class to tables.cpp
eaca23572dMartin Sjölund- The memory pool now uses only one buffer for all data
bad8ce57b1Martin Sjölund- tables.o should not use odd defines
681b03a52aMartin Sjölund- Configure the SimRt/c makefiles
470b349feaWilli Braun -added Makefile.in to SImulationruntime/meta
ed9a4d7ccdMartin Sjölund- Copy read_write.h to the headers
2195759540Martin Sjölund- Fix clean compilation
6d4bfd9da2Willi Braun - added updates for new c simulation runtime
b718cec526Willi Braun - added new structure in SimulationRuntime/{c,fmi}. Copy almost all stuff from c_runtime to SimulationRuntime.
aca7f575e4Lennart Ochelbug-fix for handling initialization with command-line arguments
1a0059f19dMartin Sjölund- Moved read_write to Compiler/runtime
5e9628b372Niklas WorschechAdded Idas Solver source code to cpp runtime
ccc702a5e4Martin Sjölund- Create temporary functions for all equations as GCC runs a lot faster on this code
d92ec2a01dMartin Sjölund- Do not configure with OPENMP as the macro is broken on OSX
3c8b3498a9Per Ö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.
91346164caWilli 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.
a9d1bd6d12Jens Frenkel- yet another try at making Compile.bat work correctly (adrpo)
36d045b452Niklas Worschechadded Cvode solver source code to cpp runtime
05ffb34c06Federico BergeroCalling function_initMemoryState
40420cbb72Martin Sjölund- Restructured memory pool (it's now an array of pools)
cbbe21ecfeAdrian Pop- fix to bootstrapped compiler
ff9527b254Martin Sjölund- translateModel now works more like buildModel
0194570f0eMartin Sjölund- Avoid segfault when init-file does not exist
8c56b89566Adrian 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).
7b22ec1550Adrian PopInteractive.mo - run all graphical API commands with checkModel, nogen and noevalfunc ON. - merge graphical API handling functions into one.
f738129b72Adrian Pop- logging is not good unfortunately for the soul of the testsuite.
bca75f907dAdrian 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.
d8f21effa2Adrian Pop- be consistent with execstat v.s. execStat.
523e3a8db9Niklas WorschechAdded forgotten AlgloopsolverFactory Interface
8d937a0278Adrian Pop- update 3.4.5 to 4.4.0 (this might be the problem for the people that get libgmp-3.dll issues).
ff571fc775Willi Braun- FMI-Import: added first FMI import test(really simple) and it works for now only on windows.
a65d9720b2Niklas Worschechfix in algloopsystem of cpp runtime for Modelica function calls
c216f8e70cPer Östlund- Add crefs from component modifier in Inst.updateComponentInEnv to get rid of some error messages.
1e9dab7d33Martin Sjölund- Fix for rml (prim_once returns the success/failure status, not the value...)
81b004505bMartin Sjölund- Parse der(cr) := exp; Inst needs support for this though...
3c2b1dcf3cMartin Sjölund- ClassLoader: Do not load a library if a subpackage fails to parse
5bad000913Adeel Asghar- Fix start col for first row.
ba6258dd50Willi Braun- FMI-Import: changed name of the generated file
b9e6581567Per Ö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.
ebc5d32ab4Willi Braun- fixed makefile for FMI-export.
0019bda88bMartin Sjölund- Parse first token correctly
f0c7fc7546Willi Braun- fmi-import: get rid of some warnings
e39bb14440Willi Braun- fmi-import: more fixes, correct indentation, adjust debug informations
1545422211Willi Braun- added fix for fmuBoolean to Modelica Boolean
995ec6cf21Willi Braun- fmi-import: fixed some more bugs
ed846cc172Willi Braun- FMI-Import: fixed some more memory leaks
14cd37ad15Willi Braun- FMI-Import: fix almost all calloc calls by swap arguments
3784b12f1fAdrian Pop- fflush the log and error messages in c_runtime. (is good for knowing where things crash).
4abc688477Martin Sjölund- Better fix than r10268 (but we keep the debug print disabled)
79bc483542Willi Braun - fixed bug with array with size 1. - uncommented print of communicate status (breaks the testsuite)
e370306e8fMartin Sjölund- OMEdit/simulation: Use -port XXXX to send status updates to OMEdit. TODO: Implement this in the GUI (Adeel)
66c9c5332bMartin Sjölund- Added preOptModule: residualForm
3643c727f6Martin Sjölund- Spelling of SIGUSR1
b1a8e79b65Willi Braun#1641 - added fix for Bug 1641 (constant linear system) write the constant value also as startvalue - added testcase
ae97eb5e1dPer Östlund- Fixed infinite loop in DAEUtil.evaluateParameter. - Updated test suite.
782a606e2bPer Östlund- Fixed correct type when elaborating the builtin cat operator.
fcf2915967Per Östlund- Added balance check for connectors extending a basic type.
5e34f0d610Adrian 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.
c1abafcd0aAdeel Asghar- copy required FMI header files.
827fa05829Niklas WorschechFix for compiler error in SimCodeCpp.tpl for new ode equations structure
d4ebcac455Niklas WorschechExtended cpp template for generating code for non linear systems
8ae91bcb8fNiklas WorschechExtended cpp runtime for solving non linear systems
4ff09533aaWilli Braun- Added bug fix for algorithms. Not all algorithm outputs are discrete.
c557192659Per Ö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.
7c32c3f4f5Martin Sjölund- Fix clang warnings
b673ae98c7Martin Sjölund- Revert previous changes as they cause heisenbugs
abced6f9deMartin Sjölund- Avoid clang warnings and segmentation faults (see r10238)
e50520c8e4Per Ö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.
1d20877007Martin Sjölund- Avoid clang warnings...
b409f87f07Per Östlund- Fixed bootstrapped compiler by implementing setLanguageStandard and getLanguageStandard in bootstrapped runtime.
22e50bcbb4Martin Sjölund- Fix error kind for COMPONENT_NAME_SAME_AS_TYPE_NAME
32255d671cAdrian 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.
e5e4238da1Martin Sjölund- Do not rollback the memory pool in external functions as the output still needs to be allocated
fb922206a9Martin Sjölund- Makefile parameters should contain the include dirs, not the include itself
ab2cc4cf80Adrian Pop- allow protected constants in functions to be able to compile functions such as Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3b_ph.
3c8db167a8Per Ö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.
87267eb17cMartin Sjölund- Improved error message
0a920d3720Martin Sjölund- Install nls files correctly
1c6205386aPer Östlund- Fixed redeclaration modifiers for arrays, i.e. 'each redeclare'. - Implemented SCode dumping of defineunit. - Updated test suite.
173b79077bMartin 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
d8b24abab7Martin Sjölund- Open errLogFile before trying to use it
84159c5f8bMartin Sjölund- Fixed profiling report title (TITLE was not that great...)
0d7e17ab11Martin Sjölund- Moved setClassComment to ModelicaBuiltin.mo
cb6673ebe9Martin Sjölund- Fix last commit (compile error)
457797c6f5Martin Sjölund- Added loadFileInteractive{,Qualified} to ModelicaBuiltin.mo
7290133097Martin Sjölund- Refactoring
2675f8ce15Martin Sjölund- Moved getPackages() to ModelicaBuiltin.mo
ea58f1211aMartin Sjölund- Moved getClassNames() to ModelicaBuiltin.mo
8271ad7df1Martin 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
2bc3b27fd3Martin Sjölund- parseFile defined in ModelicaBuiltin.mo - List OpenModelica package in OMEdit
8e14aeb2e6Martin Sjölund- listVariables now part of ModelicaBuiltin.mo
563c8387ecMartin Sjölund- Don't strcmp NULL-pointers
7b0e7fe00eAdrian Pop- chain the redeclares.
e6403a62f9Willi Braun- fixed small bug in calculate analytical jacobian
1a3f8529f0Per Östlund- Add info to some error messages in Ceval.
274f961c8cPer Östlund- Allow unknown array dimensions for now, since it fixes some problems with Media and Fluid because we instantiate stuff without modifiers.
b4ac1924bcPer Östlund- Simplified Inst.updateComponentsInEnv2 a bit.
58636bc6dcMartin Sjölund- Fix for bootstrapped compilation
222b369ea2Martin 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)
cccd4625baMartin Sjölund- Use log-scale for measureTime=true
771a3d8a9cMartin Sjölund- Fixed typo
289d9975a7Martin Sjölund- Avoid some more double-free
636f8ef0eeMartin Sjölund- Allow external objects to pass through simcode
af7d25e061Martin Sjölund- Bootstrapped compilation
692de30d5aMartin Sjölund- Avoid some double free so we don't cause segfaults
33e3a2b178Martin Sjölund- Call fmigenerator directly from ModelicaBuiltin.mo
27114a7a58Martin Sjölund- C89 FMI compatibility
a2cad9add5Martin Sjölund- Fix some compilation warnings
733f3851e9Martin Sjölund- Only copy fmuWrapper.h to the include directory - Moved some header includes around to avoid including unnecessary headers
1da1595d7bAdeel Asghar- Copy required FMI header files.
8fd3f97d8eMartin 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];
038857d9a0Per ÖstlundFluid fixes: - Better handling of redeclare modifiers in SCodeDependency. - Updated DrumBoiler tests and moved them to working tests.
77c7ea13b6Adrian Pop- got rid of some of the warnings in Compiler/runtime.
1df805c2ffWuzhu Chen-- fixed variadic arguments compatibility
bbf77e7244Adrian Pop- missed one
e310e5ebcaMartin Sjölund- Refactoring of Error.mo: Use uniontype/enumeration to send message type/severity instead of strings
43d9b4a42fMartin Sjölund- Added draft of better getMessagesStringInternal API (less client-side parsing)
7cd5f1b045Martin Sjölund- Moved functionODE_residual to the runtime instead of templates (compile once, link many times)
d2ad9d91e5Martin Sjölund- Disable Werror
cb745f392cMartin Sjölund- Force generation of headers before trying to compile fmi
03f37fb715Adrian 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.
1233674e93Adeel Asghar- Output Directory can be specified for importFMU.
5fe1e82c0aMartin Sjölund- OMEdit: Check getErrorString() after loadModel()
8ca6eb2e87Adeel Asghar- Don't append errors to the error file. Always write the current import errors.
b6a6c1bbf4Adeel Asghar- Changed fmuWrapper.a to libfmuWrapper.a - FIX fmi compilation on windows
4a6f968097Adeel Asghar- don't return error for default case because then the API will fail.
8463e0affeAdeel Asghar- getLastError() is wrong its GetLastError.
f0d4f62e07Martin Sjölund- Some fixes to equation index of distributed systems
6598124ce5Martin Sjölund- Some fixes
7edea585c5Martin Sjölund- Use unzip
b54a035597Martin Sjölund- FMI fixes
4489df75c7Martin Sjölund- FMI fixes (use .a-files)
b7c50d4738Martin Sjölund- Added +d=openmp, which slows down simulation in most cases (at least on 2-CPU systems)
3c35df1785Martin Sjölund- Fixes to compile using clang
f56a2b5900Martin Sjölund- Fix moGenerator compilation errors
0a73368527Martin Sjölund- Remove unused
659511db52Wuzhu Chen- Some bugs fixed in moGenerator, unzip cannot handle recursive directory creation - Remove excessive amount of warning messages
b61cecd681Martin Sjölund- Refactoring
b52a7b4d9cWilli Braun- added new solver: Dopri5. An implementation with step-size control and dense output by Thomas Schmidt @ FH Bielefeld.
8eb97e06a6Adeel Asghar- breakprocess section in Makefile.common - step to create BreakProcess.exe
33d8fa6e3cPer Östlund- Fixed stack overflow in ControlledTanks fluid test by qualifying redeclares properly in SCodeFlatten. Also gets rids of some other error messages.
10ceab47c3Martin Sjölund- Disabled collapseIndependentBlocks by default as the whole backend+code generation now handles independent equation systems
0e9b0ae9c8Martin Sjölund- XMLDump now working for independent eq.systs
f156cfecacMartin Sjölund- Some fixes for indep.eqsyst
9cb4f58dceMartin Sjölund- Fix for createParameterEquations when not collapsing indep.eqsyst
e0e66730f5Martin Sjölund- Reset tmp ticks more often in generated code
9cd410a2aeMartin Sjölund- Do not generate duplicate statements for functionAliasEquation when partitioning independent equation systems
692c5ccfcfPer Östlund- Fixed record component assignment in CevalFunction. - Removed nogen and noevalfunc flags from fluid tests that don't need them. - Removed some unused code.
cd7b1fa1b8Martin Sjölund- Adding Modelica 3.3 draft spatialDistribution to the builtin env
0965a5ca3eMartin Sjölund- Fix bootstrap comilation warning
3e9703061cMartin Sjölund- Added Modelica 3.3 (draft) operator getInstanceName()
86a21e4645Martin Sjölund- Added some documentation
af2b8548dePer Östlund- Implemented RTOpts.setDebugFlag for the bootstrapped compiler.
4705f66af3Martin Sjölund- Fix POSIX compilation
19a95dab9fMartin Sjölund- Include malloc
1e057ab630Wuzhu Chenlog file generation, platform dependency handling, more functions for xml parsing
7c3c183d83Martin Sjölund- Use ModelicaBuiltin.mo to describe skew
9fc8fde9a7Martin Sjölund- Added cross to ModelicaBuiltin.mo
aea416c98bMartin Sjölund- Force nogen for Interactive.getComponents
ad6d3aea51Niklas Worschechfix in cpp template for generate matrix code
12ffd6beceMartin Sjölund- Remove uesless config lines
90c9352844Martin Sjölund- Reduce the number of warnings clang gives about the GC macros
1084a94beaMartin Sjölund- Added support for quoted identifiers in functions
6a526fc1f2Martin Sjölund- Removed the Compile script on Unix platforms (call make directly)
160e54254eMartin Sjölund- Fix C++ compilation error (it's ok to call functions with too many arguments in C apparently)
7f7316ba7aAdeel Asghar- step to create fmigenerator.exe
96affb0225Adrian 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).
0fd12a1503Adrian 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.
37722d6878Adrian Popbug #1159 - do not use /B in Compile*.bat as Windows XP will crap out - delete .log .exe .dll when compiling.
fd1d479c99Martin Sjölund- Use System.getExeExt instead of hard-coded values
b401db03baAdrian Pop- fix compilation on Windows. - delete also .log to be sure is actual.
e6528fcc5dPer Östlund- Fixed stack overflow in Inst.updateComponentInEnv for some fluid models.
58380b8288Martin Sjölund- Remove file before compilation starts and check that it exists after
55b2ec3afbPer Östlund- Relaxed the check for cyclic dependencies in Inst.instElementList, to avoid false positives when if-equations are used.
02a5d558bcPer Östlund- Fixed elaboration of stream operators on empty arrays, which fixes flattening of some fluid models.
8d49c6a273Martin Sjölund- Removed some unused functions, fixed some compiler warnings
db7d701b04Martin Sjölund- Removed some old stuff from Builtin.mo
72f94538edMartin Sjölund- Implemented linspace in ModelicaBuiltin.mo
c7c8a9a090Martin Sjölund- Added outerProduct as external "builtin"
c351b69d6eAdeel Asghar- minor fixes of FMI import
9768d6b8dcAdeel 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.
062132f18bMartin Sjölund- Removed .substring from the Builtin env
0d49175ae6Martin Sjölund- Generate header from template
cc0cb77794Martin Sjölund- Set LF props
cec9b11e32Martin Sjölund- Removed elabBuiltinRem elabBuiltinMod
74f12aa486Martin Sjölund- Removed elabBuiltinDiv
dc9ce930ddMartin Sjölund- Moved abs() from Builtin.mo to ModelicaBuiltin.mo
26182070b1Martin Sjölund- Removed boolean() from Builtin.mo as it is not a legal Modelica call
511f0b7891Martin Sjölund- Implemented function overloading
4e36173b95Martin Sjölund- Add dumping of overloaded functions
d35462f01fMartin Sjölund- Fix for vectorized delays
5be56ad0c4Martin Sjölund- Some more compiler warnings
865b1f3bcfMartin Sjölund- Fixed some compilation warnings
abbd90fcb4Adeel Asghar- using unzip instead of 7z.
983ae1fe72Martin Sjölund- Fix for vectorizing delay() calls
a4a6f59978Martin Sjölund- Some fixes for FMI import to compile under UNIX
2bf3a71b4dMartin Sjölund- Corrected linking order
b89a5e2bc8Martin Sjölund- Fix OSX compilation
e32c441e50Martin Sjölund- Make USR1 print some simple simulation status to stdout
e7e92831cfAdeel 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.
c9cbf43ec8Per Östlund- Remove Util.stringDelimitList, since it's builtin now.
d40243659aMartin 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
8707c5b2a1Martin Sjölund- Added List.selectFirst1
70c8c97110Martin Sjölund- Fix bootstrapped compilation
2c9c7cb91dMartin Sjölund- Improved the error for imbalanced systems (prints all of them instead of only first)
82a6ca0c47Adrian 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.
b46a251603Adrian 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.
64af87d2e0Adrian Pop- use Types.elabType instead of Algorithm.getTypeExpType - use match instead of matchcontinue in ClassInf.getStateName
80e91894e3Per Östlund- Changed the error messages from constant id + lookup list into just message constants.
83222b18a2Per ÖstlundFix for bug #1627: - Pass the subscripts correctly in elabCrefSubs so that the bounds checking works correctly on qualified subscripts.
346ba57a6bMartin Sjölund- Fix extraPolate
9d8abbd81eMartin Sjölund- Some compiler warnings
c5aba33418Martin Sjölund- Changed the extraPolate macro so we don't get warnings because variables contain $-signs
3ba4b5ca83Martin Sjölund- README update
b36be1c174Martin Sjölund- Allow compilation without Java
97412445f7Per Östlund- Updated the OMC usage text.
e26d09a477Martin Sjölund- Added ceval of stringDelimitList
ed85bf655aPer Ö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.
43c3ef904eAdrian Pop- getting the testsuite closer to 100% - more fixes are on the way for redeclares.
ba4a7a8099Adeel 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.
8cde145ce0Jens Frenkel- remove unused parameters from functions
0a8d302a36Martin Sjölund- Patternm: Only output a single error for patterns
160a956d83Martin Sjölund- Added boxptr_stringDelimitList
b44374d9cbPer Östlund- Added check for components with the same name is it's type specifier. - Enabled testcase mofiles/Lookup8.
0bd84d81a1Martin Sjölund- Added missing function boxptr_listDelete
6f8d935573Adrian Pop- WARNING: NEW RML is needed for this revision! Update your OMDev for Windows and RML for Linux. - stringDelimitList is now a runtime function.
94fea1212cAdrian Pop- small typo fix
6790a17ffcAdeel Asghar- Information about AccessControl plugin.
c6a8a6264aAdrian 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
a749d6b67aWuzhu ChenFMU_Import: some files missing
01475ee729Wuzhu Chenprototype, refactoring still in process
8a6cd47a75Per ÖstlundFix for bug #1621: - Handle enumerations inside modified models correctly.
70f68a6505Per Östlund- Added test validation tool, useful to check tests when equation order changes.
923f0c08e8Per Östlund- Changed the error message for public non-formal parameters in functions to be understandable without reading the specification.
c3a0e9ebb9Per Östlund- Moved list functions from Util to a new List package.
f645074d0fJim NutaroRemoved dead code from the adevs backend.
2b1497ffabMartin Sjölund#1623 - Produce a good error-message when a pattern variable is not found in the local scope
05d8fa755dAdeel Asghar- Fixed the line conversion problems.
9b1171e75fJim NutaroCode generator works again. Still needs to have unnecessary code removed.
7a361e34a0Jim NutaroFixed issue with lambda, still working on other problems
f465197ccaMartin Sjölund- Some fixes for indep.eq.syst
26a92ba8d1Willi Braun - replaced the calculation of the jacobian by a fast column-wise method
d0ee53db81Martin Sjölund- Don't inline functions for clang to work
014bb84291Martin Sjölund- Added builtin function stringDelimitList to MetaModelica
0b034fd3cbMartin Sjölund- Some bugfixes for indep.eq.syst
70fdddd71bMartin Sjölund- partitionIndependentBlocks now succeeds all the way to codegen. Will need to check if it produces the correct result, too
3fddbaef71Martin Sjölund- Force #endModelicaLine at the start of match-expressions for the debugger
9ef59e2c3aMartin Sjölund- Builtin functions no longer use the weird _rettype crap
ff88ecacc7Martin Sjölund- Parallel eqsystems
5e18b957c8Martin Sjölund- getPathedClassInProgram now also looks for builtin classes (making MDT display builtin functions in any project)
ac416a7423Martin Sjölund- Fixed codegen for if-expressions of array crefs
ba37dd0e55Martin Sjölund- Skip writing huge comments for each rhs in generated code
5b6ab94904Martin Sjölund- Some more changes for indep.systems
6a10ec02aeMartin Sjölund- Fix convert_lines.pl so we can debug files that have digits in them...
c77d682a65Martin 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
1a251ee113Adeel Asghar- change the standard streams buffer size.
8915aefc98Martin Sjölund- Made changeStdoutBuffer run also on Linux
71828982b5Adrian 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).
d5cbf060d2Martin Sjölund- Some more refactoring
ae112f6233Martin Sjölund- checkInitialSystem fixed for indep.systems
5fd8b44e5aAdrian Pop- added stdio.h for gcc 4.4 compilation.
405f3aeb9dMartin Sjölund- SimCode.generateHelpVarInfo now works for indep.systems
15b4e69448Martin Sjölund- The createSimCode handles independent eq.systems a little better (still not close to done)
7e7490d7c1Martin Sjölund- Some additional changes for independent eq-systems in SimCode.createSimCode (needs larger changes later on)
bfbfaff31cPer Östlund- Added check for public non-formal function parameters, and fixed the compiler code and test cases.
c65a89ca47Martin Sjölund- matching,index-reduction and past-opt modules now handle independent eq-systems
d2369cca81Per ÖstlundFix for bug #1619: - Implemented support for boolean ranges.
115cd2ebc0Martin Sjölund- Refactoring: Started using the BackendDAE.MATCHING for sending assignments/strong components in some places
f1f06d3559Per Östlund- Cleanup of tests in mofiles. Activated some working tests and deleted some invalid/redundant tests.
f61b7df1b8Per Östlund- Changed argument order of Util.listMap01 to conform to the map(list, function, extra args) convention.
f4cc8a7914Per Östlund- Removed the scalar field from DAE.MATRIX, because a matrix should always contain scalars.
2001c11b57Martin Sjölund- Minor refactoring, adding field for storing matching information in each eqsystem
fab1baa337Per Ö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.
3ab68877bcMartin Sjölund- Fix bootstrap compilation
d272489e09Willi Braun - get rid of tabs in source code - corrected indentation
338855a0f2Willi 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
1dcb9f5672Martin Sjölund- Refactoring of matching/index reduction to take EqSystem/Shared as input instead of the whole DAE
d77c79a6b2Martin Sjölund- Fix for exptype of crefs in connections of composite names
652905155dAdrian Pop- updates to FMI import (from Wuzhu Chen)
b193e6386cMartin Sjölund- Better error-message for createEqSystem when the system is imbalanced
3b8711424fMartin Sjölund- Fixes for bootstrapping
80b1a83abeAdrian Pop- added the first draft of FMI import (from Wuzhu Chen)
fd6be1c161Azam ZiaFixed FMU makefile.
4f1a8f0494Lennart Ochel- revised initialization -- including full support of start-values -- including scaling
6a8212703dMartin Sjölund- Do not generate code for known external C function like Modelica.Math.sin
b88c1a217dMartin Sjölund- Minor performance increase by reordering modules
38fbc3d384Willi Braun#1617 - workaround for bug 1617 restart matching if it fails after dummyder method has applied and matching is wrong.
8f1cbdd374Martin Sjölund- Added support for collapseIndependentBlocks, made the (default) preOpt modules support this and enabled the partitioning of equations by default
c619bed040Niklas WorschechFix in cpp template for accessing array elements
9e3bf3cae9Adrian Pop- set properties - small typos fixed
4e999c5da9Azam ZiaCorrected FMU Makefile.
b81bca2616Willi Braun#1614 - added fix for Bug 1614( delay with events) - added testcase
89aead2d41Niklas Worschechfixes in cpp template for Modelica functions and arrays
345db746daWilli Braun - added small fixes to isDiscreteExp
28ea55c3beWilli Braun- fixed some bugs in event handling - changed debug output for events fprintf
93295ed702Martin 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)
fbdf37d438Per Ö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).
3c1fa652ddMartin Sjölund#1609 - Fixed reductions that contain a constant if-expression
32ac96ce3eMartin Sjölund#1607 - Use a nominal type system for external objects
b34aab4157Per Östlund- Added check of function variable types.
1a4e8055dbMartin 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
79c5c24165Per ÖstlundFix for bug #1601 - Implemented support for using Boolean as array dimension.
85560f4a8fJim NutaroCorrected a save/restore issue in the adevs backend
a64bd948b5Willi Braun- added sample events support for FMU export
35b3e52fedAdeel Asghar- changeStdoutBuffer, Mingw based gcc has block buffer policy for stdout. we need to change it. Windows crap!!!!
e223f613fdPer ÖstlundFix for bug #1104 - Report error on recursive definitions.
bbf897adf8Per ÖstlundFix for bug #1605 - Report error for duplicate redeclarations in the same scope.
e390e8e062Martin Sjölund- Fix to allow reading from result-files given an absolute path
dcdf16c8ffWilli Braun - fixes for fmu export. Event-based model like BouncingBall should now work. Right now only time events are missing like sample.
97eaef03cbPer ÖstlundFix for bug #1602 - Fix vectorization of parameter arrays with slice subscripts.
960a23984aMartin Sjölund- Do not allow enum(A) to be assigned a value of type enum(A,B)
2536ca02d2Willi Braun- changed fmu export for event handling - added bug fix in event handling - removed one old unsed variable
362a6c725cPer Östlund- Fixed elaboration of scalar to work on any array, not just 1- and 2-dimensional ones.
956eb40f7ePer ÖstlundFix for bug #1598 - Implemented elaboration of matrix function.
51544515a0Martin Sjölund- Backend refactoring: Initial Equations stored with shared data (as they are not handled in the same way as the ordered eqs)
019df3a1e9Jens Frenkel- prefer as alias connector variables and avoid record or array elements, the result equations are much better readable
efb6064249Martin Sjölund- Some minor partitionIndependentBlocks changes
eccb9df547Martin 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.
f12ddbeac5Per Östlund- Reimplemented connection handling to be more efficient.
7b2e829e7bJim NutaroFixed problem in the linear system solver for the adevs backend
bcd894846cMartin Sjölund- Removed support for sum(scalar) as it is not valid Modelica
36e007de3dMartin Sjölund- ndims() now always returns constant variability (as it always returns an integer literal)
48a0d39feaMartin Sjölund- Additional sum fixes
14c8dc10beMartin Sjölund#1595 - Simplify sums better
d618069fd3Adeel Asghar- getOptionValue is changed to isOptionNone.
de132dc4c2Jim NutaroFixed initialization problem in adevs backend
6ac62c65a0Martin Sjölund#1372 - Fix codegeneration for Modelica.Math.Matrices.norm (tuple subscript among other things) + Added testcase from the bug report
d46b225e13Martin Sjölund- Added runtime function identity_alloc_real_array
5c71435ab9Adeel Asghar- getOptionValue to return NONE or SOME based on option's value.
a4862ff93fMartin Sjölund- Fix some F77 code generation issues (char* vs. char**, etc)
e1cb93735dMartin Sjölund#1591 - Don't check if a singleton record in a uniontype has the correct CTOR; we can just assume they match up
ae1c9cd57eMartin Sjölund#1595 - Do not be overly optimistic about the number of dimensions in elabBuiltinSum (now works also for 3-dim arrays)
d3e8bf2933Martin Sjölund#1594 - Fix types when simplifying arrays/matrices with 3 dimensions
ca0858f1bbMartin Sjölund- Add template error if vector() calls remain
00ef3d822eMartin Sjölund- Removed unused code
4d98cc0205Martin Sjölund#1591 - Removed calls to typeOfValue for crefs (ceval does *not* change the type)
f134901a71Martin Sjölund- Improved crefVectorize (data[:].b)[2] => data[2].b instead of previously (wrong) data[:].b[2]
62fd636dcfJim NutaroSet number of interpolation points for the adevs backend to the recommended number
1bde1e3119Martin Sjölund- Fixed potential loop with simplifyAsub
9e3b3af5daMartin Sjölund- Remove commented code
40acb4bb88Martin Sjölund- Do not do unsafe operations like saying ceval arr[i] = arr just because we are in a for-iterator scope...
0b1b5b3329Martin Sjölund#1591 - Don't convert a value into a type just to get its dimensions
27c139951cAdeel 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.
1b7761cea8Jens Frenkel- us -O2 by default for FMU
b036421dbfJens Frenkel- bugfix fmu - check sim_result before calling - clean object files in fmu.makefile
a8b3ec81cbMartin Sjölund- Backend: Trace expanded derivatives
d88b51ed3fJens Frenkel- c-interace for fmu
0b473d49afJim NutaroUpdates to Adevs template
96df5232a1Jens 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
68de431361Martin Sjölund- MetaModelica: Create a new scope when inst'ing a metarecord
828a4feba2Martin Sjölund- Backend refactoring: Moved Inc.Matrices into the EQSYSTEM (it's passed with the dae instead of extra arguments now)
2f1855c747Martin Sjölund- Add support to print zero-length arrays
d379a94d8eMartin Sjölund- BackEnd: Refactoring
bd74340511Martin Sjölund- Removed now unused linear system macros
793add88ecMartin Sjölund- Linear equation systems are now allocated on stack instead of the memory pool
d90df7d81bMartin Sjölund- BackEnd refactoring
f3ed07bf66Martin Sjölund- Refactoring
73c24ebf40Dongliang Liupdate cpp template
f39e6905d2Martin Sjölund- Backend refactoring
173cc05bf0Dongliang Liupdate cpp template
8034f362d4Martin Sjölund- Refactoring
8bc8b7caf7Jens Frenkel- check allocation of Samples in initSample - do not use large number of simulation time in fmu, causes error in allocation Samples in initSample
183a19ae71Jim NutaroAdded bound_params function to the adevs backedn
d7684500b9Adeel Asghar- removed unused functions. - fixed bootstrapped compilation for windows.
eb130e4e0cJim NutaroMore work on automatic intialization for the adevs backend
4bbd5941bdMartin 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
f79a088710Martin Sjölund#1590 - Correct truncation on 64-bit platforms
4eac2fbd69Martin 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
b0a15bc405Jim NutaroAdded automatic initialization to the adevs backend
c282f96607Martin Sjölund- Backend refactoring of ordered vars/equations
c35b42df09Martin Sjölund- boxptr_arrayGet
50509fa0d7Martin Sjölund- Fix comment for removedEqs
3f87492bd0Martin Sjölund- Fix compilation using real C-compilers
3a8bbf979cAdeel Asghar- getNthListItem function to return the particular index value of a list.
5b58e020c1Adeel Asghar- getTypeOfAny function to check the datatype. - lisCount function to return the size the list.
e15c17ef91Martin Sjölund- Removed duplicate line (same function ran twice)
dba7b34d88Martin Sjölund- Unused pattern
e5d81e8cf4Martin 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)
262a3bc55dPer Östlund- Fixed compilation of bootstrapped compiler.
378877d6edMartin Sjölund- Util.listContains -> listMember, etc
ce64bda921Martin Sjölund- Mark ceval'ed parameters as final
3332e62e2eAdeel Asghar- OMEdit connector types updates. - Users guide updated with new features of OMEdit.
24cd6c5d01Jens Frenkel- fmu: replace . with _ in MODEL_IDENTIFIER
9d4208c82bMartin Sjölund- Also return the updated cache in elabAD2...
e4ed7fd9b6Martin Sjölund- Use updated cache in elabArrayDims2
76587ad8cfMartin Sjölund- Renamed the SimCodeDump target to Dump
3d74a8e01fMartin Sjölund#1503 - Optimize elseif statements in the traversal
9be4ddfbedMartin Sjölund#1503 - Optimize if-statements a bit when traversing the DAE
dede75fc93Martin Sjölund- Indentation
8189f95849Martin Sjölund- Fix OSX compilation using macports gcc
0fe2bee22bMartin Sjölund- changeToTempDir now tries to execute the correct path; full path names returned by simulate() except when running testsuite
e55033d3c2Martin Sjölund#1407 - OpenModelica extension: Functions now accept "parameter input" and "constant input", which simply requires an argument to be a parameter/constant expression
3bfbff050bMartin Sjölund- Some fixes for loading SimpleVisual
c491293817Martin 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)
25c2a8889bMartin Sjölund- Removed unused constants
9b214bb34fMartin Sjölund- Configure with static Coin/SoQt
aa65adb351Martin Sjölund#1420 - min({time,...,time}) = time
703d525c77Martin Sjölund#1420 - Share constant literals in generated simulation code
bd7926d40aMartin 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
05abc5e7feMartin Sjölund- traverseExpTopDown: Handle DAE.PATTERN
33fb64c029Dongliang Liupdate cpp template for modelica function part
d9bb936d8fMartin Sjölund#1588 - Avoid putting crefs to empty arrays in the flat Modelica
8651ec988eWilli Braun - changed BackendDAEUtil.calculateValues to reduce Backend compile time - fixed small bug from r9599
ca19e212deMartin Sjölund#1587 - Fix codegen for allocation of 0-length boolean array
5e9228d06aMartin Sjölund- Error-handling
8e5177554bWilli Braun#1584 - simulation terminate now if non-linear systems are solved wrong
8d824b7379Adeel 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));
ad14f12f10Martin Sjölund- Spelling error not caught by RML
e577801dadWilli Braun - added bugfix for dassl tolerance - added relative comparison for testsuite
9a3ec00193Martin Sjölund#1447 - Vectorize calls with one foreach argument, even if its dimensions are unknown
8e81591839Jens Frenkel- update dynamic state selection
719afa2598Martin Sjölund#1583 - Fix codegen for asubs of if-expressions
3e96aaeea8Martin Sjölund#1582 - Don't ceval ranges that are not constant
f9e6d6718aPer Ö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.
182730c391Martin Sjölund- Configure fix
5819dfd08eMartin Sjölund- Better error message
3a509ada5dMartin Sjölund- Make searching for rml.h simpler
adfb3dc123Martin Sjölund#1562 - Some F77 fixes
1c60eb9a67Martin Sjölund#1580 - Type-check fill(), just in case someone wants a String[:,:] as array dimension :)
8cb721172cDongliang Liupdate part of Modelica function in cpp template
fffbb3ecc5Martin Sjölund#1579 - Simplify cast(fill(1,...)) => fill(1.0,...)
4c31b5e03eMartin Sjölund- Added fill_alloc_real_array
0988891b35Martin Sjölund- Added simplify rules for the cat() operator
15ec366e5bMartin Sjölund- Fix type of 2D-matrix integer matrix that is type-converted to a real matrix with first dimension of unknown size
bfafe339f7Per Östlund- Fixed bootstrapped compilation.
3e52b7228bAdeel AsgharNew README-BUILD-RELEASE-NSIS.txt file.
90ca7f268aJens Frenkel- clean up code for dynamic state selection (add comments, remove unused code, change function names)
b0db4ba77aMartin Sjölund#1578 - The cat() operator now does basic type checking :)
7206d4daf9Martin 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 :)
a031d7dadcJens Frenkel- improve dynamic state selection
04b57c47e3Dongliang Liadd list for constant variables; update cpp template for arrays
8f061bdccbJens Frenkel- handle vars with StateSelect.prefer as states
77883d13f7Martin Sjölund- Added boolean array fill function
a75415cb8aMartin 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]
23c26141e7Martin Sjölund#1576 - BinTree update using hashing
d42e30ecb5Jan SilarSimCodeCSharp.tpl - changes to zeroCrossing template - the domain zc approach
c8f6880952Martin 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
c4986d003dMartin Sjölund- Fix for deleteConnection where the equations have subscripts
9db2da6b06Jim NutaroCompleted (I think) the support for when clauses
523077eec6Martin Sjölund- Tail recursion
ee3d89b588Martin Sjölund- Tail recursion
08f4798d3cJim NutaroMore work on when clauses for the adevs backend
372af652a6Adrian 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();
6c16ff171dJim NutaroMore work on when clauses for the adevs backend
13df747810Jan SilarSimCodeCSharp.tpl - case NEQUAL added to daeExpSimRelation
fc7632f135Martin Sjölund- PartFn.elabElements tail recursion
a69084ec46Martin Sjölund- Tail-recursive listMap3
49b0dfd6fcMartin Sjölund- Reverted part of r9497 as it does something funky with the bootstrapped compiler
c5d445e06cJim NutaroStarted work on support for when clauses in the adevs code generator
fa1f725f8bJan SilarChanges to SimCodeCSharp.tpl - templates daeExpRelation and daeExpSimRelation.
e7ea550907Martin 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
e78392f1c2Federico BergeroRemoving edge function call
d6435e2316Martin 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)
ef519b7479Martin Sjölund- Removed old stuff
50d33beacbMartin Sjölund#1572 - Added check for external function output assignment
51e05564c7Martin Sjölund#1572 - Check external function for illegal sections ([initial] algorithm)
7c597c0c49Martin Sjölund- Some backend tail recursion for checkEngineV6.mos (many equations)
93de92220eMartin Sjölund- More tail recursion
924490e15cMartin Sjölund- More tail recursion
c505f91300Martin Sjölund- More functions on tail-recursive form
1ae2f26acbMartin Sjölund- DAEUtil.getParameterVars tail recursive
25af17e0faJens Frenkel- fix initialisation of models using dynamic state selection
d28fcbaad6Jens 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 :) )
08f233be3bMartin Sjölund- DAEDump.dumpEquationsStream tail recursive :)
a4dd443984Martin Sjölund- Tail-recursive splitElements
faccd9c0ffMartin 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)
85d6d37dd7Martin Sjölund- Fix for ctor index -1 (bootstrapping C runtime)
494b3108e4Martin Sjölund- Fix for bootstrapping
948d8ccaffMartin Sjölund- Fix boxptr_intMax for negative arguments
0356ec0011Martin Sjölund- Some fixes for LAPACK routines in the bootstrapped compiler
16f30cd427Dongliang Liupdate cpp template for array part
2f66a54385Martin Sjölund- Missing external argument
2c70d222c2Martin Sjölund- Fix a problem for bootstrapping
7fe9408ef8Martin Sjölund- More tail-recursion is needed than before since the size of the stack frames have grown
09c169cf5cMartin Sjölund- Made the bootstrapped testsuite more deterministic
b882cdc61dMartin Sjölund- Avoid overly optimistic switch-optimization
36a38dc88bMartin Sjölund- Bootstrapping: Fix SimulationResults.close()
e4ac0ea5a0Martin Sjölund#1568 - Check class inference for function/non-function of some statements: - reinit - when - return
acc80178c7Martin Sjölund- Fix testsuite
9c491c1137Martin Sjölund- Warning; not error
bd591d981bMartin Sjölund- Fix testsuite
93b7a2377dMartin Sjölund#1520 - Added check for shadowed function input variables before performing tail recursion optimization - Removed all such occurances from the compiler sources
0752e1b71bJens Frenkel- update new index reduction method
0c6ddd9974Jens Frenkel- Util.mo: make function listRemoveOnTrue more abstract
5f2a665c68Martin 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
ac899b3719Martin Sjölund- Fix some bootstrapping issues (unassigned outputs in external function)
208cdfd17aMartin Sjölund- Added tail recursion of match-expressions
b6c608893bMartin Sjölund#1520 - Added tail recursion of if-expressions
8dc2c987feMartin 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
b21dd74e13Martin Sjölund- Moved fields in DAE.CALL around; started tail recursion optimization
47a0be7324Martin Sjölund#1555 - Too many error messages
13dea54a12Martin Sjölund- Added warning for multiple algorithm-sections in functions
ba26c9e4feJens Frenkel- BaseHashTable.valueArrayList2: add case for empty last element from hashtable
af1d9649bcMartin Sjölund#1555 - Produce an error message for variables with unknown dimensions and no binding equation
e5fcba5a1aMartin Sjölund#1559 - Fix code generation for sum(real_array), ranges that are not integers without explicit step
9773df5aedMartin Sjölund- Removed Option (dim) from Ceval.ceval as it is no longer required
0deae749d1Martin Sjölund#1567 - Only calculate duplicate delay-expressions once
a65b92fb38Martin Sjölund#1567 - Simplify some delay-expressions
ab5415af41Martin Sjölund#1566 - Only parse a mos-file if it exists
1e0235e0b1Pavol Privitzer- C# template progress
f720dc6fb7Per Östlund- Allow if-expressions in constant functions to be non-constant, because Lookup is stupid. - Updated test suite.
027af3bd74Per Östlund- Added Absyn.Info to Ceval.Msg for better error messages from Ceval. - Updated test suite.
29375de8b8Per Ö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.
c2a177acbaPer Östlund- Added a missing space in dumping of external functions in SCodeDump.
8b3d1a2150Per Ö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.
51ff59679dPer Östlund- Added some missing bits in the runtime to get bootstrapping to work again.
dc9884df99Per Östlund- Small fix for modifiers in SCodeDumpTpl.
ba0d37cacaPer Östlund- Optimized Env.getEnvPath to speed up some Media models a bit.
a5af394c99Per Östlund- Changed instantiateModel to only instantiate the class once, and not twice if it fails the first time.
815b27c5c5Per Ö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.
eb8bcb5593Martin Sjölund#1559 - Some fixes for unknown end-expressions by removing DAE.END(), replacing it with calls to size(cr,dim)
bfa10f8890Martin Sjölund- Crazy indentation, tabs
a3d29836b0Martin Sjölund- Add checks for record/connector containing algorith sections
d688cabdccMartin Sjölund- Changed class inference for found equations,constraints slightly (all in one record)
c2b717b868Per Östlund- Changed print in Types.typeToValue to failtrace.
7335ea970fPer Ö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.
f936496c5eAdrian 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.
4a4fe63885Adrian Pop- fflush(stderr);
008a480accNiklas Worschechsmall fix for typo in event iteration of cpp simulation runtime
baaec60f3cJim NutaroAdded support to the adevs code generator for mixed nonlinear systems.
23ac647eb6Per Ö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.
091670f5e2Niklas WorschechAdded new Euler methods to cpp simulation runtime
f4b9d88579Adrian Pop- C comments not C++ comments in a C file - set some vars to 0.
775f1ffc68Adrian 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.
5fe246582bAdrian Pop- meaningful error message.
4b6d03b2daJim NutaroFirst working version of the backend for adevs
c6508117f2Adrian 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
cc0c1f43a7Per Östlund- Fixed type mismatch errors for checkModel in Modelica.Media. - Updated Modelica.Media test case.
32cffc21e9Adrian Pop- more complains :)
a1580cc8ddMartin Sjölund- Fix last commit
6ce0e5b306Martin Sjölund- omniORB configuration
5466188751Adrian Pop- update SVN props.
877f707cf5Adrian Pop- some updates to some readmes.
ae887192e6Federico BergeroRenaming Simulator class to SimulatorQSS
89e66c6cf9Mohsen Torabzadeh-Taritested the Linux/unix FMI export
dd3301026eWilli Braun - added workaround for algorithms from modelicaML models - added also a testcase for that issue
1fdf39328bAzam ZiaAdded linux compilation commands to FMU makefile.
e59c028372Azam ZiaUpdated FMI Modules. Simple models without events are working now. Removed try catch from fmu_model_interface.c as its not standard C.
107969283bPer Ö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.
dffe067cdaPer Östlund- Fixed invalid type in BackendDAETransform. - Updated testsuite.
2f56d942aePer Ö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.
b256c6f323Adrian Pop- small improvements to Relation.mo
c88cb2c7b9Jens Frenkel- update new index reduction method
08153c5bf1Per Östlund- Get rid of annoying types.
eb8fd4c9cePavol Privitzer- updated C# template - fix C template: use Util.escapeModelicaStringToCString() (instead System.escapeString()) to escape also \n in comments of SIMVARs in globalDataVarInfoArray() template
72e099e395Adrian Pop- found another bug in the RML compiler, it doesn't check for duplicate names, just takes the last one.
1f9812166fAdrian Pop- a generic relation Relation.mo between two objects.
76662889bfAdrian 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.
dc17354f54Per Östlund- Print attributes for derived classes in SCodeDump.
5050a94df7Adrian 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.
9235d769caFederico BergeroAdding simulation_input_xml to the object list of the QSS runtime
ba160a3277Jens Frenkel- bugfix getIndexReductionMethod
1bdb63570eJens Frenkel- minor changes to reduceIndexDummyDerX
1a42c08dfdMartin Sjölund- Use configured flags
8ac6f1077aPer Östlund- Some SCodeDependency fixes for modifiers and derived classes.
86cd2567a7Per Östlund- Added more error checking for size.
deb79237afJens Frenkel- bugfix fmi, set and get real variables - ling FMU not with interactive
f1e8bf24acDongliang LiAdd list of string in SimVar, for the number of element in array
53a3c19e9fNiklas WorschechFix for calculate zero crossing index in collectZC and collectZCAlgs
69943013e2Jens Frenkel- change MIXEDEQUATIONSYSTEM, now it is easier to handle algorithm and arrayequations in compination with discrete equaitons
71a22c506dJens Frenkel- add type for MIXEDEQUATIONSYSTEM to StrongComponent
05ee96ba05Martin Sjölund- Check for expat.h
c8d9c43864Jens Frenkel- use flag for debug print in reduceIndexDummyDerX to run testsuite
e44740f408Jens Frenkel- add error msg for expressions "der(der(DAE.CREF(_))", see Bug [#1551]
779da9d999Jens Frenkel- enable optimisation module constantLinearSystem by default, passed testsuite without errors
6762574bfaJens Frenkel- bugfix constantLinearSystem, works now for model from bugtracker
c859da4738Martin Sjölund- configure: Added flag with-static-sqlite
781997c797Jens 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
0185aaa6e6Adrian Pop- .pro.user files should not be in Subversion as they are different for each user. - add OMPlotLib.pro to OMTools.pro
fb1c0ad70ePer Östlund- Don't link with -lregex on Linux.
04012d706eAdrian Pop- link with -lregex and -lexpat on Linux too.
3e680ed76cAdrian 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.
30e2616a9fMartin Sjölund- Added testcase for using initial() in blocks that are constant during the initial step
bf7109e7e4Martin Sjölund- Fix unparsing of MSL 3.2
b2609f2ff7Martin Sjölund- SCodeUtil: Give errors if Absyn to SCode fails
044d2d8ec0Per Östlund- Optimized Types.elabType by relaxing equality checks for types.
67aa41eaa8Martin Sjölund- Removed Interactive list(cr) functions as their result differs from CevalScript * TODO: Make sure OMEdit list() command handles strings correctly
e287609dddPer Östlund- Some small SCodeDumpTpl fixes.
dab454f466Martin Sjölund- Simplify also (e*e1)+(e2*e)=>e(e1+e2)
3b3acac66aJens Frenkel- update CMakeList files
de74090919Per Östlund- Added missing SCodeTV.mo. - Normalised Absyn.ComponentRef.
60e8daf2eaMartin Sjölund- Add simplification (e*e1)+(e*e2) => e*(e1+e2) (for +/- and swapping argument order)
00b5b1d95eMartin Sjölund- Changed order of some simplifications (commutative rules)
2098ee0e61Per Östlund- Implemented SCode dumping template. - Changed some functions in SCodeDump to use the new template functions. - Updated test suit.
f556790c62Martin Sjölund- Added ExpressionSimplify.simplifyBinaryCommutative - To be used for commutative rules so we do not forget these cases in the future
57afb3f14fMartin Sjölund- Fix compilation
222ed2d8b8Jens Frenkel- start to move solving of constant linear systems to BackendDAEOptimize
b9416e9b05Martin Sjölund- simplify: exp * sqrt(exp) => exp^1.5, exp^exp2 * sqrt(exp) => exp*^(exp2+0.5)
e6761593eeAdrian Pop- fix quoting of XML strings in SimCodeFMU.tpl
a94b8fa241Adrian Pop- small fix for modelIdentifier in FMU export.
0b9d8941c7Mahder Alemseged Gebremedhin- a note that OMDev needs to be updated
822877035aJens 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
8c486f1cafAlexey LebedevBase of modification processing for non-expanded arrays.
71a7143b52Lennart Ochelreorder include files to avoid unknown references
bf514a58b7Martin Sjölund- simplify sin^2(x)+cos^2(x) = 1
9a4e01b352Martin Sjölund- Added simplify rules for some trig.identities * asin(sin(x)) => x * sin(2*x) = 2*sin(x)*cos(x)
4552e821aaMartin Sjölund- Some simplification rules, e.g. sqrt(e)^2.0 = e
599ce04c81Per Östlund- Translate Absyn.ConstrainClass into SCode.ConstrainClass in translateAbsyn2SCode. - Updated some redeclare test cases.
56010579f3Martin Sjölund- Link with libsql3
625bb6b422Adrian Pop- moved trunk/OMTools/bin and trunk/OMTools/qtdlls to OMDev/tools/OMTools/
7aebef9806Adrian 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
be4552ca77Martin Sjölund- Moved part of deinitializeDataStruc from SimCode to simulation_runtime
9ed4b378e7Martin Sjölund- Moved part of initializeDataStruc to simultion runtime instead of generated code
db180d4ec2Per Östlund- Translate Absyn.ExternalDecl into SCode.ExternalDecl in translateAbsyn2SCode (because Absyn.Annotations are annoying).
3e1463f55bMartin Sjölund- Removed getNameReal, etc from SimCodeC.tpl
a3f7696dc6Martin Sjölund- Don't link readline with omc
c6c7527ac2Martin Sjölund- configure: include lp_lib.h or lpsolve/lp_lib.h depending on platform
8a36c715bbAdrian 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)
b3db90114cWilli Braun - added fixes for initialization (Bug [# 1537]) - fixed builtin function semiLinear()
48aa63bd6dAdrian Pop- YOU NEED TO UPDATE YOUR OMDEV FOR THIS! - linked with static libregex. - Error.mo feeding my alignment issues.
d393ac198aMartin Sjölund- Forbid assignment to inputs when using +g=Modelica
4aa74350e2Adrian 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).
01d3515c5fMartin Sjölund- Fix for omlibrary being updated properly
732a6522d4Martin Sjölund- Integrated the uses annotation with the loadModel command
2d3378abccMartin Sjölund- Fix read_matlab4.c
d6b5e90a2fMartin Sjölund- Makefile dependencies
b649ab792aMartin Sjölund- Added description to matlab reader
e443e0cc84Adrian 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.
ae268a2115Martin Sjölund- OMEdit: Load the ModelicaReference library (latest release preferred over 3.1 version)
fd0de59449Martin Sjölund- Prefer ModelicaServices 1.0 over 1.1 (MSL 3.1 > MSL 3.2)
97362566ebMartin Sjölund- Fix priority MSL 3.1 > MSL 3.2 - Don't always copy omlibrary (test -d instead of -f)
11273d1fc0Martin 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
1f9b57e8c4Per Östlund- Renamed tplAbsynExpEEquationLstLst to elseBranches in SCode.EEquation.EQ_WHEN.
2558fdd88ePer Östlund- Fixed SCodeFlattenRedeclare.addElementRedeclarationsToEnv for components.
f6ebe49c50Adrian Pop- add SCodeFlat.mo to compilation. - fixes for MinGW compilation of systemimpl.c
cf2cb8f7e3Martin Sjölund- Added extra argument to loadModel(Class,{"3.1","default"}) - We can now store multiple versions of the same library on the MODELICAPATH
10890d8a02Adrian Pop- forgot to add two files in the previous commit.
80f65f7e59Adrian PopFixes for bugs: #1430, #1432
52d049ddccParham Vasaielyfix: changeParameterValues fix: changeSimulationTime
99b95da8e6Pavol Privitzer- update of C# templates: removed Sample zero-crossing generation
7bfbc41404Per Östlund- Fix for instantiation of empty arrays.
27d4f5e5dcPer ÖstlundFix for bug #1529: - Don't evaluate non-fixed parameter subscripts. - Added test case mofiles/NonfixedParamSubscript.
b1f67dd944Dongliang Lifixed errors for revision r8974
b9f8fd8ae1Per ÖstlundFixes for bug #1528: - Add simplification rule pre(constant[index]) = constant[index]. - Implemented code generation for cref asub with one subscript.
94ef3f59b4Per Ö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.
b57d7e4488Parham Vasaielyfix: reinitialization after stopSimulation fix: wrong references on ssdArray update: setResultData and getResultData update: resetSSDArrayWithNullSSD update: initializeSSD_AND_SRDF
6ff0245484Adrian 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.
2ba6ed755eMartin Sjölund- Added rule to simplify x+x+x-x-x=x
42ef95b0b1Jens Frenkel- continue to move analysation of strong connected components directly after blt algorithm, change modpar and TaskGraph to use new strongcomponent type
4d1cbd3d0dAdrian 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.
b4b0392239Jens Frenkel- continue to move analysation of strong connected components directly after blt algorithm
5f5e414f52Jens Frenkel-start to move analysation of strong connected components behind blt transformation
6d8d04bee4Per Östlund- Element redeclare fixes in SCodeFlatten. - Updated Modelica.Media test case with new errors and enabled now working WaterIF97 example.
f0fd4424afMartin Sjölund- Use simplify1 instead of simplify as it is marginally faster (simplify does nothing extra for DAE.CALL and DAE.ASUB anyway)
7d3842026bMartin Sjölund- Disable debug print that fails 30% of the testsuite
c7aa9199efParham Vasaielyfixed stopSimulation
4eb13170bcParham VasaielyDebug stopSimulation function and changeSimulationTime v2
f8c62c884dMartin Sjölund- Fix compilation (merge conflict that was ignored instead of resolved)
e998252dafParham VasaielyDebug stopSimulation function and changeSimulationTime v2
88793abde5Parham VasaielyDebug stopSimulation function and changeSimulationTime v2
e8c0ca008cAdeel Asghar- Fix abs_path for Windows-msys.
5eed94a9a2Martin Sjölund- Added optimized codegen for ASUB(DAE.ARRAY(__),{index}) (only evaluates the index we are interested in)
5469f79902Martin Sjölund- Fix compilation
c78932da2dParham VasaielyDebug stopSimulation function and changeSimulationTime
5bf4aeecb7Martin Sjölund- Use abs_path or gdb gets cranky
d20110322ePer Östlund- Propagate replaceable/redeclare prefixes for modifier elements from Absyn to SCode.
4ab151fb5fMartin Sjölund- Fix stringCharInt returning negative integers
127a714d52Adeel Asghar- Changed Cwd::abs_path to File::Spec - Added the sub routine for trimming the string, otherwise the regular expressions fails.
920892ff0bPer ÖstlundFix for bug #1526: - Implemented support for logical operations (and, or, not) on arrays. - Added test case mofiles/ArrayLogic.
b2186fe8fcPavol Privitzer- updated C# templates - little re-formulation of some Susan errors
935d00fe3bPer Ö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.
61e5592e14Martin 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
3364065f40Martin Sjölund- Added lpsolve55 binding to System.mo
06d706a014Per Ö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.
e1dccc47a6Per ÖstlundFix for bug #1516: - Fixed bad indentation in Dump. - Updated test suite.
a3ddf9cf07Martin Sjölund- Added simplify rules for change(constant) and edge(constant)
b93a1ba247Martin Sjölund- Fixes for CombiTable1Ds
b49347f4caPer Ö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.
8f1ffda909Willi Braun - added fix for Bug [# 1508] terminal() support. - moved mosfiles-msl22/LossyGear1.mos to failingtest
57403244a6Martin Sjölund- Revert revision r8974
ab8962104eMartin Sjölund- Disable debug trace
7f0ce46de2Per Östlund- Removed some inline annotations from SCode, because apparently the bootstrapped compiler doesn't like them much.
4b1b0d1d17Adrian Pop- remove duplicate declaration.
08ed23c8baDongliang 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.
802882cf92Martin Sjölund- Fix bootstrapped linking
36f52f8dbaMartin Sjölund- For safety, include math.h
ad0775d165Martin Sjölund- Check if install directory is sane
478cb3e504Martin Sjölund- Fix for Linux versions that do not include NAN/INFINITY
4bddb63370Martin Sjölund- Fix for translateFMU
bc3f969805Martin 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
740949c19cFederico BergeroIncluding the cross detector in the makefile
7c0b54a51dFederico Bergero* Updating the generation of the pds and code
c695b434d1Federico BergeroUpdating the generation of the pds and code
e165ab4ee7Martin Sjölund- Made headers more C-friendly
8612206eaaFederico BergeroImplementing QSS2
314180103aMartin Sjölund- Fix compilation
fc764b8721Martin Sjölund- Add Lapack libs to bootstrapped runtime
d457e2eae5Niklas WorschechModified cmake files for build of the Modelica system with generated make file
0b23a14e5fMartin Sjölund- SimCodeDump: Print solved linear eq.syst
9ed804c8eeMartin Sjölund- Fix for OSX
0717b1fa9aMartin Sjölund- Bootstrapped compilation
6245b06a46Jens Frenkel- continue new DAEHandler, works now for multibody elementary pendulum example
4164f59471Martin Sjölund- Retain elementsource for linear system of eq's
ba572492bcMartin Sjölund- Evaluate constant linear equation systems in SimCode (wrong place, but that's where it currentlt fits)
f4688aa30eMartin Sjölund- Fix for (some) polymorphic functions using array
d576632d1eMartin Sjölund- Solved segfault when creating 1-long strings where the character has the high bit set (unsigned/signed indexing issue)
a06c70b180Federico Bergero* Updating structures for the stand alone solver
b6da021f2fFederico Bergero* Adding discontinuities
24d584812fJens 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)
412f6bbf4aPer Ö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.
ff55efa962Jens Frenkel- update Workplan-status-estimates
195abdbe4eMartin Sjölund- Fix initial value for rhsConstant (previously always returned false)
322f9a0886Adrian Pop- fix compilation error on Windows.
e8f4a04063Martin Sjölund#1512 - Added API call solveLinearSystem (same functionality to be used in the backend later)
c1606e7fe1Martin Sjölund- Use calloc+free instead of new+memset+delete
0cd1cc6b38Jens Frenkel- BackendDump: dump also whenclause - continue with new index reduction method, works now for simple pendulum example /testsuite/mosfiles/pendulum.mo
3a08d790e0Xenofon Florosbug fixed in creating empty DEVS structs
c7f3db729bMartin 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
1b23e50117Martin Sjölund#1518 - Implemented faster power operator for known integer exponents using squaring
7fbbbd51f2Martin Sjölund- Added codegen for x^0.5 = sqrt(x) instead of pow(x,0.5) as it is faster
ab0cc371d1Jens Frenkel- continue new DAEHandler
d90fa6aac9Jens Frenkel- continue with new index reduction method
2afc1b0124Xenofon Florossome more optimizations
ea125f14bfFederico BergeroRuntime for the QSS methods
88a0315575Federico BergeroCode generation for the stand-alone solver of QSS methods
4a5b83f22dXenofon Florosoptimizing-using tail-recursion in functions
7bf4d71f06Martin Sjölund#1517 - Made Integer^Integer return a Real number as per the Modelica spec - Added simplify rule (e1^e2)^e3 => e1^(e2*e3)
5ee65d20b4Adrian Pop- small comment change.
ceff61011dAdrian Pop- small naming change and some other small things.
0b60ab9a1eAdrian Pop- space before comma.
7cdfeabba9Jens Frenkel- continue new DAEHandler
1f9a798915Jens Frenkel- update array only if element is updated
9d7562d4caAdrian 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).
5355467cd8Martin Sjölund- New +d=execstat; defined in Debug.mo and includes memory consumption
197e175062Jens Frenkel- continue with new index reduction method - add function setIndexReductionMethod to ModelicaBuiltin
7a82a8f0c9Martin 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)
1d08c184a8Per ÖstlundFix for big #1224: - Added dumping of function comments to DAEDump. - Updated test suit.
eeee312e52Per Ö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.
6c79040831Per ÖstlundFix for bug #1492: - Only propagate final prefix if the component is declared final.
d86729f860Martin Sjölund- Added builtin function stringReal
61e1aea772Martin Sjölund- Fix bootstrapped compilation
c8b0f5db2aJens Frenkel- improve DAEHandler interface - start to implement new DAEHandler
50813533c6Martin Sjölund- Some README updates
034ee89d8aMartin Sjölund#1511 - Replace ASUB/CREF subscripts in BackendVarTransform - Do not perform empty backend variable replacements
351d55384bMartin Sjölund- Also traverse cref subscripts bottom-up
a33997d621Martin Sjölund- Dump linear equation systems
5e78c504dfMartin Sjölund- Fix compilation
29702b7cd5Martin Sjölund- Relax patternm checks
c72de263a0Martin Sjölund#1510 - Check that a CALL pattern defines all fields
52203b5b74Adrian Pop- fixes to Compiler/BackEnd/BackendQSS.mo to be able to compile. WARNING! i don't know if my fix is correct!
5f2e4583b9Xenofon Florossmall changes
aa9716cde0Xenofon FlorosDEVS structure generated correctly for whens-reinits-samples This is only a first version. To be updated soon.
8d01c27625Martin Sjölund- Fix compilation
ebdcf57795Martin Sjölund- Generate residual functions for nonlinear,mixed systems
5924dbb320Per Östlund- Better element redeclare support in SCodeFlatten.
640ba8c827Martin Sjölund- Create external objects one by one and free the stack after each object has been initialized
b11b429ef3Adrian Pop- use gcc instead of g++ because of c++ mangling.
1c0eb55bf7Martin Sjölund- Use correct extrapolation for CombiTable1D
5e47e9b92eMartin 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)
f447ed658eJens Frenkel- speedup when no optimisation is done
339322cc00Jens Frenkel- compare calls to Debug.fcall and Debug.fprint, --> speedup
4d2f7c5bd5Adrian Pop- fix bootstrapping on Windows.
ecd7cbba7eMartin Sjölund#1509 #1085 - Make elabArray a little smarter (for Digital)
4c6737583bJens 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
01d2bb776dMartin 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)
f0f8eab100Per Östlund- Fixed AVL tree in SCodeEnv so that it's correctly balanced.
81ccc53d52Martin Sjölund- Set linker for OSX qtclients - Fix compilation on OSX/g++-4.5
f6e0140fecMartin Sjölund- configure libf2c
f5c2a2b10dMartin Sjölund- Use the configure-script to create the LinkMain.makefile
dc15eec582Martin 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
aa6a7b5f87Martin Sjölund- Fix for clean, parallel makes :)
305031210aMartin Sjölund- Use the configure C++-compiler as the default compiler
1ae726d8baMartin Sjölund- Fixes for OSX
3bae3e96d7Martin Sjölund#1509 - 40% speed-up of Modelica.Electrical.Digital.mos by elaborating a matrix once instead of twice :)
1c2a4089e8Martin Sjölund- Use the proper AssertionLevel name in ModelicaBuiltin.mo
02b25dd83dJens Frenkel- remove unused code - bugfix BackendDAEOptimize: remove unused parameter and variables, traverse also whenclauses
72bb96fa40Martin Sjölund- Fixes for modpar+bootstrapping
15c34446bbJens Frenkel- Simcode: use only vars from equations for subsystems
8fa44e1eabMartin Sjölund- Build the difftool by default
b7c336a341Martin Sjölund- @DEFS@ is unused, so don't clutter our make logs with it
81a31541e7Martin 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.
59e29ccf37Per Ö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.
376d175d4dPer Östlund- Removed erroneous check for non-replaceable class definitions in Inst. - Added test case redeclare/FinalRedeclareModifier2.
89d3441257Martin Sjölund- Some simple changes to makeProductLst
282603e256Martin Sjölund#1507 - Made ExpressionSimplify more stable
d9a1c37d9dMartin Sjölund- Use @CC@
7fce268a4dMartin Sjölund- Update README
2ffeb31bf5Adrian Pop- make BaseHashTable.valueArrayList2 tail recursive.
a0a9f3f19cAdrian Pop- updated Compiler/FrontEnd/SCodeHashTable.mo
4392dec3faAdrian 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.
8659c1b99bMartin Sjölund- Bugfix simplify() - only return true if the expression changed
2ea91aa618Jens Frenkel- CevalSrcipt use BackendDAEOptimize.countSimpleEquations for checkModel (speedup testsuite)
2aab275231Jens 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.
ad9067f321Jens Frenkel- DAEUtil.mo: add function getNominalAttr - BackendDAEOptimze: - add optimisation module to remove unused parameters ("removeUnusedParameter") - add optimisation module to remove unused variables ("removeUnusedVariables")
20a5658771Per Östlund- Check for protected or constant elements when handling redeclare.
66c19a3f54Jens Frenkel- add heuristic state selction rule "state=var+param" - Expression.mo: add function traverseCrefsFromExp - fix testsuite
81e3f4930eMartin Sjölund- Use @CC@
9139e42ebaMartin Sjölund- Add wrapper to traverseBackendDAEExpsEqn to reduce the code needed to maintain the compiler
2fd7adb8a9Martin Sjölund- BackendDAEOptimize.replaceExp now traces symbolic operations
365c288870Per Östlund- Implemented checks for correct prefixes when redeclaring elements in modifiers. - Added test cases to test the new error messages.
050cb68d93Martin Sjölund- Handle removeEqualFunctionCall for unary minus properly
b23f6149d9Martin Sjölund- Force 64-bit double precision only for the files that require it
ba3c5deec2Martin Sjölund- Fix compilation
b97d88baf0Jens Frenkel- use fixed attribute for stateselection (fixes msl31/simulation)
8cf994c194Per Ö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.
487f7a7484Martin Sjölund- Some extra type-casting for C++-mode
601d72329bWilli Braun - added bugfix for Bug [# 1501] and corresponding testcase - clean up directory mosfiles
b1587761c8Per Östlund- Cleaned up SCode.makeEnumType.
2d410db676Per Östlund- Enabled SCodeFlatten by default. - Updated the test suite to comply with SCodeFlatten.
25b333862cJens Frenkel- use derivativeNamePrefix from DAE - use function ComponentReference.crefPrefixDer
5d15256ba2Martin Sjölund- Use @CXX@ for C++ when linking omc
f0c913cde1Martin Sjölund- Add @CFLAGS@ to more Makefiles - Use gcc instead of rmlc to compile generated C-sources
a35a731be5Martin Sjölund- Add tracing of symbolic operations for derivative - Consolidate multiple substitutions into a single operation
ff321a5194Niklas Worschechadd CMakefile to build generated Modelica System
bbf48c81c9Jens Frenkel- speedup implementation of BackendDAEUtil.incidenceRow, around 10% for DoublePendulum example
796d5721ddMartin Sjölund#1502 - pre(constant) = constant
69b725a264Martin Sjölund- Track some symbolic operations for index reduction
314463b43eJens Frenkel- remove old unused code
fb700187caMartin Sjölund- --with-paradiseo=yes is now default instead of =check (yes now does what check used to do)
1f5c97c779Jens Frenkel- improve SimulationResultCompare
cfb350e5e6Jens Frenkel- improve SimulationResultCompare
a79bdd8ecfMartin Sjölund- Configure using --with-qwt
1772952f88Martin Sjölund- Added error-messages for invalid lhs of external declarations
cb65eaaf1dMartin Sjölund- Types.unparseType now prints the name of T_FUNCTION types - External object constructor/deconstructor is now fully-qualified
31c17a20c5Martin Sjölund- Added support for array-expressions used as input to external "C" functions/objects - Support for F77 functions that take arrays
ce32b1dc5fMartin Sjölund- Add default declarations of external object constructor/deconstructor
ca1339ec0eJens Frenkel- bugfix for last commit
b786569ed2Martin Sjölund- Fix compilation + tabs
632de65569Jens Frenkel- bugfix infinite loop
8df8bb9f91Jens 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
aa5a7af1e0Xenofon Florosgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8729 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
5140748cfbJens Frenkel- fix some bugs to extend arrays only when necessary - add msl31 simulation to slowlogs
f270b01e16Jens 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
ae4a261ed2Martin Sjölund- Added some extra checks in SimCodeC.tpl
500d33dcb7Jens Frenkel- fix some bugs to extend arrays only when necessary - move minmax and nominal asserts to simcode, the check is still done in BackendDAECreate
c8be694676Per Östlund- Added analysis of external declarations in SCodeDependency.
9c258b0692Per Östlund- Removed abuse of external declaration to mark class extends in SCodeFlatten. - Added some comments to SCodeFlattenRedeclare.
b4677441efPer Östlund- Changed SCodeFlattenImports to also update and return the environment.
c8fbbfd74cMartin Sjölund- Use $(MAKE) instead of make (enables parallel make)
28aa187d77Martin Sjölund- Improve performance of the Interactive API by adding initial support for SCode caching
555475ed94Jens Frenkel- do not add variables with stateSelect=StateSelect.prefer to states - update testsuite
3ac3548f84Martin Sjölund- OMEdit does not depend on OMNotebook anymore
4cd8255631Jens Frenkel- bugfix removeSimpleEquation, do not remove toplevel inputs
47066f2822Per Ö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.
872e829636Martin Sjölund- loadModel(Complex) in OMEdit - Fix unparsing of operator XXX in OMC
f47093da37Per Östlund- Fixed indentation of record constructor result parameter in DAEDump.
b312514193Federico Bergero* Implementing discontinuities
d6e7781e5bJens Frenkel- bugfix fmi - add test for fmi export
66f31fab7dXenofon Florosbug in generating connections fixed
867ffa377bMartin Sjölund- Fix SimulationResultsCmp.c (use 2-pass algorithm with only 1 malloc) - Fix some read/write errors (strncmp,etc)
5bdbb7e98cAdrian Pop- handle DAE.ENUM_LITERAL in several places where it was missing.
c3e989f80aJens Frenkel- BackendEquation.mo: bugfix equationToResidualForm - PartFn.mo: remove DAEDUmp - SimCode: get rid of BackendDAEUtil.equationList
c5cf5354a4Per Ö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.
c9344955c7Jens Frenkel- BackendDAEOptimize.mo: - add failtrace prints, add missing case for traverseIncidenceMatrixList - bugfix SimulationResultsCmp.c - update msl31 simulate
9c1bc68774Martin Sjölund- Added support for #define-macros used in external "C" functions
d50ad5173bJens Frenkel- bugfix SimulationResultsCmp.c - update msl31 simulate
a96b535413Adrian Pop- sane naming - a missed \" inside Env.mo comment killed the parser (no error).
fed024eed1Martin Sjölund- Remove references to Cygwin in the README
4ae387b90aMartin Sjölund- Fix compilation on Linux (assert.h) - Expected testsuite results - Remove tabs
fb3dd3a78bJens 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
c436c10c8cAdrian PopFixes to bug: #1488 - propagate final correctly to the back-end and the DAE. - testsuite/mosfiles/FinalPropagation.mos
7a7e2c3f62Adrian 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.
d7292c4a6dJens Frenkel- bugfix SimulationResultsCmp.c - update msl3.1 simulation tests
06cfc2a2adJens FrenkelBackendDump.mo: dump final prefix
1d79b465e0Xenofon FlorosAdded structure/blocks for zero-crossings and cross-detectors
3acad5dffeWilli Braun - added some bugfixes for initialization and update some testcase to currect values
677af61947Jens Frenkel- handle events better in SimulationResultsCmp.c
b4673301d7Federico Bergero* Updating template for the QSS methods * Conditional compilation of some part of the global data of the cpp file
1dab30d797Jens Frenkel- bugfix simulation_result_mat
20c886092eJens Frenkel- add missing try catch block
6fd9b0914eMartin Sjölund- removeEqualFunctionCalls now also finds non-CALL expressions
4f15dd7ee1Jens Frenkel- BackEnd/BackendDAEUtil.mo: change implementation of updateIncidenceMatrix -> speedup testsuite
2760f3b032Jens Frenkel- add abstol parameter to Simulation Result compare - Bugfix remove Simple Equations (this should speedup testsuite)
4cc96f2a58Martin Sjölund- Changed simplify1 to a fixpoint algorithm - No testcase changed result, but more cases in the backend are now covered
769d81378dAdrian 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.
47b0b5f35eNiklas Worschechchanged make files for cpp simulation runtime to cmake removed all old build files
1eb0bfbedeMartin Sjölund- Fix compilation
1f8430185cMartin Sjölund- Added API calls parseString and loadString (analogous to parseFile/loadFile)
9165321a7eJens 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
0b60fe6ce0Martin Sjölund- Fix for Windows hanging when trying to parse 0-length files
cff4007252Federico Bergero* Updating the QSS structure and c_runtime
c5dd738527Jens Frenkel- bugfix BackendDAETransform: traverseBackendDAEExpsEqn and traverseBackendDAEExpsWhenClauseLst
111bbb6b0fXenofon FlorosDEVS structures generated for NON-discontinuous systems
a6e1a0d23fMartin Sjölund- Remove garbage
96f010d73bMartin Sjölund#1484 - Do cyclic dependency checks also for conditional expressions of parameters and constants
64a0b3dd72Martin Sjölund- Changes to OMPlot (more sane interface now)
fa17737f9dPer Östlund- Fix invalid free.
235f587230Federico Bergero* Updating the SimCodeQSS template
699bbd6d52Jens Frenkel- Main.mo: update usage - SimCode.mo: delete unused code - BackendDAEOptimize.mo: delete unused code
929b0c2469Jens Frenkel- remove old module removeAliasEquations, functionality is now part of removeSimpleEquationsX
622abd8a53Jens Frenkel- use removeFinalParameters,removeSimpleEquationsX,expandDerOperator as default preoptModules - use lateInline,inlineArrayEqn,removeSimpleEquationsX as default pastoptModules
00f4f91900Jens Frenkel- bugfix for compare SimulationResults , Dymola uses a[1, 2], OMC use a[1,2] (no white space)
3940412688Martin Sjölund- Remove the crap known as tabs from C sources
b872312296Martin Sjölund- Fix compilation
f4f60c56eaFederico 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)
80f7527a9fJens Frenkel- bugfix read_matlab4.c - bugfix compareSimulationResults
537e594b3fMartin Sjölund- Installation of manpages (added the old ones from 1.4.5 to svn)
099cddaf89Martin Sjölund- Made the matlab reader/writer more portable (int32_t instead of int) - Use calloc+free instead of new+memset(0)+delete[]
5a23323fe4Martin Sjölund- Get rid of warnings
9537409c17Jens Frenkel- SimulationResultsCmp.c: - write result/log file
6012c8cb21Martin Sjölund- Fixed a type error in compareSimulationResults C-function
97e8f1831aJens Frenkel- add function to compare simulation results (May not work yet,ToDo: test,remove debugprint)
74d246c9bcMartin 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)
60950a13ecFederico BergeroAdding functions to the QSS backend
9cd05e0fb6Federico BergeroUpdating QSS templates
bcd0cc1dd4Martin Sjölund- Simplify after doing type-conversion
ccdddf9449Martin Sjölund#1477 - Generate proper array crefs for a[1].b.c (previously it turned into a.b.c)
027b2999d4Martin Sjölund- Added information about the inline operation to SimCodeDump - Solved memory leaks and segfaults for read_csv
52b9f5a738Jens 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
32205946ddMartin Sjölund- Added SimCodeC.tpl error when we fail to write an initial value to the text-file
81b7d98063Martin Sjölund- Fix testsuite
9fd9b2eafcAdeel Asghar- Added the CSV file reader that returns the list of variables for readSimulationsVars.
b412a5dd7fJens Frenkel- added support for dymola mat files
7d68d0f7e5Federico Bergero* Adding an extra argument to the template function to pass QSS info
469933933fFederico Bergero* Updating the QSS template and adding functions declarations in the SimCodeTV
d768433f73Federico Bergero* Adding functions needed by the template for QSS methods
ad5ea08c0bMartin 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--
772acb9966Martin Sjölund- Added simulate() option cflags = "" - Also added a field for this in the OMEdit simulation widget
059b1a6486Jens Frenkel- BackendDAEOptimize.mo: - replace in all equations exclude the "der(a) = b" equation der(a) with b - add module to remove final parameters
8af0558937Martin Sjölund- Disable running perl on normal simulations
6e087b4072Martin Sjölund- Unescape comments in Interactive.getClassComment
e3b0143232Martin Sjölund- Class comments
b0d15c4807Martin Sjölund- Add class comments in Susan-generated code
52d2d1bed5Martin Sjölund- svn:keywords
9f2f24d994Martin Sjölund- svn:keywords
d065ef7dedMartin Sjölund- Some class comment changes. Some svn properies set.
c1c5a6465aMartin 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
0473f21d51Martin Sjölund- Added support for variables with quotes in the name
e5391b2b3fMartin 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
b96c79fbe7Martin Sjölund- PlotWindow now uses time as index=1, so the scale is correct
422ebcd087Martin Sjölund- Store negative alias variables in a separate array in the Matlab reader
09e6d3144dMartin Sjölund- Fix for mat-files that contain alias of the time-variable
ae30379fabMartin Sjölund- Fix indentation (no tabs!)
455641da3eJens Frenkel- improve matlab file writer/reader to handle alias variables accurate
da03266109Martin Sjölund- Added support for plot(der(x)) type-checking
98e8aef82aMartin Sjölund- Made System.spawn return 0 on success in Linux - Added sane minimum width/height for OMPlot
8fa923c368Martin Sjölund#1472 - Fixed wrong solving of expressions where one factor is 1/x - See testsuite/mosfiles/TestSolve.mos
875e474cd7Martin Sjölund- Print some more debug information
ea5c2849a1Martin 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
5e72d747deJens Frenkel- bugfix simulation_result_csv
1bc9bba4c1Jens Frenkel- BackendDAEOptimize: -improve merging of start values
594521e396Pavol 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).
ba7d37d542Xenofon Florosprints removed
1af3c9da2eXenofon FlorosDEVS Structure generation for NON-discontinuous models (probably correct)
66b1de93c8Martin Sjölund- Disable type-checking of functions in the CORBA loop
e705affe86Martin 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
43d582e495Per Östlund- Some small fixes in SCodeFlatten.
bc9497a0c9Martin Sjölund- Run simplify on any algorithm statement generated
14f63d3624Jens Frenkel- BackendDAEOptimize.mo: - removeSimpleEquationsX now removes all time independent equations
5f9defac36Adrian Pop- updates to mark-and-sweep GC c_runtime/meta_modelica* - fixes for VS to Compiler/runtime/systemimpl.c
d3ad836fbfAdeel 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.
410b0c70b2Jens Frenkel- Bugfix removeSimpleEquationsX, now testsimulation passes all tests
a3b28a14ddMartin Sjölund- Disable simplify after elaborating reductions
f647c6aac8Martin Sjölund- Disable running simplify after each unary elaboration - Traverse each instantiated equation using simplify1 - cevalIfConstant on VAR variability expressions now does simplify1
12953dad39Per Östlund- Fix small mistake in previous commit.
8110c5f593Per Ö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.
c14a5defeeMartin Sjölund- Guard against some div-by-zero simplifications
a77f153cb6Martin Sjölund- Check result of spawnCall in plot3 case
abaa59938dMartin Sjölund- Changed ExpressionSimplify to use traverseExp instead of its custom traversal
a8f22b2445Martin Sjölund- Make plot3() match plot() API
1fbab5ed93Martin Sjölund- System.spawnCall no longer waits for the process to finish on Linux
45490d23afAdeel Asghar- Fixed the OMPlot path.
73cc6b08fcAdeel 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
0c30aa889dJens Frenkel- Bugfix removeSimpleEquationsX
d982adc7a4Federico BergeroFixing indentation (using spaces)
202d14e972Willi Braun - added bugfix for parameter initialization and activated the testcase - added and changed some debug flag in matrix.h for LOG_NONLINSYS
4db34f5ac3Martin Sjölund- Remove tabs from sources
2008434d63Federico BergeroAdding functions to the QSS Backend
45344cdb1cFederico BergeroAdding function UpdateDiscrete
b46b438bbfPer Östlund- Fixed SVN info for SCodeDependency.mo.
3235bfe3b3Martin Sjölund- Make code pretty
6c26094d8aPer Östlund- Removed unnecessary key check in BaseHashTable.get1.
24fcd2b027Martin Sjölund- Made code pretty
f3cff4e670Martin Sjölund- Flat Modelica now uses "and, or, not" instead of "AND, OR, NOT" - This is to match actual Modelica syntax
621ea261a4Martin 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)
d2e1d2d25eMartin Sjölund- Remove tabs
ff13e7e508Jens Frenkel- BackendDAEOptimize.mo: - bugfix removeSimpleEquationsX
cc416738edMartin Sjölund#1467 - Disable envCache by default - Performance not affected - Added previously non-working testcase Constant12.mo
0aa00ea2edJens Frenkel- Bugfix removeSimpleEquationsX - Bugfix initialisation c_runtime windows - Util: bugfix arrayMapNoCopy_1 - add testcase testsimulate
011d188bcdXenofon Floros- updates to BackendQSS.mo
ead962b34fXenofon Florosmodified the SimCode.callTargetTemplates to include correctly the generation of extra info needed for QSS simulation
bd1033a98bJens Frenkel- do not generate code for constant startvalues
1f708d6c00Jens Frenkel- improve BackEnd/BackendDAEUtil.updateIncidenceMatrix
6d5d460157Martin Sjölund- Indentation
ebc9dc0f5fMartin Sjölund- In unelabMod, call simplify before trying to unelab the expression
5bd5f683fbPer Östlund- Fixed infinite loop in Inst.updateCompeltsMods for Media models. - Added more redeclare test cases.
00b44917feMartin Sjölund- Started removing assert(true, ...) from algorithm sections (functions)
9ed78954e0Jens Frenkel- Bugfix removeSimpleEquationsX
102967442fMartin SjölundNew runtime option (instead of debug-flags): $ omc +simCodeTarget=[C|CSharp|QSS|...]
56fd274cffJens Frenkel- BackendDAEOptimize.mo: - bugfix removeSimpleEquationsX
cc945f641dWilli Braun - fixed Bugs in AliasEquations for clean testsuite - added testsuite case to call only simulation tests
66cc37a3acMartin Sjölund- Fix bootstrapping compilation
7e24d46b5aMartin Sjölund- Removed tabs from sources
0dbeef0074Jens Frenkel- BackendDAEOptimize.mo: - bugfix removeSimpleEquationsX, use var direct to update aliasVars - SimCode.mo: - use flag "qssinfo" to generate structure code QSS
56f8459232Jens 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
dcc8c76810Jens Frenkel- continue to reimplement remove simple equation stuff using information of the incidence matrix
0f90cf3ac0Jens Frenkel- continue to reimplement remove simple equation stuff using information of the incidence matrix - Util.mo: add function arrayMapNoCopy_1
a7c1a9d494Xenofon FlorosDEVS structures added
1c5d117a38Federico Bergero* Functions to replace zero crossings on whens * Functions to replace zero corssings on equations
60e9205918Federico BergeroUpdating QSS template code generator
16e9fb0102Jens Frenkel- continue to reimplement remove simple equation stuff using information of the incidence matrix
9965e44634Jens Frenkel- start to reimplement remove simple equation stuff using information of the incidence matrix
ce6fd3debaMartin Sjölund- fill() is not a valid MetaModelica call (fix for bootstrapped OMC)
312f27176cMartin Sjölund- Added ElementSource to some of the SimCode eq-systems
1110df9e91Jens Frenkel- DAEQuery.mo: delete functions varList, vararrayList and vararrayList2, using BackendDAEUtil.varList
236ad3ec6fJens 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
f1c5aae5dcWilli 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
90e1efdab4Xenofon FlorosAdded functions to split equations for each state variable
4b55dd75e3Willi Braun - bugfixe for generation of jacobian variables
c0ccd696c5Willi Braun - fixed bug in last commit - added AliasEquations testcase
5995f48c33Martin Sjölund- Use the configured CXX also in the generated code
b37aa8a8ffMartin Sjölund- Accept CC/CXX flags in more files
d4ef0587b9Martin Sjölund- Support CC/CXX flags in Parser/Makefile
6903d1dce6Martin Sjölund- Use -lf2c on OSX since -Wl,-Bstatic doesn't work with the OSX linker
ac6c3a1c75Martin Sjölund- Fix some compiler warnings
e7fb28855bJens Frenkel- SimCode.mo: remove case local declarations, use names of record items for match case, user ComponentReference.makeCrefIdent
d30077e29aJens Frenkel- delete BackendDAEUTil.daeEqns use BackendEquation.daeEqns - delete Expression.getCrefFromExp use Expression.extractCrefsFromExp - SimCode.mo fix Warnings (local Declarations)
34063dc8adMartin 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
41441b75d1Dongliang LiSimCodeCpp.tpl is added. Entry for SimCodeCpp in susan_codegen/Makefile is added.
d74b9fae96Dongliang 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.
8f9314b05cWilli Braun- Bugfixes for RemoveSimpleEquations - Bugfixes for Intialization - Support for Alias Vars in result files
9f6997430dAdrian Pop- fixes to boostrapped compilation
13bdba9763Adrian Pop- fixed the boostrapped compiler compilation.
f0baebb10eAdrian 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
99283e06d0Per Ö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.
95e550f6afMartin 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)
933828bf9cMartin Sjölund- Added pure/impure to the parser. Fixed the column-numbers of some lexer errors.
18b749245eMartin Sjölund- Added warnings for numbers that have the form .XXX (they should be written 0.XXX according to the specification)
b3c3a9534dJens Frenkel- optimise tearing algorithm
8cec25085bAdrian Pop- removed duplicate target for SimCodeQSS.mo
3e8cc6dfb3Jens 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
3e73985c27Jens Frenkel- uncomment debug print
ad338da44eXenofon Florosinitial qss packages
145af3b8eeFederico Bergero* Adding a BackEnd implementation for QSS solvers
751cc0087bFederico Bergero* Adding the template to the QSS solver target
f3ad84d5cfPer Östlund- Changed popTimerStack in systemimpl.c from double to void, since it doesn't return anything. - Added missing RML_TAILCALLK(rmlSC) to System__setDataPort.
d4a7efb805Martin Sjölund- Added System.timer functions to bootstrapped OMC
45d5b24295Martin Sjölund- Fix off-by-one error in System.substring
a7a9423300Martin Sjölund- Fix for corbaSessionName not being NULL as it is supposed to
7476b8ea31Jens Frenkel- improve bltdump, dump variable names in the order they are solved
2e11e8a291Martin Sjölund- Add MMC_{TRY,CATCH} to in-functions generated for external functions
a2e1d4c67bMartin Sjölund- Add support for Array
4d65f0b76cMartin Sjölund- Added support and testing of bootstrapped System.getCurrentTimeStr
34a736c857Jens 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
6f3a555794Jens Frenkel- add script functions to set pre and past optimisation modules, ToDo implement function to get pre and past optimisation modules
5de12e9752EDGAR ALONSO LOPEZ ROJAS- Some fixes for bootstrapped System.{substring,regex}
f21a9ed20bMartin Sjölund- Removed tabs from sources
5ac85b64c8Jens Frenkel- simplifyBinary: add case for (a*b)/a = b and (-a*b)/a = -b
4111c1f48aJens 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
0f97b03554Martin Sjölund- Better ./configure --help
00919be574Martin Sjölund#1460 - Fixed noretcall in algorithm-sections
7c3fb86daeMartin Sjölund- if-equation to if-expr residual translation now ignores NORETCALL, and prints a warning
4e04df2b52Martin Sjölund- Added support for code generation of M.U.S.substring
22114c6f0cMartin 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
5e2827faa9Jens Frenkel- bugfix tearing,relaxation
407a2ee3cdJens Frenkel- add optimisation module inlineArrayEqn, this inlines multidim eqs from type array = array, -> smaller equation systems for multibody models
7c6abda275Jens Frenkel- fix outpus for int and bool from result csv
0b4ebcb67aPer Ö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.
57741360a1Martin Sjölund- Allow \r in the lexer
7792d250f2Willi 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.
8b4f5a369cMartin Sjölund- ./configure now always sets prefix
758e769da1Jens Frenkel- ExpressionSimplify: bugfix for simplifyVectorBinary0 - fix first part of testsuite
cf6a743225Martin Sjölund- Deleted svn:executable from some source-files
3069ea40d9Martin Sjölund- Fix for when libf2c is installed on the system - Also, don't compile our f2c if it is
a003abd301Martin Sjölund- Support setting CC in c_runtime/
1ba9b64e22Jens Frenkel- do not add function return values, now Pendulum simulates
54373244d9Martin Sjölund- Implemented ceval of multiple for-iterators
3607af852cPer Östlund- Fixed correct type when instantiating equations where the lhs is a record reference and the rhs is a record constructor.
38b59b2089Jens Frenkel- improve annotation evalute handling, now equations from MultiBody examples looks better - do not propaged the dummy fixed attribute, do merge them -> ToDo
a5be963e69Jens Frenkel- BackendDAEUtil.checkEquationSize: add case for BackendDAE.SOLVED_EQUATION and COMPLEX_EQUATION
6cf81dd127Martin Sjölund#1457 - Fixed and added test for using Include="#include " for external objects
46a27d3193Jens Frenkel- add check size of equation left and right hand side are equal, use +d=checkBackendDAE
1eab902ad9Per Östlund- Code generation fixes to get Modelica.Media test to work again after r8322.
7d2fb3c1aaMartin Sjölund- Suppress GCC warning
9286934f52Per Östlund- More fixes for set/get global root.
9e82f8183aMartin Sjölund- Use error() more in Susan
123de492d9Adrian Pop- fixes for set/get global root (they use mmc_GC_state->global_roots, so mmc_GC_state cannot be null.
0f9d6b1333Jens Frenkel- bugfix for multibody, generate also code for bind expressions of function variables
678e0015c1Adrian Pop- SettingsImpl__getInstallationDirectoryPath and SettingsImpl__getInstallationDirectoryPath now return paths with forward slashes on Windows!
105bcdabdePavol 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, ...)
434028da7fMartin Sjölund- Also look for index>0 when evaluating subscripts
f9bc7e4697Parham Vasaielyupdate support for dassl2 update communication algorithm between runtime server and environment client update English comments
d3011a703cAdrian Pop- possible fix to OMI interactive simulation. - use timeValue instead of lastEmittedTime.
2f3e797fdfAdrian Pop- fixes to code generation for MultiBody, generate "world__gravityAcceleration" instead of "world.gravityAcceleration"
98015cdf7eMartin Sjölund- Added OSX icon-file for OMOptim (only 256 px resolution as I couldn't find an icon with full resolution)
5b39b94de8Martin Sjölund- See previous commit
4e5c37162dMartin Sjölund- OSX fix due to GNU-specific command arguments
611d4a90a9Martin Sjölund- Fixed compilation/configuration of OMOptim on Linux
7ae03d09afPer Ö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.
dca55e4f95Martin Sjölund- Added support to change the plot format of the performance analyzer (since PowerPoint apparently does not know that the svg format exists)
291cb2d7a2Adrian Pop- fixes for Linux
1d8ff494e6Adrian Pop- fixes for Linux
b3c5858417Adrian 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.
4a31b87c67Martin Sjölund- Off-by-one error
a8484fb5f7Jens Frenkel- remove alias variables: merge var direction - BackendVariable.mo add functions etVarDirection, used for merge var direction
b4b62ebd43Willi Braun -fixed the bug, that breaks the simulation testsuite last night.
753f997e2fJens Frenkel- remove debug call from wrong possision
c0b7536340Jens Frenkel- FMU: do not set default startvalues, this is already done
232d724cd8Martin Sjölund- min/max typo :)
e58e26ce40Per Östlund- Propagated redeclare prefix for elements from Absyn to SCode.
4041547e1cJens Frenkel- add platfrom to MAKEFILE_PARAMS - FMU: generate directory from platfrom string - FMU: copy source files and delete others
033ec41654Adrian 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})
592ab3263bMartin Sjölund- OMEdit compilation on real OS's
55f7116248Willi 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}
53d870f5baAdrian Pop- small fixes so that OMC bootstrapping works!
8b85235034Azam 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.
2c634e105cPavol 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 ..."
76eb52300eWilli 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
71df6bc5c9Jens Frenkel- bugfix remove alias equations
4002af628bJens 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
b24474cd6dPer Ö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.
c4ce2274f9Martin Sjölund- The performance analyzer now outputs correct XML (replaces invalid characters in XML)
519a8ba169Azam Ziafmi eventindicator fixed, makefile changed to create directory structure.
a029c9a484Martin Sjölund- MetaModelicaBuiltin now uses List and short syntax (no subtypeof) for all builtin functions
5f6a1ad933Martin Sjölund- Remove tabs from fmu_model_interface
e70ec3f89cAzam ZiaAdded code for eventupdate function.
954dff9169Pavol 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:
f7550cfa09Pavol Privitzer- added templateError() imported function to be used inside templates to report an "unexpected template error", usage is like this:
c7a71fb1a2Martin Sjölund- Made the configure script not use [0-9] since [ and ] are special in autoconf
ac1c7fe658Martin Sjölund- Added support for List<> and Tuple<> instead of list<> and tuple<>
b82acce7c2Martin Sjölund- Added support for short form of declaring type variables (MM 2.0) - See testcase Polymorphic2.mos
092bdef199Martin Sjölund- Added support for MetaModelica 2.0 "all wild" pattern REC(__) - Has testcase AllWild.mos
0f85d4948cMartin Sjölund- Don't use std::{min,max,abs}; use C99 functions instead since that makes VS-users happy
94684abb6aJens Frenkel- fmu: - bugfix - BackEnd/BackendDAECreate.mo: - generate asserts for min/max/nominal not vor constants
c08919278eMartin 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)
b19e00fbcbPer Östlund- Fixed lookup of components in constant class array instances. - Added test mofiles/RecordConstant3.
6f22f48ebbMartin 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
1920e45323Martin Sjölund- mmc_mk_rcon and mmc_unbox_real now do not use a padded struct for allocation/access of data
0991a6016aPer Ö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.
70807bb0a8Martin Sjölund#1446 - OMEdit now uses
 for non-html documentation
49dfc76814Martin Sjölund- OSX /bin/echo does not support the -e flag (GNU extension)
6441bb648eMartin Sjölund- Re-enabled QMake macports workaround (it's still present with default MacPorts CFLAGS)
83d472aad2Martin Sjölund- Removed the QMAKE workaround for OSX, as MacPorts has now solved the problem
fac56716d5Martin Sjölund- Use DIM_UNKNOWN() when a reduction has a guard-expression
d02d19c1eeJens Frenkel- check Min, Max, Nominal asserts of constant false
f668356840Martin Sjölund- Fixed codegen for reductions using guards (except for array-reductions)
39fa6f6d6cJens 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
93b914dbeeJens Frenkel- add new functionality: - add asserts for basic types attributes min, max and nominal (see ModelicaSpec3.2 page 46)
f2e258b1f4Jens Frenkel- fix testmos use trunc/testsuite/mosfiles
fcc64fabc1Martin 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...)
b1529ce5f8Martin Sjölund- Ceval now handles custom reductions (including guard-expressions)
4a1885df47Martin Sjölund- OMPlot now compiles on Linux - Made OMPlot not crash if too few arguments are given
fc52f5e054Martin Sjölund- Improved Ceval of reductions a bit
adeca3e8c8Martin 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
18e8d8bc56Azam ZiaAdded code for getEventIndicator function.
c2312aae89Jens Frenkel- start to remove alias equations from simulation calculation, not yet finished
e442e91d0bMartin 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)
3ca1659d22Jens Frenkel- update fmi because of new solver interface
ed77d99ea5Willi Braun- removed old dassl solver - adjust testsuite
9f0dc048f3Per Ö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.
980b25af2ePer Östlund- Don't remove path prefixes when looking up imports in SCodeLookup if we're in an encapsulated scope.
913f539aeaMartin 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)
33cb4eb141Adrian Pop- add missing System.removeFile
45a522b403Adrian Pop- fixed compilation of the bootstrapped compiler
a824af4433Martin 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
36910f39bbJens Frenkel- bugfix dumpXMLDAE, uncomment generation of Tags hashTb and hashTbOldVars because implementation of dumpXMLDAE is not correct, add a fiew error msgs
dc5f8cc6dcPer Ö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.
d3e2bf0185Jens Frenkel- Derive: - differentiatetime: add case for records and arrays
3ce145399dAdrian 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.
a523ca6546Martin Sjölund- Added support for list comprehensions using guards
fd5c9d5a0dMartin 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)
9bbe9e75a8Martin Sjölund- Rewrote Expression.replaceExp using traverseExpTopDown
83d12977e7Jens Frenkel- FMU: avoid warnings
efa1adebebMartin Sjölund- Remove tabs from C sources
77ee5f835aMartin 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
4ef9549ccfJens Frenkel- FMU: - use integer as type for enumerations, until implementaion is not complet - do some more tests, add flag for calculate outputs/dependend variables
916e7f4740Per ÖstlundFix for bug #1438: - Fully qualified parent classes InstExtends.instClassExtendsList2 when handling class extends. - Added test case mofiles/ClassExtends5.
44dd99308dMartin Sjölund- Added call count graphs to the profiling report
ab30fc030bPer Ö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.
7943317ac9Per Östlund- Removed Interactive.traverseExp and replaced calls to it with calls to Absyn.traverseExp instead.
a8807711ecPer Östlund- Changed fail case in Algorithm.makeAssignment to use failtrace. - Updated test cases.
80505f9cfdPer Ö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.
b64b46cb67Martin 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)
0b1cd57b2aMartin 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)
f6d3656395Martin Sjölund- Fixed compilation of OMPlotWindow
8e038e7856Martin Sjölund- Fixed compilation of OMNotebook
37e8d617c6Martin Sjölund- Fixed compilation of OMShell (changed paths in makefiles)
cabc171e02Martin Sjölund- Removed Windows-specific generated files that interferes will other OS'es
564540498bAdeel Asghar- Added OMTools, used to built all tools OMEdit, OMShell, OMNotebook and OMPlotWindow
892a4054dfAdeel Asghar- Removed VC++ stuff and now mingw is used to compile omnotebook and omshell.
ab0dc8cd63Martin Sjölund- Removed tabs from sources
a15e548719Adrian Pop- more updates
7f9d895a36Adrian Pop- update the readmes a bit.
04cedc4c8cAdrian 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.
c0d0d6d3c9Jens Frenkel- fix typo
3e9baabb0cJens Frenkel- improve fmiSetExternalFunction
c4b7b4c89bMartin Sjölund- Set OPENMODELICAHOME in Main.main to work around issues with sendData
dad6a1d5d1Jens Frenkel- use cref because #define A.B is not allowed because of "." error C2008 (Visual Studio)
88befc8ca3Martin Sjölund- Use vfork instead of Qt's process creation in sendData (on OSX/Linux) as it causes weird issues
366ed4e479Jens Frenkel- implement causality for fmu
ad122088dfMartin Sjölund- Improved configure finding qwt when guessing it existing in $PREFIX
17d636bbfcAdrian 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.
e6ddb2e10aAdrian Pop- fix the gnuplot on Windows in simulation_modelinfo.c - get rid of the warninging in simulation_result_mat.cpp
cf3e038718Martin Sjölund- Hardcoded xsltproc and gnuplot paths for simulations on Windows
a05f009823Adrian Pop- fix Linköping - fix missing %s in print.
55a3012446Adrian 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.
c2c31c5e1eMartin Sjölund- simulate option measureTime=true is now working; testcase MeasureTime.mos has been added
a80e39aa7cMartin Sjölund- Added configure checking of libqwt
0b05027f5fMartin Sjölund- Fixed the field names of DAE.ExternalDecl (the names and types were off-by-one since the translation from RML)
e357326790Jens Frenkel- compile dll for fmu
25f0b5794bMartin Sjölund- Fixed line endings of several files
f04455326dMartin 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
c809601482Martin Sjölund- Removed tab from fmu_model_interface.h
d908592b2bAzam ZiaUpdated variable ids for c and xml files.
e387022e5fJens Frenkel- get first fmu example running (no event handling)
f4749463d9Martin Sjölund- Added simulate() option measureTime=false - Not used for now, but will replace the -mt option of simulation executables
e0f32bf017Martin 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
2ccc988cd6Jens Frenkel- update c_runtime/CMakeLists.txt - fix bug for FMU DefineDerivativeVariables no ";" at the end of derivatives
f9b8da9d85Martin Sjölund- Removed unused CevalScript functions
03b43735f0Martin Sjölund- Don't use globalData in modelinfo.c
e186a008a9Martin 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
dd89f9da83Per Ö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.
fca7b301bdMartin 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)
4c043e5876Jens Frenkel- remove unused functionality
f49830edc4Jens Frenkel- run remove simple equations also in past optimisation phase
9c202be765Martin Sjölund- Time measurements now use a binary format instead of csv (a format description is part of the generated xml)
9f2dcd2a6fJens Frenkel- remove unused code - rewrite collect zero crossings function interface to run it only once(not in lower and matching)
8898c8f3ecJens Frenkel- bugfix for MinGW (undef ref to assert)
f370a087c3Martin Sjölund- Fix compilation on OSX
6124afecf0Jens FrenkelBackendDAETransform.mo,SimCode.mo: - remove unused function calls Main.mo - bugfix typo
f10a6fef43Adrian Pop- fixes for MinGW windows
e55546c16cMartin 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)
42a3a82ea3Per Ö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.
7d828b16f2Jens Frenkel- first part of new interfaces for equation system pipeline ToDo: DAEHAndler part
8ffaa4d7b6Per Ö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.
6942d20218Martin Sjölund- Use .mat outputFormat when using the +s option to command-line omc
920eb526b2Martin Sjölund- Fixed compilation on a clean trunk
ded5d0f062Adrian Pop- use PERL=perl instead of PERL=\"perl\" - updates to clients OMNotebook.exe, OMPlotWindow.exe, OMShell.exe
973a067094Martin 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
43260560fdMartin Sjölund- Don't let the CORBA implementation free() tempDirectoryPath
9cd836275dMartin Sjölund- Always filter the dummy derivative from the result-file
dea972f82eMartin 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)
f2c1d042b9Martin Sjölund- Install .app's to /Applications/MacPorts
91c8a72afeMartin Sjölund- Install .app's to /Applications instead of prefix/Applications
d5ac6e4c80Adeel 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.
e42fc636adMartin Sjölund- Install .app's instead of executables in OSX
e275c992deMartin Sjölund- Only link omniORB statically on OSX; it gives -fPIC errors when building shared objects on 64-bit Linux
a1d04dfc31Martin Sjölund- Fixed a plot/plot2 typo
36bf735b04Martin Sjölund- Statically link omniORB on OSX/Linux
867a83b55bMartin Sjölund#1399 - Moved the remaining scripting functions from CevalScript.cevalInteractiveFunctionsOld to cevalInteractiveFunctions2
1738ca1aa5Martin 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
41928da122Martin Sjölund- Updated enableSendData(true) to use the variableFilter option of simulate() instead of using the setVariableFilter API call - Removed the setVariableFilter API call
5cb4575608Martin Sjölund#1399 - Moved plotParametric{,2} to ModelicaBuiltin.mo
7986a00c80Martin 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()
2719121b08Martin Sjölund- Added support for the variableFilter option when using outputFormat="mat" - This does not filter parameters (this matrix is rather small anyway)
fc2f87fe09Martin 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
ae0fa6cf6aJens Frenkel- Bugfix replaceExp RELATION - use mosfiles-dassl for testmos (cause mosfiles does not exist any more)
bf39adc165Martin 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
f452c9a33dMartin Sjölund- Fix compilation of bootstrapped OMC
41c372bf05Martin Sjölund- ModelicaBuiltin.mo formatting
36c394692dMartin Sjölund- When calling val() on a .mat file, use the right limit if we find an exact match of a time stamp
dbb1753592Martin Sjölund- Call SimulationResults.close() before running a new simulation
7a39a8e7a7Martin 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
ab52ae8b03Martin Sjölund- Added support for readSimulationResult using .mat-files - This is ~5x faster than reading .plt even for files with few variables
57334028b0Martin Sjölund- Disabled some debug tracing in InstExtends.mo
7693ab6e63Martin Sjölund- Added API call readSimulationResultVars(filename) - The visualize call now uses this functionality (which works for both plt and mat files)
9184a0fd4aAdrian Pop- add -lregex to the compilation in Windows.
909f7c1d68Per Östlund- Added function Util.listMapAndFold1. - Rewrote updateComponentsAndClassdef in InstExtends and SCodeFlattenExtends to use Util.listMapAndFold1, to make it tail recursive and easier to understand.
7abfd0de45Martin Sjölund- Added readSimulationResultSize support for .mat format
24b8a35349Willi 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.
6494fa9d76Per Östlund- Improved dependency analysis of crefs in SCodeDependency.
ab5f4afd81Martin Sjölund- Expression.terms now uses an accumulator instead of listAppend
eaed403e58Per Östlund- Better handling of class extends in SCodeDependency. - Added test case mofiles/ClassExtends4.
6dbfa8407fPer Ö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.
5dbf28750fPer Ö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.
6615bd1daeMartin 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
b4b23497f6Per Östlund- Added missing SCodeDependency file.
3d07acba6aPer Ö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).
f73b1bfe46Martin Sjölund- Some bugfixes for read_matlab4.c
ea5b1ee4a3Martin Sjölund- Added C runtime for reading the .mat format
818ab5995fMartin Sjölund- Fix for .mat output-format on 64-bit Linux (use uint32_t instead of long)
cc2fb5f8f7Martin Sjölund- Fix default x-label of the plotParametric command
bae39ab50bMartin Sjölund- Calculate better start-values for the init-file by interpreting function calls in the backend
b6ef61def8Martin 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
8740ef5bfbMartin Sjölund- Added support for boolean min/max operators
805990a279Willi Braun- changed default solver to dassl2 (or from now it's called dassl) - for now old default solver renamed to dasslold
eb204c4d64Martin 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
c32a130be6Jens Frenkel- Update CMakeLists.txt files for c_runtime
83123033dbAdrian Pop- added README about 3rdParty directory move.
fd27a46453Martin Sjölund- Now runs convert_lines.pl in simulation and function makefiles
ceb9d8aebbWilli 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
c7c474f78bMartin Sjölund- Added stringCharInt, intStringChar boxptr-functions
5b166cb0ddAlexey LebedevProcessing of fill(val,dims) with parametric dimensions in the case of non-expanded arrays.
71863724feJens 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.
c1dcbb7b57Per Östlund- Fixed incorrect type when generating if-equation for actualStream. - Added test case streams/ActualStreamCodeGen to test the fix.
4798b5a975Jens Frenkel- add space in init file to number of parameters line, now looks like the others
ed30b830f3Niklas WorschechAdded cpp simulation runtime SimulationRuntime/cpp Binaries copied to trunk/build/bin/cpp and trunk/bin/lib/omc/cpp
39f9ad19b1Adrian Pop- Absyn.crefHasSubscripts has a new function to check if a component reference has subscripts
3aef3ef630Martin Sjölund- Added check for ClassInf.trans when instantiating equation-sections - Packages and functions containing equations now fail
d98da61df1Martin 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)
8676882c35Adrian Pop- add -lregex for linking in Windows.
dcfef2fc3dPer Östlund- Implemented constant evaluation of array reductions in Ceval.
b62b79373bMartin Sjölund- Added regex and regexBool scripting functions, and a testcase
bd06224175Per Östlund- Added support for wildcard assignments in CevalFunction.
375e398b39Per Östlund- Fixed problems with local function variables with flexible sizes in CevalFunction. - Added test case mofiles/FunctionEval10.
684d308b25Martin 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)
b21bfeff6eMartin Sjölund- Added scripting function readFileShowLineNumbers - It's implemented in OpenModelica script instead of MetaModelica itself
4535d12edfPer Östlund- Added symbol table to CevalFunction.
9154341d45Per Östlund- Fixed correct limits for reductions on 64-bit platforms. - Added simplification of reductions of an array with one element. - Updated test mofiles/NonConstantReduction.
c52165770dPer ÖstlundFix for bug #1412: - Removed error message for non-constant reductions. - Added test case mofiles/NonConstantReduction. - Fixed test case mosfiles/val.
6d4cd60944Martin Sjölund- Added Absyn.Info comments for statements in the generated C-code
005aa88163Per ÖstlundFix for bug #1422: - Fixed incorrect type on ranges when doing type conversion. - Updated test mosfiles-dassl2/nonConstantParam and added test mofiles/SimplifyRangeInCall.
2d7a8ce1ffMartin Sjölund- val() is now part of the builtin environment
5d8d0ec8bePer Östlund- Fixed proper handling of encapsulated in SCodeFlatten. - Fixed test mofiles/Sequence and added mofiles/Encapsulated4. - Detabbed some comments.
140bca3db3Martin Sjölund- Moved more scripting functions into the builtin environment - Some even have a bit of documentation attached now
a767bd1765Per Östlund- Fixed correct scope type when adding new classes to the environment in SCodeFlatten.
d08c03d995Per Östlund- Added support for enumeration redeclarations in SCodeFlatten.
83f902cfc3Martin Sjölund- Added support for OpenModelica.Code.TypeName - checkModel can now be represented in the builtin environment
264187dfb2Per Östlund- Added flattening of array dimensions to SCodeFlatten.
be6bcd2439Per Östlund- Fixed flattening of short class definitions with modifications that depends on the extended class.
6137bfd8f8Per Ö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.
9dbc91dc48Martin Sjölund- Propagated cache+env to BackendDAEUtil
d44c008a3eMartin Sjölund- Some fixes for compiling SCodeFlatten using bootstrapped OMC
5579ef7035Per Ö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.
0909f0ece3Per Ö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.
8a15ea4714Per Östlund- Fixes for redeclare modifiers in components for SCodeFlatten.
fca3700bb4Per Östlund- Propagated Absyn.Info from Absyn.ElementSpec to SCode.Element in SCodeUtil. - Replaced print with proper error message in SCodeEnv.checkUniqueQualifiedImport;
5b99a68b89Alexey LebedevModified non-expaned array processing so that DAE.RANGE is not used anymore.
d9dcf75137Martin Sjölund- Added Absyn.Info for Absyn.IMPORT(...)
16a6f00b23Martin Sjölund- Removed some warnings about duplicate variable info being generated by not generating these anymore.
3f0f24654ePer Östlund- Better comments and error messages in SCodeLookup.
3285478fb5Per Östlund- Implemented better support for match/matchcontinue expressions in Absyn.traverseExpBidir. - Fixed better error messages from SCodeLookup.lookupName.
098890ec29Martin 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 ...
21e74d6c6bPer Östlund- Implemented better support for MetaModelica in SCodeFlatten.
744f70aa84Martin Sjölund- Added a guard against algebraic types in the Modelica3 parser (list<...> only available with +g=MetaModelica)
5951d7e3c5Martin Sjölund- Fixed codegen for some reductions - ExpressionSimplify: + min/max({exp}) => exp + min/max({exp1,exp2}) => min/max(exp1,exp2)
df8e10c396Martin Sjölund- Added Absyn.Info to Absyn.REDECLARE and updated SCodeUtil - Fixed a bug in ExpressionSolve.mo
d68edcfffcPer Ö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.
186a48fbf9Per Östlund- Added simple check for recursive short class definitions in SCodeFlatten, to avoid stack overflows.
99e9e864e7Willi Braun- correct a mistake from r7788
6e177f3a72Jens Frenkel- bugfix for BUG-1409 introduced in 7745
8e17c9f191Willi Braun- Bugfixes for generation of jacobian matrix added testcase for that issue
f3fe405e2eMartin Sjölund- Added expression simplification for asub of ranges, e.g. (1:2:10)[2]=>3
487f97bd9ePer Ö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.
a640039d79Martin Sjölund- Added ceval of more arguments to scripting functions
610c8b6d1dAdrian Pop- split SCodeFlatten.mo into several files: SCodeEnv.mo SCodeLookup.mo SCodeFlattenImports.mo SCodeFlattenExtends.mo SCodeFlattenRedeclare.mo
e9026c2cb8Per Östlund- Implemented redeclaration of variables in SCodeFlatten.
7cd722c3daPer Östlund- Fixed small mistake in SCodeFlatten that caused compilation to fail.
7375f067abPer Ö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.
06dd617fa2Martin 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
dc9e356428Per Östlund- Added spliceFunction as a builtin function, since it's used in Modelica.Fluid (it's probably a Dymola builtin function).
2d127f0f73Per Östlund- Fixed bug in SCodeFlatten.qualifyRedeclare where the merged path was incorrect.
0fcde286a4Per Östlund- More redeclare fixes in SCodeFlatten.
b1a94324cfMartin Sjölund#1399 - Removed set/getClassNamesForSimulation from Interactive.mo - Moved strictRMLCheck() API call to CevalScript from Interactive
3ff6217137Martin 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
13f57d1243Martin 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
1fd2714753Martin 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)
359dce1e1fLennart Ochelfixed handling of known variables for symbolic jacobian
6d93004b60Martin 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
de971455d3Jens Frenkel- bugfix for r7745
31a72ac43aMartin Sjölund- More inline calls
2c6a6eeb44Martin Sjölund- Cleaned up boxptr-functions for record constructors
6524d68f01Jens Frenkel- perform remove simple equations also for removed equations - check if there are inputs insight the parameter equation candidate
6597f8487dMartin 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)
7b83fd41f2Martin Sjölund- Moved elabType of "complex" types that have a regular base type (no longer uses a slot in the memory)
0e97306a2bMartin Sjölund- Added inlining of Util.if_
1bdae17eecAlexey LebedevImprovement in non-expanded array processing; new testcase.
6cf97d7120Martin 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
83125e9b5eMartin 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
92d5d031d7Willi 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
73ce75c86fMartin Sjölund- Removed more Builtin.isXXX functions (Modelica.Math.min/max/cross/transpose do not even exist!)
b7d1f952d8Per Östlund- Fixed handling of redeclares in variable modifications and extends clauses in SCodeFlatten lookup. - Ported optimizations from Env for the AVL tree to SCodeFlatten.
b90a913da3Martin 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)
a6fc8dace2Martin 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
70f444bb33Martin 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
8d6fbe0776Martin 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)
b725b2e3f4Willi Braun- modified comments for findZeroCrossing
9d8fddaf79Martin Sjölund- Fix Dynload sending boxed reals on OMDEV
53dd8459efMartin SjölundChanged impl. of boxed reals for OMDEV
eeb50b3276Martin Sjölund- Fix meta_modelica_gen_string_lit.sh for Windows
cc0a0d3c51Willi 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
7e046aad74Martin 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)
12cb779e8fPer Östlund- Fixed bug in SCodeFlatten where for-equations didn't create a new scope. - Implemented support for class extends in the SCodeFlatten lookup.
f741d6767fMartin 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
f55523c05fMartin 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
0add8133d8Martin 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
7b76dc3947Martin 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)
365d36ea0aMartin Sjölund- Display "no classes loaded" instead of instantiating builtin class OpenModelica when calling OMC from commandline
e5c0caaa69Martin Sjölund- Don't disable ceval of builtin functions when +d=rml is activated
1229bcb9f4Martin Sjölund- Split setsEqual into multiple functions
e3e57c70a8Martin Sjölund- Rewrote crefPrefixOf, crefEqualNoStringCompare and setsEqual using match instead of matchcontinue (~20% speedup of checkEngineV6_analytic for bootstrapped OMC)
21a4faf0a2Martin Sjölund- Removed DAE.ExpType from DAE.LIST/CONS - Added some expression simplifications for MetaModelica (cons, listReverse, listAppend)
3817916904Per Östlund- Fixed Static.makeASUBArrayAdressing so that it doesn't create unnecessary ASUBs. - Added test case ArrayIndex2 that tests indexing of arrays with arrays.
cb757c5b91Martin Sjölund- Changed malloc.h to stdlib.h since malloc.h does not exist on OSX
04e43da679Martin Sjölund- Removed some useless stuff from Builtin.mo
57a2a1c4a7Martin Sjölund- Avoid gcc warning about malloc being implicitly defined
bb7b666ffcPer Ö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.
860d892026Martin Sjölund- Use initialized data in rtclock.c on Windows/OSX
91b6d0f621Martin 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)
9f7b6288a9Martin 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)
2d6c77685fMartin Sjölund- Added support for expanding the number of RT clocks during runtime
94241c8a0aMartin Sjölund- Fix some gcc warnings for mmc_mk_bcon, etc
2d5115fe28Martin 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)
7026706a39Martin SjölundFix rtclock compilation on OMDEV
6526b397e7Martin Sjölund- Moved rtclock from Compiler/runtime to c_runtime - Started using the rt clock to do time measurements in simulations
74fba7ec16Martin Sjölund- Added the tests for doing compiling bootstrapped C-files separate. - The file does not link due to referencing previously unused external functions
c3673a52a8Martin Sjölund- Added file missing in last commit
597b34dd16Martin 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
eb41dbe88cMartin 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)
cf2900c5c5Martin Sjölund- Added support for inlining code that has function pointers as input
a81dd749edMartin 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
d8d188bd90Martin 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)
eed9d43e1aMartin Sjölund- Tabs to spaces
3a29506a5dMartin Sjölund- Reverting tab changes to Template/*.mo as Susan needs them
4236ad05bbAzam ZiaWorking copy for setstartvalues function
7557fc461fAzam ZiaAdded code for initialize and setstartvalues function.
391e07f967Martin 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)
441450c9acMartin 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
19223511a6Martin 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)
067386cfb4Martin Sjölund- Removed more unused local declarations
e6a88b74d6Martin Sjölund- Removed ~30 more unused local declarations
3923591b1bMartin Sjölund- Removed a few hundred more local declarations
b1633d9e1dMartin Sjölund- Removed another ~1800 local declarations
e38940cf64Martin Sjölund- Removed another 1014 local declarations
e8fd45ed64Martin Sjölund- Removed 138 more unused variables
bd8db466f1Martin Sjölund- Removed 1213 unused variables (automatically, using testsuite/bootstrapping/refactor-mc-to-m.sh)
2ba0e58b74Martin Sjölund- Added debug flag to disable moving the last statement of a match case into the result expression
dabab7b9efMartin Sjölund- Added debug flag to not remove as-bindings from case patterns if they are unused
d8c14bd6bbMartin 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
f8d81a29feMartin Sjölund- Added pattern simplification (mostly tuples that do not match against anything; they can be replaced with a single wildcard pattern)
9f4ab8af00Martin 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
365cde4027Martin 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
f660cf5a55Martin Sjölund- OpenModelicaBootstrappingHeader.h now uses constants for records without fields
a3af0e5653Martin 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)
35804023fcMartin Sjölund- Use Static.makeBuiltinCall in more places
eebc8d9c48Martin Sjölund- Some more Makefile dependencies
1f34bff1f0Martin Sjölund- Increased the size of the types memory array
733c42e2c5Martin 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
97766f5cb7Martin 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
929edbc789Martin 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
9980295348Martin 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
6f37ffb174Martin Sjölund- Added pretty-printing of the cases in match-expressions (which used to be ignored)
f93f6ba7a5Martin Sjölund- Improved BackendDAEUtil.treeGet slightly for bootstrapping (more efficient, but not tail-recursive) - Made BackendDAECreate.lower tail-recursive
4292e8406fMartin Sjölund- DAEUtil: Stopped using matchcontinue in addComponentType,traverseDAE2,transformIfEqToExpr
fa268c253aMartin Sjölund- BackendDAECreate: Add start-binding as eq-binding of parameters without binding.
d6f37991f7Martin 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
aca8e5a9beMartin 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.
be2e4a00dfMartin Sjölund- Some matchcontinue to match
c44ddfc854Martin Sjölund- Removed the DAEUtil.getAllExps functions (use DAEUtil.traverse* instead)
cbbe3065f9Martin Sjölund- SimCode.getCalledFunctionsInFunction now uses a HashTable; this is a lot faster for large functions
13d4651ebfMartin Sjölund- Use true = listMember instead of _ = Util.listGetMember
463476f6dcMartin Sjölund- Fix System.setVariableFilter
78335a35f5Martin Sjölund- Fix order of tokens for the system() error messages
c0130a82e2Martin 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!
9233756561Martin Sjölund- Fixed continue->match optimization for uniontype patterns - Added a testcase for this
5fcca706bdMartin Sjölund- Rewrite of Lookup.lookupMetarecordsRecursive, using HashTable instead of linear search in a list
f38d290f79Martin 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)
3dbe674004Martin 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)
f67498258bMartin Sjölund- More match less continue
82d4aa1327Martin Sjölund- More match, less continue
3908403412Martin 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
1c39d06001Martin Sjölund- Performance improvement for valueEq on strings
26181b8289Martin Sjölund- Rewrote listAppend without using listReverse (using 1 malloc instead of 2*n)
029f481ef0Martin Sjölund- Some matchcontinue to match
0a4ec0a89dMartin Sjölund- Replaced Types.searchInMememoryLst with Util.assoc
e9b8cfba52Martin Sjölund- Fix System.getHasExpandable/StreamConnector (output was unbound, i.e. false, in the bootstrapped omc)
764b530fecMartin Sjölund- Removed unused (duplicate) code
c8e185b7e1Martin Sjölund- Updated multibody tests to use teardown_command instead of system (which sometimes blocks the bootstrapped omc)
a635b8917bMartin Sjölund- Made the testsuite deterministic when running bootstrapped omc
46ab4d40d2Martin Sjölund- Some matchcontinue->match
383ae19475Martin Sjölund- Improved SimCode.addMissingEquations for bootstrapping (goes from >5 minutes to <1 second for some simulations)
5003f5ed6eMartin 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)
f0591263d9Martin Sjölund- Added MetaModelica optimization for matchcontinue expressions with only one case (then we use match instead)
3cb39b938bMartin 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
18a76a5356Martin Sjölund- Rewrote Expression.expEqual using match
b609c343f8Martin Sjölund- Rewrite of Expression.factors (using match and an accumulator instead of matchcontinue and listAppend)
58a30eb727Martin Sjölund- More matchcontinue->match
2ee08674ceMartin Sjölund- Expression.isConst now does not construct any data, is tail-recursive and does not use matchcontinue
a48b434c61Martin 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%)
89a8bbce6cMartin Sjölund- Expression.isConst now uses match instead of matchcontinue
c6e6d25fb8Martin Sjölund- More match, less continue
1f6ffe517bMartin Sjölund- Added code generation support for Integer()
b871dc97a2Martin Sjölund- Added Dynload support to read Values.ENUM as input
c81c742e70Martin Sjölund- Added file MetaModelicaBuiltinImports.mo, containing the renaming imports used by MetaModelica - This replaces the string literal in Builtin.mo
cec38342d1Martin Sjölund- Split Builtin.mo. The new MetaModelicaBuiltin.mo and ModelicaBuiltin.mo are now loaded as files instead of string literals.
8998318083Martin Sjölund- Made mmc_mk_icon take a long instead of an int (and made sure djb2_hash returns an unsigned number)
b0bb1a5591Martin Sjölund- Add setGlobalRoot to Builtin.getInitialFunctions - Give proper error message for type list
d382cc876cMartin Sjölund#1373 - Added Absyn.Info to SCode.EXTENDS - Added a warning when extending from a function containing an external declaration
3991a5d0e2Martin Sjölund- Fixed code generation for integer mod() (previously used doubles, which don't hold large enough integers on 64-bit platforms)
85afab4149Martin 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
74937e82b1Martin 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)
04a4bd71c9Martin 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)
fe21650f30Martin Sjölund- Removed inVars from SimCode.FUNCTION (unused)
3f9e83c736Martin 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
809f69ea27Martin Sjölund- Fixed bugs where constant evaluation/simplification resulted in unboxed expressions
bff745f5aaJens Frenkel- parts of rewrite removeSimpleEquations
e39976317dMartin Sjölund- Made the list operations always boxed (hopefully), which means code generation could be made simpler
d0cae34fe9Martin 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
cdd65f5d54Martin Sjölund- Some fixes for sendData
fefa1ea285Martin 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)
10398a7386Jens Frenkel- removesimpleequation - extend parent types if they are from type array or record
89fc3e5f82Martin 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
82dbb72826Martin Sjölund- Fixed code generation for simulations and external functions
3c70ce6d9fMartin Sjölund- Improved unparsing of DAE.META_OPTION
5154a2ad89Martin Sjölund- Changed modelica_integer to long, so it is 64-bit on 64-bit platforms
2a4716747aMartin 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)
50435f2e47Martin 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.
fa38339f80Jens Frenkel- removesimpleequation - extend parent types if they are from type array or record
8ec5878070Martin Sjölund- Fix regeneration of libomcmodpar.a if make clean has been run
62f1446284Jens Frenkel- replaceDummyDer: - traverse also WhenClauses and WhenOperators
dd78a7a89bMartin Sjölund#1142 - Added a better error message for invalid singleton expressions in the parser
69d23c9baaMartin Sjölund- Added Error.mo messages for Derive.differentiateEquationTime
b7634ca821Martin Sjölund- Made semiLinear() and edge() into classes in the initial environment
0734c9de4eMartin Sjölund- Fix compilation of Builtin.mo
2898ea9592Martin Sjölund- Added parser error for equations containing assignments
32f1ce5294Martin Sjölund- Removed some unused constants from Builtin.mo
7e61783888Martin Sjölund- Added builtin classDirectory as a class instead of type only
63bf40d4aeMartin Sjölund#1062 - Added Error.mo messages for invalid when-equations
e9fff2cea5Jens 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
379ca1fc35Martin Sjölund- Removed arctan from simulation runtime
cce7b77d26Martin 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
fc9918f1d6Jens Frenkeladd COMPLEX_EQUATION and INITIAL_COMPLEX_EQUATION to dump2
968922291fMartin Sjölund#1387 - calcTinyStep now uses (stop-start) as its basis for choosing epsilon
c53004ff69Martin Sjölund#1384 - Typo in last commit
c79401ec21Martin Sjölund#1384 - Hopefully a better fix for OSX configure woes
5d7b621ec0Martin Sjölund#1386 - Changed return type of sign() to Integer instead of depending on the input
80564175dfMartin Sjölund- Removed elabBuiltinInteger
8bbc8e0204Martin Sjölund- Removed elabBuiltinInitial/Terminal/Sample
0f6c7b0d74Martin Sjölund- Removed some old code
c4efc4b426Martin Sjölund- Removed elabBuiltinFloor/Ceil/Sqrt
2e6fdff592Martin Sjölund#1374 - Fixes syntax error when trying to declare partial functions through CORBA
9f88954843Martin Sjölund#1384 - Fix typo in configure
2a27db514cMartin Sjölund#1384 - Fix for building qtclients on MacPorts i386
0d3fed352eMartin 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
e4d0a36a8bMartin Sjölund- Removed some tabs from omi - Added some dependencies for omi_ServiceInterface.o
ce5f92e634Jens Frenkel- rewrite function makeZeroCrossing without match case
f2eff8980eMartin 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
e95a240342Adrian 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.
dc1e0b60c9Adrian Pop- cat the testsuite-trace.txt at the end of testlog
c055b5a51fAdrian Pop- exit if we cannot connect after we retry 5 times with 2 seconds delay.
a3042af9a1Per Östlund- Fixes to make the interactive client also compile on Linux.
2c7648282aPer Ö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.
f12dc7c3b2Adrian Pop- build also the client for interactive simulation so we don't break it: c_runtime/interactive/client.cpp
6ead96e635Adrian Pop- get rid of warnings, fixes for Linux.
4c78c5a3c4Adrian Pop- updates to readmes and interactive-simulation test - added the interactive-simulation to be run with the testsuite - updated SimulationApplicationExample_TwoTanks.zip
a0180581faAdrian Pop- finished the interactive-simulation test.
0eaf4cafbbAdrian 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.
ae0246b8abMartin 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
9df144fdd9Jens Frenkel- FMI: compile with extern "C" to get correct names for functions
067603100fAdrian Pop- make it portable
0bdee47699Martin Sjölund- Hopefully fixes the macports issues that causes qmake to generate erroneous makefiles
bf992d0893Adrian Pop- create share/omnotebook directory during the omc build
a2fe2ebb93Martin Sjölund- Install the interactive readme to build/share/doc/omc/
c233d26721Adrian Pop- added a README.txt for interactive simulation.
4bfedf1e23Martin Sjölund- Remove valgrind warnings by making sure size!=dest in the memcpy used in simulation_events.cpp
f75b9c0294Jens Frenkel- bugfix Backend expandDerExp
2d85a2ce01Martin Sjölund- Fix memory access issues in simulation_events.cpp
4b61e912c4Martin Sjölund- Explicitly add -lrt to LDFLAGS if sendData-Qt is specified
50ce8e20e8Martin Sjölund- Fix compilation on Linux
ba78a41609Adrian Pop- small fix to make omc MetaModelica filter happy.
a897969d99Adrian Pop- small fix to make omc MetaModelica filter happy.
f1695446a8Adrian Pop- do not free something that was not allocated!
f9fc7e5cf1Adrian Pop- more zeroing out malloc-ed regions.
6328031678Adrian Pop- zero the malloc-ed region.
e6623b8960Adrian 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.
d39745d5e9Willi 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
e0028ccffaJens Frenkel- update makefile for test msl31 seperate in simulates, notcompiling, notsimulates
fdc30a0793Jens Frenkel- update msl31 tests
db8cd8f7baAdrian Pop- added fmi* to the c_runtime/Makefile.common so they are copied on build to build/include/omc
d2c807c57eJens 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
8c01f33e1bAdrian Pop- added fmu_model_inteface.h to the c_runtime/Makefile.common so is copied on build to build/include/omc
ba491aaaeaJens 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
a202e1ce0fAzam ZiaHeaderfile for fmi c interface.
6281a28812Adrian Pop- updated dcmotor.mo to MSL 3.1
9a040b464eAzam Ziaadded code for fmi export functionality
45b28b14c0Jens Frenkel- add alias Attribute of ScalarVariable for FMU modelDescription.xml
b0624c6e85Adrian Pop- fixes to constant evaluation of substring (Modelica.Utilities.Strings.substring).
2ac5b9e926Martin 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)
9e1b0ab10fJens Frenkel- BackEnd/BackendDAETransform.mo - use NONE as variable attibutes for dummyder vars - libraries/msl31/simulate/Makefile - add tests for Modelica.Mechanics.Translational.Examples simulation
51188bff97Jens 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
ee90718193Per Östlund- Added function to Absyn: prefixPath, prefixOptPath and pathToCrefWithSubs. - Finished implementation of the SCode traversing functions in SCode. - Updated SCodeFlatten module.
f57dbf633bMartin Sjölund- Make .depend a non-PHONY target so we don't run make depend twice
c8b9a63cb4Martin Sjölund- Some fixes for the build system (call simcode and OpenModelicaBootstrapping.h targets)
7bff6e2114Martin 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)
1ab820cfccAdrian PopFixes for task: #1344 - updated omc_profiler and omc_debug targets.
46bf875f32Adrian PopFixes for task: #1344 - Linux part is now updated. - only omc_release is updated, working on omc_debug, omc_profile.
5817f90f4bAdrian 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.
37bbd758e8Martin Sjölund- ExpressionSimplify: Added rule for "s1"+"s2"=>"s"
c17fa42719Martin Sjölund- Added ExpressionSimplify rules - true AND e => e - false OR e => e
94ae72b702Martin 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
9a8534fe27Martin Sjölund- Added ceval for listReverse
c1bf18dfd2Martin Sjölund- Moved some more MetaModelica function definitions to Builtin.mo
c28cc0a1c0Martin 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
473f0b802aMartin Sjölund- Moved some builtin Real functions to Builtin.mo
35b051db60Martin Sjölund- Fixed codegen for div() - Moved some MetaModelica builtin functions (Boolean/Integer) to Builtin.mo instead of C sources
58a504317cMartin 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;"
3868cbf267Martin 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
03d4f8762dJens Frenkel- use fixed=true for DUMMY_STATE variables for residual equations
275fe12285Jens 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
7601eb76c0Jens Frenkel- small bugfix for algorithms with no outputs
b77bf0093fJens 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
08a52f87f9Jens Frenkel- if subs of componentreference are stripped do not use the type from DAE.CREF to generate a new DAE.CREF from stripped componentreference
ceb627be82Jens Frenkel- if subs of componentreference are stripped do not use the type from DAE.CREF to generate a new DAE.CREF from stripped componentreference
765f035240Jens Frenkel- fix testsuite, incomment states fixed=false als default
3e75fc66d6Jens 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
f326a74ba7Per Ö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.
0d2ba6b688Adrian 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
4b78eceafdAdrian 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.
e5eecce57cMartin Sjölund- Alias make testfast = make test. It's not that slow anymore ;)
42ef27e6c8Jens 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
f57ad0fdd8Jens Frenkel- bugfix for evaluateAnnotation, avoid infinite loop
0933ebd3daPer Östlund- Fixed some syntax errors in BackendDump and SimCode that wasn't caught by RML but by the bootstrapped compiler.
fffd896429Jens Frenkel- bugfix for evaluateAnnotation
a30eed27f2Jens Frenkel- implement new feature: evaluate parameter with annotation(Evalute=true), see Modelica specification 3.2 chapter 17.3 Annotations for Code Generation, codeGenerationFlag
d06015982dJens Frenkel- start to implement code for the Evaluate annotation. This is used for a lots of multibody examples.
5bd392c078Jens 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.
91a22525a8Jens Frenkel- BackendDAEOptimize.mo, BackendDump.mo - add dump for aliasvariables - BackendVariable.mo - add function varBindExp
b1ba2c8f59Jens Frenkel- BackendDAEOptimize.mo - implement new features: - remove constant equations from simple equations - add alias variables to BackendDAE.DAE.aliasVars - BackendDAEUtil.mo - add function addAliasVariables
18d67a85acJens 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
7ffa927628Adrian Pop- report an error when file is too large to read into a MetaModelica string on 32 bit platforms.
bc6c6f1273Jens Frenkel- BackendDAEOptimize.mo - fixe bugs for function removeParameterEqns - BackendVariable.mo - add function setBindValue - SimCode.mo - check also bindvalue for inital value
ec4004c76dJens 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
2b2f8a75fbJens Frenkel- BackendDAECreate.mo - lowervarkind StateSelect.prefer as STATE
7ff67f69baMartin 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
576d3d0901Martin Sjölund- Fix compilation on OSX using new Qt
6503f60ac3Jens 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
6962507eebJens Frenkel- BackendDump.mo - add number of algorithm - SimCode.mo - add case for algorithms to function createNonlinearResidualEquations
36319a6bceJens Frenkel- add {model}_functions.cpp and {model}_functions.h to target
6934e57e71Jens Frenkel- BackendDAECreate.mo - removed unused variable var from lowerEqn - SimCodeC.tpl - add STMT_REINIT (Simulation does not yet work, but code generation)
74b3e9fa02Martin Sjölund- Added function cevalStringAppendList - Added a notebook for basic MetaModelica types
14310bf43fAlexey 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
e152352a7dJens Frenkel- fix for bug #1368 - collect zero crossings inside loops using loop variable range
3de8670200Martin 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
6dfa3d2f8dMartin Sjölund- Fix for -disable-rml-trace configure option
5941b5d2cdJens Frenkel- Util.mo add function listIntRange3 - BackendDAECreate.mo start to implement: use the range of for_stms for findzerocrossings and detectimplicit discrete bug-1368
c609608833Martin Sjölund- Update makefiles to make parts of the qtclients compile on OSX
667b2cada5Martin Sjölund- Fix for configure (got empty rmlc_bin if RMLHOME was not present)
16ba9bfb8aMartin Sjölund- Search for sqlite3.h in the configure script
786026a7cfMartin Sjölund- Search the whole path when looking for rmlc
5cf256d3e0Jens Frenkel- partial fixes for #1365 - add CREF(componentref=DAE.WILD for simulation case
cabffc1d76Jens Frenkel- partial fixes for #1365 - add basic initial Algorithms support
1eaa978f25Jens Frenkel- use option RTOpts.splitArrays() also in the Backend to avoid extendsion of arrays - SimCode.mo - try to collate the arrays before solving
f4c19c6ee2Jens 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
3fd9340718Jens 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
00cf5067a8Jens FrenkelPartial fix for #1365 - partial fix for 1365 - BackendDAETransform.mo - get states in eqns from incidence matrix - Util.mo - add function intNegative
bf77a73bfcAdrian 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)
2cd93268f9Jens 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.
46c01a5392Adrian 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.
472a8875d9Anton SodjaUpdated export to Dymola mat-file format -- also integer and boolean variables are now stored in the file.
d5045e7979Adrian 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!
1801082b6bMartin 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%
96745727fdMartin Sjölund- Simplified some MetaModelica types in DAE.ExpType
b72e5c7318Jens FrenkelFixes for #1365 - bugfix for traversingDivExpFinder, now Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum simulates
126049fa0dAdrian 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
28b548a451Lennart Ochel- fixed handling of algorithms for symbolic jacobian - added some testcases
191b6bd7c6Adrian 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
c657ee0ae9Adrian 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.
a738409107Adrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF - remove tabs in some files.
178e9a2bc5Adrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF
c5111f1ce7Adrian Pop- use Expression.crefExp or Expression.makeCrefExp to create DAE.CREF
7da34553edAdrian Pop- use DAE.CREF directly without re-creating it (with the same values).
0754853da0Jens 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
7d547f0ccdMartin 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
0656f46e86Adrian 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
bbef335cafAdrian Pop- fixes for c_runtime/meta_modelica.c
5e3e12fce0Adrian 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
b41fed1354Martin Sjölund- Inline some MetaModelica data constructors
27c54b93a3Martin Sjölund- Inline listEmpty and STRUCT_HDR for records
8171d2579fMartin Sjölund- Fix for Makefile.humbug (use the configured CFLAGS so e.g. -fPIC is used)
85f4086bd9Adrian Pop- constant evaluate Modelica.Utilities.Strings.substring - update tests due to changes of SimulationResult record
f45d17e5feAdrian Pop- fix RML weirdness.
3b3fa1dc6dAdrian Pop- fix bootstrapping in Windows OMDEV (link sendData when building .dll to get all depends of omcruntime).
8bb6677031Adrian 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
858bba6786Adrian PopPartial fixes for #1365 - link properly to get tables working. - display the name of the model in the SimulationResult record when failing.
2bdc23d549Martin 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
2f79bb55ccMartin Sjölund- Added support for SimulationResult (79/119 mosfiles succeed)
0adb618973Per Ö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.
65666dbba7Jens Frenkel- Derive.mo - bugfix der(atan2(y,x))
bb059c3c24Martin 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)
0a27d7eae4Jens Frenkel- BackendDAETransform.mo - add BackendDump. Derive.mo - add derivative of atan2
3de1383b52Martin Sjölund- Added Corba implementation for the bootstrapping. Use with caution; OMEdit queried omc so much 8GB RAM used in a jiffy.
7055f3a757Martin Sjölund- Use Absyn.pathString2 in Dynload_omc.cpp (easier code to maintain)
131082046eMartin 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)
a3ad87a2c4Per Ö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.
394b87b7cdMartin 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)
9d8d0b9115Martin Sjölund- Fix error in TplAbsyn.mo - Update expected output of testcase SusanTest.mos
1220ef11b3Adrian Pop- return on top catch
c6c0839b73Adrian Pop- properly use the old throw for now in Windows (switch to it when working properly)
6c082261b0Pavol 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
0f6097240cAdrian Pop- use the old throw for now in Windows (switch to it when working properly)
b33ff76dd8Martin Sjölund- Change MetaModelica try/throw/catch to setjmp/longjmp implementation as it gives a 3-10x speedup
9f047761aaMartin Sjölund- Added preprocessor macros MMC_TRY, MMC_CATCH, MMC_THROW to easier change exception implementation in the bootstrapped compiler
8c76e29261Per Östlund- Ported commit 6987 from OpenModelica-1.5.1-Maintenance branch to trunk (fix elabMatrixCatOne to take care of dimensions).
013e48536fMartin Sjölund- Remove Absyn.GOTO, Absyn.LABEL and Absyn.ALG_MATCHCASES from the compiler
8aaf0151ffPer Östlund- Added flag +orderConnections=[true|false] that enables/disables alphabetical ordering of connections (default true). - Added API calls setOrderConnections and getOrderConnections.
cc8cc33970Martin SjölundPartial fixes for bug #1365 - Fixed generation of invalid C tokens in the generated simulation/function headers
805abaf09eMartin Sjölund- Avoid duplicate records with the generated header for bootstrapping if several external libraries use them
ea2cc3c83cWilli Braun -Fix for bug in linearize testsuite
2e2d5a838bAdrian Pop- added new API getNamedAnnotation(class, name) to get non-standard annotations: getNamedAnnotation(Modelica.UsersGuide, __Dymola_DocumentationClass) -> {true} getNamedAnnotation(Modelica, __Dymola_DocumentationClass) -> {}
0fb2618961Martin 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)
ba88cbb9d0Adrian Pop- fixes for OMDev MinGW
acabe7bb4cMartin Sjölund- Changed the SimCode data structure (RecordDeclaration is now stored in SIMCODE and FUNCTIONCODE instead of in every function individually)
e7e12a0cacWilli Braun- update synchronous events solver: dassl2, rungekutta - some bug fixes - remove discrete variables in Algorithms while continuous integration - update some testcases
d8ef1b00feMartin Sjölund- Fix MM listDelete() for index other than 0
42f902b19bPer Ö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.
79b98beca2Martin Sjölund- Fixed MM listDelete (also handle index 0)
c8df72632aMartin Sjölund- Rename Types.ndims to Types.numberOfDimensions (ndims is a Modelica builtin operator and gives us conflicts)
d39eb192edMartin Sjölund- Fix bootstrapping OMC on OMDEV (can't link to non-portable UUID libs; should be rewritten in some portable C way)
c8bb2af6e1Adrian 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
41286c7e72Martin Sjölund- Push Absyn.Info through to more error messages (none that are actually tested in the compiler it seems)
f6faa47206Adrian Pop- fix for OMDev MinGW compilation of Compiler/runtime/systemimpl.c
ebcfe50438Martin Sjölund- Fix for Error.updateCurrentComponent (field isReadOnly was always true in the externally defined because the field after it, fileName, was never 0)
e4a9e1d180Martin Sjölund- Print a newline after a version request
07870e4c6eMartin Sjölund- Fix compilation on OSX
8af7fc5172Martin Sjölund- Fix code generation for assigning output variables that are function pointers
f3c24dcebbMartin Sjölund- Fixed some function definitions so it will be easier to use 64-bit integers in the simulation/function runtime
cc0d565959Martin Sjölund- Fix for intMod (should only return positive results) - Change for realString (same precision as RML so rtest diffs are smaller)
c565abeafbMartin Sjölund- Adding missing file Compiler/Unparsing.mo (needed if omc was not already compiled)
8ba1bc71c7Martin Sjölund- Fix for parsing of the replaceable prefix in the RML version of the parser
130fe76112Martin Sjölund- Additional fixes for bootstrapping (parsing, etc)
7532ed250cMartin Sjölund- Fix the testsuite
db22d3e774Martin 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)
b49446711cMartin 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)
1df09553a0Martin Sjölund- Started updating the generation of files for parsing (to support bootstrapping)
5ec29c5ff8Martin Sjölund- Added OptManager_omc.cpp
74028d6e07Martin Sjölund- Small fix in Compiler/runtime/Makefile.in (config.h dependency)
7f1bc7c15dMartin Sjölund- Fixes for OMDEV
ec69d87cdcAdrian Pop- fixes for OMDev MinGW
f71200ed81Martin Sjölund- Implement System.setEnv for System_omc.cpp
4eb4da6e22Martin Sjölund- Update for OptManager.setOption (no more return value since it always returned true)
563d09beccMartin Sjölund- Completed implementation of Settings_omc.cpp
4dc54cb531Martin 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
82f7a6e887Martin Sjölund- Add the remaining functions in Error_omc.cpp
3bd28c2596Martin Sjölund- Implemented the rest of RTOpts_omc.cpp needed for Main_main
363d69a2a0Martin 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
3b3e492c60Martin Sjölund- Fix compilation on OSX
152ee105a0Martin Sjölund- Added corba and socket stubs to libomcruntime.a
5dc4f976a2Martin Sjölund- Added a Makefile.common for Compiler/runtime/
b6dcbbb3efMartin Sjölund- Added libomcruntime.a (stub) implementations for BackendDAEEXT
a158e24ba7Martin 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
ba4dde62aeMartin Sjölund- More external function implementations
85ebccdc3dMartin Sjölund- Implemented some additonal runtime functions for libomcruntime.a
01eaaaf3b1Martin Sjölund- Added more external functions for System_omc.cpp
dbdf0f489dMartin Sjölund- Implemented libmodparomc.a (the stub version of modpar)
d70d44ecfdMartin Sjölund- Implemented UnitParserExt_omc.cpp
68ad0d3e47Adrian Pop- fixes and tests for updateComponent
173dd4d227Adrian Pop- fix Compiler/runtime/systemimpl.c for MinGW.
e04f2b19a2Martin 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
cbdc3b5d3eMartin Sjölund- CevalScript.generateFunction now only generates code for the calculated dependencies
f351665bedAdrian Pop- renamed DAEEXT.mo daeext.cpp to BackendDAEEXT.mo BackendDAEEXT.cpp.
0e44d32169Adrian Pop- removed Compiler/test_codegen as is not used anymore since A LONG TIME NOW.
306f7dcce4Adrian Pop- removed old files for generating/checking RML based signatures.
a25e642370Adrian Pop- small cleaning, running make in Compiler/rml2sig is not needed!
969a3925d5Adrian Pop- moved RML->MetaModelica translation tool from Compiler/rml2mmo to /tools/rml2mmo
17d5c828a4Adrian Pop- deleted very old report (even in Swedish)
b5560011a2Adrian Pop- moved old Compiler/tools/rmldoc tool to /tools
dd0ae4955dAdrian Pop- do not use -ansi when compiling the code as strdup is not ANSI!
864a2ddfd0Martin 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
e80dce9126Martin Sjölund- Fix typo in BackendDAEUtil (broke bootstrapping but not RML)
7e8bf7e7f2Martin 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
15052ddcdcJens Frenkel- reimplement some functions using not equationList and travese the array of equations directly
306b59c2b6Jens Frenkel- reimplement some functions using not equationList and travese the array of equations directly
d4dc6015baJens Frenkel- reimplement one functions using not equationList and travese the array of equations directly
1320b02c7fJens Frenkel- reimplement one functions using not equationList and travese the array of equations directly
29023cb9c0Per Östlund- First revision of the new SCodeFlatten module. It's not used yet.
c3c75be3a7Pavol Privitzer- Susan updated tests to be all OK - C# codegen for non-linear strong components
e2bbc5b441Martin 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
efe933268fMartin 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
0e522bb4e6Adrian Pop- fixed a small bug with the check for DynamicSelect/OnMouse* in annotations.
421a1d79abAdrian Pop- update version to 1.6.0
43e2c380a4Martin Sjölund- Fix warning in Settings_rml.c
ea3a33e7b1Adrian Pop- added a new function interactive renameComopnentInClass that doesn't do instantiation.
ccd240d504Adrian 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
c747844141Martin Sjölund- Disable SQLITE3 linking on Linux (keep the configure line there but commented out in case we need it in the future)
8dccb913d8Martin Sjölund- Added configure feature rml-trace (to be disabled by the Debian/Ubuntu builds as the executable shrinks 5-6MB)
a72f6b2814Per Östlund- Fixed propagation of enumeration indices when connecting arrays. - Fixed connections with multi-dimensional arrays. - Added test case mofiles/ConnectEnumArray.
2798b5a509Adrian Pop- fix Linköping, the pour ö gets shredded to pieces sometimes.
4e5629d7eaAdrian 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
bfc53f1207Martin Sjölund- Fix for System_writeFile
fd38f92f20Martin Sjölund- Update some external definitions in System.mo
01c3abefd2Martin 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)
d0e41870baJens Frenkel- BackendEquation.mo add function traverseBackendDAEEqnsWithUpdate - BackendDAEUtil.mo add function traverseBackendDAEArrayNoCopyWithUpdate
5daa72b692Martin Sjölund- Fix System.time for bootstrapping
b2f34f557eMartin 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)
e94da17b8dAdrian Pop- delete .mo files on clean - fixes to Compiler/omc_profiler/Makefile.omdev.mingw to link correctly.
21a9be2e67Adrian Pop- ConnectUtil.mo: small speedup by verifying face first, then the others - SimCode.mo: small comment.
c6f7d6b258Martin Sjölund- Fixed the generateCode() API call
18ca920c80Martin Sjölund- Fixed compilation of Main_main.so (linking still fails)
2ab96fd1d4Martin 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
b531fa86e8Martin Sjölund- Added some functions for bootstrapping
705caf2882Martin Sjölund- Added error message when a TCOMPLEX type has the wrong number of types - Fixed one such error in Patternm.mo
10a482da6fMartin Sjölund- Minor changes to failtraces
d46f6e703fMartin Sjölund- Minor syntax change
395b6f2200Martin 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)
be0db620ddMartin Sjölund- Susan update - Use Tpl.emptyTxt in the templates instead of a protected constant (bootstrapped OMC could not find it)
3fc615447bMartin 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
a06aaabdc7Jens Frenkel- reimplement some functions using not listEquation and travese the array of equations directly
8382d0ab9cMartin Sjölund- Added support for unit testing of SimCodeC.translateFunctions - Implemented some additional function in the bootstrapped runtime
a034170c80Martin 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)
6ca603e4e6Martin Sjölund- Removed some unused MetaUtil functions
2c67f13d31Martin 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
898b934c41Martin Sjölund- Remove some now unused code from the pattern matching module
a4f9888577Martin Sjölund- Fix for arrayMap (no need to call listMap) - Some other minor fixes
6365717c41Martin 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
e564918411Martin 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
aa171bbce9Martin Sjölund- Removed some useless information from the pattern matching algorithm
1855643ccbAdrian 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.
5981b2465fMartin Sjölund- Fix type error in Util.mo
f072a116baMartin Sjölund- Re-compile SimCodeC using a modern Susan (no NONE is allowed)
28a46b03f2Adrian 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
e0cfa05b9cJens Frenkel- continue with redesign of listVar to traverseVar
579e6f6154Martin Sjölund- Update some RML syntax to MetaModelica
79713a798cMartin Sjölund- Update some RML syntax to MetaModelica
841b8ec938Martin Sjölund- Update some RML syntax to MetaModelica
36b290adecMartin Sjölund- Allow MetaArray to be treated as a TYPE in ClassInf
bf1047cf59Martin Sjölund- Use Error.mo for ClassInf.assertValid instead of printErrorBuf - This also works with getErrorString()
4fe3141f3eMartin Sjölund- Add debug_print to builtin env
e61143696eMartin Sjölund- Added support for Util.listMapMap in bootstrapped OMC
3ffc3ab2fbMartin Sjölund- Code readability for lookup when implicit scope names are involved
64f55d0766Martin Sjölund- Added boxptr_realString - Bugfix for boxptr_intReal
c6ee5c03feMartin Sjölund- Improved the error messages for bootstrapping slightly - Also fixed some RML/Modelica syntax clashes
47eac27bcbAdrian 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)
4a7818abb0Martin Sjölund- Bugfix for instClassDefHelper (used for MetaModelica, TCOMPLEX, types) - Do lookupType instead of lookupClass for functions
03749a2aecAdrian Pop- faster and (far) less memory usage for some functions.
5df5efe494Martin Sjölund- Fixed output assignment of traverseBackendDAEOptEqnWithStop
f4b2749381Martin Sjölund- Remove references to modelica_parser and flat_modelica_parser from the configure script
cc8a8d32baAdrian Pop- modelica_parser/flat_modelica_parser directories are no more. - so for "clean" target they should not be cleaned!
3700b6421eJens Frenkel- continue with redesign of listEqn to traverseEqns
0d7a07d5b4Martin Sjölund- Added Builtin stringEqual - Fixed some old RML syntax - Made some proper error messages for Patternm.mo instead of INTERNAL_ERROR
4672844214Jens Frenkel- to save memory start to get rid of some BackendDAEUtil.equationList by traversing the equation array direct without convert to list
82d3448205Per Ö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.
b294d0d96bJens Frenkel- get rid of some BackendDAEUtil.varlist - BackendDAEUtil.mo - fix rml bug, replaceable type Type_a subtypeof Any was not defined
4a56c0ce42Martin Sjölund- Removed the old ANTLR2 parsers from the trunk (previously, only the walker was removed)
4d693be257Per ÖstlundFix for bug #1354: - Don't add binding equation for variable of type that extends basic type. - Added test case mosfiles/ComplexTypeEquationCount.
2f7d084457Martin Sjölund- Replaced the old /trunk with /branches/sjoelund-functiontree
180751e524Willi Braun- added assert() and terminate() to c_runtime - moved Linearization stuff to BackendDAEOptimize - fixed index bug for partial and numerical derivative in Linearization
6d2a3179e7Martin Sjölund- Fix RML oddities
a0e71ef016Martin Sjölund- Merging
3701562084Martin Sjölund- Refactoring/Removed RML weird stuff
2755d8904eMartin 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
7576d90b01Adrian 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
08b8c6eb99Per Ö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.
6c5ddac7bfWilli Braun - some linearization bugfixes - add testcase for numerical derivative
00accde8f8Per Östlund- Fixed issues introduced in r6938. - Updated parallel test script.
e163a6cc7fMohsen 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
7b1ac26ae0Per Östlund- Fixed mistake in Util.listSplit which broke test case meta/PartialFn8. - Added test of listSplit to meta/UtilTest.
80a8c89995Per Östlund- Added work-around for checkModel when BackendDAECreate.lowerArrEqn gets an array equation of unknown size. - This fixes the mosfiles/ArrayParameterSize test case.
3f5c6da912Per Ö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.
4489c318f0Martin Sjölund- Merging
668b81c6a3Adrian 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).
712d8542cdMartin 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
31881e0f8cMartin Sjölund- Merging
b4e2145682Martin Sjölund- Fixed some weird RML syntax
49e354873cDaniel HedbergFixed bug in constant evaluations of functions with multi-dimensional array assignments.
23b0571aefMartin Sjölund- Fix some RML stuff
a44447baf9Martin Sjölund- Fix RML duplicate element
f077ddc3d5Per Östlund- Implemented inStream for the general case (needs a lot more testing though).
ce7007f6fbMartin Sjölund- Fix some duplicate declarations
68cc076d80Martin SjölundFix for #1352 - Add error messages for invalid complex types
249ff87338Martin SjölundFix for #1351 - Add an error message if a local section contains non-component elements
4a43d8f969Martin Sjölund- Use Settings.mo instead of readEnv to get OPENMODELICAHOME
a8cbf2c123Martin Sjölund- Fix merging compilation error
75076dc943Martin Sjölund- Merging
7da267c73bPer Ö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.
a7098d0158Martin SjölundFix for bug #1350 - Check for invalid named fields in pattern record deconstructor
55e542f244Per Ö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.
730b4a311bMartin Sjölund- Merging
1fb4bdb625Martin Sjölund- Merging
7412337f8aMartin Sjölund- Fix type of ENUM_LITERAL expressions in Susan
d7389b4050Per Östlund- Fix for bug #1349.
b6437a9a74Martin Sjölund- Merging
1de7c7d9eeJens Frenkel- BackendDAETransform.mo - rewrite replaceDummyDer2 and replaceDummyDerOthers, use one function called traverseBackendDAEExpsEqn for both
475d82a359Jens 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
1b999ceb28Jens Frenkel- BackendDAEUtil.mo - bugfix for traverseBackendDAEExpsEqn
55a44b08fcMartin Sjölund- Fix for SimplifyTest.mos
4725bf4184Jens Frenkel- BackendDAEUtil.mo - speedup isDiscreteExp
bdebfbf0a9Jens Frenkel- BackendDAECreate.mo rewrite isAlgebraic using Expression.traversExpTopDown
276fd186d4Jens 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
7b43eea2b8Per Östlund- Use traverseExp in CevalFunction.optimizeExp to traverse all expressions. - Use the cache in CevalFunction. - Updated parser/ParseCompilerSources test.
14f94612e0Martin Sjölund- Merging
94824fad2fAdrian Pop- make 3.x annotation version the default.
8d9084322bAdrian Pop- fix new introduced RML warnings - do not load Cevalfunc.mo in testsuite/meta/LoadCompilerSources.mos as it gone! - update SimCodeFMU.mo
c5d417f6c4Per Östlund- Fixed slice assignment with step values other than one in CevalFunction. - Added test case mofiles/FunctionEvalSlice to test this fix.
e597daa9afMartin Sjölund- Merging Interactive.mo
502b665fd6Martin Sjölund- Merging (except Interactive.mo)
a7d76495dfPer ÖstlundFix for bug #1346: - Allow InstSection.instArrayEquation to not expand non-expandable expressions.
8b2a7af13aPer Ö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.
eb028e2720Adrian 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
aa94297b69Martin Sjölund- Added testcase 10_pamtrans to the testsuite
1a0bff629bMartin Sjölund- Added boolEq (bootstrapping) - Fixed MetaModelicaDev testcases (they need +d=noevalfunc so the new CevalFunction does not try to ceval external calls)
0041e9d2bdAzam 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.
dab8cd6fc2Per Ö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.
a42460aa3cMartin Sjölund- Merging
ed5f3cf783Martin Sjölund- Fix "make omlibrary" on non-GNU systems
a1b0474aa5Jens Frenkel- Expression.mo - Added makeDivVector and makeProductVector. -Fixed bug with enum literal in terms and allTerms
b2375a2bd3Martin Sjölund- Add MetaModelica builtin cons()
5be270a956Peter 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
5de9ba94ceMartin Sjölund- Merging
27b32bba32Adrian Pop- updated SimCodeFMU.mo
20889c9243Martin Sjölund- Merging
ce0332f9d7Jens Frenkel- use type from componentref for lowerEqn (DEFINE,INITIALDEFINE)
e29a312ad9Jens FrenkelFixes for bug: #1345 - bugfix index of external Objects - use typeinformation for lowerEqn
3504e6d921Jens Frenkel- bugfix index of external Objects
4a03e24a86Martin Sjölund- Merging
e69e9b2ce2Azam ZiaAdded functions for c code generation.
9e7aea1e90Adrian 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).
0ee582286aJens FrenkelBug fix for expContains, added missing case for ENUM_LITERAL.
d1ff15850aAdrian Pop- got rid of unused imports
7af1fc3633Martin Sjölund- Update ParseCompilerSources to accept the current warnings (only ones left are automatically generated code; from Susan)
354bceb76bJens 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)
2993f56bf4Otto TronarpBug fix for expContains, added missing case for ENUM_LITERAL.
c61f046546Martin Sjölund- Fix RML warnings in InstExtends.mo
54a9ce94e5Jens Frenkel- bugfix BackendDAEUtil.mo traverseBackendDAEExpsEqn
ca182e7a5dMartin Sjölund- Fix InnerOuter.mo RML warnings
51c197e3dbMartin Sjölund- Fix warnings in PrefixUtil.mo
cf824e6a2aMartin Sjölund- Set svn:keywords on Compiler/*.mo
e5677d05b0Adrian Pop- get rid of local case/else declarations. - minor formatting changes.
50c49a1ec4Adrian Pop- get rid of local case/else declarations. - minor formatting changes. - got rid of unused imports. - fixed subversion RCS id.
b8834eb05dAdrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
78a61b8098Adrian 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
8e095cb7b8Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
526c04a519Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
f391ed0880Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
299dc66bc8Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
6abfdea794Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
eb02cd2552Adrian Pop- get rid of local case/else declarations. - minor formatting changes
28b561c262Adrian Pop- minor formatting changes - got rid of unused imports
7c5872c033Adrian Pop- minor formatting changes
ead706b74eAdrian Pop- get rid of local case/else declarations. - minor formatting changes
456bb109d3Adrian Pop- get rid of local case/else declarations. - minor formatting changes - got rid of unused imports
ed4191ba90Adrian Pop- get rid of local case/else declarations. - minor formatting changes.
e5c5ca7ee1Adrian Pop- get rid of local case/else declarations. - minor formatting changes.
7c27a861c6Adrian Pop- get rid of local case/else declarations. - minor formatting changes.
1e63c6256aAdrian Pop- get rid of local case/else declarations. - minor formatting changes.
450c6ff17eAdrian Pop- get rid of local case/else declarations.
e8be4e5403Adrian Pop- get rid of local case/else declarations. - minor formatting changes
a8fd61c2d2Adrian Pop- get rid of local case/else declarations. - minor formatting changes
52f5120ed5Adrian 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
1da49e9a6aMartin Sjölund- Merging
c9219daf3eMartin Sjölund- Fixed RML warnings in Inst.mo
04db0d652dAdrian Pop- get rid of local case/else declarations. - minor formatting changes
e9a3e30c76Martin Sjölund- Fixed RML warnings in InstSection.mo
728cfcc88cMartin Sjölund- Fix RML warnings in Interactive.mo
8bc5d69169Martin Sjölund- Fix duplicate declarations in Interactive.mo
dd7277e4a9Adrian Pop- updated copyright (it should be OpenModelica). - added package info - minor formatting changes.
7b53c555f6Martin Sjölund- Fix RML warnings in Linearization.mo
61f82a7b78Adrian Pop- get rid of local case/else declarations.
0e98db830bAdrian 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.
5feeb1bd58Martin Sjölund- Fixed RML warnings in Lookup.mo
4f005f6e40Adrian Pop- homogenize printing (include package name). - get rid of local case/else declarations. - minor formatting changes. - added subversion RCS id to the file.
58b9ceeb50Martin Sjölund- Fix RML warnings in Main.mo
ab1a6ab378Martin Sjölund- Fix MetaUtil.mo warnings
48f8451745Adrian Pop- removed unused imports
ad46578891Martin Sjölund- Fix RML warnings in Mod.mo
cc3e4252a4Adrian Pop- homogenize printing (include package name). - get rid of local case/else declarations. - minor formatting changes.
8ac1669353Martin Sjölund- Fix ModUtil RML warnings
4856c8222fMartin Sjölund- Fix Patternm.mo RML warnings
9b60106444Adrian Pop- add subversion RCS id to new files
c2ce46243eAdrian Pop- add subversion RCS to new files - got rid of unused imports and duplicate variables in BackendDAEOptimize.mo
ed8ee8cfb4Adrian Pop- align properly in Absyn.mo - remove unused import in AbsynDep.mo and update copyright.
1683517d4bAdrian Pop- remove duplicate definitions with different types.
901e65d1ddAdrian Pop- remove frontend targets from makefiles
14f8a293d4Adrian Pop- remove stubs files and the frontend makefiles and directories
704eed8d79Martin Sjölund- Merging
5f5c0d2f03Jens Frenkel- fix some testcases from testmos
0452c4b6a9Martin Sjölund- Fix make install for omlibrary target
d7257cda26Martin Sjölund- Fix omlibrary installation issue
409c3200cfMartin Sjölund- Add Makefile target "omlibrary"
55735c2c5cMartin Sjölund- Fixed some more RML warnings
fc60d62215Martin Sjölund- Fix RML warnings in SCode and SCodeUtil
867a4b5712Martin Sjölund- Fixed UnitChecker,UnitAbsynBuilder RML warnings
c7439129deMartin Sjölund- Fixed XMLDump.mo RML warnings
7a2b302966Martin Sjölund- Fixed one additional omc warning in Static.mo
5bc2fcca7dMartin Sjölund- Fixed all warnings when compiling Static.mo
5b8f7d2f82Martin Sjölund- Fix more errors in Static.mo
95f7ff938aMartin Sjölund- Removed some duplicates/local clauses in Static.mo
fed758cdffMartin Sjölund- Added new RML warnings to the Linux makefile - Fixed some of them
3a167c6b70Martin Sjölund- Remove case-local declarations
dad3f1e30fAdrian Pop- got rid of unused import
d0986cd61fAdrian Pop- no more local declarations in cases in DAEUtil.mo
ef4a6d8698Martin Sjölund- Updated expected output of some models
f0f6a29490Adrian Pop- got rid of some local declarations.
7fc92ea431Martin Sjölund- Fix function input/output
498f4f5288Martin Sjölund- Fix TplAbsyn, TplMain syntax
f7a9b5e7e2Martin Sjölund- Fix travering function references (UtilTest.mos now works)
ae1679b69bMartin Sjölund- Fixed 1 more testcase in meta/
994ef11ee7Martin Sjölund- Fixed traversal of metarecord calls
f8172a6e49Martin Sjölund- Fix RML crap
5b9fee1dd7Martin Sjölund- Fix parsing of Util.mo
9f1fae6d75Martin Sjölund- Fixed traverseExp for VALUEBLOCK
9159c1a573Per Ö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.
9ea111ade9Jens Frenkel- fix BackendDAEUtil.checkBackendDAE
ee93614f05Martin Sjölund- Made more things work
862ae8c3bdMartin Sjölund- Fix compilation
5ba0f295b2Martin Sjölund- Fix RML crap
dc9b43c41aAdrian Pop- no more local decls in matchcontinue cases.
9c975c0d90Adrian Pop- no more local decls in matchcontinue cases.
9e7164af6dMartin Sjölund- Fix RML crap
78debabf92Martin Sjölund- Remove RML crap
dc226d486cJens Frenkel- BackendDAECreate.mo change interface for user function for traverseDAEExps
87cfff8aa7Martin Sjölund- Deprecate case-local declarations in the grammar
f3333b4b8bAlexey LebedevMerged the non-expanded array stuff.
910d72b522Martin Sjölund- Added more expressions to SimplifyTest.mos
79c8f229f4Martin Sjölund- Merging
5a77e79487Martin Sjölund- Also handled ENUM_LITERAL and METARECORD in traverseExp
0fba28c1f7Martin Sjölund- Partial fix for problems with traverseExp
9d58064517Martin Sjölund- Fix syntax error in CevalFunction.mo
a9c57ca062Martin Sjölund- Fix printing of DAE.Type
9793d81422Martin Sjölund- Merging
15c2c2e2c0Jens 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
bd325d3556Jens Frenkel- implement some event stuff
77dfa3e7e8Per Östlund- Added utility function Util.listSplitOnFirstMatch. - Added valueInteger and valueDimensions to ValuesUtil. - Implemented more parts of CevalFunction.
965c74e051Martin Sjölund- Fix meta testsuite
4a2b23bfc9Jens Frenkel- fix bugs - DAEUtil.mo - improve function traverseDAEEquationsStmts
05f689c9ecMartin Sjölund- Use realLn
67e5538616Willi Braun - renamed uniontype DAELow to BackendDAE - renamed record DAELOW to DAE
8ebd87b837Martin Sjölund- Fix merging error
e4bed5777aJens Frenkel- fix bugs for event stuff
f3cfd1a933Martin Sjölund- Merging
5ed0df5783Martin Sjölund- Fix configure script
0e9f8ab1c1Martin Sjölund- Remove Compiler/absyn_builder - Run Susan quiet by default
0533c68df6Martin Sjölund- Remove mk_bcon from Modelica.g
29d64124a8Jens Frenkel- fix some bugs check for records improved rename BackendDAEUtil.traverseExp to traverseAlgorithmExps - Expression.mo delete makeCrefExpNoType use crefExp improve isConst
dc7a0663fcAdrian 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.
ff06bd7202Willi Braun - separated functions for BLT to BackendDAETransform
4f303d4f43Adrian 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.
14f147e0eeMartin Sjölund- Fix svn:eol-style on OMEdit, OMNotebook, msl32
91f758f5cdJens Frenkel- Expression.mo delete makeCrefExpNoType and use crefExp rename generateCrefsExpFromType to generateCrefsExpFromExpVar
5156ff2a47Jens Frenkel- delete unused code
ce288ebaddWilli Braun - thrown DAELow.mo away and divided the stuff on the files BackendDAE* - separated some more stuff
ad2ff1c930Jens Frenkel- BackendDAECreate.mo use BackendVariable.setVarKind
9a06965b1dJens Frenkel- fix some isues
cf8d72ad32Jens Frenkel- fix bugs - BackendDAECreate.mo use traverseExp and traverseDAE2 for state search
1bdff3745aJens Frenkel- DAELow.mo move translateDAE and calculateIndex to BackendVariable.mo
a21e1677a6Jens Frenkel- DAELow.mo move DelayExpression stuff to SimCode.mo and delete duplicatet functions
9a9c149f15Jens Frenkel- DAELow.mo move DivExpressionErrorMsg stuff to SimCode.mo
b9dc0b881fJens Frenkel- DAELow.mo move tearing stuff to BackendDAEOptimize.mo - Util.mo add function listSplittOnBoolList
12e7426af5Martin Sjölund- Merging
44ac5d69afMartin Sjölund- Fix RML crap
dc792e72f4Martin Sjölund- Fix RML crap
d1ece24afcWilli Braun- added BackendEquation.mo - moved caluclate incendece Matrix to BackendDAEUtil
1a4fa9daa7Per Östlund- Started implementation of CevalFunction, a replacement for Cevalfunc that works on instantiated functions instead of Absyn.
89cf0d64f0Martin Sjölund- Fix listMember( (a,b), lst ), and similar problems with polymorphic functions
2ed3cbb607Willi Braun - added BackendDAEOptimize.mo and move functions for simplify equations
cd88b7f6a8Martin 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 $.
243024ab2bWilli Braun - rename BackendDAETransform.mo to BackendDAECreate
da96617b6cJens Frenkel- update RedesignBackendOMC.doc - SimCode.mo remove unused code
63ccaa5e8fMartin Sjölund- merging
ed0516b73dMartin Sjölund- Some more changes that rely on new RML
326775b249Martin Sjölund- Fixed ExpressionSimplify.simplify testcases using the bootstrapping
76829f5e48Jens Frenkel- commit out useles code
6ea1dd6025Martin Sjölund- Remove some useless code
eb915a2e92Jens Frenkel- bugfix for derivative function annotations, also have a look into the annotation from external functions.
35b7bfae70Martin Sjölund- Don't ceval functions with initial algorithms
08f147027cAdrian 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.
89c0167f5fMartin SjölundRemove unused imports
75bf510a44Martin Sjölund- Merging
6627e96a2eWilli Braun- continued with remove functions from DAELow
a5de90b0d9Jens 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.
93806fbe3bWilli Braun - continue with remove functions from DAELow
d373b517deJens Frenkel- Compiler/ComponentReference.mo delete function crefAddPrefix use makeCref_Qual
3d7568224bWilli Braun - extract all function regarding Variables from DAELow. to BackendVariables
4261b9ba67Jens Frenkel- Expression.mo remove traverseExpLst and rename traverseExpLstinternal to traversExplst
576fd51e8eJens Frenkel- delete Exp.mo
c250c9c813Jens Frenkel- rename Exp to Expression
5c64b6e3d0Martin Sjölund- Merging
993032b659Willi Braun - continue with with moving functions from DAELow to BackendVariable
6834be7cc8Jens Frenkel- Exp.mo copy all functions for dump and print to ExpressionDump.mo
0208a13dbcJens Frenkel- Exp.mo copy all functions for simplify to EpressionSimplify.mo
323bdfe356Azam ZiaCorrected xml for scalar variable start parameter. Added code to generate some global data for c file.
aafaddf0a7Martin Sjölund- Fixed HashTableTest.mos
33e72d42aaMartin Sjölund- Changed HashTable implementations to use the new BaseHashTable.mo
6114143a8eWilli 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.
8a96951297Jens Frenkel- Exp.mo copy all functions for solve to ExpressionSolve.mo
21d0fcd6d2Jens 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"
2b4a17ebdaPer Ö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.
917db5dbecMartin Sjölund- Added BaseHashTable.mo, a truly generic HashTable - Made HashTable2 use it
0506ff6599Martin Sjölund- RML crap
6f46b00f54Jens Frenkel- DAELowUtil.mo - improve Error Msg and use flag checkDAELow for now to keep testsuit running
dc753ed1ecMartin 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
14df3bb682Martin Sjölund- Fixed some type issues with OMC-MM
02720a0072Jens Frenkel- fix bug
93241868bfMartin Sjölund- Merging
700c53ae2fMartin Sjölund- Add set/getGlobalRoot to Builtin.mo
5cea8df2cbPer Östlund- Fixed some bugs introduced by revision 6568. - Renamed DEA to DAE.
9135e4dc24Martin Sjölund- Merging
c9c7910482Martin SjölundMerging
31b689961eWilli Braun - correct merging error in DAELow.mo
c4b4a9634aJens Frenkel- DAELowUtil.mo - add case for functionpointers to checkDAELow
4783c2549fWilli Braun - continue to split out functions from DAELow to BackendDAEUtil
f59cece13fJens Frenkel- BackendDAEUtil.mo - add case for functionpointers to checkBackendDAE
9f1480f8ddJens Frenkel- use functions from ComponentReference.mo
e0bd9da3f8Jens Frenkel- fix bug
ff8345daf0Jens 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
47b9c86668Jens Frenkel- fix bug
78b172f989Jens Frenkel- fix bug
ce0e3dd3f7Jens Frenkel- finish to copy all functions do something with a ComponentRef from Exp into ComponentReference
8bae2aee87Adrian Pop- fixes for BackendDAETransform.mo
447f484b68Willi 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
e9fd73a9c7Martin Sjölund- Fix RML crap
e1fa84ef8eMartin Sjölund- Fix RML crap
231b38d1b1Jens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
04535a658fMartin Sjölund- Fix more RML crap
bd485be5f8Martin SjölundNo message
8e7fdebdc6Martin SjölundBootstrapping
8982bc10f4Martin Sjölund- Fix sources
82122c0876Martin Sjölund- Refactoring
01b03825e1Martin Sjölund- Merging
4a51f60ca8Peter Aronsson-Moved traverseExpList to traverseExpListInternal and created a new traverseExpList that doesn't take the newly added traversal function.
1ae7527e34Martin Sjölund- Merging
fd27ac66f2Jens Frenkel- fix bug
af1d4ffb46Jens Frenkel- rename DEALowUtil.mo into BackendDAEUtil.mo - continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
ef2f45b41fJens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
aa2067ac50Jens Frenkel- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
7d4100257bJens 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
8dd71264c1Per Ö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.
cbb6110f26Martin SjölundMerging
12afbe8542Jens 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
436dcfaa36Per Östlund- Implemented merging of annotations for short class definitions, for use with showAnnotations.
d39c6e991cPeter AronssonAlgorithm.mo: Added function isNotAssertStatement Exp.mo: Optimized the code in simplify1 HashTable2.mo, HashTable3.mo: added emptyHashTableSized VarTransform.mo: Optimized code.
ed2acad232Martin Sjölund- Merging
3fc48f5628Willi Braun- replaced DAE.CREF_IDENT with ComponentReference.makeCrefIdent - replaced DAE.CREF_QUAL with ComponentReference.makeCrefQual
fd70f86886Pavol 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)
20e9fff41dJens Frenkel-- continue to copy all functions do something with a ComponentRef from Exp into ComponentReference
70d93bf5d8Martin Sjölundgit-svn-id: https://openmodelica.org/svn/OpenModelica/branches/sjoelund-functiontree@6557 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
f129eb0218Martin Sjölund- Add new module BackendDump.mo
35817e99b4Adrian Pop- replaced DAE.CREF_IDENT with ComponentReference.makeCrefIdent - replaced DAE.CREF_QUAL with ComponentReference.makeCrefQual
1a689ec6b8Adrian Pop- added ComponentReference.makeCrefIdent and ComponentReference.makeCrefQual
63dda96305Martin Sjölund- Refactoring: DAELow datatypes added to BackendDAE.mo
bb4d222c98Jens Frenkel- fix some bugs from last commit
bc77c84646Jens Frenkel-- start to copy all functions do something with a ComponentRef from Exp into ComponentReference
aceedfdb1fJens Frenkel- fix some bugs from last commit
32c2df8026Jens Frenkel- start to copy all functions do something with a ComponentRef from Exp into ComponentReference
d439c5c43bAdrian Pop- change to c-like comments.
30f895f5abMartin Sjölund- Remove type Exp = DAE.Exp from Exp.mo
13fa077cc3Jens Frenkel- add file ComponentReference.mo
4762a25063Martin Sjölund- Fixed some illegal code in the compiler
f42a32437cMartin Sjölund- Merging
5c6fce8096Willi 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"
f94870ad4eMartin SjölundMerging r6536 through r6537
89a3e90cd4Martin 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
b8845eb1faMartin Sjölund- Merging
0d5e40e5c8Per ÖstlundForgot to commit changes to Error.mo in previous commit.
3194e0b500Per Ö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.
e4240a3823Martin SjölundMerging
0a5914bd7bMartin Sjölund- Fix compilation
178285cbe2Martin 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)
ac7b87eb27Jens Frenkel- fix for bug 1329 - DAELow.lowerEqn generated for DAE.DEFINE a=a equations
be0fe7388cMartin SjölundMerging
7d12bf1171Otto TronarpAdded option for dynamic state selection.
a20d850b76Otto TronarpBug fix for arrayReplaceAtWithFill, it created an array that was one element longer than what was requested.
05621a32e0Martin Sjölund- Fix getCrefFromExp for Absyn.FOR_ITER_FARG
8f4c2543a6Otto TronarpAdded missing extern "C".
60ef227742Adrian 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).
8335159f6cPer Ö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.
448de76046Martin Sjölund- Improved error messages
78c5e66a9aMartin SjölundRemove debug printing
c85eac6c68Martin Sjölund- Use addSourceMessage for Error.HIGHER_VARIABILITY_BINDING
d259096648Martin 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
b5a5226929Martin Sjölund#1318 - Disable instSingleCref in MetaModelica mode (maybe this should always be disabled; it certainly would reduce the load on the cache)
c5dfa26b92Martin Sjölund- Fix unparsing for DAE.Exp.NONE()
0fd6541609Martin 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)
96d735f0c3Martin Sjölund- Fixed the output of some functions
8c7e8cab7eMartin 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
f08af0b0c6Martin Sjölund- Some more fixes for things RML doesn't check for
71e9184b20Martin Sjölund#1318 - Added DAE.STMT_FAILURE, and handling of Absyn.ALG_FAILURE. Simplified generation of code for failure() - Added HashTable testing
d1a0be6d5cMartin 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)
646c0d0d4dMartin Sjölund- Fix MetaModelica parsing...
0b7039a209Martin 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
dee7e1f972Martin Sjölund#1318 - Replace more NONE with NONE()
a3104141d0Martin Sjölund- Replace more NONE with NONE()
5b26c40b6dMartin Sjölund#1318 - Replace some NONE with NONE()
f84c54803aMartin Sjölund#1318 - Added initial support for meta-array indexing (arrayGet and arrayUpdate) using the operator []
df0dc739c4Martin Sjölund- Added flag to do strict checks so that inputs/outputs of function and match expression are the same
bde7b842bbMartin Sjölund- Fix parsing of match-expressions with an else that lacks local declarations
297e36848eMartin SjölundMerging r6488 through r6494
4da4919950Martin Sjölund- Fix some more errors RML ignores
95a8277e78Martin 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)
18f5447857Martin Sjölund- Avoid duplicate error messages when elaborating function calls
34461e98edMartin Sjölund- Remove some errors RML doesn't check for
ebc6a511c1Martin Sjölund- Merging
5fb9bbe462Martin Sjölund- Removing old code
8870a97000Martin Sjölund- Reverting accidental changes
20ecc71ba5Martin Sjölund- Fix Error.mo (don't change name if empty string is given)
26b78069e3Daniel Hedberg- Minor update for Visual C++ (get rid of the directory separator in front of the file name).
0de311e6afDaniel Hedberg- Fixed compilation errors in Visual C++.
1ecb588f46Martin SjölundMerging
3933c27b3aMartin Sjölund- Make the metarecord calls take boxed arguments
774e09eab2Martin Sjölund- Option now always contains a boxed type
0dbbbd1d8dMartin Sjölund- Updated code generation to add declarations for local variables that are function pointers
a51bb84ddbMartin Sjölund- Improve error message for cons-exp
1021c80db9Daniel HedbergFixed a bug introduced by r6450: Better get the commas and braces in the right place as well.
8c043822a1Martin SjölundFix for #1326 - Use basename instead of filename in error messages when running the testsuite
8e19c1edcaMartin 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
8a6cdb5659Martin Sjölund- Add function pointers for builtin binary real operation
70f4997ad0Martin Sjölund- Merging
540e17bf1eMartin Sjölund- Fixed some errors RML ignores
5e33d058a7Martin Sjölund- Added support for polymorphism in function pointers, uniontypes
7436c13a7eMartin Sjölund- Made polymorphism work better with NONE() or {} input
c25e547301Martin Sjölund- Merging
fd939a2c05Martin Sjölund- Merging
baefd641ebLennart 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
c6d2a6a744Adrian 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
5b861116d0Jens 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
9c4413cfbdMartin Sjölund- Added more error messages for metarecord calls (and make the checks in a separate function)
4baeba34a3Adrian 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
1426014fcdDaniel HedbergPrint messages in the right order in getMessageStr().
c18689aa7cAlexey LebedevFixes for bug: #1322 Added a new error message for tuple assignments where lhs tuple contains not only component references
e66fa266b5Martin SjölundMerging r6431 through r6436
8bd0c5bc9eMartin Sjölund- Enable testcase running Susan on a very small template
6058deae6cAdrian 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.
ee3b79e440Martin SjölundMerging
974004e1a3Martin Sjölund#1318 - Implement more runtime functions for bootstrapping
d5dbc8de6aPeter Aronsson-Added Algorithm.isReinitStatement -Fixed compilation of systemimpl.c for Visual Studio (All declarations at beginning of block for ANSI-C)
12078b9f49Otto TronarpMoved traversingComponentRefFinder to public.
ae1c9abbc7Adrian Pop- use System.stringAppendList instead of Util.stringAppendList - use System.stringAppendList instead of multiple stringAppend in Exp.mo
23e78c4a75Martin SjölundFixes for #1318 - Added some more runtime functions for bootstrapping - Added testcase SusanTest.mos; still incomplete but part of it is working
fd3e0bb821Martin Sjölund- More runtime functions for bootstrapping
83d6d21b21Martin Sjölund- Merging
011516ca69Martin Sjölund- Added some Print.mo functions for the OMC runtime
671276174eWilli Braun- bug fix: derivative annotation for external functions testcase added.
6664d236b7Martin 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)
00e7899938Martin SjölundMerging r6410 through r6413
af7516dcc8Martin Sjölund- Merge trunk (Per's changes)
d8a16c68bcJens Frenkel- implement getUUIDStr for windows.
e6f8de6fa9Martin Sjölund- Additional fix for type matching polymorphic tuples
7d59665d14Per Ö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.
9386d7fe7fMartin 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
7ec410e938Martin SjölundMerging r6391 through r6403
e90cfad53aAdrian Pop- got rid of Debug traces to speed up the handling of expandable connectors.
f09482aa88Martin Sjölund- Force lists to be built of boxed types - Fixes Util.splitTuple2List (which has been added as a testcase in UtilTest.mos
8a8514b0eaMartin Sjölund- Add type conversion from TUPLE to META_TUPLE (when the expected type is T_BOXED)
165c66df67Martin 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
9c0dfdd642Martin Sjölund- Added support for patterns of unary integer/real constants (in Modelica, -15 is not an integer constant; it is a unary expression)
62a3eefc67Martin Sjölund- Add error message if a pattern in a match-expression is invalid (such as case (1+2)) - Added testcase ErrorInvalidPattern.mo
5a0cea96a3Martin Sjölund- Propagate Absyn.Info to Types.checkValidBindings - Fix polymorphism in some recursive calls - Enabled 06_advanced testcase since it's working again
b7019411c4Martin Sjölund- Fix listMember (was listMember(lst, elt); should be listMember(elt, lst))
aba5bfdabdMartin Sjölund- Removing more old syntax
1fee03b21aMartin Sjölund- Replaced the T[:]-types used in HashTables with array
af3522c981Martin Sjölund- Change the type of DAE.METARECORDCALL to DAE.T_UNIONTYPE - Changed some old syntax to new
c3ec14cb4dMartin 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)
12a3dc2821Martin SjölundMerging
967b7606b3Martin SjölundMerge
215ca2033cDaniel 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:
99bdf0a4e6Martin Sjölund- Split generation of functions from .c into .c and .h-files
4157bc93cdJens 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
cdaaf77702Martin Sjölund- Custom error message when failing to elaborate a metarecord call
3082d624b2Martin Sjölund- Added showErrorMessages to RTOpts_omc.cpp, so the testsuite succeeds on Mac
cef0090f08Martin 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
7cafae492eMartin Sjölund- Changed Env.Cache to use array<>-notation instead of [:]
8628d90ca4Martin Sjölund- Removed some conflicting variable declarations
e2adcdf8f3Martin 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)
48fa61c990Martin Sjölund- Add SimCodeFMU.mo to svn, so automatic builds don't fail
86a33c6979Martin Sjölund#1318 - Added stringCharListString to the initial environment
7dfedb75fbMartin Sjölund- Renamed some old MetaModelica builtin functions (int_add) to the new ones (intAdd)
86165d7963Martin SjölundMerge
17f32bd023Jens Frenkel- add missing file
e77642aa3fJens Frenkel- start with implementation of FMU - Exp.mo - add Function crefToStr and use it for crefStr and crefModelicaStr
a0eeab2702Martin Sjölund#1318 - Fixed some code using syntax that RML allows but should not
1ad03c0c31Martin SjölundMerging r6364 through r6368
5267dbaeabMartin Sjölund#1310 #1318 - Propagate Absyn.Info to elabExp and elabMod
524e4fa71fMartin 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)
c6d51dbc5fMartin 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)
78340bf71fMartin SjölundFixes for #1316 - Prepend _ to all variable names in function context, so we don't use C reserved words in the generated code
585410123cMartin SjölundMerging r6355 through r6356
4c500ba09eMartin SjölundMerging
bea1e3a041Martin SjölundMerging r6340 through r6351
97beeddc35Willi Braunsmaller update of linearization code. change some function calls and comments.
9035a8d92cMartin Sjölund- Fixed Builtin.isDer typo
d1f8fc52e0Willi 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 ".
341ef325faMartin Sjölund- Split errorext.cpp into OMC and RML parts
2db395b50eMartin Sjölund- Fix printimpl.c (inverted a 1 and a 0 in previous commit)
71c0798815Martin Sjölund- Split printimpl.c into OMC and RML versions
4399c2ff14Martin Sjölund- Minor fix in previous commit
0a30bd60e7Martin Sjölund- Fixed some MetaModelica string functions. Leaking memory is preferred over random memory.
2c1692ee2fMartin Sjölund- Minor fix (RML doesn't care about output arguments; OMC does)
fe512bd2dcDaniel HedbergChanged STRUCT_SINGULAR_SYSTEM_CONNECTORS from being an error to a warning.
9deee0356bMartin Sjölund- Updated the type of identity (it is not Integer[1]...Integer[8]; it is Integer[:][:])
080ea0e9e8Martin 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
1f5f5ece3eMartin Sjölund#1308 - Remove the function identity in Dump (OMC cannot handle shadowing builtin functions)
4e684102c1Martin Sjölund- Merging
f4a30512bbMartin 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)
652d7f2aa8Martin SjölundFix #1307 - Allow plot, plot2, val to use der(cref) as input
bc24b96633Adrian 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.
f4c3698830Martin SjölundMerging r6331 through r6334
37696909c8Martin SjölundMerging r6327 through r6330
bd2e2f83edAdrian PopFixes for bug: #1306 - use CONNECT LPAR component_reference COMMA component_reference RPAR instead of CONNECT LPAR connect_ref COMMA connect_ref RPAR
09fa0ed439Adrian 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
13a8cd2ae6Martin 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
9f87adfe20Adrian Pop- more cache tuning
d893d7449eMartin 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...)
cfbfbe3c4aMartin Sjölund- Merging
56aa74cc1fMartin 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
1f55acc0ffAdrian 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.
c98752c728Martin SjölundMerging r6322 through r6323
30548eb903Martin 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
20aa6eefbaMartin SjölundMerging r6317 through r6321
d4ee0fd7b8Martin Sjölund- Updated unparseType, so error messages are shorter and easier to read
e45d521dcfAdrian 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.
49db1bd5f1Martin Sjölund- Fix some functions in Dump.mo for bootstrapping
6c517a0579Martin SjölundMerging r6302 through r6316
90a9e36b67Martin 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
4e21b07223Martin Sjölund- Fix some issues by not adding aliased functions to the cache
3760c8057aDaniel Hedberg- Added an option to checkExamplePackages, making it possible to specify a list of excluded classes. This is used by MathCore.
09af3e74f7Martin Sjölund- Fixed instantiation of (some) derivative annotations - Basically only multibody left to fix
0d9fbdf925Martin Sjölund- Fixed record constructors; updated testcases that now show more functions than previously
b7bae558fcMartin SjölundMerging r6296 through r6301
f07dd75a75Martin 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
cb113add9fAdrian 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
895685c369Adrian 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.
7e5d06a665Adrian PopFixes for bugs: #1129 #1122
44e8d013ddMartin Sjölund- Merging
526b6ad7d2Martin Sjölund- Changed DAE.FunctionTree to a map->Option instead of Function
e22cd43004Per Ö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.
984ad37c1fDaniel HedbergMinor change with regards to enumerations.
54a01a7bd3Martin Sjölund$ svn merge https://www.openmodelica.org/svn/OpenModelica/trunk . Merging r6287 through r6291 into '.'
f13fdf3d65Martin 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
78247fede3Per Ö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().
2f556d20c5Per ÖstlundFix for bug #1189: - Implemented nested when detection for equation sections. - Added test case mofiles/WhenNestedEquation.
97cccc95bcPer Ö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.
a8e9a9180bAdrian Pop- well, seems that adding \\\n didn't fix it, use just && directly without a space.
86a52cade6Adrian Pop- do not overwrite the output of pushd so we can catch more errors.
182027f59aAdrian 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!
ac6d9d654dDaniel 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.
192ac5fb1ePer Ö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.
583ec4f4f4Martin 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)
6f5c9073a4Adrian Pop- reversing the reverse as now it seems the libs are added in the proper order to the makefile.
fe2e16919aMartin Sjölund- Rewrote a few functions in the C runtime to take constant strings as input instead of strings
523304e9e0Alexey LebedevFix for bug #1040: Further fix for bug 1040 https://openmodelica.org:8443/cb/issue/1040
c5c49077faPer Ö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.
43532e8dd0Per Östlund- Speed up arrays of enumeration variables by relaxing the criteria for finding matches in the cache for enumerations.
e2be88a502Martin Sjölund- Enable error messages for cevalCallFunction again
a895033f5cMartin 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
88007929d9Adrian 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.
0856bb51edAdrian PopPartial fixes for task: #1268 - minor typo fix.
3221dfeeb9Adrian 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.
cc7b6ecc9dMartin 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
ac82016d20Adrian 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.
fee787aa9aMartin 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
111670d509Jens Frenkel- avoid Warnings
5d2499734dJens Frenkel- Bugfix Initialisation Method leastSquare
f5561551d0Martin 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)
2777dd5910Per Ö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.
6bf2ada6eeMartin Sjölund- Propagated Absyn.Info from assignments to DFA.mo - Add testcase meta/ErrorMatchNumOutput.mos
9bc540b365Martin 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
bb6a3161aaAdrian PopMod.mo - use case instead of else as the current 1.5.0 release cannot parse the file otherwise
f71259b323Adrian 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
ca866dce6fMartin Sjölund- Missing code from r6238 (allow running as root when running in testsuite mode)
87fb99ec65Martin Sjölund- Allow running as root when running in testsuite mode
d05440a54dMartin 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)
bd9f1afe57Adrian Pop- use case instead of else as the current 1.5.0 release cannot parse Absyn.mo otherwise
840986ab40Per Ö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.
e13742e8cdMartin Sjölund- Static.elabCallArgs2 no longer prints error messages if it succeeds, but elaborating as record constructor fails
be2b13e7d5Martin 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
eff1aec35dMartin Sjölund- Fix meta_modelica_builtin.cpp so that the first call always returns 0
b91bf95e3bMartin 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
d816e0c7e5Martin Sjölund- Removed antlr2 dependency from the configure script
969abb7ff0Martin Sjölund- Fix compilation on Linux (database.o -> Database.o)
a703380229Adrian PopCompiler/Database.mo Compiler/runtime/Database.c Compiler/runtime/sqlite - a wrapper for SQlite (empty and unused for now)
1a8ba8284dMartin Sjölund- Added the boxptr functions for the MetaModelica builtin Integer functions
a5bfaaa71fMartin Sjölund- Updated SimCode.getCalledFunctionsInFunction to filter out function references called in valueblocks
e74b03859aMartin Sjölund- Changed code generation for function pointers. They now also work when you bind valueblock-local variables.
6ff9efad3eAdrian Pop- clean ModelicaExternalC also when cleaning c_runtime
90f8c403d8Adrian Pop- use intEq instead of equality
a6c9f4bb6dAdrian Pop- get rid of equality()/failure(equality())
5a7990e1a4Adrian Pop- use intEq instead of equality.
39e624c40eMartin 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
4fc3e7b78dAdrian 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
a7dfd92a1eMartin Sjölund- Guard parser/ParseModel files from svn-eol-style script
4efbb1ad09Martin Sjölund- Fixed else for match expressions
d73eb8176cAlexey LebedevAdded a check whether component's name is the same as its type specifier. Modified the testsuite correspondingly. Added a couple more test cases.
6b970d4155Martin Sjölund- Disable LossyGearDemo1 testcase (spins until memory runs out) - Fix refactorGraphAnn2.mos
e328561b69Martin Sjölund- More int/modelica_integer fixes
aeaf75985fMartin Sjölund- Changed int, unsigned char in the simulation runtime to modelica_integer, modelica_boolean
4266afff8dMartin Sjölund- Fix compilation of errorext.cpp (rml-trunk mk_scon doesn't accept const char*)
793269b5e4Adrian Pop- Fixes for bug #1285 #1286
ba950503a6Adrian Pop- fixes so we can compile with MinGW GCC 4.5 also.
497b34318eAdrian Pop- got rid of an unnecessary stringAppend.
53ec55249fAdrian 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.
20672528f6Martin 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
a5b8be4544Martin 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)
0e2dcee03eWilli BraunCorrect small error for revision 6177
d20f9f9ebfWilli BraunFixed memory error in initialitation after rev6171
9cdf03684cMartin Sjölund- Fix compilation on Linux
cdac4a0bd5Martin 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
dae6b64efcPer ÖstlundFix for bug #1133: - Added support for reinit in DAELow.lowerStatementInputsOutputs. - Added test case libraries/msl31/Modelica.Mechanics.
d7d5b8d01dWilli Braun- Added support for Boolean and Integer Variables in c_runtime - simulation_result changed only for plt output
2592cea0faPer ÖstlundPartial fix for bug #1287: - Fixed code generation for algorithm with single output variable.
73b669dd34Martin 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
55777f9785Jens 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
4cbdfa8b02Per Ö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.
9084ca4393Martin 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
6c30f41471Daniel HedbergAdded dynload_try.obj to VC makefile.
42ed1b83bePer ÖstlundFixes for bug #1272: - Fixed checkModel of for-loop with unbound parameter range.
fd225f2fa3Martin Sjölund- Fix svn-eol-style on Makefiles
008860fd4cMartin 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
141c705b7fPer Ö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.
77082237dbMartin 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
737234b77dMartin SjölundFix #1293 - Enable MetaModelica grammar when +c=mdt is given
95dff65138Martin 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.
0eccfc6fe9Martin Sjölund- Ran make fix-svn-eol-style
7ba52093deMartin 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
32bc44a6c3Pavol 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
9c079488d4Per Östlund- Reverted some changes from r6146, since they broke some Modelica.Math functions.
abc137ccf6Per ÖstlundFixes for bug #1272: - Allowed Inst.elabComponentArraydimFromEnv to fetch dimensions from the component declaration if a component doesn't have a modification.
b86f995759Martin SjölundTrunkate integers in the interval 30~31 bit like the old parser did.
01256d88c9Per Ö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.
7b1c9a84bcMartin Sjölund- Fix parsing of if-expressions in mos-files
12d1f8e43aMartin SjölundFix #1284 - Fixes a bug where "No viable alternative near token: " would result in a segfault
551386936eMartin Sjölund- Change error message for assignments using (=) instead of (:=)
582991dd06Peter Aronsson-Changed error messages for unbound parameters.
91cb5d0927Per Ö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.
5869308b83Per Ö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.
38d6314067Per Östlund- Fixed missing semicolon when printing STMT_NORETCALL in DAEDump.ppStmtStr.
d6b64cb4c9Adrian 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
3fd98df68eJens Frenkel- fix else path of functionODE_inline - cast conditional expressions to modelica_bools avoid warnings
ea24c37cf7Per Ö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.
4e63c7e718Per ÖstlundFixes for bug #1274: - Replaced Static.dimSize with Types.getDimensionNth. - Rewrite Static.computeReturnType to allow unknown dimension in matrix multiplications when checkModel is used.
172e07d4b3Adrian 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
7702c1561cAdrian 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)
c85d03ee88Adrian Pop- a makefile that works with Visual Studio nmake.
fa6eaf0cabPer Östlund- Added printing of class comments and annotations to DAEDump. - Updated test cases.
807192b6c1Per Östlund- Fixed expansion of sum(param with fixed=false). - Added test case mofiles/Sum.
02abb48ffaPer Östlund- Fixed type of skew function. - Added test case mofiles/Skew.
f5aa5b7850Per Ö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.
caab1f90bbAdrian 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.
3294b10256Anton SodjaFixed error in c_runtime/Makefile.common regarding libModelicaExternalC.a.
24337450ecAnton SodjalibModelicaExternalC.a is now compiled from Modelica/C-Sources/*c.
74e4fdeeccPer ÖstlundFix for bug #1274: - Modified Static.elabBuiltinIdentity to work on arrays of unknown size when checking a model.
3db308f519Per ÖstlundFix for bug #1274: - Changed Types.matchTypeTupleCall to allow tuple calls where the LHS has fewer components than the RHS.
ff25ae7201Martin Sjölund- Add -lrt to LDFLAGS when needed
cebff61899Martin Sjölund- Add missing #include in rtclock.c
9f11b6758fMartin 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.
1e6d000ffcPer Ö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.
e9d7b36c9aMartin Sjölund- Fixed compilation of ModelicaExternalC.cpp (missing errno.h header)
8ae5a1e11dAdrian 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.
38096e5f1bAdrian Pop- include more functionality in ModelicaExternalC.cpp needed for Modelcia.Electrical.Machines.
c176fa3619Adrian 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.
d538b4a912Adrian Pop- allow enumeration type to be used as a connector as is used in Modelica.Electrical.Digital.
8e856f5c5aMartin Sjölund- Fix for parsing element_replaceable
8d996956f0Martin 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
8222968ba0Per Östlund- Fixed bug in ceval of <>, same problem as fixed in r6093 for ==. - Added test case mofiles/ConstantLogicalRelations.
9777e95151Per Östlund- Implemented assignments on the form cref := function_returning_tuple(...), which is possibly needed for bug #1274. - Added test case mofiles/TupleSingleAssign.
7fa4d4314bPeter Aronsson-Fixed bug in ceval of false == true, introduced in -r 5993
f2e35c7c07Adrian 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
1264120095Jens 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
25f2865b25Adrian 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.
28a1be4ab3Martin 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
28d85f98c5Jens 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
d8b1b164dbPeter Aronsson-Fixed compilation of rtclock.c for visual studio.
5d114b63d4Per Östlund- Use fake dimensions when vectorizing a function if checkModel is used. - partial fix for bug #1274
c10e4bb931Peter Aronsson-Removed some newlines in the debug print of expressions
b3419e922dMartin Sjölund- Fix parser compilation with GNU C++ headers (involves #undef __cplusplus to prevent the unintended use of C++ features)
957aab9a6fAdrian 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.
8a07489eabAnton 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).
d98eb99723Martin Sjölund- Update the type of SimulationResult
94d359770cMartin Sjölund- Fix rtclock.o compilation on OMDev
7a43d4b14bMartin 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)
f83cc58613Per Ö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.
f35adfa0baMartin 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)
3be70af079Martin Sjölund- Fix parse.c when parsedebug is used
ceb97af05eMartin Sjölund- Added testcase for getting values from records in the interactive API. The following now works: - x := rec.field; - rec.field;
ec1423f871Per Ö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.
3edbc66b4bPer Östlund- Made all enumeration names fully qualified.
dba6c747b4Anton Sodja- Removed unnecessary VarTransform.VariableReplacements from DAELow.removeSimpleEquations. - Changed type of aliasVariables in DAELow.DAELOW (currently ignored in trunk).
bbbea5cb46Adrian Pop- handling task #1269 - partial implementation of stream connectors + connection of stream connectors works now
1a95d5681eJens Frenkel- fix bug (more than one tearing variable) for relaxation algorithm
0064bbb934Willi Braun- fixed bug [#1263]
82657ee127Jens Frenkel- speedup updateAlgorithm
d73a40e961Martin Sjölund- Fixed IntegerLiterals32.mo on OMDev
878d7a4f2eMartin Sjölund- Also sort files in a directory when using the class loader - Fixed some compiler warnings (unused imports)
292f84a822Martin 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
4cdf9c75f6Martin Sjölund- Fix parser for empty within statements (within ;)
83fcbb7ce4Martin 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.
81c1c3ae55Per Östlund- Implemented reduction of enumeration ranges so that the enumeration literals are preserved. - Added utility function Util.listSub. - Added test case mofiles/EnumRange.mo.
1151192be6Martin Sjölund- Update parser makefile
da13ec0628Martin Sjölund- Fix integer overflow problem warning on 32-bit systems
00ba3abe75Willi Braunadd reinit support for euler, rungekutta, dassl2
36b4e1fc35Adrian Pop- fixed model extends X end X;
d897f977f9Jens 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
65718eed2dMartin Sjölund- Fix compiler makefile dependencies of subdirs
b1409562c0Martin Sjölund- Changed default parser from ANTLR2 to ANTLR3 - All testcases except flat modelica parsing works
b95e74fed1Per Ö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.
1e9833008cAnton 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.
8653dcbf7fAnton SodjaFixed bug where InterpolationTable::extrapolate() expects enumeration indices to begin with 0.
c2d026ce5fAnton 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).
92166980ccPer Östlund- Fixed vectorization of crefs so that enumeration dimensions are preserved. - Added test case mofiles/EnumDimSum.
05084f4d66Anton SodjaAllowed time samples to be only monotonous (before strictly monotonous) in c_runtime/tables.cpp.
48fa0803cbAdrian Pop- added missing c_runtime/ModelicaExternalC/Makefile - fixed ö from Linköping in ModelicaExternalC.cpp and included "../tables.h" instead of "tables.h"
4a45ac2746Jens 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
fbad45ad5aAnton SodjaAdded wrappers for table-manipulation functions (defined in c_runtime/tables.h) to libModelicaExternalC.
d82d552d41Jens 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
4bb4943004Martin Sjölund- Simplified parsing of identifiers - _ is now a valid identifier when lexing as Modelica 3 - It is Absyn.WILD when lexing as MetaModelica
2b628e7b30Anton SodjaIn Modelica Standard Library 3.1, certain external functions are lined with library ModelicaExternalC, which is currently missing in OpenModelica.
258df9bab9Martin 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
1ae5f6197aMartin 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)
4c47984ba9Per Östlund- Implemented simplification of size calls. - Added test case mofiles/ConstantSize and updated mofiles/DiagonalBlock.
bfe7352ff1Martin 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
7d6eba547dMartin 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
b9de7054f6Jens Frenkel- speedup backend function addDivExpErrorMsgtoExp
5f6d3602ffPer Östlund- Fixed bug #1255 by also fixing submods in InstExtends. - Added test case mofiles/ExtendsModWithImport.
7208e7d6d1Martin Sjölund- Added testcase for runScript() API
d285cae598Jens Frenkel- do not replace outputs of algorithms
150a3afe5cJens Frenkel- do simple replace also for algorithms - TODO: add algorithm outputs to BinTree of DAELow.removeSimpleEquations
5f08c46294Peter Aronsson- Changed Exp.subscriptDimension to return list of DAE.Dimension
f377ef4a6dMartin Sjölund- Updated ANTLR3 parser (match/matchcontinue/else) - Most of the testsuite now passes (virtually only error messages are different)
a8f190b409Martin 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)
1deb03978bPer Östlund- Implemented expansion of reduction calls sum and product, which are now expanded when possible. - Added test case mofiles/Reductions.
5c4f4fc339Martin 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.
3ae4516f59Per Östlund- Simplified elaboration of reduction iterators due to general changes in iterator elaboration.
cd8f312413Martin Sjölund- Added omc.exe omcd.exe targets to the Parser/Makefile, to link and use ANTLR3 instead of ANTLR2
10dae7a242Martin 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
aafe19f6b1Per Ö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.
4cf9aa2b4aJens Frenkel- fix bug in DAELow.traversingextendArrExp
ac645eb9f4Per Östlund- Commented out case in DAELow.traversingextendArrExp that converted component references belonging to blocks to empty calls. - Added test case mofiles/BlockResult.
e02bc2f5b0Per Östlund- Fixed bug 1249 by relaxing the condition in crefHasScalarSubscripts, so that crefs can have less dimensions than subscripts. - Added test case mosfiles/SliceAssignment.
99bf7a9e83Per Ö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.
4a6b0c5a75Martin 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.
bf3458ab88Martin Sjölund- Update handling of Absyn.IFEXP in the old parser and Static (we now have support for else-if branches in elabExp)
e922c8570eMartin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~572 of the testcases. - Improved error handling in the new parser.
924423af97Martin Sjölund- Add some error handling to the ANTLR3 grammar
c52a3a12b7Martin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~485 of the testcases.
0b28ce1c5fMartin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~399 of the testcases.
c8a3f827f9Martin Sjölund- More fixes to the ANTLR3 grammar (~308 working testcases)
64e5772053Martin Sjölund- More fixes to the ANTLR3 grammar (~264 working testcases)
28909bdf96Martin Sjölund- More fixes to the ANTLR3 grammar (~165 working testcases)
3e3bc2b697Martin Sjölund- Add missing parse.c to the ANTLR3 parser
5099b97a14Martin Sjölund- Updated ANTLR3 grammar slightly. It can now handle ~140 of the testcases.
e3c83fe09dAnton SodjaReplaced isblank() with isspace(), because the former was added with C99 standard and it seems not every compiler supports it.
653fe0e1a0Martin Sjölund- ANTLR3 rules almost done. Can now link it with the omc executable, but it crashes for most input :)
83464e2924Martin 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()
22b3bcf7e8Anton SodjaReimplemented tables.{h,cpp} (and hopefully made code more clear) and also added support to load tables form MAT-file ver4.
07dfbfe073Martin Sjölund- More actions to the ANTLR3 parser
297e5be012Martin Sjölund- More actions to the ANTLR3 parser
0ab6e1f723Martin Sjölund- File encoding UTF-8 to 8859-10 (c_runtime/solver_main.cpp)
c460bfef47Martin Sjölund- Fixed RK allocation issues once and for all (alloca doesn't work in mingw, so we use a global malloc instead)
99c1416290Martin Sjölund- Guard some macros in f2c.h so they don't mess with C++ headers
fcd11b39faMartin Sjölund- Changed RK allocation method to alloca instead of variable-length arrays, since Visual Studio doesn't support those...
5e65412bd9Martin Sjölund- Another memory leak in rungekutta_step fixed
1b8845ec4bMartin Sjölund- Fix rungekutta memory leak
619142f0c0Otto TronarpRe-enabled the general handling of import in Cevalfunc.
57979b084eMartin Sjölund- Added some actions to the ANTLR3 grammar
1ceb951dfdPeter Aronsson-Added Util.arrayMap and Util.arrayMapNoCopy for mapping functions over arrays.
14872126a7Martin Sjölund- Fix building ANTLR3 parser prototype on Linux (ignore the directory recursion in the executable as it is written in Win32 API)
c0b665a3f0Martin 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
7e90ffe63cMartin Sjölund- Fix and add testcase for Integer() of enum - Fixes bug #1250
f8ba685186Martin Sjölund- Fixed the copyright information displayed to the user when running omc,mosh,OMShell or OMNotebook (years were outdated, etc)
7525cd61eeMartin 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
17363ad41dPavol 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)
df41f5a194Martin Sjölund- Improved the rungekutta implementation (call functionODE n times per loop instead of n+1)
fdb9a8bcfaAlexey 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
5e4adf4392Martin Sjölund- Backup algebraics in functionDAE_res, as per bug #1176
309ea32fe3Martin Sjölund- Added runtime support for array equations "cref = fn()", where the cref is an integer array - Solves bug #1242
4658adc790Martin 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
3f53ac6a7cAdrian Pop- fixed setting the compilation command on Windows for Inline solvers - fixed test name in InlineSolverCodeGenerationRK.mos
8a44c138e0Per Ö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.
6976d45292Martin Sjölund- simulate(..., method="inline-...") now sets the environment variables required during compilation
f4995318fdMartin 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
a21a1ea5f6Martin Sjölund- Only use EQUATION_GENERIC_FAILURE if no other error message was output during instantiation of the equation
67e58194ffMartin Sjölund- Add line numbers to error messages in Inst.checkConnectTypes
d78c0de047Peter 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)
31bc1393e0Peter Aronsson-Made DAE.transformIfEqToExpr public again since MathCore uses it in their backend.
1dc7a51866Martin 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
dd34e69631Martin Sjölund- Changed SimCode.SES_SIMPLE_ASSIGN.cref to a ComponentRef instead of Exp
a6b7fd432aPer Ö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.
704c78d5e2Martin Sjölund- Removed the SIMVAR to String to function from the template; the cref stored in it is sufficient to create the string
64408a43a2Martin Sjölund- Fix a configure issue when using sendData-Qt on OSX
66dc286c08Martin 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)
329884227dPer Östlund- Added getVectorizationLimit to complement the previously added setVectorizationLimit API call.
7d95a39cc5Per Östlund- Removed check for DAE.VARIABLE in SimCode.daeInOutSimVar so that it doesn't fail for parameters in functions.
1e5a948fefMartin 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
8bd36e4d51Martin 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
9cd5dc1242Per Östlund- Added setVectorizationLimit as an API command. - Cleaned up implementation of vectorization limit in RTOpts, and sprinkled some comments on it.
55d6d0b301Per Östlund- Unlifts both sides of the equation in Inst.instArrayElEq, so that their type is correct. - Added testcase mosfiles/ArraySlice.
f3ae7f3db2Martin 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.
c60144e20cPer Östlund- Moved an failtrace guard in instElement so that error messages are printed correctly.
7d0e021567Peter Aronsson-Fixed bug with prefixing of expressions inside subscripts of component references (Bug reported by Hannes Edinger). (testcase in ArrayIndex.mo)
ce8d339cb3Martin Sjölund- Enforce that function calls with multiple output have a tuple of crefs on the left side of an equality equation.
cdb205fde3Martin 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)
bb5feeb382Per Östlund- Added the new vectorization limit switch to the help text of OMC.
6e356d937dPer Östlund- Added command-line switch to set the vectorization limit used by Static.crefVectorize.
c6f0127ec6Martin 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
c90ce8d6d9Per Östlund- Readded changes made in revision 5900 that were removed in revision 5901, since they seem to be working anyway.
af398596a7Per Östlund- Undid revision 5900, since it caused some testcases in mofiles to fail.
f026142a2aPer Östlund- Fixed code generation of functions returning tuples. - Added testcase that tests the above fix.
0472e19dbaMartin Sjölund- Changed elaboration of cat() to ignore checking that the dimension we concatenate over is always identical - Fixes bug #112
42a586f6dbMartin Sjölund- Fixed the DAE function cache when elaborating the expression in a reinit() statement - Added simulation testcase FunctionReinit.mos - Closing bug #1023
b19ccda037Martin Sjölund- Use $(MAKE) in c_runtime Makefiles, to suppress warnings
4d3e6c0d97Martin Sjölund- Added runtime code for semiLinear(), and added simulation testcases for it
885d0c8547Martin Sjölund- Improve the error message when trying to use a non-linear system of equations in a when-equation
1c97aa013aPer Ö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.
8dac993ab4Martin 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]"
51e05b98bdAnton SodjaCorrected SimCode.getInitalValue(), so it check that variable's initial value is a constant.
291c7aba13Anton SodjaAdded additional fields to SimCode.SIMVAR structure: - String unit, displayUnit - Option initialValue (from modified SimCodegen.generataInitData{3,4})
edf3ffafc8Jens Frenkel- Exp.mo - add function expLastSubs - DAELow.mo and VarTransform.mo - extend arrays if elements of the array has to be replaced
9b6205d81dPavol 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
95e688a3ceAnton 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.
3176b77969Per Östlund- Fixed constant evaluation of for iterators. - Added test case ForIf.
99ea8af7d4Peter Aronsson-removed __inline when compiling with visual studio, because it can not cope so well with inline in combination with extern, causing linking error.
eadb012bbdPer Östlund- Fixed small mistake in instantation of reinit statements.
c6a172fe08Peter 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
0df1c741a9Peter Aronsson-Added error message for structurally singular equation (e.g. 0=0). Before we only had message for structurally singular system.
f356f49783Peter 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.
3cdea38380Per Ö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.
5982a41b99Jens 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
f46d1cc24dJens Frenkel- Exp.mo - simplify array of array * array with simplifyScalarProduct
bf4f3e2d49Jens 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(...)
fcad441a83Per Ö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.
faf9a638c4Adrian Pop- link of Lapack on mingw to the correct libraries.
2ad8b3a044Jens Frenkel- SimCode/SimCodeC.tpl - use "int" for enumeration type for external functions
61836d2451Adrian Pop- small fix
9d3d91308cMartin 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.
875344a484Jens 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
61e8401a04Martin Sjölund- configure searches also for omniidl in the specified place
51a8829779Martin Sjölund- configure for mico in custom directory, not on path
6d9af77968Adrian Pop- test commit in the new server
c37fd0165cMartin Sjölund- systemimpl CFLAGS for OSX
c95244d135Jens Frenkel- Exp.mo - try to simplify exp in ASUB in simplifyAsub if all other cases not true
f48be22180Martin Sjölund- Syntax error
5066a3ba34Martin Sjölund- Add check for -ffloat-store in the configure script. That also solves dassl runtime issues.
ef901fba1aMartin Sjölund- Change -msse to -msse2 as we need to use SSE on doubles, not floats
863b07dd8eMartin Sjölund- Set -msse in configure in case the instruction set does not have it enabled
aa859532c6Martin Sjölund- Running autoconf
3abdc5e9daMartin Sjölund- It's called -mfpmath, not -fpmath....
bb08ee6bbaMartin Sjölund- Force -fpmath=sse on Linux platforms, as otherwise simulations spin forever (32-bit)
d8d92ad600Martin Sjölund- Fix configure on OSX
ac71acc421Jens Frenkel- SimCode.mo - fix bug in derVarFromStateVar to avoid redefinition of macros in generated code
a50e099c4dJens Frenkel- SimCode.mo - bugfix code generation for arrays in function createNonlinearResidualEquations
b72b8c82fbMartin 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
4dfe86b35fMartin Sjölund- Updated checkSettings() to also post "uname -a" output - Compiler/runtime/Makefile no longer sets -O3 twice
0439004d51Martin 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)
b22dd42b4fWilli Braunupdate dassl2 in main_solver + change step calculation + and some minor changes regards error treatment
6dbad112afJens 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
a846a7368ePeter Aronsson-Fixed copy paste bug introduced in r5807 (in isZero)
32d2a69e52Willi Braunupdate dassl2 - add warm-start functionality when no event occuors - work faster than dassl
9808284825Jens 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
bf09803926Martin Sjölund- Fix configure script so include flags in qmake are set correctly (does not expect -I input as gcc does)
3a964eba85Martin 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
c4e97f2be5Martin Sjölund- Adding new tests to API checkSettings() - In the CWD: try to create a file, then remove it
1528f62f53Jens Frenkel- DAELow.mo - bugfix calculateIndexes now all arrays close together - Derive.mo - use type if componentref is derived
bc4fc344aeJens 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)
592e60f5a3Adrian Pop- no need to call generateFunctions2 in createFunctions anymore
7bb64a8877Martin Sjölund- Moved elaboration of NONE into elabCref to reduce the failtrace generated by MetaModelica files
879e3caf3aMartin Sjölund- Call instantiateDaeFunction when elaborating a cref that is a function reference
809f1e2d5bMartin Sjölund- Spelling error omshell
b4a2e7d1beJens 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
957c669ab5Martin Sjölund- matrix.h: Fix off-by-one error
08a1883d0cMartin Sjölund- SimCode makefile update for OSX (cp -u is not valid in BSD Unix)
f38ce5c504Jens 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
e1e9e606fbMartin Sjölund- make install no longer tries to install qtclients if they were not compiled
04b2be4051Otto TronarpAdded option to collect ZC from smooth.
425b379cf8Jens Frenkel- bugfix createOdeSystem2 for arrays
a6335a62d7Filippo DonidaThe "Boolean asInSimulationCode" parameter of the dumpXMLDAE() API method was changed in "String translationLevel". Allowed strings are: flat, optimiser, backEnd.
8e0b9af17dJens Frenkel- fix errors from last commit 5765
6edafbc6d9Adrian 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
4b6744d1b3Adrian Pop- minor formatting changes for improved readability
54403c4473Adrian Pop- proper error messages including the correct package name.
e47e9efea5Adrian Pop- faster Util.listSetDifference* functions. Empty - B = Empty.
898bad7d6bAdrian 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)
853d59ee67Jens Frenkel- bugfix linearSystems with array equations
2b5f014209Adrian 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/
82cfddd80aJens Frenkel- fix SimCodeC.tpl for records(containing arrays) pushed to functions
bb14693ff2Alexey 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.
9b5a9f3701Jens Frenkel- delete unneeded code
0f5c22e193Jens Frenkel- bugfix expStripLastIdent
2850de4419Jens 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
28bfa04aa6Adrian PopIOStreamExt.c - fail and print a message in IOStreamExt__printReversedList if we cannot allocate the string.
5069c32a57Adrian Pop- make the boundaries of functions more visible
4d784d6e27Adrian Pop- replace equality(x = y) with stringEqual/intEq/realEq - added more comments and updated some of the formatting
b284358f33Martin 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
4f81331cbcAdrian Pop- faster Exp.crefPrefixOf - replace equality(x = y) with stringEqual/intEq/realEq - added more comments and updated some of the formatting
2e309a879bAdrian Pop- replace equality(x = y) with stringEqual/intEq/realEq - added Absyn.pathEqual - added more comments and updated some of the formatting
1775f841c8Adrian Pop- get rid of the warning.
e1a3ef7ae3Martin Sjölund- Updated SimCode Makefile: Always set OPENMODELICAHOME to the build directory
71c456bf55Martin 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
747e7d3d7eMartin 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
8c29228504Martin 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
71422106a0Martin 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
038b98914fMartin 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)
6756969ee9Martin Sjölund- Remove duplicate SimCodeC.mo from svn
cfe815dcf6Jens Frenkel- DAELow.mo - extend multidimeqn after inlining if it is possible - Exp.mo, SimCode.mo - fix some bugs relatet to arrays
787f3b41ccMartin 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.
89eca8e0feJens 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
6230303484Martin Sjölund- Install DrModelica files when building OMNotebook
dc7c846b12Martin 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
f63b232ac1Martin Sjölund- make install needs to use -r flag on OSX (*.app are directories)
41787ea6baJens Frenkel- bugfix simplify
fe0d83a415Jens Frenkel- SimCode.mo - do lateInline - Inline.mo - also inline start expressions - SimCodeC - implement more cases for daeExpBinary
0844ddf963Martin Sjölund- make clean removes omc-diff.exe
f4e3fed49cMartin Sjölund- Makefile update for OSX .app extension
a27a8cc843Jens Frenkel- DAELow.mo - replace dummy der also in multidim equations - extend array equations for crefs
6498e0cd17Jens 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
8c242f31a5Per Ö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.
dda206a454Martin Sjölund- Fix testsuite after commit r5715
4aa3fa66deJens Frenkel- removeSimpleEquations also for simple array equations
243b13f807Jens Frenkel- VarTransform spelling - Derive bugfix dimension of zero derivative - DAELow start to implement removeSimpleEquations also for arrays and records
53125d5765Jens Frenkel- fix bug in statesAndVarsExp for records
fc85679751Peter 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.
c6c93dfbfcJens Frenkel- add derivative for ARR_ADD, ARR_SUB, CREF array - lower MultiDimEquations to normal equations after inlining if it is possible
94ab80f19bMartin Sjölund- Added LDFLAGS to LIBSENDDATA_LDFLAGS also for sendDataHumbug
c2b60b9ba5Martin 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
8737bea032Martin Sjölund- Added missing space in configure script
2c384467f6Martin 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
1986af6fdcJens Frenkel- start to add code for array equations to simcode
323186aba5Jens Frenkel- bugfix inlining records
8306ce5183Jens Frenkel- Bugfix extend Complex Equations
cadb20a6e3Adrian 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
df7694a519Jens 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.
bd54f3b9acPer Östlund- Removed commented case from elabCallReduction (see commit 4787).
416caefdc0Per Östlund- Fixed memory copy in solver_main.cpp (copying pointers does not copy data!).
94355bfd62Per Östlund- Moved Codegen.getMatchingExpsList and Codegen.getMatchingExps to Exp. - Moved Codegen.getUniontypePaths to DAEUtil. - Removed Codegen.
8c2f7766a4Martin Sjölund- Fixed compilation of OMShell-terminal on OSX
c901c4c0f0Martin 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
8edf4bd14dPer Ö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.
af858ed121Martin Sjölund- System.os now returns "OSX" on OSX.
ac68f9b820Daniel HedbergBuilt-in function fill is now simplified in Exp.simplifyBuiltinCalls() (used by MathCore).
330d5b9bf8Martin 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!)
d41f8910dcPer Östlund- Added min of array to code generator.
601156d763Adrian Pop- fixes for list stream printing.
ea0620fbc8Martin Sjölund- Fixed usage of sed on OSX (GNU sed handles -i differently)
aa1a3f7818Martin Sjölund- Add missing file config.unix.h.in
6ac75ea248Martin Sjölund- Fix configure for OSX
40d5a2b6efAdrian 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*
4830f971aaAdrian Pop- fixed compilation on Windows MSVC/OMDev
7bf6324398Adrian Pop- fixed problems on Windows MSVC/OMDev
10ea6fd19fMartin 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
dbf2255a08Peter Aronsson-Added crefPrependIdent that prepends and identifier to a cref (also given type and subscript list)
f0826337e2Martin Sjölund- Updated c_runtime/Makefile.in for building sendData on OSX (which won't link on x86_64 anyway)
68ba76f8b3Martin 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.
eec9cb3b2aDaniel HedbergReverted most changes of error messages due to a huge number of tests failing.
276c71e845Daniel HedbergImproved/corrected even more error messages (this should be the last commit).
0fa9137a18Daniel HedbergImproved/corrected even more error messages.
435b01af93Daniel HedbergImproved/corrected more error messages.
9c92ebc9dbDaniel HedbergImproved/corrected error messages.
a692140d75Per Östlund- Fixed wrong path to typeview in SimCodeC.tpl.
f8c1524b6fPer Östlund- Reverted removal of functions in Exp.mo and Util.mo from commit 5649 and 5650.
0a465569adMartin 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
1c272f6b11Per Östlund- Removed more unneeded checks in Exp.crefEqual.
d5a083fad6Per Ö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)
66b06d8220Martin Sjölund- ANTLR parsers updated
c9687d6dedMartin Sjölund- Fix bug in absyn_builder make target
5666f4fa4eMartin Sjölund- Updated dummy_model.cpp
fe0fec712cMartin Sjölund- Don't compile main() into libf2c.a
d4eb8d009bMartin Sjölund- Added automatic regeneration of TplCodegen.mo if the template changes
4e717a1f8dAlexey LebedevA little more to derivatives of constant expressions:
78f84c6febWilli Braunsmall bug fixes for solver_main
8e606f53acMartin Sjölund- Fix for Makefile ANTLR dependencies with parallel makefiles - Now says "Nothing to be done for `all'." instead of running ANTLR regardless
acf84baeafMartin Sjölund- Compiler/Makefile .depend target depends on a mo-file being changed.
8fbc7721a7Willi 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
25f8749527Alexey 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.
44088ddd7fPeter 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.
605ca5be4aMartin Sjölund- Remove tab characters from Absyn.mo
d49456c57bPeter Aronsson-Added simplification in Exp.simplify: der(c) => 0 for constant expression c.
cfd11e213dMartin 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
bb45ea3e82Martin Sjölund- Update makefiles to fail if we failed to generate simcode (and only try if omc is already compiled)
be11920144Martin Sjölund- Fixed line endings for the new .mo-files - Reverted accidental change to SimCodeC.tpl
7e183dee64Daniel HedbergFixed a bug in simplifyAsub for binary operations with operator type DAE.DIV_ARRAY_SCALAR.
9c7d3901a6Otto TronarpAdded /LTCG switch to the makefiles for visual studio.
fccbe6af68Martin 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
e1f51511e4Jens Frenkel- comment out extendAllRecordEqns until testsuite library uses inline annotation
8625642271Jens Frenkel- continue with extendRecords and function inlining
f41c316772Adrian Pop- fix the number of elements in Util.listFill call inside lowerComplexEqn.
cc832a19b8Jens Frenkel- comment out extendAllRecordEqns until it does not work as expected
5563a5caadAdrian 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.
630c48c44aAdrian 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.
7028d71c6cJens Frenkel- move function inlining previous to blt - start implementation of extend recordequations - ToDo: Test Records with array elements
7a874fe54fAdrian 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
326421d2d3Adrian 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.
fbf1fdc8e4Adrian Pop- more comments. - better connection set printing.
6fbfef01a5Adrian Pop- use the new DAEDump module.
662a18303cAdrian Pop- use the new DAEDump module.
c7f74cf219Adrian 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.
e2ac65f156Adrian Pop- send in the instance hierarchy to Inst.getUsertypeDimensions as is now needed for prefixing.
a697c2d39fAdrian Pop- added more cases to Ceval.ceval to handle logical OR expressions.
ba1a74afa7Adrian 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.
d0f07a39f1Adrian 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.
a231670022Adrian Pop- changes due to move of dumping functions to DAEDump.mo
4699d57e29Adrian Pop- changes due to move of dumping functions to DAEDump.mo
2179b8c10fAdrian 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.
9cc0cbb1d4Adrian 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
e50579b9b9Adrian Pop- added modifierAsAbsynExp to DAE.EqMod in the DAE.TYPED record. is it used to not call unelabMod functions when not needed.
eaedc0784eAdrian Pop- partially implemented IO Streams. - right now only list stream is complete.
80392f988bOtto TronarpPreserve noEvent around event triggering functions.
b9b0b241c3Martin Sjölund- Added Unix make target "fix-svn-eol-style" - Fixed line ending for all .mo and .mos-files in Compiler/ and testsuite/
07764b48a3Otto TronarpFixed bug in trimChar for empty strings and strings containing only one char that isn't trimmed away.
74e5beb8e8Alexey 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.
c047eac2a1Martin Sjölund- Removed unused GCC -I directives from Compiler/runtime/Makefile
1f8e209b66Martin Sjölund- Compiler/Makefile now calls susan to generate simcode (if omc is already compiled)
29d327c381Martin Sjölund- Added code for generating time event hints in SimCodeC
cead45dd45Pavol 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
0603213216Peter Aronsson-Split System.userIsRoot to two separate implementations, one for windows and one for linux (not everyone is using the omc_msvc.h header)
d5cfd135cbMartin Sjölund- Template-based code generation mostly working again.
081fdcbbebMartin Sjölund- Fix for make -j2 in c_runtime/Makefile.common
7d101595c4Martin Sjölund- Fixed LF eol-style on Compiler/*.mo - Made C code generated by Susan use const char* instead of char*
26292774f3Martin Sjölund- Add System.userIsRoot() - If the user is root, omc prints an error message and exits.
e68edf4619Martin Sjölund- Updated code generation of external function libraries - Library="Lapack" on OMDev now outputs {-llapack,-lf2c,-lblas}
fbc95d6dfcMartin Sjölund- Fixed tolower/toupper malloc off-by-one error
536dff0136Adrian PopAbsyn.mo - proper formatting - changed != into Modelica <> so that omc can parse the file
ebb2860716Pavol 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
c72577ab57Per Ö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.
ba0252aa8eLennart Ochelcode for codegeneration of symbolic jacobian external functions and algorithm blocks are not implemented yet
58053fb972Martin Sjölund- make clean removes libinteractive.a
23f929a475Martin 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
8c0474d853Martin Sjölund- Added -lpthread in omc_debug/Makefile.in
f2e9e45e23Martin Sjölund- Fixed System.toupper segfaults - Added System.tolower
d775b15036Martin Sjölund- Fix InstExtends when referring to an imported variable in an algorithm section.
3b286ebf94Parham VasaielyControl Client and Transfer Server will be initialized with default communication settings (IP, Port) if not set by user
d7a0e85918Martin 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.
6712f35eaaJens Frenkel- bugfix calculateIndexes
4c020da997Otto TronarpAdded pathContainsString for use in MC's filterOutExamplePackages.
e5504c5fd4Martin 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.
ebc025d073Martin Sjölund- Make clean should also remove omcd.exe
7dfed50180Jens 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
241e716ff8Pavol Privitzer- new Susan syntax for template header ... template templName(args,...) "comment" ::= body end templName;
b81097283aJens Frenkel- derivative annotation for functions: functions with record as output now works
779d570ecbJens Frenkel- continue with derivatives of functions: functions return records
74383f963bAlexey LebedevConstant evaluation for derived functions without modifications.
1559179980Per Östlund- Minor optimization of SimCodegen.generateOdeSystem.
8d5cd09327Per Östlund- Added extra checks in all HashTables, as was done for HashTable5 in revision 5498.
28228a8803Peter Aronsson-Added function System.windowsNewline for creating string constant '\r\n' since MetaModelica has a bug for that literal.
28fd48180aJens Frenkel- continue with derivatives of functions: noDerivative bugfix
f57506498dMartin Sjölund- Added omc_msvc.h: A compatibility header that adds inf,nan and round macros for MSVC.
41d728d972Per Östlund- Added extra check in HashTable5 to make sure that the right function is found.
f7683905f2Otto TronarpFixed compilation on Linux.
45cbdbf66fDaniel HedbergINFINITY and NAN are not defined in math.h on Windows (MSVC). Removed the code involving those definitions for MSVC.
ecfa67cdd2Pavol Privitzer- a small SimCode/SimCodeC.tpl bug fix ... '-L"<%modelInfo.directory%>"' was incorrectly given as constant in ""
e1d25f16deDaniel HedbergFixed order of includes to make things compile (in Visual C++) again.
82afb8f8b8Peter Aronsson- Added className to handleUnitChecking (for debugging purposes only) - Added MMath.rationalString - Fixed bug in unitparser. before adding baseunit, check if it already exists.
bc03247ff5Otto TronarpAdded appendFile to System.
1ae767699dAlexey LebedevA fix for the cache bug which was causing derived function lookup to fail ( http://openmodelica.ida.liu.se:8080/cb/issue/1198 )
369459d830Peter 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
4e0e2ac9c0Pavol 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 << ... ' ... >>
18c24f5562Martin 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
f6c0ac1a42Adrian 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.
55a6fbcd80Martin 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
ad5bfb2a5eAdrian 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
a666545e54Adrian Pop- add case if-expr = cref in Exp.solve as is a mirror of cref = if-expr.
4c25a040f7Adrian 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.
ad5352efccAdrian Pop- Linköping is now back to normal.
ca6f3d9374Martin 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).
2cfc58b73aOtto TronarpRemoved all duplicates that had identical implementation on Windows/Linux.
74d6115e4ePer Östlund- Fix for bug #1216: http://openmodelica.ida.liu.se:8080/cb/issue/1216 + Inst.implicitFunctionInstatiation now sends the correct environment to getDeriveAnnotation.
6d16f8ff6dPavol Privitzer- C# templates before transformation into new syntax
f3009d4537Per Ö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.
009db3903cAdrian Pop- the system call is the same for Windows/Linux, moved at the end. - also added tracing to the System__systemCall function.
dd92b623eaAdrian Pop- correctly set the return value from the execution of the generated executable sometimes the executable would return -1 instead of 0!
385a7f2a08Adrian Pop- added a Makefile for MinGW and Linux.
0dd18c2f9fAdrian Pop- wrong copy & paste position now fixed.
3fa4f1cb01Adrian Pop- an ANLTR3-based lexer/parser for Modelica 3.1 - see the README.txt
050faf9874Martin Sjölund- Adding some comments to Util.StatefulBoolean functions.
125a167eb9Peter 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)
3accbc43e4Adrian Pop- create the release directory
da96ef00adMartin 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.
16dd3c81b0Parham VasaielySequence number added to server reply (e.g. start#SEQ#end, done#SEQ#end). For more detail see documentation.
5fa7692f81Parham Vasaielyinteractive components will now be compiled correctly in windows
4ed13a91ebRickard LindbergAdded comments to templates.
b3e951c929Per Ö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.
32b6ae1840Jens Frenkel- continue with derivatives of functions: remove debug print
bc97f7379cJens Frenkel- continue with derivative annotation for functions: functions with multiple outputs now works - implement replaceDummyDer for algorithms
9f0e3ae82aJens Frenkel- continue with derivatives of functions: outputs
27d0b05403Alexey 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.
5d4ebea61fMartin 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.
952cce9631Per Ö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.
ec52821d47Stefan Brus- Most of the partial function tests now work again
5601107793Per ÖstlundFix for bug #1208: http://openmodelica.ida.liu.se:8080/cb/issue/1208 - Disabled constant evaluation of parameters with fixed=false in Mod.elabModValue.
f681299ecbPer Östlund- Merged the interactive_simulation branch into trunk. - Removed check for QTHOME in systemimpl.c, since the QT libraries should be found anyway.
5770f8978bMartin 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.
9227c0134dJens Frenkel- continue with derivative annotation for functions: check of inputs from derivative function works now
7c7e6eec87Adrian Pop- forgot some debug prints. now they are no more!
3f4b62cb7eAdrian Pop- forgot some debug prints. now they are no more!
a8cd3d9adcAdrian Pop- updates to READMEs
8247a52e00Adrian Pop- update of dummy_model.cpp
0ce4b58f39Adrian Pop- add the equalityConstraint function to the DAE.
49021358e1Per Ö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.
dbd4671ad7Per Östlund- Fixed configure so that USE_CORBA is set correctly.
5edb1dd3d2Martin Sjölund- Added new configure option --with-Coin (Coin disabled by default).
5fcde545a7Martin Sjölund- Adding -source flag to java_interface makefiles since eclipse javac default to version 4.
d6bed0f353Martin Sjölund- Added a configure option to (force) statically linked lpsolve55 even if dynamic libraries are present.
19e35d9a48Martin Sjölund- Remove OMPlotWindow on clean
c8c9755859Martin Sjölund- Renamed ext OMPlotWindow
222d03a08fAdrian Pop- added profiler target
51f338e4faMartin Sjölund- Don't rm -rf build/ on clean; only distclean
c5af20bf99Martin Sjölund- Fix broken OMShell build.
9f32ecb835Martin Sjölund- Install scripts in share/omc/scripts instead of bin
8b5b5061ecMartin Sjölund- Fix so the qtclients idl files aren't re-run every time they are built.
a3ad983f5bMartin Sjölund- Fixed https://openmodelica.org:8443/cb/issue/1200 - Search /lib/ instead of /lib in case lib is a symlink.
d37d25d46bMartin Sjölund- Use qtclean target to Makefile.common, so we actually clean up after the qtclients.
d9f79c1909Martin Sjölund- Move libQt*-mingw.a from build/ to c_runtime/omdev_qtdeps. - Delete build/ from svn.
f5033e11a0Martin Sjölund- Added antlr_license.txt. Missing from last commit.
901913cfd7Martin 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
c80d284050Martin Sjölund- Updated c_runtime/Makefile.common for OSX (needs to run ranlib on .a-files).
baac3d9017Jens Frenkel- continue with derivatives of functions: start noDerivative, outputs
db6c52f3c4Martin Sjölund- Fix docdir for install script
7f64925080Per Östlund- New fix for --with-CORBA=DIR
8c1683fb98Martin Sjölund- Fix for mico-config --with-CORBA=XXX
0c8f954a57Jens Frenkel- continue with derivatives of functions: zeroDerivative now works
84734ff0b0Martin 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.
c1ab7db505Martin Sjölund- Make omc exit if OPENMODELICAHOME is not set.
ef0326b40fMartin Sjölund- Don't copy .svn-files when doing make install.
c385bc08f2Jens Frenkel- continue with derivative annotation for functions: order > 1 works now
e301ae5d53Jens Frenkel- continue with derivatives of functions not Working: - output arguments - check derived function inputs and outputs (frontend) - order > 1 - zeroDerivative, noDerivative,
cef4376ec5Adrian Pop- updates to visual studio projects, makefiles, qt clients and pdbs
7df59a321fJens Frenkel- derivative annotation for functions: convey functions to differentiateExpTime
facdf281e9Martin Sjölund- Adding OMC_API-HowTo to install target for omc (only did omcd last commit).
021660c993Martin 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.
3ea80f9c16Jens Frenkel- Bugfix, derivative annotation for functions, functions with annotation(derivative=foo1) wasn't found
e4c8c8f324Martin Sjölund- Added support for unset RMLHOME when doing ./configure - More removal of files when doing make clean or make distclean
4a5e03ba89Martin Sjölund- Updating linux makefiles (and rmldep-new.sh) to work without RMLHOME set (it is set by ./configure!)
91feb6780cMartin Sjölund- Added support for omniORB in qtclients. + We can now remove the dependency on mico for Linux systems.
3af9dfd0fbMartin Sjölund- Updated configure script to configure lpsolve55 properly (some systems require -ldl -lcolamd, others don't).
cf1a053a23Martin 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.
9be5da6923Martin Sjölund- elabCallArgs now guards the general case from accepting record constructors.
0f9f541459Per Östlund- Fixed detection of nested when-statements [bug 1189: http://openmodelica.ida.liu.se:8080/cb/issue/1189]
cea230f2d3Per Östlund- Fixed code generation for min and max (bug #1196: http://openmodelica.ida.liu.se:8080/cb/issue/1196).
2d98f62672Per Ö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.
9b34ee9631Martin Sjölund- Added support for "record ABC = DEF;", and calling the record constructor ABC. - Added testcase records/Derived1.
5b76eaa805Martin Sjölund- Fix for getNthComponent (partialInstClass wouldn't work on certain scopes that extend with modifications).
bbd366a923Martin Sjölund- Remove failtrace for lookupVarInPackages.
8aaa495781Martin 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.
8b99fbf424Per Ö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.
968abd0ce7Adrian 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.
69c6485440Martin Sjölund- Removed "Lookup of enumeration variables" from lookupVarInPackages, since the general case also handles enumerations (less code to maintain).
59b2b5b0b5Martin Sjölund- Simplified the code for lookupUnqualifiedImportedVarInFrame so it's easier to maintain.
dea22dde2dMartin Sjölund- Simplified the code for lookupQualifiedImportedVarInFrame so it's easier to maintain.
b22956fde6Per Ö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.
a5c5731232Per Ö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.
1672c17bfdMartin 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).
edb8d67248Adrian Pop- added operator record to the grammar / walker / Absyn.mo (from Modelica 3.2).
a611bef985Adrian 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.
9291bcb334Jens Frenkel- readable DivisionbyZero ErrorMsg - test only divisor part of parameter Equation if zero
ff0a8e9d30Martin Sjölund- Do updateCompeltsMods also when doing a partial instantiation (this solves some issues in Modelica.Media; some others remain though).
234d69e47aMartin Sjölund- Removed lookupVar failed failtrace (I re-added it by accident after debugging). - Added printing of scope used when instantiateDaeFunction fails.
999aaf6453Jens Frenkel- finish relaxation algorithm works also for template codegen, - use "+d=relaxation" to solve linear systems with relaxation algorithm (gaus ellemination without pivoting)
4cd0f18f08Jens Frenkel- continue with relaxation algorithm
0301cc37eeJens Frenkel- start implementation relaxation algorithm
8f5cebccceJens Frenkel- implement pow operator for matrix
0d5d932408Martin 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).
9aef184cacPer Ö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.
fe3d614bbcAdrian 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).
fdbf4b8c23Jens 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
2d5dd111fcMartin 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.
c7babf5b27Jens Frenkel- implement elsewhen part of whenequations for tplmode
bf298affa5Rickard LindbergFixed incorrect generation of makefiles.
1a08cf87d6Jens Frenkel- implement elsewhen part of whenequations
abf20b1369Rickard LindbergUpdated some comments.
87488ed1c4Rickard LindbergAdded more documentation to SimCode and did some refactoring.
aa6e243ba4Martin Sjölund- Fixed some gcc warnings in Compiler/runtime on Unix.
1c5d87c9b0Jens Frenkel- division by zero problem, test parameter expressions only once
752953f0e5Jens Frenkel- continue with division by zero problem, attend mode (ALL,ONLY_VARIABLES), removed unused functions
76bd57746fAdrian Pop- moved getTotalProgram from Interactive.mo to a new package Dependency.mo so that it can be shared between OpenModelica and other tools (MathModelica).
e4b9519712Martin 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)
a64ceaf86aMartin 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).
658739cd7dMartin 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.
3a20c8450eOtto TronarpMake it possible to setup a different default compiler through environment variables.
852f5d5063Martin 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.
71de94c92fMartin Sjölund- Updated the generation of Makefile header so you don't have to specify SENDDATALIBS if you run it manually.
6b21019aaeJens Frenkel- update CMakeFiles for linux
992b28e68dMartin 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.
d3f08b32edJens Frenkel- update CMakeFiles, start with testsuite
1d602c52aePer Ö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.
deff1a39bdRickard 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
5aed0dfa57Martin 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).
036e41c393Jens Frenkel- CMakeFiles: install omc, libs, docs, testmodels, includes
7fdfdabd48Jens Frenkel- CMakeFiles work with VisualStudio but generated omc.exe wound work because of qt problems
7d31d76a5cJens Frenkel- continue with CMakeFiles
74c8e90e59Per Ö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).
7f3cf54b27Martin 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.
24b928b84aJens 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. ...
233041f010Martin Sjölund- Print a message about what port is being opened if omc is started with +d=interactive (socket interface)
1fcc180d26Rickard LindbergRefactored templates.
bc0bce83eaPeter Aronsson- Reverted (constrain is used in the old multibody library and MathCore uses it.) Testcase will be added later today.
7dac18644cJens Frenkel- update CMake Files, now only the linker fails
64220111aePeter 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.
9e8a425aedPeter AronssonReverted -r 5194 as it destroyed a lot of testcases at MathCore. I will add these as instantiation tests in OpenModelica later today.
562109bf42Per Ö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.
7b5013ab79Jens Frenkel- continue with CMakeFiles
9dbd9c1dacPer Ö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.
36a7506316Jens Frenkel- update CMake Files
a44025e555Rickard LindbergRefactored and documented C code generator template code.
ac698813e5Jens Frenkel- add CMakeFiles to build omc with CMake (not yet finished)
99f4a4df3eJens Frenkel- missing file for division zero problem implementation
58d75a68bdMartin 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).
f88b5cdb55Jens Frenkel- first implementation of division by zero problem (only for template part)
4d83e40e68Alexey LebedevFix for the multiple declaration bug: http://openmodelica.ida.liu.se:8080/cb/issue/1071?navigation=true
64ecd443c9Martin 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.
7e00010d0bRickard Lindberg- Extracted extra record declarations from uniontypes - Extracted libraries (arrays of libraries) from annotations - Generated external type for meta types
c3d58ee9e8Martin Sjölund- Added a makefile target for building omc with RML profiling information
bae366c7b6Peter 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
2cf0113cfcRickard Lindberg- Extracted record constructors as functions and generated code for them - Generate complex constant expressions in daeExpMetaHelperConstant - Generate type descriptions for meta types
547392dd9fPeter 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.
656c479a56Rickard Lindberg- Generated code for STMT_TRY - Generated code for STMT_CATCH
3ca7676241Rickard 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
08a2843459Rickard Lindberg- Implemented generation of expression CONS - Implemented generation of expression METARECORDCALL
9f02d82a9ePeter 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
62e1d70231Björn Zachrissonsome comments added
e8155de7a3Martin Sjölund- Fix for Lookup.lookupVar: Check for valueBlockScopeName in addition to forScopeName. - Fixes MetaModelica and ForIterator test cases.
99be13c6d7Peter 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.
e6fbe8b532Per Ö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.
2b4d698497Martin 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).
5e47787df1Martin Sjölund- Fix for errorext.cpp on Linux (missing string.h for strcmp; OSX and Win32 doesn't require it).
347a43cb06Jens 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
c73689577dMartin Sjölund- Fix for errorext.cpp (use strcmp instead of pointer comparison).
81e29fb02bDaniel HedbergAdded a few utility functions: - crefPrefixOf - isNone - isSome
744279279aMartin Sjölund- Fix for errorext.cpp (was missing include stdlib.h).
808ffb4cf5Peter 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.
f27bf7cc1cPer Ö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.
b413d1a0a3Adrian 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.
001cae3409Per Ö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.
24356b45dfMartin Sjölund- Fixed error messages from Static.instantiateDaeFunction when trying to instantiate from the top scope.
7ac6c747fbMartin Sjölund- Replaced Static.calculateConstantness with listFold.
9ff466833aRickard LindbergImplemented generation of expression LIST, META_TUPLE, and META_OPTION.
a1c2e00febMartin 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).
4059df1ad5Martin Sjölund- listFold instead of listReduce when simplifying calls. + Works when using an empty list of arguments.
6f7745c5b3Rickard LindbergImplemented generation of STMT_THROW.
a5ba5c356aRickard Lindberg- Implemented STMT_MATCHCASES - Implemented STMT_BREAK - Added missing record STMT_RETURN in the typeview (solving the problem described in the removed comment)
4a45461106Peter Aronsson-Fixed some bugs with wrong type in component references
58b2938988Martin 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.
6904a3b9ecRickard Lindberg- Fixed readInVar template to work for nested records - Refactored code for writeOutVar template
a6f84c5472Adrian Pop- replaced Linköping with Linköping
f651d38de6Adrian 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!
25fdad4029Martin Sjölund- Updated simulation runtime to support pre() and save() on strings.
5eb5545d97Rickard Lindberg- Generate record declarations in correct order - Generate correct type descriptions for nested records
cca934e475Rickard 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
757135339cMartin 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.
67fe5497f1Martin Sjölund- Added c_runtime/Makefile.common. - You now only need to change one file when you add headers.
af09153702Adrian 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).
442c6ba667Adrian 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)
9f121f134bAdrian 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)
3fe65159bdMartin 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.
7f0edc4984Rickard LindbergFixed testcase ExternalFunctionResultOrder.mos.
dda76d6f04Per ÖstlundDisabled earlier changes in Env.cacheGetEnv2, since these caused problems in Multibody.
9acd6c2074Peter 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).
9bb3962049Björn ZachrissonAdded a back patch for Qualified instantiation
e01b561eefMartin 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.
dab774d24cPer Ö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.
fe850cb5caBjörn Zachrisson* Fixed initial array equations * Activated back patching of initial if equations with Connection.isRoot() as statements.
5b6f8ef9c3Martin Sjölund- Added support for external function annotation Library={"lib1","lib2"}, as per the 3.1 specification. + Updated MetaModelicaDev testsuite to use this functionality.
7732cc983aRickard LindbergGenerate correct read/write in 'in_' functions for complex types.
01b6408936Rickard LindbergGenerate code for STMT_RETURN.
a3b052db08Rickard LindbergGenerate correct C type for external string array arguments.
9453132a17Martin 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.
484b849bdeMartin Sjölund- Fixed OMC parsing issues in Inst.mo. RML didn't complain even though the syntax was clearly incorrect.
c28f2cbd8aMartin 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).
e576202179Martin Sjölund- Fixed a MetaModelica bug where matchcase expressions with 0 input variables were disallowed.
8f0ca7e3caMartin 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.
a74698e334Rickard LindbergAdded special case when cref is of enum type.
bf539eb619Rickard LindbergGenerate 'in_' function for external functions.
edf4128310Rickard Lindberg- Added support for generating single functions using Susan - Added case to STMT_ASSIGN_ARR to handle slices on the left hand side
fd31d00578Per Ö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.
33aa739882Martin Sjölund- Changed Env.BCFrames to list instead of list. - Updated Inst.getDerivedEnv and Lookup.lookup{Class,Var} to reflect these changes.
7ca7a826b9Per ÖstlundFix for bug #1146: + Fixed elaboration of fill (such as zeros and ones) on arrays of unknown dimensions. + Added testcase FillSize in mofiles
33d41497bbRickard Lindberg- Fixed when_sorting test case by extracting a new set of equations including when equations (used in functionUpdateDepend template) - Generated functionCheckForDiscreteChanges function correctly
dbf1b8745bStefan Brus- C_runtime .c files now have updated license headers
6101653a59Stefan Brus- C_runtime .h files now have updated license headers
c91b93bdadStefan Brus- Rest of .mo files
3ea3af849cStefan Brus- First batch of updated license headers
a16418cb52Jens Frenkel- bugfix CombiTable2D
6440d842ffJens Frenkel- implement CompiTables2D, not testet yet
4c1bf45db0Per ÖstlundImplemented support for initial array equations (DAE.INITIAL_ARRAY_EQUATION). Not properly tested yet, but shouldn't break anything.
2889f767daMartin Sjölund- Changed the base class in SCode elements to a list instead of option.
1fff03f80dMartin 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.
d09df64a59Rickard LindbergImplemented generation of delayed expressions.
c9a3785951Martin Sjölund- Fixed r5075 (which changed encoding of Swedish letters into ???)
b625b007ffRickard Lindberg- Implemented generation of reductions - Fixed incorrect name in print string - Added empty function checkForDiscreteChanges (to make it compile)
2c53374e8eAnton 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'.
a15d95b0d5Martin Sjölund- Updated URLs in README-OMDev-MINGW.txt
d73a1807d2Jens 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.
32450ecf45Martin Sjölund- Removed trailing whitespace from Compiler/*.mo
07ba55561aMartin Sjölund- Added Env.BCEnv for the type used by base classes (currently aliased to Env.Env)
dc1700679bMartin Sjölund- Updated Inst.getDerivedEnv - it no longer needs to check for possible infinite recursion since lookupClass does that for us.
69c7b3f605Jens Frenkelbugfix for removeSimpleEquations
1424f5484eMartin 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.
0f8cb8bfb0Martin 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.
7e28e4be0cWilli BraunUpdate event handling for euler. Add two testcases: one for event iteration and one for when sorting cleanup Codegen.mo.
19a91a56dbMartin 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.
fd1a8d4d2ePer Ö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.
c4c9d16968Martin Sjölund- Dynamically loaded functions are now compiled using g++ instead of gcc. They are still exported using extern C.
913c2eed9eMartin 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).
c45bb8c8e8Adrian Pop- ValuesUtil.unparsePtolemySet2 was failing due to some problems with dimensions of Values.ARRAY; because of this plotting was failing, now it works again.
e8c9c986d0Jens Frenkel- continue with division by zero implementation
ed8745e7f6Martin 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
e942573401Jens Frenkel- continue with division by zero implementation
ec7fd3b1d6Martin 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.
369ce9c190Martin 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).
78823db89bPeter 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)
934f9e0068Björn ZachrissonSome minor renaming of functions to be more correct according to rest of project.
ad3d230f2cAdrian 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];
65b7bf363fJens Frenkel- start implementation of check division by zero
fdec6091cbJens Frenkel- undo more simplification (Rev 5008) because speedup is less than 1%, so numerical stability will be preferred
a401034406Martin Sjölund- Merged cases in lookupClass2 to make it easier to follow
c38023872fBjörn ZachrissonAdded a Absyn function to strip last cref of a qualified cref
118e69387dJens 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}}.
1e41eb2cd6Jens Frenkel- do a bit more simplification
43e852c8e6Rickard LindbergFixed failing test case mosfiles/BooleanArray.mos.
491ebe5260Martin 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
672fc711bfJens Frenkel- add missing built in math function return types
a19b7ef519Adrian 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 .
c37a5cfc7eBjörn ZachrissonSome minor changes to inst->deriveing function and Exp functions.
fff335ccfaAdrian 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
1e58316a14Adrian Pop- added a new function - use dummyInfo constant rather than construct it on the fly
64555747aaAdrian Pop- updates so it compiles
3248d3e0baMartin Sjölund- Updated get_array_sizes in dynload.c to use existing dimension information from the Values.ARRAY
a0776c543eMartin 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
aea77c6fceMartin 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.
e014cd823aBjörn Zachrissonminor changes in front-end, * some new functions * cleaning of code and complement to existing functions
a85f09cc28Jens Frenkel- update CMake files, now it is possible to at external c sources
229b9df2fcPer ÖstlundAdded a variant of buildModel that takes a stepSize instead of startTime, stopTime and numberOfIntervals. This is used by Parham Vaseles OpenModelica Interactive implementation.
ba7081a4abMartin Sjölund- Balanced the ptolemyio.cpp indentation.
72f31febfbMartin Sjölund- Removed tab characters from ptolemyio.cpp
6d37331b9dMartin Sjölund- Added MetaModelica builtin function print(String) as a Modelica builtin function instead (by request from Adrian)
a824e50eefJens 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
696ab5acd4Martin Sjölund- DAEUtil: Added some printing of MetaModelica statements (to see more structure of functions when printing flattened models)
c534959990Per Östlund- Fixed elaboration of the builtin vector function (should now give correct result and type). - Added test case VectorBuiltin to test the fix.
c2f643cef0Martin Sjölund- Static.mo: Improved readability of logic in edge,change and cevalIfConstant
9eed6156c5Jens Frenkel- add Flag "-mt" to measure simulation run time
d69f1e6177Jens Frenkel- added CMake files to generate for example Visual Studio project to debug generated simulation executables
08a53fa447Martin Sjölund- Exp.printExp: + Added WILD + Added VALUEBLOCK
a83238e51aMartin Sjölund- Added better _init.txt trace messages during verbose simulation
38b82ed853Martin Sjölund- Fixes for code generation of scalar arrays (now works for boolean arrays in simulation context)
6da3c54d7bPavol Privitzer- QHP/TestRedCellsTotal.mo ... another model to be translated to C#
8c37dd3207Pavol Privitzer- C# codegen update for OM Workshop - C# functional code in RightHeartStarling.cs
44586a3881Jens Frenkel- Bugfix: tearing algorithm - add new variable kind STATE_DER in DAELow to differentiate between State and der(State)
fb7ef482c9Björn ZachrissonAdded some functions used by MC back end
8634e48a5aMartin Sjölund- Fix for sample(startTime,i). Now doesn't generate events unless time >= startTime, as expected.
d3b57e14aePer ÖstlundFixed elaboration of built-in function 'integer' when the argument is an Integer.
a449c966a1Per Ö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.
685cda8de7Adrian Pop- fixes for 3.x annotations - added getNthInheritedClassIconMapAnnotation and getNthInheritedClassDiagramMapAnnotation for retrieving annotations placed on extends.
a9540c8b4bAdrian Pop- hopefully faster/better Util.listReduce
8fdc9e199bAdrian Pop- fixes for enableSendData
5e00c55eb7Martin 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.
e769ade035Per ÖstlundFixed bug #1161, where 3*(2^p) was 'simplified' to 3*(p^2.0).
7c7db5fab6Per Ö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.
159bb32195Martin 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)
8312a2ab83Jens Frenkel- tearing implenetation: check if tearing succeed, make negative entries from IncidenceMatrix positiv to get a working matchingAlgorithm
8a291c9f82Adrian Pop- more info on how to generate .project in README-OMDev-MINGW.txt
315ef962d8Jens Frenkel- tearing implenetation: first codegeneration version works
a3c36dca9fPeter Aronsson-Small bugfix for instantiation of derivative functions.
b3ca929a25Rickard Lindberg- Moved generation of makefile to templates - Added skeleton for new function needed by simulation library
472c3db441Martin Sjölund- Added scope name for valueblock scopes + Used to be NONE(), but that causes Env.getEnvPath to fail
a8e27f48f0Peter 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.
0cd7fe726cPeter 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.
2c0a4210f3Björn ZachrissonAdded some functions to Exp.mo
acad427023Rickard LindbergCleaned up template code and fixed incorrect name for some structs.
da1f06649aRickard LindbergChanged C# template to reflect string-to-Path data structure change.
6bd879f931Martin Sjölund- Added failtrace when Env.getEnvName fails (related to MetaModelica problems in the testsuite)
c791e318c3Reino RuusuA basic implementation of the built-in function delay(). Lacking features: * Handling of delayed events * delayMax is ignored * Checks for some improper usage
2c0af657c7Martin Sjölund- Added better unparsing of valueblocks for debugging purposes.
a5def2cfafReino RuusuBugfix: DDASRT sometimes jumps to a root at t > tout when INFO(3) = 1. Affects cases where outputSteps < 0.
ffda0c5c9aReino RuusuFixed a bug in DAEUtil.traverseDAE2 that prevented changes to component contents being returned.
c2ccd28fafBjörn ZachrissonRemoved debug prints from operators
9345201627Jens Frenkel- Bugfix: tearing selection algorithm: array variables
23ea833703Martin Sjölund- Fixes bug in codegen of record constructors after PA's changes.
48ca649ba3Peter Aronsson-Fixed a couple of the failing tests from earlier checkins. Testsuite closer to 100%
73787f4772Björn Zachrissonminor changes how functions and records are treated. Added some functions.
b52ccc41cfJens Frenkel- mistake in writing
6addc17cf4Björn Zachrissonadded a crefAppend function for Exp.mo
df3697fcc8Jens Frenkel- Bugfix: tearing selection algorithm, replace tearing variable also in scalar part of equation - print more information with tearingdump
f91ad1ba16Peter Aronsson-Updated backend after changes to ClassInf.State.
8e242dd093Peter Aronsson-Fixed bug introduced in -r4876 (size({{1,2},{3,4}})) stopped working. Testcase for this exists in backend at MathCore.
1b9246414bPeter 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
2997533f78Martin SjölundJava Interface: - Fixed CLASS_EXTENDS typo for AstAsCorbaString - Added better error messages for ModelicaRecord.java
e4cd64999bPer Östlund- Fixed cevalBuiltinSizeMatrix to work on non-constant matrices. - Fixed elaboration of non-constant for-loop range limits. - Added testcase DiagonalBlock for bug #1149.
09d0305b7dAdrian 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
ffc7b11ba4Adrian PopCodegen.mo - got rid of unused import Inst;
7a31d5d0b4Jens Frenkel- implemented first tearing selection algorithm
a245334e2eMartin SjölundJava Interface: - Optionally send types when creating records from Map (required for uniontypes to work correctly)
0b7986a40aPer ÖstlundFixed bug #1153, sum of arbitrarily sized vector.
297d567804Martin 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).
43d95e967bMartin 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.
214e8bdae4Per Östlund- Added case for empty vector range expression in reductions. - Added missing changes to testsuite makefile for Reductions testcase.
58068227e9Per Ö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.
8ee35c6c30Peter 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.
79297638f3Adrian Pop- updated Copyright (c) text to 2010
4da9611598Adrian Pop- updated Copyright (c) text to 2010
9631a8d4ecAdrian Pop- updated Copyright (c) text to 2010 - replaced some of the leftover BSD licenses.
47ee4772f0Adrian Pop- updated Copyright (c) text to 2010
6e792bae6aAdrian Pop- updated Copyright (c) text to 2010
346787ca98Martin 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.
bd4af310f1Per Ö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'.
ea7dce6048Rickard LindbergRemoved dependency on Codegen module.
0da6b88e8bRickard LindbergRemoved dependency on SimCodegen module.
46be79ea6eRickard LindbergRemoved createContext functions in favour of constants.
ff40e66d0dAdrian Pop- add a space between the comment and the variable
e641ff1681Per ÖstlundTuple-tuple assignments are now broken up into separate equations in DAELow, so that the number of equations get counted correctly.
3ffb189dacMartin Sjölund- SCode.printClassStr: Added restriction to the generated string (useful when debugging)
ff64c66590Rickard LindbergCleanup.
8f3ee28a3bPer ÖstlundAdded case for Real iterators in elabCallReduction2.
392e0193acPer ÖstlundChanged how elaboration of multiple iterators in array constructors are handled (multiple iterators give multi-dimensional arrays, not a flattened one-dimensional array).
c59eb1ddf3Per ÖstlundChanged some function prototypes to be partial (ReductionOperator in Ceval).
427befcecaAdrian 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
1151b6d8a5Adrian Pop- display the annoying DAELow.lower2 errors only when given the +d=failtrace flag.
cbf845cbb0Adrian 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.
56a70f387eAdrian Pop- fixes to DAEUtil.selectBranches to select until a non-constant boolean is found.
4d6479e97bAdrian Pop- moved Static import to the protected section
499892d632Adrian Pop- added HashTable to hold the instance hierarchy (IH) used during Inst. The new IH is called InstHierarchy.
b7d88e1222Adrian Pop- minor text editing, updating 2009->2010
3d81a4e90aAdrian Pop- set the external flag that signals the presence of inner/outer definitions in the translated model.
4dd5824c17Adrian Pop- print inner/outer prefix in SCode.unparseElementStr as it gives more information during displaying of error messages.
ce19563682Adrian 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.
2811891494Adrian Pop- added isInner and isOuter functions
e3e23f759fAdrian 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
c0a271756bRickard LindbergGot rid of listLength* since listLength is now supported in Susan.
844de37ea9Rickard LindbergRemoved unused code.
41cf9f6d43Rickard LindbergChanged the way numOutVars and numInVars are calculated.
e25503c81cRickard LindbergRemoved unused methods.
67ec71ac6eMartin Sjölund- Static.mo: Fixed parsing problem (RML accepted it, but the OpenModelica parser gave a proper error).
d22a55a77bRickard LindbergFail if inverse algorithm for single variable.
0dcb4f718ePer ÖstlundImplemented constant evaluation of reduction functions max, min and sum.
4c5f13257eMartin 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).
1684f11b9dStefan Brus-fixed a bug with inlining of array functions
32c26a853cMartin 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.
e4a2a8db14Martin 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.
e961ada050Martin Sjölund- Added Dump.mo changes missing from r4793
94d5c2f52fAdrian Pop- changed DAE.convertInlineTypeToBool to DAEUtil.convertInlineTypeToBool as there are no functions in DAE.mo!
a484f686aaMartin 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.
08650f45a1Martin Sjölund- Added getAstAsCorbaString(filename) API call. + It prints the string to file and returns a boolean instead of a really long string.
8e6439d5aaBjörn ZachrissonSome restructure of code, moved functions from DAE to DAEUtil (inline functions)
9862bdcd8aPeter 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
7eb1e7fda2Per ÖstlundCleaned up the handling of for loop iterators in Cevalfunc, Inst and Static a bit.
88b81f3947Bjö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.
e20b3621c4Björn ZachrissonSome code cleanups.
4476d2035fRickard LindbergFixed bug in generation of init_fixed array: some variables should be marked as not fixed if they have initial equations.
5238747a59Pavol 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
5515343dfdPer ÖstlundFixed vectorization of types extended from base types.
7795faafd1Rickard Lindberg- Generate record declarations - Generate CREF_QUAL - Fixed bug in type generation: generate struct instead of modelica_struct
90d237521bRickard 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
c53074d4b4Adrian 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
9d06bfc6d3Per ÖstlundImplemented support for multiple iterators in array constructors.
30d21f6f2cPer ÖstlundFixed Exp.makeSum so that it works correctly if the second expression is zero.
44b7e3cb54Martin 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.
54f13f76bdMartin Sjölund- Fix Dump.mo asCorbaString for FOR_ITER_FARG, SUBSCRIPT and CREF_QUAL.
721bdef0abRickard Lindberg- Implemented value blocks - Fixed bug in wild assign - Added special case for builtin max
687d2e225aMartin 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
22d1238f5cRickard 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
6fc9d70a4aMartin Sjölund- Dump.mo: Fixed asCorbaString output for Absyn.ANNOTATION and Absyn.SUB.
c4b84a40eeMartin Sjölund- Util.mo: Added missing replaceable type X subtypeof Any where missing.
cb615466a5Rickard LindbergAdded genDiscrete to context and used it (set to false) in one place.
e8d8848ebfMartin 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).
eb715d74e9Per ÖstlundImplemented built-in functions div, mod and rem. rem might not be correct yet though.
854515c41dAdrian 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.
f7c14b928aPer ÖstlundFixed expansion of array constructors on the form 'r[i] for i in 1:n'.
cbb570c831Adrian Pop- added DAE.ElementSource to all records in DAE.Element. - changed all the models accordingly.
890fa49c49Adrian 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!
a53758e3caRickard LindbergFixed so a few more external functions can be generated.
0afa3305ddMartin Sjölund- SCode.restrString: Added metarecord and uniontype restrictions.
638cab1165Björn Zachrissonadded rollback on error messages generated inside cevalfunc function.
8ca01ec315Rickard LindbergRefactored templates: moved things around and renamed some templates.
78619b9c5cRickard Lindberg- Added new function function_updateDepend needed by runtime - Just a copy of function_updateDependents (for now) - Implemented basic infrastructure for external functions
9014d4f022Peter Aronsson-Fixed bug (really fixed this time ;) on trimChar. Moved it to platform independent impl. first in file.
8b25b38299Peter Aronsson-Forgot to change linux implemenation for trimChar bugfix.
afebc0d4ddMartin 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).
3e0153cc1aPeter Aronsson-Disabled balancedChecking since it depends on backend.
22d8090a49Adrian 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.
f7f72f9688Adrian Pop- added a multiplication function for a list of optional integers.
9f3acb3ef1Adrian Pop- added commented-out debug_show_depth(2); for faster debugging due to only 2 level display for variables.
5ae4d2a1a0Adrian Pop- minor comment in elabModValue
580ca1982dAdrian 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).
29b087252eAdrian 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
b89e6e1e8dAdrian Pop- renamed DAEUtil.removeEquations to DAEUtil.splitDAEIntoVarsAndEquations as is a better name. Better use of the local variables in this function.
7ebe70406bAdrian Pop- minor text alignment
d970a19b9bAdrian Pop- dump more information during connection graph collection and braking. - disable the connection braking for now.
1f3f5580deAdrian Pop- minor changes and the possibility to dump the DAELow representation during checkModel
6f8e08912dAdrian Pop- use failure(cevalIsExternalObjectConstructor(cache,funcpath,env)) instead of (cache,false) = Static.isExternalObjectFunction(cache,env,funcpath); to guard against ceval of external functions.
832fd1b99bAdrian 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.
75bc477a0fMartin 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).
0566cbb6dcMartin Sjölund- Added systemimplmisc.cpp to Linux makefiles. - Fixed the testcases in the testsuite that assumed floor() returns an integer.
57ef3e1d8aWilli Braunfixed some bugs, so that all tests from test-suite should pass.
3196f8e44aPeter 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 ;)
9c7c2f095dBjörn ZachrissonAdded a strip subs function for crefs.
0b40f58881Rickard LindbergImplemented more non-linear equations.
660cc45adbWilli Braun- DAELow.mo: + add Expressions of when condition to IncidenceMatrix to sort them in right order.
0b28521bebRickard LindbergGenerate mixed systems.
99d36edceaMartin 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).
9444fdfb69Martin Sjölund- Removed unused input from Mod.lookupIdxModification2
b092bd977cMartin 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).
5c5c6ffc22Björn ZachrissonSome updates for Cevalfunc, it works better but still not perfect.
6c701bd306Adrian 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.
74a0a89ad9Adrian 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
0e115b4b51Rickard Lindberg- Implemented extraction and generation of linear-systems and nonlinear equations
2e1b940247Martin 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.
b146db63fcRickard Lindberg- Extracted more algorithm equations - Made debug message easier to notice in compiler error message output
e1748f51b6Rickard 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
451b84e171Martin Sjölund- When instantating a partial package, force partial instantation instead. - When partially instantiating a partial class, strip out all non-package elements.
585900a397Martin 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)
d62f92a93cPer ÖstlundAdded warning when trying to apply non-array modification to array component without 'each'.
da92dc0715Per ÖstlundReplaced error message with fail trace.
2cfd380e58Alexey LebedevFix for the bug: http://openmodelica.ida.liu.se:8080/cb/issue/1074?navigation=true
b3cf9a00adMartin Sjölund- Fixed Static.elabBuiltinDiagonal - real arrays will now generate RCONST(0) instead of ICONST(0)
8fcbe1f77dRickard Lindberg- Changed DAE.ComponentRef to SimVar in zeroCrossingsNeedSave
fa6edcf253Rickard Lindberg- Refactored how types are generated - Updated template for CAST
3d2f535767Rickard 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
800f6d6f95Martin Sjölund- Fixed testcases ClassExtends{1,2,3}.mo
95fc799a03Björn ZachrissonChanged deriving function to be fullyQualified.
89f8150652Adrian Pop- removed the not needed extra parentheses (these only parse in mmc but not in omc).
5bf1a887e2Adrian 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
ba91508216Bjö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.
7f64269edaPer ÖstlundAdded initialization of record members by rewriting generateAllocOutvar, adding generateAllocRecord and modifying generateAllocOutvars and generateAllocOutvarsExt in Codegen.
5efac63411Rickard 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
ecf703f1d4Martin 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.
e841f6e2ecJens 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
98253ef349Björn ZachrissonAdded System.addToRoots to SCode.translateAbsyn2SCode. Also corrected crefEqual from commit #4678. Now it also works on DAE.CREF_IDENT()
f91a132851Jens 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
83c48e67f7Rickard Lindberg- Extracted algorithm equations to templates - Added context to templates
5c27955114Rickard 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
8b5f207ad4Martin Sjölund- Merged instClass partial function case with the generic case.
26dbb0f37aMartin Sjölund- Added missing operators to Exp.typeofOp
ef16eafc32Adrian 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"
8b65b69e5cAdrian 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).
61a43304afAdrian Pop- added DAEUtil.findAllMatchingElements to split DAE into inner/outer variables in ONE walk.
6c982deb3dAdrian Pop- added DAELow.COMPLEX_EQUATION which is populated from DAE.COMPLEX_EQUATION and DAE.INITIAL_COMPLEX_EQUATION - no handling of DAELow.COMPLEX_EQUATION yet.
5a842502f9Adrian Pop- added unsafe external functions in System.mo: + System.listAppendUnsafe (not used) + System.addToRoots and System.getFromRoots to implement global variables.
ae0951dd01Adrian Pop- replaced tabs with 2 spaces to correctly display code in any editor.
5804453e77Adrian 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.
885a53fa73Jens 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
fad1534489Jens Frenkel- fix a bug in Inst.instBooleanClass - redisign of enumeration instantiation
0a047f2675Adrian Pop- faster Exp.crefEqual
bf401eab23Martin Sjölund- Add Makefile dependencies to Compiler/runtime/dynload.o
f8629e2f83Martin Sjölund- Disable failtraces that are not useful.
c3f3c64f49Martin 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).
0cdf524759Adrian 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.
7c2f4edf4eAdrian Pop- small code formatting and a bit more explaining
88338397cbAdrian Pop- fixed a typo.
9481e5ac53Adrian 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
48a8c6e0c4Adrian Pop- added Absyn.joinPathsOpt function
edad6ce536Rickard Lindberg- Generate _functions.cpp file from root template - Added TODO comments - Added some notes
6b6602ecf7Martin 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.
0f714d853fPeter Aronsson-Added function Error.getNumErrorMessages that returns number of messages in queue with severity 'Error'.
e5d74c784fMartin 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.
e581e161f6Rickard Lindberg- Added dummy SimEqArray record for debugging purposes - Extract array equations - Generate DAE.Exp.ARRAY - Added listLengthExp function
43823efb11Adrian Pop- regenerated SimCodeC.mo and SimCode/SimCodeC.mo to make everything compile
fbee632419Per ÖstlundImplemented unary subtraction for real arrays.
6debd503c8Peter Aronsson-Fixed bug in getMessagesStr in errorext.cpp
ee75cbf60dPer Ö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.
e0d6dfb4c0Rickard 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
7282df0489Per ÖstlundAdded RTOpts.debugFlag guards to lessen overhead when debug output isn't used.
7ba64e97e1Rickard 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
dcb4936240Pavol 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
b02679ac07Martin 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
2d7ef26879Peter 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.
fe23f73912Rickard LindbergRefactored.
9a521d4f07Rickard LindbergChanged vim mode line.
fe0dd266f8Rickard LindbergRestructured templates so there is one template per function.
492071837eRickard Lindberg- Added function function_onlyZeroCrossing - Worked on function call template
262b17aa6fPer Ö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.
bac1ba587dMartin 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.
0dcfbbbfeePer ÖstlundCleaned up Debug.mo a bit.
5be57311d9Per ÖstlundRemoved Exp.subscriptToInts, a duplicate of Exp.subscriptsInt.
5f7b4cc7bfMartin 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).
c95b664058Per ÖstlundFixed license in Algorithm.mo, which had been the victim of a runaway search-and-replace.
d99bda16fcPer ÖstlundAdded initial support for while- and for-loops in class algorithm sections.
9060853629Per ÖstlundAdded expInt function.
fe9751f69dRickard LindbergImplemented function checkForDiscreteVarChanges.
da1f466dd4Martin Sjölund- Ceval: asin, acos, atan, atan2, cross and log10 implemented and enabled
9ecbc5cc6fRickard Lindberg- Implemented function_updateDependents - Implemented function_when - Handle logical binary operations - Added template daeExpCall
e6f391d48cMartin Sjölund- Add an implementation and testcase for a (very) simple redeclare replaceable model extends (used in Media).
e456b276c8Adrian Pop- use fill(...) instead of listFill + listArray
781e0e2d12Stefan Brus- atan2 added to modelica built in functions
ef57c6c2b6Stefan Brus- PartialFn13 now works with if expressions again - Fixed some type conversions - Added function unboxExpType to Exp
22527c8bedRickard 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
deffc89711Martin Sjölund- More RTOpts guards for MetaModelica cases
b6d2f33895Martin 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.
92530c823dMartin Sjölund- Disable printing "Types.matchProp debug: match prop.". Saves about 1m (20% total time) when trying to flatten double pendulum.
0a57d39b93Adrian 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.
d6a8386e20Pavol 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 >>
ccc48e383dMartin Sjölund- Fixed code generation of _ := exp (was limited to valueblocks, but MetaModelica allows any expression there). - Added 08_pam to the testsuite
2b925f8222Martin Sjölund- Also look for zero-crossings in DAELow.ARRAY_EQUATION.
fcdba014fbRickard LindbergUpdated script that generates code for code generation test.
aba721c7acRickard LindbergAdded Influenza model for testing code generation.
d7fd083e7fRickard LindbergCleaned up TrapezTest.
e577d204fdMartin Sjölund- Refactoring: DAE.VALUEBLOCK(body) changed from DAE.Element to list.
e878da3e60Martin Sjölund- Reverted the re-addition of the outdated configure script for Java.
250a7532e8Adrian Pop- merged the template code generation from OpenModelica/branches/TemplateCodeGen into OpenModelica/trunk - below is the history from the branch
9b3fe6db5bMartin Sjölund- Moved record constructor-specific code from Static.elabCall to Static.elabCallArgs for efficiency.
6f68028035Martin Sjölund- Fix code generation for cross.
de00dbf2aeBjörn ZachrissonFixed weird Lookup "bug".
51e93afe3bMartin Sjölund- Prevent generating a TYPE_SPEC_REAL_ARRAY_ARRAY; generate TYPE_SPEC_REAL_ARRAY instead
7ab9693ba2Adrian 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
0275b46dd0Martin Sjölund- Added runtime functions for identity matrix - Added codegen and runtime code to cast int/real matrix to the opposite kind
165423e6e3Peter Aronsson-added ModUtil.makeSubscript to create a subscript from an exp.
56590bf11dPeter Aronsson-Reset the modelicafilename string when failing to parse
36c766473fMartin Sjölund- Removed useless messages when typechecking overloaded operators. - Added support for code generation of complex types extending basic types.
3e703b688aStefan Brus- Cleaned up some code, partially evaluated functions should work 100% now!
db722f8c54Björn ZachrissonUpdated makefiles for vs
8a55fef07bMartin 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.
ee7fee16b5Stefan 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)
3d6fea6268Willi BraunRevision of the euler and the event handling for the euler until now only work with "if" equations.
dc2bb27fc3Stefan Brus- Partially evaluated functions now work with recursive functions - Added a test case for this - Cleaned up old test cases
6b1d5dbe3fAdrian Pop- set all Compiler/*.mo files to have (LF) Linux line endings, otherwise the debugger will display wrong lines.
45f2dc971dAdrian 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
ba2cea45ccJens Frenkel- enumeration: remove old code
849f0f6813Stefan Brus- Fixed type checking and boxing of simple types in partially evaluated functions
55011e0fa6Adrian 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.
bb750a5fa7Adrian 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).
f608fff150Adrian 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;
5c49332651Adrian 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
eaeff48d4cAdrian 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.
d3aef01f00Björn Zachrissonminor changes for windows make files.
caf5f21856Stefan Brus- Fixed compiler error in cruntime
16e196b2c8Björn ZachrissonSome changes for merging with MathCore
bbe6461255Stefan Brus- Fixed use of partially evaulated functions in functions - Added a test case for this
dedf4aa948Stefan Brus- Partially evaluated functions now works in algorithms (see PartialFn8 testcase for example)
549a40ff9fMartin Sjölund- Don't recompile the walker unless something changed.
787ea3535aMartin 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.
b6fed0411cMartin 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.
508d2a9070Stefan 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
7a44414cb9Adrian 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)
30ba5e9f9eMartin Sjölund- Removed public import {Exp,Types,Algorithm} so compilation of OMC is faster
f8003469a5Martin 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)
617d5d6978Peter Aronsson-Finally (puhh) fixed bug with forgetting to reset modelicafilename when parse error occurs.
af02c758f3Stefan Brus- Function pointers now work in both Modelica and MetaModelica - Partially evaluated functions now partially works!
59f2f41ea8Adrian Pop- the new MetaModelica compiler discovered this type error: DAE.T_COMPLEX -> Exp.ET_COMPLEX
ee86faa166Jens Frenkelenumeration function Integer, works only for Enumeration types not for variables
f4f0918452Martin 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).
6937e31520Martin Sjölund- Refactoring the Types.mo types into DAE.mo
8e0bfda42bMartin Sjölund- Added ValuesUtil.mo
6631e6468bMartin Sjölund- Added missing file Compiler/runtime/SimulationResults.c. - Fixed dynload.c from the Values.mo update (forgot to make clean).
2392e33d5aMartin 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
2bf8021859Martin Sjölund- The System.readPtolemy* functions now exist in SimulationResults.mo (and System.mo no longer depends on Values.mo).
a7f27afd3eAdrian 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;
d0a117d340Eric MeyersOn OS X only look for IOR in /tmp folder
8eca17dee2Eric MeyersUpdated OS X to use Qt frameworks
7e2b270ea0Jens FrenkelBugfix stringnames in getName function
bf92899bb6Jens Frenkelenumeration string(enum.e1) = e1
c43b3a4dcaMartin Sjölund- Refactoring of Algorithm.mo (the datatypes moved to DAE.mo, to simplify the other refactorings later on)
8a1ebd70b6Jens Frenkel- enumerations in packages can be found, typo corrected
29cb7600f1Adrian PopMerged revision 4500
ab325893f8Martin Sjölund- Fixed Types.elabType for empty records.
fe8cf758c0Martin 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).
66c3202cf3Martin 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.
eb964f10cfAdrian Pop- update the READMEs to document the /trunk/Compiler/VC7 move to /installers/windows/VC7
450277a04cAdrian Pop- updates for Visual Studio projects - transform if equations after we print the DAE.
bb3620988cAdrian Pop- make the c_runtime compile with Visual Studio
59f2594c48Martin Sjölund- Refactored DAE.mo to DAE.mo (AST) and DAEUtil.mo (functions) - Fixed bug that r4481 introduced (mosfiles/simulation3.mos failed)
b2fe2b861cJens Frenkel- Bugfix replace "<" and "y" with W3C standard "<" and ">"
eaceb5d434Jens Frenkel- Bugfix index from input_names was for all zero
3e17f7f4d2Martin Sjölund- Split lookupType into 2 functions in order to call lookupClass2 only once.
ca39fb6000Adrian Pop- parse equality(x := y) as is used in Main.mo
90c054d4b8Jens Frenkel- enumerations part 2, new c-code generation, testcases
20c43af293Adrian 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
25ef9e8425Martin 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.
8580ae4d19Martin 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.
c91fbdbd99Adrian Pop- correctly build the expandable connector restriction - moved expandable to class restriction rule
3f94773a25Adrian Pop- got rid of the compiler warning
ddcdd1df40Jens Frenkelenumerations part 1 - what does not work - redeclaration - Integer(Enumeration) - String(Enumeration) - ... (perhaps more i have not yet finished all enumeration testcases)
4716949247Peter Aronsson-Added listMap5
e9380c1645Stefan Brus- Absyn.PARTEVALFUNCTION is now turned into Exp.PARTEVALFUNCTION by static
3d566d12daStefan Brus- Inlining of functions now fully functional!
3f3299581aMartin 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.
bd76da3465Martin Sjölund- Convert all expressions when boxing a regular record (fixes nested records) - Fix mmc_unbox_record (off-by-one error)
3548bd97bbMartin Sjölund- DAE.makeEquationsFromIf: Bugfix for if equations with several elseif clauses.
55f96dc831Martin 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.
16bf93617fStefan 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
71131e8490Martin 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).
6196edd7cbStefan Brus- Annotations in between equation items are now preserved in SCode.
39812863c3Martin Sjölund- Force UNIX line endings in the Eclipse editor
5a665dc60dStefan Brus- Comments and annotations on components are now preserved in SCode format
55a9d42ae6Martin Sjölund- Fixed declaring constants like list in packages using implicit instantiation
d36d7fd0e6Martin 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
217c9ee4c6Stefan Brus- Annotations are now preserved in SCode format in extends clauses
e6df086fbcMartin 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).
304946a5beStefan Brus- Missing file from previous commit
5b30565b07Stefan Brus- Comments and annotations in equations are now preserved in SCode format.
a71ed1b05fJens Frenkel- improve comments in DALow.
63c2dd0c4cJens Frenkel- rewrite sign function as macro, add testcase Sign in mosfiles
b633a62d28Jens Frenkel- move sign into utility.c
14a438acafStefan Brus- inline annotations are now preserved as a flag in Exp.CALL
3acf26824dAdrian 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.
6885dd26abJens Frenkel- implement sign function (maybe another place is better?)
1f072ef1cdPeter Aronsson-Merged -r 4222 from MathCoreOSMC branch (connect two-dimensional array of components)
33cc1a0073Martin 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.
41eb0ed676Stefan Brus- Equation annotations are now preserved
9acf9641e1Stefan Brus- Fixed encoding issues
599ba40979Martin Sjölund- Hopefully fixes strcmp not returning only {-1,0,1} on some platforms (it messes with the testsuite)
48d4dd46a0Adrian Pop- due to changes by Martin S. to Compile.bat copying of MinGW to build directory is no longer required!
74237d3757Martin Sjölund- Spelling error
be197f442bMartin 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/...)
5c0ab04010Stefan Brus- Annotations are now preserved in SCode format - make clean now removes .sigx files
50f7aa6451Martin 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
984737a2b4Martin 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
eb6bf4b9e3Adrian 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.
2915535437Adrian Pop- merged revision 4399 from branches/MathCoreOSMC
755aaf5d47Jens 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
0c02ce1836Martin 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.
31de232ed6Martin Sjölund- Using Ceval.cevalCallFunction record constructor instead of cevalFunction - Enabled testsuite/records as a default test to run as it now works
a0b6f70afcAdrian Pop- merged latest modifications from branches/MathCoreOSMC
125f8d4207Jens Frenkel- Bugfix Build with MSVC
533986e1ebMartin 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.
dc62174b58Martin 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
414b3ff0bcMartin Sjölund- Fixed MetaModelica crefs to function names containing underscores
c515ae9142Martin 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
6e592ada45Jens Frenkel- Bugfix Bug 1110
018192a627Martin 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
db1701a714Adrian Pop- renamed OpenModelica1.5.0 to trunk
538b765dbfAdrian 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.
763b6e4db6Stefan Brus- Fixed linking of the lpsolve library and added instructions to the linux readme file
2b51288454Adrian 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.
04860073edAdrian 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.
e7272b41d8Adrian 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
ae99f504dcAdrian Pop- support for Modelica 3.x graphical annotations.
93b8dd81e0Adrian Pop- fixes to XMLDump.mo
8d349dbdceAdrian Pop- latest modifications from MathCoreOSMC branch
41f29df806Adrian Pop- latest modifications from MathCoreOSMC branch
4aaf6b1aa3Adrian Pop- changes by Alexey Lebedev [alexey dot lebedev at equa dot se] to support implicit range in for loops - more tests for loops
7ae9668efdAdrian Pop- Merged revisions 4270 and 4269 from MathCoreOSMC branch:
7cfdabc4aaAdrian Pop- more fixes so it compiles.
aaf8dcde8bAdrian Pop- fixes so it compiles.
275ea73351Adrian Pop- merged revisions 4262, 4264, 4265 from MathCoreOSMC branch!
5cac623716Adrian 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.
aba7c1f65eAdrian 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
34269d7810Adrian Pop- a first script for compilation using MSVC.
cfd4a45a43Stefan Brus- new .onb files
9e4cbd266cAdrian 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
47fbaa055bStefan Brus- More Linux fixes
1a757bd3e9Stefan Brus- Now compiles in Linux
61a4d8d2f6Stefan Brus- added some forgotten files to the makefile to make compilation work
c836f4303eAdrian Pop-forgot this file.
9c03fd4520Adrian Pop- fixes for dynamic loading.
942fbdbc85Adrian PopA branch for OpenModelica 1.5.0 release Some tests still fail, is going to be fixed soon.
ef98c4c332Adrian Pop- added the missing change_rettype
f44bc872dbPeter 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.
990c218dcdPeter Aronsson-Fixed compile error for visual (round undeclared)
adffa72cbePeter Aronsson-Fixed bug in Env.Cache (looked up wrong class in cache)
c2b727e582Peter Aronsson-Fixed memory consumption problem in unit checking code.
6430db584dPeter Aronsson-Added defineunit language extension to flat_modelica_parser too so flat parsing works. -Fixed rounding error in rationalizing reals.
44b6662644Otto TronarpCopy the reply msg before releasing the clientlock.
3685564e9dOtto TronarpIntroduced a clientlock on Linux / OS X, as we have on windows.
9da573026bOtto TronarpFixed upper/lower case error.
1be2b6544cPeter Aronsson-Added register of unit weights for unit parsing to handle individual weight settings for each component.
ad4fc72f3eDavid BromanAdded accumulateWeight and made "adding two units" working.
e24a618c68Peter Aronsson-Major work on unit checking with pretty printed units. Not complete yet.
6d93f29be3David BromanAdded commit to unit parser.
ac374458ddPeter Aronsson-Fixed bug when building unit terms with empty store (disabled checking).
f14f22b812Peter 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
5f53d7f350Björn ZachrissonUpdated text for error messages
3aa7d54539Björn ZachrissonDocumentation updates
9a3623d7cdPeter Aronsson-Added error messages for if-equations.
d4132221f6Björn Zachrisson* miner updates for pretty printing of modifers * removal of dead code
8ceeaeb252Peter Aronsson-Fixed bug in ceval of div() and rem() -Added realCeil to System.mo
36cba37416Peter Aronsson-hanged package name Math to MMath to avoid conflicts with std include header math.h
a9c7a262abBjörn ZachrissonSmall fixes for last commit. Changed where double-modification control is triggered(from SCode to Inst.instelementlist)
bd83821954Otto TronarpUpdated makefiles for osx/linux.
aa18de7212Peter 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.
206ddd47b3Bjö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
3572dac3feDavid BromanFixed problems regarding unit vector length (they had different sizes) and added the member function isBaseUnit().
888174007bBjö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.
937d394556Björn ZachrissonAdd free(printbuffer) to Print module. Previous printBuffer=NULL, never freed the memory allocated.
0fcf03a2bdBjö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.
acc05607f6Björn ZachrissonSome changes for Mathmodelica communication with kernel.
ee69dce1a6Hannu Niemistöadded exception for equalityConstraint in dependency analysis
bf8cb72b35Peter 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.
76545d0ee4Peter Aronsson-Added preventing reporting error for parameter without binding when it is declared with outer.
d58761f026Adrian Pop- updated parser/AST to handle the annotation at the end of the extends clause: extends name [class_name] [annotation]
68b1203937Adrian Pop- fixes for doubling the dimension of alias to array type
b7b7aecbbfAlexey 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.
90e5afd29ePeter Aronsson-Fixed small bug in simplification of if-expressions.
879bb910f3Adrian Pop- fixes for aliases to array types: type Alias = Real[6]; Alias x; // this variable had [6,6] dimension instead of correct [6].
dfb92aac12David 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.
a5467e7ec7Filippo 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).
a4e775727aBjörn ZachrissonFixed connection of complex array types ; connect( arr1[1].conectorVar, arr2[7].secondConnectorVar)
aac2cc7871Björn Zachrissonminor changed for MC backend.
7aa38dc208Hannu NiemistöAdded comments to all functions in ConnectionGraph package.
d6006aa8b9Adrian 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
4f2051f3d4Björn ZachrissonFixed error messages and error reporting with partial classes and dangeling modifiers.
e31ba5fa68Peter Aronsson-Added a function to print Types.EqMod -Added better failtrace print of elabArrayDim
fc4c837b23Otto TronarpFixed crash on OS X with omniORB.
d3c4037fb6Peter 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.
b900647856Björn ZachrissonFixed built in function sum([:]). Now also works for complex types.
c96599b829Björn ZachrissonImplemented support for detecting dangeling modifiers(modifers on components that does not exist)
22a76d3252Bjö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)
7305aadfaeAlexey LebedevFix for the bug http://openmodelica.ida.liu.se:8080/cb/issue/1098
7b9a75c9abAdrian 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
7b063695e0Hannu 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
d18bf5805fHannu Niemistöadded dummy implementation for isRoot builtin
e4932237c8Filippo DonidaFunctions were missing when printing the xml representation of the model with the dumpXMLDAE method. Fixed.
0289c348edBjö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
36a3f622c1Hannu Niemistöremoved some debug prints
18480ba08bHannu Niemistöcreates a zero array with a correct dimension for equalityConstraints
8db8fb3771Hannu Niemistöfixed incorrect usage of hash table in ConnectionGraph
9a44af28e8Peter Aronsson-Fixed bug in unconnected flow equations not begin prefixed.
2e8d85357fPeter Aronsson-Added System.removeFile() that uses remove() from stdio.h
acb4f6ad48Peter Aronsson-Added error message for matching in initialization problem. (Currently used in MathModelica but is probably required in OpenModelica as well).
fa8f3e1e45Alexey LebedevFixed the function Static.elabBuiltinTranspose2.
b66d08b521Alexey 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.
4edcf8c939Björn Zachrissonmissed closing ');' on last commit.
f6e4d72570Björn Zachrisson* Implemented support for instantiate a single constant in a package
75d2645bc2Filippo DonidaWhen dumping array, vector or matrix variables the index of the variable was not printed. Fixed.
416d039305Adrian Pop- small updates to the RML to MetaModelica tool
84b019decfBjörn ZachrissonRemoved debug printing from commit #3974
ab01fe3927Björn ZachrissonChanged name from Absyn.componentRefStr to Absyn.printComponentRefStr to co-exist with Exp.printComponentRefStr
f431067364Hannu 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
a20f1e2722Peter Aronsson-Added function DAE.getProtectedAttr. -Added function Util.listMap4
7015599ed6Björn ZachrissonForgot to remove debug line. #3963
ec116d9c50Björn ZachrissonUpdate for last check in, file comparison
d21cde74eaBjörn ZachrissonImproved file comparison on windows.
a9691770bdPeter Aronsson-removed debug-print in valueString.
8dd4945475Peter Aronsson-Added enumeration to valueString function.
a18c0f9b95Erik FriskFixed bug with {} in the exportDAEtoMatlab function
30af5d3e1bPeter Aronsson-Fixed bug in System.trim
d73218ed03Peter 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).
7ccaad0223Adrian Pop- somehow I deleted the name of elabBuiltinDer and I put it back now.
968380df0eAdrian Pop- fixed indexing of matrices with dimensions more than 20 by handling the code generation for simple Exp.ASUB expressions
d88e3e109cAdrian 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;
af63d534c1Björn ZachrissonMinor cosmetic details of output for error handling on derivate function, der(...)
945d80b4f5Björn ZachrissonFixed error messages (rollback/deleteCheckpoint) Both in ErrorExt.cpp(bug) and in Inst.mo(structural error).
e4f19c6259Otto TronarpIt doesn't work to compile with debug_print in release on win32.
8b6cc5e113Adrian Pop- fixed an error when counting variables in DAELow.mo (excluded RECORD) - fixed vectorization of reinit(arr1, arr2) - fixed vectorization of matrix = pre(matrix)
bed21c0b91Björn ZachrissonRe added code that was removed in commit(#3905) for some reason.
a1dfceb0e0Björn ZachrissonRemoved a debug line from last commit(#3907)
053de6c3dfBjörn ZachrissonImplemented a getPackageFileNames, which finds packages located in OPENMODELICALIBRARY path.
b53e94f14dPeter Aronsson-Added constrain() with vector arguments - Added simplification to propagate noEvent operator on expressions down to relation subexpressions -Added symbolic expansion of skew function
aeb5542aa4Adrian Pop- small changes to DAE.mo so that will parse using OMC.
91eef4a776Adrian 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
3b60acce02Adrian 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.
78dbc02967Adrian Pop- fixes to Interactive.traverseClasses + now -traverse_classes2 failed for some of the tests is gone - updated OpenModelica tests and enabled them
85bfdbb12cBjörn ZachrissonImplemented support for checkExamplePackages(function for checking any Example dir in a package )
aa211028abPeter Aronsson-Minor change to Makefile.vc
142952fe12Adrian Pop- changed default dassl tolerance from 1e-10 to 1e-4
9330c62affPeter Aronsson-Added Makefile.vc files that is used by MathCore to compile frontend related stuff. - Updated some tests
a50ecbc185Adrian Pop- continue when dasrt returns idid==-1.
dc4fd98c37Björn ZachrissonFixed reinits of arrays, now vectorizing is working.
aabaf8ad86Otto TronarpMakefile fixes for osx.
4a70374d0cOtto TronarpUpdated configure
e01ffd08e8Otto TronarpFixes for osx
c22a4552e5Adrian 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
9714db8823Filippo DonidaAdded (to the dumpXMLDAE method) the possibility to print equations as residuals, using the input parameter "dumpResiduals". Default value is false.
5d5d214c84Filippo 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.
7f5e76b08aBjörn ZachrissonChanges on OM’s frontend to support Mathmodelica functionality
090d9e91d4Filippo DonidaImplemented a new functionality to dumpXMLDAE functional to output additional information for solving the DAE system: - matching algorithm output and - BLT representation information.
1b53ba4a6dFilippo 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.
93cde0726eOtto TronarpFixed makefiles for linux
38be98db35Bjö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.
81d39ee436Adrian 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
15d69525c8Adrian 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}}
ac4190d145Adrian Pop- fixes for getIconAnnotation setting the error string.
912c1cc1fbAdrian 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
31e7fd440cAdrian 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
e9b8db2d02Björn ZachrissonFixed constant evaluation of REDUCTION for simple case (only one iterator)
64dc403683Peter Aronsson-Added explanation to REDUCTION
bde1eea266Peter Aronsson-Removed printing to stdout that messes up MathCore:s testsuite
cc0659662dPeter 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
22d6852ecfAdrian Pop- on Linux waitForStarted(-1)!
0eaa5e6527Filippo DonidaAdded a parameter (addMathMLCode=true/false) to select if adding the MathMLCode to the XML dumped fileor no (default is false).
6a21624f2fPeter Aronsson-Major commit. Includes merges from revision when Adrian did the merge up to today. (MathCores r3273 to r3313)
4b3620eb91Adrian 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
ad1a927ec8Adrian 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.
992d112e5aAdrian 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.
bfdee5dafbAdrian Pop- added the complete getTotalProgram in Interactive.mo - commented out the .mos files from testsuite/mathcore-mofiles/drmodelica/Makefile
383302c99cAdrian 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.*
a690e2fcfbAdrian 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.
5b8bf5716fAdrian 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.
5e72615950Adrian Pop- first compilable version! - testsuite will have to wait a bit :) right now most of the tests fail.
6c0135977cAdrian Pop- updated to parse Modelica 3.0
a3474b0c17Adrian 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
0262b874e0Adrian 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
08da014141Adrian Pop- intermediate merging of OSMC with MathCore front-end - not compilable yet - added the new packages
e6a40d4a65Adrian 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).
cee80c0e8fAdrian Pop- fixed a small mistake in setAnnotationVersion
b61faaec43Adrian 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.
16cd56e483Adrian Pop- added -fPIC to the C flags for x86_64
c6c0f85cc7Adrian 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.
ec3db34014Adrian PopQUITE BIG CHANGES TO SUPPORT THE STREAM CONNECTORS
4e3430b86bAdrian Pop- fixed a small typo
5d7faec7c8Adrian Pop- on openSuse 11, gcc 4.3 includes of string.h are needed - re-link omc if when there are changes in sendData files
b9f883f596Adrian Pop- Linux fixes for new plotting functionality
173b3106fcDietmar WinklerFormal clean up of all code files:
7f8e5ddccfAdrian Pop- rml2sig is not needed!
c3474c85f8Adrian 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
96403c5c56Adrian 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
b6790dcc21Adrian 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.
f4dbafc7e3Adrian Pop- small change in the data sending.
1946565a0bAdrian 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)
0d48a0b58eAdrian Pop- Linux modifications to sendData & Qt plotting
b4a6766c4cAdrian Pop- added some visualization scripts
4c73b7bd46Adrian Pop- got rid of -D DEBUG flag from the Linux Makefiles of parsers.
6613a4d126Adrian Pop- update to Linux makefiles -O3 instead of -g for parsing and omc runtime.
aff434281fAdrian 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
5941a3172aAdrian Pop- fixes for sendData.* on Linux
d2ce51611aAdrian Pop- added "test" and "testmos" targets to the Linux Makefile.in. it was present in the windows mingw makefiles since some years now.
7261987466Adrian 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.
ef8cfde329Adrian Pop- modification of sendData library to: + make it work better for Linux & MacOS + improve the stability of starting the external plot viewer
cf5011971cAdrian 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!
a9bd2a78fdEric 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
2031b7fae6Adrian Pop- switched all plot<->plot2 - switched all plotParameteric<->plotParametric2 - now val(var, integer) works!
8295181afeAdrian Pop- workaround for the crash on exit when running on Windows Vista
8f6a762799Adrian Pop- minor correction to DAEQuery.mo (missed a ";") in when equations.
b30afe4bf4Adrian Pop- fixed the problem with the order of equations in DAEQuery.mo
356b32cf95Adrian Pop- just dummy model code to be able to compile c_runtime.lib with Visual Studio
aacffe365fFilippo DonidaRefactoring of the dumpXMLDAE method in Ceval.mo and Static.mo
471777b7d8Filippo DonidaInitiailization of the OSTYP and OS_MSYS variables was not done. Fixed.
cc3f760741Adrian Popmoved to the old repository: https://openmodelica.ida.liu.se/svn/OpenModelica/old/pde
1aafb0d7a0Adrian 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
706096c1c9Adrian Pop- fixes in the Linux/Mac/Solaris/*nix part
0b0be784a2Adrian 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
b29c2d4b5dAdrian 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
c8fb92d0c9Adrian Pop- updated the PATH setting in Compile.bat to the new GCC 3.4.5 as is needed by Windows Vista
69fb8b96a4Adrian Pop- copied options.cpp, options.h from OpenModelica/mosh to here to get rid of the dependency - small update to read_write.c
d44e65e587Adrian 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
a4b3f11f2bEric Meyersfixed gcc dynamic library compiler flags for OS X
a7d141a0b8Filippo DonidaThe ö char was not correctly saved from Eclipse. Fixed.
70268b96d2Filippo DonidaThe header of the XMLDump.mo file has been changed according to the OSMC Public License.
502d29129bAdrian Pop- replaced the incorrect CloseHandle with correct FindClose - no more asserts when build with Visual Studio in debug mode.
0677da568aAdrian 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
c6f76224aaFilippo DonidaAdded package XMLDump and API function dumpXMLDAE to obtain flattened, index-reduced models in XML format
0f42c0c944Filippo DonidaCorrected error in getBindingsStr (returned a '-' when field empty)
cbec6e8485Adrian 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]
84908b672aAdrian Pop- changed the tolerance default from 1e-10 to 1e-6
e5b3c8f7a5Adrian Pop- Fixed a funny typo discovered by H. Dieter Wilhelm. Thanks!
e9b77aeddeAdrian 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
ca5131db79Adrian Pop- small update of RML to MetaModelica tool.
2fa0ca43f1Adrian 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.
ea630615cbAdrian 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
4f7c6db838Adrian Pop- bug fix for some crashes on Linux from Kim & Joel
6b8f3c4275Adrian Pop- fixes for Linux
ce4c19e3aeAdrian Pop- fixes for Linux
a01f1e10c8Adrian Pop- fixes for Linux
c64657a28fAdrian 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
82c6e31fa9Adrian 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.
c46c7c3c6eAdrian 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.
5500a9725fAdrian PopThe compiler should report more errors when running in the command line: - report parsing errors when parsing .mos files!
6c76aec661Adrian 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
a6caf88b93Adrian 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.
9218576068Kristian StavåkerImproved handling of MetaModelica high-level data structures
2e03f6f3aeAdrian Pop- in Linux you get sometime linker duplicate errors for function "errmsg". changed the "errmsg" name to "_errmesg"
7f7a1eab45Adrian Pop- Modelica 3.0 grammar updates! + added constrainedby to the grammar + now the entire Modelica Standard Library 3.0 can be parsed.
421ebaab43Adrian Pop- the latest updates for DAEQuery.mo [exportDAEtoMatlab API] used by Olof Bäck [ISY] and Daniel Gunnarsson [IEI].
4f4792111cHenrik Eriksson*Added plotAll() and plotAll(model) commands *Changed default value of "points" to false
8cb7506121Adrian Pop- fixed a BAD typo :)
21fc15e0b9Adrian PopHuge update =========== 1. Updated version to 1.4.4 in: ------------------------------- - Examples/*.onb - Setup.vdproj - settingsimpl.c - updated the new product code in Uninstall.bat
a6313414e3Henrik Eriksson*Added external graphics window to setup project
6c5b6ffdaeHå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.
af12bf791aAdrian 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
0580e19e78Adrian 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.
51c96bbf0fAdrian 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
5edbe7b4f0Adrian Pop- added some missing spaces.
29bcb6efe1Adrian Pop- give more info when running the simulation code with -v.
e9974afde4Adrian Pop- updated readme
b8fa75a7fdAdrian Pop- more info on flags
7cb568ba23Kristian Stavåker- Improvements of MetaModelica constructs handling
e4421f3f40Adrian 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!
6ffaebed17Adrian Pop- fixed the Linux part for the case there is no QTHOME defined
22e671d86eAdrian Pop- updated the emulateStreamData prototype to the last version.
eaefd6eda3Adrian 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(...).
fdae7de43eHenrik ErikssonRemoved an unused variable
240ba75930Henrik ErikssonFixed some signed/unsigned warnings
f9478a6a52Adrian Pop- fixes in the Linux part
e159d61b26Adrian Pop- ANTLR on Linux has problems with Linköping, changed it to Linkoping.
bca7071272Adrian Pop- Static::enabled is a method, changed to actually calling it Static::enabled()
f92a7de359Adrian Pop- changed the License to OSMC License - added Static::enabled() implementation to sendData.cpp
20c7c4dbc1Adrian PopNot Needed as we have OSMC-License.txt in the root directory.
08abbd6307Henrik ErikssonAdded some features to the new plotting package
1abe8cab50Adrian Pop- updated the license with the entire text.
79428dd76eAdrian 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
ab5503edd7Adrian Pop- added Open Source Modelica Consortium (OSMC) License to the trunk
dcfd580dbeAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
04a51fad38Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
0d21404e49Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
c262d7c4dcAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
9430760fedAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
7d870af5daAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
7bcff04090Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
2521c54e36Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
31ffb87fd8Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
1520cd58d9Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
2c858d08c4Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
fb60ee6736Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
6e4b1511a3Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
9679a890e8Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
f845738b17Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
97f1a5d9abAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
8cae7cb309Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
31827262a7Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
4c999615d6Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
4a81609f67Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
019b8e6621Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
846ac3fce5Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
10127be844Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
32cc52027dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
87c6596d7dAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
30cef26d26Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
31e6a98a94Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
a6d9687703Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
fb7c9c1b48Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
fa2355ff84Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
ea4867ce70Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License - changing properties: + line endings to Linux + RCS ids for each
1bc66bdb0eAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
89789c1880Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
a328282096Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
93d00ea6efAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
9686637ba9Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
39c0487ff4Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
f22af6cd52Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
3eb35741b1Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
63452fd062Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
60483da743Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
39f3b3956fAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
cd5099b01bAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
8fb5aba901Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
ce4757a06eAdrian Pop- changing to Open Source Modelica Consortium (OSMC) License
54c8d7de47Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
f8f23ba1d0Adrian Pop- changing to Open Source Modelica Consortium (OSMC) License
11f4f2369eAdrian Pop- changing to OSMC License
3a73dc6a99Adrian Pop- changing to OSMC License
726e5f63cfAdrian Pop- changing to OSMC License
096a8f14b9Adrian Pop- changing to OSMC License
ce204c9990Adrian 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
e531f82922Adrian Pop- added arctan_rettype and defined arctan as atan.
4d3ac8d2ddAdrian Pop- small cosmetic change
53b01e2a45Håkan LundvallIf the desired output interval was smaller than 0.001 not output was given except for at events. Now fixed.
137a8939bbKristian Stavåker* Minor Changes in MetaModelica list handling
5f0b83cce0Kristian Stavåker* Minor change in meta_modelica.h
2a316a2f25Adrian Pop- do not delete the sendData/Makefile*
d54ed9736bAdrian 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)
d3a66dcafbAdrian Pop- fixes to Makefiles to compile *.o when *.c* change - made simulation_input.cpp read the <> from the Model_init.txt
cbf2166362Adrian Popcosmetic change
80db30afe9Adrian Pop- better checks and error messages for flags.
74328dbdfaAdrian Pop- added usage info when omc is invoked without flags
15eaa8ae12Kristian Stavåker- Some updates to the pattern match algorithm, etc.
17f25d9577Henrik Eriksson*Removed some debug library dependencies *Removed some unused function arguments
52c74ab1cfPeter AronssonFixed bug with parameter values not added to unknown vector before initialization starts.
8c7805c7c4Henrik ErikssonRenamed some functions to avoid name conflicts on Mac
3a635c952eAdrian Pop- fixed small Linux part typo
4e6ab8ce0bHenrik Eriksson*Removed print statements *Reintroduced option to build without Qt *Changed some rml calls *Added sendData.vcproj
d8f64dc773Henrik 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.
390b0b7c9bAdrian Pop- Windows Vista instructions
e89fc5315aAdrian Pop- finally found the problem with weird simulation runtime errors. - memset the damn malloc-ed region.
b4fdfc75feAdrian PopAdded new API functionality: - refactorIconAnnotation - refactorDiagramAnnotation implemented by Filipo Donida [donida@elet.polimi.it] (thanks)
8efe319dd4Adrian Pop- - updated README-BUILD-RELEASE.txt with the new changes
b096d8e6e0Adrian 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:\
86fdd99600Adrian 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
b25d73a797Adrian 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
d88e418837Adrian 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
2a145305c1Adrian 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
a92bd85618Adrian 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
126e20702dAdrian 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
5385fb231eAdrian 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
0b6962edbfAdrian 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
492242a002Adrian 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
bc6c505e59Adrian 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
622c8856f8Adrian 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
db17eafe84Adrian 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
4d2eacaa14Adrian 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
bffb0199dbAdrian 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
2f39f70c47Adrian 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
a486504a91Adrian 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
57f85ba9f4Adrian 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
25ee2390d5Adrian 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
31186a29a5Adrian 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
4bdbf360c4Adrian 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
e326611751Adrian 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
332838887fAdrian Pop- cosmetic changes - moved copyright from Modelica package comment to file ignored comment to speed up MDT - changed module to package
f0b46556caAdrian Pop- cosmetic changes
cc1196d3b2Adrian Pop- cosmetic changes
cbcdd393fdAdrian Pop- cosmetic changes
d53b019ef0Adrian Popgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2891 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a8da39cebeAdrian Pop- cosmetic changes
904a28ce2dAdrian Pop- cosmetic changes
8479f5e7c3Adrian Pop- cosmetic changes
f442e5b80eAdrian Pop- cosmetic changes
8b90db4643Adrian Pop- fixed a small typo
9d32576a55Adrian Pop- cosmetic changes - added Absyn.getClassName
de32c2c334Adrian PopSeems this file is no longer required.
630d6b5cd3Adrian Pop- generate .depend all the time in Linux too - thanks to Simon Björklén [simon@at@bjorklen.com] for tripping into this
a7cee196ecKristian StavåkerModified the handling of array for constructors.
e3622b7b64Kristian StavåkerAdded run-time handling of (MetaModelica) lists to the C runtime. Two new files.
489e7ccbb3Kristian StavåkerUpdated MetaModelica pattern match algorithm and list handling (builtin functions for list handling, etc.). Merged the Matrix module with the DFA module.
8dda771510Adrian 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
36dbfc4d41Kristian StavåkerModified the pattern match algorithm.
540d4668c9Adrian Pop- added ${MODELICAUSERLFLAGS} to the end of the g++ command in the generated Model.makefile as Hong Duan (hduan [at] ucdavis [dot] edu) suggested
26594b7a2eAdrian 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
5688ae4e72Adrian Pop- cleaning up makefiles - using rmldep-new.sh in Linux makefiles also
01920f5dbcAdrian Pop- linux fixes for the new libsendData.a from c_runtime
e76c1708a3Kristian StavåkerMade some improvements and fixed some bugs in the valueblock and for iterator constructs.
0662428ac7Adrian 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/
2e4dc29981Henrik 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.
2b64d6b919Kristian 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.
579c108d66Kristian StavåkerAdded support for MetaModelica lists to the matchcontinue expression. Mostly altered DFA, Convert, Patternm and MetaUtil.
27516089beKristian 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).
157479bcf0Kristian StavåkerAdded support for nested MetaModelica lists + some minor improvements.
36fb88f0e4Kristian 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).
306a4f1f65Peter AronssonChanged getClassInformation and getComponents to also return array dimensions of classes and components.
5131edfe71Kristian Stavåker- reverted the last Inst.mo changes
f262dd8d61Adrian Pop- reverted changes by krsta as the testsuite doesn't work. - small changes in Main.mo
78568a1dfcKristian 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.
616aa2b1a2Kristian StavåkerAdded List type to type system files. More to come ...
7b04343b5fAdrian Pop- updates to makefiles for Linux - makefiles for Cygwin - readme on how to build ModelicaXml on Linux and Cygwin
aececcca23Adrian 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 ...
968d72b9feKristian StavåkerSome minor changes to the valueblock expression and patternmatch algorithhm.
d8b74949bfKristian StavåkerAdded string comparison, ==, to generateRelation in Codegen.mo. The C strcmp operation is generated.
6a0707eef9Kristian 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 ...
05b6072d6bg-pavgrFixed reading of break/return from .mof files
21ff4f50dcg-pavgrSupport for brake and return: fixed getAllExpsStmt; added test cases.
2b44d98cceKristian StavåkerA few minor improvements of the patternmatch algorithm.
26676a06ebAdrian Pop- Linux fixes
9f7183356fAdrian 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
f84b9213f1Kristian 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, ...).
510421bc05Kristian 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().
3f087a3407Adrian 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
98ab230723Adrian Pop- included MacOS changes from Eric Meyers (erictmeyers@gmail.com)
6c7dbe30cdAdrian 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.
a8adeacebbx06klasjchanged the return value for the val function from boolean to real.
6c21a399b1Peter 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.
7b12d72c9aKristian 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.
84ebb4440fPeter 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.
f1347a8e86Peter AronssonFixed bug with type extending basic type using long class definition in several levels, and having modifiers on builtin attributes. See Type10.mo
a263c7522eAdrian 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
e49971277bAdrian Pop- added stringFind implementation for Linux too
2e42104e62Peter AronssonFixed compile bug in older versions of metamodelicacompiler.
018a4e9234Peter Aronsson- getDefaultComponentName and getDefaultComponentPrefixes API functions, see DefaultComponentName.mos - der(expr), see dertest.mos
c70b03c731Peter AronssonFixed bug in setComponentModifierValue, testcase: interactive_api_param.mos
22fd2af8cdPeter 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.
5cfacd7b8cPeter 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.
9e88d5f0e3Peter 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.
fe20c671bdPeter AronssonFixes to be able to compile using Visual Studio. Added some comments to System.mo Added GENERIC_ERROR to Error.mo.
abd304f64eAdrian Pop- Makefile updates for Linux to mirror Makefile.omdev.mingw
95d5aba38cPeter 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.
51608e2bd7Peter AronssonSpeeded up instantiation by writing special instantiation code for builtin classes (Real, Integer,String,Boolean).
c34eda22a2Peter AronssonFixed bug with "Automatic" output intervals and latest newTime implementation.
38c7640468g-bjozaSome cleanups from last commit. Bug 849, some simplification errors with vector and matrix operations.
04efa3002cPeter AronssonFixed bug with calculating nextTime when step is calculated from numberOfIntervals, giving numbers like 0.01111111111111111111111 due to inprecise floating point precision.
e895feceb8g-bjozaBug fix 849 Some minor fixes overall. Matrix simplification, builtin function pre.
176fc2eb86Peter 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.
3e44821bceHåkan LundvallFixed sample-bug
4567033810Peter AronssonAdded integer_rettype to modelica.h.
19e6b0f383Peter 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).
3b4be3e2adAdrian Pop- more Linux fixes
342fd13186Adrian Pop- Linux fixes to Peter A. changes
7ad7c51961Adrian 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
068b37adf2Peter 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).
686bd1fe1ePeter AronssonChanged representation of builtin attributes in DAE.VariableAttributes (start,min,max, etc) to Exp.Exp (was previously Real, String, etc).
1928d059eaAdrian Pop- small performance improvements - cosmetic changes
ea7746470bAdrian 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.
33faaace1eAdrian Pop- reverting the bad commit by krsta
2f26ce6d7bKristian Stavåkergit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2756 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
40c43e7359Adrian Pop- fixes for the upcoming mmc compiler; - corrections to input variables and variables from matchcontinue
dd039f4b5eAdrian Pop- warning removal, printing long instead of integer.
2f7fd381ffAdrian Popdelete .srz also
b70f7e24feAdrian Popdelete .srz also
8586ac3e46Adrian Pop- small fixes to errors in .mo files discovered by the new MDT
e619c3b7a0Håkan LundvallFixed so that exceptions work when fortran functions are involved in Linux
70d9df0e93Håkan LundvallFixed Timetable-bug
ab19942c47Peter AronssonFixed compile error due to changes in DAE.ASSERT
bb3206edadPeter 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.)
6e13ad6f73Adrian Pop- more notes on possible problems with Eclipse and OMDev.
10bd3937d5Peter 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.
4aaf6a1e9cHåkan LundvallTestsuite now passes in Linux
e4d903ed66Peter AronssonAdded protected/public flag to DAE.
23ec061170Peter AronssonFixed bug in solving linear system of equations (DAEexample.mo).
83934c04c1Peter 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.
4e9de131c6Adrian 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".
047ef6c4ddAdrian Pop- Fixes for BUG: http://bug.modelicacommunity.org/show_bug.cgi?id=144 The numbering of temporary variables was wrong in Codegen.generateElse
cc73f78682Peter AronssonFixed bug in prefixing of variables in algorithm sections, which was not performed at all.
22e7e1b22bPeter AronssonAdded model_dir string as global variable to model code. Needed when loading e.g. associated table files.
4e3a74066fPeter 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.
36cec87ac1Peter 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.
a79ff6b7abPeter 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.)
89ab88d772Peter AronssonAdded translateGraphics function that uses Refactor.mo to translate graphical annotations.
ba3d243f49Håkan LundvallFixed bug #133 and a missing endResult in simulation3.mos
817c38ca24Håkan LundvallFixed bug #131 output variables involved in zero crossings were not evaluated.
0358522cd8Hå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.
18e85c183dAdrian Pop- added Refactor.mo to Makefile.common, Makefile.common.w32 - fixed dependencies in .depend Makefile.w32, Makefile.debug.w32
2612e4c53fKristoffer NorlingRefactoring thesis
f6c5d12017Peter AronssonCompile error due to name change in util.
cc06c58a9ePeter AronssonFixed bug with creating empty arrays with fill and using size on them, see mofiles/Array13.mo.
56c34d0f3fAdrian 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
144bf6cb41Adrian 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
2c760c1db7Peter 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.
f9d8c9c581Adrian Pop- fixes for corbaSessionName not defined when NOT compiling with Corba
220343b78cAdrian Pop- small update for the upcoming version of MMC/RML & OMDev - variable name changes to differentiate them from function names
f3963abd1fPeter 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.
cedceafee1Peter 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.
67b5bc2f13Peter AronssonFixed bug 95. Testcase in simulation3.mos and avg.mo.
caec13eb55Peter AronssonA small error in the compiler.bat file.
44416bbacaPeter AronssonFixed bug 51, testcase mofiles/reinit.mo
eaf2f053d7Peter AronssonFixed bug with Modelica.Blocks.Discrete.Sampler connected with e.g. VoltageSource (reported at Modelica Design list)
21b715c6bbPeter AronssonFixed bug with compiling when e.g. LIBRARY_PATH is defined.
2d66b1d66ePeter AronssonAdded description of missing fortran files in c_runtime/README
f4f6c2d885Adrian 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()
713cb1d4d6Adrian 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
f3c4cdb6a4Adrian Pop- included for std::numeric_limits required by VC++
16703d780bAnders Sandholmfixed so val can handle arrays, val(x[n],x.y)
ecc71a2846Adrian Pop- Linux typo fixed
5d481d2a01Adrian Pop- fixes for Linux part
7f89670de9Adrian Pop- fixes for Visual Studio to get rid of link errors
0aa207e119Adrian 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
0676961199g-pavgrLoopContext; check that *break* is inside a loop
37b08492eePeter AronssonFixed bug with start value of parameters not translated to DAE.
6118ccf4bbAdrian Pop- changed "inital" with "initial" in Builtin.mo - replaced return with returnType in Codegen.mo and DAE.mo as "return" is a keyword now!
3dec01448fAdrian 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.
c7c5a54519g-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)
96610eec48Peter AronssonImplemented inner/outer for components (inner/outer classes not impl. yet) testcases InnerOuter1.mo InnerOuter2.mo
abd5bd51c5Peter FritzsonImplemented the builtin function: product. Works on a testcase with vectors. Has not yet been tested on matrices.
76ccbcab14Adrian Pop- Lookup.mo does not use Util - cosmetic changes to Absyn.mo by Peter F.
762d90aa7bPeter AronssonAdded instantiation of reinit in algorithms. Now flattens, and produces error message that when algorithms not supported yet.
ac7f11118bPeter 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).
f5d033a561Anders Sandholmremoved some debug information that were commited in the last version
ff11ff62a6Anders Sandholmfix string support in external functions
c2e2576649Peter 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.
6376a7fb6dAdrian 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.
cf157b742aPeter 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.
721ae868a5Peter AronssonFixed bug with instantiation of Modelica.Blocks.Discrete.TriggeredSampler, causing infinite recursion (prevented by only instantiating partially)
07ca683bd1Adrian 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
1802f39dceAdrian 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
e2545be029Peter 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.
9e4e4b25a3Adrian Popdouble should not be float as we might loose precision
b9c50e2fffPeter AronssonFixed bug in lookup of functions through unqualified imports.
d8020d59eePeter AronssonFixed bug with e.g. Modelica.Electrical.Analog.Sources.TrapezoidVoltage giving error message even if it is correct.
7e56d9b271Peter AronssoncheckModel now uses DAELow.lower without generating "dummy state", i.e. counts correct number of variables and equations.
4fddc6fe14Peter AronssonAdded error message for not-yet-supported features in algorithms (when clause, while-clause, etc)
0d60cfda7cPeter AronssonFixed bug with generation of zero-equations for unconnected flow variables.
4b9cc2ab3dPeter AronssonFixed bug with simplify of 1/(a/b)^2 causing infinite recursion.
d04a0b7da6Adrian Pop- new line at the end of file.
193d1c807fAdrian Popreplaced ModelicaXml.h with ModelicaXML.h
0315c1349dAdrian Popremoved to be replaced by ModelicaXML.h
ba8fe31a60Adrian Pop- fixes to make modelicaxml work on Linux.
bbeecf99baAdrian 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
37be61e12aPeter AronssonImproved instantiation speed. (checkModel(CauerFilter) now takes about 10 seconds instead of > 500 seconds). Fixed memory leak in solving linear systems.
8d646ae1b6David 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.
9c1b0c847fAdrian PopNot needed since we moved to .mo files.
00354a3ac8Peter AronssonMoved some comments to better place
c3c4f23f41Peter AronssonFixed bug with premature exit when event at stop time.
c24bf7cdb2Peter AronssonSplit up large string constant so VC compiler does not complain.
280a1c0ef8Adrian Popimport Interactive is not used in Mod.mo.
5db84ace60Adrian PopLinux update.
a4a361efdbPeter AronssonFixed bugs in simulation_runtime (initialization of data, stop exactly at stop-time, etc). Fixed bug with recursive modifiers (A a(x=a.y))
bba486e8bbAdrian Popgenerate logs also on Linux.
52493481a8Peter 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).
5b2ad2a5e4Adrian 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.
94ffb7d129Adrian Popsimulation instead of simualtion.
22dae9f191Peter 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.
ddb2c96de2Peter AronssonImplemented flags for controlling simulation error messages (log) Fixed bugs (chaanged getExtendsModifierValues, setExtendsModifierValues)
1fe2455272Adrian 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 :)
650224ef2bPeter AronssonrenameClass does not visit read-only classes.
fab913a393Peter AronssonFixed bug in renameComponent. Now used partialInstClassIn, which is much faster.
ac2082253aAdrian Popfixes for BUG 115: http://bug.modelicacommunity.org/show_bug.cgi?id=115 model X end Y; now reports a parse error!
d5ad55ddefAdrian Popfixes for BUG 115: http://bug.modelicacommunity.org/show_bug.cgi?id=115 model X end Y; now reports a parse error!
0bfea108f0Adrian 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
812ed43961Adrian Pop- Linux part fixes for corbaimpl.cpp
490ed213eaAdrian 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
78243c6580Peter AronssonRemoved old printing functions.
f4d2d10120Peter AronssonAdded better errormessage to checkModel
fc30e712cdPeter AronssonAdded setEliminationLevel, to control degree of alg. var elimination interactively.
22301f5dfbPeter AronssonAdded error message for no function found. Added EXTRA_SIMOBJS to Makefile.omdev.mingw
67d98dfb87Adrian Pop- allowed a normal Modelica comment after the case. Example: case (z,y) "Some comment here"
453ba5902aAdrian 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.
465c732086Adrian Pop+& added to PLUS, needed as MetaModelica stringAppend operator
5033135125Adrian Pop- cases can have empty patterns - fixes DAELow.mo so empty pattern () was replaced by _
eb09eb8ac8Adrian 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.
4905100c6ePeter AronssonRedesigned vectorization of variables. Now has extra argument to elabExp to control this. See instEquation on EQ_EQUALS. (affects array equations)
34ae2b03fcPeter AronssonFixed bug in index reduction (states for state selection only considered states in current differentiated equations, not all marked equations)
d6fb48c013Peter AronssonLarge integer literals (> 31 bits) are converted to Real literals. Added testcase for flat parsing (more needed later on).
8c092d8b8bPeter AronssonFixed bug in traverseExp.
8e9fc2b696Peter 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)
152b87be47Peter 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)
ef883927d4Adrian Poppetfr's changes to Absyn.mo
efb579bf2cAdrian PopCosmetic changes to .mo files. - changed all .rml to .mo - changed all RML to MMC - got rid of spaces between imports.
0aaa9dc43aAdrian 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
25b1add4d3Adrian 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.
e2ec917bedAdrian Pop- fixed a small warning
98a3eb3478Adrian 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
34de655c99Adrian Popreplaced // with /* */ as some compilers crap on this
6abd6748d0Adrian 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.
9c3fe3d0dcPeter 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)
8f8a242c42Peter AronssonForgot to remove temporary code before checkin.
bf5bb20890Peter AronssonFixed bug in cross. Added testexample in matrices.mos
36560073e8Peter AronssonAdded builtin cross function (elabBuiltinCross)
b4a3068363Adrian 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
58e1b193a5Peter AronssonFixed bug in initialization. initial_residual only contains equations that solves for continuous time variables.
447fae774bPeter AronssonFixed bug with Initialization, see simualtion3.mos (InitTest.mo) and Test3PhaseSystemTotal.mo
a3dd5811d0Peter AronssonFixed bug with cardinality, See Gear.mo. Now Gear and Gear2 in TestModels.mo works, see rotationalgears.mos
cb5d5185e9Peter AronssonFixed bug with start value for arrays in DAELow
f487f5e417Peter AronssonFlat Modelica parser now allows crap at the end of file which is produced by some Modelica tools.
4bb6f1bd6fPeter AronssonFixed bug with input variables on top level, see InputOutput.mo tested in simulation3.mos
f56192ab80Peter 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)
336c3359e9Peter AronssonFixed bug with flat modelica parsing. Now parses Real x.y=1.0;
785154e182Peter AronssonRemoved commented code.
66cd146a7cPeter AronssonAdded extra argument to buildModel and simulate: storeInTemp=false. To store all files in Settings.getTempDirectoryPath(), set this variable to true.
01246e41b4Peter AronssonFixed bugs in mixed system. LossyGearDemo1 now working, see simulation3.mos
c7cdc84603Peter AronssonFixed flat_modelica_parser which didn't work at all. It now works partly. Still problem with modificiation in tree walker.
3528e30ad9Peter AronssonAdded rudimentary boolean functions to c_runtime.
2e821319dbPeter AronssonFixed bug with default values for funcion calls. They are now added to the expression argument list so correct C-code can be generated.
73175f512cPeter AronssonFixed bugs with wrong Exp.Type in Exp.CAST expressions.
e85dc73556Adrian Pop- reverted the changes
8e1dbf0f8dAdrian Popupdate of dependencies
4843a21aa3Adrian PopMakefile changes to mirror the changes made by Peter A to Makefile.omdev.mingw
4aed02e4b5Peter 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.
33347a5921Peter 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.
94328d0bffAdrian Pop- fixed step numbering in the README-WIN32.txt
983fae96b6Adrian Pop- fixed the MSVC projects and makefiles to use OMDev binaries compiled with MSVC - updated the win32 readme: README-WIN32.txt
501a5b16fbAdrian Pop- small update to the README-WIN32.txt. - released rml-mmc-2.3.6 to make VC7 work
767a31de4aPeter AronssonImproved solving nonlinear systems. Now tries with several different factors and retries with different starting points if not successful.
c1f1ccf3c0Peter AronssonImplemented simple checkModel, returns string with number of variables and number of equations.
d36b059fcaPeter AronssonFixed bug with initialization (alg. vars fixed) Fixed bug with simplification of arrays resulting in wrong operators.
d765be7ec9Peter AronssonFixed bug with differentiating exp (HelloWorld).
08d3ee85a3Peter AronssonAdded RO flag in INFO attribute.
af81815e32Peter AronssonFixed bug in promote_integer_array(done by Kaj)
588567e6c7Adrian 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)
910a260449Adrian Popfixes parts of bug 99: http://bug.modelicacommunity.org/show_bug.cgi?id=99 I added to modelica.h: typedef modelica_real sample_rettype;
92ddcaf31dAdrian Popfixed bug 97 http://bug.modelicacommunity.org/show_bug.cgi?id=97 implemented elseif within if expression by constructing IFEXPs within else part.
d0834b098aAdrian PopFixed bug 72: http://bug.modelicacommunity.org/show_bug.cgi?id=72 within_clause did not check for null name_path in walker.g.
097dbbefcaAdrian Pop- last 1.4.2 commit + DrModelica, UG, ModelQueryAPIexamples.onb updates + val(var_name, time) implementation from Anders Sandholm
1bdf5501d3Peter 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.
67f585b0bdPeter AronssonFixed bugs in mixed systems. It is now a quick fix.
2ede31746cx02danheFixed a bug with unparsing of logical binary operators. Parenthesis are no longer lost around expressions with operators of lower precedence.
6b7ede752fPeter Fritzsontest by petfr
f10070269aPeter AronssonFixed bug in splitting a mixed system into its discrete and continuous part.
7015578107Peter AronssonAdded comment why derivative of if expression must be allowed even though it is non-existent.
13b8be179dPeter AronssonFixed bugs in mixed system of equations (see simulation3.mos and BearingFrictionTest.mo) Fixed bug with missing events at initialization (see also BearingFrictionTest.mo)
562bc4e4f6Adrian Pop- new stuff val(variable, time) - which is not implemented yet - new SG and UG - new file ModelQueryAPIexamples.onb - new UsersGuideExamples.onb
73f9344f51Adrian Pop- more fixing
b7fdaf7905Adrian Pop- fixed a small mistake
79de7eab99Adrian Pop- updated runtime and winruntime to be a bit closer
85d73635e7Adrian 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
5be5cb99ccPeter AronssonFixed bug with overwriting of equations. Changed testcases Shadow1.mo and Overwriting2.mo.
23925b9fc5Peter AronssonFixed bug with connect(a.b[1],c.d), i.e. using arrays in connectors. See mofiles/Connect15.mo
122558eb1fPeter 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.
ba7ec9b32eAdrian PopChanged everywhere i could find MODELICAPATH to OPENMODELICALIBRARY!
9e49dc276aPeter AronssonFixed bug with missing delete for A and b arrays for linear equation systems.
b93a43f9a5David BromanAdded support for for-statements in the interactive environment.
e40c62cce1Peter AronssonFixed bugs with Test3PhaseSystem and initialization of this model. See mofiles/Test3PhaseSystems.mo
9932e8caafKaj Nyströmgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2476 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
5d6b8f9809David 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.
c1cd99018ePeter AronssonFixed bug with trapezoid voltage source (used in e.g. NandGate). See simulation3.mos.
16e767d6c9Peter AronssonMinor changes.
967903525fPeter AronssonFixed bug with whitespace in OPENMODELICAHOME path in compileModel.
dc47506c7ePeter AronssonFixed small index bug in building string MODELICAPATH=dir
d6206d1204Peter AronssonChanged compile script to take OPENMODELICAHOME as argument. Needed for applications where OPENMODELICAHOME is not set.
0261fe9eefPeter 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.
259de82eb2Kaj NyströmFixed bug 671
7af46bd976Peter 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)
a07171e978Adrian Popmoving towards 1.4.2 - updated Uninstall.bat - updated the product code, product name, etc - made getVersionNr return 1.4.2
1b881032f2Peter 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)
d00f675cb7Adrian Pop- Linux has no "_putenv", changed to putenv in settingsimpl.c
ef105a830cPeter AronssonFixed bug with multile declarations, see testsuite/mofiles/MultipleDeclarations2.mo (mc bug 655)
cb5f12f134Peter AronssonFixed bug with evaluating e.g. cos(0)/2 (due to Exp.simplify (MC bug 656)
ce2d8ad0fdx02lucpocommented some code
c24aae50fcx02lucpomade the function Setting.setInstallationDirectoryPath to use putenv("OPENMODELICAHOME="
a126f52d71x02lucpoadded getTempDirectoryPath to interactive functions
d686febdc7Peter AronssonFixed bug in simplify of cos(0) * cos(0) (MC bug 654)
baaa784b68Peter 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.
28a1895011Peter AronssonFixed bug in listUnion. Now makes union in both sub-lists as well.
4904496bf2x02lucpoadded DATA_STRING stringVaribles to handle the stringvaribles for generated code
0e78723068Peter AronssonFixed bug with subscripts, see mofiles/SubScript2.mo. Fixed bug in Exp.simplify for vector op scalar expressions.
cc5a6a85d6Peter AronssonFixed better error message when failing to connect variables of inconsistent types.
b8cf2271fcPeter AronssonFixed bug with connectors extending basictype and matrix concatenation (MC bug #643). See mosfiles/Extends4.mo
3305ab6400Peter AronssonFixed bug with connectors extending basictype and matrix multiplication (MC bug #643).
6385b7ad77x02lucpomoved getVersion from interactive to ceval
3424a43089Peter AronssonFixed bug with Strings, Integers and Booleans in connectors. (MC bug 499) mofiles/Connect14.mo Also added Connect13.mo for connectors containing arrays.
cd4c59c089Peter AronssonFixed stack overflow bug in mofiles/DependsRecursive.mo
27385ecd7cPeter 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)
cb80de6b1fx02lucpocorrected diagonal_real_array and diagonal_integer_array
1d22022beex02lucpoadded EXTRA_SIMOBJ to compilation
693922f2ffPeter AronssonFixed bug with function argument having same name as function. See testcase mofiles/Function10.mo
bf014d5165Peter AronssonFixed bug with multiple declarations, see testsuite/mofiles/MultipleDeclarations.mo
5c9298357dPeter AronssonFixed bug with infinite recursion in lookup. See packages2.mo in testsuite. Cleaned up lookup code a bit.
a4539e4deePeter Aronssonpartly fixed bug #105 (1 and 2). Fixed bug with looking up external object. Fixed bug with sign bultin function.
5c8b937da9Peter AronssonChanged interactive commands such as simulate, buildModel, etc, evaluated in Ceval to use automatic quoting (changed to Code AST construct).
0c7ba6184aPeter AronssonFixed bugs with external object and new impl. on strings.
dcdb4c31eax02lucpopartial implemented parameters and algebraic string handling
303029fe70x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2429 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
3944c4b3a1Peter AronssonFixed bug in lookup of constants in packages throuh inherited classes. Partly fixed bug in array equations.
dd08d14b71x02lucpoimplemented -s settings.mos
b68dd149c9Peter AronssonMoved getVersionNr function to Settings.mo Fixed ExtObj.mos testcase (added missing file)
98ae67f316Peter 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.
83d3601449x02lucpomade things compile
66be264a2cPeter AronssonAdded cache to almost all functions that has something to do with lookup and instantiation. Packages with constants now translates much faster.
5eb8e60b14x02lucpochanged implementation of Static.elabBuiltinSum to handle also sum(3.0) this generates an warning
ae53bfeaedx02lucpoadded public function dumpDAELowEqnList
b6d8ee2ac6x02lucpoadded so that subscripts with param are evaluated to value
25d0c02c61x02lucpocorrected 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
34a0616238Peter AronssonExternal declaration annotation can now be given with semicolon between the annotation and the declaration.
a7a90ef48cPeter AronssonFixed more bugs with set/getExtendsModifierValue and getExtendsModifierNames.
61fd0dcc1dPeter AronssonFixed bug with get/setExtendsModifierValue (MC bug 598)
6dbe0070a7Adrian Pop- fixed: SimCodegen.c(15717) : fatal error C1061: compiler limit : blocks nested too deeply - the function: generateInitializeDeinitializationDataStruc was SF, common!
997dec6d6aPeter AronssonImplemented External Objects, testcase mosfiles/ExtObj.mos.
93053ff739x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2396 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a4ed1ad433x02lucpoadded isRealParam and isNonRealParam
956fbdb8eax02lucpocorrected an error on ASUB simplify
9ab5b25798x02lucpocorrected a bug that made compilation fail
79d6e05e8bx02lucpocorrected a bug concerning the " constant Real Coeff[3]={-5,-5,-5};" this could not be instatiated because Coeff[2] could not be found
0c13278948Peter AronssonFixed additional bugs for get and setModifierValue (MC bug #592)
ac72319040Peter AronssonFixed MC bug #592: setComponentModifierValue, Removing "outer" modifiers messes up modification. Fixed bug in Derive (implemented differentiation of sin and cos in differentiateExpTime.
7d57dc9947Adrian 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)
e886df8f7aAdrian Pop- free() in the Linux version.
24575b502bAdrian PopUpdated the XML part with the latest version of ModelicaXML and FlatModelicaXML
a4ac4c3d71Adrian Popremoved this old ModelicaXML version
2b5cce6b8aAdrian PopFixes due to refactoring of component names in Exp.mo records
3ef8adb014Adrian 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
c041dbf69ePeter AronssonFixed so PATH is extended, not reset by Compile.bat
db398d4e21Peter AronssonFixed bug in getExtendsModifierNames. Added testcase NamedArguments.mo
175e934505Adrian Pop- fixed plotParametric(x, y) instead of plotParametric({x, y})
5423acfc15Adrian 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
257625340fAdrian 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/
2d4c3704c3Peter AronssonFixed MC bug #590
38c7c4fe31Peter AronssonFixed MC bug #589
72a449e7c5Peter AronssonFixed MC bug #588
6be39ae47aPeter AronssonFixed bug with unconnected flow variables. Fixed MC bug #572.
aa933ea0c4Adrian Pop- fixed for Linux!
43889112d5Adrian 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!
55c6fd670cx02lucpoadded double vector with residuals in the DATA struc
4fb215d1e0x02lucpocommented some code
f57765f410x02lucpochange the generated code to use one structure for simulation data
18266c691bPeter AronssonFixed bug with arrays in flow variables in connectors.
f6bc54654aPeter AronssonPartly implemented support for ExternalObject.
7eec580619x02lucpoadded a rawStringToInputstring for changing from \\ to \ and \" to "
b6b34115f4Peter AronssonFixed bug in lookup of classes from inside functions. Cleaned up some comments.
53544943d6Adrian 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
0b51b0bfc9Peter 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.
4b4c358c00Peter AronssonImplemented getDocumentationAnnotation.
a886acd053x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2336 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
b12b42f1edx02lucpoChanged 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
5a6fc7cbabAdrian Pop- corrected to: end varDiscreteAttrInt; to get rid of the warning.
f6c8a52980x02lucpoChange to compiling with mingw
ae7544c857Peter AronssonMinor fixes. Moved list function to interactive to speed up model editor.
f0f5a3559eAdrian Pop- conform to Modelica grammar unary operators has to be enclosed in ( -x ) if they appear in the right side of an binary operator
f5bdf7d433Adrian Pop- optimizations and update of product code in Uninstall.bat
fad4176161Adrian Pop- updates so no OMC_BUILD_FROM is used. Also got rid of all the .rml compilation section. - small updates to readmes
07abe6d2ccAdrian Popfixed a small mistake.
12f5b4506fAdrian Popgit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2320 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
cc94a26b22Peter AronssonTranslated all RML files to MetaModelica.
c524bd8d42Peter AronssonDeleted since autogenerated.
33991003f9Adrian Pop- changed in Derive.rml: SimCodeGen.rml -> SimCodegen.rml otherwise the compilation on Linux fails.
a2be60e3feAdrian Pop- better instructions on how you can run the testsuite from Eclipse or MSYS terminal
a669d1d684Adrian Pop- added instructions on MDT installation.
929cdb0bd6Adrian Popupdated instructions for compilation using OMDev-mingw package.
1a5a9578caAdrian Pop- new project sample that has no modelica syntax checker builder.
c3c21207c4Adrian Pop.project and .cdtproject samples to work with C/C++ perspective.
bacb4bb7adPeter AronssonRemoved print message in get_pathed_class_in_program
79dc92c28aAdrian Pop- fixed so that pattern = arrayNth(arr, index); is dumped as: pattern = arr[index + 1];
9480558208Adrian Pop- added more stack to the translator
65e70b1c71Adrian Pop- fixed the (x => y) option problem in the translator - fixed better escaping of rml comments to MetaModelica strings.
1db0c7e2efPeter AronssonFixed bug in functionDAE_res. Now old values of derivatives are used as "guess" values.
3a67029aadAdrian PopSmall .rc modification. Added some optimization flags to the compiler.
e3a8d5aa02Peter AronssonAdded special case for pre in nonlinear residuals. The variable in pre should not be replaced in this case.
4cfc5d3687x02lucpofixed a bug in load_file. Under windows the loading of packages could not handle filenames with "/" only with "\"
b38a5bee3dx02lucpochange the name of some dummy-var from der_a.b.c to a.b.der(c)
4e3d86d058Peter AronssonFixed bug when giving integer values to startTime and stopTime.
4e668759f1x02lucpofixed an error in generate_makefile
a30e1ac22dx02lucpochanged the makefile to contain the path to dir of mo-file in include and libs
66be270d80Peter AronssonFixed minor bugs for codegen of tempInterpol function.
cc8cae62a6Peter 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.
f22b6e76c6x02lucpochanged the name of dummyder from der_a.b.c to a.b.der(c)
36ff1af21bPeter AronssonImpl. support for Modelica.Math.tempInterpol1, including improved handling of arrays in simulation code.
a08e39e804x02lucpocorrected an error in rename_class
c69794a7b3Adrian Popfixes local declaration when variables are actual val declarations
4ff7f09e53Adrian Popadded OMCMonitor to trunk/tools
60b94be997Adrian PopNot needed, I will generate it again when we move to VC2005. Adrian/
6bc8492594Adrian 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.
908f26692aAdrian 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.
471a0af01fPeter AronssonAdded testcases from MathCore testsuite.
af61583108Adrian PopFixed the imports as there are intermediate results from function calls that require additional module imports. Please DO NOT TAKE THEM OUT.
13ea30956dPeter AronssonAdded better error messages when building. etc.
9da670ca15Adrian 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.
82f11e26bePeter AronssonReverted errormessages in parse. Did not work in interactive.
459cdb2a0fPeter AronssonAdded floor_rettype
4ec3b9cdf2Peter AronssonFixed bug in generating zero equations for unconnected connectors. Fixed so parsestring and parseexpstr now also use new error message impl.
ad3e89a1fdx02lucpoadded executable file name to generate_init_data
d08deade69Adrian Poprenamed to just have it as a guide
7cb6beb6b6Adrian Pop- edited the README-OMDev-MINGW.txt to change the way we handle .project and .externalToolBuilder/*.launch
8a63b4d9fcx02lucpooptimized rename_class
ebfd2c97a5Peter AronssonFixed bug in intialization.
6db790fc96Peter AronssonAdded function bound_parameters to codegen to be used together with new initialization routines.
dc55b61636Adrian Popsmall change
6d316f2f2fx02lucpoadded some extra macros for facilitating adding new source-files and flags automatically
94d37a2ae6Adrian Popsmall fixes to vc7 setup and winruntime
d3bbcb5702Adrian 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.
7a8e3d99d9Adrian Popcreated new project conform to MDT 0.6.0 and OMDev.
91a1fb6a29Adrian Popsmall timing modifications
0c5afe7281Adrian Pop- reverted the getClassInformation(name) API to NOT return the class name
20b14ee69aAdrian 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
317532e185x02lucpochanged get_class_information to return the name as second arg
791ef35b01Adrian 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
9b0cb2fa52Adrian 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
69c5f153fcAdrian PopAdded VC8 for compiling OpenModelica with VC2005
b9d3341ca6Adrian PopRemoved after it was copied to trunk/tools/rml2mod
ed0ddc888bAdrian Poprelocated to trunk/tools/rml2mod
25b6787669Adrian PopAdrian Pop: - relocate "xml" directory to "tools"
8326457d4dAdrian PopAdrian Pop, adrpo@ida.liu.se, 2006-03-10 - updated RML->MetaModelica translator to latest version!
9c7ddd9ed2Peter Aronssongit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2199 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
8784e1c231Adrian PopAdrian Pop, - Added DAEEXT__clearDiferentiated to the ExternalRMLDefines.h
710df77cf8Peter AronssonFixed bug in getClassInformation. Seems unneccessary to return class name since that is was is passed to function.
885d12d3c8Peter AronssonFixed bug with clearing differntiated equations marks when running interactive.
d44dd5dc2aPeter AronssonThe fixed attribute of a dummy derivative is now propagated (trough the constraint equation) to the state.
8b16e4f231Peter AronssonImlemented prototype initialization scheme using optimization.(Bernhard Bachmann).
0e8069c9a0Peter AronssonImlemented prototype initialization scheme using optimization.(Bernhard Bachmann).
d50425adc6x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2192 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a1578ea9d2Adrian Popnot needed, copied on compile from Compiler/
a94d53877fAdrian Popnot needed, copied on compile from Compiler/
3429718946Adrian PopOMDev fixes
cb18bd9bf5Adrian PopFixed an error that prevented generation of the .mo again when .rml are newer.
c8ab6af145x02lucpocorrected some errors for the new setup
f761ff9b34x02lucpocorrected the return value from renameClass
919bc4e8c4x02lucpomade renameClass to return a string-list with the path of the changed classes
7da42ef6b7Adrian PopJust text changes
5cab5d8accPeter AronssonImplemented residual function for intitial calculation.
55cfc9402dPeter AronssonImplemented remove of simple equations after matching. Implemented propagation of initial values on dummy states onto proper states.
f50fb51c65Adrian PopAdrian Pop, 2006-03-01 Updated OMDev makefiles
e256fc8e84Adrian PopAdrian Pop, - small changes to make runtime and winruntime more uniform.
79afa70bcdAdrian PopAdded script to plot from Linux.
f6f430cdd0Adrian PopRemoved file/folder as they were moved to doc/omc_helptext.txt doc/omc_interactive_api.txt
4340d8936cAdrian 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.
b1d7f5f8cdAdrian PopAdrian Pop, 2006-02-26 -added trunk/build with bin, include and lib directories. -modified makefiles to use these directories
79063e3d6dAdrian 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.
3203576c84Adrian PopRemoved file/folder
cab31514b6Adrian 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
0abdf226e3Adrian 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
b36552f3f4Andreas Remar* fix include path when building with mico 2.3.12
b645b35f27Peter AronssonFixed bug in initialization. Now handles initial equation better.
cc48704c44Peter AronssonPartly implemented support for Modelica.Math.tempInterpol2 function.
2694ab8bc3Peter AronssonFixed bug with type conversion (Integer->Real) in arrays. (MC bug 396)
4f6b136fa2Peter AronssonFixed bug (MC 461)
cbd2040f07Peter AronssonFixed bug (MC 411)
3fbd001fcaPeter AronssonSee previous log.
5842ab0958Peter AronssonFixed bug (MC 382)
18ab58aad1x02lucpochanged the generate_init_data to use tolerance and output-steps
6795522493Peter AronssonOne more bugfix for (MC bug 443).
4c43de17b3Peter AronssonAdded error message for wrong type in modifiers.(MC bug 443) Fixed bug when turning of error messages in Inst.
5d56f87c3bx02lucpomade loadFileInteractiveQualified work lazy
fc99aeca1dPeter AronssonFixed bug with initialization and added some predefined types.
17baf44c07x02lucpoadded a settings-module for different global settings
dc6f9c72d9x02lucpooptimize extract all components
7c77b83a08Peter AronssonAdded abs_rettype
a73761c788x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2140 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
aca248073fAdrian 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.
a06b483cb0Peter AronssonFixed bug in generate_mixed_discrete_combination_values.
9ceda5adcfPeter 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.
f1c71410bdx02lucpodo not remove /B from exit
819821a8eax02lucpoimplemented rename_class to change the class-name in all the program
8533b6a1a6David 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.
8ead64927cx02lucpoadded load_file(string) => Absyn.Program in ClassLoader.rml. this loads the file or whole package
d209d29c74x02lucpoadded Rename-component test to test-suite
f1737cc576Adrian 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.
8e5a9bb97dx02lucpoadded Rename-component test to test-suite
18f94dd1f9Peter AronssonFixes to luc checkin. Removed trailing '&'.
2f177521dbAdrian PopSeems this file is really needed.
194c880801Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-14
323407e705x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2109 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
31441bd4ddPeter AronssonrReverted if-equations.
a1382cb5fbx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2106 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
572b06beb0x02lucpocorrected a mul-array bug
90e14e218bx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2104 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
c9cfc28cefAdrian 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
6049ac3b38Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-09 Fixed so a trailing \" after an integer is not shown. changed Interactive.rml:getElementsInfo
26bd418d32Andreas Remar* added PANIC MODE error recovery to the parser. This breaks two tests (ParseError1 and 2) so those are temporarily fixed.
a6afc9e484x02lucpocorrected a div_array error
d6f2da79f0Andreas Remar* make sure generated file is called 'a.exe' so you can compile in GNU/Linux (and other OS'es)
f2a5bf67a0Peter AronssonImplemented support for structural if expressions. See mosfiles/structural_if.mo. The matching algrithm and strong components algorithm are are affected by this.
c34dc8876bAdrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-08 Fixed winruntime/Error* to agree with the new ErrorExt.rml and new Absyn.INFO
149e4c2264Adrian Popnew externals in DAEEXT.rml
651f1b688aAdrian Popnew externals in DAEEXT.rml
784d6e4926Adrian Popnew externals in DAEEXT.rml
9cb1bce5d6Peter AronssonFixed bug (infinite loop) in building when equations.
992c674ba4Adrian 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.
f0d1633a17Adrian PopAdrian Pop, adrpo@ida.liu.se, 2006-02-04 This file is really not needed as is generated by ANTLR.
9479615544Peter AronssonFixed bug in Bouncingball. Added n_bounce variable that counts number of bounces so testsuite is more robust
8dbb93a654Peter AronssonFixed bug with index reduction: already differntiated equations should not be differentiated again. Fixed bugs with event handling. Changed interactive api for comments.
abc7c1586eAdrian 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
2d46ccfd9fAdrian PopWill be replaced by rmldep-new.sh which should be called by the Makefile.omdev.mingw Makefiles
e996e5ca3fPeter AronssonRemoved adrians changes!
f4d988e3b0Kaj Nyströmupdated mostly comments and whitespace in order to simplify translation to MetaModelica
c8caef3825Adrian PopAdrian Pop, adrpo@ida.liu.se, 206-02-01 Fixed the rmldep.sh script. It had a little problem.
f6d9460d6fAdrian PopNot needed anymore as they were replaced by Makefile.omdev.mingw all over the place
dc3f43e892Adrian PopAdrian Pop, 2006-02-01 Added for JavaNames fixing in RML files
92cc092f3aAdrian PopAdrian Pop, 2006-02-01 - based on a define I fix the java name for VALUES__reverseMatrix or VALUES__reverse_5fmatrix
2aede2b78eAdrian 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
9412a57013Adrian 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.
3f362aef94Adrian PopOMDev compilation files + Eclipse project + eclipse builder. ---- Adrian Pop, adrpo@ida.liu.se, 2006-02-01 ----
435bab355dPeter 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.
12aecc3218Adrian PopAdrian Pop, 2006-01-28 - mingw compilation issues fixes - cygwin/msvc still work
b5cac9361aAdrian PopAdrian Pop, 2006-01-28 - fixes the compilation with mingw - cygwin/msvc still works normally
9c6a908dd7Adrian PopAdrian Pop, 2006-01-28 - fixes the compilation of libruntime on MINGW32 - now it compiles using mingw make
c4f3dd76f0Adrian 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
d9def15df6Peter 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.
9289feac1ex02lucporemoved a error in nestled DIVISION macros
15ec2df351Peter AronssonImplemented getClassInformation(classname) => {restriction, comment, sourcefile} setClassComment(classname,comment) setComponentComment(class,comp,comment) setConnectionComment(class,c1,c2,comment)
b6f627fd7dPeter AronssonRemoved luc_pop last checkin since he removed a lot of my stuff from previous version. Also fixed bug with Gear model.
365914714bAdrian Pop2006-01-24 adrpo@ida - changes to comments only - moved comments arround so they apper in the generated .mo files
e46af105a4David BromanUpdated the help text, so that no line consist of more than 80 characters.
fedfecf09ex02lucporemoved an error from getDiagramAnnotation and getConnectionCount on derived classes
6b7cf090dex02lucpomade the inst_element_list to continue even if inst_element failed.
63551f3eeePeter AronssonFixed bug with bindings not getting automatic type converts in make_binding.
73138e3ecePeter AronssonFixed bug with setComponentModifierValue. fixed bug with instantiating partial classes in inst_class_basictype.
856cedbb80x02lucpochanged 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
1edd1e9de9Peter 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.
179e030ec0Adrian Pop2006-01-16 - adrpo@ida.liu.se - refactorings of .rml files to make translation easier + comment handling + types + imports
9f96ed0727Peter AronssonImplemented connectors extending from basictypes (Modelica v2.2) for instance connector RealInput2 extends Real[2]; end RealInput2;
94b253826ex02lucpochanged 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
6dadc56346Peter AronssonImplemented partial support for array equations on form v = foo(...). Other array equations should be flattened into scalar equations. Testcase: ArrayEquation.mos.
0f715fdf8fPeter AronssonPartly implemented array equations. Fixed testsuite. Apparently someone has missunderstood the meaning of failingtests. Now all tests go through again....
d615de78c6x02lucpocorrected a bug in division macro
80f48a17a6x02lucpocorrected a bug in division macro
437e8dbe21x02lucpoadded DIVISION by zero check
c896288926x02lucporemove rem from "rem exit %ERROR%"
c377381eeex02lucpoadded 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
7e97d5dd12x02lucpoadded 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
192bc54d49Peter 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.
d0ddda6ca1Adrian Pop2005-12-16 adrpo@ida.liu.se - added loadFileInteractiveQualfied to the Compiler/interactive_api
50d6368473Adrian 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.
dcff6bfa96Adrian Pop2005-12-14 adrpo@ida.liu.se
6b6a8ef7d4Peter AronssonFixed bug in connecting arrays of components. Added testcase FlexibleShaft.
cfc6b31169Levon 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
ed2885e0dex02lucpomade calculate_param_sizes to use is_param. corrected the generation of variable names and comments
d3bb60816ePeter AronssonRemoved error message from simulation record. It should be in error buffer. Fixed dr_modelica testsuite. (bugs in .mo files, etc).
ea323f44e4Peter 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.
54f670862cPeter AronssonFixed bug with vectorized der operatators giving unwanted errormessage.
a7363f87d6Peter 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)
d5fdea6dafx02lucpoimproved compile_model relation
e2da957e58Kaj Nyströmupdated again withplotParametric
61620f3470Håkan LundvallNew examples and usersguide
e988a03c95Hå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.
8b4a895b59Kaj NyströmRemoved plotParametric for now until further investigations are completed
29eb03acdbKaj NyströmBetter documentation and errorhandling in plotpparametric
3a8ee03c42x02lucpochanged the System.trimg in compile_model to System.string_replace
65484d69c9Kaj NyströmImplemented the command plotParametric
b5f6c2a700x02lucporedirected the stderr and stdout to .log
42dd8085cfx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1988 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
6ca6f99981Peter AronssonFixed bug in setComponentAttributes Added initialization of parameters depending on other parameters (expressions of).
fdbf49af20Adrian Pop2005-11-24 adrpo@ida - windows stdlib doesn't have setenv, changed systemimpl.c so it uses _putenv("var=value")
ded4be47f4Adrian 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
3ea048d5d9x02lucpoforgot to add "setCompileCommand" to Static.rml
7bb11d9807x02lucpoimplemented 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
ba3afc895fx02lucpocorrected the generation of code to put out the correct values for different arrays
395a40989aKaj Nyströmminor updates
2cb0ed6020Håkan LundvallFixed bug in transformation of if-equations
39ff25ae9aPeter AronssonFurther fixes to ASUB bug in Exp.simlify. Added dummy state always present to make dassl happy if run with model without states.
bf0032f367Peter AronssonFixed bug with simplifying ASUB. Fixed bug for small equation system (array expandsion with expandedsize=0) Fixed remove simple equation bug (removing parameter)
f7632b6e8dPeter AronssonPartly fixed MathCore bug no 345. (Constants in packages, etc.)
6d72b4b68aPeter AronssonStandard math functions in Modelica.Math are not evaluated instead of compiled and run in Ceval.rml
eedd717a05x02lucpocorrected generation of varnames and parameters
040c3d16b7Håkan LundvallTransformation of if-equations to expressions Updated helptext Updated setup-project
4c5a96c343Peter AronssonAdded better error messages to SimCodegen.rml
65508f46fbPeter AronssonFixed rounding in ExternalLibraries.mos using floor and echo.
a7a8e7c3bcPeter AronssonFixed bug with simulate, added extra parameter to fail cases as well.
3fb865b69cPeter AronssonFixed bugs with whitespace when calling plot, etc. in windows.
0b55befb3dx02lucpocorrected 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
187ed8f688x02lucpocorrected bug 337 mathcore
62877479fbPeter AronssonAdded initialization of matrix and vector declarations.
fce530cbd4Kaj NyströmField names for Modelica+ inserted in comments
b8381c07d1x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1961 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
710299817bx02lucpoadded to build_model a rule so that it changes the dir to the file where the class is.
10f37dca76Peter AronssonImplemented Each modifier, testcase Each1.mo
81ce0e08e2x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1958 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
37c6875cb5x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1957 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a728bbb0e4Adrian Pop2005-11-11 adrpo@ida - added several relations to Interactive.rml and an API function called: getElementsInfo - read more in interactive_api.txt
0d37d3174fAdrian Pop2005-11-11 adrpo@ida - added several relations to Interactive.rml and an API function called: getElementsInfo - read more in interactive_api.txt
5a2a929d92Peter AronssonFixed bugs with initial_function codegen.
2a1e499a08Peter AronssonFixed solving equation systems in output sections. fixed listVariables bug (not considering builtin variable $echo)
9a9053727dPeter 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.
c114487970Peter 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.
57a898c493Peter Aronssonstring replace impl. in cygwinruntime now also in winruntime.
8a662e3f94x02lucpochanged Interactive.rml to compile with VC7.1
995d2b30d4Peter AronssonSplit evaluate_graphical_api into two relations so it compiles under Visual studio.
46d0e9ca2cAdrian Pop2005-11-04 adrpo@ida - added getCrefInfo(cref) to interactive_api.txt
5878923a73Peter AronssonImplemented getClassRestriction in Interactive.rml, returns a string with the class restriction.
bc5b1bdb1aPeter AronssonImplemented external function annotation Library and Include. Implemented setComponentAttributes. Cleaned up mosfiles testing by removing temporary files using system(rm -rf ...)
2d6a893302Adrian Pop2005-11-03 adrpo@ida - added get_cref_info relation - added API command getCrefInfo(cref) which returns the following format: filename,lineno,columno
681c797124Peter AronssonAdded annotation to external decl, needed for Library and Include annotation. Still need to do the implementation though.
d02a0193d1Adrian Pop2005-11-01 adrpo@ida - bug fixing of walker.g for parsing of Modelica 2.2 with position info
d93395e079Håkan Lundvall- Added test case for events - Updated winruntime after changes in runtime - Added missing return statement in printimpl.c
e5fa18c91cPeter AronssonImplemented constant evaluation of the following operators: vector cat transpose identity
a2c788fb9aAdrian 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
9becb6527bAdrian Pop2005-10-31 adrpo@ida - added line/column info to CLASS and ELEMENT construction
7a6afdfe7fx02lucpoMerged R1903 BRANCH into trunk
a943e76d65Peter AronssonImplemented vectorized calls of functions. Removed temporary hack for der operator. Testcases: Vectorizable1.mo - Vectorizable5.mo.
ce1cb2c32fPeter AronssonFixed bug #2. Can not handle arrays of strings yet. Testexample mosfiles/strings.mos
422a4c1c7bPeter AronssonFixed bug #32
bb297a2357Peter AronssonFixed bug #9. Implemented cardinality.
7e7700c7f0x02lucposwitched back includes in c_runtime to make possible compilation gcc
62ff637a83Peter AronssonFixed bug #37, Testcase Array10.mo. Fixed bug #38, Testcase Array11.mo.
6861e2f233x02lucposwitched some includes in c_runtime to make possible compilation with VC 6.0
beef0c5b16Peter AronssonFixed two unparsebugs, tuple assignments and elseif branches in algorithm sections.
8a91282546Peter AronssonFixed bug #36: merging of modifiers in redeclare. Testcases: Redeclare4.mo Redeclare5.mo.
e89f83feaaHåkan LundvallFixed: Correct type on returned array from readSimulationResult Fixed: Prefix on crefs inside when-conditions
3cdcc14f68Peter 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
ac2140fb3cPeter AronssonFixed bug #13, #34. Fixed so loadModel and loadFile returns parse error messages, if any, to error buffer.
bae01284aePeter AronssonFixed bug in getComponentAnnotations in Modelica.Blocks.Math.Gain, wrong order of protected and public components.
4854a24bafHåkan Lundvall* fixed font in winmosh * plot with scalar argument * small changes i welcome text and about box
62b192bd96Håkan LundvallLast fixes before release of 1.3
5ae2effa7aKaj NyströmMinor fix, including exit help
f07bbb07a6Kaj NyströmMajor updates with reorganization and examples
44f58e5401Kaj NyströmChanged license text
9f8bb8deeaKaj NyströmChanged license text
c5476bf438Håkan Lundvallupdated winruntime with changes made in runtime
4304a061a5Kaj NyströmFix for reading result sizes
060066a253Kaj NyströmImplemented readSimulationResultSize in the Interactive API
2d0a465abfKaj NyströmImplemented readSimulationResultSize in the Interactive API
14d6fbbee8Kaj NyströmImplemented readSimulationResultSize in the Interactive API
b773cc3349Håkan Lundvall* noEvent * sample * updates of installation project
971798d3dfPeter AronssonFixed bug in print_exp_cpp_str for EQUAL.
94a003556ex02lucpoimplemented a buildModel function that only compiles the model without simulating it. added a setClassNamesForSimulation to use when to clients of omc collaborates
8d467e3b94Peter AronssonAdded check/error msg of lowering IF_EQUATIONS. Added noEvent as macro in modelica.h
9c4cf7f960David BromanAdded a textfile README-WIN32.txt, which explains step-by-step how to install and compile the OMC under Windows.
35c34218a5Peter AronssonAdded der(abs(x)) = der(x)*sign(x) Added Exp.traverse_exp (generic expression traversal)
cc385a47edHåkan LundvallFixed bug in generated code for interactive function calls.
305bcb45f0Håkan LundvallMerged event handling (only in dassl) Use omc +d=noevents to disable it.
43f7ed2cd0Peter AronssonImplemented POW using libmath pow. Fixed bug when translating dae having variable x[] or y[] or xd[] or p[] defined in the model.
60751c9e4cPeter 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.
2c87c78919x02lucporemoved \bin from the path
9326663484x02lucpochanged the name of derivative from der(a.b.c) to a.b.der(c)
175032e93aPeter AronssonUpdated Upgraded parser and Absyn to Modelica v2.2
29bab25c28Peter AronssonFixed bugs with external functions in simulation code. Fixed underconstrained initial equations, etc.
8e347757d4Peter AronssonRemoved debug prints. Added initial_function call in solvers. Removed faulty impl. for functions returning one argument.
a7bfc7aa4aPeter 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.
70568d5266Peter 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.
3cf7d77f81Peter AronssonFixed bug in not resetting class file string after parsing. Changed "NoFile" to empty string when no class file present.
1ca372c2fcx02lucpocommented an addition to traverse classes
fb39849524Peter AronssonFixed bug with tuple assign.
4bac2c3e77Peter AronssonFixed bug with unary array minus and plus.
3715032ecaPeter AronssonMerged 1875:1878 on petarstructparam. Structural parameters are now dealt with by giving modifiers both value and equal binding.
5751866033x02lucposimcode contains now also the comments of the daelow.var
cfe8fbdf24Peter AronssonFixed nicer printing of Env
2a9a46ec10x02lucpoimplemented translateModel
846eb9d7a5Peter AronssonFixed bug in Interactive getComponents function. Fixed bug with self referencing variables. Fixed DAE output bug.
41420fcfbfPeter AronssonChanged getComponents in interactive interface to return more information.
572b7a19abPeter AronssonAdded documentation to -all- relations. Improved documentation on some rules. Removed dead code.
fd95e791fdx02lucpoadded trim to System.rml
1ff50f6e1ax02lucpochanged dae.dump_type_str and exported Interactive.evaluate2 as public
3d6f0600a7Peter AronssonFixed bug in make_sum and make_product.
9a89b81468Peter AronssonFixed bug in differentiate. Fixed bug in simplify of IFEXP.
0ed581c7cdx02lucpoimproved is_non_state(VarKind)
ca6a1f5cf1Peter Aronssonmade var_equal public.
b9f678f83cPeter AronssonFixed bugs in simplify.
3e067b3acex02lucpoimplemented get_var_using_name for getting a DAELow by its old name "a.b.c" and not by indexed form
9d73825926Peter AronssonAdded set_varkind, fixed bug in derive.rml
54f85cc17ax02lucpoimproved the building procedure and added some useful relations
cd7cc3bec2Peter AronssonFixed more bugs in simplify.
30c2118514Peter AronssonFixed several bugs in simplify + minor enhancements to DAELow
f7343d98e7x02lucpoimproved the simulation command to output to output.log
9ce2383638x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1849 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
a2f51e13cex02lucpoimproved the makefile.vc with clean and rebuild
13312e6bfdx02lucpoadded build_within to global space
5e92101c10x02lucporemoved a bug in remove_first_and_last_char
0501b7c794Peter AronssonFixed structural parameters for if-equations.
8f431bcc69Peter AronssonFixed several bugs in import, lookup, etc.
7ff2e5e4d6x02lucpoimproved some error-msg
9398cc07d2x02lucpoadded a function named write_file_or_error_msg
01c88855faPeter AronssonFixed import bug for constants. Fixed intial if equations.
baf381ddd7Levon SaldamliAdded matlab scripts for automatic femlab problem generation
6589afe73bPeter AronssonFixed bug when recursive use of component size as in Real x[:](min = fill(1.0,size(x,1))={1.0}; Added two testcases.
55de99a126Levon SaldamliAdded some parameters for PDE and for heat transfer. See MyGenericBoundaryDiffusionTest4
66138179efPeter AronssonFixed bug in elaboration of min and max. Implemented imports of constants/variables from packages. Fixed some error printing.
1b2f0271e0x02lucpoadded libf2c to compilation
0076e302acx02lucpoAdded libf2c for simple access from c to fortran solvers
68ada34a50Peter AronssonAdded special case for code generation with no parameters.
1a5a8fe32fPeter AronssonFixed bug in start_function
82f7613f41Peter AronssonFixed bug with input variables to models. Fixed segfault when writing open file in windows.
d85f508be4Levon 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.
dd8eac4a55x02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1827 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
4b4dc1beb3x02lucpoadded a function in the code-generation
2aa80aa787x02lucpomade is_non_state to return a bool
0a2fbb8f56Peter AronssonFixed bug in model inputs. They can not be removed in remove_simple_equations.
cb6040aacfx02lucpoadded a output function to generated code
871cd6c0d2Peter 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.
089d6f7f9dx02lucpogit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1820 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
50a9bf3795Peter AronssonAdded solution to nonlinear systems in explicit ode. Added testcases.
73ee857899x02lucpoadded -DCYGWIN to cflags
18e524564bx02lucpoimplemented in System.rml relation platform which returns either the string "CYGWIN", "WIN32" or "" depending on the platform.
15b5e1114ex02lucpoadded a relation for printing an exp option to string
65614e8d4ex02lucpoby including read_write.h after windows.h removed some kompiler errors.
a8360a2435Peter Aronssonforgot to add the file..
82b20200dfPeter AronssonLinear subsystem of equations now works. Also added explicit euler solver method, accessed using -m option to executable.
6eae7f06cbx02lucpoadded start_function to the sim-code generated that contain the equation for start-exp
393d481747x02lucpoadded start_function to the sim-code generated that contain the equation for start-exp
a741eb4e49Peter AronssonFixed bug in derive.rml. Worked on solving linear equations in SimCoden.rml.
3a58660b60Levon SaldamliUpdated some scripts and added Composite6. Added a test model (...3) for testing time dependent dirichlet bc. Added Readme.txt with installation instructions.
de3df4ce7dAdrian 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.
72311942fdx02lucpoimproved 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
a4d3b3725cx02lucpoadded a check to variables of remove_simple_equations: if a variable to be removed is output then the equation is not removed
a103f3fcf5x02lucpomade some relations public
464c131bc8Levon SaldamliChanged modeq to omc everyhwere, updated source. Renamed build directories for modeq to omc. Updated VC7 projects and solution as well.
ece3a3ab35Peter 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.
a48b0b3e08Peter AronssonFixed bug in DAELow.lower_varkind, etc.
311e765869Peter AronssonFixed bugs in Codegen for nonlinear systems.
0573579670Peter AronssonAdded StructualParam1.mo, removed print from Inst.
36f39ddf87Peter AronssonFixed bug in finding structural parameters. Started codegen of explicit ode in SimCodegen.rml
e95e464fb9Peter AronssonFixed bug in structural parameters. Added testcase StructuralParameter1.mo
eaf260d047Håkan LundvallSome steps towards finding zero crossings
972d98c5cePeter AronssonFixed bugs in setComponentModifierValue and getExtendsModifierNames.
6fcd5b7ca1Håkan LundvallMade DAELow and SimCodegen handle variables marked discrete
45e95660e5Håkan LundvallAdded when clauses to DAELow.DAELow
405579d66fHåkan LundvallA small step towards hybrid simulations
b9c80e6d35Peter AronssonFixed bug in make_fully_qualified.
4321eddf6aPeter AronssonFixed bugs in get/set XXX ModifierValue. Implemented get/setSourceFile.
1039852547Levon Saldamlimodeq directory path changed to Compiler
78e7974475Levon SaldamliMoved directory modeq to Compiler. Updated references to the modeq directory so that they refer to Compiler/ instead
db5de8c849Peter AronssonFixed bug in setExtendsModifierValue and setComponentModifierValue
f099373507Peter AronssonAdded some rules to simplify.
42a053c960x02lucporemoved decrypt and encrypt
392e3415d9x02lucpounparse_class_list moved to global
aeaf5deec1x02lucpoadded add_to_public to global functions
4cded24f60x02lucpoadded remove_first_and_last_char(string) => string
c68f68bff9x02lucpoadded remove_first_and_last_char(string) => string
acf8f261d9x02lucpoadded remove_first_and_last_char(string) => string
a2cbc2cccdPeter AronssonFixed so that Code(()) clears modifiers in setXXXModifierValue.
01b3869957Peter AronssonFixed bug in Inst.make_fully_qualified
da673eda57Peter Aronssonsmall changes to Exp, added nominal getter in DAELow
dc49e2a831Kaj NyströmRemoved dead code
79ee82e454Håkan LundvallFixed with statements in Absyn.rml
4f2beb3974Peter AronssonChanged extracting and changing modifiers in Interactive
3f56c2829ax02lucporemoved an wrongfull check for file-existance
ed6867872bPeter AronssonRecursive functions no longer gives stack dump when entered interactively.
e19cd67c70x02lucpochanged an include from ../ast/yacclib.h to ../absyn_builder/yacclib.h
6c995002f3Kaj NyströmRemoved unused include
ee5f648206Levon SaldamliRemoved deleted directories from configure.in and regenerated configure
54e149b047Kaj NyströmRemoved stupid example
920d798804Kaj Nyströmkilled by death
eb4f975cc5Kaj NyströmKilled by death
b94ed79c92Kaj Nyströmkilled by death
2fad17eedcKaj Nyströmkilled by death
e9140748e2Kaj NyströmKilled by death
a09e815982Kaj NyströmKilled by death
f36510a112Kaj NyströmPIGS
722bf8b4a6Kaj Nyströmkilled by death
a4bc0d274dKaj Nyströmkilled by death
18bf102e70Kaj NyströmWay to out of date to be useful
e2de91aa4cPeter AronssonSome stuff in Codegen
a6d507e93cPeter AronssonFixed stuff for modpar
7ceb05f23fHåkan LundvallChanged names on rml-files
dc1ea922e8Peter AronssonFixed the stuff removed in luc's merge.... :(
fb2422cd42Peter AronssonChanged get_modification_names to new design of getting modifiers.
7ad74d9852Peter Aronssonremoved comment that messed up indentation...
602f823a46Peter AronssonAdded string separator relation in util. Added rule for printing x^2 as x*x
9351968541x02lucpomerged HEAD with 1723 from branches/x02lucpo. Fixed comments on flat modelica and loadFile + loadFileInteractive
0f226d95a0Håkan LundvallUpdated som version numbers and the setup project
6b7a01e643x02lucpobranches/x02lucpo and trunk are merged and tested
c25ee67c2cHåkan LundvallFixed bug in VC7 solution
debf1217bdHå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.
f6dd7235e3Peter AronssonUpdated documentation.
076a035a1dPeter AronssonRemoved tornado specific code from trunk. Now only exist on branches/mathcore_tornado
6742470397Peter Aronssonmade a copy
6ec3e018faPeter Aronssonmade a copy
3d7d1c9efaPeter Aronssonmade a copy
2694320779Peter Aronssonmade a copy
87f9f7e8bePeter Aronssonmade a copy
76ef498fadPeter Aronssonmade a copy
483f4feb42Peter Aronssonmade a copy
46b9ffdc67Peter Aronssonmade a copy
e1f5650456Peter Aronssonmade a copy
8daa89aa3bPeter Aronssonmade a copy
6d9159c4cbPeter Aronssonmade a copy
43578155a7Peter Aronssongit-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1692 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
64d2c3460cx02lucpoafter merging openmodelica/x02lucpo with trunk. Improved simplify and differentiate.
f097a83d60Peter Aronssondefined hybrd
3c626f0e76Peter Aronssonallmost finished with nonlinear systems in modpar
6f9a62abc8Peter AronssonAdded code for solving nonlinear systems.
a49075ddc7Peter AronssonAdded calculate_jacobian
be3efd3074x02lucpomaking derive work
3a28203031Peter Aronssonfixed bug in getComponentModifierNames
d76e26383dPeter AronssonPartly impl. nonlin eqns. in modpar
49b98e8520Peter AronssonFixed so getExtendsModifierXX uses FQ names.
aac3bdd5a3Peter AronssonAdded XXExtendsModifiers
d35e13752ePeter Aronssonunparse_mod...
ecc97790d7Peter Aronssonadded setComponentModifier
daf8c05343Håkan Lundvall*** empty log message ***
34796d0a82Levon SaldamliSmall fixes
da346cfb35Håkan Lundvall*** empty log message ***
9211123f49Levon SaldamliFixed Makefile in testsuite/mofiles and moved failing tests to a separate target
2c91bbaba5Levon SaldamliFunction call fixes. Tuples support added. Testsuite extension for c compiler flag support. External function tests ExternalFunction1.mo ExternalFunction2.mo ExternalFunction3.mo
d507d2d490Levon SaldamliSome function call tests added to testsuite
adaf3cb805Peter Aronssonadded
1901bb5f37Peter Aronssoncompile scripts now outputs to /dev/null
d2cc462f0ePeter AronssonRemoved extra newline in record output.
23d8e21ffaPeter AronssonAdded solving of linear systems in residual form.
5d0e1e3696Peter Aronssonimpl. getComponentModfifierNames
ef9d65e07cPeter AronssonFixed bug with constant
d9913857b2Peter AronssonAdded api for parameters
4e4b726fcdHåkan LundvallSimulation return now 1 if simulation is interupted before stopTime is reached.
11092774c6Håkan LundvallParanthesis around (a)?(b):(c) in code generation.
be3546f6cbHåkan LundvallQuich hack for allowing boolean parameters in the indata file for simulations
76edad741fHåkan LundvallFixed so that modeq returns status code != 0 when execution failes
4228a71fc6Peter AronssonRemoved print
b3f10073c5Håkan LundvallSplitted generation of sig files into seperate makefile
c4bc62ac18Peter AronssonFixed bug in elab_cref, equalbindings should not be constant.
c5f5f6e26cx02lucporemoved () from variables without start, unit and so on
02da6b6555x02lucpo*** empty log message ***
5290648cedPeter Aronssonadded include of parent directory, used by tornadoext.cpp
4205fb3da0Levon SaldamliFixed type error for ceval_if_constant generated values
cbb663d276x02lucpocorrected a submodelindex error
c3622cb9fex02lucporemoved a compile error
099d20021cx02lucpochanged ^ to accept reals
10752b69a6x02lucpoadded some print thingies
aa7ef0374bx02lucpoadded dae-attributes with extraction from variables
ea9a552c36x02lucpoadded relation get_option_with_concat_str: ('a option, 'a => string,string) => string
ae3b16625bx02lucpoadded attributes and dump- relations for them
36ad088921x02lucpomoved is_string_empty to util and added also some more function to Util.rml
53a198f5b8Levon SaldamliBugfixes. Cleaned up ceval_builtin.
a907482684Levon SaldamliFixed printing of #|Execution failed, which is needed for rtest
513888fbc0Håkan Lundvall*** empty log message ***
85c1ea9985Peter Aronsson fixed parse error message
dce4b06ed3Håkan LundvallFixed so that VC7 compiles without cygwin
5b2b6e878dx02lucpo*** empty log message ***
a8468dada4Håkan Lundvallremoved ^M from licence texts
2a4e80b1a3Håkan LundvallFixed doPlot.bat can run without PTII being set
0e6e3b66d8Håkan LundvallFixed so that instantiateModel of non existent model returns an error
829837012cx02lucporemoved a error print when models with start-attr
3b5e385b62Peter Aronssonfixed error messages when plotting.
e873d7909fLevon SaldamliCompile time function evaluation
5813ea9dc4Peter AronssonFixed plotting bugs
ce344f871aPeter Aronssonremoved define of time
2093c276b9Peter AronssonFixed icon annotaiton bug again...
a5a17717e9x02lucpocorrected error with enumation types
b9c2cc1e4eLevon SaldamliTODO-list. impl flag fixes and some comments.
20134ea6fbPeter AronssonFixed model editor interface bug, still need to clean up.
183ead9892x02lucpoimproved extracting of attributes (unit, start...)
5e4b35baa5x02lucpoadded debug information
03acc920b0Peter AronssonAdded by PA.
3a21bc26dax02lucporemoved a bug from extracting of var_attributes
8fe9f61411x02lucpoadded unit and type info to dae and daelow tested package support in tornado
42f267d6dbx02lucpotested package support
1f4a394046Levon SaldamliImpl flag bugfixes. Fixed elab_range_type. Fixed matching problem for Icon in get_annotation_string
a9b37b2058Peter AronssonPartly implemented constant evaluation of record constructors. Works for non-hierachical records.
ef6ffda894Peter Aronsson*** empty log message ***
c26f3b5b45x02lucpoadded package support
8cbee34b63x02lucpodivided the tornado-code-gen to two files. One that outputs the C++ code and one that extracts the data from dae and absyn.
300294d3cfx02lucpodivided the tornado-code-gen to two files. One that outputs the C++ code and one that extracts the data from dae and absyn.
8a982c53dcPeter AronssonFixed so math functions works.
6403b88ae4x02lucpoadded som comments and removed some dead code
f5dde261deHåkan Lundvall*** empty log message ***
f52a390507Håkan LundvallChanged Licence text
ae68aa574cHåkan Lundvall*** empty log message ***
bc671c086aLevon Saldamlierror message
49557435deLevon SaldamliSimulation working. Example: test_codegen/simtest.mo
8c206dbc63Levon SaldamliSimulation test
c7eda5971fLevon SaldamliMore tests
502977aaa7Levon SaldamliBuiltin function calls like sin, sqrt etc called correctly
2afe4a3c98Levon SaldamliCode generation for function calls in simulations
4ab0927c0ePeter AronssonFixed bug in POW
b95b3dcc4bPeter AronssonRemoved some comments by PR.
c795c169b9Peter Aronsson*** empty log message ***
6f0d78f4c7Peter Aronssonpartly implemented rename_class
a79eaf57f9Levon SaldamliFunction generation somewhat working
c5152790eeHåkan Lundvallfixed so that simulation works with mingw
d29a8c5a05Håkan Lundvallfixed so that simulation works with mingw
a76205392eHåkan LundvallUpdated to the new simulation scheme
02d1ad540fHåkan LundvallChanged name of mingw runtime lib
9f119446c0Peter AronssonFixed bug in calculation of alg. vars.
ac6e7469ecPeter AronssonFixed bug in simulate in interactive mode
1dbd3f0f31Kaj NyströmUpdated documentation only
6095deb61fx02lucpoAdded 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!)
6c90aad06dPeter Aronssonfixed bug in varname generation
30fa7792cdPeter AronssonChanged error msg to error_buf. Plotting now working.
65ab5a237cPeter AronssonFixed bugs, added time to result, etc.
35a63f022dx02lucpoadded a check for tornado generation
22fbc707fbPeter AronssonSimple algorithms now works to simulate.
d5a2b019ebPeter Aronssonfixed bug in initial step.
2e6708e823x05simelAdded ptolemy plot output.
21e1e35717Levon SaldamliMinor fix
4ec8baa4a1Levon SaldamliInitial function code generation support for simulation code
d8335c98d3x02lucpomade all the equation of the form cref = constant to be outputed in ComputeInitial
d55959ee03Peter AronssonWorking simcodegen for DASSL
4cf99261fePeter AronssonAdded simulation runtime for DASSL
7c4338705bx02lucpoadded support for 1-dim arrays in code-gen
f11cf11aa3x02lucpoadded a exists_var: (Exp.ComponentRef, Variables) => bool
ebc3aa878cx02lucpomade print_component global
32be72c238Levon SaldamliThere is already one in modeq/TODO
3b77465899Levon SaldamliFunction generation and calling for constant functions during ceval
950857ba4bPeter Aronssonfixed bug in generate_init_data
0655a9ba5ex02lucporemoved a print
5099fa7d9cPeter AronssonTried to fix bug in remove_simple_equations
d2c094ce32x02lucpocorrected a bug in index for different var-types
eef408e557x02lucpocorrected a bug in index for different var-types
a7edf52c60x02lucpocorrected a bug in index for different var-types
62421e0ba8Levon SaldamliBugfixes. Top-level make modified for debug and release. Changed default to release.
f89d832f2dLevon Saldamlitemporary vctarget fix
8a0eb33aa0Levon SaldamliBugfix
b8bbae650aLevon Saldamlibugfixes
462ab13d53Levon Saldamlibugfix
198b53d138x02lucpoadded start-value on initial-vars
12ec39c820Levon SaldamliBuildfiles bugfixes
9e82f3dae1x02lucpoadded is_const and compute_initial_from_start_values
4a1f26ee7fLevon Saldamlidepend file generated by make depend
5ab75a2f42Peter AronssonFixed bug in remove_simple_equations.
ba46a49d9fLevon SaldamliAdded build directories modeq_debug och modeq_release under modeq. Default build target is debug. See all: in modeq/Makefile.in.
c95dc5acefPeter AronssonFixed bug in elaboration of POW
c5ea1c70b0x02lucpoadded pow
50db64d1b1Peter AronssonAdded documentation
751a8b1592Peter AronssonFixed asub simplification
8253cda007x02lucpoadded simulation_5fcg
a4fe01db98x02lucpoadded simulation_5fcg
73cd2084d8x02lucpoadded simulation_5fcg
e4295ee1e6x02lucpocorrected NoOutputVarValues error
848fcce5d3Peter AronssonAdded better documentation
0bdaf46519Kaj NyströmDocumented entire file
35314504cdKaj Nyströmremoved unused file
fdcab8e327Kaj NyströmAdded last parts of documentation
b6d8a03172x02lucpoadded get-functions to generate GetNoParams()
3381133ebaPeter AronssonAdded generation of initial values in simcodegen
6670b37e06x02lucpochanged from _t_ to time
e5dc19de2ex02lucpoadded startvalues to parameters
e903d40ab5Peter AronssonFixed generate_compute_output
53b890850bPeter AronssonReimplemented breaking of blocks into dynamic and accepted section, by reachability analysis on strong components graph
8142ea35c8x02lucpoCorrected a linkage bug
65de7fc19eLevon Saldamlichanged tail -1 to head -1. First found should be used for some stuff
0595567220Adrian 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.
14e1d14501leistYacc parser grammar for Modelica+RML. First hopefully stable sketch. (Still a few FIXME:s left, though.)
c558e6f542leistUnified header file for the Modelica+RML yacc parser and its lexer.
ab27727e2bleistLexer for the Modelica+RML yacc parser.
9354f08efbAdrian PopStandard yacclib.h file for RML. 2005-02-04
705c75e8c5Adrian PopStandard yacclib.c file for RML. 2005-02-04
870c4a4608Adrian PopRML datatypes for abstract syntax tree, and related code. 2005-02-04
b5b6f3e900Adrian PopRML test program. 2005-02-04
65990896d9Adrian PopMain file for dumping/refactoring testing. 2005-02-04
1292c1d1b3Adrian PopLeif's RML dumper with changes by Adrian Pop. 2005-02-04
3aea687dbfAdrian PopRML refactoring. 2005-02-04
b45d5471b1Adrian PopGlue to call parser (and thus scanner) from RML 2005-02-04
7e158f6d5bAdrian PopScanparse module, for debugging. 2005-02-04
7dba72e888Adrian Pop2005-02-04 Adrian Pop, adrpo@ida.liu.se fixed so it compiles with new the new changes in modelica_parser
ebd6f26c4aAdrian 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!
be36ddf18cx02lucpo*** empty log message ***
f7948a66a0Håkan LundvallMade inst_element fail if lookup of the class failes
b4d544d01aHåkan LundvallRemoved print out of class origin in flat modelica
3184ebae98x02lucporedone generate_simple_equations_links2
89e90ba4e4x02lucporedone generate_links2
14819a004fHåkan LundvallImport bug fixed
85282dc207x02lucpocorrected some errors in code-gen for tornado
5019b4631dPeter AronssonFixed bug in vararray
6b618e71fdPeter AronssonMade variable array expandable as for equations
b734529b53Peter AronssonFixed bug with linking
4fb6b8fd0cx02lucpoimproved the design
22249b023dPeter Aronssonfixed bug with tornado blt
85094e953ax02lucporemoved prints
d2f66b7e4dPeter Aronssonintial equations added to daelow, fixed bug in tornado.
5fdb1f1b32Peter AronssonAdded rule for arrays of components
78ab97d0b8Peter AronssonAdded transformation of . to _ in identifiers
c702460790Peter Aronsson*** empty log message ***
09dcaa79dbx02lucporemoved prints
2051f0fa9aPeter AronssonFixed bugs when emtpy equation list
4a0f13940bHåkan LundvallLade till s� att flat_modelica_parser blir med i vctarget
a0210a9a45x02lucpocorrected is_no_param to is_param
b102d7a895x02lucpoadded added some checks for linkValue when removing simple equations
48adc6459fPeter AronssonFixed bug in remove_simple_equations and bug in reachable_nodes
bdac17de15Peter AronssonOptimized Equations in DAELOW. Fixed some stuff in Tornado. Added dymTableInit as builtinFunction.
a0270366bdx02lucpoadded added some checks for linkValue when removing simple equations
eab85914e3x02lucpoadded generation for TornadoDLL.cpp
ced107ee96x02lucpocorrected some minor bugs for Tornado
c609e9ffa7Peter AronssonFixed sed bug originating from several antlr paths
dc8a0ad2c0x02lucpoadded defines for subModels and link for star-variables.
dd7276a0e7Peter AronssonGenerated links for simple equations
451311d115Peter Aronssonfixed bug.
2bf79dfe4fx02lucpoadded hierarchical code generation
55875d1d4bPeter AronssonChanged implementation of DAELow.VARIABLES from bintree to hashtable
83e1bf3dfbKaj NyströmCleaned up debug printing
dea1207b14Kaj NyströmFixed nasty bug in ident recognition
51557f5602Kaj NyströmFixed ordering bug
dbc8c7bbf0Levon SaldamliRemoved boundary. Shouldn't be in main trunk. PDE stuff
ac32383fb0Kaj NyströmUpdated to reasoably working item
d5c8e8c74eKaj NyströmUpdated to reasoably working item
df51b07b43Peter Aronssonmoved code from tornado to simcodegen, new module for simulation code
fcbfa44781Peter AronssonAdded algorithms to DAELow
ae0f75187bKaj Nyströmflat modelica added
2cb8203b2aKaj Nyströmautomake ok
4b0793b4d4Kaj Nyströmnew flat modelica parser. Wohoo.
af1e7fda51Kaj NyströmRestructuring flat modelica parser
967a3b9b0ax02lucpoadded some relations as public
3bdc5142acx02lucpoadded more functionality to tornado. Generation of hierarhical models
6c603cd2c4Adrian Pop*** empty log message ***
1e1e684838x02lucpocorrected some bugs
f6134ccd82Håkan LundvallUpdated rml to 2.2.1 and made rml runtime part of the build
70b4032758Peter Aronssonupdated.
9152676ebdPeter AronssonSwitched to set implementation of vars/eqns in matching, etc.
160d979928Peter Aronssonupdated dependencies
8e78911427Håkan LundvallAdded instantiation of when equatons and if equations with non-constant condition.
7827b3c294x02lucpoadded some new relations
da26672402x02lucpoadded a comment... yay...
0bbb7fe11cHåkan LundvallAdded rule for when-equations.
ceb95ab98cHåkan LundvallAdded representation for if and when equations.
12c7b8ad5ePeter AronssonFixed bug in fix_direction
9d1e0b853cx02lucpoadded a check for how many generated var and made some changes to to model genration of variables
07634fdb80x02lucpoadded a check for how many generated var and made some changes to to model genration of variables
d9f9807408x02lucpoadded a check for how many generated input var and made some changes to to model genration of variables
f8ec58e4f1x02lucpoadded a check for how many generated input var and made some changes to to model genration of variables
e5f4e96883x02lucpoadded a check for how many generated input var
d352a24af4x02lucpoadded get_input_var_number and get_output_var_number
4badb0abdcx02lucpoadded tornadoext and corrected some bugs
6790ffe14dx02lucporml-file for the cpp-connection
e7ed95d833Peter AronssonFixed bug in generate_parameters
d6c7366052Peter AronssonAdded generation of parameters. Removed generation of simple equations.
d449c538a1Peter AronssonConstant evaluation of functions is now done if all arguments are constant
102b24b841Peter AronssonFixed elab_exp so that numerical constant values are calculated.
3750f1bf84Peter AronssonFixed bug in incidence matrix. It now contains state variables as well, but they have negative index.
9ec82391bcPeter AronssonFixed varDirection generation in generate_var_defines
856a02bf8fx02lucpopartial commit for Petar
47ff30c220x02lucpoadded some missing function and a check needed for tornado code generation
5c0b755c5dPeter AronssonAdded vartransform, for transforming variables in expressions
f558ba2c5bPeter AronssonImproved variable impl. in daelow. More efficient matching alg.
bd7c0d1463x02lucpoX-mas delivery
58f94bb871x02lucpoadded string_split_at_char
9cdece44c1x02lucpoadded sorting of equations and a check for switching the name of dummy der in case of tornado from "der_" to "_D_
1c8386e106Håkan LundvallFixed small bug regarding locks.
2d0d7073bcHåkan LundvallUpdated according to changes in runtime/systemimpl.c
00bd9112fePeter AronssonFixed DAELow.VAR bug
6cf8648204Peter AronssonFixed DAELow.VAR bug
2f17428de6x02lucpoadded a string_replace_char which replace a char with another in the string. Check comments for details.
44008f657bPeter AronssonAdded class attribute to DAE variable to determine origin.
4636b763dePeter AronssonOptimized impl. Added tree_delete, etc.
ca68eba5e8Peter AronssonChanged dae variable implementation from list to binary tree
892c6f77c4Peter AronssonAdded unparsing of 'encapsulated'.
85d84f65f2Peter AronssonAdded more doc.
7d8ee2d5c2Peter AronssonAdded better doc.
b8e3b08b21Adrian Pop2004-11-27 Adrian Pop, adrpo@ida.liu.se changed server_loop to make it completly deterministic
9e3f131e3dx02lucpoupdated to work with tornado
91fefcb1f3x02lucpothe equation generation is working for influenza.mo
ed12653f6ax02lucpoadded the rule in simpliry for (0.0 / x ) =>0.0 and (x/0.0)=>fail
42a3e9e89bx02lucporemoved some swearing
866f72a4c4Peter AronssonFixed bug in index reduction, did not increase no of variables when differentiated equation
902f10fc7dx02lucpoPetAr to check for optimization error
2a0b9f2f49Peter Aronssonoptimized index reduction so that incidence matrix is not rebuilt for each reduction.
d5ce6c40cax02lucpoadded som debug printouts
8a362bfc78x02lucporedone the If...then...else to ...?...:... (c++)
4974333238x02lucpoimplemented a relation that ouputs c++ code from an Exp.Exp
977e223af2x02lucpoimplemented a relation that ouputs c++ code from an Exp.Exp
2104f1803fPeter AronssonOptimized some code. Commented, etc.
c9ec81a414x02lucpoadded a relation that replace all the der(...) with _D_... in all the equations in DAE
0206e67566x02lucpoThe module tornado generate now ouput and state equations in c++ format
7a9e9f41f8x02lucporesolved a bug in generation of equations
ebe253f5b3x02lucpoto 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
e1b317d25aPeter Aronssonadded doc
263e3f9e5bKaj Nyströmadded is primitive to interface
22c7430d11Peter AronssonMade daelow faster, especially replace_exp
ab9d66f071Kaj Nyströmalmost fixed working submodel declarations
eec7172dd0Kaj Nyströmalmost fixed working submodel declarations
eda432929aPeter Aronssonadded doc to about first half of the relations
7c0d84e5bdKaj NyströmMainly Hemmis-related MathCore stuff
877953dd8bAdrian PopAdrian Pop, adrpo@ida.liu.se 2004-11-05 Changed: systemimpl.c rml_prim_once(List__reverse) with TAILCALLQ(List__reverse).
cf947a74f0Adrian PopAdrian Pop, adrpo@ida.liu.se 2004-11-05 Makefile.in Added commented lines for creating debugging versions of modeq
fe1fc809baAdrian PopAdrian Pop, adrpo@ida.liu.se 2004-11-05 configure configure.in
38cc63c259x02lucpoCompleted the inst_start_binding for the case Integer T0[2](final start={5,6})={9,10};
789cdd337eKaj Nyströmfixed hemis soving eqns stuff
129aa76be6Kaj NyströmSome updates on tornado, will be continued by lucian
fb21137554Adrian PopAdrian Pop, adrpo@ida.liu.se 2004-10-29
02c8906f33Adrian 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;
48015ab546Kaj NyströmSome updates on tornado, will be continued by lucian
7d8f61a53cPeter AronssonFixed bug, added doc.
4473c152baPeter AronssonAdded doc
d1cd62acb6Peter AronssonAdded Tornado code generator. MathCore project
9cd2fb9800Håkan LundvallAdded checks for MOSHHOME and MODELICAPATH
0afb478e95Kaj Nyströmmoved deprecated flat modelica parser here
b3c8421db2Håkan LundvallRemoved extra print "1" in translate_file
049a1fb96dHåkan Lundvallfclass instead of model when generating flat modelica
7775cda98dPeter Aronssonadded doc
a68730a274Peter AronssonFixed bug in priority order of incomming task graph edges
84dcd84ddfx02lucporemoved PIGS
3e567d5be6x02lucpoimplemented DIV_ARRAY_SCALAR
dadccc425ex02lucpocorrected bug for MUL_ARRAY_SCALAR
1a7491d324x02lucpocorrected the elab_builtin_diagonal to return an array of array. Added comments
60c70d2c37x02lucpocorrected a element place error
7163a4f439x02lucpocorrected a element place error
e0e9d565a1x02lucpoimproved diagonal function
dcf6b67371x02lucpoimplemented diagonal in staticexp and ceval
034238888bKaj NyströmFixed constant evaluation of abs operator
49a3b15e69Peter AronssonFixed so parameters are split in DAE x becomes {x[1],x[2],...} for an parameter array.
d4c64ad8f3Adrian Pop2004-10-05 adrpo moved initialization of "ast" to the begining of Parse.* functions
6e46caf739leistSome extra tokens to support RML syntax.
382b3e852fleistChanged a type to work with a modern ANTLR.
b79fe9ec21Kaj NyströmRemove cache.rml deps
834e2ddf4ax02lucpomade the relation merge work better with partial classes and the same modifiers
48e22f7220Peter Aronssonchanged licence file
15226cf5fePeter AronssonAdded doc.
24aba2795eLevon SaldamliInternal documentation partial
c75bf63b7fHåkan LundvallDokumenterings race
2bd995ca44Levon SaldamliInternal documentation partial
99f67847e9Levon SaldamliInternal documentation partial
fb96f1e638Levon SaldamliInternal documentation
c556e18f95Håkan LundvallFixed timing command so that the symbol table gets updated.
5c6cde952cPeter AronssonRemoved cacheimpl
a42b6bc1f2Peter AronssonAdded documentation to the beginning of file
369e088bfdLevon SaldamliOverview documentation
69fd87ab96Levon SaldamliOverview documentation
d2bb04fcd2Håkan LundvallDokumenterings race
0553529b08Håkan LundvallChanged test-f and test -d to stat
15657c9d72Levon SaldamliOverview documentation
fdfec44abcHåkan LundvallDokumenterings race
f220974fe3Levon SaldamliOverview documentation
36a9acccc8Peter AronssonAdded documentation to the beginning of file
1a291e1245Kaj NyströmDocumentation race again! Wohoo!
3f1c2240ffPeter AronssonAdded documentation to the beginning of file
f806123244Levon SaldamliOverview documentation
45aa9d8c33Levon SaldamliOverview documentation
00d4ab766bLevon Saldamlibugfix
774b91c9dbLevon Saldamlibugfix
e316abe751Peter AronssonDid stuff on codegen
9e4d226ecePeter Aronssonadded comments to beginning of file
46f6c2aac0Kaj NyströmDocumentation race again! Wohoo!
e78043caebLevon SaldamliOverview documentation
8714d33452Peter Aronssonadded comments to beginning of file
6c266eec27Levon SaldamliOverview documentation
a645dfd653Peter AronssonRemoved
dec538a492Peter AronssonAdded derivation of sin(x)
6090a7c26bPeter Aronssonadded comments to beginning of file
2b4f6fe322Peter AronssonAdded comments to beginning of file
22233fb2f8Kaj NyströmDocumentation race again! Wohoo!
a7985705d0Peter AronssonRemoved cache
9c4ae08720Peter AronssonAdded comments to beginning of file
8e6cfc9b59Kaj NyströmDocumentation race again! Wohoo!
94de2f0f3bKaj NyströmDocumentation race again! Wohoo!
a3f9cb75b7Peter Aronssonfixed compilation error.
4a5c675739Håkan LundvallRemoved: with "Algorithm.rml"
9383a868b1Kaj NyströmDocumentation race! Wohoo!
f4d35b34a0Peter Aronssonsome modpar bugs
6299810073Peter Aronsson*** empty log message ***
307db6b735Levon Saldamliform_bdr_on_bnd added. Unneeded arguments in poisson_rheolef.cc removed
59fa125bafLevon SaldamliWorking Poisson and Diffusion with Dirichlet boundary conditions
dbeb39d86aPeter AronssonAdded simple euler solver.
76317e335ePeter AronssonFixed bugs in codegen
32f0ec3ab6Levon SaldamliBugfix
cc24f494fcLevon Saldamli*** empty log message ***
3283def28cLevon SaldamliInitial
72b50be1f7Levon Saldamli*** empty log message ***
81a60817d8Levon SaldamliInitial
342e4d1e0fLevon Saldamli*** empty log message ***
d2c631a6beLevon SaldamliInitial
b60afa66e0Levon SaldamliInitial
7e787dad8ePeter AronssonFixed bugs with connect statements. Removed Simple equations before blt, etc.
203c6836baHåkan LundvallFixed bugg with plot
bc90cbb70fHåkan Lundvall*** empty log message ***
9965be6e35Håkan LundvallRemoved some debug printf
2bdf6c5b14Håkan LundvallCurrected bugg: generated fclass eventhough the modelica_outputflag was set in some cirumstances.
f7cab62cacHå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.
bcf1ddf562x02lucpoImplemented sqrt, div, mod, rem, ceil, floor, integer. Lucian Popescu
d71bbccce6Peter AronssonFixed bug in instantiation. Modifiers were not elabed in update_variable_in_env.
2a92c1cee8Kaj NyströmFixed error in comment line number recognition
924b1a2265Peter AronssonFixed connect in loops
407201308bKaj NyströmRemoved filename bug from dump
a8fbb705a6x02danhegetComponents() now returns declarations containing unresolvable types
0aa0541815x02danheImplemented deleteClass() for the interactive API
0f42a50f57x02danhe*** empty log message ***
75b2931cbfPeter Aronssonmerging outer loop now linear.
a880f9a2efPeter AronssonForgot paralleloptions..
b9f1e5170ePeter AronssonAdded modpar module. To enable, configure with --with-MODPAR and --with-BOOST=boostdir
96352d59a7Peter AronssonAdded modpar - automatic paralelization, configure with --with-MODPAR to enable
362cc725bbLevon 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)
e9185c9fa3Levon SaldamliReplaced differentiate_foo with differentiate_foo_time and added differentiate_foo which differentiates with respect to a given variable
4e4fe8033cLevon SaldamliReplaced differentiate_equation with differentiate_equation_time
513e8bf2aaLevon SaldamliInteractive test functions exp_contains and solve
f726d96234Levon SaldamliUpdated dependencies because new files added
f2fab7bdc8Peter AronssonImplemented BLT sorting using dummy derivative index reduction technique, accessed by giving the flag +d=blt and possibly bltdump.
ff3269734aLevon SaldamliMinor debug support
ccea0c7081Levon SaldamliFixed string_comment
777cd74baeLevon SaldamliBug fixes: was returning garbage when t==null
5ae6007008Levon SaldamliTurned off defaultErrorHandler
c9a3122319Levon SaldamliError handling
e25c74c04bLevon SaldamliMoved -lcrypto and -lssl to CORBALIB
87ab47e040Håkan Lundvallbugfix
6d5c654baeHå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.
4563d2c12cKaj NyströmAdded line and column info to ast
a6c4cc439aKaj NyströmAdded line and column info to ast
d532b6ff68Kaj NyströmAdded line and column info to AST
cfe1606f72Kaj NyströmAdded line and column info to AST
6a48dc1f22Håkan LundvallAdded quotes around filename in plot command to allow spaces in paths
a98b47a8f2Adrian Pop2004-05-14 a little txt file with the 2.1 Modelica grammar very useful for fast referencing
24d5c2abfdAdrian Pop2004-05-14
25dd20f107Adrian Popadrpo checking in version 2004-05-14
1a0e28532bLevon SaldamliAdded functions to dae and flatmodelica
b8171859c4Levon SaldamliSome Exp.REDUCTION stuff in ceval
7d94771b4bLevon SaldamliAdded more debug support (error message in parsestringexp)
504e1c2583Levon Saldamlihave run make depend
3ed386f5efLevon SaldamliFixed parser error in array constructor code in parser Added more debug support (error message in parsestringexp) Fixed some .cvsignore files
769acc7f4eLevon SaldamliAdded corba stuff to configure and made it an optional package
9c0dd4927fLevon SaldamliConstant checking of array constructor expressions containing iterators fixed.
2097c5872eLevon 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.
f8ba2de282Levon SaldamliBugfix
0662b52f24Levon SaldamliInitial work for reduction expressions, e.g. parameter Real a[5]=array(2.*i for i in 1:5);
8c67c34b7eLevon Saldamliconst struct dirent
4f7ce8601aLevon SaldamliAdded "none" virtual flag. Debug.debug_flag("none") returns true when no +d-flags given.
03ffd9d322Levon SaldamliMinor
749bc9a67aLevon SaldamliFor iterators (reduction expressions 3.4.3.1) and array constructors with iterators (3.4.4.1)
f7731dde7dLevon SaldamliPROP_TUPLE?
31eb247ee9Levon 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.
ba196ded6eLevon SaldamliRemoved forgotten debug printing.
77c5d1806bLevon SaldamliMerge mistake fix. FOR_ITER_EXP and FOR_ITER_FARG
3bbdefe2f8Levon SaldamliFOR_ITER_EXP and FOR_ITER_FARG
e6a5a13462Levon Saldamli28.
208a303405Levon SaldamliVirtual flag "none"
e6befc1080Levon SaldamliPoints 25-27
c25a7d4c7aLevon SaldamliFixed error in print_list_debug
81dc2bc8b5Levon SaldamliAdded fcallret
6f07f5eaacHåkan Lundvall*** empty log message ***
63bc9c351bLevon SaldamliMinor fixes
fca1d2aeb1Levon SaldamliFixed for antlr 2.7.2
b0acd94860x02danheUpdated testing script to handle parse error message tests. Added tests for for parse error messages.
c5c68ff23fx02danheImproved parsing errors.
767dfe6951x02danheImproved parsing error messages and propagated these to clients when using the interactive API.
4ed1b70754Håkan Lundvall*** empty log message ***
4615d2da27Håkan Lundvall*** empty log message ***
ecdb26adeeHåkan Lundvall*** empty log message ***
8a7f24c1ebAdrian Pop2004-02-26 Adrian Pop adrpo@ida.liu.se added cygwin and test directory
3e505495e5Adrian Pop2004-02-26 18:04 Adrian Pop adrpo@ida.liu.se added modelicaxml-v2.html
4063afb520Adrian Pop2004-02-26 18:02 Adrian Pop adrpo@ida.liu.se added ModelicaXML.snl and .vcproj
927cc64b09Adrian Pop2004-02-26 Adrian Pop adrpo@ida.liu.se Alpha Release of ModelicaXML
9467fb91b8Peter AronssonMade modeq multiuser friendly when having corba comm.
ef2dd246f8Peter 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.
3da2c679acPeter AronssonChanged impl of hashtable to binary tree in environment. The lookup is still buggy. Solution needs big redesign.
66ea58c016Peter AronssonAdded todo list
b6292ed17cPeter 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...
d18d417b50Peter AronssonFixed small things, script callable from prompt using modeq scriptname.mos.
ef8ef0def1Kaj NyströmFixed error in corba build order
c10d086f89Peter Aronssonreimplemented overload.
14b6d1e0e1Peter Aronssonreinserted overload operator, fixed external bug.
7216bd6e81Peter AronssonFixed bug with Real[3] x; in unparsing.
ad9442af15Peter AronssonAdded overload operator, again! and fixed external function bug.
40d05885daPeter AronssonFixed two bugs in unparsing.
87defdbefdPeter AronssonFixed some bugs incl. getComponentAnnotations
e08930f23bPeter Aronssonimplemented getComponentAnnotations
16c66f5ef2x02danheAdded functionality for updating and removing protected components in a model. /Daniel
8520572618Peter AronssonFixed bug in getIconAnnotation and getDiagramAnnotation
b85d32aa8ePeter AronssonFixed bug in getNthComponent, etc.
5338095279x02danhedelete_connection now handles classes not definied at top level correctly. /Daniel
10ab07b6edPeter AronssonFixed update_component so that modification and annotate can be given separately without destroying existing data
db9c4c8c86Peter AronssonAdded partial_inst_class_in to speed up lookup of classes.
b94e46bcb6Peter AronssonFixed some bugs
35dfad43d1Peter AronssonIncreased performance, fixed some bugs.
b2db3e7887Peter AronssonFixed bug in Bitmap
d363e6addcPeter Aronssonfixed bitmap + update bug
329723d36fPeter Aronssonimplemented isProtected
1433ffc27dPeter AronssonImproved performance, fixed bugs.
d867b983f9Kaj NyströmUpdated README to reflect recent changes in OpenModelica
d769d0468dKaj NyströmUpdated documentation, bugfixing, link to rml, new todo-list
67780758e1Peter AronssonAdded split definitions, e.g. allowing 'package A' as input.
7cc3168b0fx02danhe*** empty log message ***
34cc8bae20Peter AronssonSwitched from boa to poa impl.
2f3b1816f1Peter AronssonFixed some makefile issues.
81e2e199c9Peter AronssonAdded.
6a61bc5b7fPeter AronssonAdded corba implementation to modeq. Accessed with +d=interactiveCorba.
d220b8bb63Peter AronssonRemoved overload keyword, instead allowing multiple definitions of functions with same name in the same scope.
8d69922698Levon SaldamliDebug traces
79e94725c1Peter AronssonFixed bug in getNthComponentModification, not wrapping modifier in Code operator
9211d6893aPeter AronssonUpgraded parser to work with antlr-2.7.2, will probably not work with 2.7.1 anymore
15490e24e4Peter Aronssonadded getNthComponentModification, returning Code expression.
4a00a84313Peter AronssonAdded fsync to sendcall
6080683c63Peter AronssonFixed bug with duplicated class annotations when calling addClassAnnotation
f782de99cfPeter AronssonFixed bug in dynamic buffer
f1ec732c80Peter AronssonFixed bug with addClassAnnotation creating several annotations
c43b5e2cffPeter AronssonAdded locating protected annotations for icon and diagram
125e96fbbfPeter AronssonRemoved inst. in get_nth_component
3a7742c68bPeter AronssonaddComponent now takes Code modifier expression. ceval now evaluates Eval operator for most common cases.
b7edc1be43Levon SaldamliChanged default compiler to gcc (removed /usr/bin, not working on solaris)
927c308f20Levon SaldamliFixed scandir again
3973d33bdfLevon SaldamliUpdated
b1aa0de8a6Levon Saldamligethostbyname and libnsl check added
5f245849e5Levon Saldamlifixed scandir check on linux
3919247fbdPeter Aronssonfixed bug with faster icon annotation
a411c987dbPeter AronssonFixed bug in dynamic buffer
9fd8823e1bPeter Aronssonfixed bug with faster icon annotation
e628368767Peter Aronssonfixed a small bug in new dynamic buffer for socket impl. Also fixed faster icon annotation
a3b8b475c8Peter AronssonChanged lookup implementation. Now looks in inherited classes implicitly, throug an extra list of inherited classes in Env
40e33eca8eLevon SaldamliAdded c_runtime to modeq
791f24160dLevon SaldamliCodegen of Exp.SIZE fixed
c09b5d09e9Peter AronssonFixed bug with elab_arraydecl and size(x,1)
ca9a4f0002Peter 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
6a56529cebPeter 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.
265daab437Peter AronssonFixed lookup bug for functions. Fixed doc.
45fcc875c2Levon SaldamliCorrected some of ALG_TUPLE_ASSIGN. Still not working
beeb19f149Peter AronssonFixed bug with 1.e-15 and protected after equations.\n
9431b14981Peter AronssonFixed plotting bugs, etc.
3fe3d7c26bLevon SaldamliCode generation seems working
bad05be902Levon Saldamlistring fixed stdio.h added (yacclib.h needs FILE)
ac639c6d01Peter AronssonFixed plotting function, using ptolemy. Export and import of simulation data according to ptolemy standard..
3291c0e102Levon SaldamliWorking code generation.
6bcb4a9211Peter AronssonChanged names of functions according to Peter F.s book.
e9ebf5c006Peter AronssonFixed so unconnected flow variables are set to zero, and fixed so parameters are not substituted for their value in equations.
d487847ff0Peter AronssonFixed bugs for osmme and for external functions.
80297718fbLevon SaldamliMerged and resolved conflicts but examples not working.
8fa5398357Levon SaldamliAdded matching_state
681b8070a4Levon Saldamliallow zero-length debugflag string
361470410eLevon Saldamliincluding string
186d2e9f6bLevon Saldamliinit_modelica_string added
0ff89ebedbLevon SaldamliConversion to and from Fortran 77 arrays (matrices)
5d1a2e9026Levon Saldamlisocket added to AC_CHECK_FUNCS
785360c99fPeter AronssonFixed several bugs with functions, e.g. Real X[:]=Y, etc.
ec4af22942Peter AronssonFixed bug with infinite recursion when instanitating Modelica.Blocks.
ac0f73e954Peter AronssonRedesigned Type to cope with all types for operator overloading and koening lookup
558a8eea23Peter AronssonAdded support for operator and function overloading.
323b44a697Peter AronssonAdded support for quoting using the Code keyword.
78eb02b929Peter 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.
c3ba5aba93Peter AronssonFixed bug with Real x[:,size(x,1)] e.g. referencing its own definition but different dimension.
e635e60972Peter AronssonAdded author
e97da34b3ePeter AronssonFixed bug in unqualified imports.
2a5b249b5aPeter AronssonAdded manual written in LaTeX.
810dccafc3Levon SaldamliTest program for testing the parser. Uses parse_tree_dump to dump the parsed file
e0302771f2Levon SaldamliTarget test for the test program added
82c02c91cePeter AronssonloadClass now handles several paths (separated by colon) in MODELICAPATH
c82491ef98Peter AronssonCache now working, but speeds things down :(
39059ef1edPeter Aronssonadded clearCache function.
aa64674945Peter AronssonFixed two bugs with encapsulated. Removed old cache implementation. Made new external cacheimpl, not working yet (gc problems)
2e45a825f7x02kajnyInitial revision
d100b1bc11Peter AronssonAdded several operators and fixed several bugs. EvapIOTest example from Ruediger Franke now works (174 seconds)
da87e924d4Levon Saldamlidouble message
b278933a47Levon SaldamliMaking rml2sig before modeq
4be5fbdd24Levon Saldamliscandir check and socket+libsocket check added
c8d432979aLevon SaldamliFixed libsocket check in configure, removed arch check and ifs
bb5d4bb875Levon SaldamliRemoved example part
4c58dac2e1Levon Saldamliscandir check, fixed by configure
2ba5924e7bLevon SaldamliLEX for rml2sig
a8eafe1602Levon SaldamliSig file support fixed
587e738805Levon SaldamliInitial
81ac1173cfLevon SaldamliMerged back interfaces and implementations
fc3642c8ccPeter AronssonAdded array constructor. Made all fail printing visible throguh failtrace flag.
b58ebecc24Peter AronssonAdded optional modifier according to Modelica2.1
57080af5e1Peter 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.
d2705ca6d0Peter Aronssonremoved tempfile, not platform independent.Added compilation check.
25fb8d46bdLevon SaldamliSeparated rml files into interface and implementation. Use myrmlc for compiling as before. Only one file at a time can be compiled
1a6366fcd1Levon SaldamliModelica String implementation, use with e.g. external functions
8ef99559fdLevon Saldamlilocal (protected) variables in functions implemented. Started to implement strings in external function interface
5aa5eae37dPeter AronssonFixed bug in addConnection for classes in packages.
8331335153Peter Aronssonfixed small bug in text.
8f22429d59Peter AronssonAdded compile text, example.
91ea514671Peter AronssonAdded caching, assert, helptext and help command
71e7c67791Peter AronssonAdded time relation
75e97e6ee7Peter AronssonFixed bug in lookup of qualified imports
f045fd9472Peter AronssonFixed bugs in lookup inside packages. SignalVoltage now works for Modelica Stdlib v1.5.
62c390d68fPeter AronssonIncreased socket buffer to 4000 bytes.
2ff7ff5e09Levon SaldamliA simple scandir implementation for solaris, without sorting.
bd3045154dPeter AronssonFixed bug with extending functions not yet declared (use before declare)
ca31df7fd3Peter AronssonAdded binding and comment options to addComponent and updateComponent
b956c39a97Peter AronssonFixed attributes in derived classes.
82b77f411cPeter Aronssonfixed bug with type_prefix in derived classes.
f26420d9edPeter AronssonFixed bug in getNthComponent.
e6f0140228Peter AronssonFixed deleteConnection and updateConnection.
0f1f990cfcPeter AronssonFixed many bugs in flattening of inheritance structure. Now translates Modelica.Electrical.Analog.Sources.SineVoltage
522d4834a4Levon SaldamliFortran 77 support fixed
e93813bebcLevon SaldamliFortran 77 support
7aad0c41d6Peter AronssonFixed addClassAnnotation, to be used for adding Icon, Diagram and Documentation annotations to classes.
887591d4ddPeter Aronssonfixed bug in getNthConnectionAnnotation.
6b2bbf1da2Peter AronssonMoved many interactive functions to StaticExp, such that they can be evaluated in any sub-expression. Also fixed bug with getIconAnnotation, getDiagramAnnotation.
472f2e75d1Peter AronssonFixed several statements per input. Ouput if no semicolon.
496fc44742Peter AronssonAdded isClass
f1dccf88f9Peter AronssonFixed bugs in unparser, now unparses ThermoFluid correctly.
b663b5ed1aPeter AronssonRemoved relaxations. 1. and .12 and 1.e-4 etc SHOULD NOT be allowed (Many people in design group has this opinion)
7283134499Peter AronssonUnparser running. Accepting whole modelica standard library.
528a2ef870Levon SaldamliBugfix
b1332175d9Peter AronssonFixed bug with casts on arrays in graphic annotation expressions
6b2763b2b6Peter AronssonImplemented deleteComponent.
6dcbde2a7bPeter AronssonFixat bug i addComponent
b676ce05f7Peter AronssonFixed bug with Diagram in component annotations.
b715396bccLevon SaldamliPartial external function support (records missing)
9cb3e7af32Levon SaldamliPartial external function support (records missing)
aa9adb52c7Peter AronssonFixed bug in declare before use. Now have untyped modifier expressions temporarily when instantiating.
ad9bdd7c99Peter Aronssonfixed some bugs with redeclarations. Not quite bug-free yet
ba850895a6Peter Aronssonredeclare partly implemented (no subtype checking, final checking,etc yet)
eb7a4873c3Levon SaldamliExternal function support for builtin basic types
fe6946b007Peter AronssonFixed instantiation bug with extends.
dbfa87c805Peter AronssonAdded initial() expression.
93f29e63c1Peter AronssonAdded module classloader and function loadClass that loads a class from MODELICAPATH.
2f4ad24b1dLevon SaldamliTemporary fix for MAXPATHLEN define for unix
13f4b0efb1Peter AronssonAdded impl. for Integers.
024bbe0058Levon SaldamliBugfix for external nodes
e7a2d89daeLevon SaldamliDump of Initial sections and external declarations
31a8558c24Peter AronssonFixed bug with external decl.
417ac9c448Peter AronssonAdded each keyword to absyn
8cc0042f78Peter Aronssonfixed bug in initial equation
5f90beb2f8Levon SaldamliChanges due to additions for replaceable to SCode.COMPONENT
1a2a55bd07Levon SaldamliChanges due to additions to SCode.PARTS for initial equation/algoritm, and SCode.COMPONENT for replaceable.
de95bb058bLevon SaldamliInitial equation and initial algorithm translation added. inst_equation, inst_algoritm, etc.
a60bf15d69Levon SaldamliTranslation of INITIALEQUATIONS and INITIALALGORITMS from Absyn to SCode added. Replaceable flag added to SCode.COMPONENT.
d97f032daeLevon SaldamliDAE elements for initial equation and initial algorithm added
ef1f84140eLevon SaldamliAdapted due to additions of initial equations and algorithms in SCode.PARTS
f1ab9dafc1Peter Aronssonlookup according to Modelica 2.0 (impl in vardnas workshop)
3a3a62e7cfVadim EngelsonEncapsulated messages added
c25c04146cPeter AronssonFixed bug in InteractiveStmt, changed due to updated Absyn.
fdd90b7059Peter AronssonFixed bug wiht tail
19923d815dPeter AronssonFixed bug with setting of variable and having whitespace.
f7a19d3a38Peter AronssonRemoved unused files, fixed prevent lookup of protected elts
49e5db5d66Peter AronssonFixed bug in Polygon annotation, arrows in line. Added methods existModel and existClass
32dd2a1031Peter AronssonFixed bug with subscripting of matrices in modification equations
94647c90afPeter Aronssonadded existClass, changed getModels and getPackages to getClassNames.
98da3fbbc4Peter Aronssonadded isPrimitive and other isXXX functions. Added getInheritanceCount, getNthInheritedClass
9338f7013fPeter AronssonFixed getNthComponentAnnotation
651568360bPeter AronssonFixed bug in function_arguments.
82319e8418Peter AronssonFixed bug in function_arguments when building ast
de8343eb6cPeter AronssonUpgraded to complete 2.0 in absyn (according to spec
622e28dbc5Peter AronssonUpgraded to complete 2.0 (according to spec
65774260e5Peter AronssonImproved some dumping. Some enum bugs. Added correct builtin attributes.
825d203464Peter AronssonAdded R_EXT_FUNCTION as restriction. Propagated external function info down to dae.
ea291cb3c8Peter AronssonFixed bug in external functions (parsing and absyn)
810cbb8568Peter AronssonFixed bug in getIconAnnotation
6643cc1012Peter AronssonFixed type conversion of unknown dimensions, fixed correct annotation building from named arguments
8ed036f4b0Peter AronssonFixed minor things. typeOf function implemented
9f8bb20336Peter AronssonFixed automatic code generation of functions. Fcn in packages does not work yet.
d867fa19bfPeter AronssonFixed InteractiveSymbolTable in elab_exp
caba88da1aPeter AronssonBroke circular dependency by moving stuff from Static to Types
d601503e72Peter AronssonNow compiling, added compiled functions to elab_exp and ceval.
de76ebb868Peter Aronsson*** empty log message ***
d756fd89caPeter Aronssonautomatic code generation almost complete.
b65f23d6c6Peter Aronsson*** empty log message ***
967e47689fPeter Aronssoncast of arrays, whitespace in parsing models, etc.
ccf28838c7Peter AronssonFixed instantiation of models inside packages. Fixed declare before use of functions (types in env).
eeff0e3654x02danheFixed a bug causing the makefile generation to fail if more than one path was returned when executing the find command.
7ed77a8efbx02danheFixed a bug causing the makefile generation to fail if more than one path was returned when executing the find command.
f770acd652Peter Aronsson*** empty log message ***
339947c2f6Peter Aronsson*** empty log message ***
18eb569ebePeter Aronsson*** empty log message ***
22ea4a3e6cPeter AronssonAdded external functions to Absyn. Added type convert of vector constructors (RANGE)
e252e7d4b1Peter AronssonCode generation of functions now working inside interactive env
9d82f576bcPeter AronssonRemoved includes of .c files.
1bfe9511bePeter AronssonAlmost finished codegen in interactive.
eb42f9f602Peter AronssonnewModel -> createModel
36b1b97789Peter AronssonAdded program to build initial env for expression evaluation
5e97e03a23Peter AronssonAdded evaluation of expressions and storing of variables in interactive through ceval
c2aa7003dcPeter AronssonAdded expression evaluation through staticexp
09d519a180Peter Aronssonadded encapsulated to Absyn and SCode.
3d5b15cc2cPeter AronssonAdded import statements to instantiation/lookup.
4d2f8482d4Peter Aronssonadded getPackages and getModels
d282476746Peter AronssongetDiagramAnnotation now working.
038ba085b8Peter AronssonFixed getIconAnnotation, incl elab_graphics_exp, MATRIX type conversions, etc.
1c68f70e20Peter Aronsson*** empty log message ***
c53bdd98c2Peter Aronsson*** empty log message ***
711c09b200Peter Aronsson*** empty log message ***
0a14853d6bPeter Aronsson*** empty log message ***
c0bf6c2a7fPeter Aronsson*** empty log message ***
682ef7786aPeter Aronsson*** empty log message ***
96ea66b7d3Peter AronssonFixed bug in lookup_class
5c07884c4aPeter AronssonFixed bug in inst_element_list (declare before use) of array dimensions
e55efa32d3Peter AronssonFixed bug in instantiation of variables (decl before use)
6d767ea253Peter AronssonFixed bug with value propagation into parameter values
d1c6b4a1faPeter AronssonFixed variable bindings when declared before use.
c992eaec04Peter Aronsson*** empty log message ***
f06c4b2355Peter Aronsson*** empty log message ***
73ec9c9d3aPeter Aronsson*** empty log message ***
02204da2ccPeter Aronssonworking on lookup & declare before use
c1ffb8e354Peter AronssongetIconAnnotation now works.
f6a2954b17Peter AronssonFixed bug in record constructor, now handles dimensions correct. Also moved som instantiation work from lookup to inst.
a813d70f41Peter Aronssonfixed bug with ordering of arguments to functions.
88f1676b02Peter AronssonFixed positional and named arguments to functions in staticexp.
86d4891099Peter Aronssonmoving to laptop.
9397f501b3Peter Aronssonfixed bug in component annotation
adb9135481Peter AronssonFixed function calls with no arguments
f64dafad18Peter Aronssonimplemented list of symboltable.
2cd3808336Peter Aronssonadded implicit lookup of record constructor functions
5b7f6ff4b7Peter Aronssonadded getIconAnnotation
e33aa74f52Peter AronssonAdded flat records for Graphical primitives.
568c6e5adbPeter AronssonAdded getNthConnector and getConnectorCount.
e73a33b6e8Peter AronssongetNthConnectionAnnotation almost work
cea4c43829Peter Aronsson*** empty log message ***
1a3e17f75ePeter AronssonAdded lookup rules for enumeration and completed other parts of enumeration
5d4e11013dPeter Aronsson*** empty log message ***
71b7d33286Peter AronssonFixed lookup of local classes, incl. packages.
5a759a0ff3Peter AronssonTemporary fix of lookup bug, Enumerations partly working
8064d931e8Peter Aronsson*** empty log message ***
159fe65d76Peter AronssonAdded enumerations to parser and Absyn.
c84690a92bPeter AronssonAdded enumeration type.
a8094ce384Peter AronssonAdded connection annotations to parser and absyn.
2a9b9bfb64Peter AronssongetNthConnection completed
f6257aaa43Peter AronssongetConnectionCount completed.
24facd4926Peter AronssongetNthComponentAnnotation completed.
5230e1f941Peter AronssonFixed bug that removed equations from components, in relation fix_direction.
433b79c0fbPeter Aronsson*** empty log message ***
eef8ffdd54Peter Aronsson*** empty log message ***
f74ebb222aPeter Aronssonallmost added getNthComponentAnnotation, migrating to laptop
09d8e0c6d4Peter AronssonAdded text file explaining interactive api
a7e49cce33Peter AronssonChanged api functions, strings -> componentrefs
2e549ee4c4Peter AronssonAdded translateClass function, and dumping of DAE to string
dfeb6223e3Peter AronssonAdded addComponent function.
cf46470884Peter AronssonAdded named arguments to functions.
cf725c768fPeter AronssonAdded named arguments in functions to parser and absyn
ce2aa29e9bPeter AronssonAdded newModel(foo) and newModel(bar,scope) to interactive env
4cc3f1ba26Peter AronssonAdded graphical annotations to absyn.rml
05b454ae28Peter AronssonFixed bugs in within.
f8ee5ada6cPeter AronssonWithin now works, i.e. local classes can interactively be inserted
ee9a893b55Peter AronssonAdded within to Absyn.Program
3136a93a57Peter AronssonAdded incremental adding of top level classes
4f69e1c2c5Peter Aronssonadded interactive symboltable
0a493a26f6Peter AronssonAdded expression parser in the interactive environment
617af49b39Peter AronssonAdded expression parser in the interactive environment
b02f830278Peter AronssonSmall bug in revision info
36f5a417eePeter 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.
ea5743e79fPeter AronssonAdded inner/outer to absyn
66f9f7e0eePeter Aronssonadded extra check of rmlc
62256199a6Peter Aronssonchanged /dev/null to empty tempfile
f6b82f6dc0Peter AronssonAdded antlr.Tool check in CP
f3f5360f45Peter AronssonFixed bug in rmlc
f4da1a45a8Peter Aronssonremoved c_runtime/Makefile from being generated
1df03d2253Peter Aronssonbash script bug
09032324cfPeter Aronssonsame bug again!
fab3dd9905Peter Aronssonbug in libreadline.a
a242b2a54bPeter Aronssonadded Makefile.in, removed Makefile
3e22cfb72aPeter AronssonAdded Makefile.in, removed Makefile
97b98ad558Peter AronssonAdded configure scripts
e5d6ca76e3Peter AronssonAdded extra functions for array_addr_element with dimension 1 and 2
67bc0009baPeter AronssonFixed so modelica.h includes the c files, such that function inlining can occur
22156b7d1ahenjosimplex handles different sized array
8d3c7056c1henjoAdded more copyright notices
d4140ab64dhenjoAdded copyright notice
122acbc629henjoAdded README file
1ec2a45dd0henjoAdded license file
41babbe28ahenjolast minute changes
0bdf41fb95henjoAdded more functionality
41244189bdhenjoFixed checking of reading input paramters
bb630b3db3henjoFixed error in simplex
f82100c949henjoFixed indexing operations
328bb146a2henjoFixed some things
c39a2a8356henjoAdded testscript
af48c1c3f6henjoIntroduced type information to input file
0861c21787henjoCan now generate code for functions with variable sized arrays
8b03153bd2henjoMoved compiled files to other dirs added .cvsignore file
51b24d318bhenjo*** empty log message ***
b26f324ff6henjoAdded integer read write routines
8933b4d89dhenjoFixed some operators
151b63c682henjoAdded testcases
39099f1441henjoRenamed file
61b045bec8henjoAdded more tests
1bb7ecd4dahenjoRemoved .main.c files
2e81a78201henjoAdded utlity functions
537cee5f88ankarChanged calc_index_va to one-based indexing.
bb21cbc0f9ankarpromote_real_array and promote_real_scalar now allocates dimension vector.
e9febf7875ankarAdded array_real_array, array_alloc_real_array.
61fd2d40cdankarAdded simple_index_alloc_real_array1.
b0dedd62d0henjoMore codegeneration done
0dd73a01d1ankarAdded calc_index functions.
6fe1c19d82ankarAdded range_alloc_real_array and range_real_array.
995e7a1000henjoadded newline to write
c3edb41f19ankarAdded mul_alloc_real_matrix_product_smart.
e596b8872chenjoFixed order of declarations in coden of read fn
afb8b5892ehenjoNow generates stub fn
1b30074800henjoadded read_write fns
98985f9309ankarAdded include to stdio.h
bf22380abfankarAdded prototype for real_array_nr_of_elements.
221facb96bhenjoAdded makefile to build lib
bdcc1206aehenjoCan generate c-code for array mults and assigns, added some testcases
f05ffa67f0ankarFixed some compiler errors.
7d40084c00ankarAdded main header.
d4c7518302ankarFirst revision of OpenModelica runtime. Just array implementation so far.
c65c928825henjoAdded new operators to handle matrix and vector operations
bde0bcfe97henjoFixed problem with empty argument list
e976d9e912henjoFixed indentation
f1a259b7fahenjoChanged 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
0678dd1d4eankarChanged ModelicaTokenTypes to modelicaTokenTypes.
42833cf915ankarMoved rel_op to relation.
e935a9d443ankarInitial import of new modelica_parser.
760e4872b7Levon SaldamliDebug dump of env at class instantiation and equation elaboration (envgraph and expenvgraph)
729a27ef89Levon Saldamliprint_env_graphviz: Generate a graph representation of the environment using graphviz
dfd3d04fccLevon SaldamliGraphviz generation help relation build_gr_strlist
beb43a2163Levon SaldamliEnvironment dump flags
ce51989414Levon Saldamliget_matching for general lists
0a879b440aLevon SaldamliChanged first label of NODE so that it can contain spaces.
3435fc5d83Levon SaldamliMinor fix.
92c4012034Levon SaldamliGraphviz module.
f0bace95e8Levon SaldamliDump the AST in graphviz format, so that it can be visualized (using dot or dotty from graphviz package)
f18d9364a2Levon SaldamliCode generation. Mainly functions at the moment.
123d896bfbLevon SaldamliRemoved the pde-related flags.
8299c01441Levon Saldamlidebug flag support
85fea0dc5fLevon SaldamliMinor
0cbaf43315Levon Saldamlimake_function_type, creates a function type. relations to collect different kind of variables (get_vars, get_output_vars etc). get_type_name
5f3dfca48bLevon SaldamliUtility relations. elab_exp_list, elab_cref_list, get_properties etc.
1d4078ce86Levon Saldamlidebug flag support.
24e0f7e130Levon SaldamliUtility relations.
fe6a7408c3Levon SaldamliChanged REDECL to contain SCode.Element list, so that an elaborated classdef can be stored.
3a0c546d2cLevon SaldamliFlag directed execution. see DEBUG.TXT
3aa9acf73cLevon SaldamliDebug trace in many places. Cleanup. Layout fixes
c0febdc52dLevon SaldamliImplementation of redeclare. Working with functions at least.
477f567154Levon SaldamliSome cleanup. Absyn.ElementSpec in REDECL changed to Element list, which is the result of applying elab_elementspec to Absyn.ElementSpec
545b94a907Levon Saldamlicref_equal, compares whether two crefs are identical. Does NOT check subscripts (ignored).
32edfb21c0Levon Saldamliprint_env print_frame
b8816b507bLevon 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
bc1db425f0Levon SaldamliDebug.print bugfix.
e9987bf276Levon SaldamliAdded variable direction (for arguments of functions). (But isn't this info in the function type already, at least now?)
790aeb9265Levon Saldamliget_state_name added
2bace30b18Levon Saldamli*** empty log message ***
f3a614cd06Levon SaldamliUpdated rml path. graphviz rml files added.
9c64cebb98Levon SaldamliMinor cleanup. Restiction -> string
3a05884ec5Levon SaldamliMinor cleanup
e488528757Levon SaldamliRemoved double of "boolean_type" in the builtin environment
b98b49bc9aLevon Saldamli*** empty log message ***
8b7e39c815Levon SaldamliWorking at PELAB
5049e8904cLevon SaldamliRML path
662ce623aeLevon SaldamliLatest from x98petro not committed or added
a1071c86f7x98petroArray handling is probably broken in this version. Should be fixed in next version.
55298a3c9bx98petroArray handling is probably broken in this version. Should be fixed in next version.
0c96272ed4x98petroModifed the grammar to accept multiple return values from functions.
ef831309f7x97davkaPeters korrektur.
05af8d5a1dx97davkaChanged "rml"
d5c8cf695ex97davkaDoc fix
32eda87a99x97davkaPontus korrektur.
514d6d9b31x97davkaCompleted
ca173a3f38x97davkaDoc fix
dc5a327a40x97davkaTypo
32e2a155b8x97davkaFilled the last holes.
08fbe6bce0x97davkaAdded MOdelica 1f
002531bba1x97davkaOops! Fixed static scoping.
199979a9c0x97davkaNew file
0ba8c084bex97davkaMinor fixes.
06eb4365f7x97davkaAdded a lot of stuff.
007207babcx97davkaDoc fix
f9b73ece64x97davkaFixed the mess I caused with remove_set
c31f4a8975x97davkaUse module header
4a527d334ax97davkaFixes
17f5f7396bx97davkaSome additions
e8f4675148x97davkaAdded bibtex rule
0ac4484e7ex97davkaDoc fixes and some minor code cleanups.
5ff6e658c2x97davkaUgly DAE.VARVAL hack Some cleanups
ac7bf3fbefx97davkaCheck modelica_output
f8b141062ex97davkaIntroduced ugly VARVAL hack.
bbb46eb938x97davkaminor additions
1126aa58a3x97davkaMinor fixes
d56b33a399x97davkaBug and doc fixes
f0df895c78x97davkaAdded modelica_output
473624c8ecx97davkaFixed stuff
4d9529c2ffx97davkaFixed output
23001385f4x97davkaCleanup
2c5a19763bx97davkadoc fix
24024ac4e0x97davkaRemoved debug info
d324855b70x97davkaConvert illegal characters when modelica_output is true.
cf1be90974x97davkaAdded the possibility to output DEFINE as EQUATION
6aa3f44ea3x97davkaSmall change
3e87765705x97davkaMinor bugfixes
39fd319a8ax97davkaRemoved debug stuff
71d482b0d8x97davkaAdded more on Modelica
75d9cde84fx97davkaRemoved debug output
041a4cd3afx97davkaFixed stuff
1e087f3560x97davkaDoc fixes
900c0dcf3bx97davkaadded limitations
d22c2a0666x97davkacheck_subscript returns the new type also
bdb7b6bc3dx97davkaAdded ARRAY again
38874048adx97davkaAdded split_arrays
26683b2a66x97davka*** empty log message ***
d121c9ceb1x97davkaarrays only have one dimension now. Lookup start in builtins.
f5aa8fc791x97davkaFixed stuff
d5c4de5d07x97davkaNew option: split_arrays
3914c72be4x97davkaSplit array and composite equations. And stuff.
ba8b79161cx97davkaNew simplify rules
c3bc5b85f0x97davkaReinstated ARRAY
8f44291880x97davkaChanged EQUATION and added DEFINE
8208c62b35x97davkaDAE changes
b2d637226ex97davkaType conversions in assignments work again
ccd43ea440x97davkaReintroduced ARRAY
abdf668975x97davkaNew dependecy rules
43beccd611x97davkaadded stuff
b291b60f0dx97davkaRestructured and stuff
cda4b3dae7x97davka*** empty log message ***
932d549cb9x97davkaNew file
0182b83568x97davkaAdded translation figure and stuff
5119f6277fx97davkaAdded accessibility
31a5ee6ce1x97davkaFolllow DAE changes
0b0b0706e0x97davkaAdded accessibility field to the attributes.
d31da39618x97davkaClean up unecessary stuff and renamed some.
a879e9ff88x97davkaSet accessibility
4d3b86ef12x97davkaCheck if a variable being assigned is read-only
09be46e621x97davkaNew files
bb73d7b8b3x97davkaAbsyn.COMPONENT changed
caea12342bx97davkaNew file
9f5abd9478x97davkaAdded some stuff
fa270055b2x97davkaAdded algorithm.tex
5e8cbc26e6x97davkaUse rtopts
04a8df931ex97davkaDon't use Absyn.VarAttr. Instead use SCode.Attributes. Fixed functions.
b64fa03da4x97davkaDon't use Absyn.VarAttr. Instead use SCode.Attributes.
c59ceaddeax97davkaDon't use Absyn.VarAttr. Instead use Attributes.
6479de8cefx97davkaStarted to use runtime options to control output
720e48d793x97davkaARRAY no longer exists
00cf6badc1x97davkaUse SCode.Attributes
3690e2e3b8x97davkaMore docs.
c02d2d3e9dx97davkaReplaced VarAttr with ElementAttributes. More docs.
276de9948dx97davkaAdded runtime directory
4631e88db7x97davkaFixed stuff
d9093eafa5x97davkaReworked
33a7f59dfdx97davkaSpelling fixes
572682c3fax97davkanew files
78883c0547x97davkaadded stuff
003ae012e8x97davkaAdded stuff
f8591eb9f0x97davkaRestructured
4f95765fc5x97davkaMore text. New bibliography.
b0d02f0078x97davkaFixed stuff
2a68e940ebx97davkaNew file
3ba517af93x97davkawrote stuff
1c4562a461x97davkaChanged labels
e47ca4b6a1x97davkaMore stuff.
e841cdc844x97davkadocfix
2ab4c3895bx97davkaFixed doc
86c9edece6x97davkaAdded comments
5e9c224588x97davkaRemoved ARRAY
c63c73bf8ax97davkaAdded protected flag to Types.VAR. Added rules for implicit instantiation of packages and functions. Fixed elab_call.
66329735ccx97davkaUse Static.Properties, and Static.match_prop.
0c6fc4070dx97davkaRemoved some junk.
c0999fcc4cx97davkaStaticExp was renamed
a6a013e752x97davkaUse Static.Properties.
0e2fd96f39x97davkaWrote a subtype relation and an equivtypes relation based on it. same_type is now obsolete.
d347955c41x97davkaIntroduced the Properties datatype. Rewrote the type match and conversion stuff.
e8bd83d510x97davkaUse Static.Properties
901ff9cb1bx97davkaThe [1,2,3] syntax is now a 1x3 matrix instead of a vector.
d49b693266x97davkaUse CAST instead of CAST_TO_REAL
04224fb5ebx97davka# prettified
ce7565714fx97davkasnapshot
3ed2486006x97davka*** empty log message ***
ce88dbf427x97davkaDoc fix.
26475648d7x97davka*** empty log message ***
5e6653d5aex97davkaDoc fix.
4ee727d6b0x97davkaAdjust to new Operator datatype. Introduced relations to handle overloading and automatic type conversions.
5e9dce6e9bx97davkaAdded temporary kluge for slices.
166b35854cx97davkaRemoved bogus errors.
8eceb86b81x97davkaAdjust to new Operator type. Check flow attribute in connections, but not constant. Use the overloading relations from StaticExp in inst_eq_equation.
ca33a5e899x97davkaCombined all operators to the datatype Operator.
793c62c6e0x97davkaAdjust to new Operator type.
f8e9e86c1ex97davkaDoc fixes.
e997257616x97davkaUnified all operators to an Operator datatype. Doc fixes.
fc82346b04x97davkasnapshot
a769b70160x97davkaFixed the type of loop variables
a4591f72efx97davkaReworked modifications
3118e51964x97davkaNew file
7b8d694918x97davkasnapshot
6f63e4a1ccx97davkaPrettierprint
565641ff2fx97davkaMoved Binding here. Added lift_array Some other stuff too
6df2aa4afax97davkaDo some relations and stuff
2aeebd379fx97davka# prettified
a4f16b836ex97davka*** empty log message ***
b3f81d860dx97davkaRemoved mkbinding
71f98950b0x97davkaLots o' changes
69fc156f81x97davkaConvert equations
6f12b03368x97davkaPrettier
2580189122x97davkaIF statements
0860e7ebd5x97davkaBinding moved
9d807295c6x97davkaFixed IF in equations
14440f29cax97davkaMore tokens
2571287f3ex97davkasnapshot
26db41a6d6x97davkasnapshot
1a63d128b6x97davkasnapshot
bfbd36a5e7x97davkasnapshot
34a9c2b6b0x97davkasnapshot
2c2fc399dbx97davkasnapshot. Works, sort of.
913cdd7e90x97davkasnapshot
fdabf67c17x97davkaSnapshot
72864f3294x97davkasnapshot
301ca81e3cx97davkaSnapshot of a significant overhaul
2370bd40b7x97davka*** empty log message ***
f1f35c8812x97davkaFixed for loops and array expressions
602e52971ex97davkaAdded FOR loops
418b83f0b3x97davkaAdded arrays and matrices
c297bfa4ffx97davkaUnroll for loops
0350ef0bf3x97davkaAdded Binding datatype to separate equation and value bindings.
fc6c945ec4x97davkaRenamed mod_assignment to mod_equation
979df2c358x97davkaHandle constant crefs and other stuff
54048fb482x97davkaNew file
4dc252dd10x97davkadoc fix
43709351bcx97davka*** empty log message ***
7a7536934bx97davkaMore on connections
7c0f714667x97davkaFixed component_reference
dbeb3c67edx97davkaDoc fixes
05d3613aa0x97davka*** empty log message ***
fec563b3c1x97davkaRenamed Env.new_frame to Env.open_scope Added documentation here and there Made Exp.ComponentRef a datatype with two constructors
7e32c0f1e6x97davkaFixed dependencies
fd8d77dc31x97davkaWorked on the source annotations.
bc7ecee152x97davkaFixed boxedverbatim TeX magic
58d89787c4x97davkaNew file
2b60a5a3e6x97davka*** empty log message ***
09a824c8c9x97davkaMore on connections and the annotated semantics
e650636a0ex97davkaBuild source files
89ddd20317x97davkaFixed redeclaration
d27bbb8fccx97davkaReordered and fixed documentation
911e0573b2x97davkaNew files
0c4c163be6x97davkaAdded REDECLARATION
108034513ax97davkaFixed documentation
749c61ba1dx97davkaAdded strings and booleans.
bf38a3fafex97davka*** empty log message ***
0e762146fax97davkaEnable use of both kinds of modifications
a29f74f45fx97davkaStore reals in double instead of float.
b03f34a8abx97davkaFixed variable lookup and stuff.
76f7405632x97davkaHandle CAST_TO_REAL
d422ed6bcex97davkaCombined CLASSMOD and EQUALMOD
f90620634ax97davkaFixed package lookup
ff2602fbe4x97davkaFixed lookup relations
6baea3fe75x97davkaAdded print_type
1b314f8793x97davkaMoved lookup relations
952fb67dc0x97davkaAdded test target and lookup.rml file.
7c7fb100b9x97davkaWorked some more static expression analysis.
643deb8806x97davkaFixed static analysis and constant propagation of expressions.
7216d61b72x97davka*** empty log message ***
45ab088140x97davkaMore on restrictions and stuff
5b6d8f08e3x97davkaCheck more restrictions
724cfb4d03x97davkaTreat predefined types separately.
d28e323393x97davkaUse R_PREDEFINED.
e522f77b89x97davkaUpdated with ClassInf
ed5de81840x97davkaRestructured with ClassInf
39573c5854x97davka# dump
3d5e2743acx97davkaKeep a ClassInf.State and check it sometimes
96912c0f94x97davka# cosmetic
45e901d587x97davkaSave the ClassInf.State
d172193d88x97davkaUse ClassInf.print_restr
d35c3e95b8x97davkaNew file
093f47b9c6x97davkaUse ClassInf
3c9ed504c9x97davkaMoved ClassRestricion
d5a8e8ab5ax97davkaAdded classinf.rml
8cc3658c60x97davkaExpanded
0ddb65ad74x97davkaNew file
62146dab3ax97davkaUse new Exp.Subscript definition
5f17f3eff6x97davka# more tokens
4104c9c83ax97davka# cosmetic
cc63b67a90x97davkaAdded ceval
74f6b18192x97davkaAdded -lm to LDFLAGS
b6925521c4x97davka*** empty log message ***
4179ac2d22x97davkaSpecify inner and outer connectors.
af110c1eddx97davkaImplemented outer and inner connectors.
abd5c885ccx97davkaNew stuff about connections
bdc3eff3a9x97davkaNew path to rmlc
f5e2fde46cx97davkaAdded better support for flow variables. Changed to new "fail" style.
64cc01e85dx97davka*** empty log message ***
f863bcfb25x97davkaBuild connection sets.
2354aa7901x97davkaExport dump_list
e66f51b32ex97davkaAdded dump relations
09dc51df43x97davka*** empty log message ***
585de6b68cx97davkaAdded eq_cref
a4112c6db9x97davkaNew file
4e2e6bab8ex97davkaFixed .SUFFIXES finally
76c95d991ax97davkaFirst stab
265f6f82cex97davka*** empty log message ***
0f1637482fx97davkaUpdate according to changes in absyn.rml.
860dd211fbx97davkaFixed include files.
d246490386x97davkaLots of new types.
3fb16f3e29x97davkaKeep track of subscripts.
834c5d5598x97davkaChanged dump a little.
90df105dfax97davkaLots of new stuff and fixes. Now does pseudoconnecting.
2e20d65250x97davkaUse Types.VarAttr.
87f4c647bfx97davkaSubscript and ComponentRef now lives here
cc9d92cb74x97davkaUse Types.VarAttr. Some new lookup relations.
7697bd3c1fx97davkaChange path to component_ref in some places
c11ab8c2e9x97davkaMoved Subscript and ComponentRef to exp.rml
46237f04fax97davka*** empty log message ***
5a801cdec0x97davkaWhy connect() should be a special construct.
8f1a6399ecx97davkaAdded CONNECT
bef5ec9215x97davkaNew RML version
ae392ce9e6x97davkaNew file
8466c4f069x97davkaBuild Types.Type Use lookup_var_local where appropriate
3d9a6f9ab0x97davkaNew relation lookup_var_local Use Types.Type in FrameVar
50fc7a295ax97davkaDump EQ_CONNECT
ef8ef39b37x97davkaUse Explode
4a8c73b4a9x97davkaTreat connect() as a special construct.
831b818982x97davkaBuild if expressions
1f02c12e1dx97davkaAdded mod_assignment
a5ebcae03cx97davka*** empty log message ***
bee8e2d3cdx97davkaShdow assignment equations.
9c03acac8bx97davkaSave assignment modifications in the environment.
e8dec72011x97davkaRemoved
4d4e2088d6x97davka*** empty log message ***
878af371e0x97davkaFixed EXTENDS
c142a1423cx97davkaUse Explode
551a4ad0a3x97davkaUse Explode Started to check "protected". Not done yet.
22117ef797x97davkaDebug message
951868a180x97davkaRemoved explosion code
1d19178ceex97davkaRemoved references to modAST.h
8ebf3fdcdex97davkaNew file
abadfa49f1x97davkaRemoved
5e338bd0adx97davkaRemoved
399836e1c0x97davkaFixed PUBLIC and PROTECTED
8b36183a1cx97davka*** empty log message ***
8c73db3b33x97davkaFixed bug in merge.
61271fb70bx97davkaImproved modification handling
8a735766b1x97davkaTypo
157f00b53fx97davkaAdded dependencies
4d5003f9d6x97davka*** empty log message ***
722b45c565x97davkaUpdated to RML 1.9.0
0cf5e5cca3x97davkadoc fix
af0952cb4ex97davkaRML fixes
5e9d7f9981x97davkaRewrote bigtime. Added dump, build and implemented merge.
b2a672eb30x97davkaUpdated
35f5f13448x97davkaNot used anymore
3ec13e1f2ax97davkaRewrote to not use lform, but put modifications in the environment.
da53f7d62bx97davkaStore modifications together with classes.
b1428e5ec1x97davkaUpdated
d24f2bbce9x97davkaAdded element_spec_name
a7f8b2d333x97davkaFixes
a0a6c25339x97davka*** empty log message ***
80648e9c2dx97davkaRenamed COMPONENTS to COMPONENT Removed dead code.
96a8dac83dx97davkaUse absyn again.
7815e12189x97davkaMoved to other documents.
4d24419863x97davkaUse lform
31221c5242x97davkaPrepare to use lform
6d08e967c2x97davkaUpdated
4915167b8dx97davkaStart using lform.
aaae56163dx97davka*** empty log message ***
6599ba8c3cx97davkaHandle equality modifications.
05fce182afx97davkaLots of small fixes.
8ecce831e0x97davkaNew files
25e7be48dcx97davkaFixed logical expressions.
a4c98b84ccx97davkaAdded some tokens.
e84d4dea4cx97davkaNoted that equality modifications are not yet handled.
a1870459c5x97davkaAdded informational messages.
78e68c6e45x97davka*** empty log message ***
2afa783902x97davkaRenamed prefix_add to prefix_path and added another relation called prefix_add
5706f0623ex97davkaAdded empty_mod
1c7952cea9x97davkaAdded built-in types to builtin.rml Fixed some trace output
48a4272830x97davkaAdded some trace info
d2fd268d0ex97davkaNew file
857ac64f61x97davkaAdded builtin
37f34cfbb8x97davkaExport prefix_add
c32f261149x97davkaCosmetics
8c8a4196d1x97davkaFixed the initial environment
2449db2d7fx97davkaMoved path_string
9bd2b42b1ex97davkaAdded convenient access to element names.
aaec8e9c66x97davkaSplit in submodules
5b98d32ddax97davkaAdded env.rml, mod.rml and prefix.rml
af7f390ab9x97davka*** empty log message ***
c9b53071a0x97davkaFixed a bug in the Modelica spec.
efb15466f0x97davkaDon't use lform, but inst.
90bae87f02x97davkaThis file is no longer used.
6f1e66d021x97davkaRewrote large parts. Don't use LForm.
33fe431e79x97davkaFixed a bug in the Modelica spec
bb892b1600x97davkaAdded inst.rml
7e35a6a58dx97davka*** empty log message ***
1115ee11f4x97davka*** empty log message ***
2cf7ba80b5x97davkaBugfixes
3c3e42ec58x97davkaAdded inst.rml
c629dfcc22x97davkaInstantiate
12c421e29dx97davkaNew file
4b9f3f9210x97davkaUpdated
16396d1d22x97davkaKeep up with changes in Absyn.
53794c302bx97davkaCall Absyn.explode_components.
5b63fd98a6x97davkaExpanded a lot. Now it compiles.
0e70608e1cx97davkaLittle fixes
cc8cabcde4x97davka# cosmetics
05a72ae9b6x97davkaExplode components. Changed some Idents to Paths.
b8d285e296x97davkaNew file
42f662284ex97davkaFixed compilation order
5fdb7baa20x97davka*** empty log message ***
fd2ef28ae7x97davkaRemoved almost everything.
b786c2d69fx97davkaConvert to lform
3149514015x97davkaNew file
ef075a3920x97davkaAdded lform
6a8be3cb53x97davkaAdded mk_box7
82b5a11868x97davkaFixed so it works for most programs.
fa845bbf88x97davkaPrint more
84f1b14d7dx97davkaUpdated.
b223542f4ax97davkaUse a component list in element specs.
f991f8f71cx97davkaFinally managed to build the subdir properly.
99ceb6f1fbx97davkaFixed rule "relation"
1b95bd550dx97davkaAdded relations and logical expressions
baecbcb570x97davkaRewrote subscript handling Fixed element modifications
af86e9554cx97davkaPrettify
8d4feb9c02x97davkaInline type_prefix
781c945036x97davkaDump extends clauese better
cc912fec85x97davkaConstruct constants correctly.
70ae0e4895x97davkaRemoved quotes from string constants at once.
a96c421213x97davkaAdded strings and booleans.
6d9280c93fx97davkaDump more stuff.
f22b68e5cdx97davkaExtended. Now it seems to parse type definitions OK.
4df116e284x97davkaHandle more tokens
1decaa0454x97davkaFixed indentation
e24db13c68x97davkaMore and better rules
1fcdbe64ecx97davkaMoved everything to absyn.rml
529b901306x97davkaMoved everything from class.rml here
13f1c5b869x97davkaAdded some box functions
d52761c458x97davkaFixed horrible typos that made me lose a couple of days
b9cc7447f4x97davkaNew function: sibling_list Other fixes
32e83c95e6x97davkaNow builds a complete AST for a simple program!
b07e4771c8x97davkaUpdated
9c1c07c0e7x97davkaExp.dump had moved
2968c7b8bcx97davkaGet the file name from the command line
9ba385e0c0x97davkaMoved the expression dump relation here
9d5f763acax97davkaMoved dump to dump.rml Added the Path datatype
41276b310cx97davkaExpanded Class.
408dc6db14x97davkaRemoved test.rml
12d4d33eccx97davkaNew file.
2991b90c53x97davkaMoved stuff to attrib.c Fixed tree-building.
f18abb52c2x97davkaRemoved unused code.
584197e69bx97davkaNew files.
82e8b75864x97davkaBetter dependencies.
51113c0c10x97davkaRemove .c.o target.
28742875d4x97davkaBuild an AST. Added some routines for printing an AST.
f6443f89a2x97davkaUse SparcWorks cc Call antlr with -gt -gl
2cf23062c0x97davkaTaken from rml 1.3.6.
d0321e99f1x97davkaCreated a dummy parser that at least uses yacclib.
bd5a3f6d73x97davkaAdded yacclib.
ae63096562x97davkaNew file.
5752276164x97davkaUse the parser.
58695ff1bcx97davkaBugfixes.
cfc94553fex97davkaAlways run make in ast/
914aee3f20x97davkaTried to implement something callable from RML.
fe1300b39cx97davkaNew file
414ca7c0f9x97davkaTry to use Parser.parse.
69edd60dcbx97davkaDon't compile parse.rml
42fa7de893x97davkaRemoved tokens.h
2037553c31x97davkaThis file is now empty.
20ceb8cc4dx97davkaRemoved
2be884896ex97davkaChanged to C. Removed lots of stuff.
2ab12299a5x97davkaI don't think this is actually used anywhere.
1396dea942x97davkaRemoved bool.h
92dcc08effx97davkaCleaned up and changed to use gcc.
5434cb8882x97davkaRemoved some definitions and stuff that I don't use (yet).
687249f72ax97davkaUse an empty main relation.
d3384d336bx97davka# Added a comment
4221d05d49x97davkaHeavily hacked.
4828720e6ex97davkaJust saving
ce613f05a8x97davkaRemoved.
3c5da6dc4ex97davkaInitial revision
8bf245498fAdrian PopNew repository initialized by cvs2svn.

Library Changes

LibraryChange

Models Affected