/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1748.6+7005_weekly_bin906
RA = 267.158, Dec = 70.0969
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17380104', job_status='RUN', time_executed='2025-12-16 02:55:30.494841', time_epoch_executed='1765882530.49' WHERE source_name='4FGL J1748.6+7005' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380104

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17380104/ft1_4FGL_J1748.6+7005_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits


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

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

Done.
real 5.47
user 4.71
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17380104/ft1_filteredMKT_4FGL_J1748.6+7005_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.86
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2554

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380104/ltcube_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits
.....................!
real 17.12
user 16.11
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380104/ltcube_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits outfile=/lscratch/kocevski/17380104/expmap_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17380104/ltcube_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits
.....................!
real 66.55
user 61.94
sys 3.66

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/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits scfile=/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits outfile=/lscratch/kocevski/17380104/cmap_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.71
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits scfile=/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits outfile=/lscratch/kocevski/17380104/cmap_HighResolution_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.89
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380104/Model_4FGL_J1748.6+7005_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits.....................!
real 96.60
user 94.37
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits', '/lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits', expMap='/lscratch/kocevski/17380104/expmap_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits', expCube='/lscratch/kocevski/17380104/ltcube_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380104/Model_4FGL_J1748.6+7005_weekly_bin906.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/17380104/ft1_filtered_4FGL_J1748.6+7005_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380104/ft2_4FGL_J1748.6+7005_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380104/expmap_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380104/ltcube_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380104/Model_4FGL_J1748.6+7005_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8140       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4064       1.0000          .0000       .10000E+07
     3 'Prefactor '    16.657       1.0000          .0000       .10000E+07
     4 'norm      '    5.1176       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24198E-02   1.0000          .0000       .10000E+07
     6 'norm      '    8.1802       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.1943       1.0000          .0000       .10000E+07
     8 'Prefactor '    .93814E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21917E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .59061E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.7177       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14447E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13821E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.1553       1.0000          .0000       .10000E+07
    15 'norm      '    2.8056       1.0000          .0000       .10000E+07
    16 'norm      '    .23749       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10059E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .28285E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.1337       1.0000          .0000       .10000E+07
    20 'Prefactor '    .21911E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.0783       1.0000          .0000       .10000E+07
    22 'Prefactor '    .18432E-02   1.0000          .0000       .10000E+07
    23 'norm      '    5.1265       1.0000          .0000       .10000E+07
    24 'Prefactor '    .17745E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .11163E-04   1.0000          .0000       .10000E+07
    26 'norm      '    7.9141       1.0000          .0000       .10000E+07
    27 'norm      '    3.1311       1.0000          .0000       .10000E+07
    28 'norm      '    1.9923       1.0000          .0000       .10000E+07
    29 'Normalizat'    1.0463       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97996       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=   26122.21     FROM MIGRAD    STATUS=CONVERGED    234 CALLS     2274 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7719        5.8770       -.48903E-08    .14283E-03
   2  Prefactor     .46188        3676.2       -.21242E-04    .39584E-04
   3  Prefactor     16.352        17.293        .15745E-06    .14334E-02
   4  norm          5.1174        4.6306        .49923E-07    .98561E-03
   5  Prefactor      .0000        4.2765       -.10011E-07** at limit **
   6  norm          8.1822        .85218       -.73676E-08    .19588E-02
   7  Prefactor     2.1904        4.8957        .55558E-07    .45424E-03
   8  Prefactor      .0000        .71234        .35975E-10** at limit **
   9  Prefactor     .16653E-09    30.452        .11494E-06** at limit **
  10  Prefactor      .0000        1.4557       -.14488E-07** at limit **
  11  Prefactor     5.7101        1.7376        .16330E-07   -.81763E-02
  12  Prefactor      .0000        2.8797        .50364E-07** at limit **
  13  Prefactor      .0000        8.9849        .11681E-06** at limit **
  14  norm          2.1549        1.5274       -.35166E-07   -.14613E-02
  15  norm          2.8053        .53419       -.14131E-08   -.16048E-02
  16  norm          .23752        4.0860        .39752E-07** at limit **
  17  Prefactor      .0000        7.0520        .72419E-07** at limit **
  18  Prefactor     .55511E-09    76.868       -.77044E-06** at limit **
  19  Prefactor     5.1235        3.6441        .86357E-08    .66881E-03
  20  Prefactor     .11102E-09    9.7106       -.31788E-09** at limit **
  21  Prefactor     2.0674        8.3303        .12447E-06    .28853E-03
  22  Prefactor      .0000        18.002       -.86313E-07** at limit **
  23  norm          5.1272        2.0145       -.49521E-08    .56522E-04
  24  Prefactor      .0000        4.0077       -.28545E-07** at limit **
  25  Prefactor      .0000        1.4440       -.36296E-07** at limit **
  26  norm          7.9160        9.3345       -.54991E-07   -.48217E-03
  27  norm          3.1303        2.0153       -.19242E-07   -.43449E-04
  28  norm          1.9925        1.7477        .34741E-07    .97125E-03
  29  Normalizat    1.0465        .12572       -.19992E-06    .61095E-04
  30  Prefactor     .98002        .75942E-01    .19271E-06    .94009E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.77191
  Prefactor  = 0.461875
  Prefactor  = 16.3522
  norm       = 5.11745
  Prefactor  = 0
  norm       = 8.18225
  Prefactor  = 2.19036
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 5.71012
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.15493
  norm       = 2.80534
  norm       = 0.237521
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 5.12347
  Prefactor  = 1.11022e-10
  Prefactor  = 2.06745
  Prefactor  = 0
  norm       = 5.12722
  Prefactor  = 0
  Prefactor  = 0
  norm       = 7.91602
  norm       = 3.13028
  norm       = 1.9925
  Normalizat = 1.04653
  Prefactor  = 0.980016
 **********
 **   18 **HESSE 
 **********

 FCN=   26122.21     FROM HESSE     STATUS=OK           662 CALLS     2936 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7719        5.8763        .41628E-03   -1.5660    
   2  Prefactor     .46188        54.561        .26709E-01   -1.5694    
   3  Prefactor     16.352        17.372        .24513E-03   -1.5627    
   4  norm          5.1174        4.6437        .44419E-03   -1.5663    
   5  Prefactor      .0000        4.2790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.1822        .85691        .35030E-03   -1.5651    
   7  Prefactor     2.1904        4.9449        .69442E-03   -1.5678    
   8  Prefactor      .0000        .70977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    30.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.4563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7101        14.633        .41983E-03   -1.5660    
  12  Prefactor      .0000        2.8763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        9.0076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1549        1.5663        .70147E-03   -1.5679    
  15  norm          2.8053        .54689        .60707E-03   -1.5674    
  16  norm          .23752        .83864        .70651E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        7.0592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-09    77.248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1235        3.7269        .44348E-03   -1.5663    
  20  Prefactor     .11102E-09    9.7037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0674        8.6435        .71610E-03   -1.5679    
  22  Prefactor      .0000        18.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.1272        2.0372        .44380E-03   -1.5663    
  24  Prefactor      .0000        4.0089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        1.4424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.9160        9.3488        .35618E-03   -1.5652    
  27  norm          3.1303        2.0170        .57268E-03   -1.5673    
  28  norm          1.9925        1.7577        .73369E-03   -1.5680    
  29  Normalizat    1.0465        .11128        .74524E-01   -.91487    
  30  Prefactor     .98002        .66274E-01    .46016E-01   -.93399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39746e-09
