/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 211 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin2
RA = 215.292, Dec = 38.9966
tmin = 239846401, tmax = 240105601
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='363588', job_status='RUN', time_executed='2021-09-09 10:39:58.591470', time_epoch_executed='1631209198.59' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363588/ft1_4FGL_J1421.1+3859_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363588/ft2_4FGL_J1421.1+3859_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363588/ft1_4FGL_J1421.1+3859_daily_bin2.fits outfile=/scratch/kocevski/363588/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin2.fits ra=215.292 dec=38.9966 rad=12.0 tmin=239846401.0 tmax=240105601.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.64
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363588/ft1_filtered_4FGL_J1421.1+3859_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/363588/ft2_4FGL_J1421.1+3859_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/363588/ltcube_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.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/363588/ft2_4FGL_J1421.1+3859_daily_bin2.fits
.....................!
real 12.80
user 12.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363588/ft1_filtered_4FGL_J1421.1+3859_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/363588/ft2_4FGL_J1421.1+3859_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/363588/ltcube_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.fits outfile=/scratch/kocevski/363588/expmap_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.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/363588/ltcube_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.fits
.....................!
real 192.09
user 186.86
sys 4.29

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/363588/ft1_filtered_4FGL_J1421.1+3859_daily_bin2.fits scfile=/scratch/kocevski/363588/ft2_4FGL_J1421.1+3859_daily_bin2.fits outfile=/scratch/kocevski/363588/cmap_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363588/ft1_filtered_4FGL_J1421.1+3859_daily_bin2.fits scfile=/scratch/kocevski/363588/ft2_4FGL_J1421.1+3859_daily_bin2.fits outfile=/scratch/kocevski/363588/cmap_HighResolution_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.386       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2313       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.912       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6303       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.644       1.0000         .10000E-03   10000.    
    10 'norm      '    10.074       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2046       1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.549       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.023       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9436       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.691       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.163       1.0000         .10000E-03   10000.    
    25 'norm      '    .96943       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6903       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    40.170       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.859       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61152       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=   4772.356     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4096 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.428       -.12288E-05** at limit **
   2  Prefactor     77.365        108.67       -.22335E-04    .12564E-04
   3  norm          3.2312        1.9637       -.84457E-08   -.65059E-04
   4  Prefactor     19.912        6.0215       -.60373E-06    .43320E-04
   5  norm          .10000E-03    16.066        .93621E-06** at limit **
   6  Prefactor     .10000E-03    5.5595       -.12274E-05** at limit **
   7  Prefactor     .10000E-03    21.381       -.21941E-05** at limit **
   8  Prefactor     3.6307        4.9482       -.35384E-06   -.18500E-03
   9  Prefactor     11.643        17.952       -.51026E-06   -.56168E-06
  10  norm          10.074        4.9280       -.37332E-06   -.23677E-04
  11  Prefactor     .10000E-03    3.2769       -.10772E-06** at limit **
  12  Prefactor     .10000E-03    3.8686        .17550E-06** at limit **
  13  Prefactor     .10000E-03    1.4357        .80703E-07** at limit **
  14  norm          .10000E-03    5.0450       -.18371E-05** at limit **
  15  Prefactor     5.2027        20.001       -.16793E-05   -.36152E-04
  16  norm          .10000E-03    5.1119        .46548E-05** at limit **
  17  Prefactor     .10000E-03    30.374        .17881E-05** at limit **
  18  Prefactor     12.549        12.462       -.43191E-07    .23770E-04
  19  Prefactor     55.017        43.426       -.58112E-05    .91232E-05
  20  norm          .10000E-03    3.1700        .21992E-06** at limit **
  21  Prefactor     .10000E-03    5.0412       -.20456E-05** at limit **
  22  Prefactor     3.9422        35.582       -.16511E-05   -.33005E-04
  23  Prefactor     11.690        9.9676       -.21813E-06   -.67267E-04
  24  Prefactor     10.163        9.0529       -.84304E-06   -.93726E-03
  25  norm          .96929        2.0567        .10432E-07   -.66845E-03
  26  norm          3.6903        3.2499       -.77484E-07    .61190E-05
  27  Prefactor     .10000E-03    2.9816        .21763E-07** at limit **
  28  Prefactor     40.160        65.753       -.12997E-04    .18456E-05
  29  Prefactor     18.859        19.983       -.37067E-06    .42793E-05
  30  Normalizat    1.1621        .20596        .39280E-05   -.22197E-03
  31  Prefactor     .61144        .21299       -.43016E-06    .46022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 77.3652
  norm       = 3.23116
  Prefactor  = 19.9119
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63068
  Prefactor  = 11.6427
  norm       = 10.074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.20273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5493
  Prefactor  = 55.0165
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94222
  Prefactor  = 11.6896
  Prefactor  = 10.1627
  norm       = 0.969292
  norm       = 3.69026
  Prefactor  = 0.0001
  Prefactor  = 40.1603
  Prefactor  = 18.8586
  Normalizat = 1.16207
  Prefactor  = 0.611437
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.356     FROM HESSE     STATUS=OK           620 CALLS     4716 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    89.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.365        109.61        .45648E-04   -1.3947    
   3  norm          3.2312        1.9620        .71784E-04   -1.5348    
   4  Prefactor     19.912        6.0234        .89757E-04   -1.4815    
   5  norm          .10000E-03    16.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5607        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6307        4.9402        .17261E-03   -1.5327    
   9  Prefactor     11.643        17.971        .11740E-03   -1.5025    
  10  norm          10.074        4.9313        .10330E-03   -1.5073    
  11  Prefactor     .10000E-03    3.2785        .12213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8701        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4488        .80797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.0491        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2027        20.038        .17620E-03   -1.5252    
  16  norm          .10000E-03    5.1788        .30285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.549        12.454        .11308E-03   -1.4999    
  19  Prefactor     55.017        43.501        .54076E-04   -1.4223    
  20  norm          .10000E-03    3.1710        .12012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0458        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9422        35.194        .20313E-03   -1.5311    
  23  Prefactor     11.690        9.6853        .11716E-03   -1.5024    
  24  Prefactor     10.163        9.1476        .62846E-03   -1.5070    
  25  norm          .96929        1.9401        .11970E-03   -1.5511    
  26  norm          3.6903        3.2475        .11363E-03   -1.5324    
  27  Prefactor     .10000E-03    2.9845        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     40.160        64.667        .63243E-04   -1.4440    
  29  Prefactor     18.859        19.984        .92228E-04   -1.4839    
  30  Normalizat    1.1621        .24020        .21241E-03   -.87783    
  31  Prefactor     .61144        .24675        .31987E-03   -1.0711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2881e-09
