 **********
 **   18 **HESSE 
 **********

 FCN=   8118.203     FROM HESSE     STATUS=OK           379 CALLS     2066 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.9452        .86821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .99365E-07    61.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.920        12.670        .26763E-03   -1.5633    
   4  Prefactor     .14710E-07    40.631        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4483        4.7866        .54299E-03   -1.5671    
   6  norm          8.3850        5.8563        .34680E-03   -1.5650    
   7  norm          3.3844        4.4255        .55316E-03   -1.5671    
   8  Prefactor     .22204E-09    4.6107        .54948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10658E-07    35.854        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20539E-08    1.1874        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    2.6043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79607        2.1903        .53345E-03   -1.5690    
  13  Prefactor     1.6517        35.655        .96095E-03   -1.5682    
  14  norm          2.0321        1.2715        .72555E-03   -1.5679    
  15  Prefactor     91.176        48.910        .10490E-03   -1.5517    
  16  norm          .92913        1.1451        .43645E-03   -1.5689    
  17  Prefactor     8.8105        10.057        .33648E-03   -1.5649    
  18  norm          3.5578        3.8860        .53519E-03   -1.5670    
  19  Prefactor     .55511E-10    2.2150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88848        .21848        .80395E-01   -.96866    
  21  Prefactor     .85026        .86281E-01    .44371E-01   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17657e-06
Minuit parameter uncertainties:
  1  5.41599e-05
  2  0.00494871
  3  12.6703
  4  0.00154488
  5  4.78657
  6  5.8563
  7  4.42546
  8  6.27602e-05
  9  0.00123789
  10  9.82934e-05
  11  3.07324e-05
  12  2.1903
  13  15.3481
  14  1.27151
  15  48.91
  16  1.14515
  17  10.0574
  18  3.88604
  19  2.23186e-05
  20  0.218698
  21  0.0862949
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248409/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248409/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:03:42.594227', job_id='37248409', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739422.59', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:03:42 PDT 2026

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248449/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248428/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248449/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:03:48.523690', job_id='37248449', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739428.52', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:03:48 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248428/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:03:49.138564', job_id='37248428', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739429.14', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:03:49 PDT 2026


WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7418
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248418/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
Done.


Performing analysis on: 4FGL_J2142.8+1958_daily_bin2202
RA = 325.701, Dec = 19.982
tmin = 810086401, tmax = 810345601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='37248621', job_status='RUN', time_executed='2026-09-06 17:02:34.324650', time_epoch_executed='1788739354.32' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='2202'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37248621

Creating custom pfile directory:
/lscratch/kocevski/37248621/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37248621/ft1_4FGL_J2142.8+1958_daily_bin2202.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37248621/ft1_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248621/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin2202.fits ra=325.701 dec=19.982 rad=12.0 tmin=810086401.0 tmax=810345601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.13
user 1.68
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/37248621/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" outfile="/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.59
user 0.17
sys 0.12

Number of photons that the gtmktime cut: 767

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" outfshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248418/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:04:05.173401', job_id='37248418', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739445.17', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:04:05 PDT 2026

number of points = 7418
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2142.8+1958_daily_bin2202
RA = 325.701, Dec = 19.982
tmin = 810086401, tmax = 810345601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='37248643', job_status='RUN', time_executed='2026-09-06 17:02:50.056989', time_epoch_executed='1788739370.06' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='2202'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37248643

Creating custom pfile directory:
/lscratch/kocevski/37248643/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37248643/ft1_4FGL_J2142.8+1958_daily_bin2202.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37248643/ft1_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248643/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin2202.fits ra=325.701 dec=19.982 rad=12.0 tmin=810086401.0 tmax=810345601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.09
user 1.67
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/37248643/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" outfile="/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.61
user 0.16
sys 0.14

