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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1508
RA = 343.496, Dec = 16.1506
tmin = 630201601, tmax = 630460801
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='581386', job_status='RUN', time_executed='2021-09-29 02:12:30.356796', time_epoch_executed='1632906750.36' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581386

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581386/ft1_4FGL_J2253.9+1609_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581386/ft1_4FGL_J2253.9+1609_daily_bin1508.fits outfile=/scratch/kocevski/581386/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1508.fits ra=343.496 dec=16.1506 rad=12.0 tmin=630201601.0 tmax=630460801.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 3.70
user 3.46
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.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/581386/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/581386/ltcube_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.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/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits
.....................!
real 12.70
user 12.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/581386/ltcube_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.fits outfile=/scratch/kocevski/581386/expmap_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.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/581386/ltcube_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.fits
.....................!
real 190.85
user 185.00
sys 4.73

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.9+1609 @ 343.496 16.1506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits scfile=/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits outfile=/scratch/kocevski/581386/cmap_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.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=343.496 yref=16.1506 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits scfile=/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits outfile=/scratch/kocevski/581386/cmap_HighResolution_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.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=343.496 yref=16.1506 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.56
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/581386/Model_4FGL_J2253.9+1609_daily_bin1508.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/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits.....................!
real 92.78
user 91.36
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits', '/scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits', expMap='/scratch/kocevski/581386/expmap_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.fits', expCube='/scratch/kocevski/581386/ltcube_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/581386/Model_4FGL_J2253.9+1609_daily_bin1508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.9+1609'

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/581386/ft1_filtered_4FGL_J2253.9+1609_daily_bin1508.fits
Spacecraft file(s): /scratch/kocevski/581386/ft2_4FGL_J2253.9+1609_daily_bin1508.fits
Exposure map: /scratch/kocevski/581386/expmap_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.fits
Exposure cube: /scratch/kocevski/581386/ltcube_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/581386/Model_4FGL_J2253.9+1609_daily_bin1508.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) = 9651.38820567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3823       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1303       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3454       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4510       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5921       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.289       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64032       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0438       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2476       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47584       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2711       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9651.320     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2717 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3819        9.4166        .61545E-07   -.60486E-05
   2  norm          .10000E-03    1.1962        .41116E-07** at limit **
   3  Prefactor     .10000E-03    5.6272       -.21286E-07** at limit **
   4  Prefactor     .10000E-03    4.5944        .48966E-06** at limit **
   5  Prefactor     .42803        .15528        .19954E-08    .41604E-03
   6  Prefactor     2.1304        4.0279        .33507E-05   -.17407E-03
   7  norm          2.3454        1.4998        .19054E-07    .44577E-04
   8  Prefactor     .10000E-03    9.4777       -.11208E-05** at limit **
   9  Prefactor     14.250        10.506        .12827E-06   -.77294E-05
  10  Prefactor     5.4506        7.7454        .35504E-07    .30099E-05
  11  Prefactor     .39890        .12551        .14992E-07    .27017E-03
  12  Prefactor     3.5901        10.806        .39957E-05   -.44794E-04
  13  Prefactor     14.271        24.427        .39577E-05    .10276E-03
  14  Prefactor     .65722        2.6294        .84952E-07   -.97792E-04
  15  Prefactor     6.0441        8.0501        .95732E-06   -.59792E-04
  16  Prefactor     10.114        20.202        .10913E-05    .34212E-04
  17  Prefactor     .10000E-03    2.7060        .13810E-06** at limit **
  18  Prefactor     7.2488        6.4695        .10993E-06    .52640E-04
  19  Prefactor     .10000E-03    28.460        .62488E-06** at limit **
  20  norm          .10000E-03    4.0282        .20862E-07** at limit **
  21  Prefactor     .10000E-03    5.3051        .35882E-09** at limit **
  22  norm          .10000E-03    8.4719        .13124E-05** at limit **
  23  Normalizat    .47589        .19896       -.16586E-05   -.11033E-03
  24  Prefactor     1.2711        .11565       -.29641E-06   -.12368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.38192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.428033
  Prefactor  = 2.13039
  norm       = 2.34538
  Prefactor  = 0.0001
  Prefactor  = 14.2496
  Prefactor  = 5.45063
  Prefactor  = 0.398904
  Prefactor  = 3.59006
  Prefactor  = 14.2715
  Prefactor  = 0.657223
  Prefactor  = 6.04411
  Prefactor  = 10.1141
  Prefactor  = 0.0001
  Prefactor  = 7.24877
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.475885
  Prefactor  = 1.2711
 **********
 **   18 **HESSE 
 **********

 FCN=   9651.320     FROM HESSE     STATUS=OK           405 CALLS     3122 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3819        9.4133        .14761E-03   -1.5165    
   2  norm          .10000E-03    1.2005        .10493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42803        .15379        .22176E-04   -1.5577    
   6  Prefactor     2.1304        4.0236        .13218E-02   -1.5416    
   7  norm          2.3454        1.4979        .92387E-04   -1.5402    
   8  Prefactor     .10000E-03    9.4789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.250        10.473        .53051E-03   -1.4953    
  10  Prefactor     5.4506        7.7406        .17211E-03   -1.5241    
  11  Prefactor     .39890        .12411        .18417E-04   -1.5582    
  12  Prefactor     3.5901        10.789        .10660E-02   -1.5329    
  13  Prefactor     14.271        24.493        .10596E-03   -1.4952    
  14  Prefactor     .65722        10.175        .29946E-02   -1.5546    
  15  Prefactor     6.0441        8.0329        .81660E-03   -1.5216    
  16  Prefactor     10.114        20.201        .12596E-03   -1.5072    
  17  Prefactor     .10000E-03    2.7360        .15774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.2488        6.4617        .14899E-03   -1.5169    
  19  Prefactor     .10000E-03    28.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.5358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .47589        .20663        .44555E-03   -1.1355    
  24  Prefactor     1.2711        .12328        .16962E-03   -.84171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67327e-08
