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

 FCN=   14550.75     FROM HESSE     STATUS=OK           265 CALLS     1484 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13570        2.3525        .63837E-01   -1.5634    
   2  norm          .23626E-05    28.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4766        26.944        .63414E-03   -1.5676    
   4  Prefactor     .15419E-05    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3680        31.147        .49993E-03   -1.5666    
   6  Prefactor     33.094        19.620        .17602E-03   -1.5593    
   7  Prefactor     .55511E-10    8.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.0789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0485        3.2006        .44759E-03   -1.5663    
  10  norm          .31236        .75692        .34436E-02   -1.5697    
  11  norm          5.8204        3.5164        .41614E-03   -1.5660    
  12  Prefactor     .23409E-06    47.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .97992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7296        6.0081        .38825E-03   -1.5656    
  15  Prefactor     50.728        27.966        .14203E-03   -1.5566    
  16  Normalizat    .69705        .22794        .14178       -1.0401    
  17  Prefactor     1.0702        .55365E-01    .38863E-01   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94026e-07
Minuit parameter uncertainties:
  1  1.12967
  2  0.0165181
  3  16.3376
  4  0.013549
  5  23.3281
  6  19.6202
  7  5.29944e-05
  8  8.78077e-07
  9  3.20055
  10  0.756917
  11  3.51642
  12  0.00664617
  13  1.91742e-06
  14  6.00807
  15  27.9663
  16  0.228252
  17  0.055368
/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).

Done.

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

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  1.542e-06  1.355e-02  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.620e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.070e+00  5.537e-02  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  6.971e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 316.742 24.933
Photon Flux Upper Limit: 8.03841853533e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0062985538267 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19661149/likelihoodResults_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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) = 14550.7613484
delta logL = -0.0160979959455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14550.7452504
delta logL = -2.21916707233e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54379E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5144       1.0000          .0000       10.000    
     3 'Normalizat'    .69709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14550.75     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16431E-07    3.2517        .42118E-03** at limit **
   2  Index         2.6116        6.1566        .50000        .14097E-08
   3  Normalizat    .69705        .19862E-02    .14178        .54255E-03
   4  Prefactor     1.0702        .51538E-03    .38851E-01    .32286E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64313e-08
  Index      = 2.61159
  Normalizat = 0.697052
  Prefactor  = 1.07016
 **********
 **   18 **HESSE 
 **********

 FCN=   14550.75     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16431E-07    16.414        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6116        8.3312        .50000       -.49802    
   3  Normalizat    .69705        .44402E-02    .62962E-03   -1.0401    
   4  Prefactor     1.0702        .11582E-02    .13361E-03   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29585e-10
Minuit parameter uncertainties:
  1  0.00103904
  2  17740.1
  3  0.00444021
  4  0.00115825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14550.7452504