Number of photons that the gtmktime cut: 767

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37248621/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits
.....................!
real 7.29
user 6.75
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" scfile=/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37248621/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248621/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/37248621/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
.....................!
real 59.52
user 55.63
sys 3.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2142.8+1958 @ 325.701 19.982

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits scfile=/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248621/cmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits scfile=/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248621/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=325.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" scfile=/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits snumber of points = 7418
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2142.8+1958_daily_bin2202
RA = 325.701, Dec = 19.982
tmin = 810086401, tmax = 810345601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='37248694', job_status='RUN', time_executed='2026-09-06 17:03:51.866686', time_epoch_executed='1788739431.87' WHERE source_name='4FGL J2142.8+1958' and cadence='daily' and bin_id='2202'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37248694

Creating custom pfile directory:
/lscratch/kocevski/37248694/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37248694/ft1_4FGL_J2142.8+1958_daily_bin2202.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=810086401.0 && nMetStart<810345601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37248694/ft1_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248694/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin2202.fits ra=325.701 dec=19.982 rad=12.0 tmin=810086401.0 tmax=810345601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.68
user 2.06
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/37248694/ft1_filteredMKT_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" outfile="/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.66
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 767

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37248643/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits
.....................!
real 7.58
user 7.07
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" scfile=/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37248643/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248643/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/37248643/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
.....................!
real 59.89
user 55.75
sys 3.55

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2142.8+1958 @ 325.701 19.982

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits scfile=/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248643/cmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.62
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits scfile=/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248643/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=325.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" scfile=/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sile=/lscratch/kocevski/37248694/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits
.....................!
real 8.81
user 8.21
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" scfile=/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37248694/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248694/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/37248694/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
.....................!
real 72.39
user 67.50
sys 4.16

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2142.8+1958 @ 325.701 19.982

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits scfile=/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248694/cmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=325.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits scfile=/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits outfile=/lscratch/kocevski/37248694/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=325.701 yref=19.982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.66
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits evtable="EVENTS" scfile=/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37248621/Model_4FGL_J2142.8+1958_daily_bin2202.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits.....................!
real 39.31
user 37.80
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits', '/lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits', expMap='/lscratch/kocevski/37248621/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits', expCube='/lscratch/kocevski/37248621/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37248621/Model_4FGL_J2142.8+1958_daily_bin2202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.8+1958'

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.708e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37248621/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits
Spacecraft file(s): /lscratch/kocevski/37248621/ft2_4FGL_J2142.8+1958_daily_bin2202.fits
Exposure map: /lscratch/kocevski/37248621/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
Exposure cube: /lscratch/kocevski/37248621/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37248621/Model_4FGL_J2142.8+1958_daily_bin2202.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.25660428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.20664934

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .86219E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10812       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.4654       1.0000          .0000       .10000E+07
     6 'norm      '    8.3450       1.0000          .0000       .10000E+07
     7 'norm      '    3.3446       1.0000          .0000       .10000E+07
     8 'Prefactor '    .44237E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82527E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .32215E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .28616E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .79451       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3138       1.0000          .0000       .10000E+07
    14 'norm      '    2.0312       1.0000          .0000       .10000E+07
    15 'Prefactor '    90.880       1.0000          .0000       .10000E+07
    16 'norm      '    .93092       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.8611       1.0000          .0000       .10000E+07
    18 'norm      '    3.5629       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33874E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .88811       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85049       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1687 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    19.561        .13538E-07** at limit **
   2  Prefactor     .99365E-07    61.023       -.88563E-06** at limit **
   3  Prefactor     13.920        2.5798       -.95862E-07   -.61539E-01
   4  Prefactor     .14710E-07    41.285        .13244E-06** at limit **
   5  Prefactor     3.4483        4.7293       -.70278E-07    .67425E-03
   6  norm          8.3850        5.7992        .29263E-07    .37121E-03
   7  norm          3.3844        4.3979        .11785E-07   -.46043E-03
   8  Prefactor     .22204E-09    69.967       -.19715E-05** at limit **
   9  Prefactor     .10658E-07    35.866        .33324E-08** at limit **
  10  norm          .20539E-08    6.8045        .23100E-06** at limit **
  11  Prefactor     .11102E-09    2.5955       -.29190E-07** at limit **
  12  norm          .79607        2.1788        .39064E-07   -.67745E-03
  13  Prefactor     1.6517        33.398        .20069E-05   -.17787E-02
  14  norm          2.0321        1.2521       -.39782E-07   -.70856E-03
  15  Prefactor     91.176        2.5916        .21632E-07   -.16976    
  16  norm          .92913        1.1341        .21152E-07   -.10050E-02
  17  Prefactor     8.8105        1.9090       -.40735E-07   -.71195E-02
  18  norm          3.5578        3.8789        .41014E-07   -.16021E-02
  19  Prefactor     .55511E-10    2.1844        .12216E-06** at limit **
  20  Normalizat    .88848        .24858        .29658E-05    .31721E-04
  21  Prefactor     .85026        .10313       -.47378E-06    .51650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 9.9365e-08
  Prefactor  = 13.9196
  Prefactor  = 1.47105e-08
  Prefactor  = 3.44833
  norm       = 8.38498
  norm       = 3.38438
  Prefactor  = 2.22045e-10
  Prefactor  = 1.06581e-08
  norm       = 2.05391e-09
  Prefactor  = 1.11022e-10
  norm       = 0.796068
  Prefactor  = 1.65169
  norm       = 2.03207
  Prefactor  = 91.1765
  norm       = 0.929132
  Prefactor  = 8.81055
  norm       = 3.55783
  Prefactor  = 5.55112e-11
  Normalizat = 0.888476
  Prefactor  = 0.850258
