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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin319
RA = 215.292, Dec = 38.9966
tmin = 322012801, tmax = 322272001
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='365033', job_status='RUN', time_executed='2021-09-09 10:41:16.037477', time_epoch_executed='1631209276.04' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365033/ft1_4FGL_J1421.1+3859_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365033/ft2_4FGL_J1421.1+3859_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365033/ft1_4FGL_J1421.1+3859_daily_bin319.fits outfile=/scratch/kocevski/365033/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin319.fits ra=215.292 dec=38.9966 rad=12.0 tmin=322012801.0 tmax=322272001.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.37
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365033/ft1_filtered_4FGL_J1421.1+3859_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/365033/ft2_4FGL_J1421.1+3859_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/365033/ltcube_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.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/365033/ft2_4FGL_J1421.1+3859_daily_bin319.fits
.....................!
real 11.83
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365033/ft1_filtered_4FGL_J1421.1+3859_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/365033/ft2_4FGL_J1421.1+3859_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/365033/ltcube_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.fits outfile=/scratch/kocevski/365033/expmap_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.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/365033/ltcube_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.fits
.....................!
real 191.16
user 185.17
sys 5.61

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/365033/ft1_filtered_4FGL_J1421.1+3859_daily_bin319.fits scfile=/scratch/kocevski/365033/ft2_4FGL_J1421.1+3859_daily_bin319.fits outfile=/scratch/kocevski/365033/cmap_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.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.60
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365033/ft1_filtered_4FGL_J1421.1+3859_daily_bin319.fits scfile=/scratch/kocevski/365033/ft2_4FGL_J1421.1+3859_daily_bin319.fits outfile=/scratch/kocevski/365033/cmap_HighResolution_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.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.66
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.655       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9157       1.0000         .10000E-03   10000.    
     5 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17748       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9282       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6757       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.182       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.079       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8023       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.376       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .23314E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.8679       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    125.47       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83577       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97799       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=   5962.906     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4154 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.975        47.749       -.11399E-05   -.51838E-04
   2  Prefactor     51.600        56.608       -.43348E-05   -.20134E-03
   3  norm          5.3510        1.6684       -.40538E-08    .59462E-05
   4  Prefactor     4.9131        3.8211       -.62456E-07   -.14054E-03
   5  norm          .10000E-03    13.229       -.32565E-06** at limit **
   6  Prefactor     .10000E-03    6.4602        .38405E-08** at limit **
   7  Prefactor     .10000E-03    46.648        .17781E-07** at limit **
   8  Prefactor     .10000E-03    1.7619        .42142E-07** at limit **
   9  Prefactor     .10114E-03    9.5210       -.27875E-07** at limit **
  10  norm          4.0290        3.6728        .33081E-07   -.52259E-05
  11  Prefactor     9.9262        14.385       -.45723E-07   -.11814E-04
  12  Prefactor     16.196        17.590        .16081E-07    .19773E-04
  13  Prefactor     3.6719        3.9088        .25993E-07   -.80068E-04
  14  norm          .10000E-03    7.9884        .31205E-06** at limit **
  15  Prefactor     34.178        26.582        .68812E-06    .14275E-03
  16  norm          .10000E-03    2.0295        .29790E-07** at limit **
  17  Prefactor     11.077        22.107        .19253E-07    .59923E-05
  18  Prefactor     .10000E-03    4.2738        .43038E-07** at limit **
  19  Prefactor     .10000E-03    34.487        .43391E-06** at limit **
  20  norm          4.8027        6.6732        .30897E-05   -.97706E-04
  21  Prefactor     24.368        15.401       -.56671E-07    .13315E-03
  22  Prefactor     .10000E-03    16.952        .17872E-06** at limit **
  23  Prefactor     .10000E-03    3.1035        .94714E-07** at limit **
  24  Prefactor     .10000E-03    1.9925        .18336E-07** at limit **
  25  norm          .10001E-03    .57636       -.14660E-06** at limit **
  26  norm          6.8688        3.8550       -.15897E-06   -.18605E-03
  27  Prefactor     .10000E-03    7.5346       -.27087E-06** at limit **
  28  Prefactor     125.47        70.669       -.56349E-06   -.13012E-04
  29  Prefactor     .10000E-03    10.958        .18860E-06** at limit **
  30  Normalizat    .83647        .17189        .10328E-05   -.41453E-04
  31  Prefactor     .97754        .19215       -.12948E-05    .74463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9749
  Prefactor  = 51.5998
  norm       = 5.35099
  Prefactor  = 4.91314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101142
  norm       = 4.02905
  Prefactor  = 9.92621
  Prefactor  = 16.1957
  Prefactor  = 3.6719
  norm       = 0.0001
  Prefactor  = 34.1782
  norm       = 0.0001
  Prefactor  = 11.0768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80268
  Prefactor  = 24.3679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100013
  norm       = 6.86877
  Prefactor  = 0.0001
  Prefactor  = 125.472
  Prefactor  = 0.0001
  Normalizat = 0.836472
  Prefactor  = 0.977543
 **********
 **   18 **HESSE 
 **********

 FCN=   5962.906     FROM HESSE     STATUS=OK           628 CALLS     4782 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.975        47.876        .75723E-04   -1.4650    
   2  Prefactor     51.600        58.927        .55802E-04   -1.4270    
   3  norm          5.3510        1.6714        .53176E-04   -1.5245    
   4  Prefactor     4.9131        3.8259        .12807E-03   -1.5265    
   5  norm          .10000E-03    13.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7706        .10008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10114E-03    13.555        .75430E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0290        3.6654        .13487E-03   -1.5306    
  11  Prefactor     9.9262        14.355        .12717E-03   -1.5078    
  12  Prefactor     16.196        17.582        .99508E-04   -1.4903    
  13  Prefactor     3.6719        3.9183        .14742E-03   -1.5325    
  14  norm          .10000E-03    8.0170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.178        26.782        .68541E-04   -1.4538    
  16  norm          .10000E-03    2.0419        .10741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.077        22.100        .12036E-03   -1.5042    
  18  Prefactor     .10000E-03    4.2779        .15591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8027        6.8037        .91793E-03   -1.5270    
  21  Prefactor     24.368        15.413        .81133E-04   -1.4720    
  22  Prefactor     .10000E-03    17.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1215        .13275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9947        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    8.6367        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.8688        3.8567        .11045E-03   -1.5184    
  27  Prefactor     .10000E-03    7.7406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     125.47        70.284        .17968E-03   -1.3463    
  29  Prefactor     .10000E-03    10.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .83647        .20483        .23327E-03   -.98730    
  31  Prefactor     .97754        .22727        .25871E-03   -.93482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78188e-09
