/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_J1748.6+7005_weekly_bin907
RA = 267.158, Dec = 70.0969
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='17775634', job_status='RUN', time_executed='2025-12-23 02:13:36.525649', time_epoch_executed='1766484816.53' WHERE source_name='4FGL J1748.6+7005' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775634

Creating custom pfile directory:
/lscratch/kocevski/17775634/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/17775634/ft1_4FGL_J1748.6+7005_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/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775634/ft1_4FGL_J1748.6+7005_weekly_bin907.fits outfile=/lscratch/kocevski/17775634/ft1_filteredMKT_4FGL_J1748.6+7005_weekly_bin907.fits ra=267.158 dec=70.0969 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.08
user 4.38
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_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/17775634/ft1_filteredMKT_4FGL_J1748.6+7005_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_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 0.78
user 0.23
sys 0.15

Number of photons that the gtmktime cut: 2496

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775634/ltcube_787536001_788140801_4FGL_J1748.6+7005_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/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits
.....................!
real 19.81
user 19.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775634/ltcube_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.fits outfile=/lscratch/kocevski/17775634/expmap_787536001_788140801_4FGL_J1748.6+7005_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/17775634/ltcube_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.fits
.....................!
real 70.15
user 65.40
sys 4.08

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

Setting source of interest to:
4FGL J1748.6+7005 @ 267.158 70.0969

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits scfile=/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits outfile=/lscratch/kocevski/17775634/cmap_787536001_788140801_4FGL_J1748.6+7005_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=267.158 yref=70.0969 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.80
user 0.22
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits scfile=/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits outfile=/lscratch/kocevski/17775634/cmap_HighResolution_787536001_788140801_4FGL_J1748.6+7005_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=267.158 yref=70.0969 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.78
user 0.23
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775634/Model_4FGL_J1748.6+7005_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
Working on...
/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits.....................!
real 100.36
user 98.22
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits', '/lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits', expMap='/lscratch/kocevski/17775634/expmap_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.fits', expCube='/lscratch/kocevski/17775634/ltcube_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775634/Model_4FGL_J1748.6+7005_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.6+7005'

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.089e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775634/ft1_filtered_4FGL_J1748.6+7005_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775634/ft2_4FGL_J1748.6+7005_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775634/expmap_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775634/ltcube_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775634/Model_4FGL_J1748.6+7005_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) = 25550.0153241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5129       1.0000          .0000       .10000E+07
     2 'Prefactor '    26.806       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.150       1.0000          .0000       .10000E+07
     4 'norm      '    .33424E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28876E-02   1.0000          .0000       .10000E+07
     6 'norm      '    8.3874       1.0000          .0000       .10000E+07
     7 'Prefactor '    .25928E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .62117E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    21.007       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.6723       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10975E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18140E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .44289E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.2895       1.0000          .0000       .10000E+07
    15 'norm      '    4.3030       1.0000          .0000       .10000E+07
    16 'norm      '    5.3588       1.0000          .0000       .10000E+07
    17 'Prefactor '    .75507E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    22.749       1.0000          .0000       .10000E+07
    19 'Prefactor '    .75208       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.4409       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.1586       1.0000          .0000       .10000E+07
    22 'Prefactor '    .88323E-02   1.0000          .0000       .10000E+07
    23 'norm      '    7.9111       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.0746       1.0000          .0000       .10000E+07
    25 'Prefactor '    .71344       1.0000          .0000       .10000E+07
    26 'norm      '    7.2147       1.0000          .0000       .10000E+07
    27 'norm      '    2.1328       1.0000          .0000       .10000E+07
    28 'norm      '    1.8456       1.0000          .0000       .10000E+07
    29 'Normalizat'    .91343       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25550.01     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2841 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4939        6.8408       -.75341E-07    .45145E-03
   2  Prefactor     26.710        19.228       -.20082E-05    .94838E-02
   3  Prefactor     14.100        1.9201        .12005E-06   -.34180E-02
   4  norm          .40855E-01    114.99       -.91897E-05** at limit **
   5  Prefactor     .16653E-09    4.6588       -.20836E-06** at limit **
   6  norm          8.3881        .87068        .33927E-07    .19841E-01
   7  Prefactor     .55511E-10    3.2947        .59958E-08** at limit **
   8  Prefactor      .0000        .73915        .34930E-07** at limit **
   9  Prefactor     20.992        1.4280       -.73649E-07   -.19432E-01
  10  Prefactor     8.6952        5.1350        .71702E-07    .14960E-02
  11  Prefactor     .11102E-09    5.5130       -.20581E-08** at limit **
  12  Prefactor     .11102E-09    1.5084       -.88017E-07** at limit **
  13  Prefactor     .21649E-08    26.598       -.19932E-05** at limit **
  14  norm          1.2893        1.0644        .10160E-06   -.48925E-02
  15  norm          4.3031        .58342       -.23889E-07   -.11141E-01
  16  norm          5.3576        2.5921        .37665E-07   -.64195E-03
  17  Prefactor      .0000        6.9682       -.52994E-06** at limit **
  18  Prefactor     22.990        44.537        .48751E-05    .21563E-02
  19  Prefactor     .75048        2.9361        .14689E-06    .27220E-02
  20  Prefactor     4.4347        8.5632        .11304E-05    .11615E-01
  21  Prefactor     1.1540        18.008       -.25745E-05   -.31967E-02
  22  Prefactor     .17764E-08    28.174        .22626E-05** at limit **
  23  norm          7.9108        2.2717        .28823E-07    .22049E-02
  24  Prefactor     3.0814        3.8545        .43147E-06    .30287E-01
  25  Prefactor     .67892        2.2541       -.30718E-06    .37387E-02
  26  norm          7.1744        4.4863        .66090E-06   -.91781E-02
  27  norm          2.1334        2.1460       -.99609E-08   -.37203E-02
  28  norm          1.8469        1.2988       -.22255E-07    .29451E-03
  29  Normalizat    .91324        .13183        .28749E-06    .47113E-03
  30  Prefactor     1.0633        .78659E-01   -.57990E-06    .68153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.49395
  Prefactor  = 26.7099
  Prefactor  = 14.0997
  norm       = 0.0408547
  Prefactor  = 1.66533e-10
  norm       = 8.38814
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 20.9924
  Prefactor  = 8.69517
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 2.16493e-09
  norm       = 1.28933
  norm       = 4.30312
  norm       = 5.35761
  Prefactor  = 0
  Prefactor  = 22.9904
  Prefactor  = 0.750485
  Prefactor  = 4.43468
  Prefactor  = 1.15397
  Prefactor  = 1.77636e-09
  norm       = 7.91084
  Prefactor  = 3.08139
  Prefactor  = 0.678916
  norm       = 7.17436
  norm       = 2.13345
  norm       = 1.84686
  Normalizat = 0.913238
  Prefactor  = 1.06328
 **********
 **   18 **HESSE 
 **********

 FCN=   25550.01     FROM HESSE     STATUS=OK           664 CALLS     3505 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4939        6.8555        .39301E-03   -1.5657    
   2  Prefactor     26.710        51.975        .19318E-03   -1.5605    
   3  Prefactor     14.100        26.362        .26601E-03   -1.5633    
   4  norm          .40855E-01    1.5515        .11383E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    4.6553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3881        .93620        .34591E-03   -1.5650    
   7  Prefactor     .55511E-10    3.2936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .73407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.992        10.062        .21824E-03   -1.5616    
  10  Prefactor     8.6952        5.1257        .34014E-03   -1.5649    
  11  Prefactor     .11102E-09    5.5217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    1.5104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21649E-08    26.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2893        1.0617        .97506E-03   -1.5685    
  15  norm          4.3031        .58454        .48541E-03   -1.5666    
  16  norm          5.3576        2.6243        .43389E-03   -1.5662    
  17  Prefactor      .0000        6.9687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.990        48.492        .20972E-03   -1.5612    
  19  Prefactor     .75048        3.0565        .56577E-03   -1.5691    
  20  Prefactor     4.4347        8.8551        .47761E-03   -1.5666    
  21  Prefactor     1.1540        19.472        .10710E-02   -1.5686    
  22  Prefactor     .17764E-08    28.355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9108        2.3233        .35625E-03   -1.5652    
  24  Prefactor     3.0814        10.069        .57822E-03   -1.5673    
  25  Prefactor     .67892        2.2630        .59624E-03   -1.5691    
  26  norm          7.1744        14.929        .37320E-03   -1.5654    
  27  norm          2.1334        2.1587        .70565E-03   -1.5679    
  28  norm          1.8469        1.3036        .76731E-03   -1.5681    
  29  Normalizat    .91324        .11852        .81929E-01   -.95996    
  30  Prefactor     1.0633        .70647E-01    .39199E-01   -.90649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99187e-06
