/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 104 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4-0233_daily_bin265
RA = 214.606, Dec = -2.5594
tmin = 308016001, tmax = 308275201
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='324826', job_status='RUN', time_executed='2021-09-09 08:32:21.762937', time_epoch_executed='1631201541.76' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324826/ft1_4FGL_J1418.4-0233_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324826/ft2_4FGL_J1418.4-0233_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324826/ft1_4FGL_J1418.4-0233_daily_bin265.fits outfile=/scratch/kocevski/324826/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin265.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=308016001.0 tmax=308275201.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.39
user 3.19
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324826/ft1_filtered_4FGL_J1418.4-0233_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/324826/ft2_4FGL_J1418.4-0233_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/324826/ltcube_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.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/324826/ft2_4FGL_J1418.4-0233_daily_bin265.fits
.....................!
real 11.61
user 11.27
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324826/ft1_filtered_4FGL_J1418.4-0233_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/324826/ft2_4FGL_J1418.4-0233_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/324826/ltcube_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.fits outfile=/scratch/kocevski/324826/expmap_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.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/324826/ltcube_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.fits
.....................!
real 189.94
user 185.40
sys 4.18

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/324826/ft1_filtered_4FGL_J1418.4-0233_daily_bin265.fits scfile=/scratch/kocevski/324826/ft2_4FGL_J1418.4-0233_daily_bin265.fits outfile=/scratch/kocevski/324826/cmap_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324826/ft1_filtered_4FGL_J1418.4-0233_daily_bin265.fits scfile=/scratch/kocevski/324826/ft2_4FGL_J1418.4-0233_daily_bin265.fits outfile=/scratch/kocevski/324826/cmap_HighResolution_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.524       1.0000         .10000E-03   10000.    
     2 'norm      '    15.975       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73382E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.284       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    34.922       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3719       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.087       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71891E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    32.804       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3223       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94563       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=   6872.160     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1736 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.523        4.9159       -.70953E-06    .14693E-03
   2  norm          15.973        28.840       -.29102E-05   -.29150E-05
   3  Prefactor     .10000E-03    5.4300       -.19040E-06** at limit **
   4  Prefactor     .10000E-03    52.407       -.39112E-05** at limit **
   5  norm          .10001E-03    4.5398       -.12125E-05** at limit **
   6  Prefactor     13.282        16.442       -.95761E-06    .98177E-05
   7  norm          4.7578        2.9682       -.78556E-07    .43145E-06
   8  Prefactor     .10000E-03    10.671        .66131E-06** at limit **
   9  norm          34.921        19.270       -.57332E-06    .43279E-05
  10  norm          7.3723        7.2465       -.52982E-06   -.39567E-04
  11  Prefactor     12.061        23.336       -.93030E-05   -.13261E-04
  12  Prefactor     .10000E-03    16.465        .96880E-07** at limit **
  13  norm          .10000E-03    8.9218        .85357E-07** at limit **
  14  Prefactor     .10000E-03    67.685        .11633E-04** at limit **
  15  Prefactor     .10002E-03    79.712        .73261E-05** at limit **
  16  norm          32.745        20.785       -.50460E-05   -.12378E-03
  17  Normalizat    1.3226        .23826        .21606E-05    .16427E-04
  18  Prefactor     .94554        .13076        .35724E-06    .16193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 32.5233
  norm       = 15.9725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 13.2817
  norm       = 4.75784
  Prefactor  = 0.0001
  norm       = 34.9207
  norm       = 7.37232
  Prefactor  = 12.0609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 32.7453
  Normalizat = 1.32261
  Prefactor  = 0.94554
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.160     FROM HESSE     STATUS=OK           244 CALLS     1980 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.523        4.9082        .68844E-04   -1.4567    
   2  norm          15.973        28.848        .10021E-03   -1.4908    
   3  Prefactor     .10000E-03    5.5160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    13.990        .34027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.282        16.491        .10990E-03   -1.4979    
   7  norm          4.7578        2.9649        .10785E-03   -1.5272    
   8  Prefactor     .10000E-03    10.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          34.921        19.280        .67813E-04   -1.4525    
  10  norm          7.3723        7.2451        .14772E-03   -1.5165    
  11  Prefactor     12.061        23.319        .11522E-03   -1.5013    
  12  Prefactor     .10000E-03    16.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.9259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    82.002        .20965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.745        20.906        .69962E-04   -1.4563    
  17  Normalizat    1.3226        .27930        .33058E-03   -.82894    
  18  Prefactor     .94554        .15365        .21639E-03   -.94567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04318e-09
Minuit parameter uncertainties:
  1  4.9083
  2  28.8729
  3  2.44678e-06
  4  2.84949e-05
  5  0.000776232
  6  16.4965
  7  2.96501
  8  2.63602e-06
  9  19.2839
  10  7.24599
  11  23.3367
  12  1.57592e-05
  13  2.24186e-05
  14  1.81598e-05
  15  0.0023609
  16  20.9111
  17  0.279622
  18  0.15372
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  3.492e+01  1.928e+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:  9.455e-01  1.537e-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.323e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 8.23e-05 +/- 4.54e-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) = 6871.5913091
delta logL = 0.568292471802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6871.57966194
delta logL = 0.57993963195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.875       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0468       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94703       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=   6871.580     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.901        300.90        .18639E-02   -.40470E-03
   2  alpha         2.0476        3.5216        .22534       -.59381E-04
   3  Normalizat    1.3038        .15209        .75115E-01   -.34566E-04
   4  Prefactor     .94689        .68032E-01    .45602E-01   -.62105E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 28.9005
  alpha      = 2.04757
  Normalizat = 1.30376
  Prefactor  = 0.946891
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.580     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.901        18.482        .74558E-04   -1.4632    
   2  alpha         2.0476        .39548        .88020E-02   -.18197    
   3  Normalizat    1.3038        .26858        .33242E-03   -.83454    
   4  Prefactor     .94689        .15248        .21608E-03   -.94521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12611e-10
Minuit parameter uncertainties:
  1  18.486
  2  0.397205
  3  0.268863
  4  0.152548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324826': 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) = 6871.57965392
delta logL = 0.579947654335

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  2.890e+01  1.849e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.048e+00  3.972e-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:  9.469e-01  1.525e-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.304e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.04
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.05 +/- 0.40
Photon Flux (Free Index): 7.53e-08 +/- 4.41e-08
Energy Flux (Free Index): 5.02e-05 +/- 3.38e-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/324826/cmap_HighResolution_308016001_308275201_4FGL_J1418.4-0233_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='5.02e-05', photon_flux_error='2.65e-08', dlogl='5.80e-01', energy_flux='8.23e-05', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-09 08:40:57.170950', photon_index_error2='0.40', photon_index2='2.05', ts='6.93', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.38e-05', EG='1.32', time_epoch_completed='1631202057.17', return_code='0', job_id='324826', GAL2='0.95', EG2='1.30', return_code2='0', energy_flux_error='4.54e-05', photon_flux_error2='4.41e-08', ts2='8.04', photon_index='1.64' WHERE bin_id='265' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:40:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 324826: <4FGL_J1418.4-0233_daily_bin265> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin265> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 08:30:27 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:30:28 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:30:28 2021
Terminated at Thu Sep  9 08:40:57 2021
Results reported at Thu Sep  9 08:40:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin265 214.606 -2.5594 308016001 308275201 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 :                                   501.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             340.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            630 sec.

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

