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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1300
RA = 343.496, Dec = 16.1506
tmin = 576288001, tmax = 576547201
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='579905', job_status='RUN', time_executed='2021-09-29 02:07:36.398573', time_epoch_executed='1632906456.4' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579905

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579905/ft1_4FGL_J2253.9+1609_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579905/ft2_4FGL_J2253.9+1609_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579905/ft1_4FGL_J2253.9+1609_daily_bin1300.fits outfile=/scratch/kocevski/579905/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1300.fits ra=343.496 dec=16.1506 rad=12.0 tmin=576288001.0 tmax=576547201.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.39
user 3.07
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579905/ft1_filtered_4FGL_J2253.9+1609_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/579905/ft2_4FGL_J2253.9+1609_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/579905/ltcube_576288001_576547201_4FGL_J2253.9+1609_daily_bin1300.fits outfile=/scratch/kocevski/579905/expmap_576288001_576547201_4FGL_J2253.9+1609_daily_bin1300.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/579905/ltcube_576288001_576547201_4FGL_J2253.9+1609_daily_bin1300.fits
.....................!
real 191.23
user 185.96
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/579905/ft1_filtered_4FGL_J2253.9+1609_daily_bin1300.fits scfile=/scratch/kocevski/579905/ft2_4FGL_J2253.9+1609_daily_bin1300.fits outfile=/scratch/kocevski/579905/cmap_576288001_576547201_4FGL_J2253.9+1609_daily_bin1300.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579905/ft1_filtered_4FGL_J2253.9+1609_daily_bin1300.fits scfile=/scratch/kocevski/579905/ft2_4FGL_J2253.9+1609_daily_bin1300.fits outfile=/scratch/kocevski/579905/cmap_HighResolution_576288001_576547201_4FGL_J2253.9+1609_daily_bin1300.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7148       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4023       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5407       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .93049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5246       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5201       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5015       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.779       1.0000         .10000E-03   10000.    
    22 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4591       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69759       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=   8450.014     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2694 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7102        17.594       -.18132E-05   -.37028E-04
   2  norm          .10000E-03    2.1784        .13615E-07** at limit **
   3  Prefactor     4.4024        8.9765       -.39733E-07   -.32935E-04
   4  Prefactor     4.5327        14.083       -.67209E-06   -.40259E-04
   5  Prefactor     .93047        .23064       -.11541E-07    .75831E-05
   6  Prefactor     3.5251        3.6024        .87622E-06   -.18331E-02
   7  norm          .10000E-03    .79014       -.47315E-08** at limit **
   8  Prefactor     .10000E-03    13.977       -.20556E-05** at limit **
   9  Prefactor     .10000E-03    19.763        .24863E-05** at limit **
  10  Prefactor     .10000E-03    5.3927       -.11283E-07** at limit **
  11  Prefactor     2.6224        .28754       -.29749E-08   -.26238E-03
  12  Prefactor     23.442        15.664        .27921E-07   -.10621E-03
  13  Prefactor     .10000E-03    15.488       -.46346E-05** at limit **
  14  Prefactor     1.5213        5.7167        .24203E-07   -.23485E-03
  15  Prefactor     .10000E-03    11.967        .44441E-05** at limit **
  16  Prefactor     .10000E-03    31.020       -.70500E-05** at limit **
  17  Prefactor     .10000E-03    6.2272        .94094E-07** at limit **
  18  Prefactor     16.255        13.763        .14822E-06    .15746E-04
  19  Prefactor     7.4994        17.626       -.11473E-05   -.37869E-04
  20  norm          .10000E-03    9.5231       -.10346E-05** at limit **
  21  Prefactor     15.781        10.262       -.15794E-06   -.43279E-04
  22  norm          .10000E-03    26.304        .72333E-05** at limit **
  23  Normalizat    1.4595        .23437        .37269E-06   -.55439E-04
  24  Prefactor     .69739        .11875       -.80740E-07   -.34804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.71024
  norm       = 0.0001
  Prefactor  = 4.40242
  Prefactor  = 4.53265
  Prefactor  = 0.930474
  Prefactor  = 3.52514
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62245
  Prefactor  = 23.442
  Prefactor  = 0.0001
  Prefactor  = 1.52126
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.255
  Prefactor  = 7.49936
  norm       = 0.0001
  Prefactor  = 15.7808
  norm       = 0.0001
  Normalizat = 1.45951
  Prefactor  = 0.697388
 **********
 **   18 **HESSE 
 **********

 FCN=   8450.014     FROM HESSE     STATUS=OK           399 CALLS     3093 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7102        17.576        .16802E-03   -1.5230    
   2  norm          .10000E-03    2.1910        .13246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4024        8.9663        .19194E-03   -1.5288    
   4  Prefactor     4.5327        14.132        .18892E-03   -1.5282    
   5  Prefactor     .93047        .23232        .20861E-04   -1.5515    
   6  Prefactor     3.5251        6.5897        .10766E-02   -1.5332    
   7  norm          .10000E-03    .80132        .79763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6224        .28901        .15333E-04   -1.5384    
  12  Prefactor     23.442        15.719        .41366E-03   -1.4739    
  13  Prefactor     .10000E-03    15.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5213        5.7552        .34656E-03   -1.5461    
  15  Prefactor     .10000E-03    12.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.255        13.761        .99353E-04   -1.4901    
  19  Prefactor     7.4994        17.639        .14643E-03   -1.5160    
  20  norm          .10000E-03    9.5792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.781        10.294        .10083E-03   -1.4913    
  22  norm          .10000E-03    26.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4595        .27917        .32615E-03   -.78923    
  24  Prefactor     .69739        .14096        .23936E-03   -1.0363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37835e-09
