/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 7 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin49
RA = 343.496, Dec = 16.1506
tmin = 252028801, tmax = 252288001
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='572891', job_status='RUN', time_executed='2021-09-29 01:45:49.805931', time_epoch_executed='1632905149.81' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572891/ft1_4FGL_J2253.9+1609_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572891/ft2_4FGL_J2253.9+1609_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572891/ft1_4FGL_J2253.9+1609_daily_bin49.fits outfile=/scratch/kocevski/572891/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin49.fits ra=343.496 dec=16.1506 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.41
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572891/ft1_filtered_4FGL_J2253.9+1609_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/572891/ft2_4FGL_J2253.9+1609_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/572891/ltcube_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.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/572891/ft2_4FGL_J2253.9+1609_daily_bin49.fits
.....................!
real 12.74
user 12.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572891/ft1_filtered_4FGL_J2253.9+1609_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/572891/ft2_4FGL_J2253.9+1609_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/572891/ltcube_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.fits outfile=/scratch/kocevski/572891/expmap_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.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/572891/ltcube_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.fits
.....................!
real 190.19
user 184.96
sys 4.92

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/572891/ft1_filtered_4FGL_J2253.9+1609_daily_bin49.fits scfile=/scratch/kocevski/572891/ft2_4FGL_J2253.9+1609_daily_bin49.fits outfile=/scratch/kocevski/572891/cmap_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.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/572891/ft1_filtered_4FGL_J2253.9+1609_daily_bin49.fits scfile=/scratch/kocevski/572891/ft2_4FGL_J2253.9+1609_daily_bin49.fits outfile=/scratch/kocevski/572891/cmap_HighResolution_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25684E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42508       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8091       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11725E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12536E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30960E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    31.045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8428       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91638       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97313       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=   7332.137     FROM MIGRAD    STATUS=CONVERGED    964 CALLS     3191 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3086        .18142E-02** at limit **
   2  norm          .10000E-03    1.2415        .93108E-03** at limit **
   3  Prefactor     .10000E-03    32.588        .18142E-02** at limit **
   4  Prefactor     .10000E-03    50.483        .40135E-02** at limit **
   5  Prefactor     .42516        .19844        .25069E-04    .17655E-02
   6  Prefactor     .10000E-03    2.7968        .13972E-02** at limit **
   7  norm          1.3745        1.3699        .95884E-04   -.95091E-04
   8  Prefactor     6.2190        26.801        .16098E-03    .17373E-04
   9  Prefactor     10.117        9.6243        .12598E-03    .87623E-04
  10  Prefactor     43.487        23.233        .60793E-04    .32913E-05
  11  Prefactor     1.8091        .25709        .15049E-04    .63489E-03
  12  Prefactor     .10000E-03    5.8034        .18142E-02** at limit **
  13  Prefactor     .10000E-03    117.11        .18142E-02** at limit **
  14  Prefactor     9.8039        6.7118        .12798E-03    .58897E-04
  15  Prefactor     .10000E-03    6.9871        .18142E-02** at limit **
  16  Prefactor     37.974        27.214        .65043E-04    .11536E-04
  17  Prefactor     .10000E-03    8.9718        .36285E-02** at limit **
  18  Prefactor     .10008E-03    104.69        .48951E-02** at limit **
  19  Prefactor     .10000E-03    72.612        .47398E-02** at limit **
  20  norm          31.036        11.957        .71912E-04    .43298E-03
  21  Prefactor     .10000E-03    12.215        .36285E-03** at limit **
  22  norm          1.8441        11.558        .30724E-03    .23715E-03
  23  Normalizat    .91626        .24817        .35480E-03    .11539E-03
  24  Prefactor     .97315        .13931        .19831E-03    .25494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.425156
  Prefactor  = 0.0001
  norm       = 1.37454
  Prefactor  = 6.21897
  Prefactor  = 10.1175
  Prefactor  = 43.4867
  Prefactor  = 1.80912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80386
  Prefactor  = 0.0001
  Prefactor  = 37.9739
  Prefactor  = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  norm       = 31.0356
  Prefactor  = 0.0001
  norm       = 1.84406
  Normalizat = 0.916259
  Prefactor  = 0.97315
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.137     FROM HESSE     STATUS=OK           373 CALLS     3564 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2415        .18622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.471        .80270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42516        .19842        .10027E-05   -1.5578    
   6  Prefactor     .10000E-03    2.7970        .27945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3745        1.3699        .38354E-05   -1.5473    
   8  Prefactor     6.2190        26.800        .64390E-05   -1.5209    
   9  Prefactor     10.117        9.6238        .50393E-05   -1.5072    
  10  Prefactor     43.487        23.233        .12159E-04   -1.4388    
  11  Prefactor     1.8091        .25708        .30097E-05   -1.5439    
  12  Prefactor     .10000E-03    5.8045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    117.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8039        6.7117        .51191E-05   -1.5082    
  15  Prefactor     .10000E-03    6.9883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.974        27.217        .26017E-05   -1.4475    
  17  Prefactor     .10000E-03    9.0378        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10008E-03    107.91        .19580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    73.988        .94795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          31.036        11.914        .14382E-04   -1.4593    
  21  Prefactor     .10000E-03    12.216        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8441        11.558        .12290E-04   -1.5436    
  23  Normalizat    .91626        .24818        .14192E-04   -.95891    
  24  Prefactor     .97315        .13940        .39662E-04   -.93630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17362e-09
