/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 167 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0718.0+4536_daily_bin64
RA = 109.516, Dec = 45.6163
tmin = 255916801, tmax = 256176001
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='201687', job_status='RUN', time_executed='2021-08-26 23:08:43.320535', time_epoch_executed='1630044523.32' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201687/ft1_4FGL_J0718.0+4536_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201687/ft1_4FGL_J0718.0+4536_daily_bin64.fits outfile=/scratch/kocevski/201687/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin64.fits ra=109.516 dec=45.6163 rad=12.0 tmin=255916801.0 tmax=256176001.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.12
user 1.27
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201687/ft1_filtered_4FGL_J0718.0+4536_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/201687/ltcube_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.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/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits
.....................!
real 13.21
user 12.20
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201687/ft1_filtered_4FGL_J0718.0+4536_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/201687/ltcube_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.fits outfile=/scratch/kocevski/201687/expmap_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.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/201687/ltcube_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.fits
.....................!
real 193.11
user 185.77
sys 6.50

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/201687/ft1_filtered_4FGL_J0718.0+4536_daily_bin64.fits scfile=/scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits outfile=/scratch/kocevski/201687/cmap_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.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.96
user 0.38
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201687/ft1_filtered_4FGL_J0718.0+4536_daily_bin64.fits scfile=/scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits outfile=/scratch/kocevski/201687/cmap_HighResolution_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.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.96
user 0.39
sys 0.56

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/201687/ft1_filtered_4FGL_J0718.0+4536_daily_bin64.fits', '/scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits', expMap='/scratch/kocevski/201687/expmap_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.fits', expCube='/scratch/kocevski/201687/ltcube_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/201687/Model_4FGL_J0718.0+4536_daily_bin64.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/201687/ft1_filtered_4FGL_J0718.0+4536_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/201687/ft2_4FGL_J0718.0+4536_daily_bin64.fits
Exposure map: /scratch/kocevski/201687/expmap_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.fits
Exposure cube: /scratch/kocevski/201687/ltcube_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/201687/Model_4FGL_J0718.0+4536_daily_bin64.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8687.132947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3206       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0629       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8450       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6422       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2951       1.0000         .10000E-03   10000.    
     8 'norm      '    19.705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.223       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8939       1.0000         .10000E-03   10000.    
    21 'norm      '    .57644       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88425       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0352       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.

 FCN=   8686.183     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2223 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.075        7.9882        .67856E-07   -.27203E-04
   2  norm          8.3237        4.3400        .25994E-07   -.38627E-04
   3  norm          1.0611        3.4437        .14970E-05   -.77620E-04
   4  Prefactor     2.8542        23.339       -.10107E-05   -.28818E-04
   5  norm          1.6421        2.5921        .13228E-06   -.44408E-04
   6  Prefactor     .10000E-03    1.7554       -.46473E-07** at limit **
   7  Prefactor     6.2935        10.759        .13012E-06   -.16395E-04
   8  norm          19.716        9.4478       -.13629E-06   -.67372E-04
   9  Prefactor     .10000E-03    10.890        .73286E-07** at limit **
  10  Prefactor     .10000E-03    7.3205        .10582E-06** at limit **
  11  Prefactor     .10000E-03    14.706       -.47276E-07** at limit **
  12  norm          .23134        .55566        .35222E-06   -.23470E-03
  13  Prefactor     .10000E-03    5.2355        .23393E-07** at limit **
  14  Prefactor     13.203        17.239        .10588E-05    .50351E-04
  15  norm          1.7814        2.3320        .21793E-06   -.36722E-04
  16  Prefactor     .10000E-03    2.7211       -.40423E-06** at limit **
  17  Prefactor     3.3864        65.865       -.39561E-05   -.18153E-04
  18  Prefactor     .10000E-03    2.8626       -.44465E-07** at limit **
  19  norm          .10000E-03    1.1138       -.73375E-08** at limit **
  20  norm          1.8938        1.6332        .50258E-07   -.73263E-04
  21  norm          .57585        .49896       -.27917E-07    .98049E-04
  22  Normalizat    .88453        .17703       -.31091E-06   -.11507E-03
  23  Prefactor     1.0350        .96603E-01   -.42365E-06   -.10482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0752
  norm       = 8.32374
  norm       = 1.06113
  Prefactor  = 2.85419
  norm       = 1.64206
  Prefactor  = 0.0001
  Prefactor  = 6.29346
  norm       = 19.7162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.231339
  Prefactor  = 0.0001
  Prefactor  = 13.2032
  norm       = 1.78142
  Prefactor  = 0.0001
  Prefactor  = 3.38644
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.89385
  norm       = 0.575847
  Normalizat = 0.884528
  Prefactor  = 1.03501
 **********
 **   18 **HESSE 
 **********

 FCN=   8686.183     FROM HESSE     STATUS=OK           378 CALLS     2601 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.075        7.9984        .12038E-03   -1.5042    
   2  norm          8.3237        4.3354        .13464E-03   -1.5131    
   3  norm          1.0611        3.4910        .29895E-03   -1.5502    
   4  Prefactor     2.8542        23.457        .24106E-03   -1.5370    
   5  norm          1.6421        2.5586        .18172E-03   -1.5452    
   6  Prefactor     .10000E-03    1.7634        .12052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2935        10.739        .15999E-03   -1.5206    
   8  norm          19.716        9.4488        .90228E-04   -1.4820    
   9  Prefactor     .10000E-03    10.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .23134        .56885        .10240E-02   -1.5612    
  13  Prefactor     .10000E-03    5.2592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.203        17.480        .11015E-03   -1.4981    
  15  norm          1.7814        2.3151        .15726E-03   -1.5441    
  16  Prefactor     .10000E-03    2.7117        .14962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3864        68.381        .21834E-03   -1.5340    
  18  Prefactor     .10000E-03    2.9009        .15377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1152        .96027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8938        1.6239        .10727E-03   -1.5433    
  21  norm          .57585        .47442        .59008E-03   -1.5556    
  22  Normalizat    .88453        .19833        .33313E-03   -.97006    
  23  Prefactor     1.0350        .10882        .17380E-03   -.91571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34837e-08