Minuit parameter uncertainties:
  1  17.5916
  2  6.18796e-07
  3  8.969
  4  14.1419
  5  0.232316
  6  6.59108
  7  5.49808e-07
  8  6.25456e-05
  9  6.69413e-05
  10  4.266e-07
  11  0.289008
  12  15.7214
  13  0.000149592
  14  5.75731
  15  0.000107036
  16  0.000288096
  17  1.0065e-05
  18  13.7638
  19  17.6511
  20  2.35584e-05
  21  10.2949
  22  0.000209313
  23  0.279462
  24  0.141031
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.622e+00  2.890e-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:  6.974e-01  1.410e-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.460e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 254.95
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.56e-07 +/- 1.05e-07
Energy Flux (Fixed Index): 3.07e-04 +/- 3.38e-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) = 8449.43837034
delta logL = 0.575390985839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8449.43510062
delta logL = 0.578660706329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7860       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1556       1.0000          .0000       10.000    
     3 'Normalizat'    1.3885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72335       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=   8449.435     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7861        .31125        .35096E-02   -.11135E-02
   2  Index1        2.1555        .12076        .56991E-01   -.70435E-04
   3  Normalizat    1.3885        .22656        .75037E-01    .29178E-04
   4  Prefactor     .72333        .11810        .42711E-01    .13306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78606
  Index1     = 2.15554
  Normalizat = 1.38853
  Prefactor  = 0.723333
 **********
 **   18 **HESSE 
 **********

 FCN=   8449.435     FROM HESSE     STATUS=OK            29 CALLS      228 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7861        .32812        .15513E-04   -1.5374    
   2  Index1        2.1555        .12775        .25084E-03   -.60516    
   3  Normalizat    1.3885        .27110        .33206E-03   -.80961    
   4  Prefactor     .72333        .14043        .23534E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59833e-12
Minuit parameter uncertainties:
  1  0.32812
  2  0.127766
  3  0.271378
  4  0.140503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579905': 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) = 8449.43510055
delta logL = 0.578660777648

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.786e+00  3.281e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.156e+00  1.278e-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.233e-01  1.405e-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.389e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 252.97
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.16 +/- 0.13
Photon Flux (Free Index): 1.03e-06 +/- 1.29e-07
Energy Flux (Free Index): 2.93e-04 +/- 3.37e-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/579905/cmap_HighResolution_576288001_576547201_4FGL_J2253.9+1609_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.56e-07', energy_flux2='2.93e-04', photon_flux_error='1.05e-07', dlogl='5.79e-01', energy_flux='3.07e-04', photon_flux2='1.03e-06', job_status='DONE', time_completed='2021-09-29 02:20:05.889832', photon_index_error2='0.13', photon_index2='2.16', ts='254.95', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='3.37e-05', EG='1.46', time_epoch_completed='1632907205.89', return_code='0', job_id='579905', GAL2='0.72', EG2='1.39', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='1.29e-07', ts2='252.97', photon_index='2.02' WHERE bin_id='1300' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 579905: <4FGL_J2253.9+1609_daily_bin1300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1300 343.496 16.1506 576288001 576547201 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

