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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1447
RA = 214.606, Dec = -2.5594
tmin = 614390401, tmax = 614649601
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='330106', job_status='RUN', time_executed='2021-09-09 08:46:21.150606', time_epoch_executed='1631202381.15' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330106/ft1_4FGL_J1418.4-0233_daily_bin1447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330106/ft1_4FGL_J1418.4-0233_daily_bin1447.fits outfile=/scratch/kocevski/330106/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1447.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=614390401.0 tmax=614649601.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.15
user 2.92
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.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/330106/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1447.fits evtable="EVENTS" outfile="/scratch/kocevski/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.fits" evtable="EVENTS" scfile=/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits sctable="SC_DATA" outfile=/scratch/kocevski/330106/ltcube_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.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/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits
.....................!
real 9.41
user 9.11
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits sctable="SC_DATA" expcube=/scratch/kocevski/330106/ltcube_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.fits outfile=/scratch/kocevski/330106/expmap_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.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/330106/ltcube_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.fits
.....................!
real 149.85
user 145.38
sys 4.14

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/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.fits scfile=/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits outfile=/scratch/kocevski/330106/cmap_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.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.44
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.fits scfile=/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits outfile=/scratch/kocevski/330106/cmap_HighResolution_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.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.45
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/330106/ft2_4FGL_J1418.4-0233_daily_bin1447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330106/Model_4FGL_J1418.4-0233_daily_bin1447.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/330106/ft1_filtered_4FGL_J1418.4-0233_daily_bin1447.fits.....................!
real 43.46
user 42.32
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87009       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.534       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.055       1.0000         .10000E-03   10000.    
     9 'norm      '    15.551       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85633       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=   7161.366     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1758 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86910        1.5420       -.79359E-07   -.12376E-02
   2  norm          .10000E-03    22.180       -.10065E-04** at limit **
   3  Prefactor     4.5408        4.6735        .54356E-06   -.24717E-03
   4  Prefactor     20.546        20.971        .74831E-05   -.10812E-03
   5  norm          5.2059        5.4161        .32917E-06   -.15984E-03
   6  Prefactor     .10000E-03    22.506        .96621E-05** at limit **
   7  norm          7.5823        2.9653        .12264E-06   -.20203E-03
   8  Prefactor     22.065        22.709        .76711E-05   -.83417E-04
   9  norm          15.550        13.216        .21800E-06   -.16954E-04
  10  norm          .10000E-03    4.3388       -.59087E-06** at limit **
  11  Prefactor     63.781        34.114        .14417E-04   -.14054E-04
  12  Prefactor     .10000E-03    5.0648        .63484E-07** at limit **
  13  norm          13.079        30.973       -.29557E-04   -.35546E-04
  14  Prefactor     .10000E-03    43.008        .11512E-05** at limit **
  15  Prefactor     .10000E-03    6.9266        .19424E-06** at limit **
  16  norm          .10000E-03    4.4015        .87756E-06** at limit **
  17  Normalizat    1.1864        .20862       -.49397E-05    .88916E-04
  18  Prefactor     .85668        .11398        .10755E-05   -.37520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.869101
  norm       = 0.0001
  Prefactor  = 4.54083
  Prefactor  = 20.5455
  norm       = 5.20592
  Prefactor  = 0.000100004
  norm       = 7.58228
  Prefactor  = 22.065
  norm       = 15.5497
  norm       = 0.0001
  Prefactor  = 63.7811
  Prefactor  = 0.0001
  norm       = 13.079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18644
  Prefactor  = 0.856679
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.366     FROM HESSE     STATUS=OK           248 CALLS     2006 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86910        1.3626        .13378E-02   -1.5522    
   2  norm          .10000E-03    22.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5408        4.6555        .17182E-03   -1.5282    
   4  Prefactor     20.546        20.939        .88389E-04   -1.4801    
   5  norm          5.2059        5.3956        .17618E-03   -1.5252    
   6  Prefactor     .10000E-03    23.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5823        2.9671        .86693E-04   -1.5157    
   8  Prefactor     22.065        22.664        .85290E-04   -1.4768    
   9  norm          15.550        13.221        .10157E-03   -1.4919    
  10  norm          .10000E-03    4.4236        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.781        34.162        .50254E-04   -1.4109    
  12  Prefactor     .10000E-03    5.0700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.079        31.121        .11069E-03   -1.4985    
  14  Prefactor     .10000E-03    43.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4037        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1864        .24433        .29755E-03   -.87023    
  18  Prefactor     .85668        .13459        .19676E-03   -.97672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18188e-09
Minuit parameter uncertainties:
  1  1.36269
  2  1.34384e-05
  3  4.65584
  4  20.9469
  5  5.39608
  6  0.000615024
  7  2.96713
  8  22.673
  9  13.2237
  10  1.30026e-05
  11  34.1727
  12  6.82838e-06
  13  31.1598
  14  8.28201e-05
  15  7.7948e-08
  16  1.00117e-06
  17  0.244562
  18  0.134644
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.555e+01  1.322e+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.567e-01  1.346e-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.186e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 3.12e-05

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

Saving results to:
/scratch/kocevski/330106/likelihoodResults_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.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) = 7160.96623001
delta logL = 0.399800383399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7160.96343505
delta logL = 0.402595349474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.307       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1777       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85602       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7160.963     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      283 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.279        12.636        .10237E-03   -.79958E-05
   2  alpha         2.1752        .57083        .12460E-01    .28696E-03
   3  Normalizat    1.1665        .23418        .29964E-03    .96751E-05
   4  Prefactor     .85628        .13352        .19666E-03   -.77118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.2792
  alpha      = 2.1752
  Normalizat = 1.16652
  Prefactor  = 0.856283
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.963     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.279        12.212        .40949E-05   -1.4926    
   2  alpha         2.1752        .55157        .24920E-02   -.13029    
   3  Normalizat    1.1665        .23413        .11986E-04   -.87644    
   4  Prefactor     .85628        .13359        .78663E-05   -.97686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01818e-11
Minuit parameter uncertainties:
  1  12.2143
  2  0.556226
  3  0.234344
  4  0.133639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330106': 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) = 7160.96340533
delta logL = 0.402625062235

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.528e+01  1.221e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.175e+00  5.562e-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:  8.563e-01  1.336e-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.167e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.18 +/- 0.56
Photon Flux (Free Index): 5.05e-08 +/- 4.67e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.97e-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/330106/cmap_HighResolution_614390401_614649601_4FGL_J1418.4-0233_daily_bin1447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-04', comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='2.67e-05', photon_flux_error='1.82e-08', dlogl='4.03e-01', energy_flux='3.66e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2021-09-09 08:54:04.285646', photon_index_error2='0.56', photon_index2='2.18', ts='3.64', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.80e-08', energy_flux_error2='1.97e-05', EG='1.19', time_epoch_completed='1631202844.29', return_code='0', job_id='330106', GAL2='0.86', EG2='1.17', return_code2='0', energy_flux_error='3.12e-05', photon_flux_error2='4.67e-08', ts2='4.44', photon_index='1.64' WHERE bin_id='1447' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 330106: <4FGL_J1418.4-0233_daily_bin1447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1447 214.606 -2.5594 614390401 614649601 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 :                                   433.00 sec.
    Max Memory :                                 1205 MB
    Average Memory :                             280.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   477 sec.
    Turnaround time :                            478 sec.

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

