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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1015
RA = 64.5321, Dec = -2.8795
tmin = 502416001, tmax = 502675201
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='357870', job_status='RUN', time_executed='2021-08-20 10:48:25.779716', time_epoch_executed='1629481705.78' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357870/ft1_4FGL_J0418.1-0252_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357870/ft1_4FGL_J0418.1-0252_daily_bin1015.fits outfile=/scratch/kocevski/357870/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1015.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=502416001.0 tmax=502675201.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 7.13
user 3.30
sys 3.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357870/ft1_filtered_4FGL_J0418.1-0252_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/357870/ltcube_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.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/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits
.....................!
real 17.10
user 12.74
sys 4.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357870/ft1_filtered_4FGL_J0418.1-0252_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/357870/ltcube_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.fits outfile=/scratch/kocevski/357870/expmap_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.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/357870/ltcube_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.fits
.....................!
real 197.76
user 187.55
sys 9.73

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/357870/ft1_filtered_4FGL_J0418.1-0252_daily_bin1015.fits scfile=/scratch/kocevski/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits outfile=/scratch/kocevski/357870/cmap_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.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 4.06
user 0.38
sys 3.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357870/ft1_filtered_4FGL_J0418.1-0252_daily_bin1015.fits scfile=/scratch/kocevski/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits outfile=/scratch/kocevski/357870/cmap_HighResolution_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.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 4.10
user 0.40
sys 3.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357870/ft1_filtered_4FGL_J0418.1-0252_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/357870/ft2_4FGL_J0418.1-0252_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357870/Model_4FGL_J0418.1-0252_daily_bin1015.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/357870/ft1_filtered_4FGL_J0418.1-0252_daily_bin1015.fits.....................!
real 112.32
user 105.99
sys 5.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0268       1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.046       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.432       1.0000         .10000E-03   10000.    
     5 'norm      '    16.105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.175       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .48150E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8221       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10679E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12406E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98310       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97087       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=   7754.683     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2507 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0267        1.8829       -.45593E-07   -.96167E-04
   2  Prefactor     82.026        59.993       -.21371E-05   -.10367E-03
   3  Prefactor     2.3719        5.6447       -.21077E-05   -.45585E-03
   4  Prefactor     18.435        16.040        .15617E-06   -.62502E-04
   5  norm          16.105        17.738        .16002E-07    .40814E-05
   6  Prefactor     .10000E-03    8.5494       -.80359E-07** at limit **
   7  norm          .10000E-03    2.0876        .65368E-07** at limit **
   8  Prefactor     .10000E-03    28.047        .23676E-05** at limit **
   9  norm          18.175        11.676       -.24025E-06    .23741E-03
  10  norm          .10000E-03    15.577        .11440E-05** at limit **
  11  norm          .47693E-01    .54122        .22238E-06   -.43156E-03
  12  Prefactor     3.2592        2.0172       -.44340E-07   -.20201E-03
  13  Prefactor     1.8437        59.514       -.73830E-05   -.14222E-03
  14  Prefactor     .10000E-03    24.137       -.13536E-05** at limit **
  15  Prefactor     .10023E-03    21.043        .31271E-05** at limit **
  16  norm          1.2291        2.9353       -.56327E-06   -.64133E-03
  17  Prefactor     .10000E-03    7.8464        .13657E-06** at limit **
  18  norm          .10000E-03    .95865        .17253E-06** at limit **
  19  norm          .10049E-03    7.7884       -.35239E-05** at limit **
  20  Prefactor     .10000E-03    57.280       -.18859E-05** at limit **
  21  Normalizat    .98338        .20768        .21253E-05    .17172E-03
  22  Prefactor     .97077        .94837E-01   -.72973E-06    .55380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02666
  Prefactor  = 82.0263
  Prefactor  = 2.37192
  Prefactor  = 18.4351
  norm       = 16.1048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1747
  norm       = 0.0001
  norm       = 0.0476934
  Prefactor  = 3.25923
  Prefactor  = 1.8437
  Prefactor  = 0.0001
  Prefactor  = 0.000100225
  norm       = 1.2291
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100493
  Prefactor  = 0.0001
  Normalizat = 0.983381
  Prefactor  = 0.970766
 **********
 **   18 **HESSE 
 **********

 FCN=   7754.683     FROM HESSE     STATUS=OK           356 CALLS     2863 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0267        1.8812        .70505E-04   -1.5260    
   2  Prefactor     82.026        60.008        .44343E-04   -1.3894    
   3  Prefactor     2.3719        5.6912        .26596E-03   -1.5400    
   4  Prefactor     18.435        16.042        .93290E-04   -1.4849    
   5  norm          16.105        17.741        .99803E-04   -1.4905    
   6  Prefactor     .10000E-03    8.5533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0970        .12418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.175        11.574        .93948E-04   -1.4855    
  10  norm          .10000E-03    15.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .47693E-01    3.1398        .11607E-02   -1.5664    
  12  Prefactor     3.2592        1.9792        .89942E-04   -1.5347    
  13  Prefactor     1.8437        59.115        .30933E-03   -1.5436    
  14  Prefactor     .10000E-03    24.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10023E-03    27.362        .35933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2291        2.9436        .19803E-03   -1.5486    
  17  Prefactor     .10000E-03    7.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0121        .16434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10049E-03    1.5852        .28771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98338        .22752        .35956E-03   -.93589    
  22  Prefactor     .97077        .10692        .17062E-03   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06243e-08
