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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin1034
RA = 223.392, Dec = 35.0884
tmin = 507340801, tmax = 507600001
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='834444', job_status='RUN', time_executed='2021-09-10 12:05:10.258575', time_epoch_executed='1631300710.26' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834444/ft1_4FGL_J1453.5+3505_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834444/ft1_4FGL_J1453.5+3505_daily_bin1034.fits outfile=/scratch/kocevski/834444/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1034.fits ra=223.392 dec=35.0884 rad=12.0 tmin=507340801.0 tmax=507600001.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 5.91
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.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/834444/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1034.fits evtable="EVENTS" outfile="/scratch/kocevski/834444/ft1_filtered_4FGL_J1453.5+3505_daily_bin1034.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 3.60
user 0.55
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834444/ft1_filtered_4FGL_J1453.5+3505_daily_bin1034.fits" evtable="EVENTS" scfile=/scratch/kocevski/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.fits sctable="SC_DATA" outfile=/scratch/kocevski/834444/ltcube_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.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/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.fits
.....................!
real 10.82
user 9.44
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834444/ft1_filtered_4FGL_J1453.5+3505_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/834444/ltcube_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.fits outfile=/scratch/kocevski/834444/expmap_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.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/834444/ltcube_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.fits
.....................!
real 149.93
user 138.49
sys 3.32

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/834444/ft1_filtered_4FGL_J1453.5+3505_daily_bin1034.fits scfile=/scratch/kocevski/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.fits outfile=/scratch/kocevski/834444/cmap_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.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 2.13
user 0.65
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834444/ft1_filtered_4FGL_J1453.5+3505_daily_bin1034.fits scfile=/scratch/kocevski/834444/ft2_4FGL_J1453.5+3505_daily_bin1034.fits outfile=/scratch/kocevski/834444/cmap_HighResolution_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.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 2.39
user 0.64
sys 0.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.784       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2858       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.0684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.822       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3786       1.0000         .10000E-03   10000.    
    16 'norm      '    .96383       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2381       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78184       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4016       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2869       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9684       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36111       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.052       1.0000         .10000E-03   10000.    
    27 'norm      '    .10358E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68659       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0828       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=   5834.812     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3935 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.556        18.270       -.49251E-06   -.16652E-04
   2  Prefactor     12.786        19.360        .13261E-05   -.87624E-04
   3  norm          1.2836        3.4122       -.17286E-05   -.94914E-03
   4  Prefactor     4.6992        15.855        .37397E-05   -.18168E-03
   5  Prefactor     .10000E-03    5.9956       -.19407E-06** at limit **
   6  Prefactor     .10000E-03    1.9062       -.12224E-06** at limit **
   7  norm          9.0708        17.333        .22355E-05   -.11076E-03
   8  Prefactor     15.822        14.877        .60119E-06   -.45905E-04
   9  norm          7.4562        5.4911        .29490E-06   -.20106E-03
  10  Prefactor     .10000E-03    10.391        .16435E-06** at limit **
  11  norm          1.7175        2.8218       -.17665E-06   -.30331E-03
  12  Prefactor     .10000E-03    15.549        .40053E-07** at limit **
  13  norm          7.1982        6.8710        .50900E-06   -.25152E-04
  14  Prefactor     .10000E-03    15.287        .15403E-05** at limit **
  15  Prefactor     8.3640        11.401       -.48275E-05   -.34627E-03
  16  norm          .96625        2.2518        .25495E-05    .61023E-03
  17  norm          4.6793        3.1234        .12234E-07   -.75593E-05
  18  Prefactor     3.2377        6.9359       -.38715E-06   -.34124E-03
  19  Prefactor     24.057        52.645       -.33033E-04    .11887E-03
  20  Prefactor     .78127        4.3221       -.21787E-06   -.35646E-03
  21  Prefactor     5.3952        26.502       -.71924E-05   -.65155E-04
  22  Prefactor     5.2876        12.389        .26937E-05   -.97864E-04
  23  norm          3.9838        1.7555        .16519E-06    .16747E-02
  24  Prefactor     .15835        13.001       -.16286E-05    .57147E-04
  25  Prefactor     .10000E-03    51.011        .14733E-05** at limit **
  26  Prefactor     38.053        21.889        .25534E-06    .56389E-05
  27  norm          .10000E-03    6.8080       -.42773E-08** at limit **
  28  Prefactor     .10000E-03    13.225       -.10774E-05** at limit **
  29  Normalizat    .68652        .17189        .10319E-05   -.13059E-04
  30  Prefactor     1.0829        .16707        .27671E-06    .77591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5563
  Prefactor  = 12.7856
  norm       = 1.28364
  Prefactor  = 4.69918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.07082
  Prefactor  = 15.8219
  norm       = 7.45619
  Prefactor  = 0.0001
  norm       = 1.71747
  Prefactor  = 0.0001
  norm       = 7.19824
  Prefactor  = 0.0001
  Prefactor  = 8.364
  norm       = 0.966254
  norm       = 4.67931
  Prefactor  = 3.23774
  Prefactor  = 24.0567
  Prefactor  = 0.781273
  Prefactor  = 5.39524
  Prefactor  = 5.28759
  norm       = 3.98377
  Prefactor  = 0.158346
  Prefactor  = 0.0001
  Prefactor  = 38.0531
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.686518
  Prefactor  = 1.08293
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.812     FROM HESSE     STATUS=OK           604 CALLS     4539 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.556        18.274        .92976E-04   -1.4846    
   2  Prefactor     12.786        19.201        .11203E-03   -1.4993    
   3  norm          1.2836        3.3746        .21610E-03   -1.5481    
   4  Prefactor     4.6992        15.521        .18574E-03   -1.5274    
   5  Prefactor     .10000E-03    6.0006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3870        .20254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.0708        17.119        .13309E-03   -1.5106    
   8  Prefactor     15.822        14.879        .10069E-03   -1.4912    
   9  norm          7.4562        5.4890        .14687E-03   -1.5162    
  10  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7175        2.7965        .15962E-03   -1.5446    
  12  Prefactor     .10000E-03    15.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.1982        6.8715        .14950E-03   -1.5171    
  14  Prefactor     .10000E-03    15.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3640        10.730        .13850E-03   -1.5129    
  16  norm          .96625        2.0488        .12078E-03   -1.5511    
  17  norm          4.6793        3.1202        .10201E-03   -1.5275    
  18  Prefactor     3.2377        6.8328        .22509E-03   -1.5348    
  19  Prefactor     24.057        52.008        .81631E-04   -1.4727    
  20  Prefactor     .78127        14.915        .30281E-02   -1.5531    
  21  Prefactor     5.3952        25.066        .17290E-03   -1.5243    
  22  Prefactor     5.2876        11.997        .17480E-03   -1.5248    
  23  norm          3.9838        1.8607        .51167E-04   -1.5309    
  24  Prefactor     .15835        18.661        .56934E-01   -1.5628    
  25  Prefactor     .10000E-03    51.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.053        21.861        .64974E-04   -1.4473    
  27  norm          .10000E-03    6.8102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .68652        .19402        .26144E-03   -1.0443    
  30  Prefactor     1.0829        .19149        .22049E-03   -.90014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74672e-09
