/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 116 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin65
RA = 343.496, Dec = 16.1506
tmin = 256176001, tmax = 256435201
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='572915', job_status='RUN', time_executed='2021-09-29 01:47:39.422213', time_epoch_executed='1632905259.42' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572915/ft1_4FGL_J2253.9+1609_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572915/ft1_4FGL_J2253.9+1609_daily_bin65.fits outfile=/scratch/kocevski/572915/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin65.fits ra=343.496 dec=16.1506 rad=12.0 tmin=256176001.0 tmax=256435201.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 1.47
user 1.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572915/ft1_filtered_4FGL_J2253.9+1609_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/572915/ltcube_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.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/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits
.....................!
real 13.52
user 13.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572915/ft1_filtered_4FGL_J2253.9+1609_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/572915/ltcube_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.fits outfile=/scratch/kocevski/572915/expmap_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.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/572915/ltcube_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.fits
.....................!
real 191.53
user 185.60
sys 5.54

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/572915/ft1_filtered_4FGL_J2253.9+1609_daily_bin65.fits scfile=/scratch/kocevski/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits outfile=/scratch/kocevski/572915/cmap_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572915/ft1_filtered_4FGL_J2253.9+1609_daily_bin65.fits scfile=/scratch/kocevski/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits outfile=/scratch/kocevski/572915/cmap_HighResolution_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.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/572915/ft1_filtered_4FGL_J2253.9+1609_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/572915/ft2_4FGL_J2253.9+1609_daily_bin65.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572915/Model_4FGL_J2253.9+1609_daily_bin65.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/572915/ft1_filtered_4FGL_J2253.9+1609_daily_bin65.fits....................!
real 76.15
user 74.72
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    59.836       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85534       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7181.614     FROM MIGRAD    STATUS=CONVERGED    978 CALLS     3652 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.784        .18142E-02** at limit **
   2  norm          .10000E-03    2.8607        .13872E-02** at limit **
   3  Prefactor     .10000E-03    2.4920        .13060E-02** at limit **
   4  Prefactor     7.0385        12.110        .15125E-03   -.27510E-04
   5  Prefactor     .42378        .18026        .22514E-04   -.12271E-03
   6  Prefactor     .10000E-03    2.9699        .14233E-02** at limit **
   7  norm          3.6897        2.0266        .86720E-04   -.91767E-05
   8  Prefactor     .10000E-03    47.261        .18142E-02** at limit **
   9  Prefactor     .10000E-03    16.135        .18142E-02** at limit **
  10  Prefactor     .10000E-03    12.302        .18142E-02** at limit **
  11  Prefactor     .30254        .14030        .20603E-04    .20748E-03
  12  Prefactor     7.7821        10.704        .14374E-03   -.38203E-04
  13  Prefactor     .10000E-03    8.2022        .18142E-02** at limit **
  14  Prefactor     4.6500        6.0756        .18664E-03    .20101E-04
  15  Prefactor     4.1144        8.8005        .19874E-03    .57433E-05
  16  Prefactor     .10030E-03    24.206        .10671    ** at limit **
  17  Prefactor     8.0470        7.0948        .14135E-03   -.26058E-04
  18  Prefactor     .10002E-03    9.0937        .75052E-01** at limit **
  19  Prefactor     .10000E-03    19.075        .18142E-02** at limit **
  20  norm          59.843        14.732        .51868E-04   -.35903E-03
  21  Prefactor     .10000E-03    9.9768        .36285E-03** at limit **
  22  norm          .10000E-03    6.2831        .18142E-02** at limit **
  23  Normalizat    1.2673        .27435        .30511E-03   -.29240E-03
  24  Prefactor     .85551        .14579        .20460E-03   -.89237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03851
  Prefactor  = 0.423777
  Prefactor  = 0.0001
  norm       = 3.68968
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.302544
  Prefactor  = 7.7821
  Prefactor  = 0.0001
  Prefactor  = 4.64995
  Prefactor  = 4.11443
  Prefactor  = 0.000100302
  Prefactor  = 8.04697
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 59.8433
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2673
  Prefactor  = 0.855509
 **********
 **   18 **HESSE 
 **********

 FCN=   7181.614     FROM HESSE     STATUS=OK           395 CALLS     4047 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8619        .27745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4920        .26120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0385        12.109        .60500E-05   -1.5177    
   5  Prefactor     .42378        .18025        .90056E-06   -1.5578    
   6  Prefactor     .10000E-03    2.9702        .28465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6897        2.0265        .34688E-05   -1.5324    
   8  Prefactor     .10000E-03    47.273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .30254        .14030        .82412E-06   -1.5598    
  12  Prefactor     7.7821        10.704        .57494E-05   -1.5150    
  13  Prefactor     .10000E-03    8.2023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6500        6.0754        .74656E-05   -1.5277    
  15  Prefactor     4.1144        8.8003        .39747E-04   -1.5302    
  16  Prefactor     .10030E-03    23.279        .10952       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0470        7.0946        .56541E-05   -1.5141    
  18  Prefactor     .10002E-03    8.6296        .78743E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          59.843        14.742        .10374E-04   -1.4159    
  21  Prefactor     .10000E-03    9.9771        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2673        .27460        .61021E-04   -.84548    
  24  Prefactor     .85551        .14593        .81841E-05   -.97714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05711e-10
