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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1654
RA = 343.496, Dec = 16.1506
tmin = 668044801, tmax = 668304001
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='101585', job_status='RUN', time_executed='2022-03-07 01:27:40.899377', time_epoch_executed='1646645260.9' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101585/ft1_4FGL_J2253.9+1609_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101585/ft2_4FGL_J2253.9+1609_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101585/ft1_4FGL_J2253.9+1609_daily_bin1654.fits outfile=/scratch/kocevski/101585/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1654.fits ra=343.496 dec=16.1506 rad=12.0 tmin=668044801.0 tmax=668304001.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.67
user 3.46
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101585/ft2_4FGL_J2253.9+1609_daily_bin1654.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/101585/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/101585/ft1_filtered_4FGL_J2253.9+1609_daily_bin1654.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.34
sys 0.15
Number of photons that survived the gtmktime cut: 870

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101585/ft1_filtered_4FGL_J2253.9+1609_daily_bin1654.fits" evtable="EVENTS" scfile=/scratch/kocevski/101585/ft2_4FGL_J2253.9+1609_daily_bin1654.fits sctable="SC_DATA" outfile=/scratch/kocevski/101585/ltcube_668044801_668304001_4FGL_J2253.9+1609_daily_bin1654.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/101585/ft2_4FGL_J2253.9+1609_daily_bin1654.fits
.....................!
real 13.96
user 13.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101585/ft1_filtered_4FGL_J2253.9+1609_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101585/ft2_4FGL_J2253.9+1609_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/101585/ltcube_668044801_668304001_4FGL_J2253.9+1609_daily_bin1654.fits outfile=/scratch/kocevski/101585/expmap_668044801_668304001_4FGL_J2253.9+1609_daily_bin1654.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/101585/ltcube_668044801_668304001_4FGL_J2253.9+1609_daily_bin1654.fits
.....................!
real 192.59
user 185.93
sys 5.54

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101585/ft1_filtered_4FGL_J2253.9+1609_daily_bin1654.fits scfile=/scratch/kocevski/101585/ft2_4FGL_J2253.9+1609_daily_bin1654.fits outfile=/scratch/kocevski/101585/cmap_HighResolution_668044801_668304001_4FGL_J2253.9+1609_daily_bin1654.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10989E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.268       1.0000         .10000E-03   10000.    
     7 'norm      '    .18811       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.241       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95487       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.773       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3014       1.0000         .10000E-03   10000.    
    20 'norm      '    25.158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2882       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3314       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0380       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=   9277.664     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2742 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7656        .25374E-06** at limit **
   2  norm          .10000E-03    2.7436       -.32278E-06** at limit **
   3  Prefactor     .10000E-03    28.999        .19780E-06** at limit **
   4  Prefactor     .10000E-03    3.9954       -.88669E-07** at limit **
   5  Prefactor     2.0376        .32963        .17986E-07    .11865E-03
   6  Prefactor     15.268        10.066        .12535E-08    .24998E-05
   7  norm          .18828        1.3268        .14387E-06   -.15662E-03
   8  Prefactor     52.245        39.863        .51577E-05   -.10511E-04
   9  Prefactor     .10000E-03    2.1193       -.21215E-07** at limit **
  10  Prefactor     .10000E-03    5.9388        .12217E-05** at limit **
  11  Prefactor     .95482        .20581       -.60579E-07    .57909E-03
  12  Prefactor     .10000E-03    7.6236       -.10397E-05** at limit **
  13  Prefactor     58.549        44.054       -.19143E-05    .29286E-05
  14  Prefactor     .10000E-03    3.8065       -.88000E-07** at limit **
  15  Prefactor     .10000E-03    5.5621       -.12882E-05** at limit **
  16  Prefactor     30.774        22.765        .55352E-06   -.17740E-05
  17  Prefactor     .10000E-03    3.2363        .35235E-06** at limit **
  18  Prefactor     1.7315        1.8788       -.39447E-07   -.25585E-03
  19  Prefactor     1.2999        36.491       -.69601E-06   -.20733E-04
  20  norm          25.153        11.814       -.39205E-06   -.13365E-04
  21  Prefactor     .10000E-03    3.9551        .40169E-06** at limit **
  22  norm          3.2880        13.658       -.10828E-06   -.52005E-05
  23  Normalizat    1.3314        .23477        .40425E-06   -.11029E-04
  24  Prefactor     1.0380        .12713       -.27648E-07    .35697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03758
  Prefactor  = 15.2678
  norm       = 0.188278
  Prefactor  = 52.2454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.954821
  Prefactor  = 0.0001
  Prefactor  = 58.549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7738
  Prefactor  = 0.000100001
  Prefactor  = 1.73153
  Prefactor  = 1.29994
  norm       = 25.1526
  Prefactor  = 0.0001
  norm       = 3.28797
  Normalizat = 1.3314
  Prefactor  = 1.03802
 **********
 **   18 **HESSE 
 **********

 FCN=   9277.664     FROM HESSE     STATUS=OK           399 CALLS     3141 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.1032        .30776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0376        .33030        .20818E-04   -1.5422    
   6  Prefactor     15.268        10.088        .10250E-03   -1.4926    
   7  norm          .18828        1.3473        .21776E-03   -1.5621    
   8  Prefactor     52.245        39.872        .55490E-04   -1.4261    
   9  Prefactor     .10000E-03    2.1202        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95482        .20593        .18669E-04   -1.5513    
  12  Prefactor     .10000E-03    7.7644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.549        44.087        .52431E-04   -1.4176    
  14  Prefactor     .10000E-03    3.8339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.774        22.775        .72228E-04   -1.4598    
  17  Prefactor     .10000E-03    8.5571        .32839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7315        15.341        .15964E-02   -1.5445    
  19  Prefactor     1.2999        36.487        .38727E-03   -1.5480    
  20  norm          25.153        12.379        .79865E-04   -1.4704    
  21  Prefactor     .10000E-03    3.9721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2880        13.665        .22329E-03   -1.5345    
  23  Normalizat    1.3314        .27293        .36162E-03   -.82634    
  24  Prefactor     1.0380        .14856        .22430E-03   -.91473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78725e-10
