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


Performing analysis on: 4FGL_J1748.6+7005_weekly_bin901
RA = 267.158, Dec = 70.0969
tmin = 783907201, tmax = 784512001
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='15299009', job_status='RUN', time_executed='2025-11-11 01:49:33.458808', time_epoch_executed='1762854573.46' WHERE source_name='4FGL J1748.6+7005' and cadence='weekly' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/15299009

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

Retrieving the FT1 file...

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

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

Retrieving 94 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/15299009/ft1_4FGL_J1748.6+7005_weekly_bin901.fits


Retrieving the FT1 file...

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

Retrieving 94 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/15299009/ft1_4FGL_J1748.6+7005_weekly_bin901.fits outfile=/lscratch/kocevski/15299009/ft1_filteredMKT_4FGL_J1748.6+7005_weekly_bin901.fits ra=267.158 dec=70.0969 rad=12.0 tmin=783907201.0 tmax=784512001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.28
user 3.45
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.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/15299009/ft1_filteredMKT_4FGL_J1748.6+7005_weekly_bin901.fits evtable="EVENTS" outfile="/lscratch/kocevski/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.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.74
user 0.24
sys 0.17

Number of photons that the gtmktime cut: 2170

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits" evtable="EVENTS" scfile=/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits sctable="SC_DATA" outfile=/lscratch/kocevski/15299009/ltcube_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.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/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits
.....................!
real 17.07
user 16.07
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits evtable="EVENTS" scfile=/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits sctable="SC_DATA" expcube=/lscratch/kocevski/15299009/ltcube_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.fits outfile=/lscratch/kocevski/15299009/expmap_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.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/15299009/ltcube_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.fits
.....................!
real 65.36
user 60.56
sys 3.88

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/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits scfile=/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits outfile=/lscratch/kocevski/15299009/cmap_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.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 1.01
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits scfile=/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits outfile=/lscratch/kocevski/15299009/cmap_HighResolution_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.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 1.06
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits evtable="EVENTS" scfile=/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/15299009/Model_4FGL_J1748.6+7005_weekly_bin901.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/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits.....................!
real 84.23
user 82.17
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits', '/lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits', expMap='/lscratch/kocevski/15299009/expmap_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.fits', expCube='/lscratch/kocevski/15299009/ltcube_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/15299009/Model_4FGL_J1748.6+7005_weekly_bin901.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/15299009/ft1_filtered_4FGL_J1748.6+7005_weekly_bin901.fits
Spacecraft file(s): /lscratch/kocevski/15299009/ft2_4FGL_J1748.6+7005_weekly_bin901.fits
Exposure map: /lscratch/kocevski/15299009/expmap_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.fits
Exposure cube: /lscratch/kocevski/15299009/ltcube_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/15299009/Model_4FGL_J1748.6+7005_weekly_bin901.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) = 22298.4258056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.969       1.0000          .0000       .10000E+07
     2 'Prefactor '    .57000E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.1814       1.0000          .0000       .10000E+07
     4 'norm      '    .62249       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30298E-03   1.0000          .0000       .10000E+07
     6 'norm      '    2.8216       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3502       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2673       1.0000          .0000       .10000E+07
     9 'Prefactor '    .60387E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38987E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .46354       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14974E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55345E-07   1.0000          .0000       .10000E+07
    14 'norm      '    3.0207       1.0000          .0000       .10000E+07
    15 'norm      '    1.9210       1.0000          .0000       .10000E+07
    16 'norm      '    6.1813       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10246E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .24684E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18169       1.0000          .0000       .10000E+07
    20 'Prefactor '    .14438E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    17.547       1.0000          .0000       .10000E+07
    22 'Prefactor '    .39031E-03   1.0000          .0000       .10000E+07
    23 'norm      '    5.0668       1.0000          .0000       .10000E+07
    24 'Prefactor '    19.101       1.0000          .0000       .10000E+07
    25 'Prefactor '    2.5621       1.0000          .0000       .10000E+07
    26 'norm      '    10.326       1.0000          .0000       .10000E+07
    27 'norm      '    .21972E-03   1.0000          .0000       .10000E+07
    28 'norm      '    .47629E-06   1.0000          .0000       .10000E+07
    29 'Normalizat'    .88808       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99534       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=   22298.36     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2273 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.061        1.2021        .26822E-08   -.68470E-02
   2  Prefactor     .70374E-05    22.413        .90670E-07** at limit **
   3  Prefactor     9.1835        1.3212       -.27018E-08    .94454E-02
   4  norm          .61953        3.5254        .66323E-07    .33219E-03
   5  Prefactor     .68834E-08    4.3897        .30529E-07** at limit **
   6  norm          2.8210        .60246        .15440E-07    .68184E-02
   7  Prefactor     4.3798        3.8954       -.51713E-07   -.18268E-02
   8  Prefactor     1.2817        1.8217        .75079E-07    .96138E-03
   9  Prefactor     .79381E-08    8.6742        .21615E-06** at limit **
  10  Prefactor     .24758E-07    7.1676        .12474E-06** at limit **
  11  Prefactor     .23245        100.77       -.21168E-06** at limit **
  12  Prefactor     .55511E-10    1.4817       -.33406E-07** at limit **
  13  Prefactor     .33640E-06    14.873       -.16061E-06** at limit **
  14  norm          3.0198        1.8078       -.44864E-07   -.37776E-02
  15  norm          1.9224        .47276       -.21674E-07   -.22546E-01
  16  norm          6.1725        3.3160        .57073E-07    .32392E-02
  17  Prefactor     .14433E-08    3.9788        .16033E-06** at limit **
  18  Prefactor     .32150E-05    42.489        .24220E-06** at limit **
  19  Prefactor     .25897        14.240        .26508E-06   -.19756E-03
  20  Prefactor     .52736E-08    5.0413        .12982E-07** at limit **
  21  Prefactor     17.362        2.2939        .17732E-07    .14829E-01
  22  Prefactor     .51870E-05    18.354       -.12476E-06** at limit **
  23  norm          5.0756        2.0549       -.49649E-09   -.61785E-04
  24  Prefactor     19.110        1.7055        .48993E-10    .48544E-02
  25  Prefactor     2.5714        3.1630        .11886E-07    .25108E-03
  26  norm          10.328        1.0030       -.15549E-09    .55587E-03
  27  norm          .19207E-07    4.0889       -.67638E-07** at limit **
  28  norm          .83267E-09    4.4708       -.14706E-06** at limit **
  29  Normalizat    .88792        .12935       -.30935E-05   -.20042E-03
  30  Prefactor     .99533        .78586E-01    .11837E-05   -.14051E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.0609
  Prefactor  = 7.03737e-06
  Prefactor  = 9.18348
  norm       = 0.619531
  Prefactor  = 6.88338e-09
  norm       = 2.82102
  Prefactor  = 4.37977
  Prefactor  = 1.28174
  Prefactor  = 7.93809e-09
  Prefactor  = 2.4758e-08
  Prefactor  = 0.232453
  Prefactor  = 5.55112e-11
  Prefactor  = 3.36398e-07
  norm       = 3.01978
  norm       = 1.92241
  norm       = 6.17252
  Prefactor  = 1.44329e-09
  Prefactor  = 3.21498e-06
  Prefactor  = 0.258973
  Prefactor  = 5.27356e-09
  Prefactor  = 17.362
  Prefactor  = 5.18696e-06
  norm       = 5.07559
  Prefactor  = 19.1105
  Prefactor  = 2.57143
  norm       = 10.3276
  norm       = 1.92069e-08
  norm       = 8.32667e-10
  Normalizat = 0.887921
  Prefactor  = 0.995331
 **********
 **   18 **HESSE 
 **********

 FCN=   22298.36     FROM HESSE     STATUS=OK           670 CALLS     2943 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.061        12.623        .22969E-03   -1.5621    
   2  Prefactor     .70374E-05    25.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1835        10.788        .33052E-03   -1.5647    
   4  norm          .61953        3.5177        .67237E-03   -1.5692    
   5  Prefactor     .68834E-08    4.4224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8210        .60651        .60522E-03   -1.5674    
   7  Prefactor     4.3798        3.8872        .48270E-03   -1.5666    
   8  Prefactor     1.2817        2.3172        .98873E-03   -1.5685    
   9  Prefactor     .79381E-08    8.7062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24758E-07    7.0081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .23245        18.725        .11289E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    1.4904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33640E-06    15.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0198        1.8200        .58365E-03   -1.5673    
  15  norm          1.9224        .48629        .74941E-03   -1.5680    
  16  norm          6.1725        3.3187        .40355E-03   -1.5658    
  17  Prefactor     .14433E-08    3.9852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .32150E-05    43.757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .25897        1.3020        .92899E-02   -1.5698    
  20  Prefactor     .52736E-08    5.0922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.362        12.940        .23882E-03   -1.5625    
  22  Prefactor     .51870E-05    20.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0756        2.2153        .44646E-03   -1.5663    
  24  Prefactor     19.110        10.573        .22889E-03   -1.5621    
  25  Prefactor     2.5714        3.2415        .63751E-03   -1.5676    
  26  norm          10.328        10.354        .31157E-03   -1.5644    
  27  norm          .19207E-07    4.0399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .83267E-09    .61463        .61107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88792        .11525        .74962E-01   -.96886    
  30  Prefactor     .99533        .69430E-01    .46209E-01   -.92885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1e-07
