/trunk Developers: ppriv

Login name:
ppriv
Total Commits:
648 (0.2%)
Lines of Code:
498,535 (1.6%)
Most Recent Commit:
2013-07-03 21:11
Tweet this:
Tweet this

Activity by Clock Time

Activity by Hour of Day for ppriv

Activity by Day of Week for ppriv

Activity in Directories

Directory Changes Lines of Code Lines per Change
Totals 648 (100.0%) 498535 (100.0%) 769.3
testsuite/3rdParty/HumMod/HumMod/ 2 (0.3%) 151343 (30.4%) 75671.5
Compiler/ 48 (7.4%) 102267 (20.5%) 2130.5
Compiler/susan_codegen/SimCode/ 80 (12.3%) 83342 (16.7%) 1041.7
testsuite/3rdParty/HumMod/ 6 (0.9%) 75019 (15.0%) 12503.1
Compiler/Template/ 96 (14.8%) 31969 (6.4%) 333.0
testsuite/3rdParty/HumMod/HumMod/setup/ 7 (1.1%) 13809 (2.8%) 1972.7
testsuite/3rdParty/HumMod/Physiolibrary/ 5 (0.8%) 13663 (2.7%) 2732.6
testsuite/3rdParty/HumMod/HumMod/parameters/ 11 (1.7%) 11019 (2.2%) 1001.7
Compiler/susan_codegen/ 54 (8.3%) 9654 (1.9%) 178.7
Compiler/susan_codegen/SimCode/GenTest/QHP/ 12 (1.9%) 2737 (0.5%) 228.0
Compiler/susan_codegen/SimCode/GenTest/RightHeartStarling/ 18 (2.8%) 1747 (0.4%) 97.0
Compiler/BackEnd/ 7 (1.1%) 1139 (0.2%) 162.7
Compiler/susan_codegen/doc/ 3 (0.5%) 229 (0.0%) 76.3
Compiler/FrontEnd/ 1 (0.2%) 209 (0.0%) 209.0
c_runtime/ 3 (0.5%) 165 (0.0%) 55.0
Compiler/susan_codegen/SimCode/GenTest/ 9 (1.4%) 74 (0.0%) 8.2
testsuite/mofiles/ 2 (0.3%) 61 (0.0%) 30.5
Compiler/runtime/ 1 (0.2%) 25 (0.0%) 25.0
/ 2 (0.3%) 12 (0.0%) 6.0
SimulationRuntime/c/util/ 4 (0.6%) 11 (0.0%) 2.7
SimulationRuntime/c/simulation/solver/ 2 (0.3%) 9 (0.0%) 4.5
Compiler/Util/ 2 (0.3%) 9 (0.0%) 4.5
SimulationRuntime/c/ 2 (0.3%) 8 (0.0%) 4.0
build/doc/ 1 (0.2%) 5 (0.0%) 5.0
SimulationRuntime/c/simulation/ 2 (0.3%) 4 (0.0%) 2.0
SimulationRuntime/c/simulation/results/ 1 (0.2%) 3 (0.0%) 3.0
testsuite/3rdParty/HumMod/Physiolibrary/icons/ 210 (32.4%) 1 (0.0%) 0.0
build/share/ 1 (0.2%) 1 (0.0%) 1.0
build/ 1 (0.2%) 1 (0.0%) 1.0
testsuite/3rdParty/HumMod/HumMod/animations/ 34 (5.2%) 0 (0.0%) 0.0
Compiler/susan_codegen/SimCode/GenTest/TrapezTest/ 11 (1.7%) 0 (0.0%) 0.0
Compiler/susan_codegen/SimCode/GenTest/Influenza/ 5 (0.8%) 0 (0.0%) 0.0
Compiler/susan_codegen/SimCode/GenTest/HelloWorld/ 5 (0.8%) 0 (0.0%) 0.0

Activity of ppriv

Most Recent Commits

ppriv 2013-07-03 21:11 Rev.: 16538

- update to C# target template

646 lines of code changed in 2 files:

  • Compiler/Template: CodegenCSharp.mo (+553 -611), CodegenCSharp.tpl (+93 -77)
ppriv 2013-05-31 16:20 Rev.: 16174

- 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.

