﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3418	Bad performance of Spice3BenchmarkFourBitBinaryAdder dominating MSL 3.2.1 tests	Adrian Pop	somebody	"The one model `Modelica.Electrical.Spice3.Examples.Spice3BenchmarkFourBitBinaryAdder` dominates the time needed for testing MSL3.2.1 without producing good results.

The C runtime takes 6m40s to simulate that model. Afterwards the verification of 46/47 signals fails. Looking at the results, it appears possible that the C runtime doesn't appropriately adapt to the extreme short `experiment(StopTime=1e-006, Interval=1e-009)`.

The C++ code generation takes 4m3s in the Templates phase (opposed to 20s for C code generation). C++ generates code for 171 algebraic loops (two code files for each of them). Many of the loops have a dimension of 1. See:
{{{
$ grep _dimAEq OMCpp*FourBit*Algloop*.cpp
}}}
Many of those are linear (checked Algloop 825, 920, 938, ...). 

Shouldn't linear algebraic loops of dimension 1 be treated more efficiently?"	defect	new	high	Future	Backend	trunk			Martin Sjölund Rüdiger Franke Niklas Worschech Marcus Walther Willi Braun
