/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 126 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0418.1-0252_daily_bin240
RA = 64.5321, Dec = -2.8795
tmin = 301536001, tmax = 301795201
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='353678', job_status='RUN', time_executed='2021-08-20 10:33:08.646759', time_epoch_executed='1629480788.65' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353678

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353678/ft1_4FGL_J0418.1-0252_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353678/ft1_4FGL_J0418.1-0252_daily_bin240.fits outfile=/scratch/kocevski/353678/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin240.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=301536001.0 tmax=301795201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.93
user 4.35
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.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/353678/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.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 0.78
user 0.33
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/353678/ltcube_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.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/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits
.....................!
real 12.48
user 11.76
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/353678/ltcube_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.fits outfile=/scratch/kocevski/353678/expmap_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.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/353678/ltcube_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.fits
.....................!
real 190.67
user 185.37
sys 4.81

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/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits scfile=/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits outfile=/scratch/kocevski/353678/cmap_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.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 0.83
user 0.38
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits scfile=/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits outfile=/scratch/kocevski/353678/cmap_HighResolution_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.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 0.80
user 0.39
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353678/Model_4FGL_J0418.1-0252_daily_bin240.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/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits.....................!
real 83.47
user 81.67
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits', '/scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits', expMap='/scratch/kocevski/353678/expmap_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.fits', expCube='/scratch/kocevski/353678/ltcube_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/353678/Model_4FGL_J0418.1-0252_daily_bin240.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/353678/ft1_filtered_4FGL_J0418.1-0252_daily_bin240.fits
Spacecraft file(s): /scratch/kocevski/353678/ft2_4FGL_J0418.1-0252_daily_bin240.fits
Exposure map: /scratch/kocevski/353678/expmap_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.fits
Exposure cube: /scratch/kocevski/353678/ltcube_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/353678/Model_4FGL_J0418.1-0252_daily_bin240.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) = 5910.60155553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6521       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.041       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.778       1.0000         .10000E-03   10000.    
     9 'norm      '    13.086       1.0000         .10000E-03   10000.    
    10 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21710E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3622       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.839       1.0000         .10000E-03   10000.    
    18 'norm      '    .61229       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97851       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1201       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5910.582     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2396 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6522        1.4249       -.10342E-06   -.22384E-03
   2  Prefactor     .10000E-03    16.090       -.36923E-05** at limit **
   3  Prefactor     .10000E-03    5.7790       -.58554E-07** at limit **
   4  Prefactor     .10000E-03    9.0602        .85468E-06** at limit **
   5  norm          13.041        13.259        .49953E-06    .40419E-03
   6  Prefactor     .10000E-03    8.3463        .18523E-06** at limit **
   7  norm          .10000E-03    1.3444       -.34845E-07** at limit **
   8  Prefactor     23.763        26.669       -.37190E-05    .55070E-04
   9  norm          13.085        11.362       -.88927E-06   -.76677E-03
  10  norm          .10000E-03    28.964        .15412E-06** at limit **
  11  norm          .10000E-03    .63331        .64680E-06** at limit **
  12  Prefactor     2.2722        2.2752        .12405E-05   -.85467E-03
  13  Prefactor     .10000E-03    18.341        .10711E-05** at limit **
  14  Prefactor     40.302        52.954       -.17143E-04    .21900E-04
  15  Prefactor     .10000E-03    8.8915       -.97846E-06** at limit **
  16  norm          2.3530        3.0449       -.35488E-06   -.86670E-03
  17  Prefactor     26.833        41.258       -.73053E-05    .85403E-04
  18  norm          .61220        2.1376       -.51586E-06   -.12490E-02
  19  norm          3.3224        2.1789       -.64418E-07   -.15003E-03
  20  Prefactor     .10000E-03    15.890        .38844E-05** at limit **
  21  Normalizat    .97830        .25862        .36857E-05   -.19195E-03
  22  Prefactor     1.1202        .11853       -.40078E-07   -.24192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7635
  norm       = 13.085
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.27215
  Prefactor  = 0.000100001
  Prefactor  = 40.3019
  Prefactor  = 0.0001
  norm       = 2.35299
  Prefactor  = 26.8327
  norm       = 0.6122
  norm       = 3.32243
  Prefactor  = 0.0001
  Normalizat = 0.978299
  Prefactor  = 1.12018
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.582     FROM HESSE     STATUS=OK           344 CALLS     2740 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6522        1.4220        .82120E-04   -1.5451    
   2  Prefactor     .10000E-03    16.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8044        .18048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.041        13.323        .55460E-03   -1.4986    
   6  Prefactor     .10000E-03    8.3470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3457        .87050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.763        26.639        .82146E-04   -1.4733    
   9  norm          13.085        11.546        .55364E-03   -1.4984    
  10  norm          .10000E-03    29.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1995        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2722        2.2070        .97023E-04   -1.5406    
  13  Prefactor     .10000E-03    107.95        .56982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.302        50.827        .63127E-04   -1.4437    
  15  Prefactor     .10000E-03    9.0141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3530        2.7677        .13211E-03   -1.5401    
  17  Prefactor     26.833        41.073        .77328E-04   -1.4671    
  18  norm          .61220        2.1708        .19968E-03   -1.5551    
  19  norm          3.3224        2.1743        .88952E-04   -1.5343    
  20  Prefactor     .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97830        .28665        .38400E-03   -.93761    
  22  Prefactor     1.1202        .13293        .17130E-03   -.88824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75434e-09
