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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1153
RA = 215.292, Dec = 38.9966
tmin = 538185601, tmax = 538444801
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='369569', job_status='RUN', time_executed='2021-09-09 10:56:27.994826', time_epoch_executed='1631210187.99' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369569/ft1_4FGL_J1421.1+3859_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369569/ft2_4FGL_J1421.1+3859_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369569/ft1_4FGL_J1421.1+3859_daily_bin1153.fits outfile=/scratch/kocevski/369569/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1153.fits ra=215.292 dec=38.9966 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.39
user 5.10
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369569/ft1_filtered_4FGL_J1421.1+3859_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/369569/ft2_4FGL_J1421.1+3859_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/369569/ltcube_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.fits outfile=/scratch/kocevski/369569/expmap_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.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/369569/ltcube_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.fits
.....................!
real 191.14
user 185.87
sys 4.85

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/369569/ft1_filtered_4FGL_J1421.1+3859_daily_bin1153.fits scfile=/scratch/kocevski/369569/ft2_4FGL_J1421.1+3859_daily_bin1153.fits outfile=/scratch/kocevski/369569/cmap_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369569/ft1_filtered_4FGL_J1421.1+3859_daily_bin1153.fits scfile=/scratch/kocevski/369569/ft2_4FGL_J1421.1+3859_daily_bin1153.fits outfile=/scratch/kocevski/369569/cmap_HighResolution_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14914E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    46.225       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.534       1.0000         .10000E-03   10000.    
    10 'norm      '    27.234       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15920E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12946E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3915       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3526       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .55543E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2147       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .65152       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1861       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=   1370.907     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4228 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.731        113.13       -.12522E-05   -.73376E-05
   2  Prefactor     .10000E-03    352.66        .26068E-05** at limit **
   3  norm          3.9255        3.3151       -.20197E-07   -.40744E-04
   4  Prefactor     .10000E-03    5.4938       -.48537E-07** at limit **
   5  norm          46.195        61.612        .19489E-05   -.32014E-04
   6  Prefactor     28.732        63.827       -.26781E-05   -.44163E-04
   7  Prefactor     .10000E-03    286.15       -.29760E-05** at limit **
   8  Prefactor     .10000E-03    21.553        .19558E-05** at limit **
   9  Prefactor     73.492        71.352        .12805E-05    .13396E-04
  10  norm          27.214        15.807       -.98033E-07   -.13850E-03
  11  Prefactor     .10000E-03    538.14        .30954E-05** at limit **
  12  Prefactor     .10013E-03    851.35       -.79694E-05** at limit **
  13  Prefactor     4.3900        11.396       -.98679E-06   -.94838E-04
  14  norm          .10000E-03    19.398        .17571E-06** at limit **
  15  Prefactor     7.2920        145.33        .90557E-06   -.22719E-05
  16  norm          .10000E-03    5.6560        .58224E-07** at limit **
  17  Prefactor     .10000E-03    49.073        .17596E-06** at limit **
  18  Prefactor     .10000E-03    17.536        .23207E-06** at limit **
  19  Prefactor     .10000E-03    492.31        .24499E-05** at limit **
  20  norm          .10365E-03    45.626        .36882E-05** at limit **
  21  Prefactor     .10000E-03    9.7871       -.20316E-07** at limit **
  22  Prefactor     .10000E-03    22.768       -.25807E-06** at limit **
  23  Prefactor     .10000E-03    18.061       -.45660E-07** at limit **
  24  Prefactor     1.2184        49.069       -.85045E-05   -.53201E-04
  25  norm          .10000E-03    1.6973       -.38420E-07** at limit **
  26  norm          .10001E-03    8.3789       -.24736E-06** at limit **
  27  Prefactor     .10000E-03    17.451       -.12024E-06** at limit **
  28  Prefactor     .10000E-03    60.315        .18205E-07** at limit **
  29  Prefactor     .10000E-03    23.804        .34201E-07** at limit **
  30  Normalizat    .65196        .37674       -.49660E-05   -.44255E-04
  31  Prefactor     1.1854        .39160        .34522E-05   -.10629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.731
  Prefactor  = 0.0001
  norm       = 3.9255
  Prefactor  = 0.0001
  norm       = 46.1954
  Prefactor  = 28.7316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.4921
  norm       = 27.2136
  Prefactor  = 0.0001
  Prefactor  = 0.000100132
  Prefactor  = 4.39
  norm       = 0.0001
  Prefactor  = 7.29203
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21839
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.651957
  Prefactor  = 1.18542
 **********
 **   18 **HESSE 
 **********

 FCN=   1370.907     FROM HESSE     STATUS=OK           618 CALLS     4846 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.731        113.67        .53724E-04   -1.4214    
   2  Prefactor     .10000E-03    352.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9255        3.3169        .59010E-04   -1.5312    
   4  Prefactor     .10000E-03    5.5126        .84748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          46.195        61.799        .58973E-04   -1.4348    
   6  Prefactor     28.732        64.047        .74587E-04   -1.4635    
   7  Prefactor     .10000E-03    285.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.716        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.492        71.276        .46820E-04   -1.3991    
  10  norm          27.214        15.823        .76767E-04   -1.4664    
  11  Prefactor     .10000E-03    542.30        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10013E-03    855.47        .76783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3900        11.471        .18330E-03   -1.5289    
  14  norm          .10000E-03    19.398        .15932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2920        145.08        .14792E-03   -1.5168    
  16  norm          .10000E-03    5.6585        .86007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.540        .15150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    495.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10365E-03    33.209        .60944E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7901        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.750        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.395        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2184        50.197        .40999E-03   -1.5487    
  25  norm          .10000E-03    1.7494        .94111E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    23.038        .20511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.770        .30054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    60.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.860        .17651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .65196        .43459        .26348E-03   -1.0582    
  31  Prefactor     1.1854        .45457        .23389E-03   -.86781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47378e-10