delta logL = 2.49165168498e-08

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  1.643e-08  1.039e-03  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.612e+00  1.774e+04  0.000e+00  1.000e+01 (-1.000e+00)
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.070e+00  1.158e-03  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  6.971e-01  4.440e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 316.742 24.933

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/19661149/cmap_HighResolution_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2023-07-18 01:42:23.639508', job_id='19661149', GAL2='1.07', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1689669743.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1820' AND source_name='4FGL J2106.9+2455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:42:24 PDT 2023

ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19661658/ft2_4FGL_J2106.9+2455_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19661658/Model_4FGL_J2106.9+2455_daily_bin1820.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 Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source gamma Cygni
Working on...
/lscratch/kocevski/19661658/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits.....................!
real 87.67
user 85.51
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19661658/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits', '/lscratch/kocevski/19661658/ft2_4FGL_J2106.9+2455_daily_bin1820.fits', expMap='/lscratch/kocevski/19661658/expmap_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits', expCube='/lscratch/kocevski/19661658/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19661658/Model_4FGL_J2106.9+2455_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2106.9+2455'

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  6.582e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.620e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19661658/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19661658/ft2_4FGL_J2106.9+2455_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19661658/expmap_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19661658/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19661658/Model_4FGL_J2106.9+2455_daily_bin1820.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) = 14550.8567426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158       1.0000         .10000E-03   10000.    
     2 'norm      '    .17454E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5873       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10946E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.0636       1.0000          .0000       .10000E+07
     6 'Prefactor '    32.284       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64755E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .83994E-06   1.0000          .0000       .10000E+07
     9 'norm      '    5.0418       1.0000          .0000       .10000E+07
    10 'norm      '    .31223       1.0000          .0000       .10000E+07
    11 'norm      '    5.8178       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22740E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .19723E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.6718       1.0000          .0000       .10000E+07
    15 'Prefactor '    49.583       1.0000          .0000       .10000E+07
    16 'Normalizat'    .70060       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14550.75     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1219 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13570        28.646        .77971E-05   -.89786E-05
   2  norm          .23626E-05    15.485       -.97861E-06** at limit **
   3  Prefactor     2.4766        25.642        .20265E-05    .11779E-01
   4  Prefactor     .15419E-05    14.400       -.73780E-06** at limit **
   5  Prefactor     4.3680        3.2026        .13458E-06   -.18043E-01
   6  Prefactor     33.094        19.012       -.52699E-06    .41983E-01
   7  Prefactor     .55511E-10    8.4389        .24683E-06** at limit **
   8  Prefactor      .0000        2.0929        .17535E-07** at limit **
   9  norm          5.0485        3.1980        .29385E-09    .86749E-03
  10  norm          .31236        .66322        .11392E-06   -.16230E-02
  11  norm          5.8204        3.5137        .26398E-06   -.20005E-02
  12  Prefactor     .23409E-06    46.460        .20498E-05** at limit **
  13  norm           .0000        .98323        .11116E-06** at limit **
  14  Prefactor     6.7296        5.9914        .11766E-07    .63498E-03
  15  Prefactor     50.728        7.3592       -.19182E-07    .10672    
  16  Normalizat    .69705        .22733       -.36119E-05    .20640E-04
  17  Prefactor     1.0702        .57256E-01    .81858E-07    .60112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.135704
  norm       = 2.36261e-06
  Prefactor  = 2.47655
  Prefactor  = 1.54188e-06
  Prefactor  = 4.368
  Prefactor  = 33.0939
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 5.04852
  norm       = 0.31236
  norm       = 5.82044
  Prefactor  = 2.34091e-07
  norm       = 0
  Prefactor  = 6.72965
  Prefactor  = 50.7279
  Normalizat = 0.697054
  Prefactor  = 1.07015
 **********
 **   18 **HESSE 
 **********

 FCN=   14550.75     FROM HESSE     STATUS=OK           265 CALLS     1484 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13570        2.3525        .63837E-01   -1.5634    
   2  norm          .23626E-05    28.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4766        26.944        .63414E-03   -1.5676    
   4  Prefactor     .15419E-05    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3680        31.147        .49993E-03   -1.5666    
   6  Prefactor     33.094        19.620        .17602E-03   -1.5593    
   7  Prefactor     .55511E-10    8.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.0789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0485        3.2006        .44759E-03   -1.5663    
  10  norm          .31236        .75692        .34436E-02   -1.5697    
  11  norm          5.8204        3.5164        .41614E-03   -1.5660    
  12  Prefactor     .23409E-06    47.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .97992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7296        6.0081        .38825E-03   -1.5656    
  15  Prefactor     50.728        27.966        .14203E-03   -1.5566    
  16  Normalizat    .69705        .22794        .14178       -1.0401    
  17  Prefactor     1.0702        .55365E-01    .38863E-01   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94026e-07
Minuit parameter uncertainties:
  1  1.12967
  2  0.0165181
  3  16.3376
  4  0.013549
  5  23.3281
  6  19.6202
  7  5.29944e-05
  8  8.78077e-07
  9  3.20055
  10  0.756917
  11  3.51642
  12  0.00664617
  13  1.91742e-06
  14  6.00807
  15  27.9663
  16  0.228252
  17  0.055368
Done.

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

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  1.542e-06  1.355e-02  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.620e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.070e+00  5.537e-02  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  6.971e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 316.742 24.933
Photon Flux Upper Limit: 8.03841853533e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0062985538267 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19661658/likelihoodResults_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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) = 14550.7613484
delta logL = -0.0160979959455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14550.7452504
delta logL = -2.21916707233e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54379E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5144       1.0000          .0000       10.000    
     3 'Normalizat'    .69709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14550.75     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16431E-07    3.2517        .42118E-03** at limit **
   2  Index         2.6116        6.1566        .50000        .14097E-08
   3  Normalizat    .69705        .19862E-02    .14178        .54255E-03
   4  Prefactor     1.0702        .51538E-03    .38851E-01    .32286E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64313e-08
  Index      = 2.61159
  Normalizat = 0.697052
  Prefactor  = 1.07016
 **********
 **   18 **HESSE 
 **********

 FCN=   14550.75     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16431E-07    16.414        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6116        8.3312        .50000       -.49802    
   3  Normalizat    .69705        .44402E-02    .62962E-03   -1.0401    
   4  Prefactor     1.0702        .11582E-02    .13361E-03   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29585e-10
