Skip to content

Failed

tests / 05 testsuite-clang 2/3 / simulation_modelica_synchronous.SynchronousFeatures.VaryingClock.mos (from (result.xml))

Failing for the past 11 builds (Since #10 )
Took 0 ms.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + SynchronousFeatures.VaryingClock                                                  ... equation mismatch [time: 0]

==== Log /tmp/omc-rtest-omtmpuser/simulation/modelica/synchronous/SynchronousFeatures.VaryingClock.mos_temp8850/log-SynchronousFeatures.VaryingClock.mos
true
""
true
""
"class SynchronousFeatures.VaryingClock \"Varying Interval Clocks\"
  Integer nextInterval(start = 1);
  Clock c = Clock(nextInterval, 100);
  Real v(start = 0.2);
  Real d = interval(v);
  Real d0 = 0.01 * /*Real*/(previous(nextInterval));
equation
  when c then
    nextInterval = 1 + previous(nextInterval);
    v = 1.0 + previous(v);
  end when;
end SynchronousFeatures.VaryingClock;
"
""
synchronous features pre-phase: synchronousFeatures


########################################
clock partitioning (1 partitions)
########################################


clocked partition(1)
========================================

Variables (4)
========================================
1: d0:VARIABLE()  type: Real
2: d:VARIABLE()  type: Real
3: v:VARIABLE(start = 0.2 )  type: Real
4: nextInterval:DISCRETE(start = 1 )  type: Integer


Equations (4, 4)
========================================
1/1 (1): d = interval()   [binding |0|0|0|0|]
2/2 (1): d0 = 0.01 * /*Real*/(previous(nextInterval))   [binding |0|0|0|0|]
3/3 (1): v = 1.0 + previous(v)   [dynamic |0|0|0|0|]
4/4 (1): nextInterval = 1 + previous(nextInterval)   [dynamic |0|0|0|0|]


no matching



Base clocks (1)
========================================
1: Clock(nextInterval, 100)[1]


Sub clocks (1)
========================================
1: factor(1/1) shift(0/1)  event(false)

synchronous features post-phase: synchronousFeatures


########################################
clock partitioning (1 partitions)
########################################


clocked partition(1)
========================================

Variables (4)
========================================
1: d0:VARIABLE()  type: Real
2: d:VARIABLE()  type: Real
3: v:CLOCKED_STATE(start = 0.2 fixed = true )  type: Real
4: nextInterval:CLOCKED_STATE(start = 1 fixed = true )  type: Integer


Equations (4, 4)
========================================
1/1 (1): d = interval()   [binding |0|0|0|0|]
2/2 (1): d0 = 0.01 * /*Real*/(previous(nextInterval))   [binding |0|0|0|0|]
3/3 (1): v = 1.0 + previous(v)   [dynamic |0|0|0|0|]
4/4 (1): nextInterval = 1 + previous(nextInterval)   [dynamic |0|0|0|0|]


no matching



Base clocks (1)
========================================
1: Clock(nextInterval, 100)[1]


Sub clocks (1)
========================================
1: factor(1/1) shift(0/1)  event(false)

false
"[BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type Real has no default start value.
Error: No system for the symbolic initialization was generated
"

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/simulation/modelica/synchronous/SynchronousFeatures.VaryingClock.mos_temp8850/equations-expected2024-04-20 01:48:56.023534015 +0000
+++ /tmp/omc-rtest-omtmpuser/simulation/modelica/synchronous/SynchronousFeatures.VaryingClock.mos_temp8850/equations-got2024-04-20 01:48:56.335532808 +0000
@@ -94,7 +94,9 @@
 
 Sub clocks (1)
 ========================================
 1: factor(1/1) shift(0/1)  event(false)
 
-true
-""
+false
+"[BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type Real has no default start value.
+Error: No system for the symbolic initialization was generated
+"

Equation mismatch: omc-diff says:
Failed 't' 'f'
Line 99: Text differs:
expected: true
got:      false

== 1 out of 1 tests failed [simulation/modelica/synchronous/SynchronousFeatures.VaryingClock.mos_temp8850, time: 0]