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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1553
RA = 343.496, Dec = 16.1506
tmin = 641865601, tmax = 642124801
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='581457', job_status='RUN', time_executed='2021-09-29 02:14:17.554909', time_epoch_executed='1632906857.55' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581457/ft1_4FGL_J2253.9+1609_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581457/ft2_4FGL_J2253.9+1609_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581457/ft1_4FGL_J2253.9+1609_daily_bin1553.fits outfile=/scratch/kocevski/581457/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1553.fits ra=343.496 dec=16.1506 rad=12.0 tmin=641865601.0 tmax=642124801.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 4.34
user 4.12
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581457/ft1_filtered_4FGL_J2253.9+1609_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/581457/ft2_4FGL_J2253.9+1609_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/581457/ltcube_641865601_642124801_4FGL_J2253.9+1609_daily_bin1553.fits outfile=/scratch/kocevski/581457/expmap_641865601_642124801_4FGL_J2253.9+1609_daily_bin1553.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/581457/ltcube_641865601_642124801_4FGL_J2253.9+1609_daily_bin1553.fits
.....................!
real 193.05
user 186.88
sys 5.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/581457/ft1_filtered_4FGL_J2253.9+1609_daily_bin1553.fits scfile=/scratch/kocevski/581457/ft2_4FGL_J2253.9+1609_daily_bin1553.fits outfile=/scratch/kocevski/581457/cmap_641865601_642124801_4FGL_J2253.9+1609_daily_bin1553.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581457/ft1_filtered_4FGL_J2253.9+1609_daily_bin1553.fits scfile=/scratch/kocevski/581457/ft2_4FGL_J2253.9+1609_daily_bin1553.fits outfile=/scratch/kocevski/581457/cmap_HighResolution_641865601_642124801_4FGL_J2253.9+1609_daily_bin1553.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3690       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78525E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5732       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5423       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7918       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15717E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2553       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.730       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5327       1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2001       1.0000         .10000E-03   10000.    
    22 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0735       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88578       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=   6726.888     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2317 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3689        19.470        .67408E-07    .24501E-05
   2  norm          .10000E-03    1.8733       -.37362E-08** at limit **
   3  Prefactor     .10000E-03    10.328        .67014E-06** at limit **
   4  Prefactor     8.8382        10.133        .75346E-06    .33192E-04
   5  Prefactor     .78460E-01    .12825        .43495E-08   -.90320E-03
   6  Prefactor     3.5733        3.7417       -.59412E-06   -.58909E-04
   7  norm          2.5420        1.8161        .58050E-07    .16929E-03
   8  Prefactor     .10000E-03    32.885       -.25831E-05** at limit **
   9  Prefactor     .10000E-03    11.025       -.88797E-06** at limit **
  10  Prefactor     .10000E-03    43.578        .29578E-05** at limit **
  11  Prefactor     .62720        .17095        .17349E-08   -.61377E-03
  12  Prefactor     3.7918        6.4520        .20265E-05    .84828E-04
  13  Prefactor     .10000E-03    13.133        .13276E-06** at limit **
  14  Prefactor     .10000E-03    6.0040       -.29601E-07** at limit **
  15  Prefactor     .10001E-03    6.6241        .10239E-05** at limit **
  16  Prefactor     .10000E-03    29.411       -.19358E-05** at limit **
  17  Prefactor     3.2511        7.1278        .29955E-06    .42240E-05
  18  Prefactor     13.730        9.1893       -.32016E-07   -.17729E-04
  19  Prefactor     5.5398        13.243        .70790E-07   -.39683E-05
  20  norm          .10000E-03    3.9476        .25411E-07** at limit **
  21  Prefactor     8.1998        7.8622        .76235E-06   -.19831E-04
  22  norm          .10000E-03    23.053        .18668E-05** at limit **
  23  Normalizat    1.0734        .20950       -.49858E-06   -.32759E-04
  24  Prefactor     .88574        .11539       -.80821E-07   -.50697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83816
  Prefactor  = 0.0784601
  Prefactor  = 3.57331
  norm       = 2.54203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.627198
  Prefactor  = 3.79177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 3.25113
  Prefactor  = 13.7298
  Prefactor  = 5.53982
  norm       = 0.0001
  Prefactor  = 8.19976
  norm       = 0.0001
  Normalizat = 1.07343
  Prefactor  = 0.885742
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.888     FROM HESSE     STATUS=OK           403 CALLS     2720 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3689        19.455        .13858E-03   -1.5129    
   2  norm          .10000E-03    1.8949        .10960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8382        10.143        .67414E-03   -1.5113    
   5  Prefactor     .78460E-01    .11745        .35661E-03   -1.5652    
   6  Prefactor     3.5733        3.7464        .79093E-03   -1.5330    
   7  norm          2.5420        1.8121        .90568E-04   -1.5389    
   8  Prefactor     .10000E-03    33.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .62720        .17068        .16718E-04   -1.5550    
  12  Prefactor     3.7918        6.4716        .10365E-02   -1.5318    
  13  Prefactor     .10000E-03    13.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    35.646        .39195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2511        7.0818        .22447E-03   -1.5347    
  18  Prefactor     13.730        9.1866        .10810E-03   -1.4967    
  19  Prefactor     5.5398        13.178        .17081E-03   -1.5237    
  20  norm          .10000E-03    3.9626        .15903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1998        7.8593        .70002E-03   -1.5135    
  22  norm          .10000E-03    23.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0734        .24682        .30098E-03   -.90609    
  24  Prefactor     .88574        .13745        .18784E-03   -.96641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20601e-09
