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_in.air.rho) was -103.776 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_in.air.rho) was -103.776 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_in.air.rho) was -103.776 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 "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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[1].valve_out.air.rho) was -0.0323679 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0242498 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.33103 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.854983 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.543173 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.338938 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.205164 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.117542 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0601494 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0225573 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.13339 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.74166 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.485075 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.317011 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.20693 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.134826 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0875987 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0566646 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0364027 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0231312 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0144383 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00874452 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00501507 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00257228 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000972252 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.12641 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.73777 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.483213 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.316478 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.207267 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.135734 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0888795 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.05819 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0380883 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0249217 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0162976 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0106488 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.0069488 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00452533 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00293795 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00189822 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00121719 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000771123 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000478946 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.000287571 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.00016222 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -8.01147e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -2.6336e-05 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -1.33103 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 -11.7708 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -11.6844 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -10.907 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1855 failed at time=2.14285714605186. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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 -1.38423 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -1.3671 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -1.21293 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1855 failed at time=2.1428571434961. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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[5].valve_out.air.rho) was -32.9386 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[5].valve_out.air.rho) was -32.7111 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[5].valve_out.air.rho) was -30.6637 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1773 failed at time=2.72727273133873. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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[5].valve_out.air.rho) was -5.61964 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[5].valve_out.air.rho) was -5.57427 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[5].valve_out.air.rho) was -5.16598 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1773 failed at time=2.72727272808595. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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[5].valve_out.air.rho) was -0.155847 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[5].valve_out.air.rho) was -0.146905 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[5].valve_out.air.rho) was -0.0664336 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1773 failed at time=2.72727272743539. | | | | For more information please use -lv LOG_NLS. Exception ignored on calling ctypes callback function: > Traceback (most recent call last): File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/sundials/__init__.py", line 141, in f self.get_dx(NV_DATA_S(ydot), self.nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/fmi2.py", line 505, in getDerivatives return self.fmi2GetDerivatives(self.component, dx, nx) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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 "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/__main__.py", line 4, in main() File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/command_line.py", line 169, in main result = simulate_fmu(args.fmu_filename, File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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 "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-packages/fmpy/simulation.py", line 1059, in simulateME state_event, roots_found, time = solver.step(time, t_next) File "/home/hudson/saved_omc/libraries/.local/lib/python3.10/site-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 = 3.25182, mxstep steps taken before reaching tout.