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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1056
RA = 64.5321, Dec = -2.8795
tmin = 513043201, tmax = 513302401
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='357931', job_status='RUN', time_executed='2021-08-20 10:49:01.669355', time_epoch_executed='1629481741.67' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357931/ft1_4FGL_J0418.1-0252_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357931/ft1_4FGL_J0418.1-0252_daily_bin1056.fits outfile=/scratch/kocevski/357931/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1056.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=513043201.0 tmax=513302401.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 9.49
user 6.23
sys 3.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.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/357931/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.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 3.49
user 0.31
sys 3.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/357931/ltcube_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.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/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits
.....................!
real 19.07
user 15.29
sys 3.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/357931/ltcube_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.fits outfile=/scratch/kocevski/357931/expmap_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.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/357931/ltcube_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.fits
.....................!
real 195.55
user 185.94
sys 8.92

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 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0418.1-0252 @ 64.5321 -2.8795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits scfile=/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits outfile=/scratch/kocevski/357931/cmap_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.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.5321 yref=-2.8795 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 3.59
user 0.36
sys 3.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits scfile=/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits outfile=/scratch/kocevski/357931/cmap_HighResolution_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.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.5321 yref=-2.8795 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 3.49
user 0.37
sys 3.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357931/Model_4FGL_J0418.1-0252_daily_bin1056.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/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits.....................!
real 80.60
user 75.15
sys 5.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits', '/scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits', expMap='/scratch/kocevski/357931/expmap_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.fits', expCube='/scratch/kocevski/357931/ltcube_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/357931/Model_4FGL_J0418.1-0252_daily_bin1056.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0418.1-0252'

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.334e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/357931/ft1_filtered_4FGL_J0418.1-0252_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/357931/ft2_4FGL_J0418.1-0252_daily_bin1056.fits
Exposure map: /scratch/kocevski/357931/expmap_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.fits
Exposure cube: /scratch/kocevski/357931/ltcube_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/357931/Model_4FGL_J0418.1-0252_daily_bin1056.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) = 5341.31380481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.349       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.537       1.0000         .10000E-03   10000.    
     5 'norm      '    15.341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9770       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.113       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7125       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.981       1.0000         .10000E-03   10000.    
    18 'norm      '    .69853       1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95484       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5341.307     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2396 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4262        1.9404        .65683E-02    .15149E-03
   2  Prefactor     63.348        59.703        .12604E-02    .65238E-03
   3  Prefactor     .10000E-03    16.651        .90712E-02** at limit **
   4  Prefactor     16.537        17.787        .24623E-02    .21696E-04
   5  norm          15.342        24.168        .25564E-02    .38716E-04
   6  Prefactor     .10000E-03    12.871        .90712E-02** at limit **
   7  norm          2.9771        3.0649        .58828E-02   -.13016E-03
   8  Prefactor     .10000E-03    7.0453        .90712E-02** at limit **
   9  norm          12.113        11.662        .28775E-02    .47561E-04
  10  norm          .10000E-03    7.8509        .90712E-02** at limit **
  11  norm          .10000E-03    .46327        .26423E-01** at limit **
  12  Prefactor     2.7126        1.8675        .61825E-02    .52373E-03
  13  Prefactor     32.789        24.674        .17494E-02    .37340E-04
  14  Prefactor     .10000E-03    41.092        .90712E-02** at limit **
  15  Prefactor     .10000E-03    5.5305        .90712E-02** at limit **
  16  norm          .10000E-03    1.8545        .90712E-02** at limit **
  17  Prefactor     30.981        33.087        .17996E-02    .11010E-03
  18  norm          .69776        1.8791        .33968E-01    .11168E-02
  19  norm          .10000E-03    1.7836        .90712E-02** at limit **
  20  Prefactor     .10000E-03    139.12        .90712E-02** at limit **
  21  Normalizat    .95496        .25322        .84233E-01    .98273E-04
  22  Prefactor     1.0785        .12178        .38466E-01    .76752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42622
  Prefactor  = 63.3476
  Prefactor  = 0.0001
  Prefactor  = 16.5371
  norm       = 15.3416
  Prefactor  = 0.0001
  norm       = 2.97705
  Prefactor  = 0.0001
  norm       = 12.1128
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.7126
  Prefactor  = 32.7886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.9813
  norm       = 0.69776
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.954961
  Prefactor  = 1.07849
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.307     FROM HESSE     STATUS=OK           342 CALLS     2738 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4262        1.9320        .86531E-04   -1.5396    
   2  Prefactor     63.348        59.759        .50418E-04   -1.4114    
   3  Prefactor     .10000E-03    17.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.537        17.790        .98491E-04   -1.4894    
   5  norm          15.342        24.169        .10226E-03   -1.4924    
   6  Prefactor     .10000E-03    12.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9771        3.0668        .12614E-03   -1.5363    
   8  Prefactor     .10000E-03    7.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.113        11.675        .11510E-03   -1.5012    
  10  norm          .10000E-03    7.8546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .74894        .95971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7126        1.8531        .79530E-04   -1.5379    
  13  Prefactor     32.789        24.646        .69977E-04   -1.4562    
  14  Prefactor     .10000E-03    41.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5669        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8873        .96856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.981        33.089        .71985E-04   -1.4594    
  18  norm          .69776        1.7109        .15614E-02   -1.5541    
  19  norm          .10000E-03    1.8335        .19041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    140.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95496        .27806        .37293E-03   -.94555    
  22  Prefactor     1.0785        .13640        .17176E-03   -.90157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58526e-09
