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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1074
RA = 343.496, Dec = 16.1506
tmin = 517708801, tmax = 517968001
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='578482', job_status='RUN', time_executed='2021-09-29 02:00:51.359214', time_epoch_executed='1632906051.36' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578482

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578482/ft1_4FGL_J2253.9+1609_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578482/ft1_4FGL_J2253.9+1609_daily_bin1074.fits outfile=/scratch/kocevski/578482/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1074.fits ra=343.496 dec=16.1506 rad=12.0 tmin=517708801.0 tmax=517968001.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.66
user 3.46
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.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/578482/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/578482/ft1_filtered_4FGL_J2253.9+1609_daily_bin1074.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578482/ft1_filtered_4FGL_J2253.9+1609_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/578482/ltcube_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.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/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.fits
.....................!
real 11.93
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578482/ft1_filtered_4FGL_J2253.9+1609_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/578482/ltcube_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.fits outfile=/scratch/kocevski/578482/expmap_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.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/578482/ltcube_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.fits
.....................!
real 190.04
user 185.06
sys 4.66

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/578482/ft1_filtered_4FGL_J2253.9+1609_daily_bin1074.fits scfile=/scratch/kocevski/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.fits outfile=/scratch/kocevski/578482/cmap_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578482/ft1_filtered_4FGL_J2253.9+1609_daily_bin1074.fits scfile=/scratch/kocevski/578482/ft2_4FGL_J2253.9+1609_daily_bin1074.fits outfile=/scratch/kocevski/578482/cmap_HighResolution_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7040       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0254       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3840       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6804       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18609E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.322       1.0000         .10000E-03   10000.    
    22 'norm      '    10.138       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2929       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65351       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=   9788.990     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2361 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5086       -.24534E-06** at limit **
   2  norm          1.3649        1.1627        .55285E-06   -.35229E-02
   3  Prefactor     .10000E-03    29.431        .44063E-06** at limit **
   4  Prefactor     8.6783        9.0896        .15031E-05    .11547E-04
   5  Prefactor     6.6692        .47052       -.27596E-08    .12923E-03
   6  Prefactor     8.7036        7.3838       -.20282E-06   -.13588E-05
   7  norm          .10000E-03    .67696       -.67640E-07** at limit **
   8  Prefactor     6.0214        33.716       -.49170E-05   -.55929E-05
   9  Prefactor     9.0050        11.417        .13051E-05    .95847E-05
  10  Prefactor     .10000E-03    9.6333        .27336E-06** at limit **
  11  Prefactor     1.3840        .21833        .21249E-09   -.34587E-04
  12  Prefactor     11.473        10.316        .95838E-06    .69180E-05
  13  Prefactor     8.5866        28.257       -.31251E-04   -.19319E-04
  14  Prefactor     .10000E-03    2.8055        .20316E-06** at limit **
  15  Prefactor     .10000E-03    3.0737        .34110E-06** at limit **
  16  Prefactor     .10000E-03    4.8189        .28900E-06** at limit **
  17  Prefactor     .10000E-03    2.8870       -.44392E-06** at limit **
  18  Prefactor     .10000E-03    3.7577       -.36459E-07** at limit **
  19  Prefactor     .10098E-03    6.4073        .57405E-06** at limit **
  20  norm          1.3295        10.955       -.86855E-05   -.20785E-03
  21  Prefactor     13.326        8.4377        .40200E-05    .46460E-03
  22  norm          10.138        9.6632       -.53888E-07    .59560E-05
  23  Normalizat    1.2927        .21571        .63929E-06    .84259E-04
  24  Prefactor     .65362        .11300        .30986E-06    .10564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.36489
  Prefactor  = 0.0001
  Prefactor  = 8.6783
  Prefactor  = 6.66922
  Prefactor  = 8.70362
  norm       = 0.0001
  Prefactor  = 6.02136
  Prefactor  = 9.00499
  Prefactor  = 0.0001
  Prefactor  = 1.38405
  Prefactor  = 11.4727
  Prefactor  = 8.58657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100979
  norm       = 1.32955
  Prefactor  = 13.3261
  norm       = 10.1382
  Normalizat = 1.29274
  Prefactor  = 0.653622
 **********
 **   18 **HESSE 
 **********

 FCN=   9788.990     FROM HESSE     STATUS=OK           411 CALLS     2772 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3649        3.8487        .15676E-02   -1.5474    
   3  Prefactor     .10000E-03    30.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6783        9.1027        .13607E-03   -1.5119    
   5  Prefactor     6.6692        .47199        .17117E-04   -1.5191    
   6  Prefactor     8.7036        7.3895        .13587E-03   -1.5118    
   7  norm          .10000E-03    .68429        .79363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0214        33.845        .16357E-03   -1.5217    
   9  Prefactor     9.0050        11.415        .13356E-03   -1.5108    
  10  Prefactor     .10000E-03    9.6463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3840        .21951        .16967E-04   -1.5473    
  12  Prefactor     11.473        10.318        .11827E-03   -1.5030    
  13  Prefactor     8.5866        28.152        .13605E-03   -1.5122    
  14  Prefactor     .10000E-03    2.8161        .16179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0763        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9222        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10098E-03    9.0518        .92509E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3295        10.801        .38038E-03   -1.5477    
  21  Prefactor     13.326        8.3866        .10974E-03   -1.4978    
  22  norm          10.138        9.6622        .12584E-03   -1.5071    
  23  Normalizat    1.2927        .25924        .33609E-03   -.83783    
  24  Prefactor     .65362        .13484        .24899E-03   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41752e-08
