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


Performing analysis on: 4FGL_J0418.2+3807_daily_bin1373
RA = 64.5633, Dec = 38.1219
tmin = 595209601, tmax = 595468801
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='369630', job_status='RUN', time_executed='2021-08-20 11:28:59.043228', time_epoch_executed='1629484139.04' WHERE source_name='4FGL J0418.2+3807' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369630/ft1_4FGL_J0418.2+3807_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369630/ft1_4FGL_J0418.2+3807_daily_bin1373.fits outfile=/scratch/kocevski/369630/ft1_filteredMKT_4FGL_J0418.2+3807_daily_bin1373.fits ra=64.5633 dec=38.1219 rad=12.0 tmin=595209601.0 tmax=595468801.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.46
user 2.71
sys 4.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.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/369630/ft1_filteredMKT_4FGL_J0418.2+3807_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.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.53
user 0.34
sys 5.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/369630/ltcube_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.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/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits
.....................!
real 17.32
user 11.86
sys 5.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/369630/ltcube_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.fits outfile=/scratch/kocevski/369630/expmap_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.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/369630/ltcube_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.fits
.....................!
real 198.82
user 187.75
sys 10.67

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/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits scfile=/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits outfile=/scratch/kocevski/369630/cmap_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.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.43
user 0.38
sys 5.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits scfile=/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits outfile=/scratch/kocevski/369630/cmap_HighResolution_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.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.48
user 0.38
sys 5.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369630/Model_4FGL_J0418.2+3807_daily_bin1373.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/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits.....................!
real 112.71
user 104.87
sys 7.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits', '/scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits', expMap='/scratch/kocevski/369630/expmap_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.fits', expCube='/scratch/kocevski/369630/ltcube_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369630/Model_4FGL_J0418.2+3807_daily_bin1373.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/369630/ft1_filtered_4FGL_J0418.2+3807_daily_bin1373.fits
Spacecraft file(s): /scratch/kocevski/369630/ft2_4FGL_J0418.2+3807_daily_bin1373.fits
Exposure map: /scratch/kocevski/369630/expmap_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.fits
Exposure cube: /scratch/kocevski/369630/ltcube_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369630/Model_4FGL_J0418.2+3807_daily_bin1373.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) = 3911.12421276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5470.5       1.0000         .10000E-03   10000.    
     3 'norm      '    .20056E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21758E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .22984E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12816E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21437E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    19.805       1.0000         .10000E-03   10000.    
     9 'norm      '    .25256E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    144.77       1.0000         .10000E-03   10000.    
    12 'norm      '    .62354E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.322       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    .87545       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.

 FCN=   3911.041     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1382 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        436.85       -.25431E-05** at limit **
   2  Prefactor     5121.7        7349.8       -.18501E-03   -.12997E-04
   3  norm          .10000E-03    101.96        .41522E-06** at limit **
   4  Prefactor     .10000E-03    1184.4        .50915E-07** at limit **
   5  norm          .10000E-03    307.56       -.91146E-07** at limit **
   6  Prefactor     .10206E-03    21.318       -.33150E-05** at limit **
   7  Prefactor     .10000E-03    20.867       -.32645E-06** at limit **
   8  norm          19.828        17.847        .30619E-06   -.64633E-04
   9  norm          .10000E-03    22.375        .82837E-07** at limit **
  10  Prefactor     .10000E-03    7.7888        .12552E-06** at limit **
  11  norm          140.87        152.52        .95074E-06    .59365E-05
  12  norm          .10010E-03    15.657       -.45951E-05** at limit **
  13  Prefactor     23.437        26.279        .47972E-06   -.28377E-04
  14  Normalizat    .10000E-01    .20206       -.14224E-04** at limit **
  15  Prefactor     .87612        .56020E-01   -.32901E-06   -.11419E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 5121.69
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102056
  Prefactor  = 0.0001
  norm       = 19.8278
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 140.872
  norm       = 0.000100097
  Prefactor  = 23.4366
  Normalizat = 0.01
  Prefactor  = 0.876121
 **********
 **   18 **HESSE 
 **********

 FCN=   3911.041     FROM HESSE     STATUS=OK           180 CALLS     1562 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        434.59        .19412E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5121.7        7273.1        .40178E-04    .24341E-01
   3  norm          .10000E-03    102.10        .18246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1184.9        .18263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    307.56        .18275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10206E-03    246.03        .51120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.891        .20166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.828        17.839        .90001E-04   -1.4817    
   9  norm          .10000E-03    22.395        .20008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8111        .17046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          140.87        152.68        .33488E-04   -1.3329    
  12  norm          .10010E-03    30.950        .37570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.437        26.312        .82944E-04   -1.4739    
  14  Normalizat    .10000E-01    .20588        .16326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .87612        .56139E-01    .11278E-03   -.96981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16428e-08
