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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1250
RA = 343.496, Dec = 16.1506
tmin = 563328001, tmax = 563587201
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='579832', job_status='RUN', time_executed='2021-09-29 02:09:05.682530', time_epoch_executed='1632906545.68' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579832/ft1_4FGL_J2253.9+1609_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579832/ft2_4FGL_J2253.9+1609_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579832/ft1_4FGL_J2253.9+1609_daily_bin1250.fits outfile=/scratch/kocevski/579832/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1250.fits ra=343.496 dec=16.1506 rad=12.0 tmin=563328001.0 tmax=563587201.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 2.99
user 2.78
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579832/ft1_filtered_4FGL_J2253.9+1609_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/579832/ft2_4FGL_J2253.9+1609_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/579832/ltcube_563328001_563587201_4FGL_J2253.9+1609_daily_bin1250.fits outfile=/scratch/kocevski/579832/expmap_563328001_563587201_4FGL_J2253.9+1609_daily_bin1250.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/579832/ltcube_563328001_563587201_4FGL_J2253.9+1609_daily_bin1250.fits
.....................!
real 190.94
user 185.91
sys 4.69

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/579832/ft1_filtered_4FGL_J2253.9+1609_daily_bin1250.fits scfile=/scratch/kocevski/579832/ft2_4FGL_J2253.9+1609_daily_bin1250.fits outfile=/scratch/kocevski/579832/cmap_563328001_563587201_4FGL_J2253.9+1609_daily_bin1250.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579832/ft1_filtered_4FGL_J2253.9+1609_daily_bin1250.fits scfile=/scratch/kocevski/579832/ft2_4FGL_J2253.9+1609_daily_bin1250.fits outfile=/scratch/kocevski/579832/cmap_HighResolution_563328001_563587201_4FGL_J2253.9+1609_daily_bin1250.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67785E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31113E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.911       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    23.696       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4159       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71792       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8946.343     FROM MIGRAD    STATUS=CONVERGED   1012 CALLS     2890 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.003        .18142E-02** at limit **
   2  norm          .11311        3.7436        .51631E-01    .26749E-03
   3  Prefactor     9.5562        17.586        .12969E-03    .42954E-04
   4  Prefactor     9.8002        10.112        .12804E-03   -.26992E-04
   5  Prefactor     3.0276        .36700        .17895E-04   -.12203E-02
   6  Prefactor     .10000E-03    2.7893        .15405E-02** at limit **
   7  norm          2.3695        1.5976        .93910E-04    .25374E-03
   8  Prefactor     .10000E-03    11.904        .18142E-02** at limit **
   9  Prefactor     30.716        16.246        .72309E-04   -.17798E-03
  10  Prefactor     .10048E-03    19.372        .11636    ** at limit **
  11  Prefactor     2.3194        .28597        .16059E-04    .23330E-02
  12  Prefactor     .80091E-01    11.086        .76529E-01    .13778E-03
  13  Prefactor     .10000E-03    14.555        .18142E-02** at limit **
  14  Prefactor     .19255        72.658        .39256E-02    .13581E-03
  15  Prefactor     .10000E-03    4.9408        .18142E-02** at limit **
  16  Prefactor     19.051        22.454        .91796E-04   -.34925E-04
  17  Prefactor     .10000E-03    3.1525        .16332E-02** at limit **
  18  Prefactor     10.912        10.764        .12129E-03    .99355E-05
  19  Prefactor     .10000E-03    12.164        .18142E-02** at limit **
  20  norm          23.691        14.168        .82287E-04   -.14645E-04
  21  Prefactor     .10000E-03    8.3938        .18142E-02** at limit **
  22  norm          .10000E-03    8.3531        .18142E-02** at limit **
  23  Normalizat    1.4156        .29865        .34529E-03   -.13736E-03
  24  Prefactor     .71780        .14843        .24865E-03   -.15728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.113113
  Prefactor  = 9.5562
  Prefactor  = 9.80021
  Prefactor  = 3.02763
  Prefactor  = 0.0001
  norm       = 2.36949
  Prefactor  = 0.0001
  Prefactor  = 30.7158
  Prefactor  = 0.000100477
  Prefactor  = 2.31936
  Prefactor  = 0.0800907
  Prefactor  = 0.0001
  Prefactor  = 0.192547
  Prefactor  = 0.0001
  Prefactor  = 19.0507
  Prefactor  = 0.0001
  Prefactor  = 10.9115
  Prefactor  = 0.0001
  norm       = 23.6906
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.41563
  Prefactor  = 0.717797
 **********
 **   18 **HESSE 
 **********

 FCN=   8946.343     FROM HESSE     STATUS=OK           405 CALLS     3295 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11311        3.6809        .52252E-01   -1.5641    
   3  Prefactor     9.5562        17.585        .51875E-05   -1.5090    
   4  Prefactor     9.8002        10.109        .51217E-05   -1.5082    
   5  Prefactor     3.0276        .36695        .35790E-05   -1.5360    
   6  Prefactor     .10000E-03    2.7895        .30809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3695        1.5976        .37564E-05   -1.5400    
   8  Prefactor     .10000E-03    11.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.716        16.241        .28924E-05   -1.4599    
  10  Prefactor     .10048E-03    18.883        .11857       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3194        .28521        .32119E-05   -1.5403    
  12  Prefactor     .80091E-01    10.016        .81737E-01   -1.5651    
  13  Prefactor     .10000E-03    14.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19255        74.099        .15702E-03   -1.5620    
  15  Prefactor     .10000E-03    4.9411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.051        22.456        .36718E-05   -1.4835    
  17  Prefactor     .10000E-03    3.1533        .32664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.912        10.765        .48516E-05   -1.5047    
  19  Prefactor     .10000E-03    12.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.691        14.166        .32915E-05   -1.4734    
  21  Prefactor     .10000E-03    8.3955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.3536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4156        .29877        .13811E-04   -.80178    
  24  Prefactor     .71780        .14856        .99462E-05   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80562e-10
