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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin623
RA = 214.606, Dec = -2.5594
tmin = 400809601, tmax = 401068801
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='326555', job_status='RUN', time_executed='2021-09-09 08:38:31.223203', time_epoch_executed='1631201911.22' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326555

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326555/ft1_4FGL_J1418.4-0233_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326555/ft1_4FGL_J1418.4-0233_daily_bin623.fits outfile=/scratch/kocevski/326555/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin623.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=400809601.0 tmax=401068801.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 3.38
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.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/326555/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin623.fits evtable="EVENTS" outfile="/scratch/kocevski/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.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/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.fits" evtable="EVENTS" scfile=/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits sctable="SC_DATA" outfile=/scratch/kocevski/326555/ltcube_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.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/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits
.....................!
real 11.43
user 11.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/326555/ltcube_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.fits outfile=/scratch/kocevski/326555/expmap_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.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/326555/ltcube_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.fits
.....................!
real 190.10
user 185.13
sys 4.60

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/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.fits scfile=/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits outfile=/scratch/kocevski/326555/cmap_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.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/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.fits scfile=/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits outfile=/scratch/kocevski/326555/cmap_HighResolution_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/326555/ft2_4FGL_J1418.4-0233_daily_bin623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/326555/Model_4FGL_J1418.4-0233_daily_bin623.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/326555/ft1_filtered_4FGL_J1418.4-0233_daily_bin623.fits.....................!
real 45.77
user 44.34
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0297       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9482       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-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      '    37.464       1.0000         .10000E-03   10000.    
    10 'norm      '    11.694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.907       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4482       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4115       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .73180       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=   5533.358     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1455 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0295        2.5864       -.56874E-07   -.18919E-04
   2  norm          .10000E-03    9.8111        .13718E-06** at limit **
   3  Prefactor     11.990        8.9931       -.12078E-05   -.13436E-03
   4  Prefactor     .10000E-03    13.813        .28256E-07** at limit **
   5  norm          2.9485        6.0051        .88037E-05   -.11782E-03
   6  Prefactor     .10000E-03    6.9010        .53298E-06** at limit **
   7  norm          .10000E-03    .88732       -.80165E-09** at limit **
   8  Prefactor     .10000E-03    6.5764       -.11853E-06** at limit **
   9  norm          37.463        17.946        .23373E-07    .35141E-05
  10  norm          11.694        6.6139       -.26258E-06    .25616E-05
  11  Prefactor     .10000E-03    7.9521       -.33961E-06** at limit **
  12  Prefactor     .10000E-03    7.5589       -.18055E-06** at limit **
  13  norm          .10000E-03    8.7842        .13087E-06** at limit **
  14  Prefactor     .10000E-03    90.722        .81961E-06** at limit **
  15  Prefactor     69.777        55.674       -.75520E-05   -.45897E-03
  16  norm          4.5047        41.586        .72621E-05    .71477E-04
  17  Normalizat    1.4116        .21801        .21553E-05   -.13528E-03
  18  Prefactor     .73173        .12282       -.14677E-05    .78806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.02949
  norm       = 0.0001
  Prefactor  = 11.9903
  Prefactor  = 0.0001
  norm       = 2.94849
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 37.4634
  norm       = 11.6936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.7771
  norm       = 4.50468
  Normalizat = 1.41164
  Prefactor  = 0.731735
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.358     FROM HESSE     STATUS=OK           240 CALLS     1695 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0295        2.5890        .10579E-03   -1.5360    
   2  norm          .10000E-03    9.8117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.990        8.9940        .57844E-03   -1.5015    
   4  Prefactor     .10000E-03    13.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9485        6.0587        .11826E-02   -1.5365    
   6  Prefactor     .10000E-03    6.9423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .89669        .68405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          37.463        17.950        .65479E-04   -1.4483    
  10  norm          11.694        6.6146        .58575E-03   -1.5024    
  11  Prefactor     .10000E-03    7.9601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.7919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    91.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.777        57.887        .24005E-03   -1.4035    
  16  norm          4.5047        42.482        .19093E-03   -1.5283    
  17  Normalizat    1.4116        .25282        .26904E-03   -.80293    
  18  Prefactor     .73173        .14228        .20613E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70086e-09
Minuit parameter uncertainties:
  1  2.58906
  2  5.30309e-06
  3  8.99498
  4  2.00161e-05
  5  6.05992
  6  9.51169e-06
  7  3.75844e-06
  8  6.99007e-06
  9  17.9527
  10  6.61501
  11  9.83868e-06
  12  1.21552e-05
  13  1.03033e-05
  14  0.000332127
  15  57.9335
  16  27.6928
  17  0.253047
  18  0.142352
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  3.746e+01  1.795e+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:  7.317e-01  1.424e-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.412e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.36
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 8.83e-05 +/- 4.23e-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) = 5533.34923386
delta logL = 0.00865858384623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5533.34876938
delta logL = 0.00912306809278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.027       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6869       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73155       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=   5533.349     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      222 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.027        114.57        .16466E-02   -.29484E-03
   2  alpha         1.6869        1.7923        .23408        .27109E-04
   3  Normalizat    1.4102        .24240        .60855E-01    .40737E-05
   4  Prefactor     .73156        .12651        .42820E-01    .10668E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.0268
  alpha      = 1.68689
  Normalizat = 1.41022
  Prefactor  = 0.731564
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.349     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.027        18.130        .65864E-04   -1.4490    
   2  alpha         1.6869        .34913        .93991E-02   -.33127    
   3  Normalizat    1.4102        .24570        .26914E-03   -.80333    
   4  Prefactor     .73156        .14146        .20614E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03443e-10
Minuit parameter uncertainties:
  1  18.1327
  2  0.350412
  3  0.245905
  4  0.141533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326555': 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) = 5533.34876937
delta logL = 0.00912307431645

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  3.703e+01  1.813e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.687e+00  3.504e-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:  7.316e-01  1.415e-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.410e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.36
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 1.69 +/- 0.35
Photon Flux (Free Index): 5.42e-08 +/- 3.22e-08
Energy Flux (Free Index): 8.21e-05 +/- 5.94e-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/326555/cmap_HighResolution_400809601_401068801_4FGL_J1418.4-0233_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='8.21e-05', photon_flux_error='2.47e-08', dlogl='9.12e-03', energy_flux='8.83e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-09-09 08:46:02.215414', photon_index_error2='0.35', photon_index2='1.69', ts='19.36', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='5.94e-05', EG='1.41', time_epoch_completed='1631202362.22', return_code='0', job_id='326555', GAL2='0.73', EG2='1.41', return_code2='0', energy_flux_error='4.23e-05', photon_flux_error2='3.22e-08', ts2='19.36', photon_index='1.64' WHERE bin_id='623' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 326555: <4FGL_J1418.4-0233_daily_bin623> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin623 214.606 -2.5594 400809601 401068801 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 :                                   450.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            625 sec.

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

