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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1473
RA = 343.496, Dec = 16.1506
tmin = 621129601, tmax = 621388801
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='583575', job_status='RUN', time_executed='2021-09-29 02:18:41.386922', time_epoch_executed='1632907121.39' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583575/ft1_4FGL_J2253.9+1609_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583575/ft1_4FGL_J2253.9+1609_daily_bin1473.fits outfile=/scratch/kocevski/583575/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1473.fits ra=343.496 dec=16.1506 rad=12.0 tmin=621129601.0 tmax=621388801.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.26
user 2.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.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/583575/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1473.fits evtable="EVENTS" outfile="/scratch/kocevski/583575/ft1_filtered_4FGL_J2253.9+1609_daily_bin1473.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/583575/ft1_filtered_4FGL_J2253.9+1609_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/583575/ltcube_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.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/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.fits
.....................!
real 12.88
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583575/ft1_filtered_4FGL_J2253.9+1609_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/583575/ltcube_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.fits outfile=/scratch/kocevski/583575/expmap_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.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/583575/ltcube_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.fits
.....................!
real 190.63
user 186.12
sys 4.13

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/583575/ft1_filtered_4FGL_J2253.9+1609_daily_bin1473.fits scfile=/scratch/kocevski/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.fits outfile=/scratch/kocevski/583575/cmap_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.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/583575/ft1_filtered_4FGL_J2253.9+1609_daily_bin1473.fits scfile=/scratch/kocevski/583575/ft2_4FGL_J2253.9+1609_daily_bin1473.fits outfile=/scratch/kocevski/583575/cmap_HighResolution_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86733E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.704       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    69.216       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18256E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .35237E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91484       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93027       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=   4567.577     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2341 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    92.764       -.75843E-05** at limit **
   2  norm          .10000E-03    6.2361        .11056E-05** at limit **
   3  Prefactor     .10000E-03    11.578       -.27628E-06** at limit **
   4  Prefactor     2.7139        24.717       -.16759E-05    .13672E-03
   5  Prefactor     .73362        .37309        .34655E-07   -.46869E-03
   6  Prefactor     18.704        20.331        .41378E-06   -.17017E-04
   7  norm          .10000E-03    1.0122        .15484E-06** at limit **
   8  Prefactor     7.7800        59.683        .29394E-06   -.32439E-04
   9  Prefactor     69.214        22.599        .24465E-06   -.11906E-03
  10  Prefactor     .10000E-03    17.107       -.89314E-06** at limit **
  11  Prefactor     .22637        .20973        .30881E-07   -.97976E-03
  12  Prefactor     .70879        9.7382        .11218E-04    .38995E-03
  13  Prefactor     .10000E-03    143.50       -.66596E-06** at limit **
  14  Prefactor     .10061E-03    49.618       -.22271E-04** at limit **
  15  Prefactor     .10000E-03    13.118        .10524E-05** at limit **
  16  Prefactor     .10000E-03    5.0230        .12341E-06** at limit **
  17  Prefactor     .10000E-03    3.0737        .23993E-06** at limit **
  18  Prefactor     .10000E-03    30.714        .74478E-06** at limit **
  19  Prefactor     .10000E-03    8.6537        .20287E-06** at limit **
  20  norm          .10000E-03    15.100        .16749E-06** at limit **
  21  Prefactor     .10000E-03    20.854        .12317E-05** at limit **
  22  norm          .10000E-03    98.554       -.61995E-05** at limit **
  23  Normalizat    .91496        .27802       -.21166E-05   -.15117E-03
  24  Prefactor     .93023        .14247       -.23506E-05   -.47097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.71393
  Prefactor  = 0.733616
  Prefactor  = 18.7038
  norm       = 0.0001
  Prefactor  = 7.78003
  Prefactor  = 69.2143
  Prefactor  = 0.0001
  Prefactor  = 0.226367
  Prefactor  = 0.70879
  Prefactor  = 0.0001
  Prefactor  = 0.000100609
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100003
  Normalizat = 0.914965
  Prefactor  = 0.930227
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.577     FROM HESSE     STATUS=OK           391 CALLS     2732 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    92.827        .41706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.5054        .33092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7139        24.193        .24767E-03   -1.5378    
   5  Prefactor     .73362        .37354        .27748E-04   -1.5537    
   6  Prefactor     18.704        20.395        .92609E-04   -1.4843    
   7  norm          .10000E-03    1.0311        .66353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7800        58.473        .14378E-03   -1.5150    
   9  Prefactor     69.214        22.579        .48248E-04   -1.4042    
  10  Prefactor     .10000E-03    17.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22637        .20040        .26087E-04   -1.5613    
  12  Prefactor     .70879        12.822        .22976E-02   -1.5540    
  13  Prefactor     .10000E-03    143.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10061E-03    150.57        .40370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0269        .14795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0905        .11576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    100.94        .42641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91496        .32197        .35341E-03   -.95936    
  24  Prefactor     .93023        .16801        .18840E-03   -.95093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07197e-09
