/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 19 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 = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1453.5+3505_daily_bin969
RA = 223.392, Dec = 35.0884
tmin = 490492801, tmax = 490752001
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='834329', job_status='RUN', time_executed='2021-09-10 12:05:07.354687', time_epoch_executed='1631300707.35' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834329/ft1_4FGL_J1453.5+3505_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834329/ft1_4FGL_J1453.5+3505_daily_bin969.fits outfile=/scratch/kocevski/834329/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin969.fits ra=223.392 dec=35.0884 rad=12.0 tmin=490492801.0 tmax=490752001.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 9.69
user 5.54
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.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/834329/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin969.fits evtable="EVENTS" outfile="/scratch/kocevski/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.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 2.95
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/834329/ltcube_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.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/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits
.....................!
real 14.60
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/834329/ltcube_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.fits outfile=/scratch/kocevski/834329/expmap_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.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/834329/ltcube_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.fits
.....................!
real 211.34
user 185.82
sys 4.54

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/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.fits scfile=/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits outfile=/scratch/kocevski/834329/cmap_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.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 5.29
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.fits scfile=/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits outfile=/scratch/kocevski/834329/cmap_HighResolution_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.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 1.61
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.fits', '/scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits', expMap='/scratch/kocevski/834329/expmap_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.fits', expCube='/scratch/kocevski/834329/ltcube_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834329/Model_4FGL_J1453.5+3505_daily_bin969.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/834329/ft1_filtered_4FGL_J1453.5+3505_daily_bin969.fits
Spacecraft file(s): /scratch/kocevski/834329/ft2_4FGL_J1453.5+3505_daily_bin969.fits
Exposure map: /scratch/kocevski/834329/expmap_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.fits
Exposure cube: /scratch/kocevski/834329/ltcube_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834329/Model_4FGL_J1453.5+3505_daily_bin969.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) = 5169.46283854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8362       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5453       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15720E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5949       1.0000         .10000E-03   10000.    
     7 'norm      '    .11572       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32489E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.656       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7116       1.0000         .10000E-03   10000.    
    13 'norm      '    12.136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3145       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9259       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4075       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2917       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7597       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.364       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.528       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.908       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77402       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95880       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=   5169.411     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3941 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8428        21.405       -.50908E-05   -.28113E-04
   2  Prefactor     9.5481        16.070       -.65209E-06    .94417E-05
   3  norm          .10000E-03    1.1378        .42631E-07** at limit **
   4  Prefactor     .10000E-03    13.383       -.60618E-05** at limit **
   5  Prefactor     .10000E-03    34.601       -.80874E-05** at limit **
   6  Prefactor     1.5960        3.5398       -.33420E-06   -.69368E-03
   7  norm          .10032E-03    13.158        .97490E-06** at limit **
   8  Prefactor     .10000E-03    78.795        .68452E-04** at limit **
   9  norm          6.0126        11.840        .67899E-05   -.24001E-03
  10  Prefactor     65.609        58.191       -.29202E-04   -.20191E-03
  11  norm          6.1880        4.6514        .91576E-07   -.17267E-03
  12  Prefactor     1.7755        213.64       -.39141E-05   -.30256E-04
  13  norm          12.136        8.5132       -.21381E-06   -.17771E-04
  14  Prefactor     6.3161        14.954        .60655E-07   -.14447E-03
  15  Prefactor     .10000E-03    12.794        .62669E-05** at limit **
  16  norm          4.9248        2.3334       -.16299E-05   -.17104E-02
  17  norm          .10000E-03    1.5427        .85852E-07** at limit **
  18  Prefactor     .10000E-03    6.0042        .35597E-06** at limit **
  19  Prefactor     7.6469        97.429        .16025E-03    .75850E-05
  20  Prefactor     .10000E-03    7.6025        .46816E-07** at limit **
  21  Prefactor     .10000E-03    26.047        .45276E-05** at limit **
  22  Prefactor     4.4283        10.756       -.28702E-05   -.20891E-03
  23  norm          1.2914        1.2424       -.63758E-06   -.44405E-02
  24  Prefactor     8.7594        8.2551        .21720E-06   -.98434E-04
  25  Prefactor     13.359        31.044        .29824E-05   -.13052E-04
  26  Prefactor     24.525        17.842       -.82482E-06   -.50687E-04
  27  norm          .10000E-03    6.8124       -.24118E-06** at limit **
  28  Prefactor     36.915        36.840       -.95865E-07   -.18000E-04
  29  Normalizat    .77400        .19564        .45174E-06   -.60571E-03
  30  Prefactor     .95888        .17120       -.20976E-05   -.32944E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.84284
  Prefactor  = 9.54811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.59604
  norm       = 0.000100324
  Prefactor  = 0.000100003
  norm       = 6.01257
  Prefactor  = 65.6088
  norm       = 6.18796
  Prefactor  = 1.77548
  norm       = 12.1362
  Prefactor  = 6.31611
  Prefactor  = 0.0001
  norm       = 4.92477
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42834
  norm       = 1.2914
  Prefactor  = 8.75936
  Prefactor  = 13.3592
  Prefactor  = 24.5246
  norm       = 0.0001
  Prefactor  = 36.9151
  Normalizat = 0.774001
  Prefactor  = 0.958881
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.411     FROM HESSE     STATUS=OK           596 CALLS     4537 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8428        21.416        .12777E-03   -1.5080    
   2  Prefactor     9.5481        16.055        .12971E-03   -1.5090    
   3  norm          .10000E-03    1.1387        .74888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5960        3.5103        .19192E-03   -1.5455    
   7  norm          .10032E-03    14.415        .87989E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    80.271        .21356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0126        11.831        .16397E-03   -1.5218    
  10  Prefactor     65.609        58.266        .24765E-03   -1.4086    
  11  norm          6.1880        4.6553        .12912E-03   -1.5210    
  12  Prefactor     1.7755        213.41        .32129E-03   -1.5441    
  13  norm          12.136        8.5113        .11499E-03   -1.5011    
  14  Prefactor     6.3161        14.884        .15974E-03   -1.5205    
  15  Prefactor     .10000E-03    13.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9248        2.3294        .69799E-04   -1.5264    
  17  norm          .10000E-03    1.5536        .87166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0199        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6469        96.274        .14596E-03   -1.5155    
  20  Prefactor     .10000E-03    7.7659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4283        10.715        .19183E-03   -1.5287    
  23  norm          1.2914        1.2441        .19477E-03   -1.5481    
  24  Prefactor     8.7594        8.2340        .13543E-03   -1.5116    
  25  Prefactor     13.359        31.010        .10957E-03   -1.4977    
  26  Prefactor     24.525        17.835        .80883E-04   -1.4717    
  27  norm          .10000E-03    6.8205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     36.915        36.835        .65970E-04   -1.4492    
  29  Normalizat    .77400        .22774        .26179E-03   -1.0104    
  30  Prefactor     .95888        .20046        .22543E-03   -.94113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64493e-09
