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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin400
RA = 214.606, Dec = -2.5594
tmin = 343008001, tmax = 343267201
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='325020', job_status='RUN', time_executed='2021-09-09 08:34:47.641724', time_epoch_executed='1631201687.64' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325020/ft1_4FGL_J1418.4-0233_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325020/ft1_4FGL_J1418.4-0233_daily_bin400.fits outfile=/scratch/kocevski/325020/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin400.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=343008001.0 tmax=343267201.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.84
user 3.61
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.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/325020/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.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.72
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/325020/ltcube_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.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/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits
.....................!
real 11.62
user 11.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/325020/ltcube_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.fits outfile=/scratch/kocevski/325020/expmap_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.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/325020/ltcube_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.fits
.....................!
real 190.55
user 185.52
sys 4.65

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/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.fits scfile=/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits outfile=/scratch/kocevski/325020/cmap_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.fits scfile=/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits outfile=/scratch/kocevski/325020/cmap_HighResolution_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.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/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/325020/ft2_4FGL_J1418.4-0233_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325020/Model_4FGL_J1418.4-0233_daily_bin400.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/325020/ft1_filtered_4FGL_J1418.4-0233_daily_bin400.fits.....................!
real 68.00
user 66.68
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7019       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2508       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.556       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.927       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4884       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85091       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=   9028.427     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1691 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7020        2.1168       -.30605E-06   -.71363E-03
   2  norm          .10000E-03    10.020       -.31188E-05** at limit **
   3  Prefactor     36.699        8.5524       -.11141E-06    .28902E-04
   4  Prefactor     .10000E-03    11.365        .17138E-05** at limit **
   5  norm          21.936        9.0019       -.16131E-06    .50304E-05
   6  Prefactor     .10000E-03    3.1646        .14361E-07** at limit **
   7  norm          2.2508        2.1845       -.32982E-06   -.62206E-03
   8  Prefactor     .10000E-03    3.7656        .82619E-07** at limit **
   9  norm          12.556        10.916       -.22328E-06   -.52026E-05
  10  norm          .10000E-03    3.3417       -.13437E-06** at limit **
  11  Prefactor     38.148        27.202       -.19897E-05    .10417E-04
  12  Prefactor     .10000E-03    5.4139       -.22438E-06** at limit **
  13  norm          .10000E-03    8.4015        .15281E-05** at limit **
  14  Prefactor     16.868        44.869       -.51005E-04    .26929E-05
  15  Prefactor     .10000E-03    21.655        .41176E-06** at limit **
  16  norm          13.925        15.531       -.30582E-06    .14668E-05
  17  Normalizat    1.4883        .19919        .20830E-05   -.46558E-04
  18  Prefactor     .85096        .11002        .69750E-06    .77082E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70202
  norm       = 0.0001
  Prefactor  = 36.699
  Prefactor  = 0.0001
  norm       = 21.9357
  Prefactor  = 0.0001
  norm       = 2.25077
  Prefactor  = 0.0001
  norm       = 12.5558
  norm       = 0.0001
  Prefactor  = 38.1482
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8684
  Prefactor  = 0.0001
  norm       = 13.9246
  Normalizat = 1.48833
  Prefactor  = 0.850958
 **********
 **   18 **HESSE 
 **********

 FCN=   9028.427     FROM HESSE     STATUS=OK           246 CALLS     1937 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7020        2.1195        .11722E-03   -1.5379    
   2  norm          .10000E-03    10.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.699        8.5586        .66157E-04   -1.4496    
   4  Prefactor     .10000E-03    11.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.936        8.9993        .85522E-04   -1.4771    
   6  Prefactor     .10000E-03    3.1700        .16507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2508        2.1755        .13218E-03   -1.5408    
   8  Prefactor     .10000E-03    3.7668        .18008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.556        10.916        .11305E-03   -1.4999    
  10  norm          .10000E-03    3.4051        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.148        27.341        .64890E-04   -1.4472    
  12  Prefactor     .10000E-03    5.4218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.4098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.868        44.882        .97447E-04   -1.4886    
  15  Prefactor     .10000E-03    21.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.925        15.519        .10733E-03   -1.4961    
  17  Normalizat    1.4883        .23552        .29810E-03   -.78107    
  18  Prefactor     .85096        .12981        .21663E-03   -.97876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98924e-10
Minuit parameter uncertainties:
  1  2.11957
  2  4.15623e-06
  3  8.55887
  4  2.77521e-05
  5  8.99982
  6  4.12622e-06
  7  2.17561
  8  3.60148e-07
  9  10.9177
  10  9.27614e-06
  11  27.3499
  12  8.168e-06
  13  1.80335e-05
  14  44.9718
  15  7.48738e-05
  16  15.5234
  17  0.235688
  18  0.129853
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.256e+01  1.092e+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.510e-01  1.299e-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.488e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 2.57e-05

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

Saving results to:
/scratch/kocevski/325020/likelihoodResults_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.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) = 9026.9354215
delta logL = 1.49165839134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9026.92904164
delta logL = 1.49803826008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5235       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85957       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=   9026.929     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      273 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5258        9.3222        .13731E-03    .65046E-03
   2  alpha         2.6308        .59429        .88558E-02    .13304E-03
   3  Normalizat    1.4364        .22938        .30238E-03    .81600E-03
   4  Prefactor     .85953        .12923        .21545E-03    .14457E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.52581
  alpha      = 2.63082
  Normalizat = 1.43635
  Prefactor  = 0.859526
 **********
 **   18 **HESSE 
 **********

 FCN=   9026.929     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5258        8.1959        .54922E-05   -1.5124    
   2  alpha         2.6308        .52314        .35423E-03    .52353E-01
   3  Normalizat    1.4364        .22892        .60477E-04   -.79583    
   4  Prefactor     .85953        .12914        .43089E-04   -.97570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2394e-09
Minuit parameter uncertainties:
  1  8.19698
  2  0.527044
  3  0.22908
  4  0.129185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325020': 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) = 9026.92904126
delta logL = 1.49803863615

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  8.526e+00  8.197e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.631e+00  5.270e-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.595e-01  1.292e-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.436e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.63
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.63 +/- 0.53
Photon Flux (Free Index): 7.22e-08 +/- 4.86e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.22e-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/325020/cmap_HighResolution_343008001_343267201_4FGL_J1418.4-0233_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-05', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='2.14e-05', photon_flux_error='1.50e-08', dlogl='1.50e+00', energy_flux='2.96e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-09 08:45:10.614142', photon_index_error2='0.53', photon_index2='2.63', ts='2.64', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.60e-08', energy_flux_error2='1.22e-05', EG='1.49', time_epoch_completed='1631202310.61', return_code='0', job_id='325020', GAL2='0.86', EG2='1.44', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='4.86e-08', ts2='5.63', photon_index='1.64' WHERE bin_id='400' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:45:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 325020: <4FGL_J1418.4-0233_daily_bin400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin400 214.606 -2.5594 343008001 343267201 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 :                                   621.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

