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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin352
RA = 223.392, Dec = 35.0884
tmin = 330566401, tmax = 330825601
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='828388', job_status='RUN', time_executed='2021-09-10 11:44:18.620017', time_epoch_executed='1631299458.62' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828388/ft1_4FGL_J1453.5+3505_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828388/ft1_4FGL_J1453.5+3505_daily_bin352.fits outfile=/scratch/kocevski/828388/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin352.fits ra=223.392 dec=35.0884 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.24
user 3.81
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.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/828388/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.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 1.38
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/828388/ltcube_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.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/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits
.....................!
real 12.86
user 11.90
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/828388/ltcube_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.fits outfile=/scratch/kocevski/828388/expmap_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.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/828388/ltcube_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.fits
.....................!
real 195.17
user 186.04
sys 5.43

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1453.5+3505 @ 223.392 35.0884

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits scfile=/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits outfile=/scratch/kocevski/828388/cmap_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.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=223.392 yref=35.0884 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.95
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits scfile=/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits outfile=/scratch/kocevski/828388/cmap_HighResolution_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.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=223.392 yref=35.0884 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.93
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/828388/Model_4FGL_J1453.5+3505_daily_bin352.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/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits.....................!
real 54.41
user 50.62
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits', '/scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits', expMap='/scratch/kocevski/828388/expmap_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.fits', expCube='/scratch/kocevski/828388/ltcube_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/828388/Model_4FGL_J1453.5+3505_daily_bin352.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1453.5+3505'

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.970e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/828388/ft1_filtered_4FGL_J1453.5+3505_daily_bin352.fits
Spacecraft file(s): /scratch/kocevski/828388/ft2_4FGL_J1453.5+3505_daily_bin352.fits
Exposure map: /scratch/kocevski/828388/expmap_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.fits
Exposure cube: /scratch/kocevski/828388/ltcube_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/828388/Model_4FGL_J1453.5+3505_daily_bin352.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) = 6380.56642985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.077       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.379       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.554       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9712       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1371       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .83751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4902       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0668       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2819       1.0000         .10000E-03   10000.    
    23 'norm      '    19.273       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.242       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6380.500     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3275 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7102        16.145       -.78932E-06   -.89123E-04
   2  Prefactor     .10000E-03    14.188        .11378E-06** at limit **
   3  norm          10.077        5.5041        .49351E-06   -.50927E-03
   4  Prefactor     .10000E-03    4.8216        .55051E-06** at limit **
   5  Prefactor     .10000E-03    6.6668       -.49893E-06** at limit **
   6  Prefactor     .10000E-03    1.8350       -.25085E-07** at limit **
   7  norm          .10000E-03    4.9096       -.53608E-06** at limit **
   8  Prefactor     21.377        21.636       -.32899E-06   -.51829E-04
   9  norm          4.7092        4.9123        .10145E-06   -.39501E-04
  10  Prefactor     18.553        27.489       -.59020E-07   -.18512E-04
  11  norm          5.9717        5.5759        .20324E-05   -.12412E-02
  12  Prefactor     3.1152        76.281       -.12510E-04   -.13407E-03
  13  norm          .10000E-03    3.2613        .15348E-07** at limit **
  14  Prefactor     .10000E-03    7.9280        .10502E-05** at limit **
  15  Prefactor     .10000E-03    15.470        .27111E-05** at limit **
  16  norm          .10000E-03    .49623        .62604E-07** at limit **
  17  norm          .83481        6.1698        .44807E-05   -.10263E-03
  18  Prefactor     6.4976        14.731       -.39320E-05   -.30175E-03
  19  Prefactor     .10000E-03    25.530       -.33683E-06** at limit **
  20  Prefactor     2.0681        8.7168        .11141E-05   -.79476E-04
  21  Prefactor     .10000E-03    4.8798        .38408E-08** at limit **
  22  Prefactor     5.2797        15.400        .64370E-06   -.21579E-03
  23  norm          19.273        2.5839       -.11948E-07    .14366E-03
  24  Prefactor     .10000E-03    25.172       -.26873E-06** at limit **
  25  Prefactor     31.245        28.527        .75880E-06    .94330E-04
  26  Prefactor     .10000E-03    9.9822       -.74586E-06** at limit **
  27  norm          .10000E-03    8.5818        .74853E-06** at limit **
  28  Prefactor     .10000E-03    11.474       -.15239E-05** at limit **
  29  Normalizat    1.0717        .19279        .12176E-05   -.21370E-03
  30  Prefactor     1.0058        .19314       -.17707E-05   -.16508E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.71015
  Prefactor  = 0.0001
  norm       = 10.0772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.377
  norm       = 4.70923
  Prefactor  = 18.5531
  norm       = 5.97169
  Prefactor  = 3.11517
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.834812
  Prefactor  = 6.49756
  Prefactor  = 0.0001
  Prefactor  = 2.06813
  Prefactor  = 0.0001
  Prefactor  = 5.2797
  norm       = 19.2735
  Prefactor  = 0.0001
  Prefactor  = 31.2454
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.07172
  Prefactor  = 1.00578
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.500     FROM HESSE     STATUS=OK           582 CALLS     3857 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7102        16.174        .14435E-03   -1.5153    
   2  Prefactor     .10000E-03    14.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.077        5.5261        .63112E-03   -1.5073    
   4  Prefactor     .10000E-03    4.8379        .17143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8483        .10561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.9213        .17301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.377        21.695        .86626E-04   -1.4783    
   9  norm          4.7092        4.9092        .17483E-03   -1.5274    
  10  Prefactor     18.553        27.490        .92983E-04   -1.4846    
  11  norm          5.9717        5.5971        .82162E-03   -1.5219    
  12  Prefactor     3.1152        82.196        .22888E-03   -1.5355    
  13  norm          .10000E-03    3.2634        .14088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.074        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .50294        .54906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .83481        5.7120        .27332E-03   -1.5525    
  18  Prefactor     6.4976        13.845        .15753E-03   -1.5198    
  19  Prefactor     .10000E-03    25.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0681        8.7479        .28738E-03   -1.5420    
  21  Prefactor     .10000E-03    4.8817        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2797        15.078        .17489E-03   -1.5248    
  23  norm          19.273        2.5756        .44170E-04   -1.4830    
  24  Prefactor     .10000E-03    25.618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     31.245        28.553        .71685E-04   -1.4589    
  26  Prefactor     .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.6214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0717        .22861        .26138E-03   -.90665    
  30  Prefactor     1.0058        .22826        .27187E-03   -.92537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07829e-09
