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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1430
RA = 214.606, Dec = -2.5594
tmin = 609984001, tmax = 610243201
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='330080', job_status='RUN', time_executed='2021-09-09 08:48:46.627996', time_epoch_executed='1631202526.63' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330080/ft1_4FGL_J1418.4-0233_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330080/ft1_4FGL_J1418.4-0233_daily_bin1430.fits outfile=/scratch/kocevski/330080/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1430.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=609984001.0 tmax=610243201.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 5.13
user 4.84
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330080/ft1_filtered_4FGL_J1418.4-0233_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/330080/ltcube_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.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/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits
.....................!
real 14.33
user 13.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330080/ft1_filtered_4FGL_J1418.4-0233_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/330080/ltcube_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.fits outfile=/scratch/kocevski/330080/expmap_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.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/330080/ltcube_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.fits
.....................!
real 190.78
user 185.86
sys 4.56

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/330080/ft1_filtered_4FGL_J1418.4-0233_daily_bin1430.fits scfile=/scratch/kocevski/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits outfile=/scratch/kocevski/330080/cmap_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330080/ft1_filtered_4FGL_J1418.4-0233_daily_bin1430.fits scfile=/scratch/kocevski/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits outfile=/scratch/kocevski/330080/cmap_HighResolution_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330080/ft1_filtered_4FGL_J1418.4-0233_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/330080/ft2_4FGL_J1418.4-0233_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330080/Model_4FGL_J1418.4-0233_daily_bin1430.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/330080/ft1_filtered_4FGL_J1418.4-0233_daily_bin1430.fits.....................!
real 52.33
user 50.04
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.2865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.091       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11714E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.252       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.382       1.0000         .10000E-03   10000.    
    13 'norm      '    .83403E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11448E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0501       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=   6314.118     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1520 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1910        .30285E-01** at limit **
   2  norm          9.3084        19.759        .32878E-02   -.70393E-03
   3  Prefactor     3.9362        5.2554        .50850E-02    .47341E-03
   4  Prefactor     .10000E-03    9.3267        .90712E-02** at limit **
   5  norm          3.2333        7.2317        .56331E-02    .38360E-03
   6  Prefactor     .10000E-03    4.5402        .90712E-02** at limit **
   7  norm          10.094        3.5346        .31535E-02    .18538E-02
   8  Prefactor     .10000E-03    13.999        .90712E-02** at limit **
   9  norm          14.253        12.721        .26524E-02   -.21459E-02
  10  norm          .10000E-03    2.1659        .90712E-02** at limit **
  11  Prefactor     .10000E-03    11.018        .90712E-02** at limit **
  12  Prefactor     22.416        22.343        .21166E-02    .22735E-02
  13  norm          .10001E-03    19.823        .12798    ** at limit **
  14  Prefactor     .10000E-03    85.673        .90712E-02** at limit **
  15  Prefactor     .10000E-03    12.416        .90712E-02** at limit **
  16  norm          .10000E-03    6.7446        .90712E-02** at limit **
  17  Normalizat    1.1620        .22731        .73070E-01    .22635E-04
  18  Prefactor     1.0501        .13226        .39906E-01   -.27204E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.30836
  Prefactor  = 3.93623
  Prefactor  = 0.0001
  norm       = 3.23334
  Prefactor  = 0.0001
  norm       = 10.0938
  Prefactor  = 0.0001
  norm       = 14.253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4164
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.16196
  Prefactor  = 1.05005
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.118     FROM HESSE     STATUS=OK           242 CALLS     1762 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3237        .16789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3084        19.755        .13151E-03   -1.5098    
   3  Prefactor     3.9362        5.1937        .18839E-03   -1.5311    
   4  Prefactor     .10000E-03    9.3377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2333        7.1444        .22533E-03   -1.5348    
   6  Prefactor     .10000E-03    4.5450        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.094        3.5354        .42218E-03   -1.5072    
   8  Prefactor     .10000E-03    14.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.253        12.725        .10610E-03   -1.4953    
  10  norm          .10000E-03    2.1682        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.416        22.347        .84665E-04   -1.4761    
  13  norm          .10001E-03    195.70        .68572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    86.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.7485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1620        .26215        .32336E-03   -.87787    
  18  Prefactor     1.0501        .15383        .19725E-03   -.91079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86378e-08
Minuit parameter uncertainties:
  1  3.92167e-06
  2  19.769
  3  5.19432
  4  1.48224e-05
  5  7.14631
  6  9.74767e-07
  7  3.53543
  8  4.64809e-05
  9  12.7278
  10  1.29913e-06
  11  9.82844e-05
  12  22.3555
  13  0.00274022
  14  0.000366244
  15  0.000111369
  16  1.81903e-05
  17  0.262447
  18  0.153892
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.425e+01  1.273e+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.050e+00  1.539e-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:  1.162e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.85
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 3.00e-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) = 6313.62030554
delta logL = 0.498070312186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6313.48408899
delta logL = 0.634286865918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9830       1.0000         .10000E-03   10000.    
     2 'alpha     '    .85778       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0557       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=   6313.484     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9961        7.1635        .37954E-02   -.87795E-04
   2  alpha         .85724        .46825        .41220       -.26315E-04
   3  Normalizat    1.1628        .22396        .73046E-01    .11973E-04
   4  Prefactor     1.0556        .13139        .39586E-01   -.66614E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99605
  alpha      = 0.857244
  Normalizat = 1.16281
  Prefactor  = 1.05562
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.484     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9961        11.294        .15182E-03   -1.5179    
   2  alpha         .85724        .72040        .18377E-02   -.71697    
   3  Normalizat    1.1628        .26019        .32325E-03   -.87760    
   4  Prefactor     1.0556        .15298        .19681E-03   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28257e-13
Minuit parameter uncertainties:
  1  11.2973
  2  0.739215
  3  0.26048
  4  0.153048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330080': 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) = 6313.48408209
delta logL = 0.634293768251

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  6.996e+00  1.130e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  8.572e-01  7.392e-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.056e+00  1.530e-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:  1.163e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.12
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 0.86 +/- 0.74
Photon Flux (Free Index): 7.14e-09 +/- 8.81e-09
Energy Flux (Free Index): 9.16e-05 +/- 1.14e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/330080/cmap_HighResolution_609984001_610243201_4FGL_J1418.4-0233_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='9.16e-05', photon_flux_error='1.75e-08', dlogl='6.34e-01', energy_flux='3.36e-05', photon_flux2='7.14e-09', job_status='DONE', time_completed='2021-09-09 09:01:43.848835', photon_index_error2='0.74', photon_index2='0.86', ts='8.85', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.14e-04', EG='1.16', time_epoch_completed='1631203303.85', return_code='0', job_id='330080', GAL2='1.06', EG2='1.16', return_code2='0', energy_flux_error='3.00e-05', photon_flux_error2='8.81e-09', ts2='10.12', photon_index='1.64' WHERE bin_id='1430' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:01:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 330080: <4FGL_J1418.4-0233_daily_bin1430> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin1430> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 08:46:04 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:46:06 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:46:06 2021
Terminated at Thu Sep  9 09:01:44 2021
Results reported at Thu Sep  9 09:01:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1430 214.606 -2.5594 609984001 610243201 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 :                                   481.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             239.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

