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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1403
RA = 343.496, Dec = 16.1506
tmin = 602985601, tmax = 603244801
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='580057', job_status='RUN', time_executed='2021-09-29 02:07:49.423969', time_epoch_executed='1632906469.42' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580057/ft1_4FGL_J2253.9+1609_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580057/ft1_4FGL_J2253.9+1609_daily_bin1403.fits outfile=/scratch/kocevski/580057/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1403.fits ra=343.496 dec=16.1506 rad=12.0 tmin=602985601.0 tmax=603244801.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.00
user 2.82
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580057/ft1_filtered_4FGL_J2253.9+1609_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/580057/ltcube_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.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/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits
.....................!
real 12.10
user 11.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580057/ft1_filtered_4FGL_J2253.9+1609_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/580057/ltcube_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.fits outfile=/scratch/kocevski/580057/expmap_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.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/580057/ltcube_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.fits
.....................!
real 192.17
user 187.22
sys 4.65

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/580057/ft1_filtered_4FGL_J2253.9+1609_daily_bin1403.fits scfile=/scratch/kocevski/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits outfile=/scratch/kocevski/580057/cmap_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580057/ft1_filtered_4FGL_J2253.9+1609_daily_bin1403.fits scfile=/scratch/kocevski/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits outfile=/scratch/kocevski/580057/cmap_HighResolution_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.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/580057/ft1_filtered_4FGL_J2253.9+1609_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/580057/ft2_4FGL_J2253.9+1609_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580057/Model_4FGL_J2253.9+1609_daily_bin1403.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/580057/ft1_filtered_4FGL_J2253.9+1609_daily_bin1403.fits.....................!
real 85.84
user 84.54
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54280E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .97201       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7529       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.864       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3296       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9738       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.550       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0562       1.0000         .10000E-03   10000.    
    22 'norm      '    8.6739       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73368       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0780       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=   8226.131     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2709 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7940       -.94242E-07** at limit **
   2  norm          10.017        5.7808       -.30076E-06    .10105E-04
   3  Prefactor     .10000E-03    8.2137        .26646E-06** at limit **
   4  Prefactor     .10000E-03    5.6162       -.37603E-06** at limit **
   5  Prefactor     .54198E-01    .16072       -.12424E-06   -.76155E-03
   6  Prefactor     .10000E-03    5.4793        .40445E-06** at limit **
   7  norm          .97178        1.3392        .97768E-08   -.19396E-03
   8  Prefactor     .10000E-03    32.937        .23292E-05** at limit **
   9  Prefactor     34.511        12.715       -.55649E-06    .19009E-04
  10  Prefactor     .10000E-03    11.609       -.29677E-06** at limit **
  11  Prefactor     .25286        .14383       -.45108E-07   -.37902E-03
  12  Prefactor     1.7511        3.0136        .11687E-05   -.16666E-02
  13  Prefactor     57.076        54.935       -.14577E-04   -.53224E-04
  14  Prefactor     11.838        8.3486       -.15017E-06   -.22023E-03
  15  Prefactor     10.863        12.216        .10319E-06    .98319E-05
  16  Prefactor     6.3232        19.112       -.94017E-05   -.35034E-04
  17  Prefactor     1.9712        6.0706       -.13001E-05   -.16228E-03
  18  Prefactor     .10000E-03    4.2762       -.50691E-07** at limit **
  19  Prefactor     30.555        18.767        .18119E-05    .90569E-04
  20  norm          3.4888        11.370        .77725E-05    .17017E-03
  21  Prefactor     5.0339        11.497       -.71515E-05   -.24417E-03
  22  norm          8.6745        9.1461        .15370E-06    .14204E-04
  23  Normalizat    .73374        .23493        .53928E-05    .27214E-04
  24  Prefactor     1.0780        .11879       -.55284E-06    .26018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.0172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0541982
  Prefactor  = 0.0001
  norm       = 0.971777
  Prefactor  = 0.0001
  Prefactor  = 34.5112
  Prefactor  = 0.0001
  Prefactor  = 0.252857
  Prefactor  = 1.75107
  Prefactor  = 57.0758
  Prefactor  = 11.8377
  Prefactor  = 10.8629
  Prefactor  = 6.32315
  Prefactor  = 1.97117
  Prefactor  = 0.0001
  Prefactor  = 30.5546
  norm       = 3.48878
  Prefactor  = 5.03392
  norm       = 8.67455
  Normalizat = 0.733736
  Prefactor  = 1.078
 **********
 **   18 **HESSE 
 **********

 FCN=   8226.131     FROM HESSE     STATUS=OK           407 CALLS     3116 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.017        5.7840        .12660E-03   -1.5075    
   3  Prefactor     .10000E-03    8.2451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .54198E-01    .18660        .58078E-03   -1.5661    
   6  Prefactor     .10000E-03    5.5187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .97178        1.1302        .11713E-02   -1.5511    
   8  Prefactor     .10000E-03    32.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.511        12.636        .68215E-04   -1.4532    
  10  Prefactor     .10000E-03    11.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .25286        .13999        .24151E-04   -1.5607    
  12  Prefactor     1.7511        8.3898        .15832E-02   -1.5443    
  13  Prefactor     57.076        54.636        .53093E-04   -1.4196    
  14  Prefactor     11.838        8.3649        .58216E-03   -1.5020    
  15  Prefactor     10.863        12.209        .12155E-03   -1.5049    
  16  Prefactor     6.3232        19.042        .15954E-03   -1.5205    
  17  Prefactor     1.9712        6.0079        .29510E-03   -1.5427    
  18  Prefactor     .10000E-03    4.2888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.555        18.646        .72489E-04   -1.4602    
  20  norm          3.4888        11.106        .21707E-03   -1.5334    
  21  Prefactor     5.0339        11.297        .17882E-03   -1.5259    
  22  norm          8.6745        9.1446        .13610E-03   -1.5119    
  23  Normalizat    .73374        .26262        .39015E-03   -1.0258    
  24  Prefactor     1.0780        .13667        .18368E-03   -.90173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68549e-08