Minuit parameter uncertainties:
  1  0.000154857
  2  3.96466e-06
  3  1.09913e-06
  4  12.1131
  5  0.180253
  6  2.17401e-06
  7  2.02657
  8  0.000332982
  9  9.38333e-06
  10  6.89629e-05
  11  0.140296
  12  10.7065
  13  1.78325e-07
  14  6.07616
  15  8.80302
  16  0.00530305
  17  7.09539
  18  0.000750241
  19  5.67168e-05
  20  14.7426
  21  3.50918e-05
  22  2.85022e-06
  23  0.274911
  24  0.145997
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  8.555e-01  1.460e-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.267e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.04
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 5.11e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 1.64e-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) = 7181.59036142
delta logL = 0.023845638435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7181.59002577
delta logL = 0.0241812884124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32720       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1264       1.0000          .0000       10.000    
     3 'Normalizat'    1.2538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86007       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=   7181.590     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32718        .15023        .46978E-02    .74731E-03
   2  Index1        2.1266        .37627        .18093       -.71428E-04
   3  Normalizat    1.2540        .21678        .69258E-01    .14310E-04
   4  Prefactor     .86001        .12105        .44494E-01    .10812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.327184
  Index1     = 2.12658
  Normalizat = 1.25404
  Prefactor  = 0.860012
 **********
 **   18 **HESSE 
 **********

 FCN=   7181.590     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32718        .17709        .20883E-04   -1.5594    
   2  Index1        2.1266        .47673        .75066E-02   -.61222    
   3  Normalizat    1.2540        .26286        .30643E-03   -.84949    
   4  Prefactor     .86001        .14542        .20411E-03   -.97553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12881e-09
Minuit parameter uncertainties:
  1  0.177091
  2  0.47782
  3  0.263137
  4  0.145485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572915': 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) = 7181.59002518
delta logL = 0.0241818749437

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.272e-01  1.771e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.127e+00  4.778e-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:  8.600e-01  1.455e-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.254e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.05
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.13 +/- 0.48
Photon Flux (Free Index): 1.21e-07 +/- 6.93e-08
Energy Flux (Free Index): 3.51e-05 +/- 1.60e-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/572915/cmap_HighResolution_256176001_256435201_4FGL_J2253.9+1609_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.51e-05', photon_flux_error='5.11e-08', dlogl='2.42e-02', energy_flux='3.54e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-29 01:59:38.323265', photon_index_error2='0.48', photon_index2='2.13', ts='11.04', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.27', time_epoch_completed='1632905978.32', return_code='0', job_id='572915', GAL2='0.86', EG2='1.25', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='6.93e-08', ts2='11.05', photon_index='2.02' WHERE bin_id='65' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:59:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 572915: <4FGL_J2253.9+1609_daily_bin65> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin65 343.496 16.1506 256176001 256435201 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

