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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin238
RA = 214.606, Dec = -2.5594
tmin = 301017601, tmax = 301276801
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='324787', job_status='RUN', time_executed='2021-09-09 08:30:37.749024', time_epoch_executed='1631201437.75' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324787/ft1_4FGL_J1418.4-0233_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324787/ft1_4FGL_J1418.4-0233_daily_bin238.fits outfile=/scratch/kocevski/324787/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin238.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=301017601.0 tmax=301276801.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.52
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.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/324787/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin238.fits evtable="EVENTS" outfile="/scratch/kocevski/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.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/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/324787/ltcube_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.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/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits
.....................!
real 11.81
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/324787/ltcube_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.fits outfile=/scratch/kocevski/324787/expmap_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.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/324787/ltcube_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.fits
.....................!
real 190.17
user 185.41
sys 4.40

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/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.fits scfile=/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits outfile=/scratch/kocevski/324787/cmap_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.fits scfile=/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits outfile=/scratch/kocevski/324787/cmap_HighResolution_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.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.60
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/324787/ft2_4FGL_J1418.4-0233_daily_bin238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324787/Model_4FGL_J1418.4-0233_daily_bin238.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/324787/ft1_filtered_4FGL_J1418.4-0233_daily_bin238.fits.....................!
real 63.35
user 61.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4417       1.0000         .10000E-03   10000.    
     2 'norm      '    14.050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8061       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8036       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.6014       1.0000         .10000E-03   10000.    
    10 'norm      '    .95917       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.589       1.0000         .10000E-03   10000.    
    13 'norm      '    .12543E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60154E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.6063       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1417       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=   8609.265     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1719 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4420        2.2645        .46504E-07   -.25562E-04
   2  norm          14.076        23.882       -.44225E-06   -.14164E-03
   3  Prefactor     .10000E-03    1.7112        .37673E-07** at limit **
   4  Prefactor     7.8091        14.781        .31622E-06    .13221E-04
   5  norm          .10000E-03    1.4702        .20656E-07** at limit **
   6  Prefactor     .10000E-03    5.5051        .93465E-07** at limit **
   7  norm          4.8035        2.4305       -.10440E-06   -.30011E-03
   8  Prefactor     .10000E-03    6.3986        .45390E-07** at limit **
   9  norm          8.6009        8.2949       -.92354E-07   -.14507E-03
  10  norm          .96272        7.1099        .48562E-05   -.88435E-04
  11  Prefactor     .10000E-03    27.296        .20484E-06** at limit **
  12  Prefactor     11.584        15.268       -.48383E-06   -.74246E-04
  13  norm          .10000E-03    23.111        .12096E-06** at limit **
  14  Prefactor     .10000E-03    452.69       -.74820E-05** at limit **
  15  Prefactor     .10000E-03    52.712       -.71095E-06** at limit **
  16  norm          8.5914        16.751        .67506E-07    .83789E-06
  17  Normalizat    1.0621        .19768       -.94965E-06   -.72317E-04
  18  Prefactor     1.1417        .11609       -.16985E-06   -.16538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.44203
  norm       = 14.0762
  Prefactor  = 0.0001
  Prefactor  = 7.80912
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80349
  Prefactor  = 0.0001
  norm       = 8.60088
  norm       = 0.962717
  Prefactor  = 0.0001
  Prefactor  = 11.5837
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 8.59139
  Normalizat = 1.06211
  Prefactor  = 1.14169
 **********
 **   18 **HESSE 
 **********

 FCN=   8609.265     FROM HESSE     STATUS=OK           246 CALLS     1965 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4420        2.2681        .86825E-04   -1.5241    
   2  norm          14.076        23.933        .10686E-03   -1.4957    
   3  Prefactor     .10000E-03    1.7268        .11853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8091        14.786        .14352E-03   -1.5149    
   5  norm          .10000E-03    1.4732        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8035        2.4302        .98454E-04   -1.5270    
   8  Prefactor     .10000E-03    6.4052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.6009        8.2982        .13668E-03   -1.5121    
  10  norm          .96272        7.1638        .46656E-03   -1.5512    
  11  Prefactor     .10000E-03    27.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.584        15.276        .11768E-03   -1.5027    
  13  norm          .10000E-03    23.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    467.97        .37872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.5914        16.666        .13664E-03   -1.5122    
  17  Normalizat    1.0621        .22856        .33373E-03   -.90978    
  18  Prefactor     1.1417        .13468        .19104E-03   -.88145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4202e-10
Minuit parameter uncertainties:
  1  2.26814
  2  23.9495
  3  1.13015e-06
  4  14.7932
  5  5.82427e-07
  6  4.84854e-06
  7  2.43024
  8  3.83067e-06
  9  8.29928
  10  5.25293
  11  3.55876e-05
  12  15.2806
  13  2.1514e-05
  14  0.00208388
  15  4.54379e-05
  16  16.6747
  17  0.228773
  18  0.134722
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  8.601e+00  8.299e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.142e+00  1.347e-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.062e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.35
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.96e-05

TS (Fixed Index): 3.35
Ra Dec: 214.606 -2.559
Photon Flux Upper Limit: 4.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/324787/likelihoodResults_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.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) = 8608.73053124
delta logL = 0.534257669549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8608.7120234
delta logL = 0.552765515366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9934       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90700       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1473       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=   8608.712     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      208 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9901        5.7265        .37925E-02   -.83569E-04
   2  alpha         .90683        .44352        .46771       -.56908E-04
   3  Normalizat    1.0551        .19397        .75576E-01    .11696E-03
   4  Prefactor     1.1473        .11531        .36014E-01    .20409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99013
  alpha      = 0.906828
  Normalizat = 1.05507
  Prefactor  = 1.1473
 **********
 **   18 **HESSE 
 **********

 FCN=   8608.712     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9901        8.0502        .15170E-03   -1.5179    
   2  alpha         .90683        .60765        .21028E-02   -.69095    
   3  Normalizat    1.0551        .22411        .33448E-03   -.91208    
   4  Prefactor     1.1473        .13351        .19064E-03   -.87969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50878e-11
Minuit parameter uncertainties:
  1  8.05148
  2  0.618208
  3  0.224311
  4  0.133546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324787': 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) = 8608.71202328
delta logL = 0.552765628414

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  6.990e+00  8.051e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  9.068e-01  6.182e-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.147e+00  1.335e-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.055e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 0.91 +/- 0.62
Photon Flux (Free Index): 6.91e-09 +/- 6.50e-09
Energy Flux (Free Index): 7.98e-05 +/- 9.64e-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/324787/cmap_HighResolution_301017601_301276801_4FGL_J1418.4-0233_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-05', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='7.98e-05', photon_flux_error='1.14e-08', dlogl='5.53e-01', energy_flux='2.03e-05', photon_flux2='6.91e-09', job_status='DONE', time_completed='2021-09-09 08:40:34.501461', photon_index_error2='0.62', photon_index2='0.91', ts='3.35', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='4.59e-08', energy_flux_error2='9.64e-05', EG='1.06', time_epoch_completed='1631202034.5', return_code='0', job_id='324787', GAL2='1.15', EG2='1.06', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.50e-09', ts2='4.45', photon_index='1.64' WHERE bin_id='238' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:40:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 324787: <4FGL_J1418.4-0233_daily_bin238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin238 214.606 -2.5594 301017601 301276801 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 :                                   593.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

