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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1405
RA = 214.606, Dec = -2.5594
tmin = 603504001, tmax = 603763201
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='330044', job_status='RUN', time_executed='2021-09-09 08:46:13.608430', time_epoch_executed='1631202373.61' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330044/ft1_4FGL_J1418.4-0233_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330044/ft1_4FGL_J1418.4-0233_daily_bin1405.fits outfile=/scratch/kocevski/330044/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1405.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.73
user 2.52
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.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/330044/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.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/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/330044/ltcube_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.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/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits
.....................!
real 12.09
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/330044/ltcube_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.fits outfile=/scratch/kocevski/330044/expmap_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.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/330044/ltcube_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.fits
.....................!
real 190.16
user 185.13
sys 4.51

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/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.fits scfile=/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits outfile=/scratch/kocevski/330044/cmap_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.fits scfile=/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits outfile=/scratch/kocevski/330044/cmap_HighResolution_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.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/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/330044/ft2_4FGL_J1418.4-0233_daily_bin1405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330044/Model_4FGL_J1418.4-0233_daily_bin1405.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/330044/ft1_filtered_4FGL_J1418.4-0233_daily_bin1405.fits.....................!
real 72.90
user 71.54
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80028       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8290       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11598E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3423       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70666       1.0000         .10000E-03   10000.    
     9 'norm      '    13.788       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4452       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22994E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .17940E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13243E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1582       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0115       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=   10113.04     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1536 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79945        1.2337        .14052E-06    .91014E-03
   2  norm          2.8246        43.787       -.54269E-05   -.38718E-05
   3  Prefactor     4.8868        4.9315        .35286E-06    .16852E-03
   4  Prefactor     .10000E-03    6.0443        .18733E-06** at limit **
   5  norm          .10000E-03    3.6941       -.81402E-06** at limit **
   6  Prefactor     .10000E-03    7.9412       -.32811E-06** at limit **
   7  norm          3.3416        1.9224       -.23057E-06   -.21997E-03
   8  Prefactor     .72519        38.270       -.31060E-04    .28710E-03
   9  norm          13.777        8.8896       -.84208E-06   -.66009E-04
  10  norm          2.4439        3.2304        .48771E-05    .15034E-02
  11  Prefactor     .10000E-03    23.148        .14506E-05** at limit **
  12  Prefactor     .10000E-03    9.3534        .11222E-05** at limit **
  13  norm          .10100E-03    12.655       -.11409E-05** at limit **
  14  Prefactor     .10000E-03    21.843       -.10974E-05** at limit **
  15  Prefactor     .10000E-03    9.5835       -.97544E-06** at limit **
  16  norm          .10000E-03    5.3715       -.35229E-07** at limit **
  17  Normalizat    1.1584        .17527        .23104E-05    .97053E-04
  18  Prefactor     1.0115        .99482E-01   -.16521E-05   -.44914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.799453
  norm       = 2.82458
  Prefactor  = 4.88681
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.34159
  Prefactor  = 0.725188
  norm       = 13.7767
  norm       = 2.44388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.1584
  Prefactor  = 1.01153
 **********
 **   18 **HESSE 
 **********

 FCN=   10113.04     FROM HESSE     STATUS=OK           254 CALLS     1790 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79945        .98357        .13453E-02   -1.5529    
   2  norm          2.8246        43.762        .24179E-03   -1.5372    
   3  Prefactor     4.8868        4.9209        .18199E-03   -1.5266    
   4  Prefactor     .10000E-03    6.0580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3416        1.9223        .10111E-03   -1.5342    
   8  Prefactor     .72519        57.980        .56835E-02   -1.5538    
   9  norm          13.777        8.8896        .10787E-03   -1.4965    
  10  norm          2.4439        4.4143        .13081E-02   -1.5395    
  11  Prefactor     .10000E-03    23.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10100E-03    13.784        .11784       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1584        .20678        .30575E-03   -.87898    
  18  Prefactor     1.0115        .11812        .18793E-03   -.92346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76969e-09
Minuit parameter uncertainties:
  1  0.983591
  2  22.255
  3  4.9213
  4  2.06791e-05
  5  0.000123927
  6  3.16609e-05
  7  1.92229
  8  12.9808
  9  8.89049
  10  4.41485
  11  2.31492e-05
  12  2.66468e-05
  13  0.00742865
  14  5.90237e-06
  15  7.33726e-06
  16  3.57944e-06
  17  0.20693
  18  0.118155
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.378e+01  8.890e+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:  1.012e+00  1.182e-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.158e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.93
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 1.22e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 2.09e-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) = 10113.0312683
delta logL = 0.00462752677777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10113.0312059
delta logL = 0.0046899729623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.719       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5923       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   10113.03     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.687        254.50        .27035E-02   -.60976E-05
   2  alpha         1.5899        2.7987        .45249        .14002E-04
   3  Normalizat    1.1592        .13159        .69084E-01    .64776E-05
   4  Prefactor     1.0116        .50330E-01    .43105E-01   -.22716E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6866
  alpha      = 1.58986
  Normalizat = 1.15915
  Prefactor  = 1.01163
 **********
 **   18 **HESSE 
 **********

 FCN=   10113.03     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.687        8.9918        .10814E-03   -1.4968    
   2  alpha         1.5899        .50998        .15547E-01   -.37262    
   3  Normalizat    1.1592        .20144        .30566E-03   -.87875    
   4  Prefactor     1.0116        .11735        .18793E-03   -.92343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71792e-12
Minuit parameter uncertainties:
  1  8.9927
  2  0.514146
  3  0.201575
  4  0.117381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330044': 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) = 10113.03119
delta logL = 0.00470588772805

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.369e+01  8.993e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.590e+00  5.141e-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.012e+00  1.174e-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.159e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.94
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 1.59 +/- 0.51
Photon Flux (Free Index): 1.77e-08 +/- 1.68e-08
Energy Flux (Free Index): 3.46e-05 +/- 3.28e-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/330044/cmap_HighResolution_603504001_603763201_4FGL_J1418.4-0233_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='3.46e-05', photon_flux_error='1.22e-08', dlogl='4.71e-03', energy_flux='3.25e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-09 08:55:55.028514', photon_index_error2='0.51', photon_index2='1.59', ts='8.93', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='1.16', time_epoch_completed='1631202955.03', return_code='0', job_id='330044', GAL2='1.01', EG2='1.16', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='1.68e-08', ts2='8.94', photon_index='1.64' WHERE bin_id='1405' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 330044: <4FGL_J1418.4-0233_daily_bin1405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1405 214.606 -2.5594 603504001 603763201 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 :                                   573.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            594 sec.

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

