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


Performing analysis on: 4FGL_J0418.2+3807_daily_bin1318
RA = 64.5633, Dec = 38.1219
tmin = 580953601, tmax = 581212801
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='369551', job_status='RUN', time_executed='2021-08-20 11:28:53.005649', time_epoch_executed='1629484133.01' WHERE source_name='4FGL J0418.2+3807' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369551/ft1_4FGL_J0418.2+3807_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369551/ft1_4FGL_J0418.2+3807_daily_bin1318.fits outfile=/scratch/kocevski/369551/ft1_filteredMKT_4FGL_J0418.2+3807_daily_bin1318.fits ra=64.5633 dec=38.1219 rad=12.0 tmin=580953601.0 tmax=581212801.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 7.90
user 2.78
sys 5.08

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.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/369551/ft1_filteredMKT_4FGL_J0418.2+3807_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.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 5.46
user 0.33
sys 5.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/369551/ltcube_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.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/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits
.....................!
real 17.87
user 11.98
sys 5.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/369551/ltcube_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.fits outfile=/scratch/kocevski/369551/expmap_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.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/369551/ltcube_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.fits
.....................!
real 196.48
user 185.30
sys 10.83

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
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 153 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0418.2+3807 @ 64.5633 38.1219

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits scfile=/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits outfile=/scratch/kocevski/369551/cmap_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.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=64.5633 yref=38.1219 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 5.40
user 0.37
sys 4.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits scfile=/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits outfile=/scratch/kocevski/369551/cmap_HighResolution_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.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=64.5633 yref=38.1219 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 5.39
user 0.37
sys 4.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369551/Model_4FGL_J0418.2+3807_daily_bin1318.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
adding source S 147
Working on...
/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits.......................!
real 52.77
user 44.90
sys 7.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits', '/scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits', expMap='/scratch/kocevski/369551/expmap_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.fits', expCube='/scratch/kocevski/369551/ltcube_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369551/Model_4FGL_J0418.2+3807_daily_bin1318.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0418.2+3807'

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  1.806e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.499e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.029e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/369551/ft1_filtered_4FGL_J0418.2+3807_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/369551/ft2_4FGL_J0418.2+3807_daily_bin1318.fits
Exposure map: /scratch/kocevski/369551/expmap_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.fits
Exposure cube: /scratch/kocevski/369551/ltcube_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369551/Model_4FGL_J0418.2+3807_daily_bin1318.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) = 1395.89336961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1673       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5253       1.0000         .10000E-03   10000.    
     3 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    188.22       1.0000         .10000E-03   10000.    
     5 'norm      '    .29381E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1978.8       1.0000         .10000E-03   10000.    
     9 'norm      '    37.600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3391.6       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1400       1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    .78787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1390.974     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     1180 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1737        1.3190       -.29572E-06   -.36576E-03
   2  Prefactor     7.5223        5.1078       -.54549E-07    .12456E-02
   3  norm          .10000E-03    12.629       -.23600E-05** at limit **
   4  Prefactor     167.42        255.23       -.99065E-04    .15961E-03
   5  norm          .10003E-03    134.72       -.26702E-04** at limit **
   6  Prefactor     6.6285        6.8841        .73166E-05    .75490E-03
   7  Prefactor     .10000E-03    22.084        .10801E-04** at limit **
   8  norm          1872.7        616.04       -.11166E-04   -.16901E-04
   9  norm         10000.0        6947.0       -.16545E-02** at limit **
  10  Prefactor     2588.5        1906.3        .10760E-04   -.44770E-05
  11  norm          .10005E-03    381.00        .36415E-05** at limit **
  12  norm          .10000E-03    14.910        .12865E-05** at limit **
  13  Prefactor     .10000E-03    53.922        .11712E-05** at limit **
  14  Normalizat    .10000E-01    .17850       -.74348E-06** at limit **
  15  Prefactor     .79634        .10565        .53637E-05    .35452E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17375
  Prefactor  = 7.52227
  norm       = 0.000100003
  Prefactor  = 167.42
  norm       = 0.000100034
  Prefactor  = 6.62852
  Prefactor  = 0.0001
  norm       = 1872.66
  norm       = 10000
  Prefactor  = 2588.54
  norm       = 0.000100054
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.796343
 **********
 **   18 **HESSE 
 **********

 FCN=   1390.974     FROM HESSE     STATUS=OK           216 CALLS     1396 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1737        1.3211        .69936E-02   -1.5413    
   2  Prefactor     7.5223        5.1162        .36549E-02   -1.5159    
   3  norm          .10000E-03    6.9549        .36255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     167.42        258.87        .73587E-03   -1.3113    
   5  norm          .10003E-03    133.09        .91690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6285        6.9051        .38973E-02   -1.5193    
   7  Prefactor     .10000E-03    22.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1872.7        616.27        .25100E-03   -.67573    
   9  norm         10000.0        6949.6        .16340E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2588.5        1877.2        .21123E-03   -.50327    
  11  norm          .10005E-03    360.90        .70438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.448        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .10000E-01    .17884        .22213       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .79634        .10527        .28861E-01   -.99863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69279e-09