6291 lines of code changed in 7 files:

  • Compiler/BackEnd: SimCodeUtil.mo (+7 -4)
  • Compiler/FrontEnd: Ceval.mo (+209 -205)
  • Compiler/Template: CodegenC.mo (+170 -156), CodegenC.tpl (+68 -53), CodegenCSharp.mo (+4865 -1779), CodegenCSharp.tpl (+971 -343)
  • SimulationRuntime/c/simulation/solver: nonlinearSolverHybrd.c (+1 -1)
ppriv 2013-03-29 10:49 Rev.: 15698

Update 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)

2549 lines of code changed in 4 files:

  • Compiler/BackEnd: SimCodeUtil.mo (+1067 -1048)
  • Compiler/Template: CodegenCSharp.mo (+915 -682), CodegenCSharp.tpl (+372 -301), SimCodeTV.mo (+195 -190)
ppriv 2013-03-05 23:18 Rev.: 15482

- 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

641 lines of code changed in 4 files:

  • Compiler/BackEnd: SimCodeUtil.mo (+4 -4)
  • Compiler/Template: CodegenCSharp.mo (+581 -405), CodegenCSharp.tpl (+48 -6)
  • SimulationRuntime/c/simulation/solver: model_help.c (+8 -8)
ppriv 2013-02-19 19:01 Rev.: 15243

- 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

10 lines of code changed in 3 files:

  • SimulationRuntime/c/util: CMakeLists.txt (+2 -2), simulation_options.c (-4), simulation_options.h (+8)
ppriv 2013-02-19 14:43 Rev.: 15240

Please, do not commit old generated files back (to Lennart Lochel - lochel)

5632 lines of code changed in 8 files:

  • Compiler/Template: CodegenAdevs.mo (+1450 -2589), CodegenCSharp.mo (+464 -830), CodegenCpp.mo (+1720 -3236), CodegenFMU.mo (+694 -1328), CodegenFMUCpp.mo (+282 -686), CodegenJava.mo (+216 -320), CodegenQSS.mo (+92 -284), CodegenXML.mo (+714 -1307)
ppriv 2013-02-17 18:41 Rev.: 15207

more fix bootstrapping (complete tplCallWithFailError2, too)

2 lines of code changed in 1 file:

  • Compiler/Template: Tpl.mo (+2 -3)
ppriv 2013-02-17 15:15 Rev.: 15203

Trying to satisfy bootstraping tests

24 lines of code changed in 1 file:

  • Compiler/Template: Tpl.mo (+24 -9)
ppriv 2013-02-17 14:42 Rev.: 15202

- 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)

6 lines of code changed in 2 files:

  • SimulationRuntime/c: CMakeLists.txt (+3 -3)
  • SimulationRuntime/c/simulation: simulation_input_xml.cpp (+3 -4)
ppriv 2013-02-17 14:22 Rev.: 15201

- a fix of asprintf() for MSVC
snprintf() replaced with vsnprintf()

1 lines of code changed in 1 file:

  • SimulationRuntime/c/util: omc_msvc.c (+1 -1)
ppriv 2013-02-17 14:18 Rev.: 15200

- 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

86 lines of code changed in 2 files:

  • Compiler/Template: CodegenC.mo (+78 -85), CodegenC.tpl (+8 -9)
ppriv 2013-02-17 13:59 Rev.: 15199

Susan 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)

82 lines of code changed in 1 file:

  • Compiler/Template: Tpl.mo (+82 -8)
ppriv 2013-02-16 12:45 Rev.: 15196

- Susan does not generate unreachable match cases for map expressions (a clean-up)

25 lines of code changed in 20 files:

  • Compiler/Template: AbsynDumpTpl.mo (-66), CodegenAdevs.mo (-1139), CodegenC.mo (-1938), CodegenCSharp.mo (-366), CodegenCpp.mo (-1516), CodegenFMU.mo (-634), CodegenFMUCpp.mo (-404), CodegenJava.mo (-104), CodegenQSS.mo (-192), CodegenUtil.mo (-6), CodegenXML.mo (-593), DAEDumpTpl.mo (-186), ExpressionDumpTpl.mo (-69), NFInstDumpTpl.mo (-30), SCodeDumpTpl.mo (-120), SimCodeDump.mo (-140), TplAbsyn.mo (+25 -1), TplCodegen.mo (-185), Unparsing.mo (-13)
  • Compiler/susan_codegen: TplCodegen.mo (-185)