Minuit parameter uncertainties:
  1  0.00207424
  2  0.000168015
  3  1.90691e-05
  4  16.2143
  5  0.373544
  6  20.4025
  7  9.68104e-06
  8  42.716
  9  22.5818
  10  0.000134909
  11  0.200404
  12  6.03045
  13  0.000181403
  14  0.0192023
  15  0.000205083
  16  2.12415e-05
  17  3.61548e-05
  18  0.000250243
  19  5.37703e-05
  20  7.08697e-05
  21  0.000383104
  22  0.00116435
  23  0.32265
  24  0.168104
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.264e-01  2.004e-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.302e-01  1.681e-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.150e-01  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.26e-08 +/- 7.31e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 2.35e-05

TS (Fixed Index): 2.87
Ra Dec: 343.496 16.151
Photon Flux Upper Limit: 2.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583575/likelihoodResults_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.txt

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) = 4567.1459589
delta logL = 0.431335134185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4567.14579725
delta logL = 0.431496789702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46953       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.0554       1.0000          .0000       10.000    
     3 'Normalizat'    .77331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97691       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=   4567.146     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46948        7.1926        .56766E-02    .85687E-03
   2  Index1        3.0555        5.7508        .21983       -.32706E-04
   3  Normalizat    .77334        .18224        .85803E-01    .19349E-04
   4  Prefactor     .97690        .15639        .45978E-01   -.16053E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.469479
  Index1     = 3.05551
  Normalizat = 0.773344
  Prefactor  = 0.9769
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.146     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46948        .28056        .25420E-04   -1.5571    
   2  Index1        3.0555        1.1807        .12846E-01   -.39943    
   3  Normalizat    .77334        .33939        .38001E-03   -1.0107    
   4  Prefactor     .97690        .17530        .18413E-03   -.93504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95499e-12
Minuit parameter uncertainties:
  1  0.280561
  2  1.19405
  3  0.340324
  4  0.175399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583575': 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) = 4567.14579723
delta logL = 0.431496811271

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.695e-01  2.806e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  3.056e+00  1.194e+00  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:  9.769e-01  1.754e-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:  7.733e-01  3.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 343.496 16.151
Photon Index (Free Index): 3.06 +/- 1.19
Photon Flux (Free Index): 2.25e-07 +/- 1.69e-07
Energy Flux (Free Index): 3.99e-05 +/- 2.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/583575/cmap_HighResolution_621129601_621388801_4FGL_J2253.9+1609_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-05', comment='SUCCESS', photon_flux='8.26e-08', energy_flux2='3.99e-05', photon_flux_error='7.31e-08', dlogl='4.31e-01', energy_flux='2.65e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-09-29 02:27:23.485931', photon_index_error2='1.19', photon_index2='3.06', ts='2.87', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.38e-07', energy_flux_error2='2.41e-05', EG='0.91', time_epoch_completed='1632907643.49', return_code='0', job_id='583575', GAL2='0.98', EG2='0.77', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='1.69e-07', ts2='3.98', photon_index='2.02' WHERE bin_id='1473' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:27:23 PDT 2021

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 581327: <4FGL_J2253.9+1609_daily_bin1473> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1473> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 02:10:17 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:10:19 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:10:19 2021
Terminated at Wed Sep 29 02:20:57 2021
Results reported at Wed Sep 29 02:20:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1473 343.496 16.1506 621129601 621388801 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 :                                   531.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             254.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 583575: <4FGL_J2253.9+1609_daily_bin1473> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1473> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:16:37 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:16:38 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:16:38 2021
Terminated at Wed Sep 29 02:27:24 2021
Results reported at Wed Sep 29 02:27:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1473 343.496 16.1506 621129601 621388801 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 :                                   523.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