Minuit parameter uncertainties:
  1  6.85549
  2  51.9758
  3  26.3618
  4  0.503536
  5  5.40081e-05
  6  0.9362
  7  3.20055e-05
  8  3.08594e-06
  9  10.0616
  10  5.12571
  11  5.42347e-05
  12  2.45993e-05
  13  0.000482604
  14  1.06167
  15  0.584538
  16  2.62428
  17  2.15757e-05
  18  48.4929
  19  3.0291
  20  8.85517
  21  9.48066
  22  0.000450218
  23  2.32334
  24  10.0692
  25  2.26298
  26  14.9291
  27  2.15868
  28  1.30361
  29  0.118549
  30  0.0706529
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.289e+00  1.062e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.063e+00  7.065e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.132e-01  1.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.26
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.24e-08 +/- 1.02e-08
Energy Flux (Fixed Index): 8.72e-06 +/- 7.18e-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) = 25549.8922978
delta logL = 0.117244430181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25549.8864294
delta logL = 0.123112834703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1683       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6431       1.0000          .0000       5.0000    
     3 'Normalizat'    .91693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25549.89     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1668        1.0956        .14185E-04    .32057E-05
   2  alpha         1.6417        .60402        .28524E-01   -.39372E-03
   3  Normalizat    .91690        .12185        .36210E-03    .62794E-06
   4  Prefactor     1.0627        .75410E-01    .20840E-03   -.43641E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16683
  alpha      = 1.64165
  Normalizat = 0.916903
  Prefactor  = 1.06271
 **********
 **   18 **HESSE 
 **********

 FCN=   25549.89     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1668        1.1237        .56742E-06   -1.5686    
   2  alpha         1.6417        .61976        .57049E-02   -.35047    
   3  Normalizat    .91690        .12193        .14484E-04   -.95869    
   4  Prefactor     1.0627        .75460E-01    .83361E-05   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74267e-11
Minuit parameter uncertainties:
  1  1.12371
  2  0.627196
  3  0.121971
  4  0.0754672
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) = 25549.8864265
delta logL = 0.123115691582

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.167e+00  1.124e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  1.642e+00  6.272e-01  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  4.795e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.063e+00  7.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.169e-01  1.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 267.158 70.097
Photon Index (Free Index): 1.64 +/- 0.63
Photon Flux (Free Index): 7.92e-09 +/- 1.05e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.39e-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/17775634/cmap_HighResolution_787536001_788140801_4FGL_J1748.6+7005_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-08', energy_flux2='1.22e-05', photon_flux_error='1.02e-08', dlogl='1.23e-01', energy_flux='8.72e-06', photon_flux2='7.92e-09', job_status='DONE', time_completed='2025-12-23 02:32:21.315553', photon_index_error2='0.63', photon_index2='1.64', ts='5.26', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.91', time_epoch_completed='1766485941.32', return_code='0', job_id='17775634', GAL2='1.06', EG2='0.92', return_code2='0', energy_flux_error='7.18e-06', photon_flux_error2='1.05e-08', ts2='5.50', photon_index='1.95' WHERE bin_id='907' AND source_name='4FGL J1748.6+7005' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:32:21 PST 2025

