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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin84
RA = 343.496, Dec = 16.1506
tmin = 261100801, tmax = 261360001
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='572945', job_status='RUN', time_executed='2021-09-29 01:48:40.834663', time_epoch_executed='1632905320.83' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572945/ft1_4FGL_J2253.9+1609_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572945/ft2_4FGL_J2253.9+1609_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572945/ft1_4FGL_J2253.9+1609_daily_bin84.fits outfile=/scratch/kocevski/572945/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin84.fits ra=343.496 dec=16.1506 rad=12.0 tmin=261100801.0 tmax=261360001.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.51
user 1.30
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572945/ft1_filtered_4FGL_J2253.9+1609_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/572945/ft2_4FGL_J2253.9+1609_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/572945/ltcube_261100801_261360001_4FGL_J2253.9+1609_daily_bin84.fits outfile=/scratch/kocevski/572945/expmap_261100801_261360001_4FGL_J2253.9+1609_daily_bin84.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/572945/ltcube_261100801_261360001_4FGL_J2253.9+1609_daily_bin84.fits
.....................!
real 190.55
user 185.66
sys 4.50

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/572945/ft1_filtered_4FGL_J2253.9+1609_daily_bin84.fits scfile=/scratch/kocevski/572945/ft2_4FGL_J2253.9+1609_daily_bin84.fits outfile=/scratch/kocevski/572945/cmap_261100801_261360001_4FGL_J2253.9+1609_daily_bin84.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.109       1.0000         .10000E-03   10000.    
     2 'norm      '    .42583       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15939E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4033       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79794       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4173       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5222       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .64719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93388E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.5497       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.224       1.0000         .10000E-03   10000.    
    22 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3102       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83300       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=   7161.002     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2413 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.106        25.145       -.56158E-08    .74605E-05
   2  norm          .40664        3.9219        .46778E-06   -.22636E-03
   3  Prefactor     .10077E-03    11.364       -.59703E-06** at limit **
   4  Prefactor     9.3397        12.610        .21227E-05   -.13113E-03
   5  Prefactor     .60714        .21482        .12267E-07    .70415E-03
   6  Prefactor     .10000E-03    2.2151        .58378E-08** at limit **
   7  norm          1.4033        1.2402       -.29759E-07   -.24719E-04
   8  Prefactor     37.370        33.313       -.78896E-06   -.17625E-03
   9  Prefactor     4.6814        12.202        .52088E-06   -.11096E-04
  10  Prefactor     .10001E-03    23.246        .49723E-05** at limit **
  11  Prefactor     .79793        .20315        .35539E-07   -.14728E-02
  12  Prefactor     .10000E-03    15.907        .26316E-06** at limit **
  13  Prefactor     .10001E-03    21.765       -.28652E-05** at limit **
  14  Prefactor     8.4172        5.4224        .72063E-07   -.35703E-04
  15  Prefactor     .10000E-03    8.7562        .96006E-07** at limit **
  16  Prefactor     5.5218        21.946        .64556E-05   -.65322E-04
  17  Prefactor     .64685        4.7992        .30308E-05   -.15391E-03
  18  Prefactor     .10048E-03    7.6950        .19111E-05** at limit **
  19  Prefactor     .10000E-03    4.0024       -.29645E-07** at limit **
  20  norm          6.5502        9.8033        .15927E-06   -.38052E-03
  21  Prefactor     17.228        10.351       -.48520E-07   -.41432E-03
  22  norm          .10000E-03    32.166       -.31268E-05** at limit **
  23  Normalizat    1.3103        .23071       -.13248E-05   -.15988E-03
  24  Prefactor     .83301        .12208       -.58747E-06   -.26083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1056
  norm       = 0.406642
  Prefactor  = 0.000100771
  Prefactor  = 9.33973
  Prefactor  = 0.607137
  Prefactor  = 0.0001
  norm       = 1.40333
  Prefactor  = 37.3701
  Prefactor  = 4.6814
  Prefactor  = 0.000100014
  Prefactor  = 0.797931
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 8.41721
  Prefactor  = 0.0001
  Prefactor  = 5.52177
  Prefactor  = 0.646849
  Prefactor  = 0.000100478
  Prefactor  = 0.0001
  norm       = 6.55025
  Prefactor  = 17.2278
  norm       = 0.000100004
  Normalizat = 1.31034
  Prefactor  = 0.833005
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.002     FROM HESSE     STATUS=OK           413 CALLS     2826 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.106        25.144        .60365E-04   -1.4379    
   2  norm          .40664        9.6893        .31874E-02   -1.5580    
   3  Prefactor     .10077E-03    13.687        .79651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3397        12.678        .65556E-03   -1.5097    
   5  Prefactor     .60714        .21453        .21715E-04   -1.5552    
   6  Prefactor     .10000E-03    2.2176        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4033        1.2527        .85380E-04   -1.5471    
   8  Prefactor     37.370        33.626        .65526E-04   -1.4485    
   9  Prefactor     4.6814        12.170        .18581E-03   -1.5275    
  10  Prefactor     .10001E-03    25.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79793        .20348        .17663E-04   -1.5529    
  12  Prefactor     .10000E-03    16.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    22.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4172        5.4215        .13817E-03   -1.5128    
  15  Prefactor     .10000E-03    9.0306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5218        22.336        .85487E-03   -1.5238    
  17  Prefactor     .64685        4.9649        .35975E-03   -1.5547    
  18  Prefactor     .10048E-03    67.608        .42598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0047        .16534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5502        9.5627        .15681E-03   -1.5196    
  21  Prefactor     17.228        10.355        .96506E-04   -1.4878    
  22  norm          .10000E-03    33.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3103        .27449        .30786E-03   -.83258    
  24  Prefactor     .83301        .14501        .21128E-03   -.98523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64607e-08