Minuit parameter uncertainties:
  1  0.00103904
  2  17740.1
  3  0.00444021
  4  0.00115825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14550.7452504
delta logL = 2.49165168498e-08

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  1.643e-08  1.039e-03  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.612e+00  1.774e+04  0.000e+00  1.000e+01 (-1.000e+00)
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.070e+00  1.158e-03  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  6.971e-01  4.440e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 316.742 24.933

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/19661658/cmap_HighResolution_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2023-07-18 01:45:07.443864', job_id='19661658', GAL2='1.07', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1689669907.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1820' AND source_name='4FGL J2106.9+2455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:45:08 PDT 2023

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


Performing analysis on: 4FGL_J2106.9+2455_daily_bin1820
RA = 316.742, Dec = 24.9327
tmin = 711072001, tmax = 711331201
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='19662953', job_status='RUN', time_executed='2023-07-18 01:41:47.197854', time_epoch_executed='1689669707.2' WHERE source_name='4FGL J2106.9+2455' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19662953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19662953/ft1_4FGL_J2106.9+2455_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19662953/ft1_4FGL_J2106.9+2455_daily_bin1820.fits outfile=/lscratch/kocevski/19662953/ft1_filteredMKT_4FGL_J2106.9+2455_daily_bin1820.fits ra=316.742 dec=24.9327 rad=12.0 tmin=711072001.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.43
user 1.65
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.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/19662953/ft1_filteredMKT_4FGL_J2106.9+2455_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.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 1.22
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1452

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19662953/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits
.....................!
real 7.79
user 6.83
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19662953/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits outfile=/lscratch/kocevski/19662953/expmap_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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/19662953/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits
.....................!
real 61.31
user 56.72
sys 3.68

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.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 204 point sources and 3 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 J2106.9+2455 @ 316.742 24.9327

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits scfile=/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits outfile=/lscratch/kocevski/19662953/cmap_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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=316.742 yref=24.9327 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.01
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits scfile=/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits outfile=/lscratch/kocevski/19662953/cmap_HighResolution_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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=316.742 yref=24.9327 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.99
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19662953/Model_4FGL_J2106.9+2455_daily_bin1820.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 Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source gamma Cygni
Working on...
/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits.....................!
real 85.46
user 83.27
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits', '/lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits', expMap='/lscratch/kocevski/19662953/expmap_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits', expCube='/lscratch/kocevski/19662953/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19662953/Model_4FGL_J2106.9+2455_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2106.9+2455'

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  6.582e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.620e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19662953/ft1_filtered_4FGL_J2106.9+2455_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19662953/ft2_4FGL_J2106.9+2455_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19662953/expmap_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19662953/ltcube_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19662953/Model_4FGL_J2106.9+2455_daily_bin1820.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) = 14550.8567426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158       1.0000         .10000E-03   10000.    
     2 'norm      '    .17454E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5873       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10946E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.0636       1.0000          .0000       .10000E+07
     6 'Prefactor '    32.284       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64755E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .83994E-06   1.0000          .0000       .10000E+07
     9 'norm      '    5.0418       1.0000          .0000       .10000E+07
    10 'norm      '    .31223       1.0000          .0000       .10000E+07
    11 'norm      '    5.8178       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22740E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .19723E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.6718       1.0000          .0000       .10000E+07
    15 'Prefactor '    49.583       1.0000          .0000       .10000E+07
    16 'Normalizat'    .70060       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14550.75     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1219 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13570        28.646        .77971E-05   -.89786E-05
   2  norm          .23626E-05    15.485       -.97861E-06** at limit **
   3  Prefactor     2.4766        25.642        .20265E-05    .11779E-01
   4  Prefactor     .15419E-05    14.400       -.73780E-06** at limit **
   5  Prefactor     4.3680        3.2026        .13458E-06   -.18043E-01
   6  Prefactor     33.094        19.012       -.52699E-06    .41983E-01
   7  Prefactor     .55511E-10    8.4389        .24683E-06** at limit **
   8  Prefactor      .0000        2.0929        .17535E-07** at limit **
   9  norm          5.0485        3.1980        .29385E-09    .86749E-03
  10  norm          .31236        .66322        .11392E-06   -.16230E-02
  11  norm          5.8204        3.5137        .26398E-06   -.20005E-02
  12  Prefactor     .23409E-06    46.460        .20498E-05** at limit **
  13  norm           .0000        .98323        .11116E-06** at limit **
  14  Prefactor     6.7296        5.9914        .11766E-07    .63498E-03
  15  Prefactor     50.728        7.3592       -.19182E-07    .10672    
  16  Normalizat    .69705        .22733       -.36119E-05    .20640E-04
  17  Prefactor     1.0702        .57256E-01    .81858E-07    .60112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.135704
  norm       = 2.36261e-06
  Prefactor  = 2.47655
  Prefactor  = 1.54188e-06
  Prefactor  = 4.368
  Prefactor  = 33.0939
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 5.04852
  norm       = 0.31236
  norm       = 5.82044
  Prefactor  = 2.34091e-07
  norm       = 0
  Prefactor  = 6.72965
  Prefactor  = 50.7279
  Normalizat = 0.697054
  Prefactor  = 1.07015
 **********
 **   18 **HESSE 
 **********

 FCN=   14550.75     FROM HESSE     STATUS=OK           265 CALLS     1484 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13570        2.3525        .63837E-01   -1.5634    
   2  norm          .23626E-05    28.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4766        26.944        .63414E-03   -1.5676    
   4  Prefactor     .15419E-05    29.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3680        31.147        .49993E-03   -1.5666    
   6  Prefactor     33.094        19.620        .17602E-03   -1.5593    
   7  Prefactor     .55511E-10    8.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.0789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0485        3.2006        .44759E-03   -1.5663    
  10  norm          .31236        .75692        .34436E-02   -1.5697    
  11  norm          5.8204        3.5164        .41614E-03   -1.5660    
  12  Prefactor     .23409E-06    47.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .97992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7296        6.0081        .38825E-03   -1.5656    
  15  Prefactor     50.728        27.966        .14203E-03   -1.5566    
  16  Normalizat    .69705        .22794        .14178       -1.0401    
  17  Prefactor     1.0702        .55365E-01    .38863E-01   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94026e-07
