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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin730
RA = 64.5321, Dec = -2.8795
tmin = 428544001, tmax = 428803201
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='356417', job_status='RUN', time_executed='2021-08-20 10:40:50.894649', time_epoch_executed='1629481250.89' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356417/ft1_4FGL_J0418.1-0252_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356417/ft1_4FGL_J0418.1-0252_daily_bin730.fits outfile=/scratch/kocevski/356417/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin730.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=428544001.0 tmax=428803201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.14
user 5.88
sys 1.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356417/ft1_filtered_4FGL_J0418.1-0252_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/356417/ltcube_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.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/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits
.....................!
real 13.02
user 11.61
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356417/ft1_filtered_4FGL_J0418.1-0252_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/356417/ltcube_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.fits outfile=/scratch/kocevski/356417/expmap_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.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/356417/ltcube_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.fits
.....................!
real 197.87
user 190.86
sys 6.60

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/356417/ft1_filtered_4FGL_J0418.1-0252_daily_bin730.fits scfile=/scratch/kocevski/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits outfile=/scratch/kocevski/356417/cmap_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.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 1.45
user 0.35
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356417/ft1_filtered_4FGL_J0418.1-0252_daily_bin730.fits scfile=/scratch/kocevski/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits outfile=/scratch/kocevski/356417/cmap_HighResolution_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.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.44
user 0.38
sys 1.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356417/ft1_filtered_4FGL_J0418.1-0252_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/356417/ft2_4FGL_J0418.1-0252_daily_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356417/Model_4FGL_J0418.1-0252_daily_bin730.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/356417/ft1_filtered_4FGL_J0418.1-0252_daily_bin730.fits.....................!
real 125.15
user 122.37
sys 2.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1194       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.000       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.166       1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    28.934       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4241       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.865       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4812       1.0000         .10000E-03   10000.    
    19 'norm      '    11.313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.087       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98155       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0896       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=   8994.008     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2361 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1195        1.1581       -.17626E-06   -.10508E-02
   2  Prefactor     .10000E-03    21.788        .18824E-06** at limit **
   3  Prefactor     3.9743        7.0542       -.11078E-05   -.28759E-03
   4  Prefactor     22.994        18.295        .29246E-05   -.11879E-03
   5  norm          .10000E-03    8.7358       -.54072E-05** at limit **
   6  Prefactor     .10000E-03    9.3065        .94894E-05** at limit **
   7  norm          2.2442        2.8799       -.13936E-06   -.30134E-03
   8  Prefactor     28.165        26.791       -.29281E-05    .65279E-04
   9  norm          .10000E-03    6.4179        .57232E-07** at limit **
  10  norm          28.896        26.447       -.39378E-05    .12420E-03
  11  norm          1.3102        .89129        .37814E-07   -.17401E-03
  12  Prefactor     .26555        .77948       -.14854E-06   -.14909E-02
  13  Prefactor     11.186        22.792       -.31131E-06    .48476E-04
  14  Prefactor     .10000E-03    9.8330       -.42963E-05** at limit **
  15  Prefactor     10.756        8.0386       -.14643E-06   -.26746E-04
  16  norm          1.4196        3.2235       -.43876E-06   -.12592E-02
  17  Prefactor     10.864        13.469        .10247E-05   -.47637E-04
  18  norm          1.4808        2.0740       -.32402E-06   -.11075E-02
  19  norm          11.313        2.9350        .79717E-07   -.50725E-05
  20  Prefactor     32.082        37.763       -.40565E-05    .52559E-04
  21  Normalizat    .98166        .20412        .96595E-06    .35123E-04
  22  Prefactor     1.0895        .97750E-01    .31459E-06    .90286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1195
  Prefactor  = 0.0001
  Prefactor  = 3.97434
  Prefactor  = 22.994
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.24419
  Prefactor  = 28.1655
  norm       = 0.0001
  norm       = 28.8964
  norm       = 1.31016
  Prefactor  = 0.265554
  Prefactor  = 11.1855
  Prefactor  = 0.0001
  Prefactor  = 10.7557
  norm       = 1.41965
  Prefactor  = 10.8636
  norm       = 1.48078
  norm       = 11.3129
  Prefactor  = 32.082
  Normalizat = 0.981664
  Prefactor  = 1.08955
 **********
 **   18 **HESSE 
 **********

 FCN=   8994.008     FROM HESSE     STATUS=OK           352 CALLS     2713 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1195        1.1353        .10026E-03   -1.5496    
   2  Prefactor     .10000E-03    21.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9743        7.1446        .20228E-03   -1.5309    
   4  Prefactor     22.994        18.191        .83523E-04   -1.4749    
   5  norm          .10000E-03    8.6717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2442        2.8659        .17641E-03   -1.5408    
   8  Prefactor     28.165        26.737        .75488E-04   -1.4646    
   9  norm          .10000E-03    6.4993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          28.896        25.657        .74482E-04   -1.4632    
  11  norm          1.3102        .87094        .69874E-04   -1.5479    
  12  Prefactor     .26555        .77250        .13380E-03   -1.5605    
  13  Prefactor     11.186        22.033        .11990E-03   -1.5039    
  14  Prefactor     .10000E-03    9.7699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.756        8.0505        .12216E-03   -1.5052    
  16  norm          1.4196        3.1604        .21466E-03   -1.5470    
  17  Prefactor     10.864        13.462        .12155E-03   -1.5049    
  18  norm          1.4808        2.0693        .15377E-03   -1.5465    
  19  norm          11.313        2.9340        .78211E-04   -1.5035    
  20  Prefactor     32.082        37.750        .70737E-04   -1.4575    
  21  Normalizat    .98166        .22642        .37529E-03   -.93647    
  22  Prefactor     1.0895        .10946        .17746E-03   -.89801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70229e-09
