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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1133
RA = 64.5321, Dec = -2.8795
tmin = 533001601, tmax = 533260801
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='358041', job_status='RUN', time_executed='2021-08-20 10:46:45.132042', time_epoch_executed='1629481605.13' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358041/ft1_4FGL_J0418.1-0252_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358041/ft1_4FGL_J0418.1-0252_daily_bin1133.fits outfile=/scratch/kocevski/358041/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1133.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=533001601.0 tmax=533260801.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 6.67
user 3.33
sys 3.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358041/ft1_filtered_4FGL_J0418.1-0252_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/358041/ltcube_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.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/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits
.....................!
real 18.93
user 15.01
sys 3.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358041/ft1_filtered_4FGL_J0418.1-0252_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/358041/ltcube_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.fits outfile=/scratch/kocevski/358041/expmap_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.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/358041/ltcube_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.fits
.....................!
real 198.60
user 189.09
sys 9.03

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/358041/ft1_filtered_4FGL_J0418.1-0252_daily_bin1133.fits scfile=/scratch/kocevski/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits outfile=/scratch/kocevski/358041/cmap_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.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 3.52
user 0.39
sys 3.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358041/ft1_filtered_4FGL_J0418.1-0252_daily_bin1133.fits scfile=/scratch/kocevski/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits outfile=/scratch/kocevski/358041/cmap_HighResolution_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.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 3.60
user 0.42
sys 3.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358041/ft1_filtered_4FGL_J0418.1-0252_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/358041/ft2_4FGL_J0418.1-0252_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358041/Model_4FGL_J0418.1-0252_daily_bin1133.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/358041/ft1_filtered_4FGL_J0418.1-0252_daily_bin1133.fits.....................!
real 128.73
user 122.83
sys 5.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7745       1.0000         .10000E-03   10000.    
     5 'norm      '    7.9231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0635       1.0000         .10000E-03   10000.    
     7 'norm      '    8.5371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .15133E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .68678E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6571       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8992       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8695       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7465       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .60370       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.2592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72096       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0515       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9031.209     FROM MIGRAD    STATUS=FAILED       886 CALLS     2536 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9345        1.3987        .74427E-04   -.15580E-04
   2  Prefactor     .10000E-03    35.047        .18142E-02** at limit **
   3  Prefactor     13.311        6.6147        .10980E-03    .80763E-05
   4  Prefactor     1.8016        21.519        .31429E-03   -.17725E-04
   5  norm          7.9244        8.8508        .14245E-03    .38308E-05
   6  Prefactor     1.0666        89.859        .61707E-02    .94097E-03
   7  norm          8.5365        4.9611        .13720E-03   -.17716E-03
   8  Prefactor     .10000E-03    17.412        .18142E-02** at limit **
   9  norm          .10000E-03    5.5765        .55716E-01** at limit **
  10  norm          .10000E-03    5.4653        .18142E-02** at limit **
  11  norm          .69541E-01    2.7007        .11202E-02   -.22121E-03
  12  Prefactor     1.6568        1.2126        .83417E-04   -.54788E-04
  13  Prefactor     1.8988        12.164        .30181E-03    .52057E-04
  14  Prefactor     6.0985        31.714        .16277E-03   -.22211E-04
  15  Prefactor     2.8684        6.0166        .23996E-03    .85279E-05
  16  norm          1.7470        2.2434        .14938E-03    .20503E-03
  17  Prefactor     .70352        54.962        .51914E-02    .85241E-04
  18  norm          .10000E-03    1.1660        .15906E-02** at limit **
  19  norm          7.2594        2.3814        .80087E-04   -.38555E-03
  20  Prefactor     .10001E-03    119.40        .18142E-02** at limit **
  21  Normalizat    .72079        .19232        .37551E-03    .53164E-04
  22  Prefactor     1.0514        .94834E-01    .15998E-03    .69072E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9031.209     FROM SIMPLEX   STATUS=UNCHANGED   1105 CALLS     3641 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9345        1.3987        .57424E-06   -1.5365    
   2  Prefactor     .10000E-03    35.047        .89157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.311        6.6147        .49708E-06   -1.4978    
   4  Prefactor     1.8016        21.519        .56681E-06   -1.5440    
   5  norm          7.9244        8.8508        .50443E-06   -1.5145    
   6  Prefactor     1.0666        89.859        .55673E-06   -1.5501    
   7  norm          8.5365        4.9611        .49712E-06   -1.5124    
   8  Prefactor     .10000E-03    17.412        .49833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.5765        .77506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4653        .39763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .69541E-01    2.7007        .52249E-06   -1.5655    
  12  Prefactor     1.6568        1.2126        .50727E-06   -1.5451    
  13  Prefactor     1.8988        12.164        .56815E-06   -1.5432    
  14  Prefactor     6.0985        31.714        .58128E-06   -1.5214    
  15  Prefactor     2.8684        6.0166        .51096E-06   -1.5369    
  16  norm          1.7470        2.2434        .51045E-06   -1.5444    
  17  Prefactor     .70352        54.962        .97005E-06   -1.5540    
  18  norm          .10000E-03    1.1660        .15869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2594        2.3814        .49856E-06   -1.5169    
  20  Prefactor     .10001E-03    119.40        .13921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72079        .19232        .33822E-06   -1.0308    
  22  Prefactor     1.0514        .94834E-01    .29850E-06   -.91035    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9031.209     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     3980 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9345        1.3985        .29771E-05   -.30550E-05
   2  Prefactor     .10000E-03    35.052        .36285E-03** at limit **
   3  Prefactor     13.311        6.6143        .43919E-05   -.10354E-05
   4  Prefactor     1.8016        21.506        .12571E-04    .14469E-06
   5  norm          7.9244        8.8506        .56979E-05   -.79809E-06
   6  Prefactor     1.0668        90.590        .12341E-02    .38704E-04
   7  norm          8.5365        4.9178        .54878E-05   -.35632E-04
   8  Prefactor     .10000E-03    17.415        .36285E-03** at limit **
   9  norm          .10000E-03    4.8070        .62095E-01** at limit **
  10  norm          .10000E-03    5.4656        .36285E-03** at limit **
  11  norm          .69551E-01    2.6291        .44806E-04   -.35522E-05
  12  Prefactor     1.6568        1.2107        .33367E-05   -.34072E-04
  13  Prefactor     1.8987        12.152        .12072E-04   -.37668E-06
  14  Prefactor     6.0986        31.534        .65108E-05   -.20954E-05
  15  Prefactor     2.8684        6.0127        .95985E-05   -.66328E-05
  16  norm          1.7469        2.2420        .59752E-05    .18265E-05
  17  Prefactor     .70348        55.569        .20765E-03    .10950E-05
  18  norm          .10000E-03    1.1677        .31813E-03** at limit **
  19  norm          7.2595        2.3809        .32035E-05    .17034E-04
  20  Prefactor     .10000E-03    119.49        .36285E-03** at limit **
  21  Normalizat    .72079        .19216        .15020E-04   -.78716E-05
  22  Prefactor     1.0514        .94679E-01    .63994E-05   -.24871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93452
  Prefactor  = 0.0001
  Prefactor  = 13.3112
  Prefactor  = 1.80158
  norm       = 7.92441
  Prefactor  = 1.06681
  norm       = 8.53651
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0695512
  Prefactor  = 1.65677
  Prefactor  = 1.89875
  Prefactor  = 6.09856
  Prefactor  = 2.86839
  norm       = 1.74695
  Prefactor  = 0.703483
  norm       = 0.0001
  norm       = 7.25946
  Prefactor  = 0.0001
  Normalizat = 0.720791
  Prefactor  = 1.05142
 **********
 **   18 **HESSE 
 **********

 FCN=   9031.209     FROM HESSE     STATUS=OK           332 CALLS     4312 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9345        1.3985        .59542E-06   -1.5365    
   2  Prefactor     .10000E-03    35.052        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.311        6.6135        .87838E-06   -1.4978    
   4  Prefactor     1.8016        21.506        .12571E-04   -1.5440    
   5  norm          7.9244        8.8439        .11396E-05   -1.5145    
   6  Prefactor     1.0668        90.514        .24683E-03   -1.5501    
   7  norm          8.5365        4.9151        .10976E-05   -1.5124    
   8  Prefactor     .10000E-03    17.415        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9853        .60441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4657        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .69551E-01    2.6217        .17923E-05   -1.5655    
  12  Prefactor     1.6568        1.2106        .66733E-06   -1.5451    
  13  Prefactor     1.8987        12.173        .24145E-05   -1.5432    
  14  Prefactor     6.0986        31.400        .13022E-05   -1.5214    
  15  Prefactor     2.8684        6.0123        .19197E-05   -1.5369    
  16  norm          1.7469        2.2421        .59752E-05   -1.5444    
  17  Prefactor     .70348        55.587        .83062E-05   -1.5540    
  18  norm          .10000E-03    1.1677        .63625E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2595        2.3809        .64070E-06   -1.5169    
  20  Prefactor     .10000E-03    119.49        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72079        .19224        .30041E-05   -1.0308    
  22  Prefactor     1.0514        .94738E-01    .12799E-05   -.91035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11289e-12
