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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin45
RA = 214.606, Dec = -2.5594
tmin = 250992001, tmax = 251251201
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='323700', job_status='RUN', time_executed='2021-09-09 08:28:41.880738', time_epoch_executed='1631201321.88' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323700/ft1_4FGL_J1418.4-0233_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323700/ft1_4FGL_J1418.4-0233_daily_bin45.fits outfile=/scratch/kocevski/323700/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin45.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=250992001.0 tmax=251251201.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.44
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323700/ft1_filtered_4FGL_J1418.4-0233_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/323700/ltcube_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.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/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits
.....................!
real 12.32
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323700/ft1_filtered_4FGL_J1418.4-0233_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/323700/ltcube_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.fits outfile=/scratch/kocevski/323700/expmap_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.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/323700/ltcube_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.fits
.....................!
real 191.20
user 186.77
sys 4.12

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/323700/ft1_filtered_4FGL_J1418.4-0233_daily_bin45.fits scfile=/scratch/kocevski/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits outfile=/scratch/kocevski/323700/cmap_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323700/ft1_filtered_4FGL_J1418.4-0233_daily_bin45.fits scfile=/scratch/kocevski/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits outfile=/scratch/kocevski/323700/cmap_HighResolution_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/323700/ft1_filtered_4FGL_J1418.4-0233_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/323700/ft2_4FGL_J1418.4-0233_daily_bin45.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323700/Model_4FGL_J1418.4-0233_daily_bin45.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/323700/ft1_filtered_4FGL_J1418.4-0233_daily_bin45.fits.....................!
real 69.25
user 67.89
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1232       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-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      '    .14798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8098       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5844       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.814       1.0000         .10000E-03   10000.    
    13 'norm      '    .77887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.402       1.0000         .10000E-03   10000.    
    16 'norm      '    17.003       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .88218       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=   9557.445     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     2061 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1234        2.0299        .45083E-07   -.10447E-05
   2  norm          .10000E-03    15.918       -.30970E-06** at limit **
   3  Prefactor     .10000E-03    2.1395        .11050E-07** at limit **
   4  Prefactor     .10000E-03    6.1430        .15716E-07** at limit **
   5  norm          .10000E-03    1.3109       -.24474E-08** at limit **
   6  Prefactor     .10000E-03    8.5806        .61934E-07** at limit **
   7  norm          .15014        .90198        .78087E-06   -.15145E-02
   8  Prefactor     8.8094        9.9677        .84239E-07   -.38638E-04
   9  norm          5.5850        10.229        .57070E-05    .31124E-03
  10  norm          .10000E-03    3.2082        .20585E-07** at limit **
  11  Prefactor     .10000E-03    6.8213        .30105E-07** at limit **
  12  Prefactor     16.815        14.172        .16182E-06   -.23981E-04
  13  norm          .83303        11.942        .35786E-05   -.61368E-03
  14  Prefactor     .10000E-03    20.992        .41114E-06** at limit **
  15  Prefactor     25.429        36.712        .27723E-05    .33743E-03
  16  norm          16.992        23.912       -.17810E-05   -.16081E-03
  17  Normalizat    1.1418        .15740       -.68436E-06   -.38316E-03
  18  Prefactor     .88219        .91940E-01   -.20631E-06   -.47250E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.12336
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.150144
  Prefactor  = 8.80941
  norm       = 5.58503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8147
  norm       = 0.83303
  Prefactor  = 0.0001
  Prefactor  = 25.4287
  norm       = 16.9924
  Normalizat = 1.14178
  Prefactor  = 0.882192
 **********
 **   18 **HESSE 
 **********

 FCN=   9557.445     FROM HESSE     STATUS=OK           244 CALLS     2305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1234        2.0337        .77220E-04   -1.5213    
   2  norm          .10000E-03    16.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1817        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3143        .10931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .15014        3.6662        .16470E-02   -1.5630    
   8  Prefactor     8.8094        9.9668        .13504E-03   -1.5114    
   9  norm          5.5850        10.406        .85002E-03   -1.5235    
  10  norm          .10000E-03    3.2490        .17087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.815        14.165        .97674E-04   -1.4888    
  13  norm          .83303        53.183        .57755E-02   -1.5525    
  14  Prefactor     .10000E-03    21.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.429        37.264        .79481E-04   -1.4699    
  16  norm          16.992        24.203        .97131E-04   -1.4883    
  17  Normalizat    1.1418        .18267        .28202E-03   -.88422    
  18  Prefactor     .88219        .10755        .18714E-03   -.96766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02207e-08
Minuit parameter uncertainties:
  1  2.03367
  2  0.000109823
  3  1.59954e-06
  4  5.98454e-06
  5  4.48063e-07
  6  2.08694e-05
  7  1.48346
  8  9.96866
  9  10.4094
  10  1.84477e-06
  11  1.79034e-06
  12  14.1683
  13  13.3237
  14  0.000158612
  15  37.2979
  16  24.2173
  17  0.182776
  18  0.107574
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  5.585e+00  1.041e+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:  8.822e-01  1.076e-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.142e+00  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/323700/likelihoodResults_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.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) = 9555.68849722
delta logL = 1.75616821709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9555.67963592
delta logL = 1.76502951615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4663       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9923       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89211       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=   9555.680     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4589        32.103        .54302E-02    .38186E-03
   2  alpha         2.9933        1.9825        .23780        .10104E-03
   3  Normalizat    1.0865        .55171E-01    .65100E-01   -.29298E-04
   4  Prefactor     .89202        .30399E-01    .44904E-01   -.45487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.45885
  alpha      = 2.99328
  Normalizat = 1.08646
  Prefactor  = 0.892019
 **********
 **   18 **HESSE 
 **********

 FCN=   9555.680     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4589        11.924        .10396E-03   -1.5336    
   2  alpha         2.9933        1.5030        .86217E-02    .19862    
   3  Normalizat    1.0865        .19060        .28798E-03   -.90188    
   4  Prefactor     .89202        .11104        .18601E-03   -.96421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05053e-07
Minuit parameter uncertainties:
  1  11.9323
  2  1.61794
  3  0.190724
  4  0.111066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323700': 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) = 9555.6796344
delta logL = 1.76503104346

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  3.459e+00  1.193e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.993e+00  1.618e+00  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:  8.920e-01  1.111e-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.086e+00  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.99 +/- 1.62
Photon Flux (Free Index): 6.65e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.25e-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/323700/cmap_HighResolution_250992001_251251201_4FGL_J1418.4-0233_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-05', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.77e+00', photon_flux2='6.65e-08', job_status='DONE', time_completed='2021-09-09 08:39:41.082961', photon_index_error2='1.62', photon_index2='2.99', ts='0.36', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.43e-08', energy_flux_error2='1.25e-05', EG='1.14', time_epoch_completed='1631201981.08', return_code='0', job_id='323700', GAL2='0.89', EG2='1.09', return_code2='0', photon_flux_error2='4.70e-08', ts2='3.92', photon_index='1.64' WHERE bin_id='45' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:39:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 323700: <4FGL_J1418.4-0233_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin45 214.606 -2.5594 250992001 251251201 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 :                                   658.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

