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


Performing analysis on: 4FGL_J0648.7+1516_weekly_bin907
RA = 102.19, Dec = 15.2808
tmin = 787536001, tmax = 788140801
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='17771970', job_status='RUN', time_executed='2025-12-23 01:08:58.631282', time_epoch_executed='1766480938.63' WHERE source_name='4FGL J0648.7+1516' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17771970

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17771970/ft1_4FGL_J0648.7+1516_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17771970/ft1_4FGL_J0648.7+1516_weekly_bin907.fits outfile=/lscratch/kocevski/17771970/ft1_filteredMKT_4FGL_J0648.7+1516_weekly_bin907.fits ra=102.19 dec=15.2808 rad=12.0 tmin=787536001.0 tmax=788140801.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.47
user 4.50
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.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/17771970/ft1_filteredMKT_4FGL_J0648.7+1516_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.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.09
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 6655

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17771970/ltcube_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.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/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits
.....................!
real 18.36
user 17.41
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17771970/ltcube_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.fits outfile=/lscratch/kocevski/17771970/expmap_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.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/17771970/ltcube_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.fits
.....................!
real 70.34
user 65.35
sys 4.24

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 Monoceros in ROI with RadialGaussian spatial model.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 164 point sources and 4 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 J0648.7+1516 @ 102.19 15.2808

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits scfile=/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits outfile=/lscratch/kocevski/17771970/cmap_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.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=102.19 yref=15.2808 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.97
user 0.24
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits scfile=/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits outfile=/lscratch/kocevski/17771970/cmap_HighResolution_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.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=102.19 yref=15.2808 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.14
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17771970/Model_4FGL_J0648.7+1516_weekly_bin907.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits.....................!
real 591.11
user 587.08
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits', '/lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits', expMap='/lscratch/kocevski/17771970/expmap_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.fits', expCube='/lscratch/kocevski/17771970/ltcube_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17771970/Model_4FGL_J0648.7+1516_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0648.7+1516'

4FGL J0648.7+1516
   Spectrum: PowerLaw
297    Prefactor:  5.724e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.714e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.960e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17771970/ft1_filtered_4FGL_J0648.7+1516_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17771970/ft2_4FGL_J0648.7+1516_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17771970/expmap_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17771970/ltcube_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17771970/Model_4FGL_J0648.7+1516_weekly_bin907.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) = 63793.8851448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33011E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .49682E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.5334       1.0000          .0000       .10000E+07
     4 'norm      '    9.3115       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28222E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21655E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .28480       1.0000          .0000       .10000E+07
     8 'norm      '    2.4952       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    10 'Prefactor '    1.0455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   63793.59     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      552 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74940E-07    8.0575       -.52041E-05** at limit **
   2  norm           .0000        2.9384        .89725E-06** at limit **
   3  Prefactor     8.5344        3.7993       -.16154E-05   -.99028E-01
   4  norm          9.3128        5.9429       -.18364E-06   -.46815E-02
   5  Prefactor     .10170E-06    7.3845        .42261E-05** at limit **
   6  Prefactor     .11102E-09    6.3793       -.91396E-06** at limit **
   7  norm          .31521        .89511       -.14121E-05   -.76059E-03
   8  norm          2.4950        .90047       -.28178E-08   -.27141E-02
   9  Normalizat    1.0414        .14446        .13323E-04    .49442E-03
  10  Prefactor     1.0455        .28040E-01   -.13510E-05    .25809E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.49401e-08
  norm       = 0
  Prefactor  = 8.53442
  norm       = 9.31276
  Prefactor  = 1.01696e-07
  Prefactor  = 1.11022e-10
  norm       = 0.315205
  norm       = 2.49504
  Normalizat = 1.04139
  Prefactor  = 1.04547
 **********
 **   18 **HESSE 
 **********

 FCN=   63793.59     FROM HESSE     STATUS=OK           122 CALLS      674 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74940E-07    8.7986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.9404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5344        8.9529        .34292E-03   -1.5650    
   4  norm          9.3128        5.9462        .32819E-03   -1.5647    
   5  Prefactor     .10170E-06    8.1168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    6.3659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .31521        2.1233        .13079E-01   -1.5697    
   8  norm          2.4950        .90199        .64677E-03   -1.5676    
   9  Normalizat    1.0414        .14797        .18998       -.91657    
  10  Prefactor     1.0455        .27605E-01    .40183E-01   -.91229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14951e-07
Minuit parameter uncertainties:
  1  0.00162414
  2  1.61767e-05
  3  8.95288
  4  5.94618
  5  0.00181714
  6  5.01157e-05
  7  1.6362
  8  0.901988
  9  0.148029
  10  0.0276056
Done.

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

Extracting fit parameters...

4FGL J0648.7+1516
   Spectrum: PowerLaw
297    Prefactor:  8.534e+00  8.953e+00  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.714e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.960e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.045e+00  2.761e-02  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.041e+00  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 102.190 15.281
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 9.55e-09 +/- 1.00e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.57e-05

TS (Fixed Index): 1.68
Ra Dec: 102.190 15.281
Photon Flux Upper Limit: 3.65698988952e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0026722736814 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17771970/likelihoodResults_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.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) = 63793.5922463
delta logL = 0.00239754127688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 63793.5914878
delta logL = 0.00315603374474

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   63793.59     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      220 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9335        27.710        .33500E-03    .86398E-02
   2  Index         1.6507        .13312        .50000        .54950E-05
   3  Normalizat    1.0418        .14009E-01    .18995        .23628E-03
   4  Prefactor     1.0455        .27621E-02    .40182E-01   -.13720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.93354
  Index      = 1.65074
  Normalizat = 1.04181
  Prefactor  = 1.04549
 **********
 **   18 **HESSE 
 **********

 FCN=   63793.59     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9335        10.451        .67001E-04   -1.5648    
   2  Index         1.6507        .78360        .29858E-02   -.73401    
   3  Normalizat    1.0418        .14000        .84744E-03   -.91642    
   4  Prefactor     1.0455        .27937E-01    .16652E-03   -.91228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86073e-13
Minuit parameter uncertainties:
  1  10.4512
  2  0.789543
  3  0.140047
  4  0.0279374
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) = 63793.5914822
delta logL = 0.00316159853537

Extracting fit parameters...

4FGL J0648.7+1516
   Spectrum: PowerLaw
297    Prefactor:  8.934e+00  1.045e+01  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.651e+00  7.895e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.960e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.045e+00  2.794e-02  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.042e+00  1.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 102.190 15.281
Photon Index (Free Index): 1.65 +/- 0.79
Photon Flux (Free Index): 8.54e-09 +/- 1.50e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/17771970/cmap_HighResolution_787536001_788140801_4FGL_J0648.7+1516_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-03', comment='SUCCESS', photon_flux='9.55e-09', energy_flux2='1.64e-05', photon_flux_error='1.00e-08', dlogl='3.16e-03', energy_flux='1.49e-05', photon_flux2='8.54e-09', job_status='DONE', time_completed='2025-12-23 01:36:57.710359', photon_index_error2='0.79', photon_index2='1.65', ts='1.68', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='3.66e-08', energy_flux_error2='2.57e-05', EG='1.04', time_epoch_completed='1766482617.71', return_code='0', job_id='17771970', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='1.50e-08', ts2='1.68', photon_index='1.71' WHERE bin_id='907' AND source_name='4FGL J0648.7+1516' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 01:36:58 PST 2025

