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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin708
RA = 343.496, Dec = 16.1506
tmin = 422841601, tmax = 423100801
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='576735', job_status='RUN', time_executed='2021-09-29 01:55:46.825850', time_epoch_executed='1632905746.83' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576735/ft1_4FGL_J2253.9+1609_daily_bin708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576735/ft2_4FGL_J2253.9+1609_daily_bin708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576735/ft1_4FGL_J2253.9+1609_daily_bin708.fits outfile=/scratch/kocevski/576735/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin708.fits ra=343.496 dec=16.1506 rad=12.0 tmin=422841601.0 tmax=423100801.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.72
user 3.63
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576735/ft1_filtered_4FGL_J2253.9+1609_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/576735/ft2_4FGL_J2253.9+1609_daily_bin708.fits sctable="SC_DATA" expcube=/scratch/kocevski/576735/ltcube_422841601_423100801_4FGL_J2253.9+1609_daily_bin708.fits outfile=/scratch/kocevski/576735/expmap_422841601_423100801_4FGL_J2253.9+1609_daily_bin708.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/576735/ltcube_422841601_423100801_4FGL_J2253.9+1609_daily_bin708.fits
.....................!
real 190.92
user 185.75
sys 4.59

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/576735/ft1_filtered_4FGL_J2253.9+1609_daily_bin708.fits scfile=/scratch/kocevski/576735/ft2_4FGL_J2253.9+1609_daily_bin708.fits outfile=/scratch/kocevski/576735/cmap_422841601_423100801_4FGL_J2253.9+1609_daily_bin708.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/576735/ft1_filtered_4FGL_J2253.9+1609_daily_bin708.fits scfile=/scratch/kocevski/576735/ft2_4FGL_J2253.9+1609_daily_bin708.fits outfile=/scratch/kocevski/576735/cmap_HighResolution_422841601_423100801_4FGL_J2253.9+1609_daily_bin708.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7629       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52808       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2392       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86265       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91355       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=   9532.699     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2705 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7613        10.429       -.28118E-06   -.50834E-05
   2  norm          4.3996        3.7514        .56819E-07    .11829E-04
   3  Prefactor     4.2659        12.731       -.12954E-05   -.49510E-05
   4  Prefactor     .10000E-03    7.3586        .10301E-05** at limit **
   5  Prefactor     .12940        .12610        .71918E-07    .27235E-02
   6  Prefactor     .51784        4.2995        .76708E-06    .31349E-03
   7  norm          1.8335        1.6540       -.10194E-06   -.10869E-04
   8  Prefactor     .10000E-03    12.263        .70615E-07** at limit **
   9  Prefactor     39.666        15.562       -.19410E-06    .11263E-05
  10  Prefactor     .10000E-03    9.4619        .85680E-06** at limit **
  11  Prefactor     5.7349        .37063       -.88184E-08    .58624E-03
  12  Prefactor     14.160        11.032        .87263E-07    .23804E-04
  13  Prefactor     36.471        32.877       -.18030E-05    .10427E-04
  14  Prefactor     .10000E-03    7.4773       -.16921E-06** at limit **
  15  Prefactor     .10000E-03    3.4539        .43675E-07** at limit **
  16  Prefactor     11.165        17.901       -.36108E-05    .95035E-05
  17  Prefactor     .10000E-03    33.252        .10549E-04** at limit **
  18  Prefactor     5.6622        14.103        .57766E-06    .87282E-04
  19  Prefactor     .10000E-03    9.1538        .32814E-06** at limit **
  20  norm          3.2293        9.6898       -.27948E-05    .92945E-05
  21  Prefactor     .10000E-03    2.8029        .59613E-06** at limit **
  22  norm          .10000E-03    8.2732       -.14110E-05** at limit **
  23  Normalizat    .86192        .22242        .20361E-05    .18958E-04
  24  Prefactor     .91391        .11748       -.43899E-07    .26393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.76128
  norm       = 4.39961
  Prefactor  = 4.26592
  Prefactor  = 0.0001
  Prefactor  = 0.129398
  Prefactor  = 0.517837
  norm       = 1.83355
  Prefactor  = 0.0001
  Prefactor  = 39.6664
  Prefactor  = 0.0001
  Prefactor  = 5.73493
  Prefactor  = 14.1599
  Prefactor  = 36.4706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1652
  Prefactor  = 0.000100001
  Prefactor  = 5.6622
  Prefactor  = 0.0001
  norm       = 3.22925
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.861925
  Prefactor  = 0.913907
 **********
 **   18 **HESSE 
 **********

 FCN=   9532.699     FROM HESSE     STATUS=OK           409 CALLS     3114 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7613        10.426        .14392E-03   -1.5151    
   2  norm          4.3996        3.7543        .16965E-03   -1.5288    
   3  Prefactor     4.2659        12.638        .19537E-03   -1.5295    
   4  Prefactor     .10000E-03    7.4169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12940        .11382        .32333E-03   -1.5636    
   6  Prefactor     .51784        11.888        .37829E-02   -1.5564    
   7  norm          1.8335        1.6458        .11378E-03   -1.5437    
   8  Prefactor     .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.666        15.548        .63643E-04   -1.4448    
  10  Prefactor     .10000E-03    9.4685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7349        .37131        .14209E-04   -1.5229    
  12  Prefactor     14.160        11.035        .10646E-03   -1.4955    
  13  Prefactor     36.471        32.879        .66368E-04   -1.4499    
  14  Prefactor     .10000E-03    7.6019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4572        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.165        17.907        .12002E-03   -1.5040    
  17  Prefactor     .10000E-03    33.046        .38659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6622        13.860        .16958E-03   -1.5232    
  19  Prefactor     .10000E-03    9.1839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2293        9.6791        .22505E-03   -1.5349    
  21  Prefactor     .10000E-03    2.8337        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.3829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86192        .25130        .40349E-03   -.97811    
  24  Prefactor     .91391        .13676        .22126E-03   -.95657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18973e-09
