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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin709
RA = 343.496, Dec = 16.1506
tmin = 423100801, tmax = 423360001
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='576736', job_status='RUN', time_executed='2021-09-29 01:58:41.250231', time_epoch_executed='1632905921.25' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576736/ft1_4FGL_J2253.9+1609_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576736/ft2_4FGL_J2253.9+1609_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576736/ft1_4FGL_J2253.9+1609_daily_bin709.fits outfile=/scratch/kocevski/576736/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin709.fits ra=343.496 dec=16.1506 rad=12.0 tmin=423100801.0 tmax=423360001.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 4.96
user 4.72
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576736/ft1_filtered_4FGL_J2253.9+1609_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/576736/ft2_4FGL_J2253.9+1609_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/576736/ltcube_423100801_423360001_4FGL_J2253.9+1609_daily_bin709.fits outfile=/scratch/kocevski/576736/expmap_423100801_423360001_4FGL_J2253.9+1609_daily_bin709.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/576736/ltcube_423100801_423360001_4FGL_J2253.9+1609_daily_bin709.fits
.....................!
real 190.27
user 185.06
sys 4.84

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/576736/ft1_filtered_4FGL_J2253.9+1609_daily_bin709.fits scfile=/scratch/kocevski/576736/ft2_4FGL_J2253.9+1609_daily_bin709.fits outfile=/scratch/kocevski/576736/cmap_423100801_423360001_4FGL_J2253.9+1609_daily_bin709.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/576736/ft1_filtered_4FGL_J2253.9+1609_daily_bin709.fits scfile=/scratch/kocevski/576736/ft2_4FGL_J2253.9+1609_daily_bin709.fits outfile=/scratch/kocevski/576736/cmap_HighResolution_423100801_423360001_4FGL_J2253.9+1609_daily_bin709.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.687       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58034E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.301       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.656       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7281       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8803       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8256       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.840       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.221       1.0000         .10000E-03   10000.    
    20 'norm      '    21.048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1459       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92132       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91068       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=   8672.454     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2674 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7174        .26543E-06** at limit **
   2  norm          13.124        6.3736        .18058E-06   -.13299E-04
   3  Prefactor     .10000E-03    4.2722        .73157E-07** at limit **
   4  Prefactor     10.687        11.428        .34788E-06   -.16162E-04
   5  Prefactor     .58017E-01    .15089        .20693E-06   -.70961E-03
   6  Prefactor     10.299        8.0745       -.26965E-06   -.63303E-04
   7  norm          .10000E-03    .57756       -.20044E-07** at limit **
   8  Prefactor     59.597        38.611       -.57034E-05   -.12881E-03
   9  Prefactor     9.7224        9.8363       -.66414E-06   -.55167E-04
  10  Prefactor     9.8356        25.933       -.97962E-07   -.64169E-05
  11  Prefactor     5.8260        .42499        .33234E-07   -.19658E-02
  12  Prefactor     .10000E-03    4.3388       -.72828E-07** at limit **
  13  Prefactor     .10000E-03    8.6920       -.21602E-06** at limit **
  14  Prefactor     10.849        9.7597        .11840E-05    .52222E-04
  15  Prefactor     6.6098        11.061       -.81963E-06   -.65846E-04
  16  Prefactor     29.171        24.008        .13497E-06   -.94453E-05
  17  Prefactor     12.722        8.8716        .70490E-06    .76428E-05
  18  Prefactor     .10000E-03    3.3568        .12190E-06** at limit **
  19  Prefactor     18.229        18.225       -.85852E-06   -.41132E-04
  20  norm          21.023        13.278       -.27685E-05   -.26387E-03
  21  Prefactor     1.1467        22.941        .12087E-04   -.14024E-03
  22  norm          .10000E-03    5.1409       -.70607E-07** at limit **
  23  Normalizat    .92106        .25606       -.27361E-05   -.11040E-03
  24  Prefactor     .91072        .13155        .24092E-06   -.24525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.1242
  Prefactor  = 0.0001
  Prefactor  = 10.6872
  Prefactor  = 0.0580172
  Prefactor  = 10.2987
  norm       = 0.0001
  Prefactor  = 59.5973
  Prefactor  = 9.72241
  Prefactor  = 9.83556
  Prefactor  = 5.82597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.849
  Prefactor  = 6.60983
  Prefactor  = 29.1711
  Prefactor  = 12.7218
  Prefactor  = 0.0001
  Prefactor  = 18.2288
  norm       = 21.0233
  Prefactor  = 1.14671
  norm       = 0.0001
  Normalizat = 0.921063
  Prefactor  = 0.910719
 **********
 **   18 **HESSE 
 **********

 FCN=   8672.454     FROM HESSE     STATUS=OK           403 CALLS     3077 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.124        6.3727        .11057E-03   -1.4983    
   3  Prefactor     .10000E-03    4.2861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.687        11.432        .12256E-03   -1.5054    
   5  Prefactor     .58017E-01    .15881        .54220E-03   -1.5660    
   6  Prefactor     10.299        8.0643        .12484E-03   -1.5066    
   7  norm          .10000E-03    .58398        .69084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.597        39.144        .25973E-03   -1.4162    
   9  Prefactor     9.7224        9.8414        .12848E-03   -1.5084    
  10  Prefactor     9.8356        25.965        .12748E-03   -1.5081    
  11  Prefactor     5.8260        .42763        .14867E-04   -1.5225    
  12  Prefactor     .10000E-03    4.3571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.849        9.7811        .12169E-03   -1.5049    
  15  Prefactor     6.6098        11.064        .15599E-03   -1.5194    
  16  Prefactor     29.171        24.014        .74182E-04   -1.4627    
  17  Prefactor     12.722        8.8790        .11232E-03   -1.4994    
  18  Prefactor     .10000E-03    3.3600        .16663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.229        18.248        .93829E-04   -1.4854    
  20  norm          21.023        13.408        .87304E-04   -1.4791    
  21  Prefactor     1.1467        24.328        .43323E-03   -1.5494    
  22  norm          .10000E-03    5.1436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92106        .29569        .41723E-03   -.95724    
  24  Prefactor     .91072        .15395        .23175E-03   -.95768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31079e-08
