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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin169
RA = 214.606, Dec = -2.5594
tmin = 283132801, tmax = 283392001
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='324688', job_status='RUN', time_executed='2021-09-09 08:32:23.476052', time_epoch_executed='1631201543.48' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324688/ft1_4FGL_J1418.4-0233_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324688/ft1_4FGL_J1418.4-0233_daily_bin169.fits outfile=/scratch/kocevski/324688/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin169.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=283132801.0 tmax=283392001.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 3.76
user 3.56
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/324688/ltcube_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.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/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits
.....................!
real 11.55
user 11.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/324688/ltcube_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.fits outfile=/scratch/kocevski/324688/expmap_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.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/324688/ltcube_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.fits
.....................!
real 190.80
user 186.76
sys 3.68

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/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits scfile=/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits outfile=/scratch/kocevski/324688/cmap_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits scfile=/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits outfile=/scratch/kocevski/324688/cmap_HighResolution_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.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.59
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324688/Model_4FGL_J1418.4-0233_daily_bin169.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/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits.....................!
real 65.66
user 64.41
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits', '/scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits', expMap='/scratch/kocevski/324688/expmap_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.fits', expCube='/scratch/kocevski/324688/ltcube_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324688/Model_4FGL_J1418.4-0233_daily_bin169.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/324688/ft1_filtered_4FGL_J1418.4-0233_daily_bin169.fits
Spacecraft file(s): /scratch/kocevski/324688/ft2_4FGL_J1418.4-0233_daily_bin169.fits
Exposure map: /scratch/kocevski/324688/expmap_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.fits
Exposure cube: /scratch/kocevski/324688/ltcube_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324688/Model_4FGL_J1418.4-0233_daily_bin169.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) = 8807.05243215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3036       1.0000         .10000E-03   10000.    
     2 'norm      '    24.748       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6803       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.539       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.106       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12148E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.475       1.0000         .10000E-03   10000.    
    13 'norm      '    .52451E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29756E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .21771E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .96662       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0750       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=   8807.052     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1777 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3026        2.0942        .20148E-07    .84855E-05
   2  norm          24.792        32.383       -.23016E-05   -.28881E-04
   3  Prefactor     2.6839        4.0008       -.13281E-05   -.51697E-04
   4  Prefactor     54.680        22.759       -.12371E-06   -.17996E-04
   5  norm          .10000E-03    1.6822        .14748E-06** at limit **
   6  Prefactor     .10000E-03    3.7759       -.28564E-06** at limit **
   7  norm          4.4975        2.5251        .26404E-06    .33498E-03
   8  Prefactor     .10000E-03    5.1251       -.21040E-07** at limit **
   9  norm          14.115        10.774       -.38258E-06   -.21804E-04
  10  norm          2.0181        6.2759       -.37300E-05   -.41277E-04
  11  Prefactor     .10000E-03    10.438        .35629E-06** at limit **
  12  Prefactor     26.525        14.970        .86301E-06    .97174E-04
  13  norm          .10000E-03    16.928        .42166E-06** at limit **
  14  Prefactor     28.193        62.038        .79576E-05    .33728E-04
  15  Prefactor     .10000E-03    45.072        .53047E-05** at limit **
  16  norm          .10000E-03    62.241        .13547E-04** at limit **
  17  Normalizat    .96647        .19304       -.20182E-05    .18386E-03
  18  Prefactor     1.0750        .11004        .99986E-06   -.18555E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.3026
  norm       = 24.7921
  Prefactor  = 2.68386
  Prefactor  = 54.6804
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49748
  Prefactor  = 0.0001
  norm       = 14.1155
  norm       = 2.01806
  Prefactor  = 0.0001
  Prefactor  = 26.5247
  norm       = 0.0001
  Prefactor  = 28.1927
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.966474
  Prefactor  = 1.07495
 **********
 **   18 **HESSE 
 **********

 FCN=   8807.052     FROM HESSE     STATUS=OK           246 CALLS     2023 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3026        2.0948        .82281E-04   -1.5247    
   2  norm          24.792        32.424        .80522E-04   -1.4712    
   3  Prefactor     2.6839        4.0105        .22159E-03   -1.5380    
   4  Prefactor     54.680        22.786        .54314E-04   -1.4228    
   5  norm          .10000E-03    1.6900        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7841        .17805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4975        2.5176        .10390E-03   -1.5284    
   8  Prefactor     .10000E-03    5.1287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.115        10.779        .10664E-03   -1.4956    
  10  norm          2.0181        6.2940        .29121E-03   -1.5424    
  11  Prefactor     .10000E-03    10.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.525        14.985        .77857E-04   -1.4677    
  13  norm          .10000E-03    17.016        .21134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.193        62.473        .75352E-04   -1.4646    
  15  Prefactor     .10000E-03    45.365        .19837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    60.960        .63019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .96647        .21529        .33257E-03   -.94162    
  18  Prefactor     1.0750        .12393        .18763E-03   -.90271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40395e-10
