/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 170 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 = 7379
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4-0233_daily_bin87
RA = 214.606, Dec = -2.5594
tmin = 261878401, tmax = 262137601
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='323763', job_status='RUN', time_executed='2021-09-09 08:28:41.240264', time_epoch_executed='1631201321.24' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323763/ft1_4FGL_J1418.4-0233_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323763/ft1_4FGL_J1418.4-0233_daily_bin87.fits outfile=/scratch/kocevski/323763/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin87.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=261878401.0 tmax=262137601.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 1.41
user 1.22
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.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/323763/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.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 0.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/323763/ltcube_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.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/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits
.....................!
real 12.80
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/323763/ltcube_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.fits outfile=/scratch/kocevski/323763/expmap_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.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/323763/ltcube_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.fits
.....................!
real 190.51
user 184.98
sys 5.14

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1418.4-0233 @ 214.606 -2.5594

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits scfile=/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits outfile=/scratch/kocevski/323763/cmap_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.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=214.606 yref=-2.5594 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 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits scfile=/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits outfile=/scratch/kocevski/323763/cmap_HighResolution_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.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=214.606 yref=-2.5594 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 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323763/Model_4FGL_J1418.4-0233_daily_bin87.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/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits....................!
real 67.92
user 66.55
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits', '/scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits', expMap='/scratch/kocevski/323763/expmap_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.fits', expCube='/scratch/kocevski/323763/ltcube_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/323763/Model_4FGL_J1418.4-0233_daily_bin87.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1418.4-0233'

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  7.824e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/323763/ft1_filtered_4FGL_J1418.4-0233_daily_bin87.fits
Spacecraft file(s): /scratch/kocevski/323763/ft2_4FGL_J1418.4-0233_daily_bin87.fits
Exposure map: /scratch/kocevski/323763/expmap_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.fits
Exposure cube: /scratch/kocevski/323763/ltcube_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/323763/Model_4FGL_J1418.4-0233_daily_bin87.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) = 9226.95992496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10627E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20006E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33027E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7434       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39732       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7847       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.203       1.0000         .10000E-03   10000.    
    13 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.444       1.0000         .10000E-03   10000.    
    16 'norm      '    24.281       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .98180       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9226.952     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1819 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    .64678       -.17496E-06** at limit **
   2  norm          .10000E-03    13.646        .11196E-05** at limit **
   3  Prefactor     .10002E-03    2.4058       -.11294E-05** at limit **
   4  Prefactor     .10019E-03    28.331        .93348E-05** at limit **
   5  norm          .10007E-03    8.5604        .41625E-05** at limit **
   6  Prefactor     .10000E-03    23.885       -.22130E-05** at limit **
   7  norm          1.7439        1.7499       -.92943E-07    .24741E-03
   8  Prefactor     .43625        34.616        .10130E-04   -.29307E-03
   9  norm          .10000E-03    2.5377       -.30687E-07** at limit **
  10  norm          3.7835        6.6164       -.12511E-05    .58482E-04
  11  Prefactor     .10000E-03    21.200        .15936E-05** at limit **
  12  Prefactor     18.197        16.519       -.89211E-07    .50189E-04
  13  norm          .10000E-03    70.339        .41897E-05** at limit **
  14  Prefactor     15.531        50.141        .88650E-05    .34516E-04
  15  Prefactor     29.436        63.858        .21509E-05   -.10467E-04
  16  norm          24.281        39.544       -.19403E-05   -.10591E-04
  17  Normalizat    .98180        .18936        .20234E-05    .43908E-03
  18  Prefactor     1.1929        .11205        .55728E-06    .76079E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.000100194
  norm       = 0.000100073
  Prefactor  = 0.000100001
  norm       = 1.74386
  Prefactor  = 0.436252
  norm       = 0.0001
  norm       = 3.78351
  Prefactor  = 0.0001
  Prefactor  = 18.1973
  norm       = 0.000100002
  Prefactor  = 15.5311
  Prefactor  = 29.4364
  norm       = 24.2809
  Normalizat = 0.9818
  Prefactor  = 1.19292
 **********
 **   18 **HESSE 
 **********

 FCN=   9226.952     FROM HESSE     STATUS=OK           256 CALLS     2075 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    18.511        .14845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    23.498        .26144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10019E-03    71.805        .51851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10007E-03    14.156        .33609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7439        1.7383        .12129E-03   -1.5444    
   8  Prefactor     .43625        113.95        .60877E-02   -1.5576    
   9  norm          .10000E-03    2.5386        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7835        6.6416        .20750E-03   -1.5319    
  11  Prefactor     .10000E-03    21.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.197        16.509        .93876E-04   -1.4855    
  13  norm          .10000E-03    71.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.531        49.923        .10152E-03   -1.4920    
  15  Prefactor     29.436        64.587        .73835E-04   -1.4622    
  16  norm          24.281        40.015        .81292E-04   -1.4722    
  17  Normalizat    .98180        .21462        .33591E-03   -.93643    
  18  Prefactor     1.1929        .12882        .18664E-03   -.86550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25271e-08
