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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1129
RA = 64.5321, Dec = -2.8795
tmin = 531964801, tmax = 532224001
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='358035', job_status='RUN', time_executed='2021-08-20 10:48:48.510133', time_epoch_executed='1629481728.51' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358035/ft1_4FGL_J0418.1-0252_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358035/ft1_4FGL_J0418.1-0252_daily_bin1129.fits outfile=/scratch/kocevski/358035/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1129.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=531964801.0 tmax=532224001.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 5.49
user 3.34
sys 2.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358035/ft1_filtered_4FGL_J0418.1-0252_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/358035/ltcube_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.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/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits
.....................!
real 13.84
user 11.27
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358035/ft1_filtered_4FGL_J0418.1-0252_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/358035/ltcube_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.fits outfile=/scratch/kocevski/358035/expmap_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.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/358035/ltcube_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.fits
.....................!
real 194.92
user 187.62
sys 6.93

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/358035/ft1_filtered_4FGL_J0418.1-0252_daily_bin1129.fits scfile=/scratch/kocevski/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits outfile=/scratch/kocevski/358035/cmap_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.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 2.35
user 0.38
sys 1.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358035/ft1_filtered_4FGL_J0418.1-0252_daily_bin1129.fits scfile=/scratch/kocevski/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits outfile=/scratch/kocevski/358035/cmap_HighResolution_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.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 2.43
user 0.36
sys 2.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358035/ft1_filtered_4FGL_J0418.1-0252_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/358035/ft2_4FGL_J0418.1-0252_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358035/Model_4FGL_J0418.1-0252_daily_bin1129.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/358035/ft1_filtered_4FGL_J0418.1-0252_daily_bin1129.fits.....................!
real 105.85
user 101.78
sys 3.78

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3940       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2471       1.0000         .10000E-03   10000.    
     5 'norm      '    20.256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.9817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26812E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11718E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.926       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9046       1.0000         .10000E-03   10000.    
    19 'norm      '    8.6467       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.954       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82044       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0283       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=   7260.474     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2447 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3938        1.6735        .10114E-07   -.85116E-04
   2  Prefactor     .10000E-03    26.533       -.28983E-05** at limit **
   3  Prefactor     .10000E-03    4.9168       -.48013E-07** at limit **
   4  Prefactor     3.2412        9.4052        .46077E-05   -.90849E-03
   5  norm          20.255        18.923        .29204E-06   -.33889E-05
   6  Prefactor     .10000E-03    8.4779       -.13197E-06** at limit **
   7  norm          8.9813        5.3285       -.18511E-05   -.13562E-02
   8  Prefactor     .10000E-03    23.583        .15232E-05** at limit **
   9  norm          .10000E-03    4.7501        .51054E-07** at limit **
  10  norm          .10000E-03    32.380        .11623E-05** at limit **
  11  norm          1.2021        .98657        .11603E-06    .77899E-04
  12  Prefactor     1.8231        1.4860       -.20048E-07   -.13527E-03
  13  Prefactor     .10000E-03    51.995        .51776E-05** at limit **
  14  Prefactor     .10000E-03    210.07       -.22702E-05** at limit **
  15  Prefactor     .10000E-03    4.3029        .49197E-07** at limit **
  16  norm          6.7595        3.3393       -.49017E-07   -.49817E-03
  17  Prefactor     19.917        28.177        .13543E-05    .85204E-04
  18  norm          4.9042        2.8388       -.11648E-07   -.17878E-03
  19  norm          8.6466        3.1322        .22677E-06   -.83942E-04
  20  Prefactor     38.939        51.658       -.54528E-05   -.18425E-03
  21  Normalizat    .82041        .22140        .79224E-06   -.68102E-04
  22  Prefactor     1.0284        .99966E-01   -.20932E-06   -.86756E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.39383
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.24122
  norm       = 20.2553
  Prefactor  = 0.0001
  norm       = 8.98133
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.20205
  Prefactor  = 1.8231
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.75951
  Prefactor  = 19.9167
  norm       = 4.90421
  norm       = 8.64658
  Prefactor  = 38.9393
  Normalizat = 0.820411
  Prefactor  = 1.02839
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.474     FROM HESSE     STATUS=OK           340 CALLS     2787 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3938        1.6694        .87862E-04   -1.5399    
   2  Prefactor     .10000E-03    26.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2412        12.504        .11238E-02   -1.5348    
   5  norm          20.255        18.928        .88993E-04   -1.4808    
   6  Prefactor     .10000E-03    8.4802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9813        5.5236        .13374E-03   -1.5108    
   8  Prefactor     .10000E-03    23.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.7678        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    32.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2021        .97504        .72341E-04   -1.5489    
  12  Prefactor     1.8231        1.4803        .89362E-04   -1.5438    
  13  Prefactor     .10000E-03    53.586        .42873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    212.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3224        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7595        3.3336        .10364E-03   -1.5188    
  17  Prefactor     19.917        28.232        .89728E-04   -1.4815    
  18  norm          4.9042        2.8347        .10272E-03   -1.5265    
  19  norm          8.6466        3.1365        .82125E-04   -1.5120    
  20  Prefactor     38.939        52.423        .64220E-04   -1.4459    
  21  Normalizat    .82041        .24253        .40282E-03   -.99316    
  22  Prefactor     1.0284        .11146        .17105E-03   -.91789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03488e-09
