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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1542
RA = 214.606, Dec = -2.5594
tmin = 639014401, tmax = 639273601
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='331194', job_status='RUN', time_executed='2021-09-09 08:54:04.692844', time_epoch_executed='1631202844.69' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331194/ft1_4FGL_J1418.4-0233_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331194/ft1_4FGL_J1418.4-0233_daily_bin1542.fits outfile=/scratch/kocevski/331194/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1542.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=639014401.0 tmax=639273601.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.31
user 4.98
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.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/331194/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1542.fits evtable="EVENTS" outfile="/scratch/kocevski/331194/ft1_filtered_4FGL_J1418.4-0233_daily_bin1542.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/331194/ft1_filtered_4FGL_J1418.4-0233_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/331194/ltcube_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.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/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.fits
.....................!
real 11.56
user 11.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331194/ft1_filtered_4FGL_J1418.4-0233_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/331194/ltcube_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.fits outfile=/scratch/kocevski/331194/expmap_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.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/331194/ltcube_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.fits
.....................!
real 190.28
user 185.20
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/331194/ft1_filtered_4FGL_J1418.4-0233_daily_bin1542.fits scfile=/scratch/kocevski/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.fits outfile=/scratch/kocevski/331194/cmap_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331194/ft1_filtered_4FGL_J1418.4-0233_daily_bin1542.fits scfile=/scratch/kocevski/331194/ft2_4FGL_J1418.4-0233_daily_bin1542.fits outfile=/scratch/kocevski/331194/cmap_HighResolution_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.960       1.0000         .10000E-03   10000.    
     5 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1573       1.0000         .10000E-03   10000.    
     7 'norm      '    28.063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .42051E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0254       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=   5609.803     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1717 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .52104       -.52250E-08** at limit **
   2  norm          .10000E-03    11.633        .12085E-04** at limit **
   3  Prefactor     7.7663        7.7058        .57602E-07   -.13195E-03
   4  Prefactor     42.965        31.018        .68528E-06   -.95201E-06
   5  norm          .10000E-03    6.0008       -.37320E-07** at limit **
   6  Prefactor     6.1624        13.871        .11720E-05   -.29303E-04
   7  norm          28.062        5.5766        .17547E-05    .12275E-03
   8  Prefactor     .10000E-03    11.076       -.73036E-05** at limit **
   9  norm          .10069E-03    15.379       -.22068E-05** at limit **
  10  norm          1.3812        5.4539       -.58387E-05   -.94150E-03
  11  Prefactor     .10000E-03    16.736        .10500E-05** at limit **
  12  Prefactor     .10000E-03    24.916        .15942E-04** at limit **
  13  norm          .10000E-03    13.306       -.68413E-05** at limit **
  14  Prefactor     .10000E-03    27.932       -.28142E-04** at limit **
  15  Prefactor     .10000E-03    73.253        .28698E-04** at limit **
  16  norm          .10000E-03    25.243        .81162E-05** at limit **
  17  Normalizat    1.0244        .23968       -.20186E-05    .28767E-04
  18  Prefactor     1.0255        .13776        .36702E-06   -.53182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.76625
  Prefactor  = 42.9653
  norm       = 0.0001
  Prefactor  = 6.16241
  norm       = 28.0625
  Prefactor  = 0.0001
  norm       = 0.00010069
  norm       = 1.38116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02443
  Prefactor  = 1.02551
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.803     FROM HESSE     STATUS=OK           240 CALLS     1957 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52280        .52794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7663        7.6958        .14390E-03   -1.5151    
   4  Prefactor     42.965        31.109        .61163E-04   -1.4396    
   5  norm          .10000E-03    6.0527        .17903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1624        13.856        .16179E-03   -1.5211    
   7  norm          28.062        5.5887        .37573E-03   -1.4648    
   8  Prefactor     .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10069E-03    121.17        .56722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3812        5.5840        .34423E-03   -1.5473    
  11  Prefactor     .10000E-03    16.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    73.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0244        .28095        .32810E-03   -.92217    
  18  Prefactor     1.0255        .16157        .19388E-03   -.91884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2618e-09
Minuit parameter uncertainties:
  1  6.8355e-08
  2  1.74042e-07
  3  7.6968
  4  31.1206
  5  1.29183e-05
  6  13.863
  7  5.58879
  8  3.47683e-06
  9  0.018328
  10  5.55492
  11  1.39084e-05
  12  1.72987e-05
  13  8.7639e-06
  14  1.2934e-05
  15  0.000305763
  16  0.000103446
  17  0.281361
  18  0.161648
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.007e-04  1.833e-02  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.026e+00  1.616e-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.024e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/331194/likelihoodResults_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.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): 102
logL (Free Index) = 5609.80303902
delta logL = -3.78197983082e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5607.99515319
delta logL = 1.80784801526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0904       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2637       1.0000          .0000       5.0000    
     3 'Normalizat'    .92308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0423       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=   5607.995     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      276 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.0878        37.666        .57675E-02    .32603E-03
   2  alpha         3.2642        3.8140        .19123        .79590E-04
   3  Normalizat    .92311        .89659E-01    .77485E-01    .17813E-04
   4  Prefactor     1.0424        .49098E-01    .40385E-01   -.68903E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.08785
  alpha      = 3.26423
  Normalizat = 0.923107
  Prefactor  = 1.04239
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.995     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0878        9.1101        .80871E-04   -1.5357    
   2  alpha         3.2642        1.2466        .75624E-02    .31066    
   3  Normalizat    .92311        .28020        .34295E-03   -.95653    
   4  Prefactor     1.0424        .16307        .19205E-03   -.91330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8803e-11
Minuit parameter uncertainties:
  1  9.11414
  2  1.31199
  3  0.280647
  4  0.163145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331194': 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) = 5607.99515152
delta logL = 1.80784968673

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  3.088e+00  9.114e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  3.264e+00  1.312e+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:  1.042e+00  1.631e-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.231e-01  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.70
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 3.26 +/- 1.31
Photon Flux (Free Index): 1.13e-07 +/- 8.02e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.60e-05

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/331194/cmap_HighResolution_639014401_639273601_4FGL_J1418.4-0233_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', comment='SUCCESS', energy_flux2='2.24e-05', dlogl='1.81e+00', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-09 09:03:51.043770', photon_index_error2='1.31', photon_index2='3.26', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.16e-08', energy_flux_error2='1.60e-05', EG='1.02', time_epoch_completed='1631203431.04', return_code='0', job_id='331194', GAL2='1.04', EG2='0.92', return_code2='0', photon_flux_error2='8.02e-08', ts2='3.70', photon_index='1.64' WHERE bin_id='1542' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:03:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 331194: <4FGL_J1418.4-0233_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin1542> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 08:50:20 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:50:21 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:50:21 2021
Terminated at Thu Sep  9 09:03:51 2021
Results reported at Thu Sep  9 09:03:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1542 214.606 -2.5594 639014401 639273601 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 :                                   506.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             237.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

