Failed
tests / 06 testsuite-clang 3/3 / simulation_modelica_synchronous.subSample.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ test_subSample ... equation mismatch [time: 1] ==== Log /tmp/omc-rtest-omtmpuser/simulation/modelica/synchronous/subSample.mos_temp4753/log-subSample.mos true "" true "" synchronous features pre-phase: synchronousFeatures ######################################## clock partitioning (4 partitions) ######################################## continuous time partition ======================================== Variables (3) ======================================== 1: f:VARIABLE() type: Real 2: v:STATE(1)(start = 0.0 fixed = true ) type: Real 3: x:STATE(1)(start = 1.0 fixed = true ) type: Real Equations (3, 3) ======================================== 1/1 (1): f = $getPart(u) [dynamic |0|0|0|0|] 2/2 (1): der(x) = v [dynamic |0|0|0|0|] 3/3 (1): m * der(v) = f + (-k) * x - d * v [dynamic |0|0|0|0|] no matching clocked partition(1) ======================================== Variables (2) ======================================== 1: u:DISCRETE(start = 0.0 ) type: Real 2: vd:DISCRETE() type: Real Equations (2, 2) ======================================== 1/1 (1): vd = $getPart(v) [dynamic |0|0|0|0|] 2/2 (1): u = K * (vref - vd) [dynamic |0|0|0|0|] no matching clocked partition(2) ======================================== Variables (1) ======================================== 1: u2:DISCRETE() type: Real Equations (1, 1) ======================================== 1/1 (1): u2 = $getPart(u) [dynamic |0|0|0|0|] no matching clocked partition(3) ======================================== Variables (1) ======================================== 1: u3:DISCRETE() type: Real Equations (1, 1) ======================================== 1/1 (1): u3 = $getPart(u2) [dynamic |0|0|0|0|] no matching Base clocks (1) ======================================== 1: Clock(0.01)[3] Sub clocks (3) ======================================== 1: factor(1/1) shift(0/1) event(true) 2: factor(2/1) shift(0/1) event(false) 3: factor(6/1) shift(0/1) event(false) synchronous features post-phase: synchronousFeatures ######################################## clock partitioning (4 partitions) ######################################## continuous time partition ======================================== Variables (3) ======================================== 1: f:VARIABLE() type: Real 2: v:STATE(1)(start = 0.0 fixed = true ) type: Real 3: x:STATE(1,v)(start = 1.0 fixed = true ) type: Real Equations (3, 3) ======================================== 1/1 (1): f = $getPart(u) [dynamic |0|0|0|0|] 2/2 (1): der(x) = v [dynamic |0|0|0|0|] 3/3 (1): m * der(v) = f + (-k) * x - d * v [dynamic |0|0|0|0|] Matching ======================================== 3 variables and equations var 1 is solved in eqn 1 var 2 is solved in eqn 3 var 3 is solved in eqn 2 StrongComponents ======================================== {2:3} {1:1} {3:2} clocked partition(1) ======================================== Variables (2) ======================================== 1: u:DISCRETE(start = 0.0 ) type: Real 2: vd:DISCRETE() type: Real Equations (2, 2) ======================================== 1/1 (1): vd = $getPart(v) [dynamic |0|0|0|0|] 2/2 (1): u = K * (vref - vd) [dynamic |0|0|0|0|] no matching clocked partition(2) ======================================== Variables (1) ======================================== 1: u2:DISCRETE() type: Real Equations (1, 1) ======================================== 1/1 (1): u2 = $getPart(u) [dynamic |0|0|0|0|] no matching clocked partition(3) ======================================== Variables (1) ======================================== 1: u3:DISCRETE() type: Real Equations (1, 1) ======================================== 1/1 (1): u3 = $getPart(u2) [dynamic |0|0|0|0|] no matching Base clocks (1) ======================================== 1: Clock(0.01)[3] Sub clocks (3) ======================================== 1: factor(1/1) shift(0/1) event(true) 2: factor(2/1) shift(0/1) event(false) 3: factor(6/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/subSample.mos_temp4753/equations-expected2024-04-20 01:48:05.885914130 +0000 +++ /tmp/omc-rtest-omtmpuser/simulation/modelica/synchronous/subSample.mos_temp4753/equations-got2024-04-20 01:48:06.061909799 +0000 @@ -192,7 +192,9 @@ ======================================== 1: factor(1/1) shift(0/1) event(true) 2: factor(2/1) shift(0/1) event(false) 3: factor(6/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 197: Text differs: expected: true got: false == 1 out of 1 tests failed [simulation/modelica/synchronous/subSample.mos_temp4753, time: 1]