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

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
 **********
 **   18 **HESSE 
 **********

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
/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).

/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)

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

948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070581/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070581/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 117.93
user 116.11
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070581/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070581/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070581/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070581/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070581/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070581/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070581/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070581/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070581/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070581/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
 **********
 **   18 **HESSE 
 **********

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070528/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070427/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070528/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:00:21.319069', job_id='40070528', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338421.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:00:21 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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070427/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:00:24.108990', job_id='40070427', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338424.11', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:00:24 PDT 2026

 outfile=/lscratch/kocevski/40070800/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070800/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 15.77
user 15.23
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070800/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40070800/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070800/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070800/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 59.44
user 55.64
sys 3.32

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 159 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070800/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070800/cmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.78
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070800/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070800/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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 1.32
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070800/ft2_4FGL_J2216.9+2421_weekly_bin outfile=/lscratch/kocevski/40070810/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070810/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 18.72
user 17.92
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070810/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40070810/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070810/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070810/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 67.54
user 62.98
sys 3.94

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 159 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070810/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070810/cmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.75
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070810/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070810/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.96
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070810/ft2_4FGL_J2216.9+2421_weekly_bin outfile=/lscratch/kocevski/40070803/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070803/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 19.23
user 18.55
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070803/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40070803/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070803/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070803/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 74.09
user 69.10
sys 4.32

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 159 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070803/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070803/cmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.89
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070803/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070803/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.67
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070803/ft2_4FGL_J2216.9+2421_weekly_bin outfile=/lscratch/kocevski/40070805/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 19.79
user 18.94
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40070805/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070805/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070805/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 73.94
user 68.67
sys 4.45

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 159 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070805/cmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.77
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070805/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.76
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070688/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070688/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 112.05
user 109.95
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070688/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070688/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070688/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070688/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070688/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070688/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070688/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070688/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070688/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070688/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070581/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070581/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:01:19.104105', job_id='40070581', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338479.1', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:01:19 PDT 2026

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

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070688/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070688/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:02:24.617225', job_id='40070688', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338544.62', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:02:24 PDT 2026

948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070800/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 98.83
user 96.96
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070800/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070800/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070800/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070800/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070800/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070800/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070800/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070800/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070800/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
 **********
 **   18 **HESSE 
 **********

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070810/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 111.17
user 108.81
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070810/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070810/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070810/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070810/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070810/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070810/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070810/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070810/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070810/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
number of points = 17454
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2216.9+2421_weekly_bin948
RA = 334.238, Dec = 24.3575
tmin = 812332801, tmax = 812937601
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='40070989', job_status='RUN', time_executed='2026-10-06 18:59:29.166516', time_epoch_executed='1791338369.17' WHERE source_name='4FGL J2216.9+2421' and cadence='weekly' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/40070989

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/40070989/ft1_4FGL_J2216.9+2421_weekly_bin948.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/40070989/ft1_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070989/ft1_filteredMKT_4FGL_J2216.9+2421_weekly_bin948.fits ra=334.238 dec=24.3575 rad=12.0 tmin=812332801.0 tmax=812937601.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 5.74
user 4.94
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.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/40070989/ft1_filteredMKT_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" outfile="/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.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.80
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1925

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits" evtable="EVENTS" scfile=/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA"948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070803/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 120.29
user 118.13
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070803/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070803/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070803/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070803/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070803/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070803/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070803/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070803/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070803/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
 **********
 **   18 **HESSE 
 **********

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070805/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 120.61
user 118.04
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070805/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070805/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070805/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070805/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070805/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070805/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070805/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070805/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070800/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
 **********
 **   18 **HESSE 
 **********

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070800/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:05:02.169657', job_id='40070800', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338702.17', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:05:02 PDT 2026

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

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070810/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070810/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:05:44.876675', job_id='40070810', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338744.88', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:05:45 PDT 2026

 outfile=/lscratch/kocevski/40070989/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 17.89
user 17.10
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits sctable="SC_DATA" expcube=/lscratch/kocevski/40070989/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070989/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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/40070989/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
.....................!
real 66.36
user 61.58
sys 3.98

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 159 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070989/cmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.80
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits scfile=/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits outfile=/lscratch/kocevski/40070989/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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=334.238 yref=24.3575 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.80
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits evtable="EVENTS" scfile=/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_binDone.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070803/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070803/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:06:01.077951', job_id='40070803', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338761.08', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:06:01 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070805/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070805/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:06:18.692767', job_id='40070805', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791338778.69', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:06:19 PDT 2026