ctable="SC_DATA" srcmdl=/lscratch/kocevski/37248643/Model_4FGL_J2142.8+1958_daily_bin2202.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits.....................!
real 39.26
user 37.89
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits', '/lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits', expMap='/lscratch/kocevski/37248643/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits', expCube='/lscratch/kocevski/37248643/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37248643/Model_4FGL_J2142.8+1958_daily_bin2202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.8+1958'

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.708e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37248643/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits
Spacecraft file(s): /lscratch/kocevski/37248643/ft2_4FGL_J2142.8+1958_daily_bin2202.fits
Exposure map: /lscratch/kocevski/37248643/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
Exposure cube: /lscratch/kocevski/37248643/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37248643/Model_4FGL_J2142.8+1958_daily_bin2202.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.25660428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.20664934

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .86219E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10812       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.4654       1.0000          .0000       .10000E+07
     6 'norm      '    8.3450       1.0000          .0000       .10000E+07
     7 'norm      '    3.3446       1.0000          .0000       .10000E+07
     8 'Prefactor '    .44237E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82527E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .32215E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .28616E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .79451       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3138       1.0000          .0000       .10000E+07
    14 'norm      '    2.0312       1.0000          .0000       .10000E+07
    15 'Prefactor '    90.880       1.0000          .0000       .10000E+07
    16 'norm      '    .93092       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.8611       1.0000          .0000       .10000E+07
    18 'norm      '    3.5629       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33874E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .88811       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85049       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **** **********
 **   18 **HESSE 
 **********

 FCN=   8118.203     FROM HESSE     STATUS=OK           379 CALLS     2066 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.9452        .86821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .99365E-07    61.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.920        12.670        .26763E-03   -1.5633    
   4  Prefactor     .14710E-07    40.631        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4483        4.7866        .54299E-03   -1.5671    
   6  norm          8.3850        5.8563        .34680E-03   -1.5650    
   7  norm          3.3844        4.4255        .55316E-03   -1.5671    
   8  Prefactor     .22204E-09    4.6107        .54948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10658E-07    35.854        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20539E-08    1.1874        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    2.6043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79607        2.1903        .53345E-03   -1.5690    
  13  Prefactor     1.6517        35.655        .96095E-03   -1.5682    
  14  norm          2.0321        1.2715        .72555E-03   -1.5679    
  15  Prefactor     91.176        48.910        .10490E-03   -1.5517    
  16  norm          .92913        1.1451        .43645E-03   -1.5689    
  17  Prefactor     8.8105        10.057        .33648E-03   -1.5649    
  18  norm          3.5578        3.8860        .53519E-03   -1.5670    
  19  Prefactor     .55511E-10    2.2150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88848        .21848        .80395E-01   -.96866    
  21  Prefactor     .85026        .86281E-01    .44371E-01   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17657e-06
