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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin540
RA = 343.496, Dec = 16.1506
tmin = 379296001, tmax = 379555201
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='575284', job_status='RUN', time_executed='2021-09-29 01:50:59.868903', time_epoch_executed='1632905459.87' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575284/ft1_4FGL_J2253.9+1609_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575284/ft2_4FGL_J2253.9+1609_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575284/ft1_4FGL_J2253.9+1609_daily_bin540.fits outfile=/scratch/kocevski/575284/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin540.fits ra=343.496 dec=16.1506 rad=12.0 tmin=379296001.0 tmax=379555201.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 4.71
user 4.50
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575284/ft1_filtered_4FGL_J2253.9+1609_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/575284/ft2_4FGL_J2253.9+1609_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/575284/ltcube_379296001_379555201_4FGL_J2253.9+1609_daily_bin540.fits outfile=/scratch/kocevski/575284/expmap_379296001_379555201_4FGL_J2253.9+1609_daily_bin540.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/575284/ltcube_379296001_379555201_4FGL_J2253.9+1609_daily_bin540.fits
.....................!
real 190.00
user 184.41
sys 5.27

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/575284/ft1_filtered_4FGL_J2253.9+1609_daily_bin540.fits scfile=/scratch/kocevski/575284/ft2_4FGL_J2253.9+1609_daily_bin540.fits outfile=/scratch/kocevski/575284/cmap_379296001_379555201_4FGL_J2253.9+1609_daily_bin540.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6389       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14893E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0351       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1193       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15415E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7610       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1245       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97259       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1263       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=   8793.942     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2744 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.674        .53903E-04** at limit **
   2  norm          .10000E-03    7.4493       -.71100E-06** at limit **
   3  Prefactor     .10000E-03    33.896       -.17396E-04** at limit **
   4  Prefactor     .10000E-03    17.176        .61113E-05** at limit **
   5  Prefactor     2.8057        .36400        .18494E-08    .46279E-02
   6  Prefactor     4.6388        4.5649        .30367E-06    .53315E-04
   7  norm          .10000E-03    .68043       -.28334E-06** at limit **
   8  Prefactor     .10000E-03    90.660       -.86740E-04** at limit **
   9  Prefactor     1.0330        12.445        .11106E-05   -.12663E-02
  10  Prefactor     .10000E-03    18.150        .22930E-06** at limit **
  11  Prefactor     1.1191        .22519        .25675E-07    .82466E-02
  12  Prefactor     .10000E-03    17.952       -.46621E-05** at limit **
  13  Prefactor     .10000E-03    69.001        .28578E-04** at limit **
  14  Prefactor     .10000E-03    5.5354        .12616E-06** at limit **
  15  Prefactor     .10000E-03    17.317        .49602E-05** at limit **
  16  Prefactor     29.262        26.072        .31527E-06    .12772E-04
  17  Prefactor     7.6005        7.6720        .44152E-06   -.37279E-06
  18  Prefactor     4.7619        8.6169       -.15705E-06   -.29458E-03
  19  Prefactor     .10000E-03    8.0120        .86934E-06** at limit **
  20  norm          1.1836        10.546        .92520E-06   -.15536E-02
  21  Prefactor     6.1292        10.215       -.26142E-06   -.34801E-03
  22  norm          .10000E-03    14.559       -.43575E-05** at limit **
  23  Normalizat    .97252        .24923       -.22006E-05   -.63694E-05
  24  Prefactor     1.1262        .13272        .38939E-06    .27247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80566
  Prefactor  = 4.63882
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.03303
  Prefactor  = 0.0001
  Prefactor  = 1.11913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2618
  Prefactor  = 7.60049
  Prefactor  = 4.76193
  Prefactor  = 0.0001
  norm       = 1.18361
  Prefactor  = 6.12916
  norm       = 0.0001
  Normalizat = 0.972517
  Prefactor  = 1.12623
 **********
 **   18 **HESSE 
 **********

 FCN=   8793.942     FROM HESSE     STATUS=OK           391 CALLS     3135 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.7399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8057        .36475        .19247E-04   -1.5373    
   6  Prefactor     4.6388        4.5718        .18686E-03   -1.5277    
   7  norm          .10000E-03    1.0690        .14794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    91.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0330        23.021        .24789E-02   -1.5505    
  10  Prefactor     .10000E-03    18.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1191        .22499        .18759E-04   -1.5496    
  12  Prefactor     .10000E-03    18.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    69.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.262        26.100        .74066E-04   -1.4626    
  17  Prefactor     7.6005        7.6819        .14548E-03   -1.5157    
  18  Prefactor     4.7619        8.5718        .92199E-03   -1.5271    
  19  Prefactor     .10000E-03    8.0194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1836        17.272        .20946E-02   -1.5490    
  21  Prefactor     6.1292        10.175        .81114E-03   -1.5213    
  22  norm          .10000E-03    14.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97252        .28868        .40540E-03   -.93957    
  24  Prefactor     1.1262        .15387        .21043E-03   -.88633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94188e-08