Minuit parameter uncertainties:
  1  21.4328
  2  16.0626
  3  5.72282e-07
  4  9.1647e-05
  5  0.000444194
  6  3.51076
  7  0.00432411
  8  0.00103705
  9  11.8355
  10  58.3164
  11  4.65562
  12  39.0734
  13  8.51219
  14  14.8926
  15  0.000136489
  16  2.32948
  17  6.95077e-06
  18  5.16425e-05
  19  54.374
  20  3.26253e-05
  21  0.000102335
  22  10.7198
  23  1.24408
  24  8.23509
  25  31.0472
  26  17.8388
  27  2.95218e-05
  28  36.858
  29  0.228025
  30  0.200619
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  6.316e+00  1.489e+01  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:  9.589e-01  2.006e-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:  7.740e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 223.392 35.088
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834329/likelihoodResults_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.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) = 5169.34774489
delta logL = 0.0631981108272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5169.33058675
delta logL = 0.0803562545789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0111       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0452       1.0000          .0000       10.000    
     3 'Normalizat'    .75267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97163       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5169.331     FROM MIGRAD    STATUS=FAILED        92 CALLS      260 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0070        42.367        .20136E-03   -.94287E-05
   2  Index         3.0459        3.3481        .92791E-02    .33691E-03
   3  Normalizat    .75264        .22187        .26512E-03    .31947E-04
   4  Prefactor     .97167        .20543        .22410E-03   -.18305E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5169.331     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      340 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0070        42.367        .24451E-03   -1.5308    
   2  Index         3.0459        3.3481        .16978E-02   -.40152    
   3  Normalizat    .75264        .22187        .21168E-03   -1.0185    
   4  Prefactor     .97167        .20543        .21080E-03   -.93680    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5169.331     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      369 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0069        13.631        .80544E-05   -.66057E-04
   2  Index         3.0459        1.8979        .18558E-02    .71245E-05
   3  Normalizat    .75264        .21554        .10605E-04    .79331E-05
   4  Prefactor     .97167        .19981        .44821E-04   -.80000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00693
  Index      = 3.04592
  Normalizat = 0.752635
  Prefactor  = 0.971672
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.331     FROM HESSE     STATUS=OK            23 CALLS      392 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0069        12.775        .16109E-05   -1.5308    
   2  Index         3.0459        1.7825        .74232E-04   -.40152    
   3  Normalizat    .75264        .21508        .21209E-05   -1.0185    
   4  Prefactor     .97167        .19941        .89642E-05   -.93680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06315e-11
Minuit parameter uncertainties:
  1  12.7839
  2  1.83038
  3  0.215326
  4  0.199559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834329': 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) = 5169.33058664
delta logL = 0.0803563673726

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  4.007e+00  1.278e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.046e+00  1.830e+00  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:  9.717e-01  1.996e-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:  7.526e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/834329/cmap_HighResolution_490492801_490752001_4FGL_J1453.5+3505_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-10 12:18:27.450671', job_id='834329', GAL2='0.97', fit_tolerance='1e-08', EG2='0.75', EG='0.77', time_epoch_completed='1631301507.45', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.04e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='969' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:18:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 834329: <4FGL_J1453.5+3505_daily_bin969> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin969> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:02:45 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:02:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:02:46 2021
Terminated at Fri Sep 10 12:18:28 2021
Results reported at Fri Sep 10 12:18:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin969 223.392 35.0884 490492801 490752001 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