Minuit parameter uncertainties:
  1  1.42201
  2  0.000113663
  3  9.59773e-06
  4  1.88249e-05
  5  13.3263
  6  5.4566e-06
  7  8.06047e-07
  8  26.6526
  9  11.5477
  10  1.48038e-06
  11  0.000103994
  12  2.20711
  13  0.000631664
  14  50.8815
  15  5.52279e-05
  16  2.76782
  17  41.1165
  18  2.17105
  19  2.17431
  20  0.000131343
  21  0.287102
  22  0.132968
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  8.060e-07  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.120e+00  1.330e-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.783e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.532 -2.880
Photon Flux Upper Limit: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/353678/likelihoodResults_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.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): 102
logL (Free Index) = 5910.58538169
delta logL = -0.00330290013517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5910.58207857
delta logL = 2.25337316806e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5910.582     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      234 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    94.659        .87646E-02** at limit **
   2  alpha         1.6706        2.6344        .16691        .54148E-07
   3  Normalizat    .97830        .56949E-01    .38399E-03    .41479E-04
   4  Prefactor     1.1202        .27176E-01    .17130E-03    .93630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.67063
  Normalizat = 0.978302
  Prefactor  = 1.12018
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.582     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5398        .93089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6706        3.5732        .66765E-02   -.33815    
   3  Normalizat    .97830        .27200        .15360E-04   -.93761    
   4  Prefactor     1.1202        .12994        .34260E-04   -.88824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86526e-11
Minuit parameter uncertainties:
  1  3.49299e-06
  2  156.104
  3  0.272387
  4  0.129974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353678': 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) = 5910.58207414
delta logL = 4.65238463221e-06

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  3.493e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  1.671e+00  1.561e+02  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.120e+00  1.300e-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.783e-01  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.532 -2.880

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/353678/cmap_HighResolution_301536001_301795201_4FGL_J0418.1-0252_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-08-20 10:42:57.475538', job_id='353678', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629481377.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='240' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:42:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 353678: <4FGL_J0418.1-0252_daily_bin240> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin240> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:30:44 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:30:47 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:30:47 2021
Terminated at Fri Aug 20 10:42:58 2021
Results reported at Fri Aug 20 10:42:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin240 64.5321 -2.8795 301536001 301795201 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 :                                   592.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            734 sec.

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