ppriv 2013-02-16 10:44 Rev.: 15195

- 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


8827 lines of code changed in 21 files:

  • Compiler/Template: AbsynDumpTpl.mo (+58 -58), CodegenAdevs.mo (+1450 -1450), CodegenC.mo (+2154 -2154), CodegenCSharp.mo (+465 -465), CodegenCSharp.tpl (+2 -2), CodegenCpp.mo (+1720 -1720), CodegenFMU.mo (+694 -694), CodegenFMUCpp.mo (+282 -282), CodegenJava.mo (+216 -216), CodegenQSS.mo (+92 -92), CodegenUtil.mo (+14 -14), CodegenXML.mo (+714 -714), DAEDumpTpl.mo (+282 -282), ExpressionDumpTpl.mo (+90 -90), NFInstDumpTpl.mo (+48 -48), SCodeDumpTpl.mo (+222 -222), SimCodeDump.mo (+78 -78), TplCodegen.mo (+112 -112), Unparsing.mo (+20 -20)
  • Compiler/susan_codegen: TplCodegen.mo (+112 -112), TplCodegen.tpl (+2 -2)
ppriv 2013-01-23 17:52 Rev.: 14899

Updated 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)

1370 lines of code changed in 5 files:

  • Compiler/Template: CodegenCSharp.mo (+1269 -1023), CodegenCSharp.tpl (+92 -49)
  • SimulationRuntime/c: omc_inline.h (+5 -1)
  • SimulationRuntime/c/simulation: simulation_runtime.cpp (+1 -1)
  • SimulationRuntime/c/simulation/results: simulation_result_mat.cpp (+3 -3)
ppriv 2012-10-26 11:56 Rev.: 13651

- C# CodegenCSharp.tpl fix for residual functions generation

406 lines of code changed in 2 files:

  • Compiler/Template: CodegenCSharp.mo (+405 -357), CodegenCSharp.tpl (+1)
ppriv 2012-10-25 21:39 Rev.: 13630

- C# template update toward the new zero-crossing treatment
- rename of the mixed helper function nextVar() -> NextMixedBoolCombination()
- better code for DIVISION()

309 lines of code changed in 2 files:

  • Compiler/Template: CodegenCSharp.mo (+262 -211), CodegenCSharp.tpl (+47 -20)
ppriv 2012-09-13 13:04 Rev.: 12915

Added a failing test for the new HumMod model
- issue: omc backend is crashing on the added translateHumMod.mos test.mo
- note: the model's .mo files are first preprocessed into HumMod_OMC/ folder to be able to instatiate and check successfully
- renaming the old tests with suffix OMCTotal