Minuit parameter uncertainties:
  1  1.88122
  2  60.0521
  3  5.69251
  4  16.0461
  5  17.7469
  6  2.60311e-07
  7  3.83358e-06
  8  0.000226994
  9  11.5755
  10  9.38936e-05
  11  0.773171
  12  1.97925
  13  20.9016
  14  7.95654e-05
  15  0.00496851
  16  2.94399
  17  6.09952e-06
  18  5.73671e-05
  19  0.00176808
  20  0.000145368
  21  0.227745
  22  0.10694
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  3.834e-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.708e-01  1.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.834e-01  2.277e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357870/likelihoodResults_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.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) = 7754.68563268
delta logL = -0.00227202617498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7754.68336064
delta logL = 1.74431988853e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1510       1.0000          .0000       5.0000    
     3 'Normalizat'    .98334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97078       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=   7754.683     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      232 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.216        .12437E-02** at limit **
   2  alpha         2.4634        3.6913        .16668       -.62955E-07
   3  Normalizat    .98338        .21664        .35956E-03   -.21339E-03
   4  Prefactor     .97077        .10300        .17062E-03   -.46811E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46342
  Normalizat = 0.983378
  Prefactor  = 0.970767
 **********
 **   18 **HESSE 
 **********

 FCN=   7754.683     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1866        .24874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4634        2.7341        .66672E-02   -.14631E-01
   3  Normalizat    .98338        .21675        .14382E-04   -.93589    
   4  Prefactor     .97077        .10305        .34124E-04   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28636e-10
Minuit parameter uncertainties:
  1  8.65295e-06
  2  228.138
  3  0.21694
  4  0.103071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357870': 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) = 7754.68335968
delta logL = 9.7514839581e-07

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  8.653e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.463e+00  2.281e+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.708e-01  1.031e-01  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.834e-01  2.169e-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/357870/cmap_HighResolution_502416001_502675201_4FGL_J0418.1-0252_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-08-20 11:00:39.733295', job_id='357870', GAL2='0.97', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629482439.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1015' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:00:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 357870: <4FGL_J0418.1-0252_daily_bin1015> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin1015> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:45:23 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:45:24 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:24 2021
Terminated at Fri Aug 20 11:00:40 2021
Results reported at Fri Aug 20 11:00:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1015 64.5321 -2.8795 502416001 502675201 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 :                                   788.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