Minuit parameter uncertainties:
  1  6.23412e-06
  2  3.8494
  3  3.59132e-05
  4  9.10412
  5  0.471988
  6  7.39029
  7  4.42117e-06
  8  28.5757
  9  11.4179
  10  2.58842e-06
  11  0.219509
  12  10.3195
  13  28.1959
  14  3.66179e-06
  15  3.27861e-06
  16  3.43994e-06
  17  1.01579e-05
  18  2.19929e-05
  19  0.00595513
  20  7.58064
  21  8.38735
  22  9.66373
  23  0.259498
  24  0.134909
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.384e+00  2.195e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  6.536e-01  1.349e-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.293e+00  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 110.70
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 5.05e-07 +/- 8.00e-08
Energy Flux (Fixed Index): 1.62e-04 +/- 2.57e-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) = 9787.81417275
delta logL = 1.1754909376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9787.80980437
delta logL = 1.17985931442

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5176        .22672        .38857E-02    .23696E-03
   2  Index1        2.2935        .17557        .91695E-01   -.11493E-03
   3  Normalizat    1.2060        .20869        .77993E-01    .34007E-04
   4  Prefactor     .68927        .11309        .42258E-01    .41166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51757
  Index1     = 2.29353
  Normalizat = 1.20605
  Prefactor  = 0.689268
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5176        .23389        .17187E-04   -1.5462    
   2  Index1        2.2935        .18423        .39952E-03   -.57198    
   3  Normalizat    1.2060        .25167        .34522E-03   -.86416    
   4  Prefactor     .68927        .13566        .24302E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36656e-12
Minuit parameter uncertainties:
  1  0.23389
  2  0.184289
  3  0.25192
  4  0.135721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578482': 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) = 9787.80980435
delta logL = 1.17985933701

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.518e+00  2.339e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.294e+00  1.843e-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:  6.893e-01  1.357e-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.206e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 110.34
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.29 +/- 0.18
Photon Flux (Free Index): 5.74e-07 +/- 9.52e-08
Energy Flux (Free Index): 1.47e-04 +/- 2.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/578482/cmap_HighResolution_517708801_517968001_4FGL_J2253.9+1609_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.05e-07', energy_flux2='1.47e-04', photon_flux_error='8.00e-08', dlogl='1.18e+00', energy_flux='1.62e-04', photon_flux2='5.74e-07', job_status='DONE', time_completed='2021-09-29 02:13:30.157528', photon_index_error2='0.18', photon_index2='2.29', ts='110.70', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='1.29', time_epoch_completed='1632906810.16', return_code='0', job_id='578482', GAL2='0.69', EG2='1.21', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='9.52e-08', ts2='110.34', photon_index='2.02' WHERE bin_id='1074' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:13:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 578482: <4FGL_J2253.9+1609_daily_bin1074> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1074> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:34 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:36 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:00:36 2021
Terminated at Wed Sep 29 02:13:30 2021
Results reported at Wed Sep 29 02:13:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1074 343.496 16.1506 517708801 517968001 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 :                                   751.26 sec.
    Max Memory :                                 1033 MB
    Average Memory :                             345.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

