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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1346
RA = 343.496, Dec = 16.1506
tmin = 588211201, tmax = 588470401
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='579973', job_status='RUN', time_executed='2021-09-29 02:05:42.262136', time_epoch_executed='1632906342.26' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579973/ft1_4FGL_J2253.9+1609_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579973/ft2_4FGL_J2253.9+1609_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579973/ft1_4FGL_J2253.9+1609_daily_bin1346.fits outfile=/scratch/kocevski/579973/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1346.fits ra=343.496 dec=16.1506 rad=12.0 tmin=588211201.0 tmax=588470401.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.77
user 3.56
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579973/ft1_filtered_4FGL_J2253.9+1609_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/579973/ft2_4FGL_J2253.9+1609_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/579973/ltcube_588211201_588470401_4FGL_J2253.9+1609_daily_bin1346.fits outfile=/scratch/kocevski/579973/expmap_588211201_588470401_4FGL_J2253.9+1609_daily_bin1346.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/579973/ltcube_588211201_588470401_4FGL_J2253.9+1609_daily_bin1346.fits
.....................!
real 191.04
user 185.69
sys 5.03

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/579973/ft1_filtered_4FGL_J2253.9+1609_daily_bin1346.fits scfile=/scratch/kocevski/579973/ft2_4FGL_J2253.9+1609_daily_bin1346.fits outfile=/scratch/kocevski/579973/cmap_588211201_588470401_4FGL_J2253.9+1609_daily_bin1346.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579973/ft1_filtered_4FGL_J2253.9+1609_daily_bin1346.fits scfile=/scratch/kocevski/579973/ft2_4FGL_J2253.9+1609_daily_bin1346.fits outfile=/scratch/kocevski/579973/cmap_HighResolution_588211201_588470401_4FGL_J2253.9+1609_daily_bin1346.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3131       1.0000         .10000E-03   10000.    
     2 'norm      '    7.0262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .93949       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    107.99       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0325       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1403       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.256       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5259       1.0000         .10000E-03   10000.    
    22 'norm      '    12.051       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0080       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97999       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=   8185.119     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2690 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3142        24.985        .45474E-06    .61503E-06
   2  norm          7.0265        4.7590       -.57195E-07    .81686E-05
   3  Prefactor     .10000E-03    13.185       -.18419E-05** at limit **
   4  Prefactor     3.5932        12.734       -.85743E-06   -.74212E-05
   5  Prefactor     .93945        .24802       -.31473E-07    .61084E-03
   6  Prefactor     .10000E-03    10.075       -.11550E-05** at limit **
   7  norm          3.3625        1.8964       -.27137E-08    .21552E-05
   8  Prefactor     .10000E-03    18.154        .94657E-06** at limit **
   9  Prefactor     107.99        21.372       -.40746E-06   -.20620E-05
  10  Prefactor     10.301        22.099       -.47589E-05   -.62439E-05
  11  Prefactor     .42198        .17639        .61444E-07   -.31147E-03
  12  Prefactor     5.0323        7.7545        .15476E-06    .58025E-05
  13  Prefactor     .10000E-03    40.655        .19202E-05** at limit **
  14  Prefactor     .10000E-03    11.476        .17152E-05** at limit **
  15  Prefactor     1.3341        8.3123        .79253E-06   -.26518E-03
  16  Prefactor     20.121        27.271       -.73158E-05   -.83907E-06
  17  Prefactor     5.1395        5.7710       -.68702E-07   -.18685E-04
  18  Prefactor     13.258        9.6602       -.11174E-06   -.76176E-05
  19  Prefactor     .10000E-03    7.6994        .31420E-06** at limit **
  20  norm          .10000E-03    5.6667        .36776E-06** at limit **
  21  Prefactor     3.5307        7.8280       -.45724E-06   -.34487E-03
  22  norm          12.049        17.084       -.15706E-05   -.14100E-05
  23  Normalizat    1.0080        .23296        .14951E-05   -.36707E-04
  24  Prefactor     .97999        .12323        .10979E-06   -.23045E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31425
  norm       = 7.02646
  Prefactor  = 0.0001
  Prefactor  = 3.59315
  Prefactor  = 0.93945
  Prefactor  = 0.0001
  norm       = 3.36254
  Prefactor  = 0.0001
  Prefactor  = 107.994
  Prefactor  = 10.3007
  Prefactor  = 0.421979
  Prefactor  = 5.03233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33414
  Prefactor  = 20.1207
  Prefactor  = 5.1395
  Prefactor  = 13.2584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.53071
  norm       = 12.0488
  Normalizat = 1.00799
  Prefactor  = 0.979993
 **********
 **   18 **HESSE 
 **********

 FCN=   8185.119     FROM HESSE     STATUS=OK           403 CALLS     3093 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3142        24.995        .17436E-03   -1.5247    
   2  norm          7.0265        4.7602        .15134E-03   -1.5178    
   3  Prefactor     .10000E-03    13.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5932        12.761        .21309E-03   -1.5329    
   5  Prefactor     .93945        .24778        .21989E-04   -1.5514    
   6  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3625        1.8960        .89941E-04   -1.5341    
   8  Prefactor     .10000E-03    18.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     107.99        21.410        .38701E-04   -1.3626    
  10  Prefactor     10.301        22.148        .12481E-03   -1.5066    
  11  Prefactor     .42198        .17446        .22247E-04   -1.5578    
  12  Prefactor     5.0323        7.7532        .17925E-03   -1.5259    
  13  Prefactor     .10000E-03    40.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3341        36.315        .18819E-02   -1.5477    
  16  Prefactor     20.121        27.405        .89278E-04   -1.4811    
  17  Prefactor     5.1395        5.7787        .17732E-03   -1.5255    
  18  Prefactor     13.258        9.6778        .11001E-03   -1.4980    
  19  Prefactor     .10000E-03    7.7140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.7022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5307        8.6929        .10764E-02   -1.5332    
  22  norm          12.049        17.079        .11539E-03   -1.5014    
  23  Normalizat    1.0080        .28128        .36716E-03   -.92763    
  24  Prefactor     .97999        .14582        .20643E-03   -.93399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14766e-09