Minuit parameter uncertainties:
  1  2.09484
  2  32.4468
  3  4.01093
  4  22.79
  5  1.04307e-05
  6  3.75571e-06
  7  2.51765
  8  2.20362e-06
  9  10.7805
  10  6.29607
  11  9.84121e-06
  12  14.9874
  13  1.00362e-05
  14  62.6182
  15  7.64907e-05
  16  0.000335989
  17  0.21548
  18  0.123959
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.412e+01  1.078e+01  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.075e+00  1.240e-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.665e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.38
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.54e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8807.00969516
delta logL = 0.0424691311891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8807.00648709
delta logL = 0.0456772053312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.907       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8816       1.0000          .0000       5.0000    
     3 'Normalizat'    .95938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0746       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.

 FCN=   8807.006     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      207 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.922        287.95        .25935E-02    .16368E-04
   2  alpha         1.8822        2.6213        .31932        .45938E-04
   3  Normalizat    .95947        .16989        .75393E-01    .41597E-04
   4  Prefactor     1.0746        .57080E-01    .38641E-01    .20834E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.922
  alpha      = 1.88221
  Normalizat = 0.959466
  Prefactor  = 1.07461
 **********
 **   18 **HESSE 
 **********

 FCN=   8807.006     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.922        10.608        .10374E-03   -1.4935    
   2  alpha         1.8822        .74641        .18215E-01   -.24970    
   3  Normalizat    .95947        .20847        .33363E-03   -.94401    
   4  Prefactor     1.0746        .12297        .18763E-03   -.90282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68315e-11
Minuit parameter uncertainties:
  1  10.6096
  2  0.758754
  3  0.208651
  4  0.123003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324688': 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) = 8807.00648535
delta logL = 0.0456789462642

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.492e+01  1.061e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.882e+00  7.588e-01  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.075e+00  1.230e-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.595e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.47
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 1.88 +/- 0.76
Photon Flux (Free Index): 2.93e-08 +/- 4.00e-08
Energy Flux (Free Index): 2.76e-05 +/- 2.47e-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/324688/cmap_HighResolution_283132801_283392001_4FGL_J1418.4-0233_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='2.76e-05', photon_flux_error='1.48e-08', dlogl='4.57e-02', energy_flux='3.33e-05', photon_flux2='2.93e-08', job_status='DONE', time_completed='2021-09-09 08:42:04.259132', photon_index_error2='0.76', photon_index2='1.88', ts='6.38', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='0.97', time_epoch_completed='1631202124.26', return_code='0', job_id='324688', GAL2='1.07', EG2='0.96', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='4.00e-08', ts2='6.47', photon_index='1.64' WHERE bin_id='169' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 324688: <4FGL_J1418.4-0233_daily_bin169> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin169> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 08:30:18 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:30:19 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:30:19 2021
Terminated at Thu Sep  9 08:42:04 2021
Results reported at Thu Sep  9 08:42:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin169 214.606 -2.5594 283132801 283392001 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 :                                   565.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            706 sec.

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

