Regression
tests / testsuite-gcc / simulation_modelica_parameters.parameterTest13.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ parameterTest13 ... equation mismatch [time: 4] ==== Log /tmp/omc-rtest-unknown/simulation/modelica/parameters/parameterTest13.mos_temp278/log-parameterTest13.mos true "" true BEGINNING of preOptModule 'evaluateParameters' ******************************************************************************** ######################################## DAE before evaluating parameters ######################################## unknown partition ======================================== Variables (1) ======================================== 1: x:VARIABLE() type: Real Equations (1, 1) ======================================== 1/1 (1): x = /*Real*/(p1 + p2 + p3) [dynamic |0|0|0|0|] Simple Equations (0, 0) ======================================== State Sets ======================================== no matching BackendDAEType: simulation Known variables only depending on parameters and constants - globalKnownVars (6) ======================================== 1: p3:PARAM() = 5 type: Integer 2: p2:PARAM() = if b3 then p1 else p3 type: Integer 3: p1:PARAM() = if b2 then p2 else 0 type: Integer 4: b3:PARAM() = not b1 type: Boolean 5: b2:PARAM(final = true ) = b1 type: Boolean 6: b1:PARAM() = true type: Boolean Known variables only depending on states and inputs - localKnownVars (0) ======================================== External Objects (0) ======================================== Classes of External Objects (0) ======================================== Alias Variables (0) ======================================== Simple Shared Equations (0, 0) ======================================== Initial Equations (0, 0) ======================================== Zero Crossings (0) ======================================== Relations (0) ======================================== Time Events (0) ======================================== Constraints (0) ======================================== Base partitions (0) ======================================== Sub partitions (0) ======================================== Structural parameters and parameters with annotation(Evaluate=true) will be evaluated. START evaluating parameters: ================================================================================ Number of parameters: 6 Number of parameters selected for evaluation: 2 Selected parameters for evaluation: 5,2 Incidence Matrix (row: equation) ======================================== number of rows: 6 1: 2: 4 3 1 3: 5 2 4: 6 5: 6 6: Transposed Incidence Matrix (row: variable) ======================================== number of rows: 6 1: 2 1 2: 3 2 3: 3 2 4: 4 2 5: 5 3 6: 6 5 4 After evaluating the selected parameters: ================================================================================ All replacements: Replacements: (6) ======================================== b1 -> true b2 -> true b3 -> false p1 -> 5 p3 -> 5 p2 -> 5 Replacements that will be replaced in the DAE: Replacements: (6) ======================================== b1 -> true b2 -> true b3 -> false p1 -> 5 p3 -> 5 p2 -> 5 globalKnownVars (6) ======================================== 1: p3:PARAM(final = true ) = 5 type: Integer 2: p2:PARAM(final = true ) = 5 type: Integer 3: p1:PARAM(final = true ) = if b2 then p2 else 0 type: Integer 4: b3:PARAM(final = true ) = not b1 type: Boolean 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean mark: 1 markarr: 1,1,1,1,1,1 After sorting parameters: ================================================================================ Order: 6 5 4 1 3,2 After replacing the evaluated parameters in parameter bindings: ================================================================================ All replacements: Replacements: (6) ======================================== b1 -> true b2 -> true b3 -> false p1 -> 5 p3 -> 5 p2 -> 5 Replacements that will be replaced in the DAE: Replacements: (6) ======================================== b1 -> true b2 -> true b3 -> false p1 -> 5 p3 -> 5 p2 -> 5 globalKnownVars (6) ======================================== 1: p3:PARAM(final = true ) = 5 type: Integer 2: p2:PARAM(final = true ) = 5 type: Integer 3: p1:PARAM(final = true ) = 5 tyUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' pe: Integer 4: b3:PARAM(final = true ) = false type: Boolean 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean mark: 1 markarr: 1,1,1,1,1,1 After replacing the evaluated parameters in variable bindings and start attributes: ================================================================================ All replacements: Replacements: (6) ======================================== b1 -> true b2 -> true b3 -> false p1 -> 5 p3 -> 5 p2 -> 5 Replacements that will be replaced in the DAE: Replacements: (6) ======================================== b1 -> true b2 -> true b3 -> false p1 -> 5 p3 -> 5 p2 -> 5 globalKnownVars (6) ======================================== 1: p3:PARAM(final = true ) = 5 type: Integer 2: p2:PARAM(final = true ) = 5 type: Integer 3: p1:PARAM(final = true ) = 5 type: Integer 4: b3:PARAM(final = true ) = false type: Boolean 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean mark: 1 markarr: 1,1,1,1,1,1 ######################################## DAE after replacing the evaluated parameters ######################################## unknown partition ======================================== Variables (1) ======================================== 1: x:VARIABLE() type: Real Equations (1, 1) ======================================== 1/1 (1): x = 15.0 [dynamic |0|0|0|0|] Simple Equations (0, 0) ======================================== State Sets ======================================== no matching BackendDAEType: simulation Known variables only depending on parameters and constants - globalKnownVars (6) ======================================== 1: p3:PARAM(final = true ) = 5 type: Integer 2: p2:PARAM(final = true ) = 5 type: Integer 3: p1:PARAM(final = true ) = 5 type: Integer 4: b3:PARAM(final = true ) = false type: Boolean 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean Known variables only depending on states and inputs - localKnownVars (0) ======================================== External Objects (0) ======================================== Classes of External Objects (0) ======================================== Alias Variables (0) ======================================== Simple Shared Equations (0, 0) ======================================== Initial Equations (0, 0) ======================================== Zero Crossings (0) ======================================== Relations (0) ======================================== Time Events (0) ======================================== Constraints (0) ======================================== Base partitions (0) ======================================== Sub partitions (0) ======================================== END of preOptModule 'evaluateParameters' ******************************************************************************** record SimulationResult resultFile = "parameterTest13_res.mat", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'parameterTest13', 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; "" Equation mismatch: diff says: --- /tmp/omc-rtest-unknown/simulation/modelica/parameters/parameterTest13.mos_temp278/equations-expected2019-01-23 19:15:24.722806092 +0000 +++ /tmp/omc-rtest-unknown/simulation/modelica/parameters/parameterTest13.mos_temp278/equations-got2019-01-23 19:15:28.246756206 +0000 @@ -199,11 +199,12 @@ globalKnownVars (6) ======================================== 1: p3:PARAM(final = true ) = 5 type: Integer 2: p2:PARAM(final = true ) = 5 type: Integer -3: p1:PARAM(final = true ) = 5 type: Integer +3: p1:PARAM(final = true ) = 5 tyUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' +pe: Integer 4: b3:PARAM(final = true ) = false type: Boolean 5: b2:PARAM(final = true ) = true type: Boolean 6: b1:PARAM(final = true ) = true type: Boolean Equation mismatch: omc-diff says: Failed 'p' 'U' Line 204: Text differs: expected: type: Integer got: tyUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay == 1 out of 1 tests failed [simulation/modelica/parameters/parameterTest13.mos_temp278, time: 4]