/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 217 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin47
RA = 343.496, Dec = 16.1506
tmin = 251510401, tmax = 251769601
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='572888', job_status='RUN', time_executed='2021-09-29 01:49:19.736154', time_epoch_executed='1632905359.74' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572888/ft1_4FGL_J2253.9+1609_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572888/ft1_4FGL_J2253.9+1609_daily_bin47.fits outfile=/scratch/kocevski/572888/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin47.fits ra=343.496 dec=16.1506 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.46
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.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/572888/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.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.55
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/572888/ltcube_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.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/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits
.....................!
real 12.45
user 12.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/572888/ltcube_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.fits outfile=/scratch/kocevski/572888/expmap_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.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/572888/ltcube_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.fits
.....................!
real 192.76
user 187.63
sys 4.45

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/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.fits scfile=/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits outfile=/scratch/kocevski/572888/cmap_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.fits scfile=/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits outfile=/scratch/kocevski/572888/cmap_HighResolution_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.fits', '/scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits', expMap='/scratch/kocevski/572888/expmap_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.fits', expCube='/scratch/kocevski/572888/ltcube_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572888/Model_4FGL_J2253.9+1609_daily_bin47.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/572888/ft1_filtered_4FGL_J2253.9+1609_daily_bin47.fits
Spacecraft file(s): /scratch/kocevski/572888/ft2_4FGL_J2253.9+1609_daily_bin47.fits
Exposure map: /scratch/kocevski/572888/expmap_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.fits
Exposure cube: /scratch/kocevski/572888/ltcube_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572888/Model_4FGL_J2253.9+1609_daily_bin47.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) = 8100.97360635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7219       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32837       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.842       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.904       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.334       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8693       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .97934E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.806       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50532E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    9.0427       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7510       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70874       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0603       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=   8100.931     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2389 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7230        10.338        .33931E-02    .17918E-02
   2  norm          .10000E-03    3.8634        .90712E-02** at limit **
   3  Prefactor     10.418        11.489        .31034E-02    .30005E-02
   4  Prefactor     .10000E-03    3.9309        .90712E-02** at limit **
   5  Prefactor     .32844        .18085        .58757E-02    .55021E-03
   6  Prefactor     10.842        9.8348        .30419E-02   -.46137E-03
   7  norm          2.5877        1.5533        .63418E-02   -.27040E-03
   8  Prefactor     37.905        32.801        .16275E-02    .10923E-03
   9  Prefactor     .10000E-03    7.4712        .90712E-02** at limit **
  10  Prefactor     12.334        18.388        .28516E-02   -.77315E-03
  11  Prefactor     2.8693        .29653        .32719E-02    .38089E-03
  12  Prefactor     .10000E-03    15.790        .90712E-02** at limit **
  13  Prefactor     .10007E-03    36.684        .13649    ** at limit **
  14  Prefactor     5.3680        8.2768        .43367E-02    .85188E-03
  15  Prefactor     .10000E-03    5.7717        .90712E-02** at limit **
  16  Prefactor     .10000E-03    30.195        .90712E-02** at limit **
  17  Prefactor     14.810        8.5625        .26022E-02    .10124E-02
  18  Prefactor     .10000E-03    12.276        .90712E-02** at limit **
  19  Prefactor     .10000E-03    19.344        .11775    ** at limit **
  20  norm          9.0432        9.9913        .33321E-02    .36141E-03
  21  Prefactor     6.7512        7.7439        .38607E-02   -.67234E-03
  22  norm          .10000E-03    5.9328        .90712E-02** at limit **
  23  Normalizat    .70855        .23213        .92264E-01   -.13851E-04
  24  Prefactor     1.0603        .12555        .39344E-01   -.12223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72303
  norm       = 0.0001
  Prefactor  = 10.418
  Prefactor  = 0.0001
  Prefactor  = 0.328436
  Prefactor  = 10.8419
  norm       = 2.58773
  Prefactor  = 37.905
  Prefactor  = 0.0001
  Prefactor  = 12.3336
  Prefactor  = 2.86927
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 5.36796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8096
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.0432
  Prefactor  = 6.75117
  norm       = 0.0001
  Normalizat = 0.708554
  Prefactor  = 1.0603
 **********
 **   18 **HESSE 
 **********

 FCN=   8100.931     FROM HESSE     STATUS=OK           405 CALLS     2794 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7230        10.337        .13573E-03   -1.5117    
   2  norm          .10000E-03    3.9789        .34535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.418        11.456        .12414E-03   -1.5062    
   4  Prefactor     .10000E-03    3.9463        .17425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32844        .17868        .26131E-04   -1.5593    
   6  Prefactor     10.842        9.8418        .12167E-03   -1.5049    
   7  norm          2.5877        1.5566        .84621E-04   -1.5386    
   8  Prefactor     37.905        32.863        .65100E-04   -1.4476    
   9  Prefactor     .10000E-03    7.5301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.334        18.398        .11406E-03   -1.5005    
  11  Prefactor     2.8693        .29794        .14460E-04   -1.5369    
  12  Prefactor     .10000E-03    16.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10007E-03    35.433        .14047       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3680        8.2628        .17347E-03   -1.5245    
  15  Prefactor     .10000E-03    5.7968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.810        8.0232        .10409E-03   -1.4938    
  18  Prefactor     .10000E-03    12.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    151.17        .69838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.0432        9.9323        .13328E-03   -1.5106    
  21  Prefactor     6.7512        7.7071        .15443E-03   -1.5188    
  22  norm          .10000E-03    5.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .70855        .25946        .40879E-03   -1.0356    
  24  Prefactor     1.0603        .14268        .19697E-03   -.90746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91967e-08
