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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1114
RA = 343.496, Dec = 16.1506
tmin = 528076801, tmax = 528336001
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='578544', job_status='RUN', time_executed='2021-09-29 02:00:53.339549', time_epoch_executed='1632906053.34' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578544

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578544/ft1_4FGL_J2253.9+1609_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578544/ft2_4FGL_J2253.9+1609_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578544/ft1_4FGL_J2253.9+1609_daily_bin1114.fits outfile=/scratch/kocevski/578544/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1114.fits ra=343.496 dec=16.1506 rad=12.0 tmin=528076801.0 tmax=528336001.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.44
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578544/ft1_filtered_4FGL_J2253.9+1609_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/578544/ft2_4FGL_J2253.9+1609_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/578544/ltcube_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.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/578544/ft2_4FGL_J2253.9+1609_daily_bin1114.fits
.....................!
real 12.09
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578544/ft1_filtered_4FGL_J2253.9+1609_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/578544/ft2_4FGL_J2253.9+1609_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/578544/ltcube_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.fits outfile=/scratch/kocevski/578544/expmap_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.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/578544/ltcube_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.fits
.....................!
real 191.67
user 186.39
sys 4.94

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/578544/ft1_filtered_4FGL_J2253.9+1609_daily_bin1114.fits scfile=/scratch/kocevski/578544/ft2_4FGL_J2253.9+1609_daily_bin1114.fits outfile=/scratch/kocevski/578544/cmap_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578544/ft1_filtered_4FGL_J2253.9+1609_daily_bin1114.fits scfile=/scratch/kocevski/578544/ft2_4FGL_J2253.9+1609_daily_bin1114.fits outfile=/scratch/kocevski/578544/cmap_HighResolution_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9036       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2523       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6373       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6530       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78507       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.698       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1899       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91598       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0034       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=   7982.072     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2304 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6005       -.45672E-06** at limit **
   2  norm          2.9037        3.2609        .43113E-07   -.38761E-04
   3  Prefactor     .10000E-03    3.7102        .12884E-06** at limit **
   4  Prefactor     .10000E-03    4.2368       -.44072E-07** at limit **
   5  Prefactor     3.2523        .37262        .14683E-08   -.72955E-04
   6  Prefactor     6.6369        9.9669        .12951E-06   -.12625E-04
   7  norm          1.6530        1.3437       -.73037E-09    .28545E-04
   8  Prefactor     .10000E-03    16.128       -.18166E-06** at limit **
   9  Prefactor     .10000E-03    9.3732       -.44668E-06** at limit **
  10  Prefactor     .10000E-03    12.142        .63844E-06** at limit **
  11  Prefactor     .78509        .18493       -.20973E-08   -.93433E-04
  12  Prefactor     10.362        10.856        .13070E-06    .13223E-05
  13  Prefactor     .10000E-03    11.793        .42781E-06** at limit **
  14  Prefactor     .79174        4.0758        .35461E-07   -.19568E-04
  15  Prefactor     11.698        12.568       -.15427E-06   -.24791E-04
  16  Prefactor     8.0514        15.468       -.20366E-05   -.14667E-03
  17  Prefactor     11.439        6.7327        .51002E-07   -.28491E-04
  18  Prefactor     2.7570        9.3635        .14983E-06   -.42307E-04
  19  Prefactor     .10000E-03    7.7646        .65999E-06** at limit **
  20  norm          .10000E-03    3.4865       -.22420E-06** at limit **
  21  Prefactor     1.1897        6.3510        .27117E-05   -.14788E-03
  22  norm          .10000E-03    8.8146       -.33559E-06** at limit **
  23  Normalizat    .91598        .22142       -.43526E-06   -.25764E-04
  24  Prefactor     1.0034        .12244       -.65365E-07   -.45120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.90367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25227
  Prefactor  = 6.63693
  norm       = 1.653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.785093
  Prefactor  = 10.3619
  Prefactor  = 0.0001
  Prefactor  = 0.791737
  Prefactor  = 11.6979
  Prefactor  = 8.05138
  Prefactor  = 11.4387
  Prefactor  = 2.75696
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.18973
  norm       = 0.0001
  Normalizat = 0.915984
  Prefactor  = 1.00338
 **********
 **   18 **HESSE 
 **********

 FCN=   7982.072     FROM HESSE     STATUS=OK           403 CALLS     2707 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9037        3.2582        .16615E-03   -1.5367    
   3  Prefactor     .10000E-03    3.7154        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2587        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2523        .37384        .17422E-04   -1.5347    
   6  Prefactor     6.6369        9.9905        .15576E-03   -1.5193    
   7  norm          1.6530        1.3403        .90817E-04   -1.5451    
   8  Prefactor     .10000E-03    16.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .78509        .18424        .17387E-04   -1.5531    
  12  Prefactor     10.362        10.860        .12447E-03   -1.5064    
  13  Prefactor     .10000E-03    11.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .79174        19.929        .33239E-02   -1.5530    
  15  Prefactor     11.698        12.560        .11713E-03   -1.5024    
  16  Prefactor     8.0514        16.283        .14119E-03   -1.5140    
  17  Prefactor     11.439        6.7383        .11844E-03   -1.5031    
  18  Prefactor     2.7570        9.3302        .24510E-03   -1.5376    
  19  Prefactor     .10000E-03    7.8379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.5249        .16320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1897        6.8759        .41768E-03   -1.5490    
  22  norm          .10000E-03    8.8547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91598        .25690        .36625E-03   -.95901    
  24  Prefactor     1.0034        .14335        .20236E-03   -.92617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11385e-08