Minuit parameter uncertainties:
  1  5.87632
  2  10.0401
  3  17.3719
  4  4.64375
  5  2.78782e-06
  6  0.85691
  7  4.94486
  8  6.07288e-07
  9  0.000149736
  10  1.16486e-06
  11  14.6333
  12  1.5491e-06
  13  9.85354e-06
  14  1.56633
  15  0.546888
  16  0.838638
  17  1.37513e-05
  18  0.000413978
  19  3.72688
  20  7.22764e-05
  21  8.45462
  22  2.84066e-06
  23  2.03715
  24  1.97245e-06
  25  1.94157e-06
  26  9.34879
  27  2.01702
  28  1.7577
  29  0.111306
  30  0.0662793
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  2.155e+00  1.566e+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.800e-01  6.628e-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:  1.047e+00  1.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.06e-05

TS (Fixed Index): 2.95
Ra Dec: 267.158 70.097
Photon Flux Upper Limit: 4.94202010754e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.4860218692e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17380104/likelihoodResults_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.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) = 26120.3092128
delta logL = 1.89946862904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26120.2944463
delta logL = 1.91423512153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4020       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8298       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98950       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=   26120.29     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4004        7.0003        .91581E-03    .27361E-01
   2  alpha         2.8299        1.9158        .28151        .26495E-03
   3  Normalizat    1.0125        .34093E-01    .75550E-01    .56317E-04
   4  Prefactor     .98955        .20266E-01    .46136E-01    .14654E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4004
  alpha      = 2.82992
  Normalizat = 1.01251
  Prefactor  = 0.989554
 **********
 **   18 **HESSE 
 **********

 FCN=   26120.29     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4004        1.3487        .84299E-05   -1.5684    
   2  alpha         2.8299        .57290        .14060E-01    .13235    
   3  Normalizat    1.0125        .12026        .33433E-03   -.92612    
   4  Prefactor     .98955        .74404E-01    .21076E-03   -.93079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80127e-11
Minuit parameter uncertainties:
  1  1.34875
  2  0.578126
  3  0.120295
  4  0.0744121
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) = 26120.2944437
delta logL = 1.91423772722

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.400e+00  1.349e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  2.830e+00  5.781e-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:  9.896e-01  7.441e-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:  1.013e+00  1.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 267.158 70.097
Photon Index (Free Index): 2.83 +/- 0.58
Photon Flux (Free Index): 5.42e-08 +/- 2.68e-08
Energy Flux (Free Index): 1.25e-05 +/- 6.12e-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/17380104/cmap_HighResolution_786931201_787536001_4FGL_J1748.6+7005_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-05', comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='1.25e-05', photon_flux_error='1.50e-08', dlogl='1.91e+00', energy_flux='1.46e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2025-12-16 03:15:55.494127', photon_index_error2='0.58', photon_index2='2.83', ts='2.95', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.94e-08', energy_flux_error2='6.12e-06', EG='1.05', time_epoch_completed='1765883755.49', return_code='0', job_id='17380104', GAL2='0.99', EG2='1.01', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.68e-08', ts2='6.87', photon_index='1.95' WHERE bin_id='906' AND source_name='4FGL J1748.6+7005' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:15:55 PST 2025

