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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1053
RA = 214.606, Dec = -2.5594
tmin = 512265601, tmax = 512524801
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='328407', job_status='RUN', time_executed='2021-09-09 08:41:14.209646', time_epoch_executed='1631202074.21' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328407/ft1_4FGL_J1418.4-0233_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328407/ft2_4FGL_J1418.4-0233_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328407/ft1_4FGL_J1418.4-0233_daily_bin1053.fits outfile=/scratch/kocevski/328407/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1053.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=512265601.0 tmax=512524801.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.72
user 2.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328407/ft1_filtered_4FGL_J1418.4-0233_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/328407/ft2_4FGL_J1418.4-0233_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/328407/ltcube_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.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/328407/ft2_4FGL_J1418.4-0233_daily_bin1053.fits
.....................!
real 9.09
user 8.78
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328407/ft1_filtered_4FGL_J1418.4-0233_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/328407/ft2_4FGL_J1418.4-0233_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/328407/ltcube_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.fits outfile=/scratch/kocevski/328407/expmap_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.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/328407/ltcube_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.fits
.....................!
real 145.94
user 141.63
sys 3.91

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/328407/ft1_filtered_4FGL_J1418.4-0233_daily_bin1053.fits scfile=/scratch/kocevski/328407/ft2_4FGL_J1418.4-0233_daily_bin1053.fits outfile=/scratch/kocevski/328407/cmap_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/328407/ft1_filtered_4FGL_J1418.4-0233_daily_bin1053.fits scfile=/scratch/kocevski/328407/ft2_4FGL_J1418.4-0233_daily_bin1053.fits outfile=/scratch/kocevski/328407/cmap_HighResolution_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67548       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.161       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    41.609       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3375       1.0000         .10000E-03   10000.    
    13 'norm      '    25.585       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33693E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .71110       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1208       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=   6878.403     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1734 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67606        1.6252        .60553E-06   -.10921E-03
   2  norm          .10000E-03    15.227        .46042E-07** at limit **
   3  Prefactor     2.1070        5.3465        .10221E-05    .87019E-04
   4  Prefactor     20.170        26.467        .55620E-06    .58995E-04
   5  norm          3.2318        6.0219        .27356E-06    .54349E-04
   6  Prefactor     .10000E-03    4.1100        .46708E-07** at limit **
   7  norm          .10000E-03    .73412       -.28674E-07** at limit **
   8  Prefactor     .10000E-03    85.802        .59297E-06** at limit **
   9  norm          41.610        18.060        .44530E-07   -.10735E-04
  10  norm          1.2662        4.5614        .16902E-05   -.15057E-03
  11  Prefactor     .10000E-03    10.443        .44093E-07** at limit **
  12  Prefactor     9.3385        15.367       -.53004E-07   -.33101E-04
  13  norm          25.585        21.498        .10183E-06    .71578E-05
  14  Prefactor     .10002E-03    165.87       -.43330E-05** at limit **
  15  Prefactor     .10000E-03    11.846       -.69626E-07** at limit **
  16  norm          .10000E-03    5.3066       -.53775E-08** at limit **
  17  Normalizat    .71090        .20377       -.12186E-05   -.32074E-04
  18  Prefactor     1.1209        .11818        .35988E-07   -.87428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.676058
  norm       = 0.0001
  Prefactor  = 2.10703
  Prefactor  = 20.1697
  norm       = 3.2318
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 41.6099
  norm       = 1.26624
  Prefactor  = 0.0001
  Prefactor  = 9.33845
  norm       = 25.5854
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.7109
  Prefactor  = 1.12087
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.403     FROM HESSE     STATUS=OK           244 CALLS     1978 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67606        1.6100        .15906E-03   -1.5544    
   2  norm          .10000E-03    15.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1070        5.2537        .27125E-03   -1.5418    
   4  Prefactor     20.170        26.628        .89202E-04   -1.4809    
   5  norm          3.2318        5.9009        .22532E-03   -1.5348    
   6  Prefactor     .10000E-03    4.1146        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .74165        .69369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    89.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          41.610        18.067        .62144E-04   -1.4417    
  10  norm          1.2662        4.5994        .32834E-03   -1.5483    
  11  Prefactor     .10000E-03    10.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3385        15.362        .13115E-03   -1.5097    
  13  norm          25.585        21.498        .79196E-04   -1.4696    
  14  Prefactor     .10002E-03    177.52        .21340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .71090        .23109        .35457E-03   -1.0346    
  18  Prefactor     1.1209        .13534        .17205E-03   -.88802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88916e-10
Minuit parameter uncertainties:
  1  1.61011
  2  1.07631e-05
  3  5.25486
  4  26.6434
  5  5.90194
  6  4.18121e-07
  7  6.62142e-07
  8  0.00038077
  9  18.0692
  10  4.60067
  11  1.97392e-05
  12  15.3681
  13  21.5047
  14  0.00383806
  15  1.70713e-05
  16  1.48367e-06
  17  0.231405
  18  0.135382
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  4.161e+01  1.807e+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:  1.121e+00  1.354e-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:  7.109e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.01
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 9.80e-05 +/- 4.26e-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) = 6875.70617309
delta logL = 2.69683629292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6875.70050708
delta logL = 2.70250230734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.803       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4136       1.0000          .0000       5.0000    
     3 'Normalizat'    .64726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1353       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=   6875.701     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      273 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.804        15.774        .82102E-04    .43826E-03
   2  alpha         2.4136        .37483        .60422E-02    .83001E-04
   3  Normalizat    .64727        .22522        .36977E-03    .14752E-03
   4  Prefactor     1.1353        .13423        .17078E-03    .66768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.804
  alpha      = 2.41361
  Normalizat = 0.647268
  Prefactor  = 1.13533
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.701     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.804        14.776        .16420E-04   -1.4732    
   2  alpha         2.4136        .35109        .24169E-03   -.34562E-01
   3  Normalizat    .64727        .22498        .14791E-04   -1.0601    
   4  Prefactor     1.1353        .13419        .68313E-05   -.88345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74584e-10
Minuit parameter uncertainties:
  1  14.7783
  2  0.352261
  3  0.225299
  4  0.134227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328407': 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) = 6875.70050706
delta logL = 2.70250232367

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  2.380e+01  1.478e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.414e+00  3.523e-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.135e+00  1.342e-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:  6.473e-01  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.35
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.41 +/- 0.35
Photon Flux (Free Index): 1.27e-07 +/- 5.38e-08
Energy Flux (Free Index): 4.74e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/328407/cmap_HighResolution_512265601_512524801_4FGL_J1418.4-0233_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='4.74e-05', photon_flux_error='2.49e-08', dlogl='2.70e+00', energy_flux='9.80e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-09 08:48:21.686869', photon_index_error2='0.35', photon_index2='2.41', ts='12.01', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.71', time_epoch_completed='1631202501.69', return_code='0', job_id='328407', GAL2='1.14', EG2='0.65', return_code2='0', energy_flux_error='4.26e-05', photon_flux_error2='5.38e-08', ts2='17.35', photon_index='1.64' WHERE bin_id='1053' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:48:21 PDT 2021


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

Job <4FGL_J1418.4-0233_daily_bin1053> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 08:41:03 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:41:04 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:41:04 2021
Terminated at Thu Sep  9 08:48:22 2021
Results reported at Thu Sep  9 08:48:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1053 214.606 -2.5594 512265601 512524801 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 :                                   388.00 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             294.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   437 sec.
    Turnaround time :                            439 sec.

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

