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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin87
RA = 343.496, Dec = 16.1506
tmin = 261878401, tmax = 262137601
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='572950', job_status='RUN', time_executed='2021-09-29 01:49:08.418600', time_epoch_executed='1632905348.42' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572950/ft1_4FGL_J2253.9+1609_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572950/ft2_4FGL_J2253.9+1609_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572950/ft1_4FGL_J2253.9+1609_daily_bin87.fits outfile=/scratch/kocevski/572950/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin87.fits ra=343.496 dec=16.1506 rad=12.0 tmin=261878401.0 tmax=262137601.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.42
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572950/ft1_filtered_4FGL_J2253.9+1609_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/572950/ft2_4FGL_J2253.9+1609_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/572950/ltcube_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.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/572950/ft2_4FGL_J2253.9+1609_daily_bin87.fits
.....................!
real 12.98
user 12.63
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572950/ft1_filtered_4FGL_J2253.9+1609_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/572950/ft2_4FGL_J2253.9+1609_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/572950/ltcube_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.fits outfile=/scratch/kocevski/572950/expmap_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.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/572950/ltcube_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.fits
.....................!
real 190.75
user 185.14
sys 4.49

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/572950/ft1_filtered_4FGL_J2253.9+1609_daily_bin87.fits scfile=/scratch/kocevski/572950/ft2_4FGL_J2253.9+1609_daily_bin87.fits outfile=/scratch/kocevski/572950/cmap_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572950/ft1_filtered_4FGL_J2253.9+1609_daily_bin87.fits scfile=/scratch/kocevski/572950/ft2_4FGL_J2253.9+1609_daily_bin87.fits outfile=/scratch/kocevski/572950/cmap_HighResolution_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12480E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .85968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54236E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6315       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2979       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1245       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .54396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8768       1.0000         .10000E-03   10000.    
    20 'norm      '    27.743       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6977       1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88728       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=   8811.327     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2766 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.344       -.19567E-06** at limit **
   2  norm          .85961        2.7250        .41555E-06   -.45974E-03
   3  Prefactor     .10000E-03    8.7398        .16341E-06** at limit **
   4  Prefactor     .10000E-03    9.3237        .14873E-07** at limit **
   5  Prefactor     .45822        .17910        .12662E-07   -.47772E-03
   6  Prefactor     7.6309        6.4812       -.50640E-07   -.42684E-04
   7  norm          3.2799        1.7300        .19572E-07   -.38168E-04
   8  Prefactor     14.616        33.284        .43119E-05    .87927E-04
   9  Prefactor     .10000E-03    3.1369       -.28290E-08** at limit **
  10  Prefactor     9.2932        13.603        .14811E-05    .12001E-03
  11  Prefactor     .79752        .18013       -.34530E-07    .19364E-03
  12  Prefactor     .10000E-03    4.6368        .22407E-07** at limit **
  13  Prefactor     .10000E-03    13.285        .66514E-07** at limit **
  14  Prefactor     12.912        7.1074        .37786E-07   -.62593E-05
  15  Prefactor     4.6419        6.1423        .13745E-05   -.11482E-02
  16  Prefactor     3.1245        21.146       -.96801E-06   -.56020E-04
  17  Prefactor     .10000E-03    5.3134       -.32220E-07** at limit **
  18  Prefactor     .54301        5.9421       -.83531E-06   -.58251E-05
  19  Prefactor     4.8689        15.032        .49884E-05    .15922E-03
  20  norm          27.741        12.409        .94600E-06    .57354E-03
  21  Prefactor     9.7033        9.6928       -.68176E-06    .33937E-04
  22  norm          .10000E-03    3.7347       -.13890E-07** at limit **
  23  Normalizat    1.0376        .19740       -.11308E-05    .34953E-04
  24  Prefactor     .88727        .10618       -.58779E-07   -.31792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.859608
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.458223
  Prefactor  = 7.63092
  norm       = 3.27993
  Prefactor  = 14.6157
  Prefactor  = 0.0001
  Prefactor  = 9.29321
  Prefactor  = 0.797525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9119
  Prefactor  = 4.64187
  Prefactor  = 3.12449
  Prefactor  = 0.0001
  Prefactor  = 0.543015
  Prefactor  = 4.86895
  norm       = 27.7408
  Prefactor  = 9.70326
  norm       = 0.0001
  Normalizat = 1.03763
  Prefactor  = 0.887274
 **********
 **   18 **HESSE 
 **********

 FCN=   8811.327     FROM HESSE     STATUS=OK           415 CALLS     3181 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .85961        2.7371        .27485E-03   -1.5523    
   3  Prefactor     .10000E-03    11.553        .77001E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .45822        .17737        .23041E-04   -1.5573    
   6  Prefactor     7.6309        6.4899        .14516E-03   -1.5155    
   7  norm          3.2799        1.7291        .87052E-04   -1.5346    
   8  Prefactor     14.616        33.511        .10481E-03   -1.4943    
   9  Prefactor     .10000E-03    3.1436        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2932        13.635        .13143E-03   -1.5098    
  11  Prefactor     .79752        .18128        .16948E-04   -1.5529    
  12  Prefactor     .10000E-03    4.6545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.912        7.1093        .11147E-03   -1.4989    
  15  Prefactor     4.6419        8.6358        .93392E-03   -1.5277    
  16  Prefactor     3.1245        21.314        .22937E-03   -1.5354    
  17  Prefactor     .10000E-03    5.4451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .54301        21.684        .41626E-02   -1.5561    
  19  Prefactor     4.8689        15.169        .18215E-03   -1.5267    
  20  norm          27.741        12.485        .76060E-04   -1.4654    
  21  Prefactor     9.7033        9.7299        .12868E-03   -1.5085    
  22  norm          .10000E-03    3.7382        .17716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0376        .23308        .32340E-03   -.91780    
  24  Prefactor     .88727        .12617        .19683E-03   -.96587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46242e-08
