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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin4
RA = 214.606, Dec = -2.5594
tmin = 240364801, tmax = 240624001
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='323638', job_status='RUN', time_executed='2021-09-09 08:26:20.582651', time_epoch_executed='1631201180.58' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323638/ft1_4FGL_J1418.4-0233_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323638/ft1_4FGL_J1418.4-0233_daily_bin4.fits outfile=/scratch/kocevski/323638/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin4.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=240364801.0 tmax=240624001.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.42
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323638/ft1_filtered_4FGL_J1418.4-0233_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/323638/ltcube_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.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/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits
.....................!
real 12.46
user 12.14
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323638/ft1_filtered_4FGL_J1418.4-0233_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/323638/ltcube_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.fits outfile=/scratch/kocevski/323638/expmap_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.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/323638/ltcube_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.fits
.....................!
real 191.82
user 187.29
sys 4.15

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/323638/ft1_filtered_4FGL_J1418.4-0233_daily_bin4.fits scfile=/scratch/kocevski/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits outfile=/scratch/kocevski/323638/cmap_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323638/ft1_filtered_4FGL_J1418.4-0233_daily_bin4.fits scfile=/scratch/kocevski/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits outfile=/scratch/kocevski/323638/cmap_HighResolution_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/323638/ft1_filtered_4FGL_J1418.4-0233_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/323638/ft2_4FGL_J1418.4-0233_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323638/Model_4FGL_J1418.4-0233_daily_bin4.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/323638/ft1_filtered_4FGL_J1418.4-0233_daily_bin4.fits.....................!
real 64.03
user 62.67
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1874       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6210       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2801       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2194       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.800       1.0000         .10000E-03   10000.    
    16 'norm      '    .10526E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3364       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90162       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=   8481.826     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1488 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1874        1.3050       -.34619E-07   -.51724E-03
   2  norm          1.6180        132.22       -.13190E-04   -.30736E-04
   3  Prefactor     .10000E-03    1.1186        .44196E-08** at limit **
   4  Prefactor     .10000E-03    23.164       -.95426E-05** at limit **
   5  norm          .10000E-03    1.5967        .84103E-08** at limit **
   6  Prefactor     .10000E-03    3.5643        .20029E-07** at limit **
   7  norm          .10000E-03    .58952        .15707E-08** at limit **
   8  Prefactor     .10000E-03    5.4087        .61531E-07** at limit **
   9  norm          5.2800        6.5659       -.37872E-06   -.48395E-03
  10  norm          .10000E-03    1.5197        .44162E-08** at limit **
  11  Prefactor     .10000E-03    6.4002       -.13420E-06** at limit **
  12  Prefactor     13.360        12.806        .58599E-07   -.43310E-05
  13  norm          .10000E-03    12.668        .77198E-06** at limit **
  14  Prefactor     7.2052        28.049       -.29419E-04   -.19981E-04
  15  Prefactor     24.827        21.299        .18048E-04   -.16532E-03
  16  norm          .10004E-03    29.348        .94993E-05** at limit **
  17  Normalizat    1.3364        .17939       -.59711E-06    .99476E-04
  18  Prefactor     .90163        .10430        .38960E-06   -.16565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18744
  norm       = 1.61796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.27996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3603
  norm       = 0.0001
  Prefactor  = 7.20518
  Prefactor  = 24.8275
  norm       = 0.000100035
  Normalizat = 1.3364
  Prefactor  = 0.901626
 **********
 **   18 **HESSE 
 **********

 FCN=   8481.826     FROM HESSE     STATUS=OK           240 CALLS     1728 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1874        1.2804        .10696E-03   -1.5490    
   2  norm          1.6180        135.14        .33241E-03   -1.5454    
   3  Prefactor     .10000E-03    1.1224        .95121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6022        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5729        .16980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .59581        .69029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2800        6.5681        .87459E-03   -1.5248    
  10  norm          .10000E-03    1.5231        .11087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.360        12.808        .10959E-03   -1.4977    
  13  norm          .10000E-03    12.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2052        28.179        .14929E-03   -1.5171    
  15  Prefactor     24.827        21.177        .40219E-03   -1.4711    
  16  norm          .10004E-03    29.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3364        .21207        .28253E-03   -.82486    
  18  Prefactor     .90163        .12349        .19473E-03   -.96084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58769e-09
Minuit parameter uncertainties:
  1  1.28041
  2  29.6425
  3  1.60107e-07
  4  7.01394e-05
  5  1.49885e-07
  6  2.4984e-06
  7  2.39927e-07
  8  1.42638e-06
  9  6.56904
  10  9.66523e-08
  11  5.13673e-06
  12  12.8105
  13  6.53298e-06
  14  28.2306
  15  21.183
  16  0.00202447
  17  0.212212
  18  0.123527
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  5.280e+00  6.569e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.016e-01  1.235e-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.336e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 7.27e-09 +/- 9.04e-09
Energy Flux (Fixed Index): 1.24e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/323638/likelihoodResults_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.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) = 8481.52235362
delta logL = 0.303178283411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8481.50937745
delta logL = 0.316154448787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3316       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3829       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90305       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8481.509     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      261 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3272        6.4513        .96329E-03    .13985E-03
   2  alpha         2.3834        .97085        .14755E-01    .16667E-03
   3  Normalizat    1.3242        .21290        .28364E-03   -.56115E-06
   4  Prefactor     .90308        .12309        .19454E-03   -.46750E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32716
  alpha      = 2.38341
  Normalizat = 1.32417
  Prefactor  = 0.903079
 **********
 **   18 **HESSE 
 **********

 FCN=   8481.509     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3272        5.9504        .19266E-03   -1.5292    
   2  alpha         2.3834        .89877        .29509E-02   -.46652E-01
   3  Normalizat    1.3242        .21281        .11345E-04   -.82848    
   4  Prefactor     .90308        .12315        .77818E-05   -.96034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24243e-14
Minuit parameter uncertainties:
  1  5.95126
  2  0.919395
  3  0.21295
  4  0.123184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323638': 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) = 8481.50937713
delta logL = 0.316154768792

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  4.327e+00  5.951e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.383e+00  9.194e-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:  9.031e-01  1.232e-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.324e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.38 +/- 0.92
Photon Flux (Free Index): 2.16e-08 +/- 3.10e-08
Energy Flux (Free Index): 8.42e-06 +/- 8.89e-06

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/323638/cmap_HighResolution_240364801_240624001_4FGL_J1418.4-0233_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-05', comment='SUCCESS', photon_flux='7.27e-09', energy_flux2='8.42e-06', photon_flux_error='9.04e-09', dlogl='3.16e-01', energy_flux='1.24e-05', photon_flux2='2.16e-08', job_status='DONE', time_completed='2021-09-09 08:35:57.296552', photon_index_error2='0.92', photon_index2='2.38', ts='1.45', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='3.70e-08', energy_flux_error2='8.89e-06', EG='1.34', time_epoch_completed='1631201757.3', return_code='0', job_id='323638', GAL2='0.90', EG2='1.32', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.10e-08', ts2='2.08', photon_index='1.64' WHERE bin_id='4' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:35:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 323638: <4FGL_J1418.4-0233_daily_bin4> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin4> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:31 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:33 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:33 2021
Terminated at Thu Sep  9 08:35:58 2021
Results reported at Thu Sep  9 08:35:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin4 214.606 -2.5594 240364801 240624001 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 :                                   570.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            627 sec.

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

