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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin43
RA = 343.496, Dec = 16.1506
tmin = 250473601, tmax = 250732801
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='572879', job_status='RUN', time_executed='2021-09-29 01:47:32.659049', time_epoch_executed='1632905252.66' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572879

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572879/ft1_4FGL_J2253.9+1609_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572879/ft2_4FGL_J2253.9+1609_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572879/ft1_4FGL_J2253.9+1609_daily_bin43.fits outfile=/scratch/kocevski/572879/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin43.fits ra=343.496 dec=16.1506 rad=12.0 tmin=250473601.0 tmax=250732801.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.33
user 1.18
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572879/ft1_filtered_4FGL_J2253.9+1609_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/572879/ft2_4FGL_J2253.9+1609_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/572879/ltcube_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.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/572879/ft2_4FGL_J2253.9+1609_daily_bin43.fits
.....................!
real 12.39
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572879/ft1_filtered_4FGL_J2253.9+1609_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/572879/ft2_4FGL_J2253.9+1609_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/572879/ltcube_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.fits outfile=/scratch/kocevski/572879/expmap_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.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/572879/ltcube_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.fits
.....................!
real 191.03
user 185.47
sys 5.17

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/572879/ft1_filtered_4FGL_J2253.9+1609_daily_bin43.fits scfile=/scratch/kocevski/572879/ft2_4FGL_J2253.9+1609_daily_bin43.fits outfile=/scratch/kocevski/572879/cmap_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572879/ft1_filtered_4FGL_J2253.9+1609_daily_bin43.fits scfile=/scratch/kocevski/572879/ft2_4FGL_J2253.9+1609_daily_bin43.fits outfile=/scratch/kocevski/572879/cmap_HighResolution_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .37156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11800       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3062       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1495       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.360       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .20903E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3244       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90517       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88761       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=   10305.72     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2692 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.137        .57836E-05** at limit **
   2  norm          .36917        1.6447       -.22774E-06   -.11361E-04
   3  Prefactor     .10000E-03    4.3416       -.24218E-05** at limit **
   4  Prefactor     .10000E-03    5.6976        .27785E-05** at limit **
   5  Prefactor     .11806        .12059        .39979E-08   -.34708E-03
   6  Prefactor     .10000E-03    1.2544       -.26216E-07** at limit **
   7  norm          1.9025        1.2137       -.10409E-07    .46044E-04
   8  Prefactor     5.1378        21.351       -.55502E-05   -.63245E-04
   9  Prefactor     8.3059        6.8515        .11208E-06   -.43121E-03
  10  Prefactor     .10000E-03    7.9788       -.35801E-05** at limit **
  11  Prefactor     1.7916        .20225        .47437E-08    .15074E-02
  12  Prefactor     .10000E-03    3.0562        .19945E-08** at limit **
  13  Prefactor     34.856        29.443       -.54516E-06    .14589E-04
  14  Prefactor     3.2062        3.2888        .13326E-05   -.30179E-02
  15  Prefactor     .10000E-03    4.8450        .22220E-06** at limit **
  16  Prefactor     9.1420        16.755       -.71972E-05   -.22599E-03
  17  Prefactor     11.361        6.4607        .10556E-06   -.83192E-03
  18  Prefactor     15.453        10.150       -.27524E-06    .31607E-03
  19  Prefactor     .10000E-03    8.4067       -.28106E-05** at limit **
  20  norm          .10005E-03    5.4490       -.10805E-05** at limit **
  21  Prefactor     8.3155        6.7012        .11742E-07    .58205E-03
  22  norm          .10000E-03    4.0111        .12471E-05** at limit **
  23  Normalizat    .90501        .18191        .37473E-06    .20661E-03
  24  Prefactor     .88768        .96583E-01    .32023E-06    .23780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.369166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.118057
  Prefactor  = 0.0001
  norm       = 1.90251
  Prefactor  = 5.13783
  Prefactor  = 8.30594
  Prefactor  = 0.0001
  Prefactor  = 1.79164
  Prefactor  = 0.0001
  Prefactor  = 34.8559
  Prefactor  = 3.20621
  Prefactor  = 0.0001
  Prefactor  = 9.14203
  Prefactor  = 11.3611
  Prefactor  = 15.4531
  Prefactor  = 0.0001
  norm       = 0.000100054
  Prefactor  = 8.31545
  norm       = 0.0001
  Normalizat = 0.90501
  Prefactor  = 0.887685
 **********
 **   18 **HESSE 
 **********

 FCN=   10305.72     FROM HESSE     STATUS=OK           403 CALLS     3095 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .36917        6.7262        .24939E-02   -1.5586    
   3  Prefactor     .10000E-03    4.3772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11806        .11118        .33595E-03   -1.5639    
   6  Prefactor     .10000E-03    1.2553        .11103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9025        1.2197        .86498E-04   -1.5432    
   8  Prefactor     5.1378        21.529        .17731E-03   -1.5255    
   9  Prefactor     8.3059        6.8847        .69551E-03   -1.5131    
  10  Prefactor     .10000E-03    8.0176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7916        .20397        .14295E-04   -1.5440    
  12  Prefactor     .10000E-03    3.0623        .17330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.856        29.516        .67877E-04   -1.4526    
  14  Prefactor     3.2062        5.5098        .11317E-02   -1.5350    
  15  Prefactor     .10000E-03    4.8744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1420        16.927        .13250E-03   -1.5103    
  17  Prefactor     11.361        6.5471        .59430E-03   -1.5034    
  18  Prefactor     15.453        9.8205        .10186E-03   -1.4922    
  19  Prefactor     .10000E-03    8.4430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10005E-03    21.967        .39583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3155        6.1637        .13895E-03   -1.5131    
  22  norm          .10000E-03    4.0189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90501        .21326        .33857E-03   -.96284    
  24  Prefactor     .88768        .11427        .19309E-03   -.96573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67452e-08
