/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin29
RA = 343.496, Dec = 16.1506
tmin = 246844801, tmax = 247104001
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='572858', job_status='RUN', time_executed='2021-09-29 01:47:17.523190', time_epoch_executed='1632905237.52' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572858/ft1_4FGL_J2253.9+1609_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572858/ft2_4FGL_J2253.9+1609_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572858/ft1_4FGL_J2253.9+1609_daily_bin29.fits outfile=/scratch/kocevski/572858/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin29.fits ra=343.496 dec=16.1506 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.40
user 1.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572858/ft1_filtered_4FGL_J2253.9+1609_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/572858/ft2_4FGL_J2253.9+1609_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/572858/ltcube_246844801_247104001_4FGL_J2253.9+1609_daily_bin29.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/572858/ft2_4FGL_J2253.9+1609_daily_bin29.fits
.....................!
real 12.56
user 12.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572858/ft1_filtered_4FGL_J2253.9+1609_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/572858/ft2_4FGL_J2253.9+1609_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/572858/ltcube_246844801_247104001_4FGL_J2253.9+1609_daily_bin29.fits outfile=/scratch/kocevski/572858/expmap_246844801_247104001_4FGL_J2253.9+1609_daily_bin29.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/572858/ltcube_246844801_247104001_4FGL_J2253.9+1609_daily_bin29.fits
.....................!
real 191.41
user 185.94
sys 5.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.209       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78164       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .79825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4858       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.035       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7880       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    58.973       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71605       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99372       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=   8747.101     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2717 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.208        20.721        .77987E-07    .10564E-04
   2  norm          .10000E-03    1.3773       -.85070E-08** at limit **
   3  Prefactor     5.0800        9.9320       -.29484E-06   -.27900E-04
   4  Prefactor     .10000E-03    10.859       -.52138E-07** at limit **
   5  Prefactor     .78167        .22127       -.15127E-07    .17798E-03
   6  Prefactor     .10000E-03    4.6998       -.14384E-08** at limit **
   7  norm          .79861        1.3080       -.45096E-07   -.28687E-03
   8  Prefactor     1.2897        421.60       -.17608E-04   -.99285E-05
   9  Prefactor     .10000E-03    6.0292       -.83448E-07** at limit **
  10  Prefactor     11.102        14.512        .48644E-05    .11894E-03
  11  Prefactor     3.8555        .35349       -.60988E-08    .16150E-02
  12  Prefactor     19.501        14.874        .31660E-05    .11216E-03
  13  Prefactor     2.4491        12.590       -.47061E-06   -.74433E-03
  14  Prefactor     14.034        8.7402       -.39354E-06   -.41825E-04
  15  Prefactor     .10000E-03    3.6835        .34538E-08** at limit **
  16  Prefactor     23.229        26.456       -.13554E-04   -.18527E-03
  17  Prefactor     12.184        7.9964        .39501E-06    .34586E-04
  18  Prefactor     1.7861        5.5858        .24514E-05   -.16556E-02
  19  Prefactor     .10000E-03    22.634       -.45887E-06** at limit **
  20  norm          58.974        13.557       -.17371E-05   -.38972E-03
  21  Prefactor     .10000E-03    2.8732        .46888E-06** at limit **
  22  norm          .10000E-03    18.977        .30522E-06** at limit **
  23  Normalizat    .71580        .23513        .23293E-05   -.11900E-04
  24  Prefactor     .99380        .12559       -.11036E-06    .47736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2084
  norm       = 0.0001
  Prefactor  = 5.08004
  Prefactor  = 0.0001
  Prefactor  = 0.781666
  Prefactor  = 0.0001
  norm       = 0.798609
  Prefactor  = 1.28968
  Prefactor  = 0.0001
  Prefactor  = 11.1016
  Prefactor  = 3.85549
  Prefactor  = 19.5011
  Prefactor  = 2.44907
  Prefactor  = 14.0341
  Prefactor  = 0.0001
  Prefactor  = 23.2286
  Prefactor  = 12.1839
  Prefactor  = 1.78611
  Prefactor  = 0.0001
  norm       = 58.9741
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.715805
  Prefactor  = 0.993804
 **********
 **   18 **HESSE 
 **********

 FCN=   8747.101     FROM HESSE     STATUS=OK           401 CALLS     3118 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.208        20.720        .65703E-04   -1.4487    
   2  norm          .10000E-03    1.3802        .10718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0800        9.9201        .17840E-03   -1.5257    
   4  Prefactor     .10000E-03    11.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .78167        .22031        .21895E-04   -1.5531    
   6  Prefactor     .10000E-03    4.7756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .79861        1.0117        .13308E-02   -1.5529    
   8  Prefactor     1.2897        425.49        .35190E-03   -1.5481    
   9  Prefactor     .10000E-03    6.0501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.102        14.518        .12024E-03   -1.5041    
  11  Prefactor     3.8555        .35098        .14664E-04   -1.5315    
  12  Prefactor     19.501        14.872        .90693E-04   -1.4824    
  13  Prefactor     2.4491        14.619        .13068E-02   -1.5395    
  14  Prefactor     14.034        8.7465        .10692E-03   -1.4959    
  15  Prefactor     .10000E-03    3.6893        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.229        26.495        .83120E-04   -1.4744    
  17  Prefactor     12.184        8.0015        .11476E-03   -1.5010    
  18  Prefactor     1.7861        14.259        .15643E-02   -1.5441    
  19  Prefactor     .10000E-03    22.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          58.974        13.678        .26122E-03   -1.4171    
  21  Prefactor     .10000E-03    6.2548        .30360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    19.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .71580        .26403        .43498E-03   -1.0327    
  24  Prefactor     .99380        .14342        .21197E-03   -.92936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85836e-08
