python3 -m fmpy simulate --output-file MEV_MEV.Simulations.OnOffControl.Scenario6_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 MEV_MEV_Simulations_OnOffControl_Scenario6.fmu LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -6.53592 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -6.48445 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -6.02117 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1742 failed at time=0.94285714497762. | | | | 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[6].valve_out.air.rho) was -0.345817 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -0.335609 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -0.243739 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1742 failed at time=0.942857143281242. | | | | 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 -26.1438 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -26.1438 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -26.1438 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1584 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 -4.26847 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.26847 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.26847 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1584 failed at time=1.41428571458534. | | | | 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 -0.586405 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.347317 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.190714 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0881396 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0209532 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.281058 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.17614 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.107418 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.062405 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0329217 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0136101 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000961013 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.174575 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.11182 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0707149 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0437915 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0261566 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0146057 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00703992 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00208432 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0774012 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.050297 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0325438 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0209154 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0132989 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00831001 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0050423 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00290196 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00150003 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000581767 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0108777 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00711813 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00465558 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00304261 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00198611 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00129411 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000840848 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000543961 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.0003495 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000222128 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000138699 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.40535e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.82605e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.48161e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.46001e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00197415 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00129286 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000846616 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000554327 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000362878 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000237479 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000155342 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000101543 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.63041e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.32228e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.81045e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.82021e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.1716e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -7.46758e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.68488e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.86221e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.66836e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.86389e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.74198e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.87128e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.00115781 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000758302 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000496626 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000325227 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000212961 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000139427 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.12624e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.97144e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.90505e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.55156e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.66503e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.08435e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -7.04002e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.54876e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.91698e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.84817e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.14809e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.89546e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.89198e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.92469e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.3612e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000569827 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000373229 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000244458 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000160113 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.000104867 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.86805e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.49786e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.94538e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.92851e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.26245e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -8.2619e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.40437e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.53269e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.30674e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.50374e-06 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.77779e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -6.33273e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -4.07622e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.5982e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -1.6301e-07 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -9.95989e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -5.80649e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -3.08602e-08 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -0.586407 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 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 -1) in module CVODE, function CVode: At t = 1.41753, mxstep steps taken before reaching tout.