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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1115
RA = 343.496, Dec = 16.1506
tmin = 528336001, tmax = 528595201
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='578546', job_status='RUN', time_executed='2021-09-29 02:03:09.552608', time_epoch_executed='1632906189.55' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578546/ft1_4FGL_J2253.9+1609_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578546/ft2_4FGL_J2253.9+1609_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578546/ft1_4FGL_J2253.9+1609_daily_bin1115.fits outfile=/scratch/kocevski/578546/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1115.fits ra=343.496 dec=16.1506 rad=12.0 tmin=528336001.0 tmax=528595201.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.41
user 3.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578546/ft1_filtered_4FGL_J2253.9+1609_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/578546/ft2_4FGL_J2253.9+1609_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/578546/ltcube_528336001_528595201_4FGL_J2253.9+1609_daily_bin1115.fits outfile=/scratch/kocevski/578546/expmap_528336001_528595201_4FGL_J2253.9+1609_daily_bin1115.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/578546/ltcube_528336001_528595201_4FGL_J2253.9+1609_daily_bin1115.fits
.....................!
real 190.42
user 186.08
sys 4.03

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/578546/ft1_filtered_4FGL_J2253.9+1609_daily_bin1115.fits scfile=/scratch/kocevski/578546/ft2_4FGL_J2253.9+1609_daily_bin1115.fits outfile=/scratch/kocevski/578546/cmap_528336001_528595201_4FGL_J2253.9+1609_daily_bin1115.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578546/ft1_filtered_4FGL_J2253.9+1609_daily_bin1115.fits scfile=/scratch/kocevski/578546/ft2_4FGL_J2253.9+1609_daily_bin1115.fits outfile=/scratch/kocevski/578546/cmap_HighResolution_528336001_528595201_4FGL_J2253.9+1609_daily_bin1115.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.813       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3082       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.516       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14436E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.230       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.276       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 '    6.2503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.185       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9133       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74763       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99302       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=   8234.019     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2349 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7318        .11324E-05** at limit **
   2  norm          .10000E-03    1.3665       -.65575E-08** at limit **
   3  Prefactor     9.5655        10.257        .28311E-06   -.29913E-03
   4  Prefactor     14.814        11.582       -.30659E-07   -.42336E-04
   5  Prefactor     3.0895        .36713        .39391E-08   -.38596E-04
   6  Prefactor     5.3083        5.5157       -.22131E-06    .62137E-03
   7  norm          1.8354        1.4423       -.34284E-07    .14337E-04
   8  Prefactor     6.1411        19.081        .99158E-06   -.21802E-03
   9  Prefactor     26.511        15.144        .53313E-06    .85629E-04
  10  Prefactor     .10000E-03    69.098       -.74226E-06** at limit **
  11  Prefactor     1.2524        .21999       -.72505E-08   -.98317E-04
  12  Prefactor     .10000E-03    20.836        .76704E-06** at limit **
  13  Prefactor     11.228        30.063       -.84884E-06   -.30282E-04
  14  Prefactor     13.276        8.8866        .19676E-06   -.51657E-03
  15  Prefactor     .10000E-03    5.5842        .41447E-05** at limit **
  16  Prefactor     .10000E-03    12.349       -.93685E-06** at limit **
  17  Prefactor     6.2505        5.6585        .69354E-06   -.14496E-02
  18  Prefactor     19.185        13.008       -.97053E-07    .10294E-04
  19  Prefactor     .10000E-03    5.5408       -.34590E-05** at limit **
  20  norm          5.9106        7.0336        .78528E-06   -.10345E-02
  21  Prefactor     .10000E-03    6.7007       -.15205E-05** at limit **
  22  norm          .10000E-03    4.7065        .50121E-07** at limit **
  23  Normalizat    .74759        .22565       -.66661E-06   -.11509E-04
  24  Prefactor     .99304        .12196       -.54317E-07   -.15846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.56546
  Prefactor  = 14.8142
  Prefactor  = 3.08953
  Prefactor  = 5.30831
  norm       = 1.83542
  Prefactor  = 6.14109
  Prefactor  = 26.5114
  Prefactor  = 0.0001
  Prefactor  = 1.25242
  Prefactor  = 0.0001
  Prefactor  = 11.2284
  Prefactor  = 13.2765
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.25053
  Prefactor  = 19.1846
  Prefactor  = 0.000100001
  norm       = 5.91058
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.747589
  Prefactor  = 0.993036
 **********
 **   18 **HESSE 
 **********

 FCN=   8234.019     FROM HESSE     STATUS=OK           403 CALLS     2752 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3770        .10358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5655        10.367        .64786E-03   -1.5089    
   4  Prefactor     14.814        11.606        .10407E-03   -1.4938    
   5  Prefactor     3.0895        .36808        .17915E-04   -1.5356    
   6  Prefactor     5.3083        5.6152        .87223E-03   -1.5247    
   7  norm          1.8354        1.4453        .92048E-04   -1.5437    
   8  Prefactor     6.1411        19.609        .81002E-03   -1.5212    
   9  Prefactor     26.511        15.122        .77797E-04   -1.4678    
  10  Prefactor     .10000E-03    72.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2524        .22026        .16583E-04   -1.5484    
  12  Prefactor     .10000E-03    21.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.228        30.122        .11955E-03   -1.5038    
  14  Prefactor     13.276        8.9831        .54967E-03   -1.4979    
  15  Prefactor     .10000E-03    5.7856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2505        6.5532        .80282E-03   -1.5208    
  18  Prefactor     19.185        13.053        .91442E-04   -1.4832    
  19  Prefactor     .10000E-03    5.6776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9106        7.8844        .82569E-03   -1.5222    
  21  Prefactor     .10000E-03    6.8308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.7099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .74759        .25870        .40701E-03   -1.0204    
  24  Prefactor     .99304        .14005        .20352E-03   -.92962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86622e-09