Minuit parameter uncertainties:
  1  5.41599e-05
  2  0.00494871
  3  12.6703
  4  0.00154488
  5  4.78657
  6  5.8563
  7  4.42546
  8  6.27602e-05
  9  0.00123789
  10  9.82934e-05
  11  3.07324e-05
  12  2.1903
  13  15.3481
  14  1.27151
  15  48.91
  16  1.14515
  17  10.0574
  18  3.88604
  19  2.23186e-05
  20  0.218698
  21  0.0862949
******
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1687 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    19.561        .13538E-07** at limit **
   2  Prefactor     .99365E-07    61.023       -.88563E-06** at limit **
   3  Prefactor     13.920        2.5798       -.95862E-07   -.61539E-01
   4  Prefactor     .14710E-07    41.285        .13244E-06** at limit **
   5  Prefactor     3.4483        4.7293       -.70278E-07    .67425E-03
   6  norm          8.3850        5.7992        .29263E-07    .37121E-03
   7  norm          3.3844        4.3979        .11785E-07   -.46043E-03
   8  Prefactor     .22204E-09    69.967       -.19715E-05** at limit **
   9  Prefactor     .10658E-07    35.866        .33324E-08** at limit **
  10  norm          .20539E-08    6.8045        .23100E-06** at limit **
  11  Prefactor     .11102E-09    2.5955       -.29190E-07** at limit **
  12  norm          .79607        2.1788        .39064E-07   -.67745E-03
  13  Prefactor     1.6517        33.398        .20069E-05   -.17787E-02
  14  norm          2.0321        1.2521       -.39782E-07   -.70856E-03
  15  Prefactor     91.176        2.5916        .21632E-07   -.16976    
  16  norm          .92913        1.1341        .21152E-07   -.10050E-02
  17  Prefactor     8.8105        1.9090       -.40735E-07   -.71195E-02
  18  norm          3.5578        3.8789        .41014E-07   -.16021E-02
  19  Prefactor     .55511E-10    2.1844        .12216E-06** at limit **
  20  Normalizat    .88848        .24858        .29658E-05    .31721E-04
  21  Prefactor     .85026        .10313       -.47378E-06    .51650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 9.9365e-08
  Prefactor  = 13.9196
  Prefactor  = 1.47105e-08
  Prefactor  = 3.44833
  norm       = 8.38498
  norm       = 3.38438
  Prefactor  = 2.22045e-10
  Prefactor  = 1.06581e-08
  norm       = 2.05391e-09
  Prefactor  = 1.11022e-10
  norm       = 0.796068
  Prefactor  = 1.65169
  norm       = 2.03207
  Prefactor  = 91.1765
  norm       = 0.929132
  Prefactor  = 8.81055
  norm       = 3.55783
  Prefactor  = 5.55112e-11
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********

 FCN=   8118.203     FROM HESSE     STATUS=OK           379 CALLS     2066 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.9452        .86821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .99365E-07    61.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.920        12.670        .26763E-03   -1.5633    
   4  Prefactor     .14710E-07    40.631        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4483        4.7866        .54299E-03   -1.5671    
   6  norm          8.3850        5.8563        .34680E-03   -1.5650    
   7  norm          3.3844        4.4255        .55316E-03   -1.5671    
   8  Prefactor     .22204E-09    4.6107        .54948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10658E-07    35.854        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20539E-08    1.1874        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    2.6043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79607        2.1903        .53345E-03   -1.5690    
  13  Prefactor     1.6517        35.655        .96095E-03   -1.5682    
  14  norm          2.0321        1.2715        .72555E-03   -1.5679    
  15  Prefactor     91.176        48.910        .10490E-03   -1.5517    
  16  norm          .92913        1.1451        .43645E-03   -1.5689    
  17  Prefactor     8.8105        10.057        .33648E-03   -1.5649    
  18  norm          3.5578        3.8860        .53519E-03   -1.5670    
  19  Prefactor     .55511E-10    2.2150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88848        .21848        .80395E-01   -.96866    
  21  Prefactor     .85026        .86281E-01    .44371E-01   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17657e-06
