Skip to content

Failed

tests / testsuite-gcc / openmodelica_linearization.testSortFunction.mos (from (result.xml))

Failing for the past 8 builds (Since #7 )
Took 0 ms.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + testSortFunction                                                                  ... equation mismatch [time: 0]

==== Log /tmp/omc-rtest-unknown/openmodelica/linearization/testSortFunction.mos_temp3657/log-testSortFunction.mos
false
"Error: Failed to load package Modelica (default) using MODELICAPATH /var/lib/jenkins/workspace/OpenModelica_maintenance_v1.13/build/lib/omlibrary.
"
true
true
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'SortTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to run the linearize command: SortTest"
end SimulationResult;
"[<interactive>:9:3-9:37:writable] Error: Class Modelica.Math.Matrices.sort not found in scope SortTest (looking for a function or record).
Error: Error occurred while flattening model SortTest
"
false
""

Equation mismatch: diff says:
--- /tmp/omc-rtest-unknown/openmodelica/linearization/testSortFunction.mos_temp3657/equations-expected2019-01-10 23:05:11.351358357 +0000
+++ /tmp/omc-rtest-unknown/openmodelica/linearization/testSortFunction.mos_temp3657/equations-got2019-01-10 23:05:11.435357965 +0000
@@ -1,39 +1,15 @@
-true
-""
+false
+"Error: Failed to load package Modelica (default) using MODELICAPATH /var/lib/jenkins/workspace/OpenModelica_maintenance_v1.13/build/lib/omlibrary.
+"
 true
 true
 record SimulationResult
-resultFile = "SortTest_res.mat",
+resultFile = "",
 simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'SortTest', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
-messages = "stdout            | info    | Linearization will performed at point of time: 1.000000
-LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-LOG_SUCCESS       | info    | The simulation finished successfully.
-stdout            | info    | Linear model is created!
-"
+messages = "Failed to run the linearize command: SortTest"
 end SimulationResult;
-"Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization").
+"[<interactive>:9:3-9:37:writable] Error: Class Modelica.Math.Matrices.sort not found in scope SortTest (looking for a function or record).
+Error: Error occurred while flattening model SortTest
 "
-true
-"model linear_SortTest
-parameter Integer n = 1 \"number of states\";
-parameter Integer p = 1 \"number of inputs\";
-parameter Integer q = 4 \"number of outputs\";
-parameter Real x0[n] = {2.801060045691952};
-parameter Real u0[p] = {0};
-parameter Real A[n, n] = [-0.9425769139614838];
-parameter Real B[n, p] = [1];
-parameter Real C[q, n] = [0; 0; 0; -1.878100615247814];
-parameter Real D[q, p] = [1; 0; 0; 0];
-Real x[n](start = x0);
-input Real u[p](start = u0);
-output Real y[q];
-Real 'x_x' = x[1];
-Real 'u_u' = u[1];
-Real 'y_N[1,1]' = y[1];
-Real 'y_N[1,2]' = y[2];
-Real 'y_N[2,1]' = y[3];
-Real 'y_N[2,2]' = y[4];
-equation
-der(x) = A * x + B * u;
-y = C * x + D * u;
-end linear_SortTest;"
+false
+""

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

== 1 out of 1 tests failed [openmodelica/linearization/testSortFunction.mos_temp3657, time: 0]