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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin1085
RA = 223.392, Dec = 35.0884
tmin = 520560001, tmax = 520819201
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='834507', job_status='RUN', time_executed='2021-09-10 12:06:36.375928', time_epoch_executed='1631300796.38' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834507/ft1_4FGL_J1453.5+3505_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834507/ft1_4FGL_J1453.5+3505_daily_bin1085.fits outfile=/scratch/kocevski/834507/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1085.fits ra=223.392 dec=35.0884 rad=12.0 tmin=520560001.0 tmax=520819201.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 6.73
user 4.94
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.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/834507/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/834507/ft1_filtered_4FGL_J1453.5+3505_daily_bin1085.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.34
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834507/ft1_filtered_4FGL_J1453.5+3505_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/834507/ltcube_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.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/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.fits
.....................!
real 13.02
user 12.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834507/ft1_filtered_4FGL_J1453.5+3505_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/834507/ltcube_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.fits outfile=/scratch/kocevski/834507/expmap_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.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/834507/ltcube_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.fits
.....................!
real 193.87
user 187.90
sys 5.22

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/834507/ft1_filtered_4FGL_J1453.5+3505_daily_bin1085.fits scfile=/scratch/kocevski/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.fits outfile=/scratch/kocevski/834507/cmap_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.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.65
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834507/ft1_filtered_4FGL_J1453.5+3505_daily_bin1085.fits scfile=/scratch/kocevski/834507/ft2_4FGL_J1453.5+3505_daily_bin1085.fits outfile=/scratch/kocevski/834507/cmap_HighResolution_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.061       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    75.323       1.0000         .10000E-03   10000.    
    13 'norm      '    7.1238       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10962E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8760       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5495       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1573       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7826       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71551       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2733       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=   3986.508     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3874 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4659       -.34653E-05** at limit **
   2  Prefactor     .10000E-03    8.9083        .29215E-05** at limit **
   3  norm          1.4624        2.6389       -.25333E-06   -.20377E-03
   4  Prefactor     .10000E-03    6.5928        .99700E-06** at limit **
   5  Prefactor     .10000E-03    6.5470        .27765E-05** at limit **
   6  Prefactor     .10000E-03    2.9012       -.15391E-06** at limit **
   7  norm          .10000E-03    11.330       -.97295E-05** at limit **
   8  Prefactor     29.034        42.084       -.29312E-04    .60576E-04
   9  norm          2.1934        6.7612       -.79469E-06   -.35087E-03
  10  Prefactor     .10000E-03    28.413       -.27706E-04** at limit **
  11  norm          3.4322        3.4972       -.20053E-06    .57608E-04
  12  Prefactor     75.324        55.408       -.73412E-06    .33564E-04
  13  norm          7.1237        7.3706        .59157E-07    .11066E-03
  14  Prefactor     .10000E-03    8.4208        .35775E-05** at limit **
  15  Prefactor     .10000E-03    3.9094        .46596E-07** at limit **
  16  norm          .10003E-03    1.1744       -.11482E-05** at limit **
  17  norm          2.8761        3.1180        .42612E-07    .19300E-03
  18  Prefactor     .10000E-03    5.2615       -.14576E-06** at limit **
  19  Prefactor     .10000E-03    66.425        .25201E-04** at limit **
  20  Prefactor     .10000E-03    17.937        .11257E-04** at limit **
  21  Prefactor     .10000E-03    9.0771        .20777E-05** at limit **
  22  Prefactor     .10000E-03    12.537       -.41632E-05** at limit **
  23  norm          3.5499        2.1462       -.68967E-07   -.16240E-03
  24  Prefactor     3.1538        17.802       -.35663E-05   -.23091E-03
  25  Prefactor     .10000E-03    14.085        .64790E-05** at limit **
  26  Prefactor     .10000E-03    43.066        .19450E-04** at limit **
  27  norm          .10000E-03    9.1141        .16725E-05** at limit **
  28  Prefactor     3.6935        45.170       -.86981E-04   -.11896E-04
  29  Normalizat    .71544        .21804        .66268E-05    .64737E-04
  30  Prefactor     1.2735        .20587        .10719E-05    .12503E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.0342
  norm       = 2.19342
  Prefactor  = 0.0001
  norm       = 3.43222
  Prefactor  = 75.3237
  norm       = 7.12367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100035
  norm       = 2.87609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54994
  Prefactor  = 3.15376
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.69346
  Normalizat = 0.715438
  Prefactor  = 1.27352
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.508     FROM HESSE     STATUS=OK           576 CALLS     4450 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4673        .16851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4624        2.5965        .13419E-03   -1.5466    
   4  Prefactor     .10000E-03    6.6099        .15833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5545        .15781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9458        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.034        42.272        .74320E-04   -1.4630    
   9  norm          2.1934        6.7611        .27496E-03   -1.5412    
  10  Prefactor     .10000E-03    28.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4322        3.5013        .11600E-03   -1.5337    
  12  Prefactor     75.324        55.702        .46265E-04   -1.3970    
  13  norm          7.1237        7.3724        .15029E-03   -1.5174    
  14  Prefactor     .10000E-03    8.4392        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9192        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    7.2104        .13048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8761        3.1207        .11308E-03   -1.5369    
  18  Prefactor     .10000E-03    5.2762        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    66.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5499        2.1030        .53743E-04   -1.5331    
  24  Prefactor     3.1538        17.055        .22811E-03   -1.5353    
  25  Prefactor     .10000E-03    14.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    43.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.1373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.6935        45.727        .20756E-03   -1.5324    
  29  Normalizat    .71544        .25568        .27936E-03   -1.0329    
  30  Prefactor     1.2735        .24442        .21705E-03   -.84098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65901e-09