Minuit parameter uncertainties:
  1  114.118
  2  0.000448787
  3  3.31708
  4  4.84923e-06
  5  61.8847
  6  64.2006
  7  0.000277841
  8  0.000114928
  9  71.3585
  10  15.825
  11  0.000946973
  12  0.0215325
  13  11.4768
  14  1.37224e-06
  15  65.2332
  16  1.13041e-06
  17  2.0277e-05
  18  1.30317e-05
  19  0.000486137
  20  0.0220197
  21  6.21054e-07
  22  4.00001e-05
  23  1.57627e-06
  24  15.6544
  25  1.92766e-06
  26  0.000686212
  27  5.66253e-05
  28  3.63065e-06
  29  8.46291e-07
  30  0.436902
  31  0.456086
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.001e-04  2.153e-02  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:  1.185e+00  4.561e-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:  6.520e-01  4.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/369569/likelihoodResults_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.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): 102
logL (Free Index) = 1370.90680087
delta logL = -5.31029809281e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1370.90680087
delta logL = -5.30736997462e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6699       1.0000          .0000       10.000    
     3 'Normalizat'    .65195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1854       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=   1369.773     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      280 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57859        10.550        .44576E-02   -.37484E-03
   2  Index         5.4796        3.5748        .57167E-01   -.56225E-05
   3  Normalizat    .39867        .12338        .74422E-01    .26084E-04
   4  Prefactor     1.3770        .14424        .34985E-01    .38871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.57859
  Index      = 5.47956
  Normalizat = 0.398673
  Prefactor  = 1.37704
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.773     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      311 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57859        15.087        .19852E-04   -1.5556    
   2  Index         5.4796        4.1821        .24462E-02    .96059E-01
   3  Normalizat    .39867        .37538        .32948E-03   -1.1737    
   4  Prefactor     1.3770        .42651        .21854E-03   -.81044    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.34702e-11
Minuit parameter uncertainties:
  1  5.91028
  2  4.96606
  3  0.377786
  4  0.427602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369569': 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): 102
logL (Free Index) = 1369.77327515
delta logL = 1.13352040342

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  5.786e-01  5.910e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  5.480e+00  4.966e+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:  1.377e+00  4.276e-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:  3.987e-01  3.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 215.292 38.997
Photon Index (Free Index): 5.48 +/- 4.97
Photon Flux (Free Index): 2.59e-07 +/- 2.07e-07
Energy Flux (Free Index): 3.32e-05 +/- 3.14e-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/369569/cmap_HighResolution_538185601_538444801_4FGL_J1421.1+3859_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-02', comment='SUCCESS', energy_flux2='3.32e-05', dlogl='1.13e+00', photon_flux2='2.59e-07', job_status='DONE', time_completed='2021-09-09 11:04:20.556763', photon_index_error2='4.97', photon_index2='5.48', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='3.36e-07', energy_flux_error2='3.14e-05', EG='0.65', time_epoch_completed='1631210660.56', return_code='0', job_id='369569', GAL2='1.38', EG2='0.40', return_code2='102', photon_flux_error2='2.07e-07', ts2='2.67', photon_index='2.67' WHERE bin_id='1153' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:04:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 369569: <4FGL_J1421.1+3859_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1153> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 10:56:12 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:56:13 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:56:13 2021
Terminated at Thu Sep  9 11:04:21 2021
Results reported at Thu Sep  9 11:04:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1153 215.292 38.9966 538185601 538444801 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 :                                   467.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            489 sec.

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