Minuit parameter uncertainties:
  1  8.11725e-05
  2  1.29002
  3  17.5941
  4  10.1112
  5  0.366952
  6  4.18736e-06
  7  1.59764
  8  2.87196e-05
  9  16.2435
  10  0.00600298
  11  0.285205
  12  1.79045
  13  1.27532e-05
  14  7.56194
  15  2.05462e-06
  16  22.4658
  17  3.95018e-06
  18  10.7665
  19  3.29875e-05
  20  14.1685
  21  6.94507e-05
  22  4.32455e-06
  23  0.29914
  24  0.148645
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.319e+00  2.852e-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:  7.178e-01  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.416e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 223.74
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.46e-07 +/- 1.04e-07
Energy Flux (Fixed Index): 2.72e-04 +/- 3.34e-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) = 8946.0450672
delta logL = 0.297882961557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8946.04499172
delta logL = 0.297958446832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4105       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1227       1.0000          .0000       10.000    
     3 'Normalizat'    1.3677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73708       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=   8946.045     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      206 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4105        .28764        .36647E-02    .91630E-04
   2  Index1        2.1227        .12827        .64025E-01   -.12102E-03
   3  Normalizat    1.3677        .23560        .79034E-01    .17562E-04
   4  Prefactor     .73708        .12435        .42893E-01    .30045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41049
  Index1     = 2.12266
  Normalizat = 1.36774
  Prefactor  = 0.737084
 **********
 **   18 **HESSE 
 **********

 FCN=   8946.045     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4105        .30088        .16199E-04   -1.5397    
   2  Index1        2.1227        .13517        .28124E-03   -.61318    
   3  Normalizat    1.3677        .28401        .34982E-03   -.81566    
   4  Prefactor     .73708        .14924        .24574E-03   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61719e-12
Minuit parameter uncertainties:
  1  0.300877
  2  0.135191
  3  0.284332
  4  0.149319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579832': 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) = 8946.04499172
delta logL = 0.297958446838

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.410e+00  3.009e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.123e+00  1.352e-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:  7.371e-01  1.493e-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.368e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 219.87
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.12 +/- 0.14
Photon Flux (Free Index): 8.88e-07 +/- 1.16e-07
Energy Flux (Free Index): 2.59e-04 +/- 3.38e-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/579832/cmap_HighResolution_563328001_563587201_4FGL_J2253.9+1609_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-07', energy_flux2='2.59e-04', photon_flux_error='1.04e-07', dlogl='2.98e-01', energy_flux='2.72e-04', photon_flux2='8.88e-07', job_status='DONE', time_completed='2021-09-29 02:21:43.230919', photon_index_error2='0.14', photon_index2='2.12', ts='223.74', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='3.38e-05', EG='1.42', time_epoch_completed='1632907303.23', return_code='0', job_id='579832', GAL2='0.74', EG2='1.37', return_code2='0', energy_flux_error='3.34e-05', photon_flux_error2='1.16e-07', ts2='219.87', photon_index='2.02' WHERE bin_id='1250' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:21:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 579832: <4FGL_J2253.9+1609_daily_bin1250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1250 343.496 16.1506 563328001 563587201 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 :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

