/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 = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1648.0+2221_weekly_bin906
RA = 252.023, Dec = 22.3523
tmin = 786931201, tmax = 787536001
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='17379946', job_status='RUN', time_executed='2025-12-16 02:50:57.575270', time_epoch_executed='1765882257.58' WHERE source_name='4FGL J1648.0+2221' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379946

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17379946/ft1_4FGL_J1648.0+2221_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379946/ft1_4FGL_J1648.0+2221_weekly_bin906.fits outfile=/lscratch/kocevski/17379946/ft1_filteredMKT_4FGL_J1648.0+2221_weekly_bin906.fits ra=252.023 dec=22.3523 rad=12.0 tmin=786931201.0 tmax=787536001.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.64
user 4.89
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.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/17379946/ft1_filteredMKT_4FGL_J1648.0+2221_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.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.86
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1673

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379946/ltcube_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.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/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits
.....................!
real 17.72
user 16.81
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379946/ltcube_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.fits outfile=/lscratch/kocevski/17379946/expmap_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.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/17379946/ltcube_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.fits
.....................!
real 67.43
user 62.90
sys 3.51

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
Added 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1648.0+2221 @ 252.023 22.3523

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits scfile=/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits outfile=/lscratch/kocevski/17379946/cmap_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.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=252.023 yref=22.3523 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.86
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits scfile=/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits outfile=/lscratch/kocevski/17379946/cmap_HighResolution_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.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=252.023 yref=22.3523 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.90
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379946/Model_4FGL_J1648.0+2221_weekly_bin906.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 EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits.....................!
real 48.23
user 46.42
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits', '/lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits', expMap='/lscratch/kocevski/17379946/expmap_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.fits', expCube='/lscratch/kocevski/17379946/ltcube_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379946/Model_4FGL_J1648.0+2221_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1648.0+2221'

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  1.436e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.645e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  6.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379946/ft1_filtered_4FGL_J1648.0+2221_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379946/ft2_4FGL_J1648.0+2221_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379946/expmap_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379946/ltcube_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379946/Model_4FGL_J1648.0+2221_weekly_bin906.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) = 18003.1727494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44960E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.7283       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15273E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.6328       1.0000          .0000       .10000E+07
     5 'Prefactor '    22.943       1.0000          .0000       .10000E+07
     6 'Prefactor '    .51959E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    88.880       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.0860       1.0000          .0000       .10000E+07
     9 'norm      '    .97256       1.0000          .0000       .10000E+07
    10 'norm      '    .43054E-01   1.0000          .0000       .10000E+07
    11 'Normalizat'    .76800       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0632       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18003.17     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      804 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29421E-08    3.6348        .17135E-06** at limit **
   2  Prefactor     8.7003        7.0646        .44370E-06   -.12908E-02
   3  Prefactor     .14433E-08    19.238        .86494E-08** at limit **
   4  Prefactor     6.6336        3.7608        .54281E-07    .17701E-01
   5  Prefactor     22.948        2.3258       -.28650E-06    .57350E-01
   6  Prefactor     .11102E-09    7.5712        .46347E-07** at limit **
   7  Prefactor     88.878        2.9591       -.19329E-06    .19837    
   8  Prefactor     5.0559        6.3638        .17918E-05   -.11667E-02
   9  norm          .97269        1.9458       -.19065E-06   -.12052E-01
  10  norm          .56044E-06    22.939       -.59739E-05** at limit **
  11  Normalizat    .76806        .15987       -.30069E-05   -.32774E-04
  12  Prefactor     1.0633        .80061E-01   -.44090E-06   -.30763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.94209e-09
  Prefactor  = 8.7003
  Prefactor  = 1.44329e-09
  Prefactor  = 6.63356
  Prefactor  = 22.9477
  Prefactor  = 1.11022e-10
  Prefactor  = 88.8778
  Prefactor  = 5.05589
  norm       = 0.972688
  norm       = 5.60441e-07
  Normalizat = 0.768059
  Prefactor  = 1.06328
 **********
 **   18 **HESSE 
 **********

 FCN=   18003.17     FROM HESSE     STATUS=OK           161 CALLS      965 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29421E-08    3.6531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7003        7.0964        .33904E-03   -1.5649    
   3  Prefactor     .14433E-08    2.3365        .10802E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6336        3.8600        .38940E-03   -1.5656    
   5  Prefactor     22.948        16.332        .20883E-03   -1.5612    
   6  Prefactor     .11102E-09    7.5863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     88.878        51.152        .10608E-03   -1.5519    
   8  Prefactor     5.0559        9.3753        .44560E-03   -1.5663    
   9  norm          .97269        1.9509        .42792E-03   -1.5688    
  10  norm          .56044E-06    40.565        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    .76806        .13908        .84134E-01   -1.0126    
  12  Prefactor     1.0633        .68942E-01    .39190E-01   -.90649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8229e-06
Minuit parameter uncertainties:
  1  0.000208256
  2  7.09644
  3  0.000116104
  4  3.85998
  5  16.3317
  6  6.23666e-05
  7  51.152
  8  9.3753
  9  1.95091
  10  0.00953607
  11  0.13914
  12  0.0689477
Done.

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

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  6.634e+00  3.860e+00  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.645e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  6.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  1.063e+00  6.895e-02  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  7.681e-01  1.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.71
Ra Dec: 252.023 22.352
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 7.51e-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) = 18002.9294192
delta logL = 0.243189751494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18002.898566
delta logL = 0.274042963247

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18002.90     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      248 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2618        24.222        .48726E-03    .11973E-01
   2  Index         3.2440        2.4647        .21604        .26126E-03
   3  Normalizat    .73739        .40159E-01    .85699E-01   -.23661E-04
   4  Prefactor     1.0735        .18794E-01    .38704E-01   -.45109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26177
  Index      = 3.24397
  Normalizat = 0.73739
  Prefactor  = 1.07345
 **********
 **   18 **HESSE 
 **********

 FCN=   18002.90     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2618        7.1083        .13257E-04   -1.5667    
   2  Index         3.2440        1.3813        .74552E-02   -.35886    
   3  Normalizat    .73739        .16873        .37953E-03   -1.0243    
   4  Prefactor     1.0735        .81874E-01    .15942E-03   -.90320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03337e-10
Minuit parameter uncertainties:
  1  7.10835
  2  1.40219
  3  0.168848
  4  0.081884
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) = 18002.898562
delta logL = 0.274046949045

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  4.262e+00  7.108e+00  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  3.244e+00  1.402e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  6.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  1.073e+00  8.188e-02  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  7.374e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 252.023 22.352
Photon Index (Free Index): 3.24 +/- 1.40
Photon Flux (Free Index): 7.24e-08 +/- 4.48e-08
Energy Flux (Free Index): 1.30e-05 +/- 6.90e-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/17379946/cmap_HighResolution_786931201_787536001_4FGL_J1648.0+2221_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.30e-05', photon_flux_error='2.98e-08', dlogl='2.74e-01', energy_flux='1.29e-05', photon_flux2='7.24e-08', job_status='DONE', time_completed='2025-12-16 03:01:26.960734', photon_index_error2='1.40', photon_index2='3.24', ts='4.71', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='6.90e-06', EG='0.77', time_epoch_completed='1765882886.96', return_code='0', job_id='17379946', GAL2='1.07', EG2='0.74', return_code2='0', energy_flux_error='7.51e-06', photon_flux_error2='4.48e-08', ts2='5.37', photon_index='2.64' WHERE bin_id='906' AND source_name='4FGL J1648.0+2221' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:01:27 PST 2025

