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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1077
RA = 64.5321, Dec = -2.8795
tmin = 518486401, tmax = 518745601
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='357961', job_status='RUN', time_executed='2021-08-20 10:48:29.822139', time_epoch_executed='1629481709.82' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357961/ft1_4FGL_J0418.1-0252_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357961/ft1_4FGL_J0418.1-0252_daily_bin1077.fits outfile=/scratch/kocevski/357961/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1077.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=518486401.0 tmax=518745601.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 8.32
user 6.54
sys 1.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357961/ft1_filtered_4FGL_J0418.1-0252_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/357961/ltcube_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.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/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits
.....................!
real 13.24
user 11.21
sys 1.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357961/ft1_filtered_4FGL_J0418.1-0252_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/357961/ltcube_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.fits outfile=/scratch/kocevski/357961/expmap_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.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/357961/ltcube_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.fits
.....................!
real 192.15
user 185.06
sys 6.72

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/357961/ft1_filtered_4FGL_J0418.1-0252_daily_bin1077.fits scfile=/scratch/kocevski/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits outfile=/scratch/kocevski/357961/cmap_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.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.01
user 0.36
sys 1.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357961/ft1_filtered_4FGL_J0418.1-0252_daily_bin1077.fits scfile=/scratch/kocevski/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits outfile=/scratch/kocevski/357961/cmap_HighResolution_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.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 1.97
user 0.35
sys 1.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357961/ft1_filtered_4FGL_J0418.1-0252_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/357961/ft2_4FGL_J0418.1-0252_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357961/Model_4FGL_J0418.1-0252_daily_bin1077.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/357961/ft1_filtered_4FGL_J0418.1-0252_daily_bin1077.fits.....................!
real 120.60
user 117.17
sys 3.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7550       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.473       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.026       1.0000         .10000E-03   10000.    
    10 'norm      '    16.071       1.0000         .10000E-03   10000.    
    11 'norm      '    .10449E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7951       1.0000         .10000E-03   10000.    
    13 'Prefactor '    92.062       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.812       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.3002       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.538       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .39223       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2215       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=   8069.351     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2375 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7544        2.2947        .29701E-06    .41474E-03
   2  Prefactor     47.149        62.284        .51702E-07   -.27322E-04
   3  Prefactor     15.471        11.960        .12901E-05    .48410E-04
   4  Prefactor     .10000E-03    10.958       -.14973E-05** at limit **
   5  norm          .10000E-03    4.7150        .25325E-07** at limit **
   6  Prefactor     .10000E-03    11.412       -.28292E-07** at limit **
   7  norm          .10000E-03    1.9870        .13180E-06** at limit **
   8  Prefactor     .10000E-03    12.391       -.10028E-05** at limit **
   9  norm          23.023        14.121        .81644E-06    .10677E-03
  10  norm          16.070        20.848       -.10427E-07    .54808E-04
  11  norm          .10000E-03    .56660        .15910E-06** at limit **
  12  Prefactor     1.7951        1.3026        .61128E-08    .40858E-03
  13  Prefactor     91.983        41.422        .97265E-06   -.86197E-04
  14  Prefactor     .10000E-03    15.717       -.94354E-07** at limit **
  15  Prefactor     36.807        15.969        .10884E-05    .13797E-03
  16  norm          6.7036        4.7441        .24173E-07    .58133E-03
  17  Prefactor     .10000E-03    27.076        .10949E-05** at limit **
  18  norm          6.2992        3.0535        .43236E-06    .33980E-03
  19  norm          3.6694        2.2021        .32338E-06    .23942E-03
  20  Prefactor     11.536        21.570        .58516E-06    .20343E-04
  21  Normalizat    .39228        .27297       -.23776E-04   -.17896E-04
  22  Prefactor     1.2215        .11841        .52126E-05   -.14362E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.75441
  Prefactor  = 47.1486
  Prefactor  = 15.4708
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0233
  norm       = 16.0698
  norm       = 0.0001
  Prefactor  = 1.79508
  Prefactor  = 91.983
  Prefactor  = 0.0001
  Prefactor  = 36.8066
  norm       = 6.70357
  Prefactor  = 0.0001
  norm       = 6.29919
  norm       = 3.66943
  Prefactor  = 11.5361
  Normalizat = 0.392284
  Prefactor  = 1.22154
 **********
 **   18 **HESSE 
 **********

 FCN=   8069.351     FROM HESSE     STATUS=OK           348 CALLS     2723 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7544        2.2994        .81698E-04   -1.5228    
   2  Prefactor     47.149        62.377        .58343E-04   -1.4334    
   3  Prefactor     15.471        11.965        .10182E-03   -1.4921    
   4  Prefactor     .10000E-03    10.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.7151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9991        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.023        14.127        .83475E-04   -1.4748    
  10  norm          16.070        20.821        .99908E-04   -1.4906    
  11  norm          .10000E-03    1.1685        .12936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7951        1.3002        .83257E-04   -1.5440    
  13  Prefactor     91.983        41.178        .20941E-03   -1.3787    
  14  Prefactor     .10000E-03    15.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.807        15.876        .66055E-04   -1.4494    
  16  norm          6.7036        4.7198        .12353E-03   -1.5190    
  17  Prefactor     .10000E-03    27.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2992        3.0541        .10198E-03   -1.5206    
  19  norm          3.6694        2.2016        .98057E-04   -1.5325    
  20  Prefactor     11.536        21.564        .11794E-03   -1.5029    
  21  Normalizat    .39228        .27342        .63531E-03   -1.1770    
  22  Prefactor     1.2215        .11889        .17239E-03   -.85671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0247e-10
