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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1399
RA = 343.496, Dec = 16.1506
tmin = 601948801, tmax = 602208001
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='580051', job_status='RUN', time_executed='2021-09-29 02:08:10.466471', time_epoch_executed='1632906490.47' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580051/ft1_4FGL_J2253.9+1609_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580051/ft2_4FGL_J2253.9+1609_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580051/ft1_4FGL_J2253.9+1609_daily_bin1399.fits outfile=/scratch/kocevski/580051/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1399.fits ra=343.496 dec=16.1506 rad=12.0 tmin=601948801.0 tmax=602208001.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.80
user 3.62
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580051/ft1_filtered_4FGL_J2253.9+1609_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/580051/ft2_4FGL_J2253.9+1609_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/580051/ltcube_601948801_602208001_4FGL_J2253.9+1609_daily_bin1399.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/580051/ft2_4FGL_J2253.9+1609_daily_bin1399.fits
.....................!
real 11.64
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580051/ft1_filtered_4FGL_J2253.9+1609_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/580051/ft2_4FGL_J2253.9+1609_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/580051/ltcube_601948801_602208001_4FGL_J2253.9+1609_daily_bin1399.fits outfile=/scratch/kocevski/580051/expmap_601948801_602208001_4FGL_J2253.9+1609_daily_bin1399.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/580051/ltcube_601948801_602208001_4FGL_J2253.9+1609_daily_bin1399.fits
.....................!
real 191.14
user 186.20
sys 4.62

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/580051/ft1_filtered_4FGL_J2253.9+1609_daily_bin1399.fits scfile=/scratch/kocevski/580051/ft2_4FGL_J2253.9+1609_daily_bin1399.fits outfile=/scratch/kocevski/580051/cmap_601948801_602208001_4FGL_J2253.9+1609_daily_bin1399.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11963E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2724       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.522       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .47456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.460       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.691       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2194       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11992E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.130       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13652E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65827       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1813       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=   7553.766     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2828 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.331       -.35135E-06** at limit **
   2  norm          .10000E-03    3.9397       -.21479E-07** at limit **
   3  Prefactor     .10000E-03    10.742        .18456E-06** at limit **
   4  Prefactor     6.6138        11.129       -.11773E-06   -.10002E-03
   5  Prefactor     .22188        .16979       -.29001E-07   -.20863E-02
   6  Prefactor     8.2722        6.4176       -.24336E-07   -.28139E-04
   7  norm          1.1657        1.6865       -.15687E-07   -.11480E-03
   8  Prefactor     .10000E-03    84.857        .19643E-05** at limit **
   9  Prefactor     42.522        16.184       -.23546E-07   -.40283E-04
  10  Prefactor     .10000E-03    42.258        .15570E-07** at limit **
  11  Prefactor     .47444        .17301       -.32234E-07   -.51675E-02
  12  Prefactor     14.460        10.624       -.31314E-07    .14553E-06
  13  Prefactor     39.679        43.325        .49406E-06   -.33519E-05
  14  Prefactor     1.2189        2.9142        .18015E-05   -.89832E-03
  15  Prefactor     .10000E-03    4.9682       -.86666E-07** at limit **
  16  Prefactor     .10000E-03    8.9437        .92284E-09** at limit **
  17  Prefactor     .10001E-03    9.8841        .50611E-05** at limit **
  18  Prefactor     .10000E-03    5.0186       -.21631E-06** at limit **
  19  Prefactor     .10000E-03    64.593       -.13209E-05** at limit **
  20  norm          14.141        11.796        .66514E-06    .20794E-03
  21  Prefactor     .10000E-03    16.667       -.80895E-05** at limit **
  22  norm          .10000E-03    13.514        .31759E-06** at limit **
  23  Normalizat    .65838        .24237        .16433E-05    .11670E-03
  24  Prefactor     1.1813        .12886       -.30967E-06    .17631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61382
  Prefactor  = 0.221883
  Prefactor  = 8.27224
  norm       = 1.16573
  Prefactor  = 0.000100002
  Prefactor  = 42.5221
  Prefactor  = 0.0001
  Prefactor  = 0.474437
  Prefactor  = 14.4597
  Prefactor  = 39.6791
  Prefactor  = 1.21888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 14.1409
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.658378
  Prefactor  = 1.18134
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.766     FROM HESSE     STATUS=OK           401 CALLS     3229 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.1049        .33678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6138        11.177        .78031E-03   -1.5194    
   5  Prefactor     .22188        .16265        .29718E-03   -1.5614    
   6  Prefactor     8.2722        6.4166        .13939E-03   -1.5133    
   7  norm          1.1657        1.6375        .12777E-03   -1.5492    
   8  Prefactor     .10000E-03    85.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.522        16.099        .61476E-04   -1.4403    
  10  Prefactor     .10000E-03    42.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .47444        .17340        .20437E-04   -1.5570    
  12  Prefactor     14.460        10.624        .10533E-03   -1.4947    
  13  Prefactor     39.679        43.298        .63623E-04   -1.4447    
  14  Prefactor     1.2189        11.108        .20430E-02   -1.5487    
  15  Prefactor     .10000E-03    4.9769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    15.836        .35363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    65.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.141        11.819        .10655E-03   -1.4956    
  21  Prefactor     .10000E-03    27.785        .40244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .65838        .26015        .41148E-03   -1.0556    
  24  Prefactor     1.1813        .14293        .18119E-03   -.86907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28521e-09