Minuit parameter uncertainties:
  1  1.39854
  2  3.10583e-07
  3  6.61384
  4  12.4543
  5  8.84537
  6  19.683
  7  4.91529
  8  4.0836e-07
  9  0.000149336
  10  9.32469e-08
  11  0.853458
  12  1.21059
  13  9.61781
  14  27.699
  15  6.01356
  16  2.24224
  17  12.5179
  18  9.10348e-08
  19  2.38091
  20  1.43561e-06
  21  0.192421
  22  0.0947528
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  8.537e+00  4.915e+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.051e+00  9.475e-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:  7.208e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.38
Ra Dec: 64.532 -2.880
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.50e-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) = 9030.68628135
delta logL = 0.523020355422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9030.6771997
delta logL = 0.532102009813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6306       1.0000          .0000       5.0000    
     3 'Normalizat'    .69680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0566       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=   9030.677     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      286 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5046        4.6708        .57061E-03   -.32396E-03
   2  alpha         2.6306        .51026        .11215E-01    .30250E-03
   3  Normalizat    .69680        .18057        .38120E-03   -.73426E-04
   4  Prefactor     1.0566        .91102E-01    .15958E-03   -.20996E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50461
  alpha      = 2.63056
  Normalizat = 0.696802
  Prefactor  = 1.05658
 **********
 **   18 **HESSE 
 **********

 FCN=   9030.677     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5046        4.3959        .22824E-04   -1.5198    
   2  alpha         2.6306        .48041        .22430E-02    .52247E-01
   3  Normalizat    .69680        .18056        .15248E-04   -1.0402    
   4  Prefactor     1.0566        .91096E-01    .31916E-04   -.90867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59673e-11
Minuit parameter uncertainties:
  1  4.39608
  2  0.483428
  3  0.180714
  4  0.0911098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358041': 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) = 9030.6771997
delta logL = 0.532102010427

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  6.505e+00  4.396e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.631e+00  4.834e-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.057e+00  9.111e-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:  6.968e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.48
Ra Dec: 64.532 -2.880
Photon Index (Free Index): 2.63 +/- 0.48
Photon Flux (Free Index): 8.02e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.20e-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/358041/cmap_HighResolution_533001601_533260801_4FGL_J0418.1-0252_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='2.37e-05', photon_flux_error='3.19e-08', dlogl='5.32e-01', energy_flux='2.60e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-08-20 11:01:09.098073', photon_index_error2='0.48', photon_index2='2.63', ts='6.38', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.72', time_epoch_completed='1629482469.1', return_code='0', job_id='358041', GAL2='1.06', EG2='0.70', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.38e-08', ts2='7.48', photon_index='2.14' WHERE bin_id='1133' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:01:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 358041: <4FGL_J0418.1-0252_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1133 64.5321 -2.8795 533001601 533260801 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 :                                   910.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

