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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin930
RA = 64.5321, Dec = -2.8795
tmin = 480384001, tmax = 480643201
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='356719', job_status='RUN', time_executed='2021-08-20 10:40:53.751391', time_epoch_executed='1629481253.75' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356719/ft1_4FGL_J0418.1-0252_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356719/ft1_4FGL_J0418.1-0252_daily_bin930.fits outfile=/scratch/kocevski/356719/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin930.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=480384001.0 tmax=480643201.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 3.56
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356719/ft1_filtered_4FGL_J0418.1-0252_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/356719/ltcube_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.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/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits
.....................!
real 11.98
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356719/ft1_filtered_4FGL_J0418.1-0252_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/356719/ltcube_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.fits outfile=/scratch/kocevski/356719/expmap_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.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/356719/ltcube_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.fits
.....................!
real 189.23
user 184.84
sys 4.05

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/356719/ft1_filtered_4FGL_J0418.1-0252_daily_bin930.fits scfile=/scratch/kocevski/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits outfile=/scratch/kocevski/356719/cmap_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356719/ft1_filtered_4FGL_J0418.1-0252_daily_bin930.fits scfile=/scratch/kocevski/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits outfile=/scratch/kocevski/356719/cmap_HighResolution_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356719/ft1_filtered_4FGL_J0418.1-0252_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/356719/ft2_4FGL_J0418.1-0252_daily_bin930.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356719/Model_4FGL_J0418.1-0252_daily_bin930.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/356719/ft1_filtered_4FGL_J0418.1-0252_daily_bin930.fits.....................!
real 88.14
user 86.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.098       1.0000         .10000E-03   10000.    
    10 'norm      '    29.024       1.0000         .10000E-03   10000.    
    11 'norm      '    .99080E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.292       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1379       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2409       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.218       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0691       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33846E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .58101       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1050       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=   6277.846     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     2759 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2379        1.5043        .76362E-04   -.14441E-03
   2  Prefactor     .10000E-03    17.100        .18142E-02** at limit **
   3  Prefactor     8.1816        11.007        .14019E-03    .35763E-04
   4  Prefactor     .10000E-03    6.5893        .18142E-02** at limit **
   5  norm          4.8531        13.407        .18258E-03   -.12454E-04
   6  Prefactor     .10000E-03    13.684        .18142E-02** at limit **
   7  norm          3.2964        6.1624        .11152E-02    .21715E-04
   8  Prefactor     .10000E-03    9.6275        .18142E-02** at limit **
   9  norm          15.100        12.002        .10308E-03    .48748E-04
  10  norm          29.026        26.850        .74366E-04   -.32409E-04
  11  norm          .99041E-01    1.3143        .12172E-02    .47664E-03
  12  Prefactor     .36995        1.3237        .16223E-03   -.33637E-05
  13  Prefactor     35.297        28.277        .67458E-04   -.49379E-04
  14  Prefactor     .10000E-03    16.105        .18142E-02** at limit **
  15  Prefactor     3.1342        9.3087        .11443E-02    .22718E-03
  16  norm          9.2418        4.1224        .90517E-04   -.20372E-03
  17  Prefactor     18.200        34.165        .93837E-04   -.31863E-04
  18  norm          3.0691        2.4659        .10581E-03   -.12937E-03
  19  norm          4.0508        2.7427        .97937E-04   -.32039E-03
  20  Prefactor     .10000E-03    40.409        .13972    ** at limit **
  21  Normalizat    .58097        .27019        .44969E-03   -.64492E-04
  22  Prefactor     1.1050        .11893        .16197E-03    .20236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23788
  Prefactor  = 0.0001
  Prefactor  = 8.18155
  Prefactor  = 0.0001
  norm       = 4.85314
  Prefactor  = 0.0001
  norm       = 3.29636
  Prefactor  = 0.0001
  norm       = 15.0996
  norm       = 29.0257
  norm       = 0.0990413
  Prefactor  = 0.369949
  Prefactor  = 35.2972
  Prefactor  = 0.0001
  Prefactor  = 3.13418
  norm       = 9.24177
  Prefactor  = 18.2002
  norm       = 3.0691
  norm       = 4.05077
  Prefactor  = 0.000100001
  Normalizat = 0.580968
  Prefactor  = 1.10498
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.846     FROM HESSE     STATUS=OK           336 CALLS     3095 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2379        1.5042        .30545E-05   -1.5409    
   2  Prefactor     .10000E-03    17.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1816        11.006        .56075E-05   -1.5136    
   4  Prefactor     .10000E-03    6.5902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8531        13.407        .73031E-05   -1.5267    
   6  Prefactor     .10000E-03    13.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2964        6.1353        .44606E-04   -1.5345    
   8  Prefactor     .10000E-03    9.6279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.100        12.001        .41232E-05   -1.4931    
  10  norm          29.026        26.847        .29747E-05   -1.4630    
  11  norm          .99041E-01    1.2974        .48690E-04   -1.5645    
  12  Prefactor     .36995        1.3218        .64893E-05   -1.5586    
  13  Prefactor     35.297        28.286        .26983E-05   -1.4519    
  14  Prefactor     .10000E-03    16.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1342        9.2921        .22885E-03   -1.5354    
  16  norm          9.2418        4.1229        .36207E-05   -1.5100    
  17  Prefactor     18.200        34.179        .37535E-05   -1.4854    
  18  norm          3.0691        2.4658        .42322E-05   -1.5358    
  19  norm          4.0508        2.7424        .39175E-05   -1.5305    
  20  Prefactor     .10000E-03    39.709        .14158       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .58097        .27006        .17988E-04   -1.0880    
  22  Prefactor     1.1050        .11894        .32394E-04   -.89308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60593e-10