Minuit parameter uncertainties:
  1  5.98622e-05
  2  1.17454e-08
  3  10.3688
  4  11.6075
  5  0.368082
  6  5.61578
  7  1.44531
  8  19.6297
  9  15.124
  10  7.11533e-05
  11  0.220259
  12  2.61878e-05
  13  30.163
  14  8.98399
  15  0.000176694
  16  5.75218e-05
  17  6.55399
  18  13.0545
  19  0.000146822
  20  7.88578
  21  6.22261e-05
  22  2.35977e-06
  23  0.259129
  24  0.140097
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.252e+00  2.203e-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.930e-01  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  7.476e-01  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 92.01
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.57e-07 +/- 8.03e-08
Energy Flux (Fixed Index): 1.47e-04 +/- 2.58e-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) = 8233.35774752
delta logL = 0.661130452499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8233.34765155
delta logL = 0.671226414712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3705       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2605       1.0000          .0000       10.000    
     3 'Normalizat'    .67907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0209       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=   8233.348     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3705        .22971        .37929E-02    .35240E-04
   2  Index1        2.2605        .20004        .95885E-01    .21240E-03
   3  Normalizat    .67907        .22237        .95728E-01   -.43691E-04
   4  Prefactor     1.0209        .12541        .42048E-01   -.42359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37051
  Index1     = 2.2605
  Normalizat = 0.679072
  Prefactor  = 1.0209
 **********
 **   18 **HESSE 
 **********

 FCN=   8233.348     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3705        .24033        .16776E-04   -1.5474    
   2  Index1        2.2605        .21333        .41737E-03   -.57985    
   3  Normalizat    .67907        .25218        .42422E-03   -1.0472    
   4  Prefactor     1.0209        .14208        .20092E-03   -.92036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22768e-10
Minuit parameter uncertainties:
  1  0.240333
  2  0.213418
  3  0.252614
  4  0.142134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578546': 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) = 8233.34765138
delta logL = 0.671226586866

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.371e+00  2.403e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.260e+00  2.134e-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.021e+00  1.421e-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.791e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 93.07
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.26 +/- 0.21
Photon Flux (Free Index): 5.15e-07 +/- 9.80e-08
Energy Flux (Free Index): 1.35e-04 +/- 2.42e-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/578546/cmap_HighResolution_528336001_528595201_4FGL_J2253.9+1609_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-07', energy_flux2='1.35e-04', photon_flux_error='8.03e-08', dlogl='6.71e-01', energy_flux='1.47e-04', photon_flux2='5.15e-07', job_status='DONE', time_completed='2021-09-29 02:14:21.841975', photon_index_error2='0.21', photon_index2='2.26', ts='92.01', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='0.75', time_epoch_completed='1632906861.84', return_code='0', job_id='578546', GAL2='1.02', EG2='0.68', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='9.80e-08', ts2='93.07', photon_index='2.02' WHERE bin_id='1115' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:14:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 578546: <4FGL_J2253.9+1609_daily_bin1115> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1115> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:39 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:40 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:00:40 2021
Terminated at Wed Sep 29 02:14:22 2021
Results reported at Wed Sep 29 02:14:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1115 343.496 16.1506 528336001 528595201 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 :                                   655.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