Minuit parameter uncertainties:
  1  0.000723906
  2  8.68734e-06
  3  0.00152867
  4  0.00748049
  5  0.00203294
  6  0.000232829
  7  1.73831
  8  14.1269
  9  2.71547e-06
  10  6.6429
  11  0.000103027
  12  16.5132
  13  0.000708678
  14  50.0581
  15  64.7408
  16  40.0588
  17  0.214813
  18  0.128852
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.000e-04  2.715e-06  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.193e+00  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.818e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.606 -2.559
Photon Flux Upper Limit: 2.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323763/likelihoodResults_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.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) = 9226.95399406
delta logL = -0.00183389738231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9226.95216018
delta logL = -1.85118551599e-08

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     '    1.6365       1.0000          .0000       5.0000    
     3 'Normalizat'    .98179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   9226.952     FROM MIGRAD    STATUS=FAILED        83 CALLS      228 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10015E-03    501.15        .14951E-02** at limit **
   2  alpha         1.5869        3.6979        .17915        .30365E-05
   3  Normalizat    .98180        .10507        .33591E-03   -.21863E-04
   4  Prefactor     1.1929        .64049E-01    .18664E-03   -.29969E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9226.952     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      397 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10015E-03    501.15        .32938E-03** at limit **
   2  alpha         1.5869        3.6979        .17556E-04    .30365E-05
   3  Normalizat    .98180        .10507        .87782E-06   -.21863E-04
   4  Prefactor     1.1929        .64049E-01    .39582E-06   -.29969E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9226.952     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      428 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5566        .29902E-03** at limit **
   2  alpha         1.5354        3.3390        .71660E-02   -.25383E-07
   3  Normalizat    .98180        .20993        .13436E-04    .30121E-04
   4  Prefactor     1.1929        .12802        .74655E-05    .57259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53536
  Normalizat = 0.981799
  Prefactor  = 1.19292
 **********
 **   18 **HESSE 
 **********

 FCN=   9226.952     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5564        .59804E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5354        3.1246        .14332E-02   -.39614    
   3  Normalizat    .98180        .21016        .26873E-05   -.93643    
   4  Prefactor     1.1929        .12817        .14931E-05   -.86550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86522e-12
Minuit parameter uncertainties:
  1  5.08765e-06
  2  194.985
  3  0.210341
  4  0.128207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323763': 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) = 9226.95216002
delta logL = 1.37004462886e-07

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.000e-04  5.088e-06  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.535e+00  1.950e+02  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.193e+00  1.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.818e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.606 -2.559

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/323763/cmap_HighResolution_261878401_262137601_4FGL_J1418.4-0233_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='2.03e-08', time_completed='2021-09-09 08:39:17.144787', job_id='323763', GAL2='1.19', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631201957.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.64' WHERE bin_id='87' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:39:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 323763: <4FGL_J1418.4-0233_daily_bin87> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin87> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:39 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:25:41 2021
Terminated at Thu Sep  9 08:39:17 2021
Results reported at Thu Sep  9 08:39:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin87 214.606 -2.5594 261878401 262137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1418.4-0233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

