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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin245
RA = 64.5321, Dec = -2.8795
tmin = 302832001, tmax = 303091201
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='353686', job_status='RUN', time_executed='2021-08-20 10:33:19.085587', time_epoch_executed='1629480799.09' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353686/ft1_4FGL_J0418.1-0252_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353686/ft1_4FGL_J0418.1-0252_daily_bin245.fits outfile=/scratch/kocevski/353686/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin245.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=302832001.0 tmax=303091201.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.19
user 3.28
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353686/ft1_filtered_4FGL_J0418.1-0252_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/353686/ltcube_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.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/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits
.....................!
real 13.97
user 12.81
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353686/ft1_filtered_4FGL_J0418.1-0252_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/353686/ltcube_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.fits outfile=/scratch/kocevski/353686/expmap_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.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/353686/ltcube_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.fits
.....................!
real 194.44
user 188.81
sys 4.97

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/353686/ft1_filtered_4FGL_J0418.1-0252_daily_bin245.fits scfile=/scratch/kocevski/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits outfile=/scratch/kocevski/353686/cmap_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.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 1.18
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353686/ft1_filtered_4FGL_J0418.1-0252_daily_bin245.fits scfile=/scratch/kocevski/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits outfile=/scratch/kocevski/353686/cmap_HighResolution_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.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 1.15
user 0.40
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353686/ft1_filtered_4FGL_J0418.1-0252_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/353686/ft2_4FGL_J0418.1-0252_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353686/Model_4FGL_J0418.1-0252_daily_bin245.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/353686/ft1_filtered_4FGL_J0418.1-0252_daily_bin245.fits.....................!
real 113.82
user 111.41
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79432       1.0000         .10000E-03   10000.    
     2 'Prefactor '    177.31       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .62662E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.758       1.0000         .10000E-03   10000.    
     7 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    35.872       1.0000         .10000E-03   10000.    
    11 'norm      '    .71115       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .74816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .48916E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .86580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.404       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2470       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91068       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=   7889.665     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2560 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79397        1.2211        .11778E-06    .34083E-03
   2  Prefactor     177.44        68.553        .39495E-05    .22331E-04
   3  Prefactor     .10000E-03    7.9087       -.20165E-06** at limit **
   4  Prefactor     .10000E-03    11.618        .86101E-06** at limit **
   5  norm          .96554        60.531        .27651E-05   -.42279E-04
   6  Prefactor     17.737        28.556        .66044E-07   -.47129E-04
   7  norm          .10000E-03    3.5469       -.37516E-06** at limit **
   8  Prefactor     .10000E-03    13.129        .23407E-06** at limit **
   9  norm          .10000E-03    4.0988       -.68160E-07** at limit **
  10  norm          35.908        32.925        .18750E-05   -.13111E-03
  11  norm          .71129        .95043        .39739E-06   -.60838E-03
  12  Prefactor     .10000E-03    .57024        .24319E-06** at limit **
  13  Prefactor     14.391        36.825       -.14184E-04   -.27624E-03
  14  Prefactor     36.551        35.400        .36692E-06   -.69274E-04
  15  Prefactor     .10000E-03    3.9784       -.34642E-07** at limit **
  16  norm          .75664        4.0554        .48597E-05   -.68795E-03
  17  Prefactor     .10000E-03    6.4536       -.37155E-07** at limit **
  18  norm          .10000E-03    .96583        .24643E-07** at limit **
  19  norm          .87002        1.7965        .44836E-06   -.75796E-03
  20  Prefactor     15.368        40.507        .14840E-05   -.12099E-04
  21  Normalizat    1.2472        .20316       -.45692E-06   -.36442E-03
  22  Prefactor     .91012        .94821E-01   -.12877E-05   -.40268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.793967
  Prefactor  = 177.441
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.965537
  Prefactor  = 17.7369
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 35.9083
  norm       = 0.711289
  Prefactor  = 0.0001
  Prefactor  = 14.3912
  Prefactor  = 36.5512
  Prefactor  = 0.0001
  norm       = 0.756644
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.870021
  Prefactor  = 15.3681
  Normalizat = 1.24721
  Prefactor  = 0.910123
 **********
 **   18 **HESSE 
 **********

 FCN=   7889.665     FROM HESSE     STATUS=OK           346 CALLS     2906 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79397        1.0304        .11675E-02   -1.5530    
   2  Prefactor     177.44        68.778        .15155E-03   -1.3036    
   3  Prefactor     .10000E-03    7.9975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .96554        62.243        .37748E-03   -1.5511    
   6  Prefactor     17.737        28.519        .95043E-04   -1.4865    
   7  norm          .10000E-03    9.8299        .31052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.1148        .17558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          35.908        32.828        .66912E-04   -1.4509    
  11  norm          .71129        .80203        .91502E-03   -1.5539    
  12  Prefactor     .10000E-03    .57338        .65215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.391        37.466        .10572E-03   -1.4949    
  14  Prefactor     36.551        35.022        .66344E-04   -1.4498    
  15  Prefactor     .10000E-03    4.0013        .17296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .75664        5.8660        .22771E-02   -1.5534    
  17  Prefactor     .10000E-03    6.4588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.9582        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .87002        1.7430        .15752E-03   -1.5521    
  20  Prefactor     15.368        40.134        .10205E-03   -1.4924    
  21  Normalizat    1.2472        .22632        .33253E-03   -.85156    
  22  Prefactor     .91012        .10723        .17871E-03   -.95788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22778e-09