Minuit parameter uncertainties:
  1  20.7239
  2  1.687e-06
  3  9.92327
  4  3.50412e-05
  5  0.220306
  6  3.29511e-06
  7  1.01169
  8  47.1906
  9  1.96855e-05
  10  14.5231
  11  0.35098
  12  14.875
  13  11.9711
  14  8.74732
  15  1.42378e-07
  16  26.5089
  17  8.00222
  18  10.0961
  19  6.55044e-05
  20  13.679
  21  0.000125211
  22  1.65344e-05
  23  0.264499
  24  0.143471
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.855e+00  3.510e-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.938e-01  1.435e-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.158e-01  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 505.95
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.41e-06 +/- 1.28e-07
Energy Flux (Fixed Index): 4.51e-04 +/- 4.11e-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) = 8747.09562873
delta logL = 0.0058044073503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8747.09459091
delta logL = 0.00684222953714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8704       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0307       1.0000          .0000       10.000    
     3 'Normalizat'    .70965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99625       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=   8747.095     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      195 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8705        .33924        .33211E-02   -.87747E-04
   2  Index1        2.0308        .92740E-01    .45581E-01   -.64571E-04
   3  Normalizat    .70962        .22529        .98506E-01    .44545E-04
   4  Prefactor     .99628        .12584        .46220E-01    .24484E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87053
  Index1     = 2.03078
  Normalizat = 0.709616
  Prefactor  = 0.996276
 **********
 **   18 **HESSE 
 **********

 FCN=   8747.095     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .71E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8705        .35036        .14677E-04   -1.5314    
   2  Index1        2.0308        .96198E-01    .20101E-03   -.63583    
   3  Normalizat    .70962        .25626        .43659E-03   -1.0351    
   4  Prefactor     .99628        .14341        .21173E-03   -.92854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06044e-16
Minuit parameter uncertainties:
  1  0.350355
  2  0.0962068
  3  0.256694
  4  0.143465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572858': 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) = 8747.09459066
delta logL = 0.00684247884237

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.871e+00  3.504e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.031e+00  9.621e-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.963e-01  1.435e-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.096e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 501.08
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.03 +/- 0.10
Photon Flux (Free Index): 1.41e-06 +/- 1.32e-07
Energy Flux (Free Index): 4.49e-04 +/- 4.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/572858/cmap_HighResolution_246844801_247104001_4FGL_J2253.9+1609_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-06', energy_flux2='4.49e-04', photon_flux_error='1.28e-07', dlogl='6.84e-03', energy_flux='4.51e-04', photon_flux2='1.41e-06', job_status='DONE', time_completed='2021-09-29 01:59:14.910159', photon_index_error2='0.10', photon_index2='2.03', ts='505.95', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.44e-05', EG='0.72', time_epoch_completed='1632905954.91', return_code='0', job_id='572858', GAL2='1.00', EG2='0.71', return_code2='0', energy_flux_error='4.11e-05', photon_flux_error2='1.32e-07', ts2='501.08', photon_index='2.02' WHERE bin_id='29' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 572858: <4FGL_J2253.9+1609_daily_bin29> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin29 343.496 16.1506 246844801 247104001 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 :                                   716.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

