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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1432
RA = 343.496, Dec = 16.1506
tmin = 610502401, tmax = 610761601
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='580099', job_status='RUN', time_executed='2021-09-29 02:07:39.123880', time_epoch_executed='1632906459.12' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580099

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580099/ft1_4FGL_J2253.9+1609_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580099/ft2_4FGL_J2253.9+1609_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580099/ft1_4FGL_J2253.9+1609_daily_bin1432.fits outfile=/scratch/kocevski/580099/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1432.fits ra=343.496 dec=16.1506 rad=12.0 tmin=610502401.0 tmax=610761601.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.61
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580099/ft1_filtered_4FGL_J2253.9+1609_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/580099/ft2_4FGL_J2253.9+1609_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/580099/ltcube_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.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/580099/ft2_4FGL_J2253.9+1609_daily_bin1432.fits
.....................!
real 12.30
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580099/ft1_filtered_4FGL_J2253.9+1609_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/580099/ft2_4FGL_J2253.9+1609_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/580099/ltcube_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.fits outfile=/scratch/kocevski/580099/expmap_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.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/580099/ltcube_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.fits
.....................!
real 191.09
user 185.56
sys 5.20

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/580099/ft1_filtered_4FGL_J2253.9+1609_daily_bin1432.fits scfile=/scratch/kocevski/580099/ft2_4FGL_J2253.9+1609_daily_bin1432.fits outfile=/scratch/kocevski/580099/cmap_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580099/ft1_filtered_4FGL_J2253.9+1609_daily_bin1432.fits scfile=/scratch/kocevski/580099/ft2_4FGL_J2253.9+1609_daily_bin1432.fits outfile=/scratch/kocevski/580099/cmap_HighResolution_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47447       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1345       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31381       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5138       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.094       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6921       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.110       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2227       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0198       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87185       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0435       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=   7482.221     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2714 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.359        .54299E-05** at limit **
   2  norm          .10000E-03    1.6388        .17796E-07** at limit **
   3  Prefactor     .10000E-03    25.624        .20555E-04** at limit **
   4  Prefactor     .10000E-03    8.2199        .77250E-06** at limit **
   5  Prefactor     .47436        .19053       -.36706E-07   -.33845E-02
   6  Prefactor     1.1350        2.2743        .83408E-06   -.14663E-02
   7  norm          2.4990        1.6012        .96565E-08    .14036E-04
   8  Prefactor     .10000E-03    9.3718       -.46384E-05** at limit **
   9  Prefactor     6.0665        6.4154       -.13699E-06    .34972E-05
  10  Prefactor     .10000E-03    36.226       -.87704E-05** at limit **
  11  Prefactor     .31380        .13247       -.23716E-08    .17506E-02
  12  Prefactor     6.5141        9.4859       -.13201E-06   -.78159E-06
  13  Prefactor     1.4802        61.126       -.38842E-04    .82905E-05
  14  Prefactor     3.8250        5.4806       -.86302E-06    .12188E-04
  15  Prefactor     .10000E-03    3.5391       -.36751E-07** at limit **
  16  Prefactor     17.093        21.758       -.20742E-05    .51392E-06
  17  Prefactor     3.1995        6.1080       -.15117E-05   -.32615E-04
  18  Prefactor     8.6912        10.109        .34293E-06    .15400E-04
  19  Prefactor     18.111        21.947        .21085E-06    .39446E-04
  20  norm          3.2231        5.7242        .20305E-05   -.13295E-05
  21  Prefactor     3.0190        5.6029        .28222E-05    .33329E-04
  22  norm          .10000E-03    18.406       -.11071E-04** at limit **
  23  Normalizat    .87180        .20533       -.20525E-07   -.82233E-06
  24  Prefactor     1.0435        .11503        .58823E-06   -.83329E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.474357
  Prefactor  = 1.13504
  norm       = 2.49898
  Prefactor  = 0.0001
  Prefactor  = 6.06647
  Prefactor  = 0.0001
  Prefactor  = 0.313804
  Prefactor  = 6.51405
  Prefactor  = 1.48016
  Prefactor  = 3.82499
  Prefactor  = 0.0001
  Prefactor  = 17.0926
  Prefactor  = 3.1995
  Prefactor  = 8.69118
  Prefactor  = 18.1111
  norm       = 3.22305
  Prefactor  = 3.01904
  norm       = 0.0001
  Normalizat = 0.871795
  Prefactor  = 1.04346
 **********
 **   18 **HESSE 
 **********

 FCN=   7482.221     FROM HESSE     STATUS=OK           403 CALLS     3117 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6463        .10812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .47436        .19266        .22673E-04   -1.5570    
   6  Prefactor     1.1350        14.391        .21888E-02   -1.5495    
   7  norm          2.4990        1.6063        .84780E-04   -1.5392    
   8  Prefactor     .10000E-03    9.3817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0665        6.4118        .16302E-03   -1.5215    
  10  Prefactor     .10000E-03    36.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .31380        .13105        .19353E-04   -1.5596    
  12  Prefactor     6.5141        9.4796        .15725E-03   -1.5197    
  13  Prefactor     1.4802        61.847        .34816E-03   -1.5465    
  14  Prefactor     3.8250        5.4680        .20637E-03   -1.5317    
  15  Prefactor     .10000E-03    3.5467        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.093        21.766        .96871E-04   -1.4881    
  17  Prefactor     3.1995        6.0533        .22649E-03   -1.5350    
  18  Prefactor     8.6912        10.090        .13596E-03   -1.5118    
  19  Prefactor     18.111        21.859        .94116E-04   -1.4857    
  20  norm          3.2231        5.6871        .22566E-03   -1.5349    
  21  Prefactor     3.0190        5.5818        .23354E-03   -1.5360    
  22  norm          .10000E-03    18.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87180        .23606        .33780E-03   -.97458    
  24  Prefactor     1.0435        .13426        .18185E-03   -.91295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14868e-08