Minuit parameter uncertainties:
  1  7.99917
  2  4.33557
  3  3.4917
  4  16.3732
  5  2.55873
  6  3.9688e-07
  7  10.7418
  8  9.4495
  9  2.93131e-06
  10  5.38425e-06
  11  6.1091e-06
  12  0.568863
  13  2.11685e-06
  14  17.4868
  15  2.31521
  16  8.84904e-06
  17  30.4742
  18  7.75469e-06
  19  3.58497e-07
  20  1.6239
  21  0.47442
  22  0.198493
  23  0.108841
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.972e+01  9.450e+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.035e+00  1.088e-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:  8.845e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 109.516 45.616
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 7.79e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.38e-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) = 8686.18254618
delta logL = 0.00013369419321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8686.18252623
delta logL = 0.000153638580741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.668       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2577       1.0000          .0000       5.0000    
     3 'Normalizat'    .88374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0352       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=   8686.183     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      273 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.651        10.253        .45156E-03   -.50051E-04
   2  alpha         2.2566        .49072        .13889E-01   -.12414E-04
   3  Normalizat    .88401        .19132        .33321E-03    .17946E-04
   4  Prefactor     1.0352        .10714        .17378E-03   -.20018E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.651
  alpha      = 2.25658
  Normalizat = 0.884012
  Prefactor  = 1.03518
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.651        10.095        .18062E-04   -1.4821    
   2  alpha         2.2566        .48297        .55555E-03   -.97522E-01
   3  Normalizat    .88401        .19131        .13328E-04   -.97024    
   4  Prefactor     1.0352        .10715        .69513E-05   -.91566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52304e-11
Minuit parameter uncertainties:
  1  10.0957
  2  0.486054
  3  0.191453
  4  0.107168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201687': 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) = 8686.1825187
delta logL = 0.000161176851179

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.965e+01  1.010e+01  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.257e+00  4.861e-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.035e+00  1.072e-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:  8.840e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 109.516 45.616
Photon Index (Free Index): 2.26 +/- 0.49
Photon Flux (Free Index): 7.83e-08 +/- 4.37e-08
Energy Flux (Free Index): 2.88e-05 +/- 1.44e-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/201687/cmap_HighResolution_255916801_256176001_4FGL_J0718.0+4536_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.79e-08', energy_flux2='2.88e-05', photon_flux_error='3.73e-08', dlogl='1.61e-04', energy_flux='2.89e-05', photon_flux2='7.83e-08', job_status='DONE', time_completed='2021-08-26 23:20:52.361583', photon_index_error2='0.49', photon_index2='2.26', ts='7.32', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.88', time_epoch_completed='1630045252.36', return_code='0', job_id='201687', GAL2='1.04', EG2='0.88', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.37e-08', ts2='7.30', photon_index='2.25' WHERE bin_id='64' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 201687: <4FGL_J0718.0+4536_daily_bin64> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin64> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 23:05:32 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:05: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:05:34 2021
Terminated at Thu Aug 26 23:20:53 2021
Results reported at Thu Aug 26 23:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin64 109.516 45.6163 255916801 256176001 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 :                                   733.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

