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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1102
RA = 343.496, Dec = 16.1506
tmin = 524966401, tmax = 525225601
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='578525', job_status='RUN', time_executed='2021-09-29 02:02:45.430988', time_epoch_executed='1632906165.43' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578525/ft1_4FGL_J2253.9+1609_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578525/ft2_4FGL_J2253.9+1609_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578525/ft1_4FGL_J2253.9+1609_daily_bin1102.fits outfile=/scratch/kocevski/578525/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1102.fits ra=343.496 dec=16.1506 rad=12.0 tmin=524966401.0 tmax=525225601.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.45
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578525/ft1_filtered_4FGL_J2253.9+1609_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/578525/ft2_4FGL_J2253.9+1609_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/578525/ltcube_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.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/578525/ft2_4FGL_J2253.9+1609_daily_bin1102.fits
.....................!
real 13.89
user 13.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578525/ft1_filtered_4FGL_J2253.9+1609_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/578525/ft2_4FGL_J2253.9+1609_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/578525/ltcube_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.fits outfile=/scratch/kocevski/578525/expmap_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.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/578525/ltcube_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.fits
.....................!
real 191.14
user 185.63
sys 5.10

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/578525/ft1_filtered_4FGL_J2253.9+1609_daily_bin1102.fits scfile=/scratch/kocevski/578525/ft2_4FGL_J2253.9+1609_daily_bin1102.fits outfile=/scratch/kocevski/578525/cmap_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578525/ft1_filtered_4FGL_J2253.9+1609_daily_bin1102.fits scfile=/scratch/kocevski/578525/ft2_4FGL_J2253.9+1609_daily_bin1102.fits outfile=/scratch/kocevski/578525/cmap_HighResolution_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.131       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0015       1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.842       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6405       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13112E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.466       1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.191       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0265       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10240.19     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2769 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.4075         .0000    ** at limit **
   2  norm          .10000E-03    1.4354         .0000    ** at limit **
   3  Prefactor     11.137        17.847         .0000       -.14140E-03
   4  Prefactor     13.132        12.356         .0000        .85275E-04
   5  Prefactor     4.3662        .42736         .0000       -.54220E-03
   6  Prefactor     1.0173        13.990         .0000        .30296E-01
   7  norm          .10000E-03    .87506         .0000    ** at limit **
   8  Prefactor     13.843        27.827         .0000       -.36754E-03
   9  Prefactor     .10000E-03    4.4083         .0000    ** at limit **
  10  Prefactor     .10000E-03    12.351         .0000    ** at limit **
  11  Prefactor     .71524        .18821         .0000       -.88622E-04
  12  Prefactor     .10000E-03    14.659         .0000    ** at limit **
  13  Prefactor     2.6402        24.755         .0000        .19816E-02
  14  Prefactor     .10001E-03    7.5358         .0000    ** at limit **
  15  Prefactor     .10000E-03    5.7557         .0000    ** at limit **
  16  Prefactor     30.559        28.208         .0000       -.89492E-03
  17  Prefactor     7.9440        11.948         .0000        .34139E-02
  18  Prefactor     .10000E-03    4.0065         .0000    ** at limit **
  19  Prefactor     10.467        26.685         .0000       -.24855E-03
  20  norm          .10001E-03    5.4804         .0000    ** at limit **
  21  Prefactor     .10000E-03    4.9604         .0000    ** at limit **
  22  norm          24.191        18.112         .0000        .97178E-04
  23  Normalizat    1.0482        .22588         .0000       -.97973E-04
  24  Prefactor     1.0264        .11732         .0000       -.22614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 11.1373
  Prefactor  = 13.1322
  Prefactor  = 4.36624
  Prefactor  = 1.0173
  norm       = 0.0001
  Prefactor  = 13.843
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.715241
  Prefactor  = 0.000100002
  Prefactor  = 2.64019
  Prefactor  = 0.000100012
  Prefactor  = 0.000100004
  Prefactor  = 30.5592
  Prefactor  = 7.94395
  Prefactor  = 0.0001
  Prefactor  = 10.4666
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 24.1908
  Normalizat = 1.04817
  Prefactor  = 1.02643
 **********
 **   18 **HESSE 
 **********

 FCN=   10240.19     FROM HESSE     STATUS=OK           411 CALLS     3180 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.4139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4390        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.137        17.883        .12006E-03   -1.5040    
   4  Prefactor     13.132        12.371        .11054E-03   -1.4983    
   5  Prefactor     4.3662        .43120        .18633E-04   -1.5290    
   6  Prefactor     1.0173        5.9176        .76240E-01   -1.5506    
   7  norm          .10000E-03    2.3979        .18386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.843        27.906        .10766E-03   -1.4964    
   9  Prefactor     .10000E-03    4.4271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71524        .18795        .20700E-04   -1.5539    
  12  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6402        24.736        .12546E-02   -1.5383    
  14  Prefactor     .10001E-03    7.7251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.559        28.233        .72481E-04   -1.4602    
  17  Prefactor     7.9440        11.796        .71124E-03   -1.5144    
  18  Prefactor     .10000E-03    5.5482        .74662E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.467        26.292        .12385E-03   -1.5061    
  20  norm          .10001E-03    5.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.191        18.115        .81442E-04   -1.4724    
  23  Normalizat    1.0482        .26016        .39439E-03   -.91434    
  24  Prefactor     1.0264        .13532        .21916E-03   -.91854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00373e-08