948.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/40070989/Model_4FGL_J2216.9+2421_weekly_bin948.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/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits.....................!
real 106.36
user 104.28
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits', '/lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits', expMap='/lscratch/kocevski/40070989/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', expCube='/lscratch/kocevski/40070989/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/40070989/Model_4FGL_J2216.9+2421_weekly_bin948.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/40070989/ft1_filtered_4FGL_J2216.9+2421_weekly_bin948.fits
Spacecraft file(s): /lscratch/kocevski/40070989/ft2_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure map: /lscratch/kocevski/40070989/expmap_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
Exposure cube: /lscratch/kocevski/40070989/ltcube_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/40070989/Model_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.8225099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65741E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.1211       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84193E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5222       1.0000          .0000       .10000E+07
     5 'norm      '    .91666E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51339E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.1509       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.7970       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23011E-05   1.0000          .0000       .10000E+07
    11 'norm      '    2.4758       1.0000          .0000       .10000E+07
    12 'norm      '    .85203       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3610       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      999 TOTAL
                     EDM=   .56E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    28.562       -.26533E-06** at limit **
   2  norm          4.1415        1.8343       -.30100E-09    .33948E-03
   3  Prefactor      .0000        2.0083        .48542E-07** at limit **
   4  Prefactor     .77957        10.860        .20231E-07   -.35016E-02
   5  norm           .0000        3.2039        .54825E-08** at limit **
   6  Prefactor      .0000        8.6642       -.17844E-06** at limit **
   7  norm          1.1527        .63255        .24927E-07   -.15829E-03
   8  Prefactor      .0000        4.4144        .30345E-07** at limit **
   9  norm          1.7938        2.4984       -.15084E-07   -.89477E-04
  10  Prefactor      .0000        5.0574       -.12685E-06** at limit **
  11  norm          2.4748        .76933        .37064E-08   -.14097E-03
  12  norm          .84747        .78535       -.17006E-08   -.90618E-04
  13  Prefactor     .12712E-07    23.646       -.78076E-07** at limit **
  14  Prefactor     2.4740        7.6778       -.15042E-07   -.29437E-04
  15  Prefactor     1.3383        .21022       -.26456E-07    .14659E-03
  16  Normalizat    1.3763        .17261        .12871E-06   -.34985E-06
  17  Prefactor     .82802        .74876E-01   -.44713E-06    .31767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 4.14145
  Prefactor  = 0
  Prefactor  = 0.779566
  norm       = 0
  Prefactor  = 0
  norm       = 1.15268
  Prefactor  = 0
  norm       = 1.79375
  Prefactor  = 0
  norm       = 2.4748
  norm       = 0.847474
  Prefactor  = 1.27121e-08
  Prefactor  = 2.474
  Prefactor  = 1.33827
  Normalizat = 1.37633
  Prefactor  = 0.828018
 **********
 **   18 **HESSE 
 **********

 FCN=   20865.76     FROM HESSE     STATUS=OK           271 CALLS     1270 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    29.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1415        1.9286        .49632E-03   -1.5667    
   3  Prefactor      .0000        2.0085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77957        11.790        .12559E-01   -1.5690    
   5  norm           .0000        .14288        .30053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1527        .65161        .10781E-02   -1.5686    
   8  Prefactor      .0000        4.4181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7938        2.5201        .77968E-03   -1.5681    
  10  Prefactor      .0000        5.1057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4748        .77350        .64953E-03   -1.5677    
  12  norm          .84747        .78992        .49135E-03   -1.5690    
  13  Prefactor     .12712E-07    25.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4740        7.7419        .66669E-03   -1.5677    
  15  Prefactor     1.3383        .21032        .56710E-02   -1.5477    
  16  Normalizat    1.3763        .14611        .76867E-01   -.81316    
  17  Prefactor     .82802        .63091E-01    .44079E-01   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99782e-07
Minuit parameter uncertainties:
  1  0.000565884
  2  1.92857
  3  7.44263e-07
  4  6.06345
  5  1.38649e-07
  6  1.55247e-05
  7  0.651611
  8  8.3228e-07
  9  2.52007
  10  4.336e-06
  11  0.773498
  12  0.789921
  13  0.00114008
  14  7.74189
  15  0.210319
  16  0.146151
  17  0.0630966
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  8.323e-07  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  6.310e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 3.99390885713e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00306172179571 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/40070989/likelihoodResults_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.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) = 20865.7602301
delta logL = -0.000667879881803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20865.7595629
delta logL = -6.15720637143e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39913E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20865.76     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.6986        .42118E-03** at limit **
   2  Index         2.1986        1.2260        .63362E-04     .0000    
   3  Normalizat    1.3763        1.0655        .12399E-05    .11671E-03
   4  Prefactor     .82802        1.1759        .29940E-06    .36279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.19863
  Normalizat = 1.37633
  Prefactor  = 0.828019
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20865.76     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53331        1.7909        .63362E-04   -.59472    
   3  Normalizat    1.3763        1.0655        .12399E-05   -.81316    
   4  Prefactor     .82802        1.1759        .29940E-06   -.98704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.01325e-11
Minuit parameter uncertainties:
  1  1.23981e-05
  2  1.24464
  3  1.08344
  4  1.21482
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) = 20865.7595622
delta logL = -1.45519152284e-11

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.240e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.199e+00  1.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.280e-01  1.215e+00  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.376e+00  1.083e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 334.238 24.358

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/40070989/cmap_HighResolution_812332801_812937601_4FGL_J2216.9+2421_weekly_bin948.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-03', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2026-10-06 19:10:53.152850', job_id='40070989', GAL2='0.83', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1791339053.15', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='948' AND source_name='4FGL J2216.9+2421' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct  6 19:10:53 PDT 2026

