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


Performing analysis on: 4FGL_J0718.0+4536_weekly_bin906
RA = 109.516, Dec = 45.6163
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='17373971', job_status='RUN', time_executed='2025-12-16 01:36:45.473107', time_epoch_executed='1765877805.47' WHERE source_name='4FGL J0718.0+4536' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373971

Creating custom pfile directory:
/lscratch/kocevski/17373971/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/17373971/ft1_4FGL_J0718.0+4536_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/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373971/ft1_4FGL_J0718.0+4536_weekly_bin906.fits outfile=/lscratch/kocevski/17373971/ft1_filteredMKT_4FGL_J0718.0+4536_weekly_bin906.fits ra=109.516 dec=45.6163 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.60
user 4.47
sys 0.37

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_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/17373971/ft1_filteredMKT_4FGL_J0718.0+4536_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_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 1.02
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2130

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373971/ltcube_786931201_787536001_4FGL_J0718.0+4536_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/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits
.....................!
real 16.60
user 15.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373971/ltcube_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.fits outfile=/lscratch/kocevski/17373971/expmap_786931201_787536001_4FGL_J0718.0+4536_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/17373971/ltcube_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.fits
.....................!
real 60.35
user 55.79
sys 3.62

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

Setting source of interest to:
4FGL J0718.0+4536 @ 109.516 45.6163

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits scfile=/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits outfile=/lscratch/kocevski/17373971/cmap_786931201_787536001_4FGL_J0718.0+4536_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=109.516 yref=45.6163 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.07
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits scfile=/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits outfile=/lscratch/kocevski/17373971/cmap_HighResolution_786931201_787536001_4FGL_J0718.0+4536_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=109.516 yref=45.6163 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.14
user 0.20
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373971/Model_4FGL_J0718.0+4536_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/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits.....................!
real 74.07
user 71.67
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits', '/lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits', expMap='/lscratch/kocevski/17373971/expmap_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.fits', expCube='/lscratch/kocevski/17373971/ltcube_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373971/Model_4FGL_J0718.0+4536_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0718.0+4536'

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.760e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
259        alpha:  2.248e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  2.201e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17373971/ft1_filtered_4FGL_J0718.0+4536_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17373971/ft2_4FGL_J0718.0+4536_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17373971/expmap_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17373971/ltcube_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373971/Model_4FGL_J0718.0+4536_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) = 22798.786396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75744E-03   1.0000          .0000       .10000E+07
     2 'norm      '    2.7528       1.0000          .0000       .10000E+07
     3 'norm      '    .94783E-04   1.0000          .0000       .10000E+07
     4 'norm      '    1.0794       1.0000          .0000       .10000E+07
     5 'Prefactor '    .62550E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.5301       1.0000          .0000       .10000E+07
     7 'norm      '    6.5883       1.0000          .0000       .10000E+07
     8 'Prefactor '    27.049       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15672E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    34.259       1.0000          .0000       .10000E+07
    11 'norm      '    5.8603       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1622       1.0000          .0000       .10000E+07
    13 'Prefactor '    .39708E-05   1.0000          .0000       .10000E+07
    14 'norm      '    1.3213       1.0000          .0000       .10000E+07
    15 'Prefactor '    .37004E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .65967E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    16.838       1.0000          .0000       .10000E+07
    18 'norm      '    1.7299       1.0000          .0000       .10000E+07
    19 'norm      '    1.8039       1.0000          .0000       .10000E+07
    20 'norm      '    1.0575       1.0000          .0000       .10000E+07
    21 'Normalizat'    .95833       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22798.76     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1377 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72164E-09    4.2199        .10180E-05** at limit **
   2  norm          2.7516        1.7539        .30039E-07   -.86406E-03
   3  norm          .19912E-06    8.2734       -.87823E-05** at limit **
   4  norm          1.0809        2.5111       -.32300E-07   -.25551E-03
   5  Prefactor     .61062E-09    2.8422        .40340E-06** at limit **
   6  Prefactor     5.5763        2.1867       -.12066E-05   -.55964E-01
   7  norm          6.5767        3.8725        .31341E-06    .32265E-02
   8  Prefactor     26.900        3.0187        .85838E-06   -.12181E-01
   9  Prefactor     .55511E-10    2.3281        .11394E-07** at limit **
  10  Prefactor     33.395        8.7291       -.19734E-05    .11836    
  11  norm          5.8631        .82166        .86273E-09    .60052E-01
  12  Prefactor     2.1730        3.7576        .14312E-06    .41521E-02
  13  Prefactor     .55511E-08    6.4287        .14603E-05** at limit **
  14  norm          1.3218        1.0447       -.46708E-07    .17339E-02
  15  Prefactor     .33307E-09    1.4299       -.13609E-06** at limit **
  16  Prefactor     .14716E-06    14.022        .11762E-05** at limit **
  17  Prefactor     16.833        4.3463       -.66335E-07   -.99963E-02
  18  norm          1.7304        1.5269       -.59750E-09    .40670E-02
  19  norm          1.8039        .85091       -.39725E-07    .50293E-02
  20  norm          1.0574        .37896       -.94750E-08    .11195E-01
  21  Normalizat    .95936        .13749        .11303E-04   -.74995E-03
  22  Prefactor     1.0681        .72197E-01   -.15340E-05   -.94304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21645e-10
  norm       = 2.7516
  norm       = 1.99118e-07
  norm       = 1.08094
  Prefactor  = 6.10623e-10
  Prefactor  = 5.57628
  norm       = 6.57666
  Prefactor  = 26.9003
  Prefactor  = 5.55112e-11
  Prefactor  = 33.3953
  norm       = 5.86312
  Prefactor  = 2.17298
  Prefactor  = 5.55112e-09
  norm       = 1.32178
  Prefactor  = 3.33067e-10
  Prefactor  = 1.4716e-07
  Prefactor  = 16.8334
  norm       = 1.73041
  norm       = 1.80389
  norm       = 1.05742
  Normalizat = 0.959357
  Prefactor  = 1.06812
 **********
 **   18 **HESSE 
 **********

 FCN=   22798.76     FROM HESSE     STATUS=OK           400 CALLS     1777 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72164E-09    4.2305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7516        1.7624        .61328E-03   -1.5675    
   3  norm          .19912E-06    .85725        .51685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0809        2.6255        .11602E-02   -1.5687    
   5  Prefactor     .61062E-09    2.8434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5763        10.152        .42700E-03   -1.5661    
   7  norm          6.5767        3.8819        .39073E-03   -1.5657    
   8  Prefactor     26.900        15.969        .19231E-03   -1.5604    
   9  Prefactor     .55511E-10    2.3424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.395        18.836        .17087E-03   -1.5592    
  11  norm          5.8631        .83542        .41461E-03   -1.5660    
  12  Prefactor     2.1730        3.8286        .70021E-03   -1.5678    
  13  Prefactor     .55511E-08    6.4342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3218        1.0412        .95674E-03   -1.5685    
  15  Prefactor     .33307E-09    1.4377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14716E-06    14.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.833        4.3546        .24381E-03   -1.5626    
  18  norm          1.7304        1.5297        .79789E-03   -1.5682    
  19  norm          1.8039        .84943        .77787E-03   -1.5681    
  20  norm          1.0574        .38431        .11946E-02   -1.5687    
  21  Normalizat    .95936        .12337        .80908E-01   -.94405    
  22  Prefactor     1.0681        .63802E-01    .38940E-01   -.90492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58153e-07
