Failed
tests / 03 testsuite-gcc 3/3 / openmodelica_linearization.simNonlinear.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ nonlinsys linearization ... equation mismatch [time: 0] ==== Log /tmp/omc-rtest-omtmpuser/openmodelica/linearization/simNonlinear.mos_temp1425/log-simNonlinear.mos true true "" record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'p.nonlinsys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "Failed to run the linearize command: p.nonlinsys" end SimulationResult; "[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 " false "" record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'linearized_model', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "Simulation Failed. Model: linearized_model does not exist! Please load it first before simulation." end SimulationResult; "" "" true "Error: Error opening file: linearized_model.log: No such file or directory. " record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'p.nonlinsys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-l=0 -l_datarec'", messages = "Failed to build model: p.nonlinsys" end SimulationResult; "[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 " false "" record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'linearized_model', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "Simulation Failed. Model: linearized_model does not exist! Please load it first before simulation." end SimulationResult; "" "" Equation mismatch: diff says: --- /tmp/omc-rtest-omtmpuser/openmodelica/linearization/simNonlinear.mos_temp1425/equations-expected2024-04-20 01:50:53.548045623 +0000 +++ /tmp/omc-rtest-omtmpuser/openmodelica/linearization/simNonlinear.mos_temp1425/equations-got2024-04-20 01:50:53.924045639 +0000 @@ -1,111 +1,40 @@ true true "" record SimulationResult -resultFile = "p.nonlinsys_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'p.nonlinsys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", -messages = "LOG_STDOUT | info | Linearization will be performed at point of time: 0.000000 -LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -LOG_STDOUT | info | Linear model is created. -" +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'p.nonlinsys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +messages = "Failed to run the linearize command: p.nonlinsys" 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\"). +"[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 " -true -"model linearized_model \"p_nonlinsys\" -parameter Integer n = 3 \"number of states\"; -parameter Integer m = 1 \"number of inputs\"; -parameter Integer p = 2 \"number of outputs\"; -parameter Real x0[n] = {1, 1, 2}; -parameter Real u0[m] = {0}; -parameter Real A[n, n] = [0, 0, 0; 0, 6, -2; 0, 4, -6]; -parameter Real B[n, m] = [0; 0; 0]; -parameter Real C[p, n] = [0, 0, 0; 0, 0, 0]; -parameter Real D[p, m] = [0; 0]; -Real x[n](start = x0); -input Real u[m](start = u0); -output Real y[p]; -Real 'x_b1.x' = x[1]; -Real 'x_c1.x1' = x[2]; -Real 'x_c1.x2' = x[3]; -Real 'u_u1' = u[1]; -Real 'y_y1' = y[1]; -Real 'y_y2' = y[2]; -equation -der(x) = A*x + B*u; -y = C*x + D*u; -end linearized_model;" +false +"" record SimulationResult -resultFile = "linearized_model_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linearized_model', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", -messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -" +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'linearized_model', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +messages = "Simulation Failed. Model: linearized_model does not exist! Please load it first before simulation." 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\"). -" -"LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -" -true "" -record SimulationResult -resultFile = "p.nonlinsys_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'p.nonlinsys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-l=0 -l_datarec'", -messages = "LOG_STDOUT | info | Linearization will be performed at point of time: 0.000000 -LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -LOG_STDOUT | info | Linear model is created. +"" +true +"Error: Error opening file: linearized_model.log: No such file or directory. " +record SimulationResult +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'p.nonlinsys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-l=0 -l_datarec'", +messages = "Failed to build model: p.nonlinsys" 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\"). +"[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 " -true -"model linearized_model \"p_nonlinsys\" -parameter Integer n = 3 \"number of states\"; -parameter Integer m = 1 \"number of inputs\"; -parameter Integer p = 2 \"number of outputs\"; -parameter Integer nz = 6 \"data recovery variables\"; -parameter Real x0[3] = {1, 1, 2}; -parameter Real u0[1] = {0}; -parameter Real z0[6] = {0, -6, -6, 0, 0, 0}; -parameter Real A[n, n] = [0, 0, 0; 0, 5.999999994797209, -2.000000002708405; 0, 3.999999998752807, -6.000000017010549]; -parameter Real B[n, m] = [0; 0; 0]; -parameter Real C[p, n] = [0, 0, 0; 0, 0, 0]; -parameter Real D[p, m] = [0; 0]; -parameter Real Cz[nz, n] = [0, 0, 0; 0, 9.999999993550016, -8.000000019718954; 0, 9.999999993550016, -8.000000019718954; 0, 0, 0; 0, 0, 0; 0, 0, 0]; -parameter Real Dz[nz, m] = [0; 0; 0; 1; 0; 0]; -Real x[n](start = x0); -input Real u[m](start = u0); -output Real y[p]; -output Real z[nz]; -Real 'x_b1.x' = x[1]; -Real 'x_c1.x1' = x[2]; -Real 'x_c1.x2' = x[3]; -Real 'u_u1' = u[1]; -Real 'y_y1' = y[1]; -Real 'y_y2' = y[2]; -Real 'z_a1.y' = z[1]; -Real 'z_c1.y' = z[2]; -Real 'z_c1.y1' = z[3]; -Real 'z_u1' = z[4]; -Real 'z_y1' = z[5]; -Real 'z_y2' = z[6]; -equation -der(x) = A*x + B*u; -y = C*x + D*u; -z = Cz*x + Dz*u; -end linearized_model;" +false +"" record SimulationResult -resultFile = "linearized_model_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linearized_model', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", -messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -" +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'linearized_model', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +messages = "Simulation Failed. Model: linearized_model does not exist! Please load it first before simulation." 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\"). -" -"LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -" +"" +"" Equation mismatch: omc-diff says: Failed 'p' '"' Line 5: Text differs: expected: resultFile = "p.nonlinsys_res.mat", got: resultFile = "", == 1 out of 1 tests failed [openmodelica/linearization/simNonlinear.mos_temp1425, time: 1]