libcosim icon indicating copy to clipboard operation
libcosim copied to clipboard

Missing lines in the log after simulating for a long time

Open cesarcarc opened this issue 4 years ago • 4 comments

Setup: Using COSIM-CLI Configuration: only with the Damper model as in the attachment (base step-size:0.2) Damper.zip

Actions: Simulate for a long time

Result:

  • When simulating for a long time, the decimals for Time just disappear from the log. At start: image

When we get to 6 digits the decimal just disappears: image NOTE: This will be handled in #618

image

I have not investigated further if this occurs for other timestamps.

cesarcarc avatar Sep 02 '21 06:09 cesarcarc

I'm pretty sure this is the same as #618. The default for C++ output is to print floating-point numbers with 6 digits of precision.

kyllingstad avatar Sep 02 '21 07:09 kyllingstad

I'm pretty sure this is the same as #618. The default for C++ output is to print floating-point numbers with 6 digits of precision.

Yes, you are correct, I had not seen #618 .

I have one additional item in the bug above (the missing entries). I mean for timestamp 100000 there are only 3 entries while the expected would be 5.

cesarcarc avatar Sep 02 '21 07:09 cesarcarc

That is very weird. I'm not sure the two issues are related. I suggest you change the issue title to focus on the problem with missing lines, and then we can deal with the missing decimals under #618.

kyllingstad avatar Sep 02 '21 08:09 kyllingstad

That is very weird. I'm not sure the two issues are related. I suggest you change the issue title to focus on the problem with missing lines, and then we can deal with the missing decimals under #618.

Ok, I agree and I've changed the title.

cesarcarc avatar Sep 02 '21 14:09 cesarcarc