Minuit parameter uncertainties:
  1  1.32114
  2  5.11654
  3  0.000289425
  4  260.659
  5  0.004239
  6  6.90594
  7  2.17255e-05
  8  618.86
  9  0.0531452
  10  1940
  11  0.00892093
  12  3.76919e-05
  13  0.000749988
  14  6.83978e-08
  15  0.105297
Done.

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

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  1.873e+03  6.189e+02  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.499e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.029e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  7.963e-01  1.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.000e-02  6.840e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.31
Ra Dec: 64.563 38.122
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.84e-05 +/- 1.27e-05
Energy Flux (Fixed Index): 9.39e-03 +/- 3.10e-03

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) = 1387.2440691
delta logL = 3.73002337748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1387.18704875
delta logL = 3.78704372427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    832.84       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0848       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   1387.187     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      288 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          832.91        565.74        .72382E-04   -.32660E-03
   2  alpha         4.0847        .66962        .55005E-03   -.19043E-03
   3  Normalizat    .10000E-01    .14835        .44018E-02** at limit **
   4  Prefactor     .80028        .97889E-01    .12600E-03    .50303E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 832.906
  alpha      = 4.08471
  Normalizat = 0.01
  Prefactor  = 0.800283
 **********
 **   18 **HESSE 
 **********

 FCN=   1387.187     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          832.91        564.17        .14476E-04   -.98527    
   2  alpha         4.0847        .66782        .11001E-03    .68657    
   3  Normalizat    .10000E-01    .14835        .88037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80028        .97876E-01    .50399E-05   -.99718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0725e-10
Minuit parameter uncertainties:
  1  568.17
  2  0.681868
  3  7.47996e-07
  4  0.0978971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369551': 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) = 1387.18704873
delta logL = 3.78704374763

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  8.329e+02  5.682e+02  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  4.085e+00  6.819e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.499e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.029e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  8.003e-01  9.790e-02  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.000e-02  7.480e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.25
Ra Dec: 64.563 38.122
Photon Index (Free Index): 4.08 +/- 0.68
Photon Flux (Free Index): 6.68e-05 +/- 2.06e-05
Energy Flux (Free Index): 1.02e-02 +/- 2.98e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/369551/cmap_HighResolution_580953601_581212801_4FGL_J0418.2+3807_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-05', energy_flux2='1.02e-02', photon_flux_error='1.27e-05', dlogl='3.79e+00', energy_flux='9.39e-03', photon_flux2='6.68e-05', job_status='DONE', time_completed='2021-08-20 11:36:15.674111', photon_index_error2='0.68', photon_index2='4.08', ts='22.31', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.98e-03', EG='0.01', time_epoch_completed='1629484575.67', return_code='0', job_id='369551', GAL2='0.80', EG2='0.01', return_code2='0', energy_flux_error='3.10e-03', photon_flux_error2='2.06e-05', ts2='30.25', photon_index='2.61' WHERE bin_id='1318' AND source_name='4FGL J0418.2+3807' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:36:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 369551: <4FGL_J0418.2+3807_daily_bin1318> in cluster <slac> Done

Job <4FGL_J0418.2+3807_daily_bin1318> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 11:25:21 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:25:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 11:25:23 2021
Terminated at Fri Aug 20 11:36:16 2021
Results reported at Fri Aug 20 11:36:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.2+3807_daily_bin1318 64.5633 38.1219 580953601 581212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0418.2+3807 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   518.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            655 sec.

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

