/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packa/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 us/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 22 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 = 17501
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1453.5+3505_weekly_bin731
RA = 223.392, Dec = 35.0884
tmin = 681091201, tmax = 681696001
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='117050', job_status='RUN', time_executed='2022-08-09 05:59:14.616258', time_epoch_executed='1660049954.62' WHERE source_name='4FGL J1453.5+3505' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117050

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117050/ft1_4FGL_J1453.5+3505_weekly_bin731.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117050/ft1_4FGL_J1453.5+3505_weekly_bin731.fits outfile=/scratch/kocevski/117050/ft1_filteredMKT_4FGL_J1453.5+3505_weekly_bin731.fits ra=223.392 dec=35.0884 rad=12.0 tmin=681091201.0 tmax=681696001.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.78
user 5.48
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.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/117050/ft1_filteredMKT_4FGL_J1453.5+3505_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/117050/ft1_filtered_4FGL_J1453.5+3505_weekly_bin731.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.57
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 2088

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117050/ft1_filtered_4FGL_J1453.5+3505_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/117050/ltcube_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.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/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.fits
.....................!
real 37.21
user 35.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117050/ft1_filtered_4FGL_J1453.5+3505_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/117050/ltcube_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.fits outfile=/scratch/kocevski/117050/expmap_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.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/117050/ltcube_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.fits
.....................!
real 194.90
user 188.81
sys 5.40

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/117050/ft1_filtered_4FGL_J1453.5+3505_weekly_bin731.fits scfile=/scratch/kocevski/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.fits outfile=/scratch/kocevski/117050/cmap_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.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.63
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117050/ft1_filtered_4FGL_J1453.5+3505_weekly_bin731.fits scfile=/scratch/kocevski/117050/ft2_4FGL_J1453.5+3505_weekly_bin731.fits outfile=/scratch/kocevski/117050/cmap_HighResolution_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.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.62
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8142       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7118       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8098       1.0000         .10000E-03   10000.    
     7 'norm      '    .75815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.759       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0214       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    215.52       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4131       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6694       1.0000         .10000E-03   10000.    
    17 'norm      '    .44709       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12218E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.740       1.0000         .10000E-03   10000.    
    23 'norm      '    .68224E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.3866       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0206       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99004       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=   22597.55     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3429 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8149        7.6565        .96590E-07   -.37217E-04
   2  Prefactor     .10000E-03    4.6694       -.54803E-06** at limit **
   3  norm          1.5877        1.1595        .86787E-08   -.98595E-04
   4  Prefactor     4.7145        5.7204       -.78281E-07   -.46110E-03
   5  Prefactor     .10000E-03    10.024        .54120E-05** at limit **
   6  Prefactor     9.8102        2.3983       -.70613E-07   -.15034E-03
   7  norm          .75867        .79160        .30475E-07   -.35756E-03
   8  Prefactor     30.760        16.166        .49350E-06   -.14670E-03
   9  norm          4.3975        3.1159       -.27565E-07   -.29394E-03
  10  Prefactor     4.0227        12.458        .58844E-06   -.29547E-04
  11  norm          4.1018        1.8762        .32395E-07   -.41341E-04
  12  Prefactor     215.52        27.712        .23077E-05   -.75853E-04
  13  norm          2.7719        2.6512        .14086E-05   -.33429E-05
  14  Prefactor     3.4165        5.1587       -.61751E-07   -.12051E-03
  15  Prefactor     1.4131        1.4893       -.15695E-07   -.46608E-04
  16  norm          1.6696        .73948        .22427E-07   -.19568E-03
  17  norm          .44733        1.6944       -.22015E-06   -.10097E-02
  18  Prefactor     .10002E-03    2.0123        .13607E-05** at limit **
  19  Prefactor     .10000E-03    8.0910       -.37326E-05** at limit **
  20  Prefactor     .10000E-03    1.2464        .83258E-06** at limit **
  21  Prefactor     .10006E-03    4.0715       -.73960E-06** at limit **
  22  Prefactor     11.741        7.4551       -.23228E-06   -.12882E-02
  23  norm          .68334E-01    .21593        .19352E-07    .26471E-04
  24  Prefactor     .10000E-03    1.3496        .10676E-07** at limit **
  25  Prefactor     .10000E-03    3.2387       -.12354E-05** at limit **
  26  Prefactor     .10000E-03    2.7281       -.63860E-06** at limit **
  27  norm          4.3872        5.5146        .15866E-06    .25838E-04
  28  Prefactor     .10000E-03    7.7890       -.34627E-05** at limit **
  29  Normalizat    1.0205        .10108       -.87618E-06   -.81579E-03
  30  Prefactor     .99023        .94129E-01   -.10801E-08   -.84459E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.81489
  Prefactor  = 0.0001
  norm       = 1.58771
  Prefactor  = 4.71448
  Prefactor  = 0.0001
  Prefactor  = 9.81015
  norm       = 0.758674
  Prefactor  = 30.7595
  norm       = 4.39751
  Prefactor  = 4.02275
  norm       = 4.10178
  Prefactor  = 215.521
  norm       = 2.77192
  Prefactor  = 3.41645
  Prefactor  = 1.41309
  norm       = 1.66956
  norm       = 0.447335
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.00010006
  Prefactor  = 11.7405
  norm       = 0.068334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.38716
  Prefactor  = 0.0001
  Normalizat = 1.02046
  Prefactor  = 0.990225
 **********
 **   18 **HESSE 
 **********

 FCN=   22597.55     FROM HESSE     STATUS=OK           602 CALLS     4031 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8149        7.6498        .18335E-03   -1.5269    
   2  Prefactor     .10000E-03    4.6999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5877        1.1604        .13425E-03   -1.5456    
   4  Prefactor     4.7145        5.6911        .92689E-03   -1.5274    
   5  Prefactor     .10000E-03    10.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8102        2.4016        .10960E-03   -1.5081    
   7  norm          .75867        4.4917        .24566E-02   -1.5534    
   8  Prefactor     30.760        16.222        .72244E-04   -1.4598    
   9  norm          4.3975        3.1237        .96029E-03   -1.5289    
  10  Prefactor     4.0227        12.436        .10055E-02   -1.5307    
  11  norm          4.1018        1.8759        .13516E-03   -1.5303    
  12  Prefactor     215.52        27.750        .13773E-03   -1.2761    
  13  norm          2.7719        2.6474        .23235E-03   -1.5375    
  14  Prefactor     3.4165        5.1868        .10944E-02   -1.5338    
  15  Prefactor     1.4131        1.4979        .18207E-03   -1.5470    
  16  norm          1.6696        .73275        .81550E-04   -1.5450    
  17  norm          .44733        1.5665        .32390E-03   -1.5574    
  18  Prefactor     .10002E-03    6.1313        .33119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9393        .32030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10006E-03    27.939        .54601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.741        6.5165        .11692E-03   -1.5023    
  23  norm          .68334E-01    .33929        .11778E-02   -1.5656    
  24  Prefactor     .10000E-03    1.3666        .17012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.2384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.7293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.3872        5.5052        .19230E-03   -1.5289    
  28  Prefactor     .10000E-03    7.8534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0205        .11880        .24939E-03   -.92348    
  30  Prefactor     .99023        .11076        .25205E-03   -.93056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79455e-09