Minuit parameter uncertainties:
  1  8.97537e-06
  2  6.37304
  3  1.24955e-06
  4  11.4343
  5  0.158807
  6  8.06515
  7  2.37999e-06
  8  39.1608
  9  9.843
  10  25.9947
  11  0.427634
  12  4.47512e-06
  13  1.30439e-06
  14  9.78258
  15  11.0677
  16  24.0218
  17  8.87988
  18  1.19951e-06
  19  18.2531
  20  13.4098
  21  10.5679
  22  1.54987e-06
  23  0.296214
  24  0.154019
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.826e+00  4.276e-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:  9.107e-01  1.540e-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.211e-01  2.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 740.14
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.12e-06 +/- 1.56e-07
Energy Flux (Fixed Index): 6.82e-04 +/- 5.01e-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) = 8672.09982896
delta logL = 0.354440038085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8672.08619294
delta logL = 0.368076063291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9596       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0898       1.0000          .0000       10.000    
     3 'Normalizat'    .86659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93203       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=   8672.086     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9596        .42805        .33798E-02   -.91037E-04
   2  Index1        2.0898        .80079E-01    .38994E-01   -.57832E-04
   3  Normalizat    .86658        .24249        .96560E-01    .34692E-04
   4  Prefactor     .93203        .13189        .45412E-01    .59298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9596
  Index1     = 2.08977
  Normalizat = 0.866582
  Prefactor  = 0.932033
 **********
 **   18 **HESSE 
 **********

 FCN=   8672.086     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .22E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9596        .43991        .14936E-04   -1.5220    
   2  Index1        2.0898        .82504E-01    .17211E-03   -.62124    
   3  Normalizat    .86658        .28251        .42786E-03   -.97645    
   4  Prefactor     .93203        .15374        .22930E-03   -.95031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15217e-14
Minuit parameter uncertainties:
  1  0.43991
  2  0.0825095
  3  0.28299
  4  0.153807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576736': 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) = 8672.08619294
delta logL = 0.368076066103

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.960e+00  4.399e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.090e+00  8.251e-02  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.320e-01  1.538e-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.666e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 750.34
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.09 +/- 0.08
Photon Flux (Free Index): 2.19e-06 +/- 1.68e-07
Energy Flux (Free Index): 6.58e-04 +/- 5.33e-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/576736/cmap_HighResolution_423100801_423360001_4FGL_J2253.9+1609_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.12e-06', energy_flux2='6.58e-04', photon_flux_error='1.56e-07', dlogl='3.68e-01', energy_flux='6.82e-04', photon_flux2='2.19e-06', job_status='DONE', time_completed='2021-09-29 02:11:22.941850', photon_index_error2='0.08', photon_index2='2.09', ts='740.14', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='5.33e-05', EG='0.92', time_epoch_completed='1632906682.94', return_code='0', job_id='576736', GAL2='0.93', EG2='0.87', return_code2='0', energy_flux_error='5.01e-05', photon_flux_error2='1.68e-07', ts2='750.34', photon_index='2.02' WHERE bin_id='709' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 576736: <4FGL_J2253.9+1609_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin709 343.496 16.1506 423100801 423360001 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

