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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1327
RA = 343.496, Dec = 16.1506
tmin = 583286401, tmax = 583545601
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='579945', job_status='RUN', time_executed='2021-09-29 02:07:29.118925', time_epoch_executed='1632906449.12' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579945/ft1_4FGL_J2253.9+1609_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579945/ft2_4FGL_J2253.9+1609_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579945/ft1_4FGL_J2253.9+1609_daily_bin1327.fits outfile=/scratch/kocevski/579945/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1327.fits ra=343.496 dec=16.1506 rad=12.0 tmin=583286401.0 tmax=583545601.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.53
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579945/ft1_filtered_4FGL_J2253.9+1609_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/579945/ft2_4FGL_J2253.9+1609_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/579945/ltcube_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.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/579945/ft2_4FGL_J2253.9+1609_daily_bin1327.fits
.....................!
real 12.48
user 12.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579945/ft1_filtered_4FGL_J2253.9+1609_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/579945/ft2_4FGL_J2253.9+1609_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/579945/ltcube_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.fits outfile=/scratch/kocevski/579945/expmap_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.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/579945/ltcube_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.fits
.....................!
real 189.79
user 184.95
sys 4.48

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/579945/ft1_filtered_4FGL_J2253.9+1609_daily_bin1327.fits scfile=/scratch/kocevski/579945/ft2_4FGL_J2253.9+1609_daily_bin1327.fits outfile=/scratch/kocevski/579945/cmap_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.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/579945/ft1_filtered_4FGL_J2253.9+1609_daily_bin1327.fits scfile=/scratch/kocevski/579945/ft2_4FGL_J2253.9+1609_daily_bin1327.fits outfile=/scratch/kocevski/579945/cmap_HighResolution_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.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 1.14
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.648       1.0000         .10000E-03   10000.    
     9 'Prefactor '    101.19       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12723E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.728       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.0252       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.124       1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91166       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96918       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=   10053.87     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2730 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.494        .12807E-05** at limit **
   2  norm          1.6604        2.2363        .11535E-06   -.13044E-03
   3  Prefactor     .10000E-03    16.376        .91847E-06** at limit **
   4  Prefactor     .10000E-03    1.9698        .57743E-07** at limit **
   5  Prefactor     1.8089        .27699        .27458E-07   -.13785E-02
   6  Prefactor     .10000E-03    2.0047        .19137E-07** at limit **
   7  norm          1.0147        1.6618       -.45433E-07   -.48939E-03
   8  Prefactor     40.660        29.111        .76065E-05   -.12318E-04
   9  Prefactor     101.19        19.154        .51004E-06   -.89439E-05
  10  Prefactor     .10000E-03    74.602        .42553E-05** at limit **
  11  Prefactor     1.6668        .22692       -.14055E-07   -.71637E-03
  12  Prefactor     5.5373        6.5759       -.85072E-07   -.57737E-04
  13  Prefactor     5.7253        55.951        .84144E-04   -.10892E-04
  14  Prefactor     .10000E-03    5.1599        .13388E-06** at limit **
  15  Prefactor     .10000E-03    18.023        .26176E-05** at limit **
  16  Prefactor     21.732        19.690        .16880E-05   -.21532E-04
  17  Prefactor     11.253        7.3012        .17759E-05   -.73951E-04
  18  Prefactor     10.744        13.277       -.16556E-05   -.99310E-04
  19  Prefactor     .10000E-03    17.124       -.44359E-05** at limit **
  20  norm          9.0263        12.145       -.19289E-05   -.14555E-03
  21  Prefactor     11.126        10.049       -.16252E-05   -.16674E-03
  22  norm          .10000E-03    4.4401        .74050E-07** at limit **
  23  Normalizat    .91145        .22037       -.63735E-05   -.71700E-04
  24  Prefactor     .96927        .11537       -.16488E-06   -.34960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.66036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80894
  Prefactor  = 0.0001
  norm       = 1.01472
  Prefactor  = 40.6596
  Prefactor  = 101.192
  Prefactor  = 0.0001
  Prefactor  = 1.66681
  Prefactor  = 5.5373
  Prefactor  = 5.72526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7324
  Prefactor  = 11.2525
  Prefactor  = 10.7438
  Prefactor  = 0.0001
  norm       = 9.02631
  Prefactor  = 11.1259
  norm       = 0.0001
  Normalizat = 0.911448
  Prefactor  = 0.969268
 **********
 **   18 **HESSE 
 **********

 FCN=   10053.87     FROM HESSE     STATUS=OK           397 CALLS     3127 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6604        2.2194        .16939E-03   -1.5450    
   3  Prefactor     .10000E-03    16.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9714        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8089        .27727        .19632E-04   -1.5439    
   6  Prefactor     .10000E-03    2.0065        .13864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0147        1.2692        .15434E-02   -1.5507    
   8  Prefactor     40.660        29.154        .62872E-04   -1.4432    
   9  Prefactor     101.19        18.652        .39968E-04   -1.3693    
  10  Prefactor     .10000E-03    77.870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6668        .22744        .16459E-04   -1.5450    
  12  Prefactor     5.5373        6.5717        .17074E-03   -1.5237    
  13  Prefactor     5.7253        55.665        .16839E-03   -1.5229    
  14  Prefactor     .10000E-03    5.2448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.732        19.694        .85929E-04   -1.4775    
  17  Prefactor     11.253        7.3155        .11944E-03   -1.5037    
  18  Prefactor     10.744        13.219        .12224E-03   -1.5052    
  19  Prefactor     .10000E-03    17.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.0263        12.028        .13341E-03   -1.5107    
  21  Prefactor     11.126        10.018        .12012E-03   -1.5041    
  22  norm          .10000E-03    4.4435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91145        .25370        .39462E-03   -.96059    
  24  Prefactor     .96927        .13360        .21661E-03   -.93761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22406e-10
