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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin606
RA = 64.5321, Dec = -2.8795
tmin = 396403201, tmax = 396662401
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='355193', job_status='RUN', time_executed='2021-08-20 10:35:53.211955', time_epoch_executed='1629480953.21' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355193/ft1_4FGL_J0418.1-0252_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355193/ft1_4FGL_J0418.1-0252_daily_bin606.fits outfile=/scratch/kocevski/355193/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin606.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=396403201.0 tmax=396662401.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.62
user 3.19
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355193/ft1_filtered_4FGL_J0418.1-0252_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/355193/ltcube_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.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/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits
.....................!
real 8.80
user 8.25
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355193/ft1_filtered_4FGL_J0418.1-0252_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/355193/ltcube_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.fits outfile=/scratch/kocevski/355193/expmap_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.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/355193/ltcube_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.fits
.....................!
real 140.73
user 136.29
sys 4.16

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/355193/ft1_filtered_4FGL_J0418.1-0252_daily_bin606.fits scfile=/scratch/kocevski/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits outfile=/scratch/kocevski/355193/cmap_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.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.63
user 0.28
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355193/ft1_filtered_4FGL_J0418.1-0252_daily_bin606.fits scfile=/scratch/kocevski/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits outfile=/scratch/kocevski/355193/cmap_HighResolution_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.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.63
user 0.28
sys 0.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355193/ft1_filtered_4FGL_J0418.1-0252_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/355193/ft2_4FGL_J0418.1-0252_daily_bin606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355193/Model_4FGL_J0418.1-0252_daily_bin606.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/355193/ft1_filtered_4FGL_J0418.1-0252_daily_bin606.fits.....................!
real 125.94
user 124.38
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .23494E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1940       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.395       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.578       1.0000         .10000E-03   10000.    
    18 'norm      '    73.032       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88358       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1065       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=   12248.49     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2587 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8951        1.5711       -.15153E-08    .20237E-04
   2  Prefactor     70.704        56.440       -.18503E-07    .84387E-03
   3  Prefactor     1.3429        .24263       -.13913E-06   -.10707E-03
   4  Prefactor     .10000E-03    6.0193       -.40769E-10** at limit **
   5  norm          .10000E-03    5.8093       -.94005E-09** at limit **
   6  Prefactor     .10000E-03    20.437       -.10241E-09** at limit **
   7  norm          2.1947        3.5931       -.29564E-08    .12804E-04
   8  Prefactor     .10000E-03    10.845       -.11997E-09** at limit **
   9  norm          24.395        9.5389       -.21000E-08   -.15416E-04
  10  norm          .10000E-03    10.054       -.14949E-09** at limit **
  11  norm          7.5622        1.6116       -.22319E-09   -.86052E-05
  12  Prefactor     .55491        1.2090       -.25926E-08   -.18440E-04
  13  Prefactor     .10000E-03    12.322       -.48701E-09** at limit **
  14  Prefactor     .10000E-03    25.664       -.12376E-09** at limit **
  15  Prefactor     .10000E-03    2.9601       -.31247E-09** at limit **
  16  norm          .10000E-03    1.3444       -.19240E-08** at limit **
  17  Prefactor     12.577        15.146       -.29720E-08   -.39615E-04
  18  norm          73.032        5.5890       -.94738E-09    .11171E-04
  19  norm          .10000E-03    .65000       -.98664E-09** at limit **
  20  Prefactor     .10000E-03    52.226       -.15966E-08** at limit **
  21  Normalizat    .88356        .19870        .51113E-07    .13687E-04
  22  Prefactor     1.1065        .92281E-01   -.69770E-08    .38359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89508
  Prefactor  = 70.7039
  Prefactor  = 1.34289
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19473
  Prefactor  = 0.0001
  norm       = 24.3948
  norm       = 0.0001
  norm       = 7.56224
  Prefactor  = 0.554912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.577
  norm       = 73.0316
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.883564
  Prefactor  = 1.10652
 **********
 **   18 **HESSE 
 **********

 FCN=   12248.49     FROM HESSE     STATUS=OK           356 CALLS     2943 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8951        1.5713        .83519E-04   -1.5313    
   2  Prefactor     70.704        56.526        .47740E-04   -1.4024    
   3  Prefactor     1.3429        4.2919        .18905E-02   -1.5476    
   4  Prefactor     .10000E-03    6.0316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.6794        .10892       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1947        3.5709        .25641E-03   -1.5412    
   8  Prefactor     .10000E-03    10.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.395        9.5530        .40551E-03   -1.4720    
  10  norm          .10000E-03    10.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5622        1.5712        .59054E-04   -1.5158    
  12  Prefactor     .55491        1.1220        .16513E-02   -1.5559    
  13  Prefactor     .10000E-03    12.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8557        .24633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.577        15.148        .11295E-03   -1.4999    
  18  norm          73.032        5.5727        .23490E-03   -1.3997    
  19  norm          .10000E-03    1.0792        .17338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88356        .21824        .45325E-03   -.97040    
  22  Prefactor     1.1065        .10067        .19618E-03   -.89259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44596e-08
Minuit parameter uncertainties:
  1  1.57127
  2  56.5695
  3  4.29293
  4  1.0894e-06
  5  9.60301e-05
  6  2.83848e-06
  7  3.57127
  8  6.83767e-06
  9  9.55355
  10  1.41371e-06
  11  1.5712
  12  1.122
  13  4.67e-06
  14  4.44012e-06
  15  8.33672e-07
  16  4.54183e-07
  17  15.1524
  18  5.57279
  19  6.62737e-08
  20  3.06903e-06
  21  0.218455
  22  0.100686
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  2.195e+00  3.571e+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.107e+00  1.007e-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:  8.836e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/355193/likelihoodResults_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.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) = 12248.4707977
delta logL = 0.0219563807877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12248.4682898
delta logL = 0.0244642720627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4624       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9208       1.0000          .0000       5.0000    
     3 'Normalizat'    .88556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1059       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12248.47     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      273 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4543        3.8668        .26062E-03    .21349E-03
   2  alpha         1.9182        .97382        .37629E-01    .12218E-04
   3  Normalizat    .88537        .20490        .45286E-03    .23111E-03
   4  Prefactor     1.1059        .98953E-01    .19622E-03   -.39166E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4543
  alpha      = 1.91821
  Normalizat = 0.885368
  Prefactor  = 1.10591
 **********
 **   18 **HESSE 
 **********

 FCN=   12248.47     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4543        3.8118        .10425E-04   -1.5395    
   2  alpha         1.9182        .96159        .15052E-02   -.23487    
   3  Normalizat    .88537        .20498        .18114E-04   -.96976    
   4  Prefactor     1.1059        .98989E-01    .78489E-05   -.89278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46926e-10
Minuit parameter uncertainties:
  1  3.81219
  2  0.988601
  3  0.205159
  4  0.0990054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355193': 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) = 12248.4682825
delta logL = 0.0244716544021

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
454    Prefactor:  1.106e+00  9.901e-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.854e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/355193/cmap_HighResolution_396403201_396662401_4FGL_J0418.1-0252_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-08-20 10:48:00.120661', job_id='355193', GAL2='1.11', fit_tolerance='1e-08', EG2='0.89', EG='0.88', time_epoch_completed='1629481680.12', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.45e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='606' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:48:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 355193: <4FGL_J0418.1-0252_daily_bin606> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin606> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 10:35:34 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:35:35 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:35:35 2021
Terminated at Fri Aug 20 10:48:00 2021
Results reported at Fri Aug 20 10:48:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin606 64.5321 -2.8795 396403201 396662401 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 :                                   734.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            746 sec.

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

