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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin53
RA = 215.292, Dec = 38.9966
tmin = 253065601, tmax = 253324801
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='363663', job_status='RUN', time_executed='2021-09-09 10:38:29.525350', time_epoch_executed='1631209109.53' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363663/ft1_4FGL_J1421.1+3859_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363663/ft2_4FGL_J1421.1+3859_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363663/ft1_4FGL_J1421.1+3859_daily_bin53.fits outfile=/scratch/kocevski/363663/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin53.fits ra=215.292 dec=38.9966 rad=12.0 tmin=253065601.0 tmax=253324801.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.65
user 1.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363663/ft1_filtered_4FGL_J1421.1+3859_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/363663/ft2_4FGL_J1421.1+3859_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/363663/ltcube_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.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/363663/ft2_4FGL_J1421.1+3859_daily_bin53.fits
.....................!
real 14.76
user 14.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363663/ft1_filtered_4FGL_J1421.1+3859_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/363663/ft2_4FGL_J1421.1+3859_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/363663/ltcube_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.fits outfile=/scratch/kocevski/363663/expmap_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.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/363663/ltcube_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.fits
.....................!
real 191.07
user 185.49
sys 5.01

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/363663/ft1_filtered_4FGL_J1421.1+3859_daily_bin53.fits scfile=/scratch/kocevski/363663/ft2_4FGL_J1421.1+3859_daily_bin53.fits outfile=/scratch/kocevski/363663/cmap_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363663/ft1_filtered_4FGL_J1421.1+3859_daily_bin53.fits scfile=/scratch/kocevski/363663/ft2_4FGL_J1421.1+3859_daily_bin53.fits outfile=/scratch/kocevski/363663/cmap_HighResolution_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.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.88
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5833       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.530       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2553       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.215       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.335       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1402       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9835       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7930       1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.8210       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .66666       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=   5027.272     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4129 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.442        .17561E-07** at limit **
   2  Prefactor     .10000E-03    50.559        .61165E-06** at limit **
   3  norm          6.9528        2.0568       -.22924E-07    .10177E-03
   4  Prefactor     5.5828        4.0878       -.21088E-07   -.21195E-04
   5  norm          .10000E-03    7.7453        .28100E-07** at limit **
   6  Prefactor     .10000E-03    54.640       -.64565E-06** at limit **
   7  Prefactor     .10000E-03    68.914       -.12873E-05** at limit **
   8  Prefactor     17.526        8.2132       -.18489E-06   -.17666E-03
   9  Prefactor     5.2540        18.072       -.54217E-07   -.90088E-05
  10  norm          3.2645        2.9671        .13316E-08    .10445E-03
  11  Prefactor     21.293        14.771        .17139E-05    .22729E-03
  12  Prefactor     .20896E-03    21.673       -.33565E-05** at limit **
  13  Prefactor     .10000E-03    .86977       -.40913E-08** at limit **
  14  norm          .10000E-03    6.6879       -.89405E-07** at limit **
  15  Prefactor     .10000E-03    10.184        .28818E-08** at limit **
  16  norm          .10000E-03    2.0302       -.96793E-08** at limit **
  17  Prefactor     .10000E-03    11.255        .47673E-08** at limit **
  18  Prefactor     8.5991        23.082       -.18487E-06    .35690E-05
  19  Prefactor     48.327        45.883       -.49427E-06   -.24191E-04
  20  norm          .10000E-03    6.9347        .39196E-07** at limit **
  21  Prefactor     3.1372        20.457        .31532E-06   -.90793E-05
  22  Prefactor     .10000E-03    30.849       -.14358E-08** at limit **
  23  Prefactor     8.9833        7.9311        .21433E-08    .65082E-04
  24  Prefactor     .10000E-03    6.1938        .98875E-08** at limit **
  25  norm          4.7928        2.3262       -.32129E-07    .54668E-04
  26  norm          .10000E-03    2.0141       -.65622E-07** at limit **
  27  Prefactor     9.8168        10.204       -.76680E-07   -.23824E-04
  28  Prefactor     .10000E-03    42.975       -.16871E-06** at limit **
  29  Prefactor     .10000E-03    43.487       -.14179E-06** at limit **
  30  Normalizat    1.0298        .18275        .10843E-05    .10266E-03
  31  Prefactor     .66654        .19936       -.64732E-06    .14225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.95277
  Prefactor  = 5.58285
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5258
  Prefactor  = 5.25403
  norm       = 3.26454
  Prefactor  = 21.2931
  Prefactor  = 0.000208958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.59907
  Prefactor  = 48.3266
  norm       = 0.0001
  Prefactor  = 3.13725
  Prefactor  = 0.0001
  Prefactor  = 8.98329
  Prefactor  = 0.0001
  norm       = 4.79284
  norm       = 0.0001
  Prefactor  = 9.81679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0298
  Prefactor  = 0.666536
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.272     FROM HESSE     STATUS=OK           624 CALLS     4753 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9528        2.0614        .52699E-04   -1.5181    
   4  Prefactor     5.5828        4.0891        .11760E-03   -1.5235    
   5  norm          .10000E-03    7.8582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.526        8.1531        .95661E-04   -1.4870    
   9  Prefactor     5.2540        18.118        .17534E-03   -1.5249    
  10  norm          3.2645        2.9687        .11237E-03   -1.5347    
  11  Prefactor     21.293        18.135        .86960E-04   -1.4785    
  12  Prefactor     .20896E-03    38.401        .74310E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .87352        .64571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.6946        .17910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0352        .98653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5991        23.062        .13666E-03   -1.5121    
  19  Prefactor     48.327        45.835        .57677E-04   -1.4316    
  20  norm          .10000E-03    7.0261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1372        20.170        .22876E-03   -1.5354    
  22  Prefactor     .10000E-03    30.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.9833        7.9223        .13372E-03   -1.5108    
  24  Prefactor     .10000E-03    6.2348        .17230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7928        2.3267        .68508E-04   -1.5270    
  26  norm          .10000E-03    2.0188        .98017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.8168        10.176        .12787E-03   -1.5081    
  28  Prefactor     .10000E-03    42.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    43.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0298        .21523        .21377E-03   -.92039    
  31  Prefactor     .66654        .23260        .29891E-03   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9898e-10
