python3 -m fmpy simulate --output-file MEV_MEV.Simulations.LinearControl.Scenario2_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 MEV_MEV_Simulations_LinearControl_Scenario2.fmu LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -22.3637 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -22.3637 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -22.3637 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1572 failed at time=1.4142857157838. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 215, in w raise FMICallException(function=fname, status=res) fmpy.fmi1.FMICallException: fmi2GetDerivatives failed with status 3 (error). LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.51241 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.51241 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.51241 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1572 failed at time=1.41428571458533. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 215, in w raise FMICallException(function=fname, status=res) fmpy.fmi1.FMICallException: fmi2GetDerivatives failed with status 3 (error). LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.50725 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.898297 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.49943 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.238173 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0670493 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.373947 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.229398 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.134718 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0727025 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0320825 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00547635 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.214273 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.136226 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0851047 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0516206 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0296885 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.015323 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00591361 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0375434 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0245048 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0159645 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0103707 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0067067 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00430679 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00273485 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00170523 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00103083 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000589092 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000299757 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000110243 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00915767 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00599348 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00392094 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00256342 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00167425 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00109184 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000710364 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000460497 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000296834 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000189634 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000119418 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -7.34272e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.3303e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.35716e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.06475e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.18227e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00454915 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00297854 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00194978 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00127595 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000834585 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000545493 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000356138 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00023211 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000150872 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.76612e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.2808e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.99792e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.50263e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.52322e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.81703e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.6151e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.86284e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.01075e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0026619 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00174316 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00114138 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000747217 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000489041 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000319935 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000209171 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00013662 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.90996e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.79736e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.75861e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.42322e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.54855e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.75636e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.00378e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.54584e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.93589e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.81372e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.90663e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00135565 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000887863 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00058146 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000380766 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000249311 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000163209 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000106811 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.98712e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.56753e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.9827e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.94464e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.26471e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.19354e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.27646e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.36578e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.11428e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.29455e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -7.57626e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.05941e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.75587e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.47057e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000821731 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000538208 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000352501 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000230862 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000151189 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.90034e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.48217e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.24326e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.77678e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.81623e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.18708e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -7.74977e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.05053e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.28252e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.12448e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.36596e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.69134e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.43711e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.30559e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.90944e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.94962e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.95979e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.6462e-10 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.50726 should be >= 0 LOG_STDOUT | warning | While solving non-linear system an assertion failed at time 1.41429. | | | | | The non-linear solver tries to solve the problem that could take some time. | | | | | It could help to provide better start-values for the iteration variables. | | | | | For more information simulate with -lv LOG_NLS_V LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -4.07784 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -2.59278 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.62006 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.982937 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.565619 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.292275 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.113235 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.14186 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.746526 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.487582 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.317974 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.20688 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.134114 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0864523 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0552338 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0347857 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0213921 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0126194 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00687322 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00310949 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000644244 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.13096 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.740445 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.484656 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.317115 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.207376 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.135496 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0884152 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0575771 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0373782 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0241479 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0154821 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00980593 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00608806 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00365286 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0020578 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00101304 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000328723 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.12798 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.738784 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.483862 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.316889 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.207521 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.135885 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0889634 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0582298 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0380993 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0249138 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0162773 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0106204 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00691514 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00448818 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00289853 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00185731 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00117531 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000728597 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000436002 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000244352 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000118821 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -3.65982e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -4.07781 should be >= 0 LOG_STDOUT | warning | While solving non-linear system an assertion failed at time 2. | | | | | The non-linear solver tries to solve the problem that could take some time. | | | | | It could help to provide better start-values for the iteration variables. | | | | | For more information simulate with -lv LOG_NLS_V LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -454.921 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -451.88 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -424.514 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1855 failed at time=2.14285714605187. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 215, in w raise FMICallException(function=fname, status=res) fmpy.fmi1.FMICallException: fmi2GetDerivatives failed with status 3 (error). LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -90.0143 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -89.4063 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -83.9343 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1855 failed at time=2.14285714349611. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 215, in w raise FMICallException(function=fname, status=res) fmpy.fmi1.FMICallException: fmi2GetDerivatives failed with status 3 (error). LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -17.0329 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -16.9115 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -15.8184 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1855 failed at time=2.14285714298496. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 215, in w raise FMICallException(function=fname, status=res) fmpy.fmi1.FMICallException: fmi2GetDerivatives failed with status 3 (error). LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -2.43669 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -2.41254 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -2.19522 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1855 failed at time=2.14285714288273. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/usr/local/lib/python3.10/dist-packages/fmpy/fmi2.py", line 215, in w raise FMICallException(function=fname, status=res) fmpy.fmi1.FMICallException: fmi2GetDerivatives failed with status 3 (error). Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.10/dist-packages/fmpy/__main__.py", line 4, in main() File "/usr/local/lib/python3.10/dist-packages/fmpy/command_line.py", line 167, in main result = simulate_fmu(args.fmu_filename, File "/usr/local/lib/python3.10/dist-packages/fmpy/simulation.py", line 759, in simulate_fmu result = simulateME(model_description, fmu, start_time, stop_time, solver, step_size, relative_tolerance, start_values, apply_default_start_values, input, output, output_interval, record_events, timeout, step_finished, validate, set_stop_time) File "/usr/local/lib/python3.10/dist-packages/fmpy/simulation.py", line 1059, in simulateME state_event, roots_found, time = solver.step(time, t_next) File "/usr/local/lib/python3.10/dist-packages/fmpy/sundials/__init__.py", line 178, in step raise RuntimeError("CVode error (code %s) in module %s, function %s: %s" % self.error_info) RuntimeError: CVode error (code -10) in module CVODE, function CVode: At t = 2.14286 repeated recoverable right-hand side function errors.