Minuit parameter uncertainties:
  1  8.32419e-06
  2  5.7843
  3  7.04787e-06
  4  2.14296e-05
  5  0.186605
  6  3.17299e-06
  7  1.13021
  8  4.4356e-06
  9  12.6367
  10  6.41379e-06
  11  0.139986
  12  7.66734
  13  54.6837
  14  8.36571
  15  12.2122
  16  19.0606
  17  6.00973
  18  1.78364e-05
  19  18.6495
  20  11.1126
  21  11.3018
  22  9.14608
  23  0.263068
  24  0.136714
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.529e-01  1.400e-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.078e+00  1.367e-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.337e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.22e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.64e-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) = 8225.72055191
delta logL = 0.410917101683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8225.71794364
delta logL = 0.413525377066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32889       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5768       1.0000          .0000       10.000    
     3 'Normalizat'    .67651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1009       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=   8225.718     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32899        .24687        .54240E-02    .13024E-02
   2  Index1        2.5769        .82729        .23274       -.60835E-04
   3  Normalizat    .67673        .21643        .91372E-01    .30882E-04
   4  Prefactor     1.1008        .12141        .37551E-01   -.35737E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.328989
  Index1     = 2.57687
  Normalizat = 0.676726
  Prefactor  = 1.10079
 **********
 **   18 **HESSE 
 **********

 FCN=   8225.718     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32899        .16320        .24399E-04   -1.5593    
   2  Index1        2.5769        .66463        .11130E-01   -.50594    
   3  Normalizat    .67673        .24868        .40480E-03   -1.0482    
   4  Prefactor     1.1008        .13774        .18197E-03   -.89441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8303e-12
Minuit parameter uncertainties:
  1  0.163198
  2  0.667216
  3  0.249095
  4  0.137789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580057': 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) = 8225.71794277
delta logL = 0.413526245502

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.290e-01  1.632e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.577e+00  6.672e-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.101e+00  1.378e-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.767e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.58 +/- 0.67
Photon Flux (Free Index): 1.33e-07 +/- 7.35e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.44e-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/580057/cmap_HighResolution_602985601_603244801_4FGL_J2253.9+1609_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.22e-08', energy_flux2='2.87e-05', photon_flux_error='5.10e-08', dlogl='4.14e-01', energy_flux='2.96e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-29 02:20:02.668574', photon_index_error2='0.67', photon_index2='2.58', ts='5.20', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.73', time_epoch_completed='1632907202.67', return_code='0', job_id='580057', GAL2='1.10', EG2='0.68', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='7.35e-08', ts2='6.13', photon_index='2.02' WHERE bin_id='1403' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 580057: <4FGL_J2253.9+1609_daily_bin1403> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1403> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:37 2021
Job was executed on host(s) <bullet0302>, 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:03 2021
Results reported at Wed Sep 29 02:20:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1403 343.496 16.1506 602985601 603244801 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 :                                   657.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