Minuit parameter uncertainties:
  1  6.13124e-07
  2  1.75957e-06
  3  0.000314447
  4  1.14112e-05
  5  0.192659
  6  8.08508
  7  1.6063
  8  7.59571e-06
  9  6.41249
  10  7.69356e-05
  11  0.131053
  12  9.48174
  13  19.1562
  14  5.46876
  15  1.09458e-06
  16  21.7756
  17  6.0545
  18  10.0921
  19  21.8689
  20  5.68806
  21  5.58276
  22  8.92282e-06
  23  0.23634
  24  0.134307
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.138e-01  1.311e-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.043e+00  1.343e-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.718e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.96
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.78e-08
Energy Flux (Fixed Index): 3.67e-05 +/- 1.53e-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) = 7481.9221122
delta logL = 0.298842360483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7481.9045613
delta logL = 0.316393262083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37900       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3825       1.0000          .0000       10.000    
     3 'Normalizat'    .83267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0574       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=   7481.905     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37890        .15195        .43826E-02   -.76863E-03
   2  Index1        2.3818        .42596        .19551       -.53650E-04
   3  Normalizat    .83271        .19913        .77854E-01   -.68374E-04
   4  Prefactor     1.0574        .11547        .39495E-01   -.18899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.378898
  Index1     = 2.38177
  Normalizat = 0.832712
  Prefactor  = 1.05736
 **********
 **   18 **HESSE 
 **********

 FCN=   7481.905     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37890        .15303        .19532E-04   -1.5585    
   2  Index1        2.3818        .46244        .81002E-02   -.55113    
   3  Normalizat    .83271        .23199        .34462E-03   -.98867    
   4  Prefactor     1.0574        .13363        .18072E-03   -.90841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4145e-10
Minuit parameter uncertainties:
  1  0.153028
  2  0.463349
  3  0.232265
  4  0.133671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580099': 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) = 7481.9045597
delta logL = 0.316394859015

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.789e-01  1.530e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.382e+00  4.633e-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.057e+00  1.337e-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.327e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.64
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.38 +/- 0.46
Photon Flux (Free Index): 1.46e-07 +/- 6.52e-08
Energy Flux (Free Index): 3.52e-05 +/- 1.37e-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/580099/cmap_HighResolution_610502401_610761601_4FGL_J2253.9+1609_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.52e-05', photon_flux_error='4.78e-08', dlogl='3.16e-01', energy_flux='3.67e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-29 02:19:38.899281', photon_index_error2='0.46', photon_index2='2.38', ts='11.96', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.87', time_epoch_completed='1632907178.9', return_code='0', job_id='580099', GAL2='1.06', EG2='0.83', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.52e-08', ts2='12.64', photon_index='2.02' WHERE bin_id='1432' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:19:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 580099: <4FGL_J2253.9+1609_daily_bin1432> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1432 343.496 16.1506 610502401 610761601 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 :                                   645.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

