Failed
tests / 01 testsuite-gcc 1/3 / openmodelica_linearization.simTwoTank.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ twoflattankmodel linearization ... equation mismatch [time: 0] ==== Log /tmp/omc-rtest-omtmpuser/openmodelica/linearization/simTwoTank.mos_temp2781/log-simTwoTank.mos true true "" record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'twoflattankmodel', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "Failed to run the linearize command: twoflattankmodel" 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 = 'twoflattankmodel', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-l=0 -l_datarec'", messages = "Failed to build model: twoflattankmodel" 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/simTwoTank.mos_temp2781/equations-expected2024-04-20 01:39:32.682873690 +0000 +++ /tmp/omc-rtest-omtmpuser/openmodelica/linearization/simTwoTank.mos_temp2781/equations-got2024-04-20 01:39:32.826872101 +0000 @@ -1,104 +1,40 @@ true true "" record SimulationResult -resultFile = "twoflattankmodel_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'twoflattankmodel', 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 = 'twoflattankmodel', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +messages = "Failed to run the linearize command: twoflattankmodel" 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 \"twoflattankmodel\" -parameter Integer n = 2 \"number of states\"; -parameter Integer m = 1 \"number of inputs\"; -parameter Integer p = 1 \"number of outputs\"; -parameter Real x0[n] = {2, 1}; -parameter Real u0[m] = {0}; -parameter Real A[n, n] = [-0.5, 0.5; 2, -3]; -parameter Real B[n, m] = [0.5; 0]; -parameter Real C[p, n] = [0, 0.5]; -parameter Real D[p, m] = [0]; -Real x[n](start = x0); -input Real u[m](start = u0); -output Real y[p]; -Real 'x_h1' = x[1]; -Real 'x_h2' = x[2]; -Real 'u_F' = u[1]; -Real 'y_F2' = y[1]; -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 = "twoflattankmodel_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'twoflattankmodel', 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 = 'twoflattankmodel', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-l=0 -l_datarec'", +messages = "Failed to build model: twoflattankmodel" 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 \"twoflattankmodel\" -parameter Integer n = 2 \"number of states\"; -parameter Integer m = 1 \"number of inputs\"; -parameter Integer p = 1 \"number of outputs\"; -parameter Integer nz = 3 \"data recovery variables\"; -parameter Real x0[2] = {2, 1}; -parameter Real u0[1] = {0}; -parameter Real z0[3] = {0, 2, 1}; -parameter Real A[n, n] = [-0.4999999873490973, 0.5000000165041055; 1.999999949396389, -3.000000034050615]; -parameter Real B[n, m] = [0.500000000677101; 0]; -parameter Real C[p, n] = [0, 0.4999999840170964]; -parameter Real D[p, m] = [0]; -parameter Real Cz[nz, n] = [0, 0; 0.9999999746981947, -1.000000033008211; 0, 0.4999999840170964]; -parameter Real Dz[nz, m] = [1; 0; 0]; -Real x[n](start = x0); -input Real u[m](start = u0); -output Real y[p]; -output Real z[nz]; -Real 'x_h1' = x[1]; -Real 'x_h2' = x[2]; -Real 'u_F' = u[1]; -Real 'y_F2' = y[1]; -Real 'z_F' = z[1]; -Real 'z_F1' = z[2]; -Real 'z_F2' = z[3]; -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 't' '"' Line 5: Text differs: expected: resultFile = "twoflattankmodel_res.mat", got: resultFile = "", == 1 out of 1 tests failed [openmodelica/linearization/simTwoTank.mos_temp2781, time: 0]