Minuit parameter uncertainties:
  1  19.4698
  2  3.34307e-07
  3  2.13264e-07
  4  10.1451
  5  0.117449
  6  3.74667
  7  1.81212
  8  8.38722e-06
  9  9.84616e-06
  10  0.000105935
  11  0.170677
  12  6.47275
  13  1.59622e-06
  14  4.3256e-06
  15  0.00143741
  16  1.83981e-05
  17  7.08367
  18  9.18755
  19  13.1846
  20  1.32581e-06
  21  7.8603
  22  7.77169e-05
  23  0.247087
  24  0.137506
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.272e-01  1.707e-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:  8.857e-01  1.375e-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.073e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.86
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.29e-07 +/- 6.22e-08
Energy Flux (Fixed Index): 7.34e-05 +/- 2.00e-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) = 6726.04652408
delta logL = 0.841182560438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6726.00275871
delta logL = 0.884947933913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72421       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3986       1.0000          .0000       10.000    
     3 'Normalizat'    1.0113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90888       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=   6726.003     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72433        .18519        .37562E-02   -.41528E-03
   2  Index1        2.3989        .28628        .12185       -.53323E-04
   3  Normalizat    1.0114        .20287        .69684E-01    .23674E-04
   4  Prefactor     .90879        .11544        .45118E-01    .48781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.724331
  Index1     = 2.39887
  Normalizat = 1.0114
  Prefactor  = 0.908791
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.003     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72433        .18594        .16646E-04   -1.5538    
   2  Index1        2.3989        .29469        .52690E-03   -.54711    
   3  Normalizat    1.0114        .24398        .30828E-03   -.92650    
   4  Prefactor     .90879        .13816        .18556E-03   -.95835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11956e-12
Minuit parameter uncertainties:
  1  0.185938
  2  0.294922
  3  0.244254
  4  0.13821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581457': 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) = 6726.00275766
delta logL = 0.88494898276

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.243e-01  1.859e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.399e+00  2.949e-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.088e-01  1.382e-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.011e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.75
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.40 +/- 0.29
Photon Flux (Free Index): 2.80e-07 +/- 7.75e-08
Energy Flux (Free Index): 6.68e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/581457/cmap_HighResolution_641865601_642124801_4FGL_J2253.9+1609_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-07', energy_flux2='6.68e-05', photon_flux_error='6.22e-08', dlogl='8.85e-01', energy_flux='7.34e-05', photon_flux2='2.80e-07', job_status='DONE', time_completed='2021-09-29 02:24:10.665194', photon_index_error2='0.29', photon_index2='2.40', ts='32.86', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.07', time_epoch_completed='1632907450.67', return_code='0', job_id='581457', GAL2='0.91', EG2='1.01', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='7.75e-08', ts2='34.75', photon_index='2.02' WHERE bin_id='1553' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:24:10 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1553 343.496 16.1506 641865601 642124801 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 :                                   590.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             222.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