Minuit parameter uncertainties:
  1  2.29947
  2  62.4636
  3  11.9667
  4  0.000175459
  5  1.24462e-06
  6  1.00696e-06
  7  3.07657e-06
  8  7.34217e-05
  9  14.1288
  10  20.8306
  11  1.24991e-05
  12  1.30023
  13  41.1904
  14  3.01021e-05
  15  15.878
  16  4.72003
  17  1.93234e-06
  18  3.05417
  19  2.20164
  20  21.5781
  21  0.27436
  22  0.118913
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  3.077e-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:  1.222e+00  1.189e-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:  3.923e-01  2.744e-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: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357961/likelihoodResults_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.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) = 8069.35320501
delta logL = -0.00236219009093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8069.35084039
delta logL = 2.42862915911e-06

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.7499       1.0000          .0000       5.0000    
     3 'Normalizat'    .39227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2215       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=   8069.351     FROM MIGRAD    STATUS=FAILED        88 CALLS      284 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    543.63        .25683E-03** at limit **
   2  alpha         2.7650        3.5784        .50000       -.83207E-06
   3  Normalizat    .39228        .24232        .63528E-03    .70150E-05
   4  Prefactor     1.2215        .11281        .17239E-03    .10222E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8069.351     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      476 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    543.63        .25592E-03** at limit **
   2  alpha         2.7650        3.5784        .21006E-05   -.83207E-06
   3  Normalizat    .39228        .24232        .28383E-06    .70150E-05
   4  Prefactor     1.2215        .11281        .17666E-07    .10222E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8069.351     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      513 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3207        .51367E-04** at limit **
   2  alpha         2.7877        3.6037        .50000        .52705E-07
   3  Normalizat    .39228        .24490        .25411E-04   -.20222E-04
   4  Prefactor     1.2215        .11415        .68955E-05   -.36931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.78771
  Normalizat = 0.392283
  Prefactor  = 1.22154
 **********
 **   18 **HESSE 
 **********

 FCN=   8069.351     FROM HESSE     STATUS=OK            29 CALLS      542 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2204        .10273E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7877        2.6232        .50000        .11534    
   3  Normalizat    .39228        .24486        .50823E-05   -1.1770    
   4  Prefactor     1.2215        .11413        .13791E-05   -.85671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76724e-11
Minuit parameter uncertainties:
  1  1.32907e-06
  2  179.769
  3  0.245529
  4  0.114155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357961': 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) = 8069.35084036
delta logL = 2.45057071879e-06

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  1.329e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.788e+00  1.798e+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.222e+00  1.142e-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:  3.923e-01  2.455e-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/357961/cmap_HighResolution_518486401_518745601_4FGL_J0418.1-0252_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-08-20 11:00:46.051095', job_id='357961', GAL2='1.22', fit_tolerance='1e-08', EG2='0.39', EG='0.39', time_epoch_completed='1629482446.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1077' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:00:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 357961: <4FGL_J0418.1-0252_daily_bin1077> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1077 64.5321 -2.8795 518486401 518745601 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 :                                   755.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

