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


Performing analysis on: 4FGL_J1453.5+3505_daily_bin1001
RA = 223.392, Dec = 35.0884
tmin = 498787201, tmax = 499046401
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='834391', job_status='RUN', time_executed='2021-09-10 12:05:12.266292', time_epoch_executed='1631300712.27' WHERE source_name='4FGL J1453.5+3505' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834391/ft1_4FGL_J1453.5+3505_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834391/ft1_4FGL_J1453.5+3505_daily_bin1001.fits outfile=/scratch/kocevski/834391/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1001.fits ra=223.392 dec=35.0884 rad=12.0 tmin=498787201.0 tmax=499046401.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.42
user 4.76
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.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/834391/ft1_filteredMKT_4FGL_J1453.5+3505_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/834391/ft1_filtered_4FGL_J1453.5+3505_daily_bin1001.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.76
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834391/ft1_filtered_4FGL_J1453.5+3505_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/834391/ltcube_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.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/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.fits
.....................!
real 12.33
user 11.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834391/ft1_filtered_4FGL_J1453.5+3505_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/834391/ltcube_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.fits outfile=/scratch/kocevski/834391/expmap_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.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/834391/ltcube_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.fits
.....................!
real 194.07
user 185.69
sys 4.34

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/834391/ft1_filtered_4FGL_J1453.5+3505_daily_bin1001.fits scfile=/scratch/kocevski/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.fits outfile=/scratch/kocevski/834391/cmap_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.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.57
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834391/ft1_filtered_4FGL_J1453.5+3505_daily_bin1001.fits scfile=/scratch/kocevski/834391/ft2_4FGL_J1453.5+3505_daily_bin1001.fits outfile=/scratch/kocevski/834391/cmap_HighResolution_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.753       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0409       1.0000         .10000E-03   10000.    
     7 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9648       1.0000         .10000E-03   10000.    
     9 'norm      '    .10524E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.123       1.0000         .10000E-03   10000.    
    11 'norm      '    .81283E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2197       1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .72035E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0314       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1890       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    18.840       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2653       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0487       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=   6034.296     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3340 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0701       -.38008E-06** at limit **
   2  Prefactor     15.774        18.486       -.81386E-06   -.21168E-03
   3  norm          3.1405        3.2223        .28928E-07   -.10169E-04
   4  Prefactor     .10000E-03    7.4300       -.42009E-07** at limit **
   5  Prefactor     .10000E-03    7.8801        .22453E-06** at limit **
   6  Prefactor     3.0418        3.1971        .55403E-06   -.12790E-03
   7  norm          .10000E-03    18.772        .65421E-06** at limit **
   8  Prefactor     6.9654        21.054       -.43656E-06   -.49370E-04
   9  norm          .10000E-03    9.4523       -.19514E-06** at limit **
  10  Prefactor     21.169        47.876        .37115E-05    .14684E-03
  11  norm          .10019E-03    3.1284       -.83629E-06** at limit **
  12  Prefactor     .10000E-03    14.387       -.80883E-06** at limit **
  13  norm          1.0987        15.869        .35266E-05   -.61592E-04
  14  Prefactor     10.644        10.415       -.23745E-06   -.24702E-04
  15  Prefactor     .10000E-03    7.4201        .80982E-07** at limit **
  16  norm          1.2164        1.4623        .13585E-06    .24202E-04
  17  norm          .10000E-03    1.6175        .60032E-07** at limit **
  18  Prefactor     .10000E-03    6.6463        .30401E-06** at limit **
  19  Prefactor     .10000E-03    334.95       -.96939E-06** at limit **
  20  Prefactor     .10000E-03    5.9282        .45297E-07** at limit **
  21  Prefactor     .10000E-03    16.712        .32504E-06** at limit **
  22  Prefactor     .10000E-03    4.0182        .67427E-07** at limit **
  23  norm          2.0319        1.2667       -.23036E-06   -.48462E-03
  24  Prefactor     1.1849        18.719        .45737E-05   -.37883E-04
  25  Prefactor     .10000E-03    60.238       -.10609E-05** at limit **
  26  Prefactor     .10000E-03    12.805        .54691E-08** at limit **
  27  norm          18.840        15.263        .32792E-07   -.39418E-04
  28  Prefactor     .10000E-03    11.073        .64404E-06** at limit **
  29  Normalizat    1.2655        .19139       -.95440E-06    .77084E-05
  30  Prefactor     1.0484        .18583       -.63626E-07   -.33064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.7742
  norm       = 3.14049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04184
  norm       = 0.0001
  Prefactor  = 6.96537
  norm       = 0.0001
  Prefactor  = 21.1688
  norm       = 0.000100191
  Prefactor  = 0.0001
  norm       = 1.09868
  Prefactor  = 10.6435
  Prefactor  = 0.0001
  norm       = 1.21635
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03187
  Prefactor  = 1.18492
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 18.84
  Prefactor  = 0.0001
  Normalizat = 1.26551
  Prefactor  = 1.04835
 **********
 **   18 **HESSE 
 **********

 FCN=   6034.296     FROM HESSE     STATUS=OK           584 CALLS     3924 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.774        18.718        .10091E-03   -1.4913    
   3  norm          3.1405        3.2201        .13701E-03   -1.5354    
   4  Prefactor     .10000E-03    7.4574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0418        3.2059        .68880E-03   -1.5359    
   7  norm          .10000E-03    19.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9654        21.142        .15202E-03   -1.5180    
   9  norm          .10000E-03    9.7211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.169        49.730        .87149E-04   -1.4787    
  11  norm          .10019E-03    29.225        .25397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0987        16.295        .44882E-03   -1.5498    
  14  Prefactor     10.644        10.402        .12282E-03   -1.5055    
  15  Prefactor     .10000E-03    7.4799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2164        1.4294        .98319E-04   -1.5487    
  17  norm          .10000E-03    2.8127        .19240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    340.58        .18653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0254        .15208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0319        1.2459        .59248E-04   -1.5423    
  24  Prefactor     1.1849        19.093        .41796E-03   -1.5490    
  25  Prefactor     .10000E-03    60.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          18.840        15.257        .92275E-04   -1.4840    
  28  Prefactor     .10000E-03    11.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2655        .22941        .24624E-03   -.84602    
  30  Prefactor     1.0484        .22287        .26313E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77393e-09
