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

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


Performing analysis on: 4FGL_J2106.9+2455_weekly_bin825
RA = 316.742, Dec = 24.9327
tmin = 737942401, tmax = 738547201
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='49209274', job_status='RUN', time_executed='2024-05-28 02:15:58.446663', time_epoch_executed='1716887758.45' WHERE source_name='4FGL J2106.9+2455' and cadence='weekly' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/49209274

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/49209274/ft1_4FGL_J2106.9+2455_weekly_bin825.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/49209274/ft1_4FGL_J2106.9+2455_weekly_bin825.fits outfile=/lscratch/kocevski/49209274/ft1_filteredMKT_4FGL_J2106.9+2455_weekly_bin825.fits ra=316.742 dec=24.9327 rad=12.0 tmin=737942401.0 tmax=738547201.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 4.18
user 3.86
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.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/49209274/ft1_filteredMKT_4FGL_J2106.9+2455_weekly_bin825.fits evtable="EVENTS" outfile="/lscratch/kocevski/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.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.44
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 3433

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

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits sctable="SC_DATA" expcube=/lscratch/kocevski/49209274/ltcube_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.fits outfile=/lscratch/kocevski/49209274/expmap_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.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/49209274/ltcube_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.fits
.....................!
real 63.88
user 59.67
sys 3.80

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/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits scfile=/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits outfile=/lscratch/kocevski/49209274/cmap_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.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 0.40
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits scfile=/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits outfile=/lscratch/kocevski/49209274/cmap_HighResolution_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.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.40
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/49209274/Model_4FGL_J2106.9+2455_weekly_bin825.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/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits.....................!
real 199.46
user 197.76
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits', '/lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits', expMap='/lscratch/kocevski/49209274/expmap_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.fits', expCube='/lscratch/kocevski/49209274/ltcube_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/49209274/Model_4FGL_J2106.9+2455_weekly_bin825.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/49209274/ft1_filtered_4FGL_J2106.9+2455_weekly_bin825.fits
Spacecraft file(s): /lscratch/kocevski/49209274/ft2_4FGL_J2106.9+2455_weekly_bin825.fits
Exposure map: /lscratch/kocevski/49209274/expmap_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.fits
Exposure cube: /lscratch/kocevski/49209274/ltcube_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/49209274/Model_4FGL_J2106.9+2455_weekly_bin825.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) = 34344.2554538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9559       1.0000         .10000E-03   10000.    
     2 'norm      '    .72231E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.5209       1.0000          .0000       .10000E+07
     4 'Prefactor '    93.591       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.332       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4021       1.0000          .0000       .10000E+07
     7 'Prefactor '    .80013E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13317E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .18221E-05   1.0000          .0000       .10000E+07
    10 'norm      '    1.1322       1.0000          .0000       .10000E+07
    11 'norm      '    .54968       1.0000          .0000       .10000E+07
    12 'Prefactor '    .37857E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .39926E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .28661       1.0000          .0000       .10000E+07
    15 'Prefactor '    26.484       1.0000          .0000       .10000E+07
    16 'Normalizat'    .95093       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0005       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=   34344.19     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1310 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9535        2.5738        .36045E-06    .12997E-04
   2  norm           .0000        6.2125        .27374E-06** at limit **
   3  Prefactor     3.5157        6.7990        .30040E-06    .13760E-02
   4  Prefactor     95.488        45.706       -.78307E-06   -.78704E-02
   5  Prefactor     10.368        2.7186       -.62098E-07    .17067    
   6  Prefactor     2.4466        8.5839       -.21639E-05    .97055E-04
   7  Prefactor     .78604E-07    11.665        .13549E-06** at limit **
   8  Prefactor      .0000        .70074        .89462E-08** at limit **
   9  norm           .0000        2.1808       -.84222E-07** at limit **
  10  norm          1.1315        .74672       -.12955E-07    .12080E-03
  11  norm          .55518        1.7170        .41244E-07    .16304E-03
  12  Prefactor     .83822E-07    12.072       -.49174E-07** at limit **
  13  norm          .40738E-01    8.4802        .45057E-06** at limit **
  14  Prefactor     .30359        7.2045       -.97933E-07    .32598E-03
  15  Prefactor     26.501        8.4719        .18061E-07    .22390E-01
  16  Normalizat    .94967        .14819        .77502E-05   -.95520E-05
  17  Prefactor     1.0006        .36422E-01   -.12370E-05   -.10804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95355
  norm       = 0
  Prefactor  = 3.51568
  Prefactor  = 95.488
  Prefactor  = 10.3679
  Prefactor  = 2.44662
  Prefactor  = 7.86038e-08
  Prefactor  = 0
  norm       = 0
  norm       = 1.13151
  norm       = 0.555176
  Prefactor  = 8.38218e-08
  norm       = 0.0407382
  Prefactor  = 0.303592
  Prefactor  = 26.5014
  Normalizat = 0.949671
  Prefactor  = 1.00058
 **********
 **   18 **HESSE 
 **********

 FCN=   34344.19     FROM HESSE     STATUS=OK           275 CALLS     1585 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9535        2.5678        .45164E-02   -1.5263    
   2  norm           .0000        6.2473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5157        6.8392        .53851E-03   -1.5670    
   4  Prefactor     95.488        45.680        .10337E-03   -1.5513    
   5  Prefactor     10.368        13.114        .31148E-03   -1.5644    
   6  Prefactor     2.4466        8.5781        .66038E-03   -1.5677    
   7  Prefactor     .78604E-07    13.784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .70141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.0970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1315        .74748        .10966E-02   -1.5687    
  11  norm          .55518        1.7420        .73862E-03   -1.5693    
  12  Prefactor     .83822E-07    13.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40738E-01    .33841        .62930E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .30359        1.2323        .78286E-02   -1.5697    
  15  Prefactor     26.501        17.741        .19435E-03   -1.5605    
  16  Normalizat    .94967        .14363        .12137       -.94736    
  17  Prefactor     1.0006        .34513E-01    .30553E-01   -.92710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40585e-06