Minuit parameter uncertainties:
  1  1.07542e-05
  2  2.73748
  3  0.000427807
  4  1.33534e-05
  5  0.177373
  6  6.49053
  7  1.72911
  8  33.5537
  9  1.38881e-06
  10  13.6393
  11  0.181277
  12  5.24999e-06
  13  1.01456e-05
  14  7.10977
  15  8.63807
  16  16.3293
  17  3.9766e-05
  18  6.86498
  19  15.1812
  20  12.486
  21  9.73144
  22  3.47551e-07
  23  0.233309
  24  0.126212
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.975e-01  1.813e-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:  8.873e-01  1.262e-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:  1.038e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.01
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 6.61e-08
Energy Flux (Fixed Index): 9.34e-05 +/- 2.12e-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) = 8810.44498085
delta logL = 0.881626719069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8810.44431948
delta logL = 0.882288093702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92264       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3630       1.0000          .0000       10.000    
     3 'Normalizat'    .95770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91857       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=   8810.444     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92262        .18505        .38487E-02   -.33878E-02
   2  Index1        2.3630        .24720        .12241       -.90764E-04
   3  Normalizat    .95769        .18982        .75508E-01   -.46988E-03
   4  Prefactor     .91857        .10665        .45241E-01   -.91368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.922624
  Index1     = 2.36303
  Normalizat = 0.95769
  Prefactor  = 0.918565
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.444     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92262        .19258        .17042E-04   -1.5516    
   2  Index1        2.3630        .26619        .52553E-02   -.55553    
   3  Normalizat    .95769        .22801        .33415E-03   -.94462    
   4  Prefactor     .91857        .12712        .19372E-03   -.95495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93849e-10
Minuit parameter uncertainties:
  1  0.19258
  2  0.266363
  3  0.228245
  4  0.127159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572950': 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) = 8810.44431947
delta logL = 0.882288101393

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.226e-01  1.926e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.363e+00  2.664e-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:  9.186e-01  1.272e-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:  9.577e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 58.27
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.36 +/- 0.27
Photon Flux (Free Index): 3.54e-07 +/- 8.19e-08
Energy Flux (Free Index): 8.64e-05 +/- 1.80e-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/572950/cmap_HighResolution_261878401_262137601_4FGL_J2253.9+1609_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='8.64e-05', photon_flux_error='6.61e-08', dlogl='8.82e-01', energy_flux='9.34e-05', photon_flux2='3.54e-07', job_status='DONE', time_completed='2021-09-29 02:01:01.583998', photon_index_error2='0.27', photon_index2='2.36', ts='56.01', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.04', time_epoch_completed='1632906061.58', return_code='0', job_id='572950', GAL2='0.92', EG2='0.96', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='8.19e-08', ts2='58.27', photon_index='2.02' WHERE bin_id='87' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:01:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 572950: <4FGL_J2253.9+1609_daily_bin87> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin87> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:37 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:38 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:38 2021
Terminated at Wed Sep 29 02:01:02 2021
Results reported at Wed Sep 29 02:01:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin87 343.496 16.1506 261878401 262137601 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