Minuit parameter uncertainties:
  1  1.50423
  2  2.19214e-05
  3  11.0087
  4  1.72779e-05
  5  13.415
  6  3.53913e-05
  7  6.13647
  8  3.25362e-05
  9  12.0028
  10  26.8584
  11  0.71659
  12  1.32189
  13  28.2966
  14  3.41864e-05
  15  9.29637
  16  4.12298
  17  34.2161
  18  2.46583
  19  2.7425
  20  0.000427028
  21  0.270671
  22  0.11897
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  3.296e+00  6.136e+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.105e+00  1.190e-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:  5.810e-01  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 64.532 -2.880
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356719/likelihoodResults_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.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) = 6277.32097075
delta logL = 0.525403867045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.3207657
delta logL = 0.525608915897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0249       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2092       1.0000          .0000       5.0000    
     3 'Normalizat'    .53842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1146       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=   6277.321     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0216        40.169        .72694E-02    .65340E-03
   2  alpha         3.2101        4.1018        .40178        .56845E-04
   3  Normalizat    .53847        .66118E-01    .10502        .54864E-04
   4  Prefactor     1.1146        .31779E-01    .37057E-01   -.21261E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02163
  alpha      = 3.21009
  Normalizat = 0.538473
  Prefactor  = 1.11458
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.321     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0216        5.9713        .10275E-03   -1.5424    
   2  alpha         3.2101        1.6016        .14459E-01    .28800    
   3  Normalizat    .53847        .24035        .46563E-03   -1.1066    
   4  Prefactor     1.1146        .11613        .16127E-03   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21838e-11
Minuit parameter uncertainties:
  1  5.97301
  2  1.75394
  3  0.240816
  4  0.116159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356719': 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) = 6277.32076533
delta logL = 0.525609289069

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  2.022e+00  5.973e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  3.210e+00  1.754e+00  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.115e+00  1.162e-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:  5.385e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 64.532 -2.880
Photon Index (Free Index): 3.21 +/- 1.75
Photon Flux (Free Index): 6.14e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.52e-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/356719/cmap_HighResolution_480384001_480643201_4FGL_J0418.1-0252_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-05', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='5.26e-01', photon_flux2='6.14e-08', job_status='DONE', time_completed='2021-08-20 10:51:08.523447', photon_index_error2='1.75', photon_index2='3.21', ts='0.36', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.52e-05', EG='0.58', time_epoch_completed='1629481868.52', return_code='0', job_id='356719', GAL2='1.11', EG2='0.54', return_code2='0', photon_flux_error2='5.93e-08', ts2='1.45', photon_index='2.14' WHERE bin_id='930' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 356719: <4FGL_J0418.1-0252_daily_bin930> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin930> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:40:45 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:40:46 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:40:46 2021
Terminated at Fri Aug 20 10:51:09 2021
Results reported at Fri Aug 20 10:51:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin930 64.5321 -2.8795 480384001 480643201 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 :                                   614.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             358.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            624 sec.

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

