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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin223
RA = 215.292, Dec = 38.9966
tmin = 297129601, tmax = 297388801
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='363905', job_status='RUN', time_executed='2021-09-09 10:36:58.055723', time_epoch_executed='1631209018.06' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363905

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363905/ft1_4FGL_J1421.1+3859_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363905/ft1_4FGL_J1421.1+3859_daily_bin223.fits outfile=/scratch/kocevski/363905/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin223.fits ra=215.292 dec=38.9966 rad=12.0 tmin=297129601.0 tmax=297388801.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.70
user 3.38
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.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/363905/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin223.fits evtable="EVENTS" outfile="/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/363905/ltcube_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.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/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits
.....................!
real 11.80
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/363905/ltcube_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.fits outfile=/scratch/kocevski/363905/expmap_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.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/363905/ltcube_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.fits
.....................!
real 193.13
user 185.57
sys 4.41

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J1421.1+3859 @ 215.292 38.9966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits scfile=/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits outfile=/scratch/kocevski/363905/cmap_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.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=215.292 yref=38.9966 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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits scfile=/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits outfile=/scratch/kocevski/363905/cmap_HighResolution_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.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=215.292 yref=38.9966 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363905/Model_4FGL_J1421.1+3859_daily_bin223.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/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits.....................!
real 49.24
user 47.89
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits', '/scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits', expMap='/scratch/kocevski/363905/expmap_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.fits', expCube='/scratch/kocevski/363905/ltcube_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363905/Model_4FGL_J1421.1+3859_daily_bin223.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1+3859'

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.965e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363905/ft1_filtered_4FGL_J1421.1+3859_daily_bin223.fits
Spacecraft file(s): /scratch/kocevski/363905/ft2_4FGL_J1421.1+3859_daily_bin223.fits
Exposure map: /scratch/kocevski/363905/expmap_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.fits
Exposure cube: /scratch/kocevski/363905/ltcube_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363905/Model_4FGL_J1421.1+3859_daily_bin223.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) = 6023.51877538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.059       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1901       1.0000         .10000E-03   10000.    
     5 'norm      '    16.758       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    91.834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14272E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.592       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2177       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.681       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.800       1.0000         .10000E-03   10000.    
    20 'norm      '    6.7953       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8079       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .92017       1.0000         .10000E-03   10000.    
    26 'norm      '    8.1451       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.178       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.242       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81410       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6023.402     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     4142 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.846       -.15664E-06** at limit **
   2  Prefactor     59.047        88.137        .19224E-05   -.18159E-04
   3  norm          1.9716        1.6326        .27914E-06    .51283E-05
   4  Prefactor     6.1902        4.3405        .19920E-06   -.75519E-05
   5  norm          16.757        18.174        .35035E-06   -.12224E-04
   6  Prefactor     .10000E-03    7.9577        .33812E-08** at limit **
   7  Prefactor     91.942        64.802       -.92167E-06   -.52306E-04
   8  Prefactor     .10000E-03    9.1002        .68878E-05** at limit **
   9  Prefactor     17.619        22.330        .21731E-06   -.11247E-03
  10  norm          3.9965        3.9493        .19343E-06    .33344E-04
  11  Prefactor     .10000E-03    11.075        .80886E-07** at limit **
  12  Prefactor     29.060        22.528        .87739E-06   -.38605E-05
  13  Prefactor     8.2178        4.2060        .14245E-06   -.43078E-04
  14  norm          .10000E-03    7.8821        .44615E-07** at limit **
  15  Prefactor     .10000E-03    8.0294       -.20922E-08** at limit **
  16  norm          16.680        8.3764        .16583E-06   -.75585E-05
  17  Prefactor     .10000E-03    16.310       -.77472E-07** at limit **
  18  Prefactor     22.352        27.925       -.75360E-07   -.53201E-04
  19  Prefactor     42.787        36.986        .56863E-06   -.32249E-04
  20  norm          6.7947        6.4357       -.32151E-07    .31620E-05
  21  Prefactor     .10000E-03    5.1101       -.18530E-06** at limit **
  22  Prefactor     7.8057        28.531        .17726E-05   -.10365E-04
  23  Prefactor     .10000E-03    2.6075       -.80323E-07** at limit **
  24  Prefactor     .10000E-03    10.610       -.64326E-10** at limit **
  25  norm          .92009        1.4270        .14837E-06    .16725E-03
  26  norm          8.1434        6.1820        .71167E-07    .25603E-04
  27  Prefactor     11.180        11.699        .11090E-06    .29123E-05
  28  Prefactor     .10000E-03    24.739       -.98210E-07** at limit **
  29  Prefactor     23.240        22.138        .12444E-06   -.43080E-05
  30  Normalizat    .81385        .21690       -.45077E-05   -.62759E-04
  31  Prefactor     .99400        .21001        .30953E-05   -.27222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 59.0469
  norm       = 1.97162
  Prefactor  = 6.19024
  norm       = 16.7565
  Prefactor  = 0.0001
  Prefactor  = 91.9424
  Prefactor  = 0.0001
  Prefactor  = 17.6185
  norm       = 3.99654
  Prefactor  = 0.0001
  Prefactor  = 29.0598
  Prefactor  = 8.21782
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.68
  Prefactor  = 0.0001
  Prefactor  = 22.3522
  Prefactor  = 42.7869
  norm       = 6.79471
  Prefactor  = 0.0001
  Prefactor  = 7.80574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.920094
  norm       = 8.14338
  Prefactor  = 11.1801
  Prefactor  = 0.0001
  Prefactor  = 23.24
  Normalizat = 0.813853
  Prefactor  = 0.994001
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.402     FROM HESSE     STATUS=OK           630 CALLS     4772 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.047        88.783        .52206E-04   -1.4170    
   3  norm          1.9716        1.6250        .84094E-04   -1.5427    
   4  Prefactor     6.1902        4.3440        .12923E-03   -1.5210    
   5  norm          16.757        18.179        .97838E-04   -1.4889    
   6  Prefactor     .10000E-03    7.9629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.942        64.883        .20967E-03   -1.3787    
   8  Prefactor     .10000E-03    9.4762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.619        22.485        .95491E-04   -1.4868    
  10  norm          3.9965        3.9405        .14646E-03   -1.5308    
  11  Prefactor     .10000E-03    11.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.060        22.562        .74322E-04   -1.4629    
  13  Prefactor     8.2178        4.2105        .10808E-03   -1.5135    
  14  norm          .10000E-03    7.8918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.680        8.3767        .98063E-04   -1.4891    
  17  Prefactor     .10000E-03    16.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.352        27.782        .84746E-04   -1.4762    
  19  Prefactor     42.787        37.090        .61277E-04   -1.4399    
  20  norm          6.7947        6.4371        .15392E-03   -1.5187    
  21  Prefactor     .10000E-03    5.1159        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.8057        28.369        .14350E-03   -1.5149    
  23  Prefactor     .10000E-03    2.6126        .12230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.043        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .92009        1.3116        .10902E-02   -1.5516    
  26  norm          8.1434        6.2110        .14048E-03   -1.5137    
  27  Prefactor     11.180        11.748        .11983E-03   -1.5039    
  28  Prefactor     .10000E-03    24.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     23.240        22.131        .83087E-04   -1.4743    
  30  Normalizat    .81385        .24291        .26059E-03   -.99557    
  31  Prefactor     .99400        .23486        .26872E-03   -.92930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29151e-10