Minuit parameter uncertainties:
  1  1.13527
  2  3.94194e-05
  3  7.14617
  4  18.1953
  5  9.44627e-05
  6  0.000156553
  7  2.86611
  8  26.7481
  9  9.46433e-06
  10  25.6666
  11  0.870949
  12  0.772527
  13  22.0491
  14  9.05837e-05
  15  8.05133
  16  3.16078
  17  13.4658
  18  2.06939
  19  2.93401
  20  37.7777
  21  0.226645
  22  0.109481
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.817e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 64.532 -2.880
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.46e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 6.84e-06 +/- 8.73e-06

TS (Fixed Index): 1.10
Ra Dec: 64.532 -2.880
Photon Flux Upper Limit: 6.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356417/likelihoodResults_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.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) = 8993.98140311
delta logL = 0.0270341024643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8993.97955777
delta logL = 0.0288794407061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4200       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9086       1.0000          .0000       5.0000    
     3 'Normalizat'    .98364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0891       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=   8993.980     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4162        199.61        .65777E-02    .30828E-03
   2  alpha         1.9072        3.7966        .42710        .85320E-05
   3  Normalizat    .98405        .17188        .84677E-01    .31296E-04
   4  Prefactor     1.0890        .70136E-01    .38015E-01    .24594E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41622
  alpha      = 1.9072
  Normalizat = 0.984049
  Prefactor  = 1.08899
 **********
 **   18 **HESSE 
 **********

 FCN=   8993.980     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4162        3.0523        .18033E-03   -1.5397    
   2  alpha         1.9072        .94792        .32427E-01   -.23940    
   3  Normalizat    .98405        .20947        .37489E-03   -.93567    
   4  Prefactor     1.0890        .10449        .17750E-03   -.89819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49338e-13
Minuit parameter uncertainties:
  1  3.05253
  2  0.973804
  3  0.209641
  4  0.104505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356417': 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) = 8993.97955405
delta logL = 0.028883162644

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  2.416e+00  3.053e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  1.907e+00  9.738e-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.089e+00  1.045e-01  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.840e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 64.532 -2.880
Photon Index (Free Index): 1.91 +/- 0.97
Photon Flux (Free Index): 1.21e-08 +/- 1.79e-08
Energy Flux (Free Index): 7.76e-06 +/- 1.08e-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/356417/cmap_HighResolution_428544001_428803201_4FGL_J0418.1-0252_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', comment='SUCCESS', photon_flux='1.46e-08', energy_flux2='7.76e-06', photon_flux_error='1.86e-08', dlogl='2.89e-02', energy_flux='6.84e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-08-20 10:53:37.909587', photon_index_error2='0.97', photon_index2='1.91', ts='1.10', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.84e-08', energy_flux_error2='1.08e-05', EG='0.98', time_epoch_completed='1629482017.91', return_code='0', job_id='356417', GAL2='1.09', EG2='0.98', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='1.79e-08', ts2='1.16', photon_index='2.14' WHERE bin_id='730' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:53:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 356417: <4FGL_J0418.1-0252_daily_bin730> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin730> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:40:21 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:40:22 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:40:22 2021
Terminated at Fri Aug 20 10:53:38 2021
Results reported at Fri Aug 20 10:53:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin730 64.5321 -2.8795 428544001 428803201 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 :                                   778.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             316.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

