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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1318.2+6754_daily_bin2114
RA = 199.556, Dec = 67.9152
tmin = 787276801, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17372943', job_status='RUN', time_executed='2025-12-16 01:05:40.622429', time_epoch_executed='1765875940.62' WHERE source_name='4FGL J1318.2+6754' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17372943/ft1_4FGL_J1318.2+6754_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372943/ft1_4FGL_J1318.2+6754_daily_bin2114.fits outfile=/lscratch/kocevski/17372943/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin2114.fits ra=199.556 dec=67.9152 rad=12.0 tmin=787276801.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.64
user 1.73
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits

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

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

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

Number of photons that the gtmktime cut: 624

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372943/ltcube_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits
.....................!
real 8.01
user 7.18
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372943/ltcube_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits outfile=/lscratch/kocevski/17372943/expmap_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17372943/ltcube_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits
.....................!
real 63.08
user 58.47
sys 3.67

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

Setting source of interest to:
4FGL J1318.2+6754 @ 199.556 67.9152

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits scfile=/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits outfile=/lscratch/kocevski/17372943/cmap_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=199.556 yref=67.9152 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.02
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits scfile=/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits outfile=/lscratch/kocevski/17372943/cmap_HighResolution_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=199.556 yref=67.9152 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.90
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372943/Model_4FGL_J1318.2+6754_daily_bin2114.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits.....................!
real 24.87
user 22.69
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits', '/lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits', expMap='/lscratch/kocevski/17372943/expmap_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits', expCube='/lscratch/kocevski/17372943/ltcube_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372943/Model_4FGL_J1318.2+6754_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.2+6754'

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  6.773e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372943/ft1_filtered_4FGL_J1318.2+6754_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17372943/ft2_4FGL_J1318.2+6754_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17372943/expmap_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17372943/ltcube_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372943/Model_4FGL_J1318.2+6754_daily_bin2114.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.316       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.1537       1.0000          .0000       .10000E+07
     3 'norm      '    .46175E-03   1.0000          .0000       .10000E+07
     4 'norm      '    10.252       1.0000          .0000       .10000E+07
     5 'Prefactor '    .99646E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .24807E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    15.387       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.593       1.0000          .0000       .10000E+07
     9 'norm      '    8.0907       1.0000          .0000       .10000E+07
    10 'Prefactor '    .59430E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.0274       1.0000          .0000       .10000E+07
    12 'Prefactor '    .56461E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.2972       1.0000          .0000       .10000E+07
    14 'Prefactor '    25.215       1.0000          .0000       .10000E+07
    15 'Prefactor '    .23639E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .94208E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .13267E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.905       1.0000          .0000       .10000E+07
    19 'Prefactor '    22.798       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11969E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .37719E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .15185E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .11275E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    62.512       1.0000          .0000       .10000E+07
    25 'Normalizat'    .69509       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0148       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6860.461     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2200 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.635        1.7163        .57816E-07    .10728E-01
   2  Prefactor     5.1500        3.4262       -.28984E-06    .40090E-02
   3  norm           .0000        5.2184       -.61019E-06** at limit **
   4  norm          10.235        5.8379        .23584E-06   -.14942E-02
   5  Prefactor     .55511E-10    2.7450       -.79055E-06** at limit **
   6  Prefactor     .72342E-06    7.2126        .13515E-06** at limit **
   7  Prefactor     18.065        56.451        .41850E-05   -.14507E-01
   8  Prefactor     18.564        2.4401        .15171E-06    .10406E-02
   9  norm          8.0974        4.9795        .28792E-06   -.27628E-02
  10  Prefactor     .60896E-07    14.066       -.14977E-05** at limit **
  11  norm          3.0262        1.6435        .25968E-07   -.53353E-03
  12  Prefactor     .13306E-04    15.337        .46369E-07** at limit **
  13  Prefactor     6.3110        7.1552       -.43586E-06    .15877E-02
  14  Prefactor     24.248        6.9994        .12744E-06    .91106E-01
  15  Prefactor     .11169E-04    17.915        .53635E-06** at limit **
  16  Prefactor     .28927E-05    53.640       -.81396E-06** at limit **
  17  Prefactor      .0000        .92053       -.77820E-07** at limit **
  18  Prefactor     13.967        15.139       -.70946E-06   -.17652E-01
  19  Prefactor     22.800        1.6171        .70864E-07    .10836E-01
  20  Prefactor     .97544E-06    14.962        .20512E-06** at limit **
  21  Prefactor     .47717E-06    10.975        .16331E-06** at limit **
  22  Prefactor     .55511E-10    4.7695        .46097E-07** at limit **
  23  Prefactor     .22204E-09    4.7868        .20210E-06** at limit **
  24  Prefactor     63.204        5.4471        .12422E-06    .34687E-01
  25  Normalizat    .69544        .15912       -.13483E-04    .11069E-03
  26  Prefactor     1.0133        .17743        .10296E-04   -.36597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.635
  Prefactor  = 5.15
  norm       = 0
  norm       = 10.2345
  Prefactor  = 5.55112e-11
  Prefactor  = 7.23421e-07
  Prefactor  = 18.065
  Prefactor  = 18.5641
  norm       = 8.09739
  Prefactor  = 6.08957e-08
  norm       = 3.02615
  Prefactor  = 1.33063e-05
  Prefactor  = 6.31098
  Prefactor  = 24.2484
  Prefactor  = 1.11691e-05
  Prefactor  = 2.89269e-06
  Prefactor  = 0
  Prefactor  = 13.9671
  Prefactor  = 22.8004
  Prefactor  = 9.75442e-07
  Prefactor  = 4.77174e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 63.2042
  Normalizat = 0.695444
  Prefactor  = 1.01334
 **********
 **   18 **HESSE 
 **********

 FCN=   6860.461     FROM HESSE     STATUS=OK           504 CALLS     2704 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.635        25.452        .15374E-03   -1.5577    
   2  Prefactor     5.1500        3.4322        .44260E-03   -1.5663    
   3  norm           .0000        5.2150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.235        5.8559        .31269E-03   -1.5644    
   5  Prefactor     .55511E-10    2.7486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72342E-06    18.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.065        56.761        .25507E-03   -1.5623    
   8  Prefactor     18.564        18.627        .23200E-03   -1.5622    
   9  norm          8.0974        4.9794        .35224E-03   -1.5651    
  10  Prefactor     .60896E-07    13.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0262        1.6446        .58297E-03   -1.5673    
  12  Prefactor     .13306E-04    28.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3110        7.1681        .39977E-03   -1.5658    
  14  Prefactor     24.248        29.861        .19919E-03   -1.5609    
  15  Prefactor     .11169E-04    31.401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .28927E-05    57.023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .92034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.967        15.533        .26834E-03   -1.5633    
  19  Prefactor     22.800        20.792        .20949E-03   -1.5612    
  20  Prefactor     .97544E-06    15.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .47717E-06    18.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    4.7718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .22204E-09    4.7888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     63.204        37.660        .12649E-03   -1.5549    
  25  Normalizat    .69544        .14021        .42225E-01   -1.0407    
  26  Prefactor     1.0133        .15316        .42705E-01   -.92286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39539e-06