Minuit parameter uncertainties:
  1  1.93205
  2  59.8157
  3  3.79364e-05
  4  17.7958
  5  24.1847
  6  4.85139e-07
  7  3.06696
  8  1.2209e-05
  9  11.6772
  10  3.94029e-06
  11  2.44773e-06
  12  1.85315
  13  24.654
  14  8.24752e-05
  15  1.25771e-05
  16  1.42066e-05
  17  33.1087
  18  1.71104
  19  2.30185e-05
  20  0.000245882
  21  0.27848
  22  0.136446
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  2.977e+00  3.067e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
454    Prefactor:  1.078e+00  1.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.550e-01  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 64.532 -2.880
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 9.07e-06 +/- 9.34e-06

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) = 5340.87274571
delta logL = 0.434342351327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5340.86654952
delta logL = 0.440538541608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6423       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2052       1.0000          .0000       5.0000    
     3 'Normalizat'    .96443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5340.867     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6447        2.7022        .62705E-02   -.58096E-04
   2  alpha         1.2033        .73358        .50000       -.35967E-04
   3  Normalizat    .96453        .24330        .83863E-01   -.45196E-04
   4  Prefactor     1.0768        .11893        .38538E-01    .33669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64474
  alpha      = 1.20333
  Normalizat = 0.964529
  Prefactor  = 1.07681
 **********
 **   18 **HESSE 
 **********

 FCN=   5340.867     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6447        3.0596        .11859E-03   -1.5383    
   2  alpha         1.2033        .86714        .24981E-01   -.54529    
   3  Normalizat    .96453        .27050        .37128E-03   -.94228    
   4  Prefactor     1.0768        .13260        .17187E-03   -.90211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00737e-10
Minuit parameter uncertainties:
  1  3.05979
  2  0.89288
  3  0.270889
  4  0.132642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357931': 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) = 5340.86654477
delta logL = 0.440543290827

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  2.645e+00  3.060e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  1.203e+00  8.929e-01  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
454    Prefactor:  1.077e+00  1.326e-01  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.645e-01  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 64.532 -2.880
Photon Index (Free Index): 1.20 +/- 0.89
Photon Flux (Free Index): 8.82e-09 +/- 1.06e-08
Energy Flux (Free Index): 1.96e-05 +/- 3.06e-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/357931/cmap_HighResolution_513043201_513302401_4FGL_J0418.1-0252_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='1.96e-05', photon_flux_error='1.99e-08', dlogl='4.41e-01', energy_flux='9.07e-06', photon_flux2='8.82e-09', job_status='DONE', time_completed='2021-08-20 10:58:42.193691', photon_index_error2='0.89', photon_index2='1.20', ts='4.39', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='0.95', time_epoch_completed='1629482322.19', return_code='0', job_id='357931', GAL2='1.08', EG2='0.96', return_code2='0', energy_flux_error='9.34e-06', photon_flux_error2='1.06e-08', ts2='5.27', photon_index='2.14' WHERE bin_id='1056' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:58:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 357931: <4FGL_J0418.1-0252_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin1056> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:45:27 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:45:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:45:30 2021
Terminated at Fri Aug 20 10:58:43 2021
Results reported at Fri Aug 20 10:58:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1056 64.5321 -2.8795 513043201 513302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0418.1-0252 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            796 sec.

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

