Skip to content

Failed

tests / 02 testsuite-gcc 2/3 / simulation_modelica_commonSubExp.cseFunctionCall1.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

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



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

########### Updated Variable List (simulation) (5)
========================================
1: z:STATE(1)(fixed = true )  type: Real
2: y:STATE(1)(fixed = true )  type: Real
3: x:VARIABLE()  type: Real
4: $cse2:VARIABLE(protected = true )  type: Real unreplaceable
5: $cse1:VARIABLE(protected = true )  type: Real unreplaceable


########### Updated Equation List (simulation) (5, 5)
========================================
1/1 (1): der(y) = $cse2   [dynamic |0|0|0|0|]
2/2 (1): der(z) = $cse2   [dynamic |0|0|0|0|]
3/3 (1): $cse2 = CSE.functions.f1(time, x)   [unknown |0|0|0|0|]
4/4 (1): $cse1 = cos(time)   [unknown |0|0|0|0|]
5/5 (1): x = sin(time * $cse1)   [unknown |0|0|0|0|]


########### CSE Replacements (3/45)
========================================
1: x - sin(time * $cse1) - {}
2: $cse1 - cos(time) - {}
3: $cse2 - CSE.functions.f1(time, x) - {}



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

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


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


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


########### CSE Replacements (2/46)
========================================
1: $cse3 - cos(time * $cse1) - {}
2: $cse4 - $DER$$PCSE$Pfunctions$Pf1(time, x, 0.0, 1.0) - {}
record SimulationResult
    resultFile = "CSE.FunctionCallTest1_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'CSE.FunctionCallTest1', 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/cseFunctionCall1.mos_temp3982/equations-expected2024-01-20 04:08:13.851539860 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/commonSubExp/cseFunctionCall1.mos_temp3982/equations-got2024-01-20 04:08:17.691539841 +0000
@@ -32,13 +32,56 @@
 ########### CSE Replacements (3/45)
 ========================================
 1: x - sin(time * $cse1) - {}
 2: $cse1 - cos(time) - {}
 3: $cse2 - CSE.functions.f1(time, x) - {}
+
+
+
+###############################################################
+Final Results
+###############################################################
+
+########### Updated Variable List (jacobian) (6)
+========================================
+1: $cse2.$pDERA.dummyVarA:VARIABLE(protected = true )  type: Real unreplaceable
+2: x.$pDERA.dummyVarA:VARIABLE()  type: Real
+3: $DER.y.$pDERA.dummyVarA:STATE_DER(fixed = true )  type: Real unreplaceable
+4: $DER.z.$pDERA.dummyVarA:STATE_DER(fixed = true )  type: Real unreplaceable
+5: $cse4:VARIABLE(protected = true )  type: Real unreplaceable
+6: $cse3:VARIABLE(protected = true )  type: Real unreplaceable
+
+
+########### Updated Equation List (jacobian) (6, 6)
+========================================
+1/1 (1): x.$pDERA.dummyVarA = $cse3 * time * $cse1.$pDERA.dummyVarA   [unknown |0|0|0|0|]
+2/2 (1): $cse2.$pDERA.dummyVarA = x.$pDERA.dummyVarA * $cse4   [unknown |0|0|0|0|]
+3/3 (1): $cse2.$pDERA.dummyVarA = $DER.y.$pDERA.dummyVarA   [dynamic |0|0|0|0|]
+4/4 (1): $DER.z.$pDERA.dummyVarA = $DER.y.$pDERA.dummyVarA   [dynamic |0|0|0|0|]
+5/5 (1): $cse4 = $DER$$PCSE$Pfunctions$Pf1(time, x, 0.0, 1.0)   [unknown |0|0|0|0|]
+6/6 (1): $cse3 = cos(time * $cse1)   [unknown |0|0|0|0|]
+
+
+########### Updated globalKnownVars (jacobian) (8)
+========================================
+1: $cse1.$pDERA.dummyVarA:VARIABLE(protected = true )  = 0.0  type: Real unreplaceable
+2: z:STATE(1)(fixed = true )  type: Real
+3: y:STATE(1)(fixed = true )  type: Real
+4: x:VARIABLE()  type: Real
+5: $cse2:VARIABLE(protected = true )  type: Real unreplaceable
+6: $cse1:VARIABLE(protected = true )  type: Real unreplaceable
+7: input z.SeedA:STATE_DER()  type: Real unreplaceable
+8: input y.SeedA:STATE_DER()  type: Real unreplaceable
+
+
+########### CSE Replacements (2/46)
+========================================
+1: $cse3 - cos(time * $cse1) - {}
+2: $cse4 - $DER$$PCSE$Pfunctions$Pf1(time, x, 0.0, 1.0) - {}
 record SimulationResult
 resultFile = "CSE.FunctionCallTest1_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'CSE.FunctionCallTest1', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
+simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'CSE.FunctionCallTest1', 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 37: Lexical token differs:
expected: record SimulationResult
got:      


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