Minuit parameter uncertainties:
  1  0.00155409
  2  10395.1
  3  0.000114487
  4  3.90721e-05
  5  2.60479e-05
  6  0.0451632
  7  4.52152e-05
  8  17.8436
  9  8.22742e-06
  10  1.15896e-05
  11  153.108
  12  0.00346029
  13  26.3255
  14  6.30442e-06
  15  0.0561424
Done.

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

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  1.983e+01  1.784e+01  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:  8.761e-01  5.614e-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  6.304e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 64.563 38.122
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.07e-07 +/- 3.66e-07
Energy Flux (Fixed Index): 9.94e-05 +/- 8.95e-05

TS (Fixed Index): 1.76
Ra Dec: 64.563 38.122
Photon Flux Upper Limit: 1.20e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369630/likelihoodResults_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.txt

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) = 3910.98400621
delta logL = 0.0568711482151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3910.97879796
delta logL = 0.062079401031

Fit tolerance = 1e-08

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

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

 FCN=   3910.979     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      221 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.729        35.996        .21498E-02    .75243E-04
   2  alpha         2.3385        1.2041        .40693       -.72628E-05
   3  Normalizat    .10000E-01    .19773        .32263    ** at limit **
   4  Prefactor     .87577        .56645E-01    .25515E-01    .30023E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.7294
  alpha      = 2.33847
  Normalizat = 0.01
  Prefactor  = 0.875772
 **********
 **   18 **HESSE 
 **********

 FCN=   3910.979     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.729        19.163        .85990E-04   -1.4775    
   2  alpha         2.3385        .73074        .16192E-01   -.64659E-01
   3  Normalizat    .10000E-01    .20874        .16431E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .87577        .53183E-01    .11278E-03   -.96993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23061e-11
Minuit parameter uncertainties:
  1  19.1682
  2  0.741617
  3  9.97135e-07
  4  0.0531863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369630': 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) = 3910.97879313
delta logL = 0.0620842369317

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  2.173e+01  1.917e+01  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.338e+00  7.416e-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.758e-01  5.319e-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  9.971e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 64.563 38.122
Photon Index (Free Index): 2.34 +/- 0.74
Photon Flux (Free Index): 3.69e-07 +/- 3.49e-07
Energy Flux (Free Index): 1.09e-04 +/- 9.87e-05

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/369630/cmap_HighResolution_595209601_595468801_4FGL_J0418.2+3807_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-04', comment='SUCCESS', photon_flux='4.07e-07', energy_flux2='1.09e-04', photon_flux_error='3.66e-07', dlogl='6.21e-02', energy_flux='9.94e-05', photon_flux2='3.69e-07', job_status='DONE', time_completed='2021-08-20 11:38:26.872623', photon_index_error2='0.74', photon_index2='2.34', ts='1.76', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.20e-06', energy_flux_error2='9.87e-05', EG='0.01', time_epoch_completed='1629484706.87', return_code='0', job_id='369630', GAL2='0.88', EG2='0.01', return_code2='0', energy_flux_error='8.95e-05', photon_flux_error2='3.49e-07', ts2='1.88', photon_index='2.61' WHERE bin_id='1373' AND source_name='4FGL J0418.2+3807' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:38:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 369630: <4FGL_J0418.2+3807_daily_bin1373> in cluster <slac> Done

Job <4FGL_J0418.2+3807_daily_bin1373> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 11:25:27 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:25:29 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:29 2021
Terminated at Fri Aug 20 11:38:28 2021
Results reported at Fri Aug 20 11:38:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.2+3807_daily_bin1373 64.5633 38.1219 595209601 595468801 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 :                                   647.00 sec.
    Max Memory :                                 1209 MB
    Average Memory :                             230.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

