﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3605	Translation fails for Noise example of MSL trunk	martin.otter@…	Lennart Ochel	"Using the nightly build of this morning (OpenModelica-v1.9.4-dev-605-g49a5d9d.exe) and loading MSL from trunk and simulating the example Modelica.Blocks.Examples.NoiseExamples.UniformNoise gives the following translation error:

{{{
[1] 16:19:27 Translation Error
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo: 317:7-317:48]: Interner Fehler BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented)
uniformNoise.localSeed
$PRE.uniformNoise.state[3]
$PRE.uniformNoise.state[2]
$PRE.uniformNoise.state[4]
$PRE.uniformNoise.state[1]
(uniformNoise.r_raw, _) = Modelica.Math.Random.Generators.Xorshift128plus.random({$PRE.uniformNoise.state[1], $PRE.uniformNoise.state[2], $PRE.uniformNoise.state[3], $PRE.uniformNoise.state[4]})
{$PRE.uniformNoise.state[1], $PRE.uniformNoise.state[2], $PRE.uniformNoise.state[3], $PRE.uniformNoise.state[4]} = Modelica.Math.Random.Utilities.initialStateWithXorshift64star(uniformNoise.localSeed, uniformNoise.actualGlobalSeed, 4)

[2] 16:19:27 Translation Error
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo: 328:7-328:48]: Interner Fehler BackendDAETransform.analyseStrongComponentBlock failed
variables:
  uniformNoise.localSeed
  $PRE.uniformNoise.state[3]
  $PRE.uniformNoise.state[2]
  $PRE.uniformNoise.state[4]
  $PRE.uniformNoise.state[1]
equations:
  (uniformNoise.r_raw, _) = Modelica.Math.Random.Generators.Xorshift128plus.random({$PRE.uniformNoise.state[1], $PRE.uniformNoise.state[2], $PRE.uniformNoise.state[3], $PRE.uniformNoise.state[4]})
  {$PRE.uniformNoise.state[1], $PRE.uniformNoise.state[2], $PRE.uniformNoise.state[3], $PRE.uniformNoise.state[4]} = Modelica.Math.Random.Utilities.initialStateWithXorshift64star(uniformNoise.localSeed, uniformNoise.actualGlobalSeed, 4)

[3] 16:19:27 Translation Error
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo: 332:7-332:90]: Interner Fehler function analyseStrongComponentBlock failed

[4] 16:19:27 Translation Error
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo: 202:5-202:89]: Interner Fehler function analyseStrongComponentScalar failed

[5] 16:19:27 Translation Error
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo: 106:7-106:113]: Interner Fehler function strongComponentsScalar failed (sorting strong components)

[6] 16:19:27 Translation Error
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo: 6820:5-6820:89]: Interner Fehler Transformation module sort components failed

[7] 16:19:27 Translation Error
No system for the symbolic initialization was generated
}}}

I do not see that there is the claimed ""discrete equation system"". It seems, OpenModelica does not support the function call
{{{
when ... then
 (r_raw, state) = generator.random(pre(state));
end when;
}}}
"	defect	closed	high	1.9.4	Backend		invalid		Adrian Pop
