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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1117
RA = 343.496, Dec = 16.1506
tmin = 528854401, tmax = 529113601
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='578549', job_status='RUN', time_executed='2021-09-29 02:04:09.983290', time_epoch_executed='1632906249.98' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578549/ft1_4FGL_J2253.9+1609_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578549/ft2_4FGL_J2253.9+1609_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578549/ft1_4FGL_J2253.9+1609_daily_bin1117.fits outfile=/scratch/kocevski/578549/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1117.fits ra=343.496 dec=16.1506 rad=12.0 tmin=528854401.0 tmax=529113601.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.47
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578549/ft1_filtered_4FGL_J2253.9+1609_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/578549/ft2_4FGL_J2253.9+1609_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/578549/ltcube_528854401_529113601_4FGL_J2253.9+1609_daily_bin1117.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/578549/ft2_4FGL_J2253.9+1609_daily_bin1117.fits
.....................!
real 14.56
user 14.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578549/ft1_filtered_4FGL_J2253.9+1609_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/578549/ft2_4FGL_J2253.9+1609_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/578549/ltcube_528854401_529113601_4FGL_J2253.9+1609_daily_bin1117.fits outfile=/scratch/kocevski/578549/expmap_528854401_529113601_4FGL_J2253.9+1609_daily_bin1117.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/578549/ltcube_528854401_529113601_4FGL_J2253.9+1609_daily_bin1117.fits
.....................!
real 189.79
user 184.53
sys 4.90

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/578549/ft1_filtered_4FGL_J2253.9+1609_daily_bin1117.fits scfile=/scratch/kocevski/578549/ft2_4FGL_J2253.9+1609_daily_bin1117.fits outfile=/scratch/kocevski/578549/cmap_528854401_529113601_4FGL_J2253.9+1609_daily_bin1117.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.697       1.0000         .10000E-03   10000.    
     2 'norm      '    .57572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12144E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6382       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    104.64       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.926       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6749       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1283       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76185       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=   8568.592     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2747 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.701        23.456       -.25666E-06    .35222E-04
   2  norm          .59315        2.8259        .22920E-06   -.11334E-03
   3  Prefactor     28.694        20.495        .14168E-06    .12512E-04
   4  Prefactor     .10000E-03    6.0160       -.24620E-07** at limit **
   5  Prefactor     3.3119        .41286        .44684E-08    .15199E-02
   6  Prefactor     .10001E-03    5.5107       -.18600E-05** at limit **
   7  norm          3.6384        1.9616        .10257E-06    .27859E-03
   8  Prefactor     .10000E-03    9.5534        .41241E-06** at limit **
   9  Prefactor     .10000E-03    16.967       -.81458E-06** at limit **
  10  Prefactor     12.314        21.860        .16279E-05   -.36309E-04
  11  Prefactor     1.2473        .23354        .20765E-08    .22047E-02
  12  Prefactor     .10000E-03    5.8799        .13543E-06** at limit **
  13  Prefactor     104.66        46.744       -.10284E-05    .73279E-04
  14  Prefactor     .10000E-03    7.4897       -.52591E-06** at limit **
  15  Prefactor     .10000E-03    3.4793       -.12996E-06** at limit **
  16  Prefactor     54.931        30.178       -.42472E-06    .44677E-04
  17  Prefactor     4.2305        7.5883        .37680E-05    .15956E-03
  18  Prefactor     5.6751        6.8371        .29937E-06    .16304E-04
  19  Prefactor     9.1281        14.261       -.10380E-05    .76224E-05
  20  norm          .10000E-03    3.4193        .12695E-06** at limit **
  21  Prefactor     .10000E-03    4.4358       -.96473E-07** at limit **
  22  norm          .10000E-03    3.3054       -.43617E-07** at limit **
  23  Normalizat    1.1854        .23866       -.21350E-05    .70029E-04
  24  Prefactor     .76198        .11988        .83220E-06    .17230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7009
  norm       = 0.593148
  Prefactor  = 28.6935
  Prefactor  = 0.0001
  Prefactor  = 3.31188
  Prefactor  = 0.000100008
  norm       = 3.6384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3137
  Prefactor  = 1.24732
  Prefactor  = 0.0001
  Prefactor  = 104.656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.931
  Prefactor  = 4.23054
  Prefactor  = 5.67513
  Prefactor  = 9.12807
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18541
  Prefactor  = 0.761984
 **********
 **   18 **HESSE 
 **********

 FCN=   8568.592     FROM HESSE     STATUS=OK           397 CALLS     3144 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.701        23.462        .68032E-04   -1.4529    
   2  norm          .59315        11.216        .29457E-02   -1.5554    
   3  Prefactor     28.694        20.605        .74793E-04   -1.4636    
   4  Prefactor     .10000E-03    6.0408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3119        .41212        .18896E-04   -1.5344    
   6  Prefactor     .10001E-03    19.180        .38833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6384        1.9603        .46129E-03   -1.5326    
   8  Prefactor     .10000E-03    9.5527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.314        21.901        .11411E-03   -1.5006    
  11  Prefactor     1.2473        .23450        .17751E-04   -1.5485    
  12  Prefactor     .10000E-03    5.9039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     104.66        46.915        .39309E-04   -1.3658    
  14  Prefactor     .10000E-03    7.6032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4843        .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.931        30.230        .54123E-04   -1.4224    
  17  Prefactor     4.2305        7.7127        .97995E-03   -1.5297    
  18  Prefactor     5.6751        6.8348        .84311E-03   -1.5231    
  19  Prefactor     9.1281        14.296        .13265E-03   -1.5104    
  20  norm          .10000E-03    3.4342        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.3065        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1854        .27635        .35453E-03   -.87055    
  24  Prefactor     .76198        .14025        .23141E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46701e-08
