/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 83 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 = 7379
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin87
RA = 215.292, Dec = 38.9966
tmin = 261878401, tmax = 262137601
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='363712', job_status='RUN', time_executed='2021-09-09 10:38:11.977270', time_epoch_executed='1631209091.98' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363712/ft1_4FGL_J1421.1+3859_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363712/ft2_4FGL_J1421.1+3859_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363712/ft1_4FGL_J1421.1+3859_daily_bin87.fits outfile=/scratch/kocevski/363712/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin87.fits ra=215.292 dec=38.9966 rad=12.0 tmin=261878401.0 tmax=262137601.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 1.40
user 1.24
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363712/ft2_4FGL_J1421.1+3859_daily_bin87.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/363712/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/363712/ft1_filtered_4FGL_J1421.1+3859_daily_bin87.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363712/ft1_filtered_4FGL_J1421.1+3859_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/363712/ft2_4FGL_J1421.1+3859_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/363712/ltcube_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.fits outfile=/scratch/kocevski/363712/expmap_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.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/363712/ltcube_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.fits
.....................!
real 190.90
user 185.88
sys 4.45

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/363712/ft1_filtered_4FGL_J1421.1+3859_daily_bin87.fits scfile=/scratch/kocevski/363712/ft2_4FGL_J1421.1+3859_daily_bin87.fits outfile=/scratch/kocevski/363712/cmap_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363712/ft1_filtered_4FGL_J1421.1+3859_daily_bin87.fits scfile=/scratch/kocevski/363712/ft2_4FGL_J1421.1+3859_daily_bin87.fits outfile=/scratch/kocevski/363712/cmap_HighResolution_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7016       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12449E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4773       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1616       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9360       1.0000         .10000E-03   10000.    
    14 'norm      '    .13374E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.445       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4502       1.0000         .10000E-03   10000.    
    25 'norm      '    .10617E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .34590E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    41.695       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99967       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92534       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=   5465.328     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     3631 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0204        322.36       -.12519E-05    .65272E-06
   2  Prefactor     3.7134        138.96       -.33536E-05   -.98551E-06
   3  norm          1.1889        1.3105        .11346E-06    .42767E-04
   4  Prefactor     .10000E-03    2.9256        .16405E-06** at limit **
   5  norm          .10000E-03    15.415        .74723E-06** at limit **
   6  Prefactor     .10000E-03    5.8830        .59402E-07** at limit **
   7  Prefactor     51.492        39.820       -.46433E-05    .83346E-06
   8  Prefactor     8.4771        5.3619        .45342E-06   -.49635E-05
   9  Prefactor     .10000E-03    10.111        .19110E-05** at limit **
  10  norm          .10000E-03    1.8711        .21002E-08** at limit **
  11  Prefactor     1.1681        6.0201       -.25203E-06   -.39126E-03
  12  Prefactor     .10000E-03    11.476        .41206E-05** at limit **
  13  Prefactor     1.9362        2.4888        .77078E-07   -.25166E-04
  14  norm          .10001E-03    7.6575        .52653E-06** at limit **
  15  Prefactor     .10000E-03    47.702       -.16945E-06** at limit **
  16  norm          2.6041        5.4356        .38473E-06   -.26974E-03
  17  Prefactor     .10000E-03    21.567       -.10311E-05** at limit **
  18  Prefactor     .10000E-03    12.172       -.47812E-05** at limit **
  19  Prefactor     .10000E-03    11.349        .39963E-05** at limit **
  20  norm          .10000E-03    2.6870       -.13423E-06** at limit **
  21  Prefactor     28.443        16.005       -.40892E-06   -.19419E-04
  22  Prefactor     .10000E-03    10.649       -.53780E-05** at limit **
  23  Prefactor     .10000E-03    2.1620        .85528E-08** at limit **
  24  Prefactor     1.4561        8.8018       -.74770E-07   -.15136E-03
  25  norm          .10000E-03    .65940        .42329E-07** at limit **
  26  norm          .10000E-03    3.1551       -.24068E-06** at limit **
  27  Prefactor     .10190E-03    5.7983       -.75252E-06** at limit **
  28  Prefactor     .10055E-03    42.724       -.15828E-05** at limit **
  29  Prefactor     41.722        25.365        .53969E-05    .11883E-03
  30  Normalizat    .99972        .16679       -.13976E-05    .37231E-04
  31  Prefactor     .92522        .19297        .59263E-06   -.43974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02039
  Prefactor  = 3.71339
  norm       = 1.18886
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.4922
  Prefactor  = 8.47705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16809
  Prefactor  = 0.0001
  Prefactor  = 1.93622
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.60407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.4426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45607
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101896
  Prefactor  = 0.000100548
  Prefactor  = 41.7219
  Normalizat = 0.999717
  Prefactor  = 0.92522
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.328     FROM HESSE     STATUS=OK           638 CALLS     4269 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0204        325.91        .29086E-03   -1.5424    
   2  Prefactor     3.7134        139.35        .20991E-03   -1.5323    
   3  norm          1.1889        1.2871        .84693E-04   -1.5490    
   4  Prefactor     .10000E-03    5.8518        .24343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8895        .17512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.492        39.751        .55903E-04   -1.4272    
   8  Prefactor     8.4771        5.3594        .13092E-03   -1.5126    
   9  Prefactor     .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8952        .98708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1681        14.214        .21369E-02   -1.5492    
  12  Prefactor     .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9362        2.4747        .12749E-03   -1.5430    
  14  norm          .10001E-03    34.499        .38693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6041        5.6463        .12367E-02   -1.5385    
  17  Prefactor     .10000E-03    21.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6877        .11834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.443        15.956        .75118E-04   -1.4641    
  22  Prefactor     .10000E-03    10.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1657        .10612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4561        12.598        .17889E-02   -1.5467    
  25  norm          .10000E-03    4.9689        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.2003        .12794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10190E-03    11.820        .58438E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10055E-03    42.014        .16328       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     41.722        26.019        .62080E-04   -1.4415    
  30  Normalizat    .99972        .19942        .21342E-03   -.93040    
  31  Prefactor     .92522        .23087        .26089E-03   -.95265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89587e-09