Minuit parameter uncertainties:
  1  8.72898e-06
  2  3.45485e-06
  3  1.87324e-05
  4  11.1809
  5  0.162646
  6  6.41716
  7  1.63753
  8  0.00090414
  9  16.101
  10  0.000232915
  11  0.173397
  12  10.6251
  13  43.3322
  14  7.36053
  15  1.68163e-05
  16  2.24142e-06
  17  0.000681837
  18  1.09112e-05
  19  0.00103339
  20  11.8211
  21  8.54379e-05
  22  1.90403e-05
  23  0.260637
  24  0.142975
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.744e-01  1.734e-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.181e+00  1.430e-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.584e-01  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.33
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.32e-08
Energy Flux (Fixed Index): 5.56e-05 +/- 2.03e-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) = 7553.67685566
delta logL = 0.0895420165079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7553.67101904
delta logL = 0.0953786283371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53439       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1821       1.0000          .0000       10.000    
     3 'Normalizat'    .62919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1911       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=   7553.671     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53440        .19093        .46745E-02   -.13851E-02
   2  Index1        2.1821        .30646        .14360       -.17571E-03
   3  Normalizat    .62918        .22954        .94807E-01   -.10488E-04
   4  Prefactor     1.1911        .12963        .34845E-01    .30414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.5344
  Index1     = 2.18206
  Normalizat = 0.629175
  Prefactor  = 1.19109
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.671     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53440        .21869        .20721E-04   -1.5562    
   2  Index1        2.1821        .36720        .61165E-02   -.59872    
   3  Normalizat    .62918        .25638        .42011E-03   -1.0676    
   4  Prefactor     1.1911        .14397        .18049E-03   -.86606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93499e-10
Minuit parameter uncertainties:
  1  0.218687
  2  0.367683
  3  0.25687
  4  0.144017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580051': 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) = 7553.67101904
delta logL = 0.0953786332175

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.344e-01  2.187e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.182e+00  3.677e-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.191e+00  1.440e-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.292e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.53
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.18 +/- 0.37
Photon Flux (Free Index): 1.98e-07 +/- 8.72e-08
Energy Flux (Free Index): 5.52e-05 +/- 1.92e-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/580051/cmap_HighResolution_601948801_602208001_4FGL_J2253.9+1609_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='5.52e-05', photon_flux_error='6.32e-08', dlogl='9.54e-02', energy_flux='5.56e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-09-29 02:20:46.121484', photon_index_error2='0.37', photon_index2='2.18', ts='19.33', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.66', time_epoch_completed='1632907246.12', return_code='0', job_id='580051', GAL2='1.19', EG2='0.63', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='8.72e-08', ts2='19.53', photon_index='2.02' WHERE bin_id='1399' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 580051: <4FGL_J2253.9+1609_daily_bin1399> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1399> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:36 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05: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 02:05:38 2021
Terminated at Wed Sep 29 02:20:46 2021
Results reported at Wed Sep 29 02:20:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1399 343.496 16.1506 601948801 602208001 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 :                                   658.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

