/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 5 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7416
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0718.0+4536_daily_bin622
RA = 109.516, Dec = 45.6163
tmin = 400550401, tmax = 400809601
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='204797', job_status='RUN', time_executed='2021-08-26 23:15:52.889097', time_epoch_executed='1630044952.89' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204797

Creating custom pfile directory:
/scratch/kocevski/204797/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=400550401.0 && nMetStart<400809601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=400550401.0 && nMetStart<400809601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204797/ft1_4FGL_J0718.0+4536_daily_bin622.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=400550401.0 && nMetStart<400809601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204797/ft1_4FGL_J0718.0+4536_daily_bin622.fits outfile=/scratch/kocevski/204797/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin622.fits ra=109.516 dec=45.6163 rad=12.0 tmin=400550401.0 tmax=400809601.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.64
user 4.20
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/204797/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin622.fits evtable="EVENTS" outfile="/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.71
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/204797/ltcube_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.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 /scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits
.....................!
real 12.38
user 11.80
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/204797/ltcube_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.fits outfile=/scratch/kocevski/204797/expmap_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.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 /scratch/kocevski/204797/ltcube_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.fits
.....................!
real 192.48
user 186.82
sys 5.20

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=/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits scfile=/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits outfile=/scratch/kocevski/204797/cmap_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.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 0.75
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits scfile=/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits outfile=/scratch/kocevski/204797/cmap_HighResolution_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.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 0.76
user 0.38
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204797/Model_4FGL_J0718.0+4536_daily_bin622.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...
/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits.....................!
real 101.49
user 99.78
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits', '/scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits', expMap='/scratch/kocevski/204797/expmap_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.fits', expCube='/scratch/kocevski/204797/ltcube_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204797/Model_4FGL_J0718.0+4536_daily_bin622.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  1.000e-04  1.000e+04 ( 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  0.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): /scratch/kocevski/204797/ft1_filtered_4FGL_J0718.0+4536_daily_bin622.fits
Spacecraft file(s): /scratch/kocevski/204797/ft2_4FGL_J0718.0+4536_daily_bin622.fits
Exposure map: /scratch/kocevski/204797/expmap_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.fits
Exposure cube: /scratch/kocevski/204797/ltcube_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204797/Model_4FGL_J0718.0+4536_daily_bin622.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) = 10270.9049254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7432       1.0000         .10000E-03   10000.    
     2 'norm      '    6.7965       1.0000         .10000E-03   10000.    
     3 'norm      '    .12979E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39454E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0492       1.0000         .10000E-03   10000.    
     8 'norm      '    11.669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9028       1.0000         .10000E-03   10000.    
    12 'norm      '    .37092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.821       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20653E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4498       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3452       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71628       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1666       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10270.90     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     3354 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7437        5.3626        .12290E-02   -.28978E-03
   2  norm          6.7977        3.9863        .14910E-03    .64051E-04
   3  norm          .10000E-03    2.9024        .23510E-02** at limit **
   4  Prefactor     .10002E-03    13.654        .11188    ** at limit **
   5  norm          .10000E-03    3.2023        .17537E-02** at limit **
   6  Prefactor     .10000E-03    2.0619        .14134E-02** at limit **
   7  Prefactor     7.0510        8.8347        .15109E-03   -.12340E-04
   8  norm          11.669        7.2623        .58637E-03    .20435E-04
   9  Prefactor     66.613        31.016        .49180E-04   -.14887E-04
  10  Prefactor     23.176        14.610        .83216E-04    .14864E-03
  11  Prefactor     5.9113        19.627        .16529E-03    .50761E-04
  12  norm          .37094        .76751        .12096E-03    .11869E-02
  13  Prefactor     .10000E-03    2.8748        .16752E-02** at limit **
  14  Prefactor     24.817        15.717        .80404E-04   -.18155E-03
  15  norm          .10000E-03    .62990        .77936E-03** at limit **
  16  Prefactor     7.8590        10.157        .14303E-03   -.12352E-03
  17  Prefactor     22.294        35.659        .84834E-04   -.42616E-04
  18  Prefactor     .10002E-03    9.1427        .31618E-02** at limit **
  19  norm          .10004E-03    11.982        .32474E-02** at limit **
  20  norm          4.4483        1.7621        .82279E-04    .14175E-02
  21  norm          1.3450        .58149        .49136E-04   -.96584E-03
  22  Normalizat    .71628        .20742        .39596E-03   -.77521E-05
  23  Prefactor     1.1665        .10949        .17508E-03   -.54521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74366
  norm       = 6.79774
  norm       = 0.000100001
  Prefactor  = 0.00010002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.05104
  norm       = 11.6694
  Prefactor  = 66.6125
  Prefactor  = 23.1756
  Prefactor  = 5.91134
  norm       = 0.370938
  Prefactor  = 0.0001
  Prefactor  = 24.8171
  norm       = 0.0001
  Prefactor  = 7.859
  Prefactor  = 22.2943
  Prefactor  = 0.000100021
  norm       = 0.000100037
  norm       = 4.44831
  norm       = 1.34499
  Normalizat = 0.716282
  Prefactor  = 1.1665
 **********
 **   18 **HESSE 
 **********

 FCN=   10270.90     FROM HESSE     STATUS=OK           358 CALLS     3712 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7437        5.3606        .49162E-04   -1.5377    
   2  norm          6.7977        3.9861        .59638E-05   -1.5186    
   3  norm          .10000E-03    2.9156        .47021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    12.776        .11862       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2043        .35073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0624        .28267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0510        8.8343        .60437E-05   -1.5177    
   8  norm          11.669        7.2618        .23455E-04   -1.5025    
   9  Prefactor     66.613        31.014        .98361E-05   -1.4074    
  10  Prefactor     23.176        14.610        .33286E-05   -1.4745    
  11  Prefactor     5.9113        19.624        .66114E-05   -1.5222    
  12  norm          .37094        .76730        .48384E-05   -1.5586    
  13  Prefactor     .10000E-03    2.8751        .33505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.817        15.716        .32162E-05   -1.4711    
  15  norm          .10000E-03    .62997        .15587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.8590        10.155        .57214E-05   -1.5147    
  17  Prefactor     22.294        35.645        .33933E-05   -1.4763    
  18  Prefactor     .10002E-03    9.2372        .63235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10004E-03    12.139        .64948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4483        1.7609        .16456E-04   -1.5286    
  21  norm          1.3450        .58140        .98272E-05   -1.5476    
  22  Normalizat    .71628        .20747        .15839E-04   -1.0325    
  23  Prefactor     1.1665        .10952        .35016E-04   -.87369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36878e-09