Minuit parameter uncertainties:
  1  1.12967
  2  0.0165181
  3  16.3376
  4  0.013549
  5  23.3281
  6  19.6202
  7  5.29944e-05
  8  8.78077e-07
  9  3.20055
  10  0.756917
  11  3.51642
  12  0.00664617
  13  1.91742e-06
  14  6.00807
  15  27.9663
  16  0.228252
  17  0.055368
Done.

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

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  1.542e-06  1.355e-02  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.620e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.070e+00  5.537e-02  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  6.971e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 316.742 24.933
Photon Flux Upper Limit: 8.03841853533e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0062985538267 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19662953/likelihoodResults_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.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) = 14550.7613484
delta logL = -0.0160979959455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14550.7452504
delta logL = -2.21916707233e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54379E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5144       1.0000          .0000       10.000    
     3 'Normalizat'    .69709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14550.75     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16431E-07    3.2517        .42118E-03** at limit **
   2  Index         2.6116        6.1566        .50000        .14097E-08
   3  Normalizat    .69705        .19862E-02    .14178        .54255E-03
   4  Prefactor     1.0702        .51538E-03    .38851E-01    .32286E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64313e-08
  Index      = 2.61159
  Normalizat = 0.697052
  Prefactor  = 1.07016
 **********
 **   18 **HESSE 
 **********

 FCN=   14550.75     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16431E-07    16.414        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6116        8.3312        .50000       -.49802    
   3  Normalizat    .69705        .44402E-02    .62962E-03   -1.0401    
   4  Prefactor     1.0702        .11582E-02    .13361E-03   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29585e-10
Minuit parameter uncertainties:
  1  0.00103904
  2  17740.1
  3  0.00444021
  4  0.00115825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14550.7452504
delta logL = 2.49165168498e-08

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  1.643e-08  1.039e-03  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.612e+00  1.774e+04  0.000e+00  1.000e+01 (-1.000e+00)
445        Scale:  6.250e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.070e+00  1.158e-03  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  6.971e-01  4.440e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 316.742 24.933

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/19662953/cmap_HighResolution_711072001_711331201_4FGL_J2106.9+2455_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2023-07-18 01:52:40.800572', job_id='19662953', GAL2='1.07', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1689670360.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1820' AND source_name='4FGL J2106.9+2455' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:52:41 PDT 2023