Minuit parameter uncertainties:
  1  6.07223e-07
  2  0.000125256
  3  5.16518e-05
  4  1.57688e-06
  5  0.330301
  6  10.0889
  7  1.00708
  8  39.8927
  9  7.33121e-07
  10  3.30677e-06
  11  0.205932
  12  1.1282e-06
  13  44.1115
  14  5.79572e-07
  15  2.64743e-06
  16  22.7818
  17  0.000193992
  18  10.3112
  19  13.7828
  20  12.3799
  21  5.69535e-06
  22  13.4109
  23  0.273226
  24  0.148617
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.548e-01  2.059e-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.038e+00  1.486e-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:  1.331e+00  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.75
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.48e-07 +/- 7.51e-08
Energy Flux (Fixed Index): 1.12e-04 +/- 2.41e-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) = 9276.81839568
delta logL = 0.845864247656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9276.79389613
delta logL = 0.870363801032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0775       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3457       1.0000          .0000       10.000    
     3 'Normalizat'    1.2551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0687       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=   9276.794     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0775        .21677        .43014E-02    .58375E-03
   2  Index1        2.3456        .24225        .12372       -.36025E-04
   3  Normalizat    1.2551        .22995        .83588E-01    .13352E-04
   4  Prefactor     1.0687        .12734        .38921E-01    .75556E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07753
  Index1     = 2.34565
  Normalizat = 1.2551
  Prefactor  = 1.06868
 **********
 **   18 **HESSE 
 **********

 FCN=   9276.794     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0775        .22221        .19051E-04   -1.5500    
   2  Index1        2.3456        .25684        .53118E-02   -.55963    
   3  Normalizat    1.2551        .27023        .37008E-03   -.84917    
   4  Prefactor     1.0687        .14897        .22149E-03   -.90474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21054e-12
Minuit parameter uncertainties:
  1  0.222206
  2  0.256998
  3  0.270534
  4  0.149031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101585': 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) = 9276.79389612
delta logL = 0.870363804888

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.078e+00  2.222e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.346e+00  2.570e-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.069e+00  1.490e-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:  1.255e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.70
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.35 +/- 0.26
Photon Flux (Free Index): 4.12e-07 +/- 9.26e-08
Energy Flux (Free Index): 1.02e-04 +/- 2.16e-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/101585/cmap_HighResolution_668044801_668304001_4FGL_J2253.9+1609_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-07', energy_flux2='1.02e-04', photon_flux_error='7.51e-08', dlogl='8.70e-01', energy_flux='1.12e-04', photon_flux2='4.12e-07', job_status='DONE', time_completed='2022-03-07 01:40:06.411977', photon_index_error2='0.26', photon_index2='2.35', ts='52.75', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.33', time_epoch_completed='1646646006.41', return_code='0', job_id='101585', GAL2='1.07', EG2='1.26', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='9.26e-08', ts2='54.70', photon_index='2.02' WHERE bin_id='1654' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:40:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 101585: <4FGL_J2253.9+1609_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1654> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Mar  7 01:25:24 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:25:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:25:46 2022
Terminated at Mon Mar  7 01:40:07 2022
Results reported at Mon Mar  7 01:40:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1654 343.496 16.1506 668044801 668304001 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 :                                   746.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            883 sec.

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