Minuit parameter uncertainties:
  1  5.41599e-05
  2  0.00494871
  3  12.6703
  4  0.00154488
  5  4.78657
  6  5.8563
  7  4.42546
  8  6.27602e-05
  9  0.00123789
  10  9.82934e-05
  11  3.07324e-05
  12  2.1903
  13  15.3481
  14  1.27151
  15  48.91
  16  1.14515
  17  10.0574
  18  3.88604
  19  2.23186e-05
  20  0.218698
  21  0.0862949
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248621/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248621/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:07:47.648365', job_id='37248621', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739667.65', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:07:47 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248643/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248643/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:08:03.993940', job_id='37248643', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739683.99', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:08:04 PDT 2026

ctable="SC_DATA" srcmdl=/lscratch/kocevski/37248694/Model_4FGL_J2142.8+1958_daily_bin2202.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits.....................!
real 46.84
user 45.08
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits', '/lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits', expMap='/lscratch/kocevski/37248694/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits', expCube='/lscratch/kocevski/37248694/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37248694/Model_4FGL_J2142.8+1958_daily_bin2202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.8+1958'

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  4.708e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37248694/ft1_filtered_4FGL_J2142.8+1958_daily_bin2202.fits
Spacecraft file(s): /lscratch/kocevski/37248694/ft2_4FGL_J2142.8+1958_daily_bin2202.fits
Exposure map: /lscratch/kocevski/37248694/expmap_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
Exposure cube: /lscratch/kocevski/37248694/ltcube_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37248694/Model_4FGL_J2142.8+1958_daily_bin2202.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.25660428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.20664934

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .86219E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.980       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10812       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.4654       1.0000          .0000       .10000E+07
     6 'norm      '    8.3450       1.0000          .0000       .10000E+07
     7 'norm      '    3.3446       1.0000          .0000       .10000E+07
     8 'Prefactor '    .44237E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .82527E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .32215E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .28616E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .79451       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3138       1.0000          .0000       .10000E+07
    14 'norm      '    2.0312       1.0000          .0000       .10000E+07
    15 'Prefactor '    90.880       1.0000          .0000       .10000E+07
    16 'norm      '    .93092       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.8611       1.0000          .0000       .10000E+07
    18 'norm      '    3.5629       1.0000          .0000       .10000E+07
    19 'Prefactor '    .33874E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .88811       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85049       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1687 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    19.561        .13538E-07** at limit **
   2  Prefactor     .99365E-07    61.023       -.88563E-06** at limit **
   3  Prefactor     13.920        2.5798       -.95862E-07   -.61539E-01
   4  Prefactor     .14710E-07    41.285        .13244E-06** at limit **
   5  Prefactor     3.4483        4.7293       -.70278E-07    .67425E-03
   6  norm          8.3850        5.7992        .29263E-07    .37121E-03
   7  norm          3.3844        4.3979        .11785E-07   -.46043E-03
   8  Prefactor     .22204E-09    69.967       -.19715E-05** at limit **
   9  Prefactor     .10658E-07    35.866        .33324E-08** at limit **
  10  norm          .20539E-08    6.8045        .23100E-06** at limit **
  11  Prefactor     .11102E-09    2.5955       -.29190E-07** at limit **
  12  norm          .79607        2.1788        .39064E-07   -.67745E-03
  13  Prefactor     1.6517        33.398        .20069E-05   -.17787E-02
  14  norm          2.0321        1.2521       -.39782E-07   -.70856E-03
  15  Prefactor     91.176        2.5916        .21632E-07   -.16976    
  16  norm          .92913        1.1341        .21152E-07   -.10050E-02
  17  Prefactor     8.8105        1.9090       -.40735E-07   -.71195E-02
  18  norm          3.5578        3.8789        .41014E-07   -.16021E-02
  19  Prefactor     .55511E-10    2.1844        .12216E-06** at limit **
  20  Normalizat    .88848        .24858        .29658E-05    .31721E-04
  21  Prefactor     .85026        .10313       -.47378E-06    .51650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 9.9365e-08
  Prefactor  = 13.9196
  Prefactor  = 1.47105e-08
  Prefactor  = 3.44833
  norm       = 8.38498
  norm       = 3.38438
  Prefactor  = 2.22045e-10
  Prefactor  = 1.06581e-08
  norm       = 2.05391e-09
  Prefactor  = 1.11022e-10
  norm       = 0.796068
  Prefactor  = 1.65169
  norm       = 2.03207
  Prefactor  = 91.1765
  norm       = 0.929132
  Prefactor  = 8.81055
  norm       = 3.55783
  Prefactor  = 5.55112e-11
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********

 FCN=   8118.203     FROM HESSE     STATUS=OK           379 CALLS     2066 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.9452        .86821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .99365E-07    61.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.920        12.670        .26763E-03   -1.5633    
   4  Prefactor     .14710E-07    40.631        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4483        4.7866        .54299E-03   -1.5671    
   6  norm          8.3850        5.8563        .34680E-03   -1.5650    
   7  norm          3.3844        4.4255        .55316E-03   -1.5671    
   8  Prefactor     .22204E-09    4.6107        .54948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10658E-07    35.854        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20539E-08    1.1874        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    2.6043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79607        2.1903        .53345E-03   -1.5690    
  13  Prefactor     1.6517        35.655        .96095E-03   -1.5682    
  14  norm          2.0321        1.2715        .72555E-03   -1.5679    
  15  Prefactor     91.176        48.910        .10490E-03   -1.5517    
  16  norm          .92913        1.1451        .43645E-03   -1.5689    
  17  Prefactor     8.8105        10.057        .33648E-03   -1.5649    
  18  norm          3.5578        3.8860        .53519E-03   -1.5670    
  19  Prefactor     .55511E-10    2.2150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88848        .21848        .80395E-01   -.96866    
  21  Prefactor     .85026        .86281E-01    .44371E-01   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17657e-06