Minuit parameter uncertainties:
  1  1.66945
  2  0.000359962
  3  6.74211e-06
  4  12.5142
  5  18.9331
  6  7.28697e-06
  7  5.52395
  8  0.000158339
  9  7.13488e-06
  10  0.000150465
  11  0.975052
  12  1.48032
  13  0.000762806
  14  0.000411239
  15  1.02306e-05
  16  3.33372
  17  28.2506
  18  2.83478
  19  3.1366
  20  52.4852
  21  0.242852
  22  0.111481
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  8.981e+00  5.524e+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.028e+00  1.115e-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.204e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 64.532 -2.880
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.68e-05

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) = 7260.08705127
delta logL = 0.387086708202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7260.0720088
delta logL = 0.402129178623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3137       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6874       1.0000          .0000       5.0000    
     3 'Normalizat'    .78382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0357       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=   7260.072     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      262 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3110        71.536        .37078E-02    .14278E-03
   2  alpha         2.6867        3.8363        .32996        .57830E-04
   3  Normalizat    .78393        .12480        .92745E-01    .34714E-04
   4  Prefactor     1.0357        .43275E-01    .40833E-01    .22145E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.31099
  alpha      = 2.68671
  Normalizat = 0.783934
  Prefactor  = 1.03572
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.072     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3110        5.3563        .11784E-03   -1.5167    
   2  alpha         2.6867        .61791        .12101E-01    .74754E-01
   3  Normalizat    .78393        .23547        .41091E-03   -1.0067    
   4  Prefactor     1.0357        .10960        .17044E-03   -.91548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30109e-12
Minuit parameter uncertainties:
  1  5.35662
  2  0.624421
  3  0.235774
  4  0.109627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358035': 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) = 7260.07200618
delta logL = 0.40213179336

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  7.311e+00  5.357e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.687e+00  6.244e-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.036e+00  1.096e-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:  7.839e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.42
Ra Dec: 64.532 -2.880
Photon Index (Free Index): 2.69 +/- 0.62
Photon Flux (Free Index): 9.79e-08 +/- 6.64e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.49e-05

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/358035/cmap_HighResolution_531964801_532224001_4FGL_J0418.1-0252_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='2.77e-05', photon_flux_error='3.59e-08', dlogl='4.02e-01', energy_flux='2.74e-05', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-08-20 10:59:14.444705', photon_index_error2='0.62', photon_index2='2.69', ts='6.57', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.82', time_epoch_completed='1629482354.44', return_code='0', job_id='358035', GAL2='1.04', EG2='0.78', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='6.64e-08', ts2='7.42', photon_index='2.14' WHERE bin_id='1129' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 358035: <4FGL_J0418.1-0252_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1129 64.5321 -2.8795 531964801 532224001 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 :                                   656.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

