/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 3 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0418.1-0252_daily_bin147
RA = 64.5321, Dec = -2.8795
tmin = 277430401, tmax = 277689601
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='352705', job_status='RUN', time_executed='2021-08-20 10:28:41.537476', time_epoch_executed='1629480521.54' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352705/ft1_4FGL_J0418.1-0252_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352705/ft1_4FGL_J0418.1-0252_daily_bin147.fits outfile=/scratch/kocevski/352705/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin147.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=277430401.0 tmax=277689601.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 12.63
user 3.34
sys 9.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352705/ft1_filtered_4FGL_J0418.1-0252_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/352705/ltcube_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.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/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits
.....................!
real 22.95
user 12.51
sys 10.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352705/ft1_filtered_4FGL_J0418.1-0252_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/352705/ltcube_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.fits outfile=/scratch/kocevski/352705/expmap_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.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/352705/ltcube_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.fits
.....................!
real 202.03
user 185.01
sys 16.53

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/352705/ft1_filtered_4FGL_J0418.1-0252_daily_bin147.fits scfile=/scratch/kocevski/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits outfile=/scratch/kocevski/352705/cmap_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.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 11.72
user 0.39
sys 8.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352705/ft1_filtered_4FGL_J0418.1-0252_daily_bin147.fits scfile=/scratch/kocevski/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits outfile=/scratch/kocevski/352705/cmap_HighResolution_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.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 9.22
user 0.39
sys 8.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/352705/ft1_filtered_4FGL_J0418.1-0252_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/352705/ft2_4FGL_J0418.1-0252_daily_bin147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/352705/Model_4FGL_J0418.1-0252_daily_bin147.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/352705/ft1_filtered_4FGL_J0418.1-0252_daily_bin147.fits.....................!
real 120.33
user 104.88
sys 12.86

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11494E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0331       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.400       1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.760       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.6018       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97166       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .92970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.987       1.0000         .10000E-03   10000.    
    18 'norm      '    10.464       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.444       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0009       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=   7465.544     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2394 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30137        1.0808       -.79394E-06   -.79825E-03
   2  Prefactor     .10000E-03    130.27        .22529E-05** at limit **
   3  Prefactor     8.0340        10.594        .12378E-05   -.67931E-04
   4  Prefactor     10.394        18.318        .71893E-05   -.15071E-04
   5  norm          .10000E-03    4.2754        .69977E-07** at limit **
   6  Prefactor     .10000E-03    10.887       -.12754E-06** at limit **
   7  norm          .10000E-03    1.2481        .33906E-08** at limit **
   8  Prefactor     21.749        29.953       -.42201E-05    .17020E-04
   9  norm          .10000E-03    3.5732        .43483E-07** at limit **
  10  norm          7.5899        22.808       -.22567E-06    .97589E-05
  11  norm          1.5038        1.1466       -.92472E-06    .38800E-03
  12  Prefactor     .97167        1.0854       -.94445E-06   -.10749E-02
  13  Prefactor     .10000E-03    8.8294        .10087E-06** at limit **
  14  Prefactor     13.409        49.044        .52741E-04    .85011E-04
  15  Prefactor     .10000E-03    5.2482       -.13538E-05** at limit **
  16  norm          .92912        2.7512       -.16293E-05   -.16024E-02
  17  Prefactor     37.968        33.655       -.10829E-04    .13472E-04
  18  norm          10.464        3.3375       -.80011E-06    .31948E-03
  19  norm          1.3715        2.0455        .49511E-06   -.50037E-03
  20  Prefactor     22.436        50.502       -.11181E-04   -.44143E-07
  21  Normalizat    1.1032        .22714        .85853E-06    .26256E-03
  22  Prefactor     1.0010        .98194E-01   -.17930E-06    .54039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.30137
  Prefactor  = 0.000100002
  Prefactor  = 8.03398
  Prefactor  = 10.3942
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.7495
  norm       = 0.0001
  norm       = 7.5899
  norm       = 1.50382
  Prefactor  = 0.971671
  Prefactor  = 0.0001
  Prefactor  = 13.4093
  Prefactor  = 0.000100003
  norm       = 0.929124
  Prefactor  = 37.9679
  norm       = 10.4645
  norm       = 1.37153
  Prefactor  = 22.4363
  Normalizat = 1.10318
  Prefactor  = 1.00105
 **********
 **   18 **HESSE 
 **********

 FCN=   7465.544     FROM HESSE     STATUS=OK           352 CALLS     2746 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30137        1.6536        .15845E-02   -1.5598    
   2  Prefactor     .10000E-03    131.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0340        10.641        .14146E-03   -1.5141    
   4  Prefactor     10.394        18.231        .12424E-03   -1.5063    
   5  norm          .10000E-03    4.2755        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2505        .94251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.749        29.889        .85866E-04   -1.4775    
   9  norm          .10000E-03    3.5844        .15947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5899        22.767        .14545E-03   -1.5157    
  11  norm          1.5038        1.1403        .34909E-04   -1.5463    
  12  Prefactor     .97167        1.0749        .89161E-04   -1.5511    
  13  Prefactor     .10000E-03    8.8378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.409        48.659        .10950E-03   -1.4975    
  15  Prefactor     .10000E-03    26.833        .37493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .92912        2.7779        .23287E-03   -1.5515    
  17  Prefactor     37.968        33.747        .65029E-04   -1.4475    
  18  norm          10.464        3.3324        .83066E-04   -1.5061    
  19  norm          1.3715        1.9929        .13678E-03   -1.5474    
  20  Prefactor     22.436        50.102        .84549E-04   -1.4760    
  21  Normalizat    1.1032        .25031        .36299E-03   -.89650    
  22  Prefactor     1.0010        .11064        .17590E-03   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48922e-09
