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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin574
RA = 109.516, Dec = 45.6163
tmin = 388108801, tmax = 388368001
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='204727', job_status='RUN', time_executed='2021-08-26 23:15:57.230238', time_epoch_executed='1630044957.23' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204727/ft1_4FGL_J0718.0+4536_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204727/ft1_4FGL_J0718.0+4536_daily_bin574.fits outfile=/scratch/kocevski/204727/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin574.fits ra=109.516 dec=45.6163 rad=12.0 tmin=388108801.0 tmax=388368001.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.59
user 3.13
sys 1.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.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/204727/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.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 1.69
user 0.33
sys 1.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/204727/ltcube_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.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/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits
.....................!
real 13.33
user 11.65
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/204727/ltcube_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.fits outfile=/scratch/kocevski/204727/expmap_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.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/204727/ltcube_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.fits
.....................!
real 191.40
user 185.15
sys 5.84

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/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.fits scfile=/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits outfile=/scratch/kocevski/204727/cmap_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.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.76
user 0.39
sys 1.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.fits scfile=/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits outfile=/scratch/kocevski/204727/cmap_HighResolution_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.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.73
user 0.38
sys 1.32

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.fits', '/scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits', expMap='/scratch/kocevski/204727/expmap_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.fits', expCube='/scratch/kocevski/204727/ltcube_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204727/Model_4FGL_J0718.0+4536_daily_bin574.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/204727/ft1_filtered_4FGL_J0718.0+4536_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/204727/ft2_4FGL_J0718.0+4536_daily_bin574.fits
Exposure map: /scratch/kocevski/204727/expmap_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.fits
Exposure cube: /scratch/kocevski/204727/ltcube_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204727/Model_4FGL_J0718.0+4536_daily_bin574.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) = 8457.40464759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1810       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8707       1.0000         .10000E-03   10000.    
     8 'norm      '    13.584       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.801       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11762E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5934       1.0000         .10000E-03   10000.    
    15 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45888E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1107       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .91066       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78059       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0390       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=   8456.596     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1841 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5524        .33223E-06** at limit **
   2  norm          2.1811        4.5892       -.25913E-05   -.20930E-03
   3  norm          1.5927        3.1374        .59602E-06   -.84912E-04
   4  Prefactor     .10000E-03    21.409       -.18570E-06** at limit **
   5  norm          .10000E-03    3.6300        .11547E-06** at limit **
   6  Prefactor     4.8417        4.8170       -.13704E-05   -.49425E-03
   7  Prefactor     9.8688        2.2303        .13457E-06    .37427E-03
   8  norm          13.586        2.2510       -.53202E-07    .21125E-02
   9  Prefactor     5.0159        19.918        .61723E-05   -.94324E-04
  10  Prefactor     24.787        3.4255       -.31814E-06   -.27089E-02
  11  Prefactor     .10000E-03    15.687       -.28482E-06** at limit **
  12  norm          .10000E-03    .64353        .11256E-07** at limit **
  13  Prefactor     3.2579        9.9290        .46010E-05   -.54781E-03
  14  Prefactor     9.5880        5.8908       -.13938E-05   -.27113E-03
  15  norm          .10000E-03    1.6671        .87475E-07** at limit **
  16  Prefactor     3.3476        5.4768       -.12048E-05   -.95871E-04
  17  Prefactor     .10001E-03    524.17        .27598E-05** at limit **
  18  Prefactor     .10000E-03    2.6392        .17877E-06** at limit **
  19  norm          5.1125        4.4171        .31606E-05    .21421E-03
  20  norm          .10000E-03    .57615       -.58385E-07** at limit **
  21  norm          .91044        .56099       -.11175E-07   -.15666E-03
  22  Normalizat    .78020        .18929       -.13447E-05   -.91237E-04
  23  Prefactor     1.0390        .10356        .58119E-06   -.13262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.18113
  norm       = 1.59266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.84169
  Prefactor  = 9.86877
  norm       = 13.5863
  Prefactor  = 5.01589
  Prefactor  = 24.7869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.25789
  Prefactor  = 9.58804
  norm       = 0.0001
  Prefactor  = 3.34758
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 5.11246
  norm       = 0.0001
  norm       = 0.910439
  Normalizat = 0.780199
  Prefactor  = 1.03905
 **********
 **   18 **HESSE 
 **********

 FCN=   8456.596     FROM HESSE     STATUS=OK           440 CALLS     2281 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5296        .54607E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1811        4.6987        .69689E-02   -1.5413    
   3  norm          1.5927        3.1588        .84078E-02   -1.5456    
   4  Prefactor     .10000E-03    21.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8417        5.1544        .45705E-02   -1.5268    
   7  Prefactor     9.8688        17.940        .31886E-02   -1.5080    
   8  norm          13.586        8.4477        .27169E-02   -1.4971    
   9  Prefactor     5.0159        20.292        .44774E-02   -1.5260    
  10  Prefactor     24.787        10.528        .20109E-02   -1.4712    
  11  Prefactor     .10000E-03    15.655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .35571        .21232E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2579        12.514        .56146E-02   -1.5347    
  14  Prefactor     9.5880        11.540        .32346E-02   -1.5089    
  15  norm          .10000E-03    1.6131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3476        5.6689        .55251E-02   -1.5342    
  17  Prefactor     .10001E-03    40.648        .13997       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1125        4.4407        .44462E-02   -1.5256    
  20  norm          .10000E-03    .56933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .91044        .58068        .11865E-01   -1.5517    
  22  Normalizat    .78020        .17960        .77110E-01   -1.0081    
  23  Prefactor     1.0390        .93135E-01    .40603E-01   -.91439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00126e-07