Minuit parameter uncertainties:
  1  2.97337e-05
  2  3.25836
  3  4.91422e-06
  4  2.31953e-06
  5  0.373841
  6  9.99299
  7  1.34034
  8  1.4995e-05
  9  2.30638e-05
  10  4.51304e-05
  11  0.184245
  12  10.8621
  13  2.92122e-05
  14  7.94679
  15  12.5626
  16  16.2923
  17  6.73873
  18  9.33513
  19  3.65916e-05
  20  1.50973e-05
  21  5.72104
  22  2.42864e-05
  23  0.257249
  24  0.143401
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.851e-01  1.842e-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:  1.003e+00  1.434e-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.160e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.57
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.86e-07 +/- 6.72e-08
Energy Flux (Fixed Index): 9.19e-05 +/- 2.16e-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) = 7980.59019444
delta logL = 1.48202962543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7980.53682682
delta logL = 1.53539725171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90687       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4988       1.0000          .0000       10.000    
     3 'Normalizat'    .82451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0399       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=   7980.537     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90687        .20515        .39519E-02    .35055E-03
   2  Index1        2.4988        .29134        .13017       -.39130E-04
   3  Normalizat    .82451        .21769        .86471E-01    .56475E-04
   4  Prefactor     1.0399        .12456        .40538E-01   -.12886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.90687
  Index1     = 2.49878
  Normalizat = 0.824515
  Prefactor  = 1.03995
 **********
 **   18 **HESSE 
 **********

 FCN=   7980.537     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90687        .19831        .17501E-04   -1.5518    
   2  Index1        2.4988        .29116        .55867E-02   -.52388    
   3  Normalizat    .82451        .25233        .38295E-03   -.99166    
   4  Prefactor     1.0399        .14396        .19904E-03   -.91410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3805e-10
Minuit parameter uncertainties:
  1  0.198307
  2  0.291385
  3  0.252692
  4  0.14401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578544': 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) = 7980.53682682
delta logL = 1.53539725219

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.069e-01  1.983e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.499e+00  2.914e-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:  1.040e+00  1.440e-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.245e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.60
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.50 +/- 0.29
Photon Flux (Free Index): 3.60e-07 +/- 8.53e-08
Energy Flux (Free Index): 8.08e-05 +/- 1.85e-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/578544/cmap_HighResolution_528076801_528336001_4FGL_J2253.9+1609_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.86e-07', energy_flux2='8.08e-05', photon_flux_error='6.72e-08', dlogl='1.54e+00', energy_flux='9.19e-05', photon_flux2='3.60e-07', job_status='DONE', time_completed='2021-09-29 02:11:44.540758', photon_index_error2='0.29', photon_index2='2.50', ts='42.57', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.92', time_epoch_completed='1632906704.54', return_code='0', job_id='578544', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='8.53e-08', ts2='45.60', photon_index='2.02' WHERE bin_id='1114' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:11:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 578544: <4FGL_J2253.9+1609_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1114 343.496 16.1506 528076801 528336001 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 :                                   644.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            666 sec.

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