Minuit parameter uncertainties:
  1  1.41171
  2  0.00104465
  3  10.6433
  4  18.2411
  5  8.08242e-08
  6  1.70876e-05
  7  9.00252e-07
  8  29.9092
  9  8.44611e-07
  10  22.7928
  11  1.1403
  12  1.07497
  13  1.1163e-05
  14  48.8035
  15  0.00057116
  16  2.77825
  17  33.7635
  18  3.33244
  19  1.99295
  20  50.1958
  21  0.250577
  22  0.11067
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  9.003e-07  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.001e+00  1.107e-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:  1.103e+00  2.506e-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: 4.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/352705/likelihoodResults_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.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): 102
logL (Free Index) = 7465.54771036
delta logL = -0.00374694772108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7465.54396329
delta logL = 1.26357008412e-07

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.1358       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0010       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=   7465.544     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    81.654        .94552E-02** at limit **
   2  alpha         1.7888        2.6305        .16687        .78349E-08
   3  Normalizat    1.1032        .50354E-01    .36299E-03    .15040E-03
   4  Prefactor     1.0010        .23526E-01    .17590E-03    .34560E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78875
  Normalizat = 1.10318
  Prefactor  = 1.00105
 **********
 **   18 **HESSE 
 **********

 FCN=   7465.544     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3380        .97463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7888        3.1623        .66747E-02   -.28848    
   3  Normalizat    1.1032        .22554        .14520E-04   -.89650    
   4  Prefactor     1.0010        .10545        .35180E-04   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33659e-11
Minuit parameter uncertainties:
  1  4.67613e-08
  2  155.146
  3  0.225741
  4  0.105467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352705': 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) = 7465.54396083
delta logL = 2.58526597463e-06

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  4.676e-08  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  1.789e+00  1.551e+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:  1.001e+00  1.055e-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:  1.103e+00  2.257e-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/352705/cmap_HighResolution_277430401_277689601_4FGL_J0418.1-0252_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2021-08-20 10:41:56.039492', job_id='352705', GAL2='1.00', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629481316.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='147' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 352705: <4FGL_J0418.1-0252_daily_bin147> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin147> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 10:26:00 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:26:03 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:26:03 2021
Terminated at Fri Aug 20 10:41:58 2021
Results reported at Fri Aug 20 10:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin147 64.5321 -2.8795 277430401 277689601 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 :                                   928.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            958 sec.

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

