Skip to content

Failed

tests / 01 testsuite-gcc 1/3 / simulation_modelica_commonSubExp.cseFunctionCall3.mos (from (result.xml))

Failing for the past 86 builds (Since #1 )
Took 4 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + cseFunctionCall3                                                                  ... equation mismatch [time: 4]

==== Log /tmp/omc-rtest-unknown/simulation/modelica/commonSubExp/cseFunctionCall3.mos_temp7502/log-cseFunctionCall3.mos
true
""
true
""
true
""



###############################################################
Final Results
###############################################################

########### Updated Variable List (simulation) (8)
========================================
1: d:VARIABLE()  type: Real
2: c:VARIABLE()  type: Real
3: b:VARIABLE()  type: Real
4: a:VARIABLE()  type: Real
5: z:STATE(1)(fixed = true )  type: Real
6: y:STATE(1)(fixed = true )  type: Real
7: x:VARIABLE()  type: Real
8: $cse1:VARIABLE(protected = true )  type: Real unreplaceable


########### Updated Equation List (simulation) (6, 8)
========================================
1/1 (1): der(y) = 2.0 + a   [dynamic |0|0|0|0|]
2/2 (1): der(z) = 2.0 + a   [dynamic |0|0|0|0|]
3/3 (2): (c, d) = (a, b)   [dynamic |0|0|0|0|]
4/5 (2): (a, b) = CSE.functions.f2(time, x)   [unknown |0|0|0|0|]
5/7 (1): $cse1 = cos(time)   [unknown |0|0|0|0|]
6/8 (1): x = sin(time * $cse1)   [unknown |0|0|0|0|]


########### CSE Replacements (3/49)
========================================
1: x - sin(time * $cse1) - {}
2: $cse1 - cos(time) - {}
3: (a, b) - CSE.functions.f2(time, x) - {}



###############################################################
Final Results
###############################################################

########### Updated Variable List (jacobian) (7)
========================================
1: x.$pDERA.dummyVarA:VARIABLE()  type: Real
2: $DER.y.$pDERA.dummyVarA:STATE_DER(fixed = true )  type: Real unreplaceable
3: $DER.z.$pDERA.dummyVarA:STATE_DER(fixed = true )  type: Real unreplaceable
4: b.$pDERA.dummyVarA:VARIABLE()  type: Real
5: $cse5:VARIABLE(protected = true )  type: Real unreplaceable
6: $cse4:VARIABLE(protected = true )  type: Real unreplaceable
7: $cse3:VARIABLE(protected = true )  type: Real unreplaceable


########### Updated Equation List (jacobian) (6, 7)
========================================
1/1 (1): $DER.y.$pDERA.dummyVarA = x.$pDERA.dummyVarA * $cse3   [unknown |0|0|0|0|]
2/2 (1): b.$pDERA.dummyVarA = x.$pDERA.dummyVarA * $cse4   [unknown |0|0|0|0|]
3/3 (1): x.$pDERA.dummyVarA = $cse5 * time * $cse1.$pDERA.dummyVarA   [unknown |0|0|0|0|]
4/4 (1): $DER.y.$pDERA.dummyVarA = $DER.z.$pDERA.dummyVarA   [dynamic |0|0|0|0|]
5/5 (1): $cse5 = cos(time * $cse1)   [unknown |0|0|0|0|]
6/6 (2): ($cse3, $cse4) = $DER$$PCSE$Pfunctions$Pf2(time, x, 0.0, 1.0)   [unknown |0|0|0|0|]


########### Updated globalKnownVars (jacobian) (9)
========================================
1: $cse1.$pDERA.dummyVarA:VARIABLE(protected = true )  = 0.0  type: Real unreplaceable
2: b:VARIABLE()  type: Real
3: a:VARIABLE()  type: Real
4: z:STATE(1)(fixed = true )  type: Real
5: y:STATE(1)(fixed = true )  type: Real
6: x:VARIABLE()  type: Real
7: $cse1:VARIABLE(protected = true )  type: Real unreplaceable
8: input z.SeedA:STATE_DER()  type: Real unreplaceable
9: input y.SeedA:STATE_DER()  type: Real unreplaceable


########### CSE Replacements (2/46)
========================================
1: ($cse3, $cse4) - $DER$$PCSE$Pfunctions$Pf2(time, x, 0.0, 1.0) - {}
2: $cse5 - cos(time * $cse1) - {}
record SimulationResult
    resultFile = "CSE.FunctionCallTest3_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'CSE.FunctionCallTest3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
"
end SimulationResult;
"Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
"

Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/simulation/modelica/commonSubExp/cseFunctionCall3.mos_temp7502/equations-expected2024-01-20 04:09:19.372921588 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/commonSubExp/cseFunctionCall3.mos_temp7502/equations-got2024-01-20 04:09:23.456817174 +0000
@@ -36,13 +36,58 @@
 ########### CSE Replacements (3/49)
 ========================================
 1: x - sin(time * $cse1) - {}
 2: $cse1 - cos(time) - {}
 3: (a, b) - CSE.functions.f2(time, x) - {}
+
+
+
+###############################################################
+Final Results
+###############################################################
+
+########### Updated Variable List (jacobian) (7)
+========================================
+1: x.$pDERA.dummyVarA:VARIABLE()  type: Real
+2: $DER.y.$pDERA.dummyVarA:STATE_DER(fixed = true )  type: Real unreplaceable
+3: $DER.z.$pDERA.dummyVarA:STATE_DER(fixed = true )  type: Real unreplaceable
+4: b.$pDERA.dummyVarA:VARIABLE()  type: Real
+5: $cse5:VARIABLE(protected = true )  type: Real unreplaceable
+6: $cse4:VARIABLE(protected = true )  type: Real unreplaceable
+7: $cse3:VARIABLE(protected = true )  type: Real unreplaceable
+
+
+########### Updated Equation List (jacobian) (6, 7)
+========================================
+1/1 (1): $DER.y.$pDERA.dummyVarA = x.$pDERA.dummyVarA * $cse3   [unknown |0|0|0|0|]
+2/2 (1): b.$pDERA.dummyVarA = x.$pDERA.dummyVarA * $cse4   [unknown |0|0|0|0|]
+3/3 (1): x.$pDERA.dummyVarA = $cse5 * time * $cse1.$pDERA.dummyVarA   [unknown |0|0|0|0|]
+4/4 (1): $DER.y.$pDERA.dummyVarA = $DER.z.$pDERA.dummyVarA   [dynamic |0|0|0|0|]
+5/5 (1): $cse5 = cos(time * $cse1)   [unknown |0|0|0|0|]
+6/6 (2): ($cse3, $cse4) = $DER$$PCSE$Pfunctions$Pf2(time, x, 0.0, 1.0)   [unknown |0|0|0|0|]
+
+
+########### Updated globalKnownVars (jacobian) (9)
+========================================
+1: $cse1.$pDERA.dummyVarA:VARIABLE(protected = true )  = 0.0  type: Real unreplaceable
+2: b:VARIABLE()  type: Real
+3: a:VARIABLE()  type: Real
+4: z:STATE(1)(fixed = true )  type: Real
+5: y:STATE(1)(fixed = true )  type: Real
+6: x:VARIABLE()  type: Real
+7: $cse1:VARIABLE(protected = true )  type: Real unreplaceable
+8: input z.SeedA:STATE_DER()  type: Real unreplaceable
+9: input y.SeedA:STATE_DER()  type: Real unreplaceable
+
+
+########### CSE Replacements (2/46)
+========================================
+1: ($cse3, $cse4) - $DER$$PCSE$Pfunctions$Pf2(time, x, 0.0, 1.0) - {}
+2: $cse5 - cos(time * $cse1) - {}
 record SimulationResult
 resultFile = "CSE.FunctionCallTest3_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'CSE.FunctionCallTest3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
+simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'CSE.FunctionCallTest3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
 messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
 LOG_SUCCESS       | info    | The simulation finished successfully.
 "
 end SimulationResult;
 "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->Show additional information from the initialization process, in OMNotebook call setCommandLineOptions(\"-d=initialization\").

Equation mismatch: omc-diff says:
Line 41: Lexical token differs:
expected: record SimulationResult
got:      


== 1 out of 1 tests failed [simulation/modelica/commonSubExp/cseFunctionCall3.mos_temp7502, time: 4]