Minuit parameter uncertainties:
  1  0.000494445
  2  1.36921e-05
  3  17.8912
  4  12.3734
  5  0.431198
  6  4.90761
  7  1.9212e-05
  8  27.9326
  9  2.74274e-05
  10  0.000324462
  11  0.187951
  12  0.000374768
  13  16.1711
  14  0.000610935
  15  0.000296167
  16  28.2451
  17  11.7998
  18  0.000102931
  19  26.3208
  20  0.000439258
  21  9.29038e-05
  22  18.1195
  23  0.260476
  24  0.135361
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.152e-01  1.880e-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.026e+00  1.354e-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.048e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.76
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.61e-07 +/- 6.85e-08
Energy Flux (Fixed Index): 8.37e-05 +/- 2.20e-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) = 10239.4656771
delta logL = 0.725889689133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10239.4650997
delta logL = 0.726467134202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84245       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3661       1.0000          .0000       10.000    
     3 'Normalizat'    .97766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0534       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=   10239.47     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84236        .20566        .47953E-02    .34308E-02
   2  Index1        2.3661        .27071        .14737       -.10156E-03
   3  Normalizat    .97770        .21588        .91667E-01    .30869E-05
   4  Prefactor     1.0534        .11813        .39713E-01   -.60873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.84236
  Index1     = 2.36609
  Normalizat = 0.9777
  Prefactor  = 1.05341
 **********
 **   18 **HESSE 
 **********

 FCN=   10239.47     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84236        .21356        .21284E-04   -1.5524    
   2  Index1        2.3661        .29750        .62118E-02   -.55481    
   3  Normalizat    .97770        .24976        .40599E-03   -.93781    
   4  Prefactor     1.0534        .13597        .21666E-03   -.90970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51916e-11
Minuit parameter uncertainties:
  1  0.213561
  2  0.297739
  3  0.250062
  4  0.136014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578525': 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) = 10239.4650996
delta logL = 0.72646723495

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  8.424e-01  2.136e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.366e+00  2.977e-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.053e+00  1.360e-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:  9.777e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.06
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.37 +/- 0.30
Photon Flux (Free Index): 3.23e-07 +/- 9.03e-08
Energy Flux (Free Index): 7.87e-05 +/- 1.96e-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/578525/cmap_HighResolution_524966401_525225601_4FGL_J2253.9+1609_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.61e-07', energy_flux2='7.87e-05', photon_flux_error='6.85e-08', dlogl='7.26e-01', energy_flux='8.37e-05', photon_flux2='3.23e-07', job_status='DONE', time_completed='2021-09-29 02:16:02.562353', photon_index_error2='0.30', photon_index2='2.37', ts='31.76', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='1.05', time_epoch_completed='1632906962.56', return_code='0', job_id='578525', GAL2='1.05', EG2='0.98', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='9.03e-08', ts2='33.06', photon_index='2.02' WHERE bin_id='1102' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 578525: <4FGL_J2253.9+1609_daily_bin1102> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1102 343.496 16.1506 524966401 525225601 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