Minuit parameter uncertainties:
  1  4.63807e-06
  2  4.69954
  3  3.1591
  4  0.000136245
  5  1.43277e-06
  6  5.15489
  7  17.9501
  8  8.44846
  9  20.1891
  10  10.5286
  11  2.91175e-05
  12  9.15969e-08
  13  12.5238
  14  11.5426
  15  1.62251e-06
  16  5.66985
  17  0.00152582
  18  3.45599e-06
  19  4.44103
  20  5.05006e-07
  21  0.580681
  22  0.179732
  23  0.0931497
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.359e+01  8.448e+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.039e+00  9.315e-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:  7.802e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 109.516 45.616
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.24e-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) = 8456.46866128
delta logL = 0.127270982608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8456.46548765
delta logL = 0.130444618992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.185       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5568       1.0000          .0000       5.0000    
     3 'Normalizat'    .76534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0433       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=   8456.465     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      304 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.198        8.5739        .57379E-03   -.11944E-03
   2  alpha         2.5584        .63540        .14813E-01    .17343E-03
   3  Normalizat    .76523        .18640        .34432E-03    .10302E-04
   4  Prefactor     1.0432        .10325        .16655E-03   -.57749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1982
  alpha      = 2.55836
  Normalizat = 0.765231
  Prefactor  = 1.0432
 **********
 **   18 **HESSE 
 **********

 FCN=   8456.465     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.198        8.2890        .22951E-04   -1.5009    
   2  alpha         2.5584        .61432        .29627E-02    .23348E-01
   3  Normalizat    .76523        .18634        .13773E-04   -1.0137    
   4  Prefactor     1.0432        .10324        .66618E-05   -.91303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52355e-11
Minuit parameter uncertainties:
  1  8.2898
  2  0.620684
  3  0.186495
  4  0.103256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204727': 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) = 8456.46547761
delta logL = 0.130454659782

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.220e+01  8.290e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.558e+00  6.207e-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.043e+00  1.033e-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.652e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 109.516 45.616
Photon Index (Free Index): 2.56 +/- 0.62
Photon Flux (Free Index): 6.69e-08 +/- 4.49e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.13e-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/204727/cmap_HighResolution_388108801_388368001_4FGL_J0718.0+4536_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='1.94e-05', photon_flux_error='3.34e-08', dlogl='1.30e-01', energy_flux='1.99e-05', photon_flux2='6.69e-08', job_status='DONE', time_completed='2021-08-26 23:27:29.610523', photon_index_error2='0.62', photon_index2='2.56', ts='4.35', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.78', time_epoch_completed='1630045649.61', return_code='0', job_id='204727', GAL2='1.04', EG2='0.77', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.49e-08', ts2='4.62', photon_index='2.25' WHERE bin_id='574' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:27:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 204727: <4FGL_J0718.0+4536_daily_bin574> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin574> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 23:15:28 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:15:29 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:29 2021
Terminated at Thu Aug 26 23:27:30 2021
Results reported at Thu Aug 26 23:27:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin574 109.516 45.6163 388108801 388368001 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 :                                   709.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            722 sec.

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