Minuit parameter uncertainties:
  1  25.4518
  2  3.43216
  3  1.88543e-06
  4  5.85586
  5  1.94078e-05
  6  0.00734508
  7  56.763
  8  18.6269
  9  4.97939
  10  0.00182398
  11  1.6446
  12  0.0386282
  13  7.16808
  14  29.8607
  15  0.037455
  16  0.025687
  17  5.4997e-06
  18  15.5332
  19  20.7919
  20  0.00789893
  21  0.00597443
  22  3.30729e-05
  23  6.71088e-05
  24  37.6604
  25  0.140283
  26  0.153229
Done.

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

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  2.425e+01  2.986e+01  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.013e+00  1.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  6.954e-01  1.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 199.556 67.915
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 9.85e-09 +/- 1.21e-08
Energy Flux (Fixed Index): 4.71e-06 +/- 5.79e-06

TS (Fixed Index): 1.55
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 4.84571408485e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00368306173745 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372943/likelihoodResults_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6859.74019603
delta logL = 0.720793674924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6859.71191688
delta logL = 0.749072816513

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6859.712     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.741        45.223        .17479E-03    .56311E-02
   2  Index         1.2728        .63302        .32676       -.33745E-04
   3  Normalizat    .70251        .13427        .42324E-01    .13602E-04
   4  Prefactor     1.0092        .15110        .43444E-01    .13531E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7406
  Index      = 1.27277
  Normalizat = 0.702505
  Prefactor  = 1.00924
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.712     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.741        39.415        .69916E-05   -1.5594    
   2  Index         1.2728        .65215        .12189E-01   -.84120    
   3  Normalizat    .70251        .15551        .23698E-03   -1.0379    
   4  Prefactor     1.0092        .17548        .22518E-03   -.92422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36121e-09
Minuit parameter uncertainties:
  1  39.4156
  2  0.656388
  3  0.155611
  4  0.175577
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) = 6859.71191641
delta logL = 0.749073290303

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  3.274e+01  3.942e+01  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  1.273e+00  6.564e-01  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.009e+00  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  7.025e-01  1.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 199.556 67.915
Photon Index (Free Index): 1.27 +/- 0.66
Photon Flux (Free Index): 3.79e-09 +/- 5.08e-09
Energy Flux (Free Index): 2.53e-05 +/- 4.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/17372943/cmap_HighResolution_787276801_787536001_4FGL_J1318.2+6754_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', comment='SUCCESS', photon_flux='9.85e-09', energy_flux2='2.53e-05', photon_flux_error='1.21e-08', dlogl='7.49e-01', energy_flux='4.71e-06', photon_flux2='3.79e-09', job_status='DONE', time_completed='2025-12-16 01:13:55.925001', photon_index_error2='0.66', photon_index2='1.27', ts='1.55', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='4.85e-08', energy_flux_error2='4.29e-05', EG='0.70', time_epoch_completed='1765876435.93', return_code='0', job_id='17372943', GAL2='1.01', EG2='0.70', return_code2='0', energy_flux_error='5.79e-06', photon_flux_error2='5.08e-09', ts2='3.04', photon_index='2.17' WHERE bin_id='2114' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:13:56 PST 2025