Minuit parameter uncertainties:
  1  23.4685
  2  5.15929
  3  20.6105
  4  2.03662e-06
  5  0.412116
  6  0.000806732
  7  1.96032
  8  2.21929e-05
  9  3.4626e-05
  10  21.9149
  11  0.234503
  12  2.87094e-06
  13  46.9312
  14  1.48599e-05
  15  1.96722e-06
  16  30.2388
  17  7.71455
  18  6.83577
  19  14.3011
  20  4.58077e-06
  21  5.45183e-06
  22  4.80931e-07
  23  0.276686
  24  0.140313
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.247e+00  2.345e-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.620e-01  1.403e-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.185e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.04
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.55e-07 +/- 8.55e-08
Energy Flux (Fixed Index): 1.46e-04 +/- 2.75e-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) = 8567.18222012
delta logL = 1.40959530322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8567.16677793
delta logL = 1.42503748658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4302       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3641       1.0000          .0000       10.000    
     3 'Normalizat'    1.0819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80236       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=   8567.167     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4303        .24900        .40921E-02    .21669E-03
   2  Index1        2.3640        .20085        .97280E-01   -.61500E-04
   3  Normalizat    1.0819        .22597        .83068E-01    .22246E-04
   4  Prefactor     .80238        .12014        .43748E-01    .12232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43026
  Index1     = 2.36404
  Normalizat = 1.08187
  Prefactor  = 0.80238
 **********
 **   18 **HESSE 
 **********

 FCN=   8567.167     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .56E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4303        .25759        .18111E-04   -1.5469    
   2  Index1        2.3640        .21184        .42316E-03   -.55529    
   3  Normalizat    1.0819        .26842        .36778E-03   -.90336    
   4  Prefactor     .80238        .14202        .22603E-03   -.99641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56927e-16
Minuit parameter uncertainties:
  1  0.25759
  2  0.211929
  3  0.268762
  4  0.142082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578549': 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) = 8567.16677767
delta logL = 1.42503775407

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.430e+00  2.576e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.364e+00  2.119e-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:  8.024e-01  1.421e-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.082e+00  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 74.05
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.36 +/- 0.21
Photon Flux (Free Index): 5.49e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.34e-04 +/- 2.42e-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/578549/cmap_HighResolution_528854401_529113601_4FGL_J2253.9+1609_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.55e-07', energy_flux2='1.34e-04', photon_flux_error='8.55e-08', dlogl='1.43e+00', energy_flux='1.46e-04', photon_flux2='5.49e-07', job_status='DONE', time_completed='2021-09-29 02:16:10.294387', photon_index_error2='0.21', photon_index2='2.36', ts='72.04', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='1.19', time_epoch_completed='1632906970.29', return_code='0', job_id='578549', GAL2='0.80', EG2='1.08', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='1.08e-07', ts2='74.05', photon_index='2.02' WHERE bin_id='1117' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 578549: <4FGL_J2253.9+1609_daily_bin1117> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1117 343.496 16.1506 528854401 529113601 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 :                                   700.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