264854 lines of code changed in 275 files:

  • testsuite/3rdParty/HumMod: HumMod_License.txt (new 16), Makefile (+26 -5), checkHumModOMCTotal.mos (new 214), instHumModOMCTotal.mos (new 71958), toOMCandMODELICA_STANDARD.sed (new 11), translateHumMod.mos (new 2794)
  • testsuite/3rdParty/HumMod/HumMod: package.encoding (new 1), package.mo (new 151342)
  • testsuite/3rdParty/HumMod/HumMod/animations: AcidBase.png (new), AcidBase_CO2.png (new), AcidBase_O2.png (new), AcidBase_TissueInterstitial.png (new), AcidBase_TissueIntracellular.png (new), AcidBase_TissueVeins.png (new), AcidBase_pH.png (new), CO2.png (new), CVS.png (new), Electrolytes.png (new), FickForSkeletalMuscle.png (new), GITractMetabolism.png (new), Heart.png (new), LiverMetabolism.png (new), NutrientsAndMetabolism.png (new), O2.png (new), O2UseForBones.png (new), Proteins.png (new), Sodium.png (new), Status.png (new), Steady_WaterCalculation.png (new), TissueMetabolism.png (new), Tissue_pH_blood.png (new), Tissue_vein_CO2.png (new), Tissue_vein_intracellular_erythrocyte_pH.png (new), Tissues_InterstitialWater.png (new), Tissues_pH_interstitial.png (new), Tissues_pH_intracellular.png (new), Water.png (new), WaterCompartments.png (new), femaleSexHormones.png (new), heat.png (new), hormones.png (new), nerves.png (new)
  • testsuite/3rdParty/HumMod/HumMod/parameters: all.txt (new 16), default.txt (new 10358), steadyState.txt (new 44), steadyStateCVS.txt (new 31), steadyStateElectrolytes.txt (new 30), steadyStateGases.txt (new 22), steadyStateHeat.txt (new 8), steadyStateHormones.txt (new 370), steadyStateMetabolism.txt (new 112), steadyStateProteins.txt (new 12), steadyStateWater.txt (new 16)
  • testsuite/3rdParty/HumMod/HumMod/setup: default.txt (new 10520), dif3_s.txt (new 54), differences.txt (new 615), output2_s.txt (new 216), partial_steady_states.txt (new 2240), save.txt (new 82), save2.txt (new 82)
  • testsuite/3rdParty/HumMod/Physiolibrary: Fluid.mo (new 540), Media.mo (new 338), package.encoding (new 1), package.mo (new 12766), package.order (new 18)
  • testsuite/3rdParty/HumMod/Physiolibrary/icons: AminoAcid.jpg (new), CO2 (2).png (new), CO2.png (new), CVS.png (new), Cl.jpg (new), D-glucose-chain-3D-balls.png (new), FattyAcid.jpg (new), GIT.jpg (new), GITLumen.jpg (new), GITandLiver.jpg (new), Glucose2.jpg (new), K.jpg (new), KetoAcid.jpg (new), Lactate.jpg (new), Lymph.png (new), NH4.jpg (new), Na.jpg (new), O2.jpg (new), SANode.png (new), Thumbs.db (new), Urea.jpg (new), abdominalVenaCava.png (new), acidobaze (2).png (new), acidobaze.png (new), aminokyseliny.png (new), arterie.png (new), baroreflex.png (new), betaTotal.png (new), bloodProperties.jpg (new), bone.jpg (new), brain.jpg (new), cellularMetabolism.png (new), cervenaKrvinka.png (new), circulation.png (new), circulationBones.png (new), circulationBrain.png (new), circulationFat.png (new), circulationKidney.png (new), circulationLeftCoronary.png (new), circulationLungs.png (new), circulationRightCoronary.png (new), circulationSkelMuscle.png (new), circulationSkeletalMuscle.png (new), circulationSkin.png (new), collapseVeins.jpg (new), concentrationCompartement.png (new), concentrationMeassure.png (new), csv.png (new), cviceni.png (new), default.htm (new 1), diffusion.png (new), dilution.png (new), dychani.png (new), elasticitaSrdce.png (new), elastickyKompartment - Kopie.png (new), elastickyKompartment.png (new), electrolytes.png (new), fat.jpg (new), fattyAcids.jpg (new), flowMeassure - Kopie.png (new), flowMeassure.png (new), fosfat.png (new), gases.png (new), glucose.jpg (new), glykogen.png (new), golem.png (new), guyton_resized.jpg (new), heart.png (new), heartPict.png (new), heartVentricle.jpg (new), hormones.png (new), hormonesFemaleSex.png (new), hormony.png (new), hydrostaticGradient.png (new), hydrostatika.png (new), hypofyza.png (new), ikonaMembrana.png (new), indexStatus.png (new), indexVoda.png (new), indexstatusBezKolecka.png (new), inferiorVenaCava.png (new), inflowPump.png (new), integral.png (new), jatra.png (new), kidney.jpg (new), kolaps.png (new), komoraSrdce.png (new), krevniReciste.png (new), krevniReciste1-1srdce.png (new), krevniReciste1-2srdce.png (new), krevniRecisteKost.png (new), krevniRecisteKuze.png (new), krevniRecisteLedviny.png (new), krevniRecisteMozek.png (new), krevniRecistePlice.png (new), krevniRecisteSiluetacloveka.png (new), krevniRecisteSval.png (new), krevniRecisteTkaniKosterniSvaly.png (new), krevniRecisteTuk.png (new), krvinka.png (new), kyselostVeSvalech.png (new), kyslik.png (new), ledviny.png (new), legsCirculation.png (new), liver.jpg (new), log10_2.png (new), lungBloodFlow.jpg (new), lungPerfusion.jpg (new), massStorage.png (new), mesh.png (new), metabolismusJater.png (new), mocovyMechyr.png (new), muzHormony.png (new), nadledviny.png (new), nefron.png (new), nerves.png (new), nervyNeuron.png (new), nutrients.png (new), nutrientsAndMetabolism - Kopie.jpg (new), nutrientsAndMetabolism.jpg (new), odporVelkychZil.png (new), ohen.png (new), oxygen.png (new), pHarterie.png (new), pHvanes.png (new), pankreas.png (new), perfusion.png (new), perfusion2.png (new), peritoneum.png (new), plasma.jpg (new), plazma.png (new), plice.png (new), plicniZkrat.png (new), pojivovaTkan.png (new), potniZlaza.png (new), pressureMeassure.png (new), protein.jpg (new), protein.png (new), proton.png (new), prvkyCO2.png (new), prvkyH2O.png (new), reabsorbtion.png (new), reabsorbtion2.jpg (new), receptoryVSrdci.png (new), redCell.jpg (new), resistance.jpg (new), resistor.jpg (new), respiracniCentrum.png (new), respiracniSvaly.png (new), reversibleReaction.jpg (new), reversibleReaction.png (new), rightVentricle.png (new), sequerestedVolume - Kopie.png (new), sequerestedVolume.png (new), setup.png (new), setup2.png (new), siluetaKoma.png (new), siluetaMrtvy.png (new), siluetaNedychaSam.png (new), siluetaNormal.png (new), siluetaSkoroMrtvy.png (new), siluetaVaznejsiStav.png (new), siluetaVoda.png (new), siluetaZmateni.png (new), skin.jpg (new), solubility.png (new), soluteFlow.png (new), soluteFlowMeassure.jpg (new), srdceLeva.png (new), srdceprava.png (new), stitnaZlaza.png (new), sulfat02.png (new), superiorVenaCava.png (new), sval.png (new), sympatetickeNervy.png (new), systemicCirculation.jpg (new), systemicCirculation.png (new), tissueFitness.png (new), tissueMetabolism.jpg (new), tkanovyMetabolismus.png (new), tkanovyMetabolismusKost.png (new), tkanovyMetabolismusKosterniSvaly.png (new), tkanovyMetabolismusKuze.png (new), tkanovyMetabolismusLedviny.png (new), tkanovyMetabolismusMozek.png (new), tkanovyMetabolismusPlice.png (new), tkanovyMetabolismusRespiracniSvaly.png (new), tkanovyMetabolismusSrdceLeva.png (new), tkanovyMetabolismusSrdcePrava.png (new), tkanovyMetabolismusTuk.png (new), torzo1.png (new), torzo2.png (new), torzo3.png (new), traviciTrakt.png (new), traviciTrakt03.png (new), traviciTrakt2.png (new), tukovaBunka.png (new), upperBodyCirculation.png (new), vagus.png (new), ventilatorCapacitance.png (new), ventilatorInertance.png (new), vlastnostiKrve.png (new), voda.png (new), voda01.png (new), voda03.png (new), vrtule.png (new), vyziva.png (new), water.png (new), waterAndProteins.png (new), zivinyMetabolismus.png (new)
ppriv 2012-08-17 13:19 Rev.: 12561

The 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

214 lines of code changed in 6 files:

  • Compiler/Template: CodegenC.mo (+64 -67), CodegenC.tpl (+34 -33), CodegenCpp.mo (+35 -35), CodegenCpp.tpl (+65 -63)
  • Compiler/susan_codegen: SusanGrammar.txt (+8 -8)
  • Compiler/susan_codegen/doc: Empty_fix_suspicious_template_parts.txt (+8)
ppriv 2012-08-16 12:49 Rev.: 12548

First 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

152 lines of code changed in 1 file:

  • Compiler/susan_codegen/doc: Empty_fix_suspicious_template_parts.txt (new 152)

(29 more)

Generated by StatSVN 0.7.0