Minuit parameter uncertainties:
  1  25.1504
  2  3.97015
  3  0.00649705
  4  12.6815
  5  0.214535
  6  2.82839e-07
  7  1.25277
  8  33.6426
  9  12.1763
  10  0.00119654
  11  0.203481
  12  3.31133e-05
  13  0.000679676
  14  5.42185
  15  1.08223e-05
  16  22.2254
  17  3.58429
  18  0.0113883
  19  2.97814e-06
  20  9.56494
  21  10.3564
  22  0.00076757
  23  0.274792
  24  0.14508
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.979e-01  2.035e-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.330e-01  1.451e-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.310e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.27
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 7.42e-08
Energy Flux (Fixed Index): 9.34e-05 +/- 2.38e-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) = 7159.47111194
delta logL = 1.53122385023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7159.42670072
delta logL = 1.5756350783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93715       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5677       1.0000          .0000       10.000    
     3 'Normalizat'    1.1902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88290       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=   7159.427     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93727        .23142        .39498E-02    .55849E-03
   2  Index1        2.5677        .34569        .13896       -.49579E-04
   3  Normalizat    1.1902        .22075        .72231E-01   -.13533E-04
   4  Prefactor     .88288        .12339        .44787E-01    .18297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.937268
  Index1     = 2.56769
  Normalizat = 1.19022
  Prefactor  = 0.882881
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.427     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93727        .21277        .17503E-04   -1.5514    
   2  Index1        2.5677        .33362        .58928E-02   -.50804    
   3  Normalizat    1.1902        .26641        .31963E-03   -.86906    
   4  Prefactor     .88288        .14763        .20584E-03   -.96742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25936e-12
Minuit parameter uncertainties:
  1  0.212774
  2  0.333947
  3  0.266718
  4  0.147695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572945': 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) = 7159.42670051
delta logL = 1.57563528244

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.373e-01  2.128e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.568e+00  3.339e-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.829e-01  1.477e-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.190e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.01
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.57 +/- 0.33
Photon Flux (Free Index): 3.79e-07 +/- 9.39e-08
Energy Flux (Free Index): 8.20e-05 +/- 1.95e-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/572945/cmap_HighResolution_261100801_261360001_4FGL_J2253.9+1609_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='8.20e-05', photon_flux_error='7.42e-08', dlogl='1.58e+00', energy_flux='9.34e-05', photon_flux2='3.79e-07', job_status='DONE', time_completed='2021-09-29 01:58:51.323979', photon_index_error2='0.33', photon_index2='2.57', ts='34.27', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.31', time_epoch_completed='1632905931.32', return_code='0', job_id='572945', GAL2='0.88', EG2='1.19', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='9.39e-08', ts2='38.01', photon_index='2.02' WHERE bin_id='84' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:58:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 572945: <4FGL_J2253.9+1609_daily_bin84> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin84 343.496 16.1506 261100801 261360001 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 :                                   610.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