Minuit parameter uncertainties:
  1  10.3388
  2  1.0873e-05
  3  11.4583
  4  1.13586e-05
  5  0.178677
  6  9.84327
  7  1.55665
  8  32.8789
  9  7.06477e-05
  10  18.4067
  11  0.297938
  12  9.84988e-05
  13  0.00313272
  14  8.26454
  15  1.4312e-05
  16  4.739e-05
  17  8.02381
  18  7.73115e-06
  19  0.00113054
  20  9.93409
  21  7.70823
  22  3.26924e-05
  23  0.259908
  24  0.142727
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.869e+00  2.979e-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.060e+00  1.427e-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:  7.086e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 338.71
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.05e-06 +/- 1.09e-07
Energy Flux (Fixed Index): 3.36e-04 +/- 3.49e-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) = 8100.8404329
delta logL = 0.0908701777362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8100.84039774
delta logL = 0.0909053469059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9197       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0686       1.0000          .0000       10.000    
     3 'Normalizat'    .68696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0688       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=   8100.840     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9198        .30025        .32830E-02   -.82589E-04
   2  Index1        2.0686        .11107        .52478E-01   -.59417E-04
   3  Normalizat    .68687        .21899        .93494E-01    .38225E-04
   4  Prefactor     1.0688        .12519        .38918E-01   -.17821E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91977
  Index1     = 2.06864
  Normalizat = 0.686868
  Prefactor  = 1.0688
 **********
 **   18 **HESSE 
 **********

 FCN=   8100.840     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .87E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9198        .31129        .14509E-04   -1.5366    
   2  Index1        2.0686        .11572        .23118E-03   -.62645    
   3  Normalizat    .68687        .24648        .41428E-03   -1.0441    
   4  Prefactor     1.0688        .14108        .19623E-03   -.90470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73186e-14
Minuit parameter uncertainties:
  1  0.31129
  2  0.115737
  3  0.246873
  4  0.141133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572888': 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) = 8100.84039766
delta logL = 0.0909054259273

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.920e+00  3.113e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.069e+00  1.157e-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.069e+00  1.411e-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:  6.869e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 341.83
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.07 +/- 0.12
Photon Flux (Free Index): 1.07e-06 +/- 1.19e-07
Energy Flux (Free Index): 3.28e-04 +/- 3.75e-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/572888/cmap_HighResolution_251510401_251769601_4FGL_J2253.9+1609_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-06', energy_flux2='3.28e-04', photon_flux_error='1.09e-07', dlogl='9.09e-02', energy_flux='3.36e-04', photon_flux2='1.07e-06', job_status='DONE', time_completed='2021-09-29 02:00:19.947237', photon_index_error2='0.12', photon_index2='2.07', ts='338.71', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.75e-05', EG='0.71', time_epoch_completed='1632906019.95', return_code='0', job_id='572888', GAL2='1.07', EG2='0.69', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='1.19e-07', ts2='341.83', photon_index='2.02' WHERE bin_id='47' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:00:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 572888: <4FGL_J2253.9+1609_daily_bin47> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin47> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:32 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:45:33 2021
Terminated at Wed Sep 29 02:00:20 2021
Results reported at Wed Sep 29 02:00:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin47 343.496 16.1506 251510401 251769601 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