Minuit parameter uncertainties:
  1  12.6228
  2  0.0265711
  3  10.7882
  4  2.95252
  5  0.000349607
  6  0.606507
  7  3.8872
  8  2.31723
  9  0.000525691
  10  0.000833048
  11  4.17265
  12  1.34733e-05
  13  0.00449845
  14  1.82003
  15  0.48629
  16  3.31867
  17  0.000150413
  18  0.0237217
  19  1.16136
  20  0.000328443
  21  12.9397
  22  0.0205416
  23  2.21531
  24  10.5727
  25  3.24154
  26  10.3541
  27  0.000556875
  28  4.48504e-05
  29  0.115277
  30  0.0694363
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  3.020e+00  1.820e+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:  9.953e-01  6.944e-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:  8.879e-01  1.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.23e-05

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) = 22297.6063386
delta logL = 0.755978319037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22297.6042903
delta logL = 0.75802663164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2433       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5694       1.0000          .0000       5.0000    
     3 'Normalizat'    .85742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0052       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.

 FCN=   22297.60     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      246 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2433        15.581        .68588E-04    .33563E-01
   2  alpha         2.5694        3.6630        .26216        .24105E-03
   3  Normalizat    .85741        .51573E-01    .76087E-01    .77699E-04
   4  Prefactor     1.0052        .26128E-01    .44152E-01    .83986E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.24332
  alpha      = 2.56939
  Normalizat = 0.85741
  Prefactor  = 1.0052
 **********
 **   18 **HESSE 
 **********

 FCN=   22297.60     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2433        2.1579        .13718E-04   -1.5678    
   2  alpha         2.5694        .65775        .14597E-01    .27759E-01
   3  Normalizat    .85741        .12587        .33676E-03   -.97973    
   4  Prefactor     1.0052        .77816E-01    .19687E-03   -.92557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21973e-10
Minuit parameter uncertainties:
  1  2.15791
  2  0.665591
  3  0.125917
  4  0.077825
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) = 22297.6042903
delta logL = 0.758026636722

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  2.243e+00  2.158e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  2.569e+00  6.656e-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.005e+00  7.783e-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:  8.574e-01  1.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 267.158 70.097
Photon Index (Free Index): 2.57 +/- 0.67
Photon Flux (Free Index): 5.51e-08 +/- 3.06e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.86e-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/15299009/cmap_HighResolution_783907201_784512001_4FGL_J1748.6+7005_weekly_bin901.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='1.55e-05', photon_flux_error='1.74e-08', dlogl='7.58e-01', energy_flux='2.04e-05', photon_flux2='5.51e-08', job_status='DONE', time_completed='2025-11-11 02:05:38.754399', photon_index_error2='0.67', photon_index2='2.57', ts='4.76', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.86e-06', EG='0.89', time_epoch_completed='1762855538.75', return_code='0', job_id='15299009', GAL2='1.01', EG2='0.86', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.06e-08', ts2='6.35', photon_index='1.95' WHERE bin_id='901' AND source_name='4FGL J1748.6+7005' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Nov 11 02:05:39 PST 2025