Minuit parameter uncertainties:
  1  51.6079
  2  45.6098
  3  1.28711
  4  4.84857e-05
  5  2.22997e-05
  6  1.51118e-06
  7  39.7717
  8  5.35969
  9  1.40108e-05
  10  1.74674e-06
  11  8.15152
  12  3.78438e-06
  13  2.47479
  14  0.000986566
  15  5.28158e-05
  16  5.64743
  17  1.08596e-06
  18  2.85363e-05
  19  5.18347e-06
  20  6.91849e-07
  21  15.958
  22  1.09301e-05
  23  6.01712e-07
  24  8.56817
  25  3.68977e-05
  26  1.22467e-05
  27  0.009469
  28  0.00960255
  29  26.0262
  30  0.19957
  31  0.231116
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.784e-06  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.252e-01  2.311e-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.997e-01  1.996e-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: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363712/likelihoodResults_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.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) = 5465.32804702
delta logL = -0.000413270084209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5465.32763368
delta logL = 7.09142113919e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6450       1.0000          .0000       10.000    
     3 'Normalizat'    .99974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92521       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=   5465.328     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      242 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    6.0596        .18142E-01** at limit **
   2  Index         2.5742        5.1936        .50000        .15938E-04
   3  Normalizat    .99972        .27679E-02    .21342E-03    .60247E-04
   4  Prefactor     .92522        .32850E-02    .26089E-03    .33205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102165
  Index      = 2.57415
  Normalizat = 0.999716
  Prefactor  = 0.925221
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.328     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10216E-03    340.53        .50622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5742        6.2816        .50000       -.50656    
   3  Normalizat    .99972        .21158E-01    .85368E-05   -.93040    
   4  Prefactor     .92522        .25110E-01    .10436E-04   -.95265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42846e-08
Minuit parameter uncertainties:
  1  0.0546152
  2  609.298
  3  0.021158
  4  0.0251101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363712': 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) = 5465.32763345
delta logL = 2.98347913485e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.022e-04  5.462e-02  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.574e+00  6.093e+02  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.252e-01  2.511e-02  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.997e-01  2.116e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.292 38.997

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/363712/cmap_HighResolution_261878401_262137601_4FGL_J1421.1+3859_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2021-09-09 10:50:55.376035', job_id='363712', GAL2='0.93', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631209855.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='87' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 363712: <4FGL_J1421.1+3859_daily_bin87> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin87> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:25 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:27 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:27 2021
Terminated at Thu Sep  9 10:50:56 2021
Results reported at Thu Sep  9 10:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin87 215.292 38.9966 261878401 262137601 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 :                                   762.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.48 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.