Minuit parameter uncertainties:
  1  0.000151832
  2  109.897
  3  1.96202
  4  6.02359
  5  4.01597e-05
  6  7.51471e-07
  7  1.15593e-05
  8  4.94079
  9  17.979
  10  4.9315
  11  1.14899e-06
  12  1.85722e-06
  13  2.6054e-06
  14  2.04664e-06
  15  20.0643
  16  4.98039e-05
  17  5.07543e-05
  18  12.4571
  19  43.5264
  20  1.96344e-06
  21  7.13668e-08
  22  23.576
  23  9.6866
  24  9.14881
  25  1.94021
  26  3.24767
  27  2.17248e-06
  28  64.78
  29  19.9909
  30  0.240425
  31  0.247187
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.857e-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:  6.114e-01  2.472e-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:  1.162e+00  2.404e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363588/likelihoodResults_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.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) = 4772.35765432
delta logL = -0.00119526533763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4772.35645972
delta logL = -6.61681042402e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6441       1.0000          .0000       10.000    
     3 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61117       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=   4772.356     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.530        .13642E-01** at limit **
   2  Index         1.7687        8.7975        .50000       -.49008E-06
   3  Normalizat    1.1621        .92504E-02    .21241E-03   -.22746E-03
   4  Prefactor     .61143        .10438E-01    .31987E-03   -.14384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76872
  Normalizat = 1.16207
  Prefactor  = 0.611432
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.356     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      284 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    211.81        .17566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7687        8.4066        .50000       -.70267    
   3  Normalizat    1.1621        .26049E-01    .42482E-04   -.87783    
   4  Prefactor     .61143        .29393E-01    .12795E-04   -1.0711    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34515e-08
Minuit parameter uncertainties:
  1  0.000121016
  2  833.366
  3  0.026049
  4  0.029394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363588': 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) = 4772.35645351
delta logL = 5.54281177756e-06

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.210e-04  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  1.769e+00  8.334e+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:  6.114e-01  2.939e-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:  1.162e+00  2.605e-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/363588/cmap_HighResolution_239846401_240105601_4FGL_J1421.1+3859_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-09 10:52:08.613466', job_id='363588', GAL2='0.61', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631209928.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='5.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='2' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:52:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 363588: <4FGL_J1421.1+3859_daily_bin2> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin2 215.292 38.9966 239846401 240105601 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 :                                   727.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

