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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1282
RA = 64.5321, Dec = -2.8795
tmin = 571622401, tmax = 571881601
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='358257', job_status='RUN', time_executed='2021-08-20 10:47:55.720302', time_epoch_executed='1629481675.72' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358257/ft1_4FGL_J0418.1-0252_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits


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

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

Done.
real 2.68
user 2.49
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.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/358257/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/358257/ltcube_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.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/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits
.....................!
real 12.93
user 12.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/358257/ltcube_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.fits outfile=/scratch/kocevski/358257/expmap_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.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/358257/ltcube_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.fits
.....................!
real 191.30
user 186.58
sys 4.38

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/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.fits scfile=/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits outfile=/scratch/kocevski/358257/cmap_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.fits scfile=/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits outfile=/scratch/kocevski/358257/cmap_HighResolution_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/358257/ft2_4FGL_J0418.1-0252_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358257/Model_4FGL_J0418.1-0252_daily_bin1282.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/358257/ft1_filtered_4FGL_J0418.1-0252_daily_bin1282.fits.....................!
real 115.46
user 114.02
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    52.019       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .96383       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5457       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.491       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86837       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96100       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=   8541.006     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2040 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .57840        .20582E-06** at limit **
   2  Prefactor     .10000E-03    12.316        .68165E-08** at limit **
   3  Prefactor     5.5443        6.6448        .17740E-06   -.10603E-04
   4  Prefactor     .10000E-03    4.2053        .74338E-07** at limit **
   5  norm          .10000E-03    4.0897       -.24685E-07** at limit **
   6  Prefactor     .10000E-03    8.9092       -.26216E-08** at limit **
   7  norm          .10000E-03    1.2169        .48513E-08** at limit **
   8  Prefactor     .10000E-03    6.3390        .10767E-07** at limit **
   9  norm          .10000E-03    2.9692        .38112E-07** at limit **
  10  norm          52.015        27.213       -.10099E-05   -.10175E-03
  11  norm          1.1994        .92461       -.56322E-07   -.49245E-03
  12  Prefactor     2.3455        1.6368        .14688E-05   -.92081E-03
  13  Prefactor     48.406        22.949       -.53305E-07   -.45096E-04
  14  Prefactor     .10000E-03    85.337        .10030E-05** at limit **
  15  Prefactor     .10000E-03    2.5247       -.26943E-09** at limit **
  16  norm          2.1532        2.3538        .16984E-06   -.98025E-04
  17  Prefactor     .10001E-03    98.651       -.40726E-05** at limit **
  18  norm          .96393        .97699       -.17763E-07   -.96004E-04
  19  norm          4.5458        2.1550        .68124E-07   -.36567E-04
  20  Prefactor     47.457        38.348       -.71778E-06   -.26125E-03
  21  Normalizat    .86842        .17105       -.77655E-06   -.75089E-04
  22  Prefactor     .96103        .81672E-01   -.25599E-06   -.10893E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.54433
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 52.0154
  norm       = 1.19942
  Prefactor  = 2.34551
  Prefactor  = 48.4061
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.15324
  Prefactor  = 0.000100014
  norm       = 0.963932
  norm       = 4.54583
  Prefactor  = 47.4573
  Normalizat = 0.868424
  Prefactor  = 0.961031
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.006     FROM HESSE     STATUS=OK           338 CALLS     2378 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .96469        .13495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5443        6.6593        .17062E-03   -1.5237    
   4  Prefactor     .10000E-03    4.2202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2219        .99519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9802        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          52.015        27.217        .55607E-04   -1.4264    
  11  norm          1.1994        .90105        .72925E-04   -1.5489    
  12  Prefactor     2.3455        1.6369        .45421E-03   -1.5402    
  13  Prefactor     48.406        22.661        .57637E-04   -1.4315    
  14  Prefactor     .10000E-03    85.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5329        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1532        2.3163        .12987E-03   -1.5414    
  17  Prefactor     .10001E-03    100.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .96393        .98822        .89294E-04   -1.5512    
  19  norm          4.5458        2.1528        .88800E-04   -1.5282    
  20  Prefactor     47.457        38.384        .58185E-04   -1.4329    
  21  Normalizat    .86842        .18871        .34935E-03   -.97579    
  22  Prefactor     .96103        .91416E-01    .16280E-03   -.94040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81626e-10
Minuit parameter uncertainties:
  1  4.02703e-06
  2  1.04668e-05
  3  6.66018
  4  9.2186e-06
  5  6.31137e-06
  6  6.33169e-06
  7  1.11954e-06
  8  3.20777e-06
  9  1.47504e-06
  10  27.2235
  11  0.901062
  12  1.63694
  13  22.6652
  14  0.00111225
  15  1.71405e-06
  16  2.31635
  17  0.00235501
  18  0.98824
  19  2.15286
  20  38.4038
  21  0.18885
  22  0.0914305
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  1.120e-06  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:  9.610e-01  9.143e-02  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:  8.684e-01  1.889e-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: 3.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358257/likelihoodResults_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.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) = 8541.00990337
delta logL = -0.00387585412864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8541.00553216
delta logL = 0.000495365080496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16675E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .86704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96137       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=   8541.006     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      252 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16643E-02    .81374        .62605E-02** at limit **
   2  alpha         5.0000        2.6485        .46404    ** at limit **
   3  Normalizat    .86704        .21815E-01    .78976E-01   -.10102E-04
   4  Prefactor     .96137        .10636E-01    .45782E-01   -.25118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00166428
  alpha      = 5
  Normalizat = 0.867042
  Prefactor  = 0.961373
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.006     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16643E-02    .51424        .37202E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        2.8225        .92808E-01    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .86704        .19077        .34960E-03   -.97628    
   4  Prefactor     .96137        .90734E-01    .16277E-03   -.94028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8168e-10
Minuit parameter uncertainties:
  1  0.0567248
  2  0.0284885
  3  0.190914
  4  0.0907481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358257': 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) = 8541.00553215
delta logL = 0.000495366888572

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.664e-03  5.672e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  5.000e+00  2.849e-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:  9.614e-01  9.075e-02  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:  8.670e-01  1.909e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/358257/cmap_HighResolution_571622401_571881601_4FGL_J0418.1-0252_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='3.98e-08', time_completed='2021-08-20 10:59:13.092920', job_id='358257', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1629482353.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.95e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1282' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:59:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 358257: <4FGL_J0418.1-0252_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin1282> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:45:52 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:45:54 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:54 2021
Terminated at Fri Aug 20 10:59:14 2021
Results reported at Fri Aug 20 10:59:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1282 64.5321 -2.8795 571622401 571881601 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 :                                   676.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