Minuit parameter uncertainties:
  1  7.65134
  2  2.77596e-06
  3  1.16047
  4  5.69175
  5  1.3335e-05
  6  2.40162
  7  3.69218
  8  16.2248
  9  3.12379
  10  12.4441
  11  1.87589
  12  27.752
  13  2.64751
  14  5.18749
  15  1.49795
  16  0.73275
  17  1.56668
  18  0.000613764
  19  3.51199e-06
  20  0.000182121
  21  0.00259836
  22  6.51693
  23  0.304314
  24  1.93464e-06
  25  1.06763e-06
  26  1.75843e-06
  27  5.50588
  28  1.96014e-05
  29  0.118828
  30  0.110789
Done.

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

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  3.416e+00  5.187e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.902e-01  1.108e-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.020e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/117050/likelihoodResults_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.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) = 22597.5229992
delta logL = 0.0242730166719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22597.5180156
delta logL = 0.0292565565614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9303       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5683       1.0000          .0000       10.000    
     3 'Normalizat'    1.0182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99155       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=   22597.52     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      212 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9203        47.208        .59324E-02    .10082E-02
   2  Index         2.5698        1.4401        .35790        .66258E-04
   3  Normalizat    1.0183        .13755E-01    .43622E-01   -.59432E-04
   4  Prefactor     .99156        .13620E-01    .46161E-01   -.34951E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92032
  Index      = 2.56976
  Normalizat = 1.01828
  Prefactor  = 0.991555
 **********
 **   18 **HESSE 
 **********

 FCN=   22597.52     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9203        5.4220        .23729E-03   -1.5366    
   2  Index         2.5698        .93493        .86068E-02   -.50756    
   3  Normalizat    1.0183        .10924        .24962E-03   -.92421    
   4  Prefactor     .99156        .10880        .25189E-03   -.93012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35003e-09
Minuit parameter uncertainties:
  1  5.42291
  2  0.942215
  3  0.109264
  4  0.108822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117050': 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) = 22597.518013
delta logL = 0.0292591644284

Extracting fit parameters...

4FGL J1453.5+3505
   Spectrum: PowerLaw
273    Prefactor:  2.920e+00  5.423e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.570e+00  9.422e-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:  9.916e-01  1.088e-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.018e+00  1.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
Ra Dec: 223.392 35.088

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/117050/cmap_HighResolution_681091201_681696001_4FGL_J1453.5+3505_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2022-08-09 06:35:13.643972', job_id='117050', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1660052113.64', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.93e-02', ts2='0.59', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='731' AND source_name='4FGL J1453.5+3505' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 06:35:13 PDT 2022

e='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 00:50:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 117066: <4FGL_J1453.5+3505_weekly_bin731> in cluster <slac> Done

Job <4FGL_J1453.5+3505_weekly_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug  9 00:06:48 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:07:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 00:07:38 2022
Terminated at Tue Aug  9 00:50:38 2022
Results reported at Tue Aug  9 00:50:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_weekly_bin731 223.392 35.0884 681091201 681696001 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 :                                   2132.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             292.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2580 sec.
    Turnaround time :                            2630 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 117050: <4FGL_J1453.5+3505_weekly_bin731> in cluster <slac> Done

Job <4FGL_J1453.5+3505_weekly_bin731> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Aug  9 00:06:48 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 00:07:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 00:07:38 2022
Terminated at Tue Aug  9 06:35:14 2022
Results reported at Tue Aug  9 06:35:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1453.5+3505_weekly_bin731 223.392 35.0884 681091201 681696001 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 :                                   2167.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             75.51 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   23255 sec.
    Turnaround time :                            23306 sec.

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