Minuit parameter uncertainties:
  1  9.41514
  2  3.16497e-06
  3  1.1286e-05
  4  2.34002e-05
  5  0.153788
  6  4.02411
  7  1.49789
  8  3.32211e-05
  9  10.4741
  10  7.74203
  11  0.124108
  12  10.7951
  13  24.5107
  14  5.17269
  15  8.03434
  16  20.2146
  17  1.39584e-05
  18  6.46231
  19  0.000192486
  20  1.27065e-05
  21  3.64367e-05
  22  4.65995e-05
  23  0.206962
  24  0.123304
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.989e-01  1.241e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.271e+00  1.233e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  4.759e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.03
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 4.52e-08
Energy Flux (Fixed Index): 4.67e-05 +/- 1.45e-05

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) = 9650.76048721
delta logL = 0.559320054639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9650.71599238
delta logL = 0.603814882996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45555       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3745       1.0000          .0000       10.000    
     3 'Normalizat'    .43881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9650.716     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45572        .14067        .42389E-02    .76012E-03
   2  Index1        2.3746        .32461        .16836       -.66884E-04
   3  Normalizat    .43881        .19798        .10444        .77416E-04
   4  Prefactor     1.2861        .11807        .32858E-01   -.11870E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.455723
  Index1     = 2.37462
  Normalizat = 0.438815
  Prefactor  = 1.28609
 **********
 **   18 **HESSE 
 **********

 FCN=   9650.716     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45572        .13751        .18846E-04   -1.5573    
   2  Index1        2.3746        .33818        .70561E-02   -.55281    
   3  Normalizat    .43881        .20506        .46289E-03   -1.1534    
   4  Prefactor     1.2861        .12254        .16873E-03   -.83722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01269e-13
Minuit parameter uncertainties:
  1  0.137514
  2  0.338536
  3  0.205409
  4  0.122569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581386': 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) = 9650.71599075
delta logL = 0.603816515702

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.557e-01  1.375e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.375e+00  3.385e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.286e+00  1.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  4.388e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.32
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.37 +/- 0.34
Photon Flux (Free Index): 1.75e-07 +/- 5.66e-08
Energy Flux (Free Index): 4.24e-05 +/- 1.32e-05

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/581386/cmap_HighResolution_630201601_630460801_4FGL_J2253.9+1609_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='4.24e-05', photon_flux_error='4.52e-08', dlogl='6.04e-01', energy_flux='4.67e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-29 02:24:51.480348', photon_index_error2='0.34', photon_index2='2.37', ts='21.03', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.48', time_epoch_completed='1632907491.48', return_code='0', job_id='581386', GAL2='1.29', EG2='0.44', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.66e-08', ts2='22.32', photon_index='2.02' WHERE bin_id='1508' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:24:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 581386: <4FGL_J2253.9+1609_daily_bin1508> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1508> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 02:10:23 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:10:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:10:24 2021
Terminated at Wed Sep 29 02:24:52 2021
Results reported at Wed Sep 29 02:24:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1508 343.496 16.1506 630201601 630460801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.9+1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