Minuit parameter uncertainties:
  1  0.000165114
  2  3.15156
  3  5.02139e-05
  4  4.70393e-05
  5  0.11118
  6  6.23711e-07
  7  1.21971
  8  21.0472
  9  6.88531
  10  9.7172e-05
  11  0.203969
  12  3.30039e-06
  13  29.5279
  14  5.51062
  15  1.69066e-06
  16  16.9356
  17  6.54751
  18  9.82149
  19  8.13021e-05
  20  0.0021738
  21  6.1642
  22  2.22282e-05
  23  0.213455
  24  0.114303
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.792e+00  2.040e-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.877e-01  1.143e-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.050e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 236.57
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.53e-07 +/- 7.44e-08
Energy Flux (Fixed Index): 2.10e-04 +/- 2.39e-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) = 10305.4692539
delta logL = 0.252674935506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10305.4669352
delta logL = 0.254993673088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8530       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1116       1.0000          .0000       10.000    
     3 'Normalizat'    .87257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90093       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=   10305.47     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8530        .20853        .32581E-02    .18313E-04
   2  Index1        2.1116        .12348        .66208E-01   -.88366E-04
   3  Normalizat    .87256        .17285        .77667E-01    .35432E-04
   4  Prefactor     .90093        .96695E-01    .45017E-01    .81980E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85303
  Index1     = 2.11163
  Normalizat = 0.872559
  Prefactor  = 0.900925
 **********
 **   18 **HESSE 
 **********

 FCN=   10305.47     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .32E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8530        .21823        .14402E-04   -1.5436    
   2  Index1        2.1116        .13038        .29073E-03   -.61588    
   3  Normalizat    .87256        .20445        .34378E-03   -.97431    
   4  Prefactor     .90093        .11407        .19182E-03   -.96109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20143e-14
Minuit parameter uncertainties:
  1  0.218228
  2  0.130398
  3  0.204632
  4  0.114104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572879': 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) = 10305.4669351
delta logL = 0.25499370477

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.853e+00  2.182e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.112e+00  1.304e-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.009e-01  1.141e-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:  8.726e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 236.34
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.11 +/- 0.13
Photon Flux (Free Index): 6.82e-07 +/- 8.43e-08
Energy Flux (Free Index): 2.01e-04 +/- 2.50e-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/572879/cmap_HighResolution_250473601_250732801_4FGL_J2253.9+1609_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-07', energy_flux2='2.01e-04', photon_flux_error='7.44e-08', dlogl='2.55e-01', energy_flux='2.10e-04', photon_flux2='6.82e-07', job_status='DONE', time_completed='2021-09-29 02:00:33.469361', photon_index_error2='0.13', photon_index2='2.11', ts='236.57', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='0.91', time_epoch_completed='1632906033.47', return_code='0', job_id='572879', GAL2='0.90', EG2='0.87', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='8.43e-08', ts2='236.34', photon_index='2.02' WHERE bin_id='43' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 572879: <4FGL_J2253.9+1609_daily_bin43> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin43> 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) <bullet0072>, 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:34 2021
Results reported at Wed Sep 29 02:00:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin43 343.496 16.1506 250473601 250732801 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