Minuit parameter uncertainties:
  1  1.0304
  2  68.8087
  3  7.17167e-05
  4  0.000200099
  5  15.5207
  6  28.5408
  7  0.000263546
  8  8.21369e-06
  9  1.98111e-05
  10  32.8448
  11  0.802038
  12  1.33993e-05
  13  37.5268
  14  35.0419
  15  8.26961e-06
  16  4.21384
  17  1.26465e-05
  18  4.40983e-05
  19  1.74309
  20  40.2042
  21  0.226501
  22  0.107258
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  2.635e-04  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.101e-01  1.073e-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:  1.247e+00  2.265e-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: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/353686/likelihoodResults_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.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) = 7889.66546843
delta logL = -0.000482710272991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7889.66498578
delta logL = -6.40147845843e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11243E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1975       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91011       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=   7889.665     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11614E-03    3.2138        .41053E-01** at limit **
   2  alpha         2.7478        3.3637        .16615       -.19849E-05
   3  Normalizat    1.2472        .63089E-02    .33253E-03    .20342E-03
   4  Prefactor     .91012        .29669E-02    .17871E-03    .38120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000116137
  alpha      = 2.74778
  Normalizat = 1.24721
  Prefactor  = 0.910123
 **********
 **   18 **HESSE 
 **********

 FCN=   7889.665     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11614E-03    6.8449        .38994E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7478        3.8736        .66462E-02    .99276E-01
   3  Normalizat    1.2472        .88705E-02    .13301E-04   -.85156    
   4  Prefactor     .91012        .41713E-02    .35743E-04   -.95788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.87493e-10
Minuit parameter uncertainties:
  1  0.0210219
  2  301.086
  3  0.00887046
  4  0.0041713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353686': 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): 102
logL (Free Index) = 7889.66498211
delta logL = 3.61262755177e-06

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.161e-04  2.102e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.748e+00  3.011e+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.101e-01  4.171e-03  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:  1.247e+00  8.870e-03  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/353686/cmap_HighResolution_302832001_303091201_4FGL_J0418.1-0252_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-08-20 10:45:11.773117', job_id='353686', GAL2='0.91', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1629481511.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='245' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:45:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 353686: <4FGL_J0418.1-0252_daily_bin245> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin245> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:30:45 2021
Job was executed on host(s) <bullet0234>, 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:45:12 2021
Results reported at Fri Aug 20 10:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin245 64.5321 -2.8795 302832001 303091201 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 :                                   721.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            867 sec.

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