Minuit parameter uncertainties:
  1  5.14727e-07
  2  1.527e-06
  3  2.59668
  4  1.36451e-05
  5  2.69017e-05
  6  2.81564e-05
  7  7.75458e-06
  8  42.3156
  9  6.7634
  10  0.00012771
  11  3.5015
  12  55.7401
  13  7.37332
  14  1.21043e-05
  15  3.64318e-06
  16  0.0010037
  17  3.1209
  18  5.67162e-06
  19  7.20236e-05
  20  0.000442246
  21  1.12012e-05
  22  4.6679e-05
  23  2.10305
  24  14.6742
  25  1.38049e-06
  26  0.000416428
  27  2.15935e-05
  28  26.0159
  29  0.256103
  30  0.244643
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.210e-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.274e+00  2.446e-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.154e-01  2.561e-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: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834507/likelihoodResults_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.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) = 3986.50828102
delta logL = -0.000563231289107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3986.50771777
delta logL = 1.37379174703e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3531       1.0000          .0000       10.000    
     3 'Normalizat'    .71543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2735       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=   3986.508     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      233 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1496.5        .17966E-01** at limit **
   2  Index         1.9614        7.9730        .96354E-02   -.10383E-07
   3  Normalizat    .71544        .94085E-01    .27936E-03    .32536E-04
   4  Prefactor     1.2735        .95042E-01    .21705E-03    .45497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96144
  Normalizat = 0.715439
  Prefactor  = 1.27352
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.508     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2391        .18709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9614        5.9613        .19271E-02   -.65318    
   3  Normalizat    .71544        .23665        .11174E-04   -1.0329    
   4  Prefactor     1.2735        .23995        .43409E-04   -.84098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74191e-12
Minuit parameter uncertainties:
  1  8.67945e-06
  2  378.376
  3  0.236984
  4  0.240159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834507': 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) = 3986.50771728
delta logL = 5.08734046889e-07

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  8.679e-06  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.961e+00  3.784e+02  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.274e+00  2.402e-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.154e-01  2.370e-01  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/834507/cmap_HighResolution_520560001_520819201_4FGL_J1453.5+3505_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-10 12:17:39.889835', job_id='834507', GAL2='1.27', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631301459.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='5.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1085' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:17:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 834507: <4FGL_J1453.5+3505_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin1085> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:02:58 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:03:00 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:03:00 2021
Terminated at Fri Sep 10 12:17:40 2021
Results reported at Fri Sep 10 12:17:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin1085 223.392 35.0884 520560001 520819201 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 :                                   653.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

