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


Performing analysis on: 4FGL_J1648.0+2221_daily_bin2114
RA = 252.023, Dec = 22.3523
tmin = 787276801, 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='17373819', job_status='RUN', time_executed='2025-12-16 01:33:30.684525', time_epoch_executed='1765877610.68' WHERE source_name='4FGL J1648.0+2221' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17373819/ft1_4FGL_J1648.0+2221_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373819/ft1_4FGL_J1648.0+2221_daily_bin2114.fits outfile=/lscratch/kocevski/17373819/ft1_filteredMKT_4FGL_J1648.0+2221_daily_bin2114.fits ra=252.023 dec=22.3523 rad=12.0 tmin=787276801.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 3.03
user 1.95
sys 0.17

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

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

Number of photons that the gtmktime cut: 728

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373819/ltcube_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.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/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits
.....................!
real 8.50
user 7.66
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373819/ltcube_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.fits outfile=/lscratch/kocevski/17373819/expmap_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.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/17373819/ltcube_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.fits
.....................!
real 70.59
user 65.26
sys 4.13

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/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits scfile=/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits outfile=/lscratch/kocevski/17373819/cmap_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.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 1.07
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits scfile=/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits outfile=/lscratch/kocevski/17373819/cmap_HighResolution_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.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 1.10
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373819/Model_4FGL_J1648.0+2221_daily_bin2114.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/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits.....................!
real 25.47
user 23.67
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits', '/lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits', expMap='/lscratch/kocevski/17373819/expmap_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.fits', expCube='/lscratch/kocevski/17373819/ltcube_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373819/Model_4FGL_J1648.0+2221_daily_bin2114.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/17373819/ft1_filtered_4FGL_J1648.0+2221_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17373819/ft2_4FGL_J1648.0+2221_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17373819/expmap_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17373819/ltcube_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373819/Model_4FGL_J1648.0+2221_daily_bin2114.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) = 7801.18728028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40579E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    20.158       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22867E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.9066       1.0000          .0000       .10000E+07
     5 'Prefactor '    25.533       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13953E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    30.278       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.0455       1.0000          .0000       .10000E+07
     9 'norm      '    .33873E-06   1.0000          .0000       .10000E+07
    10 'norm      '    16.571       1.0000          .0000       .10000E+07
    11 'Normalizat'    .72820       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0896       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=   7801.185     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      739 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-09    4.0446       -.49854E-06** at limit **
   2  Prefactor     20.154        1.6720        .10913E-07   -.16338    
   3  Prefactor      .0000        3.6637        .18024E-07** at limit **
   4  Prefactor     7.9048        5.8929       -.89839E-07   -.80055E-03
   5  Prefactor     25.476        5.4092       -.74910E-08   -.11724    
   6  Prefactor      .0000        19.476       -.27225E-06** at limit **
   7  Prefactor     30.399        15.225        .16584E-07   -.11082    
   8  Prefactor     7.0311        14.297       -.93077E-07    .33603E-02
   9  norm          .55511E-10    1.3721       -.15811E-06** at limit **
  10  norm          16.895        40.106        .51903E-07    .14692E-01
  11  Normalizat    .72837        .24379       -.97586E-07   -.14333E-03
  12  Prefactor     1.0895        .12319       -.12338E-05   -.36714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-10
  Prefactor  = 20.154
  Prefactor  = 0
  Prefactor  = 7.90481
  Prefactor  = 25.4758
  Prefactor  = 0
  Prefactor  = 30.3992
  Prefactor  = 7.03114
  norm       = 5.55112e-11
  norm       = 16.8947
  Normalizat = 0.728372
  Prefactor  = 1.08949
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.185     FROM HESSE     STATUS=OK           153 CALLS      892 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    4.0437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.154        12.167        .22280E-03   -1.5618    
   3  Prefactor      .0000        3.6673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9048        5.9970        .35635E-03   -1.5652    
   5  Prefactor     25.476        26.141        .19794E-03   -1.5607    
   6  Prefactor      .0000        19.478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.399        60.922        .18176E-03   -1.5598    
   8  Prefactor     7.0311        14.391        .37770E-03   -1.5655    
   9  norm          .55511E-10    1.3705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.895        42.398        .24577E-03   -1.5626    
  11  Normalizat    .72837        .21277        .86453E-01   -1.0278    
  12  Prefactor     1.0895        .10637        .37997E-01   -.89803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16175e-06
Minuit parameter uncertainties:
  1  8.85032e-05
  2  12.1675
  3  6.53421e-06
  4  5.99705
  5  26.141
  6  4.50995e-05
  7  60.923
  8  14.3915
  9  1.82152e-05
  10  42.3987
  11  0.213012
  12  0.106389
Done.

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

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  7.905e+00  5.997e+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.089e+00  1.064e-01  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.284e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 252.023 22.352
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.11e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.17e-05

TS (Fixed Index): 2.87
Ra Dec: 252.023 22.352
Photon Flux Upper Limit: 1.56676904562e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0122944353653 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17373819/likelihoodResults_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.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): 0
logL (Free Index) = 7801.18129148
delta logL = 0.0038102670751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7801.17838568
delta logL = 0.00671607240474

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7801.178     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4135        7.7585        .13815E-04   -.23527E-02
   2  Index         2.5237        1.0601        .10298E-01   -.46057E-04
   3  Normalizat    .73578        .25143        .38112E-03    .14300E-03
   4  Prefactor     1.0870        .12345        .15960E-03    .50635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.41354
  Index      = 2.52365
  Normalizat = 0.735775
  Prefactor  = 1.08703
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.178     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4135        7.3952        .55262E-06   -1.5650    
   2  Index         2.5237        1.0091        .41194E-03   -.51815    
   3  Normalizat    .73578        .25073        .15245E-04   -1.0250    
   4  Prefactor     1.0870        .12328        .31920E-04   -.89882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43116e-10
Minuit parameter uncertainties:
  1  7.39521
  2  1.01845
  3  0.251121
  4  0.123314
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) = 7801.17838562
delta logL = 0.00671613101349

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  8.414e+00  7.395e+00  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.524e+00  1.018e+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.087e+00  1.233e-01  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.358e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 252.023 22.352
Photon Index (Free Index): 2.52 +/- 1.02
Photon Flux (Free Index): 5.62e-08 +/- 6.00e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.31e-05

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/17373819/cmap_HighResolution_787276801_787536001_4FGL_J1648.0+2221_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='6.11e-08', energy_flux2='1.59e-05', photon_flux_error='4.63e-08', dlogl='6.72e-03', energy_flux='1.54e-05', photon_flux2='5.62e-08', job_status='DONE', time_completed='2025-12-16 01:40:13.667952', photon_index_error2='1.02', photon_index2='2.52', ts='2.87', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.31e-05', EG='0.73', time_epoch_completed='1765878013.67', return_code='0', job_id='17373819', GAL2='1.09', EG2='0.74', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='6.00e-08', ts2='2.88', photon_index='2.64' WHERE bin_id='2114' AND source_name='4FGL J1648.0+2221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:40:14 PST 2025

