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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1049
RA = 215.292, Dec = 38.9966
tmin = 511228801, tmax = 511488001
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='368262', job_status='RUN', time_executed='2021-09-09 10:54:23.075397', time_epoch_executed='1631210063.08' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368262/ft1_4FGL_J1421.1+3859_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368262/ft2_4FGL_J1421.1+3859_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368262/ft1_4FGL_J1421.1+3859_daily_bin1049.fits outfile=/scratch/kocevski/368262/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1049.fits ra=215.292 dec=38.9966 rad=12.0 tmin=511228801.0 tmax=511488001.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.51
user 3.32
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368262/ft1_filtered_4FGL_J1421.1+3859_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/368262/ft2_4FGL_J1421.1+3859_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/368262/ltcube_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.fits outfile=/scratch/kocevski/368262/expmap_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.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/368262/ltcube_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.fits
.....................!
real 191.82
user 186.13
sys 5.14

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/368262/ft1_filtered_4FGL_J1421.1+3859_daily_bin1049.fits scfile=/scratch/kocevski/368262/ft2_4FGL_J1421.1+3859_daily_bin1049.fits outfile=/scratch/kocevski/368262/cmap_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368262/ft1_filtered_4FGL_J1421.1+3859_daily_bin1049.fits scfile=/scratch/kocevski/368262/ft2_4FGL_J1421.1+3859_daily_bin1049.fits outfile=/scratch/kocevski/368262/cmap_HighResolution_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368262/ft1_filtered_4FGL_J1421.1+3859_daily_bin1049.fits', '/scratch/kocevski/368262/ft2_4FGL_J1421.1+3859_daily_bin1049.fits', expMap='/scratch/kocevski/368262/expmap_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.fits', expCube='/scratch/kocevski/368262/ltcube_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368262/Model_4FGL_J1421.1+3859_daily_bin1049.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/368262/ft1_filtered_4FGL_J1421.1+3859_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/368262/ft2_4FGL_J1421.1+3859_daily_bin1049.fits
Exposure map: /scratch/kocevski/368262/expmap_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.fits
Exposure cube: /scratch/kocevski/368262/ltcube_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368262/Model_4FGL_J1421.1+3859_daily_bin1049.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) = 6042.516601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.156       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4760       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8819       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0305       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7417       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.880       1.0000         .10000E-03   10000.    
    16 'norm      '    32.241       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.961       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8818       1.0000         .10000E-03   10000.    
    25 'norm      '    3.5134       1.0000         .10000E-03   10000.    
    26 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .55339E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.267       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93824       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92980       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=   6042.514     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4103 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.978        .14442E-05** at limit **
   2  Prefactor     22.104        64.269        .59294E-04   -.13437E-04
   3  norm          4.9729        1.7740       -.14032E-07   -.54645E-03
   4  Prefactor     1.4756        3.4515        .27922E-07   -.80618E-03
   5  norm          .10000E-03    7.4443       -.53826E-05** at limit **
   6  Prefactor     .10000E-03    7.5180        .62243E-05** at limit **
   7  Prefactor     .10000E-03    31.593       -.15209E-05** at limit **
   8  Prefactor     .10000E-03    1.6048       -.37136E-07** at limit **
   9  Prefactor     1.8773        41.508        .19009E-04   -.11106E-03
  10  norm          2.0305        2.0972        .21930E-06    .82336E-04
  11  Prefactor     .10000E-03    5.8887        .65295E-06** at limit **
  12  Prefactor     27.834        16.925       -.97979E-05   -.18488E-03
  13  Prefactor     .10000E-03    1.9603        .16539E-06** at limit **
  14  norm          5.7427        9.2435        .22463E-05   -.42047E-04
  15  Prefactor     18.876        20.986        .17914E-04   -.60809E-04
  16  norm          32.239        8.8739        .52196E-06   -.12794E-03
  17  Prefactor     .10000E-03    8.7671       -.14178E-05** at limit **
  18  Prefactor     22.475        19.898       -.17450E-05   -.69165E-04
  19  Prefactor     31.954        33.213        .10063E-04   -.29824E-04
  20  norm          .10000E-03    2.4646       -.11148E-07** at limit **
  21  Prefactor     .10000E-03    13.019        .77140E-07** at limit **
  22  Prefactor     .10000E-03    15.889       -.44810E-06** at limit **
  23  Prefactor     .10000E-03    3.2736       -.96025E-07** at limit **
  24  Prefactor     1.8807        5.6131       -.67970E-06   -.76911E-03
  25  norm          3.5151        2.0191        .14145E-05   -.51170E-03
  26  norm          .10000E-03    2.2336        .59282E-07** at limit **
  27  Prefactor     .10000E-03    5.5459        .65233E-06** at limit **
  28  Prefactor     30.944        90.168       -.41941E-04   -.40257E-05
  29  Prefactor     .10000E-03    9.6818        .10136E-05** at limit **
  30  Normalizat    .93855        .17422       -.73783E-05    .12010E-03
  31  Prefactor     .92945        .18605        .26535E-05   -.44502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.1037
  norm       = 4.97294
  Prefactor  = 1.47563
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87727
  norm       = 2.03054
  Prefactor  = 0.000100001
  Prefactor  = 27.8339
  Prefactor  = 0.0001
  norm       = 5.74275
  Prefactor  = 18.8756
  norm       = 32.2388
  Prefactor  = 0.0001
  Prefactor  = 22.4751
  Prefactor  = 31.9543
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8807
  norm       = 3.51508
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 30.9443
  Prefactor  = 0.0001
  Normalizat = 0.938551
  Prefactor  = 0.929446
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.514     FROM HESSE     STATUS=OK           622 CALLS     4725 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.104        64.369        .85095E-04   -1.4767    
   3  norm          4.9729        1.7770        .59003E-04   -1.5262    
   4  Prefactor     1.4756        3.4226        .21029E-03   -1.5465    
   5  norm          .10000E-03    7.4906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6103        .96130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8773        41.217        .30345E-03   -1.5434    
  10  norm          2.0305        2.0989        .11127E-03   -1.5423    
  11  Prefactor     .10000E-03    5.9013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.834        17.058        .75937E-04   -1.4652    
  13  Prefactor     .10000E-03    2.0038        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7427        9.2311        .16762E-03   -1.5229    
  15  Prefactor     18.876        20.948        .92177E-04   -1.4839    
  16  norm          32.239        8.8767        .70569E-04   -1.4572    
  17  Prefactor     .10000E-03    8.7677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.475        19.893        .84486E-04   -1.4759    
  19  Prefactor     31.954        33.174        .70876E-04   -1.4577    
  20  norm          .10000E-03    2.4656        .11918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2869        .13718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.8807        5.5961        .30346E-03   -1.5434    
  25  norm          3.5151        2.0120        .72220E-04   -1.5333    
  26  norm          .10000E-03    2.2643        .11320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.844        .35318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.944        90.174        .71656E-04   -1.4595    
  29  Prefactor     .10000E-03    9.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93855        .20253        .22974E-03   -.95118    
  31  Prefactor     .92945        .21669        .27015E-03   -.95120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35535e-09