Minuit parameter uncertainties:
  1  23.0658
  2  4.76047
  3  2.20078e-06
  4  12.7703
  5  0.247776
  6  5.41694e-06
  7  1.89608
  8  3.22448e-06
  9  21.4114
  10  22.1655
  11  0.174458
  12  7.7547
  13  5.34124e-05
  14  4.79229e-05
  15  13.9299
  16  27.4223
  17  5.77935
  18  9.67896
  19  2.2479e-06
  20  1.97758e-07
  21  8.69602
  22  17.0857
  23  0.281696
  24  0.145874
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.220e-01  1.745e-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.800e-01  1.459e-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.008e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.15
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 6.36e-08
Energy Flux (Fixed Index): 4.94e-05 +/- 2.04e-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) = 8182.99489848
delta logL = 2.12400382505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8182.98616635
delta logL = 2.1327359606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59641       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.8427       1.0000          .0000       10.000    
     3 'Normalizat'    .89119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       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=   8182.986     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59660        .33387        .48295E-02    .74351E-03
   2  Index1        2.8434        .68280        .18788       -.23570E-04
   3  Normalizat    .89130        .22580        .87272E-01    .26684E-04
   4  Prefactor     1.0224        .12511        .41890E-01    .31868E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.5966
  Index1     = 2.84344
  Normalizat = 0.891296
  Prefactor  = 1.0224
 **********
 **   18 **HESSE 
 **********

 FCN=   8182.986     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59660        .19628        .21531E-04   -1.5553    
   2  Index1        2.8434        .43308        .77985E-02   -.44595    
   3  Normalizat    .89130        .26445        .38647E-03   -.96767    
   4  Prefactor     1.0224        .14551        .20234E-03   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55954e-13
Minuit parameter uncertainties:
  1  0.196282
  2  0.43375
  3  0.264838
  4  0.145565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579973': 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) = 8182.98616179
delta logL = 2.13274051376

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.966e-01  1.963e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.843e+00  4.338e-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.022e+00  1.456e-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.913e-01  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.78
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.84 +/- 0.43
Photon Flux (Free Index): 2.63e-07 +/- 9.14e-08
Energy Flux (Free Index): 5.04e-05 +/- 1.67e-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/579973/cmap_HighResolution_588211201_588470401_4FGL_J2253.9+1609_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='5.04e-05', photon_flux_error='6.36e-08', dlogl='2.13e+00', energy_flux='4.94e-05', photon_flux2='2.63e-07', job_status='DONE', time_completed='2021-09-29 02:17:06.825219', photon_index_error2='0.43', photon_index2='2.84', ts='10.15', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.01', time_epoch_completed='1632907026.83', return_code='0', job_id='579973', GAL2='1.02', EG2='0.89', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='9.14e-08', ts2='14.78', photon_index='2.02' WHERE bin_id='1346' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:17:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 579973: <4FGL_J2253.9+1609_daily_bin1346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1346 343.496 16.1506 588211201 588470401 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 :                                   677.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             346.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