Minuit parameter uncertainties:
  1  5.36151
  2  3.9863
  3  8.39534e-05
  4  0.00101463
  5  2.36993e-06
  6  6.0707e-06
  7  8.83596
  8  7.26236
  9  31.0217
  10  14.6123
  11  19.6455
  12  0.767318
  13  6.32798e-06
  14  15.7185
  15  2.50871e-07
  16  10.1571
  17  35.6787
  18  0.000887006
  19  0.00133879
  20  1.76092
  21  0.581401
  22  0.207695
  23  0.109545
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.167e+01  7.262e+00  1.000e-04  1.000e+04 ( 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  0.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.166e+00  1.095e-01  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:  7.163e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 109.516 45.616
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.06e-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) = 10270.8963141
delta logL = 0.00192394148871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10270.8961444
delta logL = 0.00209362865826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.778       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2062       1.0000          .0000       5.0000    
     3 'Normalizat'    .71812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1659       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10270.90     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.780        7.5873        .11673E-03    .57269E-04
   2  alpha         2.2061        .64433        .20331E-01    .10650E-03
   3  Normalizat    .71805        .19577        .39551E-03    .33746E-04
   4  Prefactor     1.1660        .10809        .17511E-03   -.64402E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7799
  alpha      = 2.2061
  Normalizat = 0.718046
  Prefactor  = 1.16598
 **********
 **   18 **HESSE 
 **********

 FCN=   10270.90     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.780        7.5192        .46690E-05   -1.5021    
   2  alpha         2.2061        .63844        .40661E-02   -.11783    
   3  Normalizat    .71805        .19576        .15821E-04   -1.0318    
   4  Prefactor     1.1660        .10811        .70045E-05   -.87385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33908e-11
Minuit parameter uncertainties:
  1  7.51984
  2  0.645694
  3  0.195951
  4  0.108128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204797': No such file or directory
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) = 10270.8961443
delta logL = 0.00209375386476

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.178e+01  7.520e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.206e+00  6.457e-01  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  2.201e-01  0.000e+00  0.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.166e+00  1.081e-01  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:  7.180e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 109.516 45.616
Photon Index (Free Index): 2.21 +/- 0.65
Photon Flux (Free Index): 4.47e-08 +/- 3.53e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/204797/cmap_HighResolution_400550401_400809601_4FGL_J0718.0+4536_daily_bin622.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/204797

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.72e-05', photon_flux_error='2.87e-08', dlogl='2.09e-03', energy_flux='1.71e-05', photon_flux2='4.47e-08', job_status='DONE', time_completed='2021-08-26 23:31:34.851128', photon_index_error2='0.65', photon_index2='2.21', ts='5.16', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.72', time_epoch_completed='1630045894.85', return_code='0', job_id='204797', GAL2='1.17', EG2='0.72', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.53e-08', ts2='5.15', photon_index='2.25' WHERE bin_id='622' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 204797: <4FGL_J0718.0+4536_daily_bin622> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin622> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 23:15:33 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 23:15:34 2021
Terminated at Thu Aug 26 23:31:35 2021
Results reported at Thu Aug 26 23:31:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin622 109.516 45.6163 400550401 400809601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0718.0+4536 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   942.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             309.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

The output (if any) is above this job summary.