Minuit parameter uncertainties:
  1  0.000109073
  2  1.7624
  3  0.000826301
  4  2.62548
  5  8.2709e-05
  6  10.1519
  7  3.88187
  8  15.9693
  9  2.66897e-05
  10  18.8361
  11  0.835419
  12  3.82862
  13  0.000377808
  14  1.04123
  15  4.36273e-05
  16  0.00295288
  17  4.35465
  18  1.52967
  19  0.849432
  20  0.384308
  21  0.123411
  22  0.063807
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  6.577e+00  3.882e+00  0.000e+00  1.000e+06 ( 1.000e-12)
259        alpha:  2.248e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  2.201e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.068e+00  6.381e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.594e-01  1.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 109.516 45.616
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 1.53e-08
Energy Flux (Fixed Index): 9.63e-06 +/- 5.69e-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) = 22798.6308206
delta logL = 0.131162268608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22798.6217205
delta logL = 0.140262372221

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22798.62     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0571        4.1644        .40772E-03   -.33875E-01
   2  alpha         1.8538        .62985        .43041       -.92283E-04
   3  Normalizat    .96832        .11840        .80570E-01    .71844E-04
   4  Prefactor     1.0665        .63574E-01    .39027E-01   -.29283E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.05708
  alpha      = 1.85376
  Normalizat = 0.968318
  Prefactor  = 1.0665
 **********
 **   18 **HESSE 
 **********

 FCN=   22798.62     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0571        4.2288        .16309E-04   -1.5659    
   2  alpha         1.8538        .72133        .34795E-01   -.26147    
   3  Normalizat    .96832        .13265        .35664E-03   -.94099    
   4  Prefactor     1.0665        .71616E-01    .18387E-03   -.90545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94685e-09
Minuit parameter uncertainties:
  1  4.22883
  2  0.732507
  3  0.132698
  4  0.0716223
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) = 22798.6217205
delta logL = 0.140262406891

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  6.057e+00  4.229e+00  0.000e+00  1.000e+06 ( 1.000e-12)
259        alpha:  1.854e+00  7.325e-01  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  2.201e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.066e+00  7.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.683e-01  1.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 109.516 45.616
Photon Index (Free Index): 1.85 +/- 0.73
Photon Flux (Free Index): 1.71e-08 +/- 1.78e-08
Energy Flux (Free Index): 9.70e-06 +/- 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/17373971/cmap_HighResolution_786931201_787536001_4FGL_J0718.0+4536_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='9.70e-06', photon_flux_error='1.53e-08', dlogl='1.40e-01', energy_flux='9.63e-06', photon_flux2='1.71e-08', job_status='DONE', time_completed='2025-12-16 01:50:58.580504', photon_index_error2='0.73', photon_index2='1.85', ts='5.94', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='6.12e-06', EG='0.96', time_epoch_completed='1765878658.58', return_code='0', job_id='17373971', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='5.69e-06', photon_flux_error2='1.78e-08', ts2='6.21', photon_index='2.25' WHERE bin_id='906' AND source_name='4FGL J0718.0+4536' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:50:59 PST 2025