Minuit parameter uncertainties:
  1  16.1836
  2  8.51365e-06
  3  5.52637
  4  3.72579e-05
  5  4.55796e-05
  6  1.16892e-06
  7  3.95814e-05
  8  21.7033
  9  4.90966
  10  27.5084
  11  5.59757
  12  32.052
  13  1.09372e-06
  14  9.71904e-05
  15  0.000160703
  16  8.93195e-07
  17  4.36768
  18  13.8519
  19  6.75189e-05
  20  8.5088
  21  3.50617e-06
  22  15.0884
  23  2.57558
  24  9.51765e-05
  25  28.5658
  26  8.80858e-05
  27  5.70674e-05
  28  0.000167884
  29  0.22882
  30  0.228485
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  9.719e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.006e+00  2.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.072e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 223.392 35.088
Photon Flux Upper Limit: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/828388/likelihoodResults_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.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) = 6380.50069289
delta logL = -0.00059620187676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6380.5000971
delta logL = -4.11225300923e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3457       1.0000          .0000       10.000    
     3 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   6380.500     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    114.98        .18142E-02** at limit **
   2  Index         2.2721        5.5963        .50000        .13652E-04
   3  Normalizat    1.0717        .17254E-01    .26138E-03    .39145E-04
   4  Prefactor     1.0058        .17542E-01    .27187E-03    .31111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101593
  Index      = 2.27208
  Normalizat = 1.07172
  Prefactor  = 1.00578
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    479.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2721        5.6610        .50000       -.57708    
   3  Normalizat    1.0717        .37410E-01    .10455E-04   -.90665    
   4  Prefactor     1.0058        .38028E-01    .10875E-04   -.92537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7011e-08
Minuit parameter uncertainties:
  1  0.0557248
  2  1025.58
  3  0.0374108
  4  0.0380295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828388': 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) = 6380.50009644
delta logL = 2.49095137406e-07

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.016e-04  5.572e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.272e+00  1.026e+03  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.006e+00  3.803e-02  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.072e+00  3.741e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 223.392 35.088

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/828388/cmap_HighResolution_330566401_330825601_4FGL_J1453.5+3505_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-10 11:58:12.196227', job_id='828388', GAL2='1.01', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631300292.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='352' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:58:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 828388: <4FGL_J1453.5+3505_daily_bin352> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin352> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 11:41:54 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:41:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 11:41:55 2021
Terminated at Fri Sep 10 11:58:15 2021
Results reported at Fri Sep 10 11:58:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin352 223.392 35.0884 330566401 330825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1453.5+3505 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