Minuit parameter uncertainties:
  1  6.75676e-05
  2  88.983
  3  1.62506
  4  4.34418
  5  18.1845
  6  1.83969e-06
  7  64.9335
  8  9.96534e-05
  9  22.4953
  10  3.94073
  11  2.37422e-06
  12  22.5687
  13  4.21063
  14  7.24047e-07
  15  1.49395e-07
  16  8.37724
  17  1.7575e-05
  18  27.7981
  19  37.1104
  20  6.43777
  21  5.32668e-07
  22  28.4178
  23  5.29685e-07
  24  2.46476e-06
  25  1.3116
  26  6.21147
  27  11.7507
  28  1.90349e-05
  29  22.1384
  30  0.243234
  31  0.235106
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  2.906e+01  2.257e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.940e-01  2.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.139e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 215.292 38.997
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.27e-05

TS (Fixed Index): 2.38
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363905/likelihoodResults_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.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) = 6023.25783615
delta logL = 0.143723591327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6023.24237725
delta logL = 0.159182493245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.770       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1190       1.0000          .0000       10.000    
     3 'Normalizat'    .79053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+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=   6023.242     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      273 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.764        33.775        .97803E-04   -.46578E-03
   2  Index         3.1192        1.1795        .50516E-02   -.15800E-03
   3  Normalizat    .79054        .21051        .26404E-03    .29765E-03
   4  Prefactor     1.0151        .23293        .26628E-03    .26075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7637
  Index      = 3.11916
  Normalizat = 0.790537
  Prefactor  = 1.01505
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.764        25.384        .39121E-05   -1.4889    
   2  Index         3.1192        .88876        .20206E-03   -.38566    
   3  Normalizat    .79054        .20976        .10562E-04   -1.0042    
   4  Prefactor     1.0151        .23163        .53255E-04   -.92230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81901e-10
Minuit parameter uncertainties:
  1  25.4008
  2  0.894307
  3  0.209977
  4  0.231855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363905': 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) = 6023.24237721
delta logL = 0.159182533636

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.676e+01  2.540e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  3.119e+00  8.943e-01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.015e+00  2.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  7.905e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 215.292 38.997
Photon Index (Free Index): 3.12 +/- 0.89
Photon Flux (Free Index): 8.22e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/363905/cmap_HighResolution_297129601_297388801_4FGL_J1421.1+3859_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='1.55e-05', photon_flux_error='5.16e-08', dlogl='1.59e-01', energy_flux='1.64e-05', photon_flux2='8.22e-08', job_status='DONE', time_completed='2021-09-09 10:50:56.726881', photon_index_error2='0.89', photon_index2='3.12', ts='2.38', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.12e-05', EG='0.81', time_epoch_completed='1631209856.73', return_code='0', job_id='363905', GAL2='1.02', EG2='0.79', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.10e-08', ts2='2.76', photon_index='2.67' WHERE bin_id='223' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 363905: <4FGL_J1421.1+3859_daily_bin223> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin223> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:40 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:36:41 2021
Terminated at Thu Sep  9 10:50:57 2021
Results reported at Thu Sep  9 10:50:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin223 215.292 38.9966 297129601 297388801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