Minuit parameter uncertainties:
  1  5.41599e-05
  2  0.00494871
  3  12.6703
  4  0.00154488
  5  4.78657
  6  5.8563
  7  4.42546
  8  6.27602e-05
  9  0.00123789
  10  9.82934e-05
  11  3.07324e-05
  12  2.1903
  13  15.3481
  14  1.27151
  15  48.91
  16  1.14515
  17  10.0574
  18  3.88604
  19  2.23186e-05
  20  0.218698
  21  0.0862949
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8118.2028191

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  1.066e-08  1.238e-03  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.795e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  8.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 325.701 19.982
Photon Flux Upper Limit: 3.80513835317e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00280241930211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37248694/likelihoodResults_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8118.21612176
delta logL = -0.0133026592976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8118.20281912
delta logL = -2.36450432567e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .10530E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .88851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      218 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        49.977        .42118E-03** at limit **
   2  Index         1.2621        1.0526        .79182E-03     .0000    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.47927E-04
   4  Prefactor     .85026        1.1973        .17158E-05   -.13918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26209
  Normalizat = 0.888476
  Prefactor  = 0.850258
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8118.203     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        49.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11660        1.3382        .79182E-03   -.84442    
   3  Normalizat    .88848        1.2243       -.57474E-05   -.96866    
   4  Prefactor     .85026        1.1973        .17158E-05   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.75867e-12
Minuit parameter uncertainties:
  1  1.55956e-05
  2  1.07105
  3  1.26619
  4  1.23751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 8118.2028191
delta logL = 1.46428646985e-10

Extracting fit parameters...

4FGL J2142.8+1958
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.560e-05  0.000e+00  1.000e+06 ( 1.000e-15)
277        Index:  1.262e+00  1.071e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  6.137e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.503e-01  1.238e+00  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.885e-01  1.266e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 325.701 19.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/37248694/cmap_HighResolution_810086401_810345601_4FGL_J2142.8+1958_daily_bin2202.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2026-09-06 17:09:48.088601', job_id='37248694', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1788739788.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.46e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='2202' AND source_name='4FGL J2142.8+1958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  6 17:09:48 PDT 2026