Minuit parameter uncertainties:
  1  18.2795
  2  19.2103
  3  3.37511
  4  15.5344
  5  4.85843e-05
  6  2.13283e-05
  7  17.128
  8  14.8821
  9  5.48934
  10  8.24563e-06
  11  2.79667
  12  1.13161e-05
  13  6.87226
  14  3.26928e-05
  15  10.732
  16  2.04898
  17  3.12035
  18  6.83441
  19  52.1061
  20  6.82864
  21  23.2743
  22  12.0022
  23  1.86077
  24  3.43793
  25  3.12556e-05
  26  21.8661
  27  1.13021e-05
  28  2.76055e-05
  29  0.194212
  30  0.191613
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.269e-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.083e+00  1.916e-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:  6.865e-01  1.942e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834444/likelihoodResults_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.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) = 5834.81263333
delta logL = -0.000308313051391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5834.81232613
delta logL = -1.1175770851e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15263E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4156       1.0000          .0000       10.000    
     3 'Normalizat'    .68657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0829       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=   5834.812     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    6828.0        .36285E-03** at limit **
   2  Index         2.4875        6.2430        .50000       -.41329E-04
   3  Normalizat    .68652        .78623E-01    .26144E-03   -.72490E-04
   4  Prefactor     1.0829        .82128E-01    .22049E-03   -.40527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100041
  Index      = 2.48745
  Normalizat = 0.686519
  Prefactor  = 1.08293
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.812     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    26.221        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4875        6.2425        .50000       -.52650    
   3  Normalizat    .68652        .17768        .10457E-04   -1.0443    
   4  Prefactor     1.0829        .18567        .88196E-05   -.90014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55087e-09
Minuit parameter uncertainties:
  1  0.00207042
  2  4.65017
  3  0.177826
  4  0.185785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834444': 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) = 5834.81232397
delta logL = 1.04604805529e-06

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.070e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.487e+00  4.650e+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:  1.083e+00  1.858e-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:  6.865e-01  1.778e-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/834444/cmap_HighResolution_507340801_507600001_4FGL_J1453.5+3505_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-10 12:16:34.404150', job_id='834444', GAL2='1.08', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1631301394.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1034' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 834444: <4FGL_J1453.5+3505_daily_bin1034> in cluster <slac> Done

Job <4FGL_J1453.5+3505_daily_bin1034> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 12:02:52 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:02:53 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:53 2021
Terminated at Fri Sep 10 12:16:35 2021
Results reported at Fri Sep 10 12:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin1034 223.392 35.0884 507340801 507600001 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 :                                   619.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