Minuit parameter uncertainties:
  1  10.4282
  2  3.75454
  3  12.6458
  4  3.55512e-05
  5  0.113816
  6  4.96294
  7  1.64585
  8  3.58409e-06
  9  15.5494
  10  2.92384e-06
  11  0.371308
  12  11.0369
  13  32.8954
  14  1.20519e-05
  15  6.57901e-07
  16  17.916
  17  0.000342518
  18  13.8675
  19  1.5041e-05
  20  9.68382
  21  2.10772e-05
  22  1.16556e-07
  23  0.251643
  24  0.136811
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.735e+00  3.713e-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.139e-01  1.368e-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.619e-01  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 943.65
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.09e-06 +/- 1.35e-07
Energy Flux (Fixed Index): 6.71e-04 +/- 4.35e-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) = 9532.28496362
delta logL = 0.413755337249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9532.2811722
delta logL = 0.417546757897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6016       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9528       1.0000          .0000       10.000    
     3 'Normalizat'    .91072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89480       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=   9532.281     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6016        .38594        .31971E-02   -.13822E-03
   2  Index1        1.9527        .70771E-01    .26068E-01   -.61744E-04
   3  Normalizat    .91070        .21134        .89095E-01    .36119E-04
   4  Prefactor     .89477        .11670        .44939E-01    .12488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60159
  Index1     = 1.95268
  Normalizat = 0.910702
  Prefactor  = 0.894773
 **********
 **   18 **HESSE 
 **********

 FCN=   9532.281     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6016        .39533        .14128E-04   -1.5235    
   2  Index1        1.9527        .72597E-01    .15861E-03   -.65539    
   3  Normalizat    .91070        .24699        .39460E-03   -.96085    
   4  Prefactor     .89477        .13642        .22344E-03   -.96324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64865e-14
Minuit parameter uncertainties:
  1  0.395334
  2  0.0726011
  3  0.247296
  4  0.136469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576735': 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) = 9532.2811714
delta logL = 0.417547562474

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.602e+00  3.953e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.953e+00  7.260e-02  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.948e-01  1.365e-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.107e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 933.90
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.95 +/- 0.07
Photon Flux (Free Index): 2.04e-06 +/- 1.46e-07
Energy Flux (Free Index): 6.99e-04 +/- 5.51e-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/576735/cmap_HighResolution_422841601_423100801_4FGL_J2253.9+1609_daily_bin708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-06', energy_flux2='6.99e-04', photon_flux_error='1.35e-07', dlogl='4.18e-01', energy_flux='6.71e-04', photon_flux2='2.04e-06', job_status='DONE', time_completed='2021-09-29 02:08:52.260891', photon_index_error2='0.07', photon_index2='1.95', ts='943.65', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='5.51e-05', EG='0.86', time_epoch_completed='1632906532.26', return_code='0', job_id='576735', GAL2='0.89', EG2='0.91', return_code2='0', energy_flux_error='4.35e-05', photon_flux_error2='1.46e-07', ts2='933.90', photon_index='2.02' WHERE bin_id='708' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 576735: <4FGL_J2253.9+1609_daily_bin708> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin708> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:30 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:31 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:55:31 2021
Terminated at Wed Sep 29 02:08:53 2021
Results reported at Wed Sep 29 02:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin708 343.496 16.1506 422841601 423100801 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 :                                   782.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