Minuit parameter uncertainties:
  1  2.77877e-05
  2  64.5727
  3  1.77702
  4  3.42305
  5  2.64093e-06
  6  7.56475e-05
  7  2.04969e-06
  8  7.74353e-06
  9  17.6059
  10  2.09899
  11  0.000162098
  12  17.0607
  13  2.10491e-05
  14  9.23338
  15  20.9561
  16  8.87706
  17  6.34114e-06
  18  19.8985
  19  33.1932
  20  4.05149e-07
  21  9.48145e-06
  22  8.08767e-05
  23  1.32936e-05
  24  5.59768
  25  2.01202
  26  8.47507e-06
  27  0.000421109
  28  90.5752
  29  2.09575e-05
  30  0.202693
  31  0.216891
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  2.783e+01  1.706e+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.294e-01  2.169e-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:  9.386e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 215.292 38.997
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 9.62e-06

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) = 6042.50666307
delta logL = 0.00710191607959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6042.49061324
delta logL = 0.0231517546345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.948       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8387       1.0000          .0000       10.000    
     3 'Normalizat'    .92936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93754       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.

 FCN=   6042.491     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.915        241.06        .20904E-02    .20764E-04
   2  Index         2.8396        3.1806        .14770        .11391E-03
   3  Normalizat    .92934        .67608E-01    .45276E-01    .11254E-04
   4  Prefactor     .93757        .66064E-01    .45482E-01    .11761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.915
  Index      = 2.83963
  Normalizat = 0.929335
  Prefactor  = 0.937568
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.491     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.915        33.153        .83617E-04   -1.4750    
   2  Index         2.8396        1.0031        .51792E-02   -.44679    
   3  Normalizat    .92934        .19038        .23072E-03   -.95437    
   4  Prefactor     .93757        .21821        .26915E-03   -.94840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68621e-11
Minuit parameter uncertainties:
  1  33.1799
  2  1.01161
  3  0.190519
  4  0.218414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368262': 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) = 6042.4906125
delta logL = 0.0231524907686

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  2.292e+01  3.318e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.840e+00  1.012e+00  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:  9.376e-01  2.184e-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:  9.293e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 215.292 38.997
Photon Index (Free Index): 2.84 +/- 1.01
Photon Flux (Free Index): 6.94e-08 +/- 4.86e-08
Energy Flux (Free Index): 1.51e-05 +/- 9.72e-06

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/368262/cmap_HighResolution_511228801_511488001_4FGL_J1421.1+3859_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='1.51e-05', photon_flux_error='3.90e-08', dlogl='2.32e-02', energy_flux='1.57e-05', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-09-09 11:07:14.831951', photon_index_error2='1.01', photon_index2='2.84', ts='4.28', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='9.72e-06', EG='0.94', time_epoch_completed='1631210834.83', return_code='0', job_id='368262', GAL2='0.94', EG2='0.93', return_code2='0', energy_flux_error='9.62e-06', photon_flux_error2='4.86e-08', ts2='4.35', photon_index='2.67' WHERE bin_id='1049' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:07:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 368262: <4FGL_J1421.1+3859_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1049> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 10:51:05 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:51:06 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:51:06 2021
Terminated at Thu Sep  9 11:07:15 2021
Results reported at Thu Sep  9 11:07:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1049 215.292 38.9966 511228801 511488001 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

