python3 -m fmpy simulate --output-file MEV_MEV.Simulations.LinearControl.Scenario6_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_Scenario6.fmu LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -36.0539 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -35.8056 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -33.5713 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1899 failed at time=0.827586209005723. | | | | 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[2].valve_out.air.rho) was -6.24917 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -6.19961 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -5.75354 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1899 failed at time=0.827586207318396. | | | | 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[2].valve_out.air.rho) was -0.288231 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -0.278407 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[2].valve_out.air.rho) was -0.189993 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1899 failed at time=0.827586206980931. | | | | 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 -10.152 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -10.0764 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -9.39619 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1858 failed at time=0.857142859478664. | | | | 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.06996 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -1.05493 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[3].valve_out.air.rho) was -0.91961 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1858 failed at time=0.857142857610025. | | | | 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[4].valve_out.air.rho) was -16.2286 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[4].valve_out.air.rho) was -16.1125 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[4].valve_out.air.rho) was -15.0676 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1817 failed at time=0.860869567026254. | | | | 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[4].valve_out.air.rho) was -2.28158 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[4].valve_out.air.rho) was -2.25847 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[4].valve_out.air.rho) was -2.05045 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1817 failed at time=0.860869565579168. | | | | 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[6].valve_out.air.rho) was -14.8967 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -14.7895 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -13.8246 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1735 failed at time=0.942857144977622. | | | | 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[6].valve_out.air.rho) was -2.01798 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -1.99663 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[6].valve_out.air.rho) was -1.80443 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1735 failed at time=0.942857143281244. | | | | 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[10].valve_out.air.rho) was -14.8365 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -14.8365 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -14.8365 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1577 failed at time=1.41428571578382. | | | | 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[10].valve_out.air.rho) was -2.007 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.007 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[10].valve_out.air.rho) was -2.007 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1577 failed at time=1.41428571458536. | | | | 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.873654 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.859928 should be >= 0 LOG_ASSERT | debug | Model error: Argument of sqrt(patients[1].valve_out.air.rho) was -0.736388 should be >= 0 LOG_ASSERT | debug | Solving non-linear system 1940 failed at time=2.00000000471807. | | | | 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 = 2.07426, mxstep steps taken before reaching tout.