Starting CodePDE cns1d PDE Test Suite
==========================================
✅ Reference dataset present: /app/data/1D_CFD_Rand_Eta0.1_Zeta0.1_periodic_Train.hdf5
✅ solver.py present and non-empty
📄 Preview of solver.py (first 10 lines):
import numpy as np

def solver(Vx0, density0, pressure0, t_coordinate, eta, zeta):
    """Solves the 1D compressible Navier-Stokes equations for all times in t_coordinate.

    The PDE system is:
        d_t rho + d_x(rho*v) = 0
        rho*(d_t v + v*d_x v) = -d_x p + eta*d_xx v + (zeta+eta/3)*d_x(d_x v)
        d_t[eps + rho*v^2/2] + d_x[(eps + p + rho*v^2/2)*v - v*sigma'] = 0


🧪 Running pytest tests with nRMSE quality evaluation...
============================= test session starts ==============================
platform linux -- Python 3.11.14, pytest-9.0.3, pluggy-1.6.0 -- /usr/local/bin/python3.11
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 1 item

../tests/test_outputs.py::test_nrmse_accuracy ✓ solver function exists and is callable
✓ nRMSE_evaluator.py found
🧪 Running nRMSE evaluator...
data_file: /app/data/1D_CFD_Rand_Eta0.1_Zeta0.1_periodic_Train.hdf5
Command: python /tests/nRMSE_evaluator.py --dataset-path-for-eval /app/data/1D_CFD_Rand_Eta0.1_Zeta0.1_periodic_Train.hdf5 --eta 0.1
nRMSE Evaluator Output:
Loaded data with shape: (100, 101, 1024), (100, 101, 1024), (100, 101, 1024), (101,)
##### Running the solver on the given dataset #####
##### Finished #####
Result summary
nRMSE: nan	| Time: 238.26s	| 

nRMSE Evaluator Errors:
/app/solver.py:65: RuntimeWarning: overflow encountered in square
  E_kin = 0.5 * m**2 / rho_safe
/app/solver.py:70: RuntimeWarning: overflow encountered in multiply
  dm_dt = -ddx4(m*v + p)
/app/solver.py:56: RuntimeWarning: overflow encountered in multiply
  return (-np.roll(f, -2, axis=-1) + 8.0*np.roll(f, -1, axis=-1)
/app/solver.py:56: RuntimeWarning: invalid value encountered in add
  return (-np.roll(f, -2, axis=-1) + 8.0*np.roll(f, -1, axis=-1)
/app/solver.py:57: RuntimeWarning: overflow encountered in multiply
  - 8.0*np.roll(f, 1, axis=-1) + np.roll(f, 2, axis=-1)) * inv_12dx
/app/solver.py:56: RuntimeWarning: invalid value encountered in subtract
  return (-np.roll(f, -2, axis=-1) + 8.0*np.roll(f, -1, axis=-1)
/app/solver.py:71: RuntimeWarning: overflow encountered in multiply
  dE_dt = -ddx4((E + p) * v)
/app/solver.py:86: RuntimeWarning: overflow encountered in square
  heat_source = nu_mom * dv_dx**2
/usr/local/lib/python3.11/site-packages/numpy/fft/_pocketfft.py:101: RuntimeWarning: invalid value encountered in fft
  return ufunc(a, fct, axes=[(axis,), (), (axis,)], out=out)
/app/solver.py:96: RuntimeWarning: invalid value encountered in multiply
  E_hat_new = (E_hat * (1 - 0.5*dt*nu_E_eff*k2) + dt*heat_source_hat) / (1 + 0.5*dt*nu_E_eff*k2)
/app/solver.py:96: RuntimeWarning: invalid value encountered in divide
  E_hat_new = (E_hat * (1 - 0.5*dt*nu_E_eff*k2) + dt*heat_source_hat) / (1 + 0.5*dt*nu_E_eff*k2)
/app/solver.py:66: RuntimeWarning: invalid value encountered in subtract
  E_int = np.maximum(E - E_kin, 1e-12)
/app/solver.py:65: RuntimeWarning: overflow encountered in divide
  E_kin = 0.5 * m**2 / rho_safe
/app/solver.py:64: RuntimeWarning: overflow encountered in divide
  v = m / rho_safe

📊 Parsed Results:
  - nRMSE: nan
  - Time: 238.26s
  - Reference nRMSE threshold: 0.05
  - Continuous reward: 0.000000
  - Legacy threshold result: FAIL
  - Note: non-finite nRMSE receives reward 0
✅ Evaluation completed! nRMSE=nan, reward=0.000000, Time=238.26s
PASSED

=============================== warnings summary ===============================
test_outputs.py::test_nrmse_accuracy
  /usr/local/lib/python3.11/site-packages/_pytest/python.py:170: PytestReturnNotNoneWarning: Test functions should return None, but test_outputs.py::test_nrmse_accuracy returned <class 'tuple'>.
  Did you mean to use `assert` instead of `return`?
  See https://docs.pytest.org/en/stable/how-to/assert.html#return-not-none for more information.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_outputs.py::test_nrmse_accuracy
=================== 1 passed, 1 warning in 239.10s (0:03:59) ===================

📊 Final Evaluation Results:
Evaluation Results
==================
nRMSE: nan	Time: 238.26s	Reward: 0.000000	LegacySuccess: False

Continuous reward:
0