Minuit parameter uncertainties:
  1  6.9479e-05
  2  2.21949
  3  8.78759e-05
  4  4.35998e-06
  5  0.277269
  6  9.05834e-07
  7  1.26918
  8  29.1639
  9  18.6531
  10  1.79991e-05
  11  0.227445
  12  6.57252
  13  35.7472
  14  2.91107e-05
  15  1.11254e-05
  16  19.6996
  17  7.31607
  18  13.2224
  19  4.30221e-05
  20  12.0313
  21  10.0197
  22  1.29596e-05
  23  0.254034
  24  0.133643
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.667e+00  2.274e-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.693e-01  1.336e-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.114e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 156.23
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.08e-07 +/- 8.29e-08
Energy Flux (Fixed Index): 1.95e-04 +/- 2.66e-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) = 10053.629849
delta logL = 0.241436352682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10053.5920771
delta logL = 0.27920823501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7424       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1314       1.0000          .0000       10.000    
     3 'Normalizat'    .87625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98287       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=   10053.59     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      199 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7424        .23489        .37518E-02    .22964E-03
   2  Index1        2.1314        .14251        .75860E-01   -.66959E-04
   3  Normalizat    .87625        .20691        .90555E-01   -.64943E-05
   4  Prefactor     .98286        .11576        .46053E-01    .26680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74238
  Index1     = 2.13143
  Normalizat = 0.876249
  Prefactor  = 0.982864
 **********
 **   18 **HESSE 
 **********

 FCN=   10053.59     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7424        .24684        .16591E-04   -1.5444    
   2  Index1        2.1314        .15148        .33225E-03   -.61103    
   3  Normalizat    .87625        .23920        .40109E-03   -.97300    
   4  Prefactor     .98286        .13369        .21523E-03   -.93303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42168e-11
Minuit parameter uncertainties:
  1  0.246839
  2  0.151511
  3  0.239486
  4  0.133736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579945': 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) = 10053.5920771
delta logL = 0.279208245694

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.742e+00  2.468e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.131e+00  1.515e-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.829e-01  1.337e-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.762e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 156.28
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.13 +/- 0.15
Photon Flux (Free Index): 6.42e-07 +/- 9.59e-08
Energy Flux (Free Index): 1.86e-04 +/- 2.71e-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/579945/cmap_HighResolution_583286401_583545601_4FGL_J2253.9+1609_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.08e-07', energy_flux2='1.86e-04', photon_flux_error='8.29e-08', dlogl='2.79e-01', energy_flux='1.95e-04', photon_flux2='6.42e-07', job_status='DONE', time_completed='2021-09-29 02:21:29.719796', photon_index_error2='0.15', photon_index2='2.13', ts='156.23', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.71e-05', EG='0.91', time_epoch_completed='1632907289.72', return_code='0', job_id='579945', GAL2='0.98', EG2='0.88', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='9.59e-08', ts2='156.28', photon_index='2.02' WHERE bin_id='1327' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:21:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 579945: <4FGL_J2253.9+1609_daily_bin1327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1327 343.496 16.1506 583286401 583545601 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 :                                   776.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

