Failed
tests / 04 testsuite-clang 1/3 / simulation_modelica_parameters.parameterTest15.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ parameterTest15 ... equation mismatch [time: 0] ==== Log /tmp/omc-rtest-omtmpuser/simulation/modelica/parameters/parameterTest15.mos_temp1568/log-parameterTest15.mos true "" true BEGINNING of preOptModule 'evaluateParameters' ******************************************************************************** ######################################## DAE before evaluating parameters ######################################## unknown partition ======================================== no matching BackendDAEType: simulation Known variables only depending on parameters and constants - globalKnownVars (12) ======================================== 1: pr2:PARAM(protected = true ) = pr1 type: Integer 2: pr1:PARAM(protected = true ) = 5 type: Integer 3: p8:PARAM(start = 2 * p3 ) type: Integer 4: p7:PARAM(start = 1 final = true ) type: Integer 5: p6:PARAM(final = true ) = p5 type: Integer 6: p5:PARAM(final = true ) = 1 type: Integer 7: p4:PARAM(fixed = false ) type: Integer 8: p3:PARAM() = 5 type: Integer 9: c2:CONST() = 5 type: Integer 10: c1:CONST() = 5 type: Integer 11: p2:PARAM() = p1 type: Integer 12: p1:PARAM() = 1 type: Integer Structural parameters and parameters with annotation(Evaluate=true) will be evaluated. START evaluating parameters: ================================================================================ Number of parameters: 12 Number of parameters selected for evaluation: 0 Selected parameters for evaluation: Adjacency Matrix (row: equation) ======================================== number of rows: 12 1: 2 2: 3: 8 4: 5: 6 6: 7: 8: 9: 10: 11: 12 12: Transposed Adjacency Matrix (row: variable) ======================================== number of rows: 12 1: 1 2: 2 1 3: 3 4: 4 5: 5 6: 6 5 7: 7 8: 8 3 9: 9 10: 10 11: 11 12: 12 11 After evaluating the selected parameters: ================================================================================ All replacements: Replacements: (0) ======================================== Replacements that will be replaced in the DAE: Replacements: (0) ======================================== globalKnownVars (12) ======================================== 1: pr2:PARAM(protected = true ) = pr1 type: Integer 2: pr1:PARAM(protected = true ) = 5 type: Integer 3: p8:PARAM(start = 2 * p3 ) type: Integer 4: p7:PARAM(start = 1 final = true ) type: Integer 5: p6:PARAM(final = true ) = p5 type: Integer 6: p5:PARAM(final = true ) = 1 type: Integer 7: p4:PARAM(fixed = false ) type: Integer 8: p3:PARAM() = 5 type: Integer 9: c2:CONST() = 5 type: Integer 10: c1:CONST() = 5 type: Integer 11: p2:PARAM() = p1 type: Integer 12: p1:PARAM() = 1 type: Integer mark: 1 markarr: -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 After sorting parameters: ================================================================================ Order: 12 11 10 9 8 7 6 5 4 3 2 1 After replacing the evaluated parameters in parameter bindings: ================================================================================ All replacements: Replacements: (2) ======================================== p5 -> 1 p6 -> 1 Replacements that will be replaced in the DAE: Replacements: (2) ======================================== p5 -> 1 p6 -> 1 globalKnownVars (12) ======================================== 1: pr2:PARAM(protected = true ) = pr1 type: Integer 2: pr1:PARAM(protected = true ) = 5 type: Integer 3: p8:PARAM(start = 2 * p3 ) type: Integer 4: p7:PARAM(start = 1 final = true ) type: Integer 5: p6:PARAM(final = true ) = 1 type: Integer 6: p5:PARAM(final = true ) = 1 type: Integer 7: p4:PARAM(fixed = false ) type: Integer 8: p3:PARAM() = 5 type: Integer 9: c2:CONST() = 5 type: Integer 10: c1:CONST() = 5 type: Integer 11: p2:PARAM() = p1 type: Integer 12: p1:PARAM() = 1 type: Integer mark: 1 markarr: -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 After replacing the evaluated parameters in variable bindings and start attributes: ================================================================================ All replacements: Replacements: (2) ======================================== p5 -> 1 p6 -> 1 Replacements that will be replaced in the DAE: Replacements: (2) ======================================== p5 -> 1 p6 -> 1 globalKnownVars (12) ======================================== 1: pr2:PARAM(protected = true ) = pr1 type: Integer 2: pr1:PARAM(protected = true ) = 5 type: Integer 3: p8:PARAM(start = 2 * p3 ) type: Integer 4: p7:PARAM(start = 1 final = true ) type: Integer 5: p6:PARAM(final = true ) = 1 type: Integer 6: p5:PARAM(final = true ) = 1 type: Integer 7: p4:PARAM(fixed = false ) type: Integer 8: p3:PARAM() = 5 type: Integer 9: c2:CONST() = 5 type: Integer 10: c1:CONST() = 5 type: Integer 11: p2:PARAM() = p1 type: Integer 12: p1:PARAM() = 1 type: Integer mark: 1 markarr: -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 ######################################## DAE after replacing the evaluated parameters ######################################## unknown partition ======================================== no matching BackendDAEType: simulation Known variables only depending on parameters and constants - globalKnownVars (12) ======================================== 1: pr2:PARAM(protected = true ) = pr1 type: Integer 2: pr1:PARAM(protected = true ) = 5 type: Integer 3: p8:PARAM(start = 2 * p3 ) type: Integer 4: p7:PARAM(start = 1 final = true ) type: Integer 5: p6:PARAM(final = true ) = 1 type: Integer 6: p5:PARAM(final = true ) = 1 type: Integer 7: p4:PARAM(fixed = false ) type: Integer 8: p3:PARAM() = 5 type: Integer 9: c2:CONST() = 5 type: Integer 10: c1:CONST() = 5 type: Integer 11: p2:PARAM() = p1 type: Integer 12: p1:PARAM() = 1 type: Integer END of preOptModule 'evaluateParameters' ******************************************************************************** record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'parameterTest15', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=p1,p2,p3'", messages = "Failed to build model: parameterTest15" end SimulationResult; "[<interactive>:12:3-12:36:writable] Warning: Parameter p8 has no binding, and is fixed during initialization (fixed=true), using available start value (start=2 * p3) as default value. [<interactive>:11:3-11:39:writable] Warning: Parameter p7 has no binding, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. [BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type Integer has no default start value. Error: No system for the symbolic initialization was generated " /bin/sh: 1: ./parameterTest15: not found 127 "" Equation mismatch: diff says: --- /tmp/omc-rtest-omtmpuser/simulation/modelica/parameters/parameterTest15.mos_temp1568/equations-expected2024-04-20 01:41:51.324327935 +0000 +++ /tmp/omc-rtest-omtmpuser/simulation/modelica/parameters/parameterTest15.mos_temp1568/equations-got2024-04-20 01:41:51.464330978 +0000 @@ -232,23 +232,17 @@ END of preOptModule 'evaluateParameters' ******************************************************************************** record SimulationResult -resultFile = "parameterTest15_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'parameterTest15', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=p1,p2,p3'", -messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -time=1,p1=1,p2=1,p3=5 -LOG_SUCCESS | info | The simulation finished successfully. -" +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'parameterTest15', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=p1,p2,p3'", +messages = "Failed to build model: parameterTest15" end SimulationResult; "[<interactive>:12:3-12:36:writable] Warning: Parameter p8 has no binding, and is fixed during initialization (fixed=true), using available start value (start=2 * p3) as default value. [<interactive>:11:3-11:39:writable] Warning: Parameter p7 has no binding, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. -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 Integer has no default start value. +Error: No system for the symbolic initialization was generated " -LOG_STDOUT | warning | It is not possible to override the following quantity: p2 -| | | | It seems to be structural, final, protected or evaluated or has a non-constant binding. -LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -time=1,p1=2,p2=2,p3=10 -LOG_SUCCESS | info | The simulation finished successfully. -0 +/bin/sh: 1: ./parameterTest15: not found +127 "" Equation mismatch: omc-diff says: Failed 'p' '"' Line 237: Text differs: expected: resultFile = "parameterTest got: resultFile = "", == 1 out of 1 tests failed [simulation/modelica/parameters/parameterTest15.mos_temp1568, time: 0]