Minuit parameter uncertainties:
  1  1.83385e-05
  2  1.37666e-06
  3  5.37962e-05
  4  0.000590433
  5  0.198421
  6  2.34601e-07
  7  1.36992
  8  25.8395
  9  9.62524
  10  23.2379
  11  0.257081
  12  1.49846e-05
  13  0.000249217
  14  6.71225
  15  2.21632e-05
  16  27.2263
  17  6.57285e-05
  18  0.00580077
  19  0.000197606
  20  11.9151
  21  0.000104532
  22  9.23567
  23  0.248491
  24  0.139449
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.809e+00  2.571e-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:  9.731e-01  1.394e-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.163e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 153.96
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.60e-07 +/- 9.37e-08
Energy Flux (Fixed Index): 2.12e-04 +/- 3.01e-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) = 7331.68616056
delta logL = 0.450767080188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7331.67241923
delta logL = 0.46450841302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9101       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1785       1.0000          .0000       10.000    
     3 'Normalizat'    .86263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99486       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=   7331.672     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9099        .26144        .34380E-02    .62002E-04
   2  Index1        2.1784        .15967        .72195E-01    .46768E-04
   3  Normalizat    .86288        .21263        .82161E-01    .38288E-04
   4  Prefactor     .99475        .12089        .46203E-01    .54222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90989
  Index1     = 2.17835
  Normalizat = 0.86288
  Prefactor  = 0.994755
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.672     FROM HESSE     STATUS=OK            27 CALLS      226 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9099        .27228        .15197E-04   -1.5432    
   2  Index1        2.1784        .16806        .31659E-03   -.59962    
   3  Normalizat    .86288        .24794        .36376E-03   -.97777    
   4  Prefactor     .99475        .14067        .19637E-03   -.92905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24374e-11
Minuit parameter uncertainties:
  1  0.272285
  2  0.168106
  3  0.248263
  4  0.140721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572891': 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) = 7331.67241826
delta logL = 0.464509376807

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.910e+00  2.723e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.178e+00  1.681e-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:  9.948e-01  1.407e-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:  8.629e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 156.38
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.18 +/- 0.17
Photon Flux (Free Index): 7.09e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.98e-04 +/- 2.99e-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/572891/cmap_HighResolution_252028801_252288001_4FGL_J2253.9+1609_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-07', energy_flux2='1.98e-04', photon_flux_error='9.37e-08', dlogl='4.65e-01', energy_flux='2.12e-04', photon_flux2='7.09e-07', job_status='DONE', time_completed='2021-09-29 01:57:17.080214', photon_index_error2='0.17', photon_index2='2.18', ts='153.96', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='0.92', time_epoch_completed='1632905837.08', return_code='0', job_id='572891', GAL2='0.99', EG2='0.86', return_code2='0', energy_flux_error='3.01e-05', photon_flux_error2='1.08e-07', ts2='156.38', photon_index='2.02' WHERE bin_id='49' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:57:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 572891: <4FGL_J2253.9+1609_daily_bin49> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin49> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:32 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:45:33 2021
Terminated at Wed Sep 29 01:57:17 2021
Results reported at Wed Sep 29 01:57:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin49 343.496 16.1506 252028801 252288001 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 :                                   684.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            705 sec.

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