Minuit parameter uncertainties:
  1  4.20296e-05
  2  18.7249
  3  3.22026
  4  1.20472e-05
  5  4.09586e-05
  6  3.20612
  7  0.00012371
  8  21.1648
  9  0.000121308
  10  49.8271
  11  0.00472871
  12  0.000139727
  13  8.46465
  14  10.4034
  15  6.09139e-06
  16  1.42946
  17  4.54347e-06
  18  3.37994e-05
  19  0.000735878
  20  6.70154e-06
  21  6.03139e-05
  22  6.4973e-06
  23  1.2459
  24  9.51596
  25  0.000381395
  26  7.88786e-06
  27  15.2604
  28  0.000101028
  29  0.229594
  30  0.223066
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  1.064e+01  1.040e+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:  1.048e+00  2.231e-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.266e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 223.392 35.088
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 8.38e-06 +/- 8.19e-06

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

Saving results to:
/scratch/kocevski/834391/likelihoodResults_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.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) = 6032.77652736
delta logL = 1.5191412996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6032.74161353
delta logL = 1.55405512947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6466       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1493       1.0000          .0000       10.000    
     3 'Normalizat'    1.2856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0390       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.

 FCN=   6032.742     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      216 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6466        7.9255        .36255E-02   -.22035E-02
   2  Index         1.1492        .41660        .23593       -.54901E-04
   3  Normalizat    1.2856        .18548        .55305E-01    .48459E-05
   4  Prefactor     1.0390        .18331        .59725E-01    .95246E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.64657
  Index      = 1.14916
  Normalizat = 1.28558
  Prefactor  = 1.03903
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.742     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6466        10.943        .14502E-03   -1.5155    
   2  Index         1.1492        .62054        .96462E-02   -.87910    
   3  Normalizat    1.2856        .22316        .24455E-03   -.83998    
   4  Prefactor     1.0390        .22049        .26412E-03   -.91440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35028e-09
Minuit parameter uncertainties:
  1  10.9458
  2  0.624526
  3  0.223331
  4  0.22068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834391': 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) = 6032.74161347
delta logL = 1.5540551933

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  7.647e+00  1.095e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.149e+00  6.245e-01  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.039e+00  2.207e-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.286e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.09
Ra Dec: 223.392 35.088
Photon Index (Free Index): 1.15 +/- 0.62
Photon Flux (Free Index): 5.38e-09 +/- 6.72e-09
Energy Flux (Free Index): 5.22e-05 +/- 7.62e-05

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/834391/cmap_HighResolution_498787201_499046401_4FGL_J1453.5+3505_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='5.22e-05', photon_flux_error='2.38e-08', dlogl='1.55e+00', energy_flux='8.38e-06', photon_flux2='5.38e-09', job_status='DONE', time_completed='2021-09-10 12:18:16.258051', photon_index_error2='0.62', photon_index2='1.15', ts='3.99', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='7.62e-05', EG='1.27', time_epoch_completed='1631301496.26', return_code='0', job_id='834391', GAL2='1.04', EG2='1.29', return_code2='0', energy_flux_error='8.19e-06', photon_flux_error2='6.72e-09', ts2='7.09', photon_index='2.36' WHERE bin_id='1001' AND source_name='4FGL J1453.5+3505' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:18:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 834391: <4FGL_J1453.5+3505_daily_bin1001> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_daily_bin1001 223.392 35.0884 498787201 499046401 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 :                                   773.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