Minuit parameter uncertainties:
  1  2.56782
  2  1.41295e-05
  3  6.83923
  4  45.6802
  5  13.1137
  6  8.57811
  7  0.00208165
  8  1.05122e-06
  9  1.64258e-06
  10  0.747479
  11  1.742
  12  0.00215481
  13  0.234828
  14  1.22332
  15  17.7413
  16  0.143685
  17  0.0345136
Done.

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

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  9.549e+01  4.568e+01  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.001e+00  3.451e-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:  9.497e-01  1.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.80
Ra Dec: 316.742 24.933
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 7.18e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 8.84e-06

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): 0
logL (Free Index) = 34344.0324515
delta logL = 0.161793101928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34344.0058675
delta logL = 0.188377136736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.989       1.0000          .0000       .10000E+07
     2 'Index     '    2.9049       1.0000          .0000       10.000    
     3 'Normalizat'    .93576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0024       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34344.01     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.981        56.240        .45297E-05   -.18231E-02
   2  Index         2.9049        .55183        .90744E-02   -.11619E-03
   3  Normalizat    .93574        .14318        .54200E-03   -.87324E-03
   4  Prefactor     1.0024        .36186E-01    .13489E-03   -.30299E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.9808
  Index      = 2.90491
  Normalizat = 0.935741
  Prefactor  = 1.00245
 **********
 **   18 **HESSE 
 **********

 FCN=   34344.01     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.981        50.178        .90594E-06   -1.5531    
   2  Index         2.9049        .49195        .36298E-03   -.43236    
   3  Normalizat    .93574        .14312        .21680E-04   -.95215    
   4  Prefactor     1.0024        .36166E-01    .26979E-04   -.92648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7558e-10
Minuit parameter uncertainties:
  1  50.1779
  2  0.492915
  3  0.143175
  4  0.036167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34344.0058662
delta logL = 0.188378382874

Extracting fit parameters...

4FGL J2106.9+2455
   Spectrum: PowerLaw
443    Prefactor:  7.798e+01  5.018e+01  0.000e+00  1.000e+06 ( 1.000e-13)
444        Index:  2.905e+00  4.929e-01  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.002e+00  3.617e-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:  9.357e-01  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.26
Ra Dec: 316.742 24.933
Photon Index (Free Index): 2.90 +/- 0.49
Photon Flux (Free Index): 8.41e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.76e-05 +/- 8.08e-06

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/49209274/cmap_HighResolution_737942401_738547201_4FGL_J2106.9+2455_weekly_bin825.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.18e-08', energy_flux2='1.76e-05', photon_flux_error='3.43e-08', dlogl='1.88e-01', energy_flux='1.85e-05', photon_flux2='8.41e-08', job_status='DONE', time_completed='2024-05-28 02:28:56.207357', photon_index_error2='0.49', photon_index2='2.90', ts='6.80', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.08e-06', EG='0.95', time_epoch_completed='1716888536.21', return_code='0', job_id='49209274', GAL2='1.00', EG2='0.94', return_code2='0', energy_flux_error='8.84e-06', photon_flux_error2='4.06e-08', ts2='7.26', photon_index='2.62' WHERE bin_id='825' AND source_name='4FGL J2106.9+2455' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 28 02:28:56 PDT 2024