Minuit parameter uncertainties:
  1  47.9414
  2  58.9935
  3  1.67137
  4  3.82605
  5  8.89719e-06
  6  9.52334e-07
  7  4.87723e-05
  8  1.50682e-07
  9  0.00787145
  10  3.66562
  11  14.36
  12  17.588
  13  3.91853
  14  2.50651e-05
  15  26.7918
  16  3.83331e-06
  17  22.1162
  18  3.85257e-07
  19  1.66438e-05
  20  6.80484
  21  15.4159
  22  5.80289e-06
  23  6.56353e-07
  24  5.57137e-08
  25  0.000660743
  26  3.85681
  27  3.34862e-06
  28  70.3305
  29  1.83755e-05
  30  0.205017
  31  0.227492
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.620e+01  1.759e+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.775e-01  2.275e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.365e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 215.292 38.997
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 9.13e-06 +/- 9.92e-06

TS (Fixed Index): 2.00
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365033/likelihoodResults_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5962.90324206
delta logL = 0.00260956462625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5962.90033909
delta logL = 0.00551253624508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.718       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5888       1.0000          .0000       10.000    
     3 'Normalizat'    .83876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97549       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=   5962.900     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      233 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.715        22.531        .95151E-04    .75512E-03
   2  Index         2.5893        .81519        .77580E-02    .23099E-03
   3  Normalizat    .83877        .19032        .23298E-03   -.40128E-03
   4  Prefactor     .97552        .22510        .25893E-03   -.38841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7147
  Index      = 2.58931
  Normalizat = 0.838766
  Prefactor  = 0.97552
 **********
 **   18 **HESSE 
 **********

 FCN=   5962.900     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.715        20.888        .19030E-04   -1.4866    
   2  Index         2.5893        .75579        .31032E-03   -.50309    
   3  Normalizat    .83877        .19038        .46597E-04   -.98646    
   4  Prefactor     .97552        .22518        .51787E-04   -.93550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23638e-09
Minuit parameter uncertainties:
  1  20.8962
  2  0.759588
  3  0.190532
  4  0.2254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365033': 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) = 5962.90033861
delta logL = 0.00551301495761

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.388e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 215.292 38.997
Photon Index (Free Index): 2.59 +/- 0.76
Photon Flux (Free Index): 3.56e-08 +/- 3.44e-08
Energy Flux (Free Index): 9.42e-06 +/- 8.69e-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/365033/cmap_HighResolution_322012801_322272001_4FGL_J1421.1+3859_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='9.42e-06', photon_flux_error='4.02e-08', dlogl='5.51e-03', energy_flux='9.13e-06', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-09 10:55:43.830084', photon_index_error2='0.76', photon_index2='2.59', ts='2.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='8.69e-06', EG='0.84', time_epoch_completed='1631210143.83', return_code='0', job_id='365033', GAL2='0.98', EG2='0.84', return_code2='0', energy_flux_error='9.92e-06', photon_flux_error2='3.44e-08', ts2='2.02', photon_index='2.67' WHERE bin_id='319' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:55:43 PDT 2021


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

Job <4FGL_J1421.1+3859_daily_bin319> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 10:41:06 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:41:07 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:41:07 2021
Terminated at Thu Sep  9 10:55:44 2021
Results reported at Thu Sep  9 10:55:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin319 215.292 38.9966 322012801 322272001 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 :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

