Failed
tests / testsuite-gcc / flattening_modelica_equations.Ticket4157.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ Ticket4157.mos [ticket:4157] ... equation mismatch [time: 0] ==== Log /tmp/omc-rtest-unknown/flattening/modelica/equations/Ticket4157.mos_temp1911/log-Ticket4157.mos false "Error: Failed to load package Modelica (default) using MODELICAPATH /home/jenkins/workspace/OpenModelica_maintenance_v1.13/build/lib/omlibrary. " true "" "[flattening/modelica/equations/Ticket4157.mo:6:6-6:16:writable] Error: Class Complex not found in scope Ticket4157.when_init_complex. Error: Error occurred while flattening model Ticket4157.when_init_complex " "" "[flattening/modelica/equations/Ticket4157.mo:16:6-16:41:writable] Error: Class Complex not found in scope Ticket4157.if_complex_if_expression. Error: Error occurred while flattening model Ticket4157.if_complex_if_expression " Equation mismatch: diff says: --- /tmp/omc-rtest-unknown/flattening/modelica/equations/Ticket4157.mos_temp1911/equations-expected2019-01-25 00:40:47.109968880 +0000 +++ /tmp/omc-rtest-unknown/flattening/modelica/equations/Ticket4157.mos_temp1911/equations-got2019-01-25 00:40:47.193967942 +0000 @@ -1,50 +1,12 @@ +false +"Error: Failed to load package Modelica (default) using MODELICAPATH /home/jenkins/workspace/OpenModelica_maintenance_v1.13/build/lib/omlibrary. +" true "" -true -"function Complex \"Automatically generated record constructor for Complex\" -input Real re; -input Real im; -output Complex res; -end Complex; - -function Complex.'+' \"Inline before index reduction\" \"Add two complex numbers\" -input Complex c1 \"Complex number 1\"; -input Complex c2 \"Complex number 2\"; -output Complex c3 \"= c1 + c2\"; -algorithm -c3 := Complex(c1.re + c2.re, c1.im + c2.im); -end Complex.'+'; - -class Ticket4157.when_init_complex -Real a_re; -Real a_im; -Real Eo.re \"Real part of complex number\"; -Real Eo.im \"Imaginary part of complex number\"; -equation -a_re = 10.0; -a_im = 0.0; -when initial() then -Eo = Complex.'+'(Complex(a_re, a_im), Complex(10.0, 0.0)); -end when; -end Ticket4157.when_init_complex; +"[flattening/modelica/equations/Ticket4157.mo:6:6-6:16:writable] Error: Class Complex not found in scope Ticket4157.when_init_complex. +Error: Error occurred while flattening model Ticket4157.when_init_complex " "" -"function Complex \"Automatically generated record constructor for Complex\" -input Real re; -input Real im; -output Complex res; -end Complex; - -class Ticket4157.if_complex_if_expression -parameter Real E.re = 1.0 \"Real part of complex number\"; -parameter Real E.im = 0.0 \"Imaginary part of complex number\"; -parameter Real Z.re = 0.1 \"Real part of complex number\"; -parameter Real Z.im = 0.1 \"Imaginary part of complex number\"; -Real V.re \"Real part of complex number\"; -Real V.im \"Imaginary part of complex number\"; -parameter Boolean model_type = true; -equation -Complex(E.re - V.re, E.im - V.im) = if model_type then Complex(0.0, 0.0) else Complex(Z.re, Z.im); -end Ticket4157.if_complex_if_expression; +"[flattening/modelica/equations/Ticket4157.mo:16:6-16:41:writable] Error: Class Complex not found in scope Ticket4157.if_complex_if_expression. +Error: Error occurred while flattening model Ticket4157.if_complex_if_expression " -"" Equation mismatch: omc-diff says: Failed 't' 'f' Line 1: Text differs: expected: true got: false == 1 out of 1 tests failed [flattening/modelica/equations/Ticket4157.mos_temp1911, time: 0]