Minuit parameter uncertainties:
  1  0.000395931
  2  2.01677e-05
  3  0.000247585
  4  1.36856e-05
  5  0.364746
  6  4.57217
  7  2.15639e-05
  8  0.000813992
  9  9.75708
  10  2.30633e-05
  11  0.224992
  12  0.000102724
  13  8.08783e-05
  14  4.20033e-06
  15  1.11013e-05
  16  26.11
  17  7.68286
  18  8.57401
  19  2.41224e-06
  20  9.04567
  21  10.1774
  22  6.13048e-06
  23  0.28914
  24  0.153926
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.119e+00  2.250e-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.126e+00  1.539e-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.725e-01  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.36
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.08e-07 +/- 8.20e-08
Energy Flux (Fixed Index): 1.31e-04 +/- 2.63e-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) = 8793.20328244
delta logL = 0.738353940964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8793.17116422
delta logL = 0.77047215856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2648       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2911       1.0000          .0000       10.000    
     3 'Normalizat'    .89016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1588       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=   8793.171     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2648        .24594        .43289E-02    .20714E-02
   2  Index1        2.2911        .20849        .10349        .62074E-04
   3  Normalizat    .89020        .24562        .95027E-01    .71478E-04
   4  Prefactor     1.1588        .13472        .35688E-01   -.37787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26484
  Index1     = 2.29113
  Normalizat = 0.8902
  Prefactor  = 1.15878
 **********
 **   18 **HESSE 
 **********

 FCN=   8793.171     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2648        .25867        .19167E-04   -1.5483    
   2  Index1        2.2911        .22484        .44840E-03   -.57255    
   3  Normalizat    .89020        .28351        .42099E-03   -.96805    
   4  Prefactor     1.1588        .15509        .20776E-03   -.87609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09931e-11
Minuit parameter uncertainties:
  1  0.258667
  2  0.224946
  3  0.283983
  4  0.155155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575284': 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) = 8793.17116399
delta logL = 0.770472391008

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.265e+00  2.587e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.291e+00  2.249e-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.159e+00  1.552e-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.902e-01  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.55
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.29 +/- 0.22
Photon Flux (Free Index): 4.78e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.23e-04 +/- 2.46e-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/575284/cmap_HighResolution_379296001_379555201_4FGL_J2253.9+1609_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.08e-07', energy_flux2='1.23e-04', photon_flux_error='8.20e-08', dlogl='7.70e-01', energy_flux='1.31e-04', photon_flux2='4.78e-07', job_status='DONE', time_completed='2021-09-29 02:03:04.970622', photon_index_error2='0.22', photon_index2='2.29', ts='58.36', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='0.97', time_epoch_completed='1632906184.97', return_code='0', job_id='575284', GAL2='1.16', EG2='0.89', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='1.06e-07', ts2='59.55', photon_index='2.02' WHERE bin_id='540' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:03:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 575284: <4FGL_J2253.9+1609_daily_bin540> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin540> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 01:50:46 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:50:51 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:50:51 2021
Terminated at Wed Sep 29 02:03:05 2021
Results reported at Wed Sep 29 02:03:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin540 343.496 16.1506 379296001 379555201 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            739 sec.

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