Minuit parameter uncertainties:
  1  9.00412e-06
  2  0.000291681
  3  2.06145
  4  4.0893
  5  9.42393e-06
  6  0.000108405
  7  0.000174502
  8  8.15365
  9  18.1372
  10  2.96879
  11  18.1395
  12  0.129452
  13  9.38338e-07
  14  1.47852e-06
  15  4.78665e-06
  16  1.71999e-06
  17  2.24798e-07
  18  23.0859
  19  45.8689
  20  1.12992e-05
  21  15.9171
  22  5.45922e-06
  23  7.92323
  24  6.04689e-06
  25  2.32674
  26  3.42711e-06
  27  10.1777
  28  0.000129644
  29  7.60335e-06
  30  0.215411
  31  0.232941
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  2.090e-04  1.295e-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:  6.665e-01  2.329e-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.030e+00  2.154e-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: 9.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363663/likelihoodResults_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.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) = 5027.27160905
delta logL = -1.40332849696e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5027.27160904
delta logL = -1.40208430821e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6699       1.0000          .0000       10.000    
     3 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66654       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=   5027.272     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      287 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97041E-02    7.8559        .83883E-01   -.34574E-02
   2  Index         2.4867        5.0489        .50000       -.67219E-04
   3  Normalizat    1.0298        .21653E-02    .21377E-03    .49300E-03
   4  Prefactor     .66654        .24931E-02    .29891E-03    .48849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00970405
  Index      = 2.48665
  Normalizat = 1.02979
  Prefactor  = 0.666541
 **********
 **   18 **HESSE 
 **********

 FCN=   5027.272     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      326 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97041E-02    6.0771        .94066E-01   -1.5688    
   2  Index         2.4867        5.0976        .50000       -.52668    
   3  Normalizat    1.0298        .20952E-02    .42753E-04   -.92039    
   4  Prefactor     .66654        .24125E-02    .59782E-04   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1678e-09
Minuit parameter uncertainties:
  1  0.483224
  2  8.82826
  3  0.0020952
  4  0.00241246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363663': 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) = 5027.27160405
delta logL = 3.59298792318e-06

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  9.704e-03  4.832e-01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.487e+00  8.828e+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:  6.665e-01  2.412e-03  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.030e+00  2.095e-03  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/363663/cmap_HighResolution_253065601_253324801_4FGL_J1421.1+3859_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.68e-08', time_completed='2021-09-09 10:51:15.719123', job_id='363663', GAL2='0.67', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631209875.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.59e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='53' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:51:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 363663: <4FGL_J1421.1+3859_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin53 215.292 38.9966 253065601 253324801 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 :                                   763.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

