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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1365
RA = 343.496, Dec = 16.1506
tmin = 593136001, tmax = 593395201
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='580000', job_status='RUN', time_executed='2021-09-29 02:08:12.846058', time_epoch_executed='1632906492.85' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580000/ft1_4FGL_J2253.9+1609_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580000/ft2_4FGL_J2253.9+1609_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580000/ft1_4FGL_J2253.9+1609_daily_bin1365.fits outfile=/scratch/kocevski/580000/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1365.fits ra=343.496 dec=16.1506 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.18
user 4.92
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580000/ft1_filtered_4FGL_J2253.9+1609_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/580000/ft2_4FGL_J2253.9+1609_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/580000/ltcube_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.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/580000/ft2_4FGL_J2253.9+1609_daily_bin1365.fits
.....................!
real 11.69
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580000/ft1_filtered_4FGL_J2253.9+1609_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/580000/ft2_4FGL_J2253.9+1609_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/580000/ltcube_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.fits outfile=/scratch/kocevski/580000/expmap_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.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/580000/ltcube_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.fits
.....................!
real 190.69
user 185.66
sys 4.66

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/580000/ft1_filtered_4FGL_J2253.9+1609_daily_bin1365.fits scfile=/scratch/kocevski/580000/ft2_4FGL_J2253.9+1609_daily_bin1365.fits outfile=/scratch/kocevski/580000/cmap_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580000/ft1_filtered_4FGL_J2253.9+1609_daily_bin1365.fits scfile=/scratch/kocevski/580000/ft2_4FGL_J2253.9+1609_daily_bin1365.fits outfile=/scratch/kocevski/580000/cmap_HighResolution_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11775       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    135.23       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49815E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66996E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7575       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4946       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0590       1.0000         .10000E-03   10000.    
    22 'norm      '    28.759       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3679       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72196       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=   6608.292     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2816 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.391        .94107E-07** at limit **
   2  norm          .10000E-03    1.4871        .13989E-06** at limit **
   3  Prefactor     .10008E-03    15.716        .64802E-06** at limit **
   4  Prefactor     .10000E-03    17.972       -.83323E-07** at limit **
   5  Prefactor     .11746        .20157       -.18431E-07   -.38497E-02
   6  Prefactor     .10000E-03    3.1075       -.56615E-07** at limit **
   7  norm          .10000E-03    1.6944       -.94281E-07** at limit **
   8  Prefactor     24.293        31.739        .16933E-05   -.67536E-05
   9  Prefactor     135.22        24.616        .13263E-05   -.11484E-05
  10  Prefactor     32.252        25.297       -.26251E-05   -.17961E-04
  11  Prefactor     .68899        .21361        .50618E-07   -.86040E-03
  12  Prefactor     .10000E-03    3.2234       -.91754E-07** at limit **
  13  Prefactor     .10010E-03    199.45        .14917E-03** at limit **
  14  Prefactor     .10000E-03    7.5131        .21260E-07** at limit **
  15  Prefactor     .14472E-01    8.5657       -.89724E-06    .23942E-03
  16  Prefactor     4.7592        26.134        .81011E-05   -.32633E-04
  17  Prefactor     2.6748        8.8668       -.33873E-05   -.33131E-03
  18  Prefactor     8.3046        17.234        .21510E-05   -.18963E-03
  19  Prefactor     .10000E-03    26.445        .52539E-06** at limit **
  20  norm          4.4945        22.600       -.14993E-05   -.26357E-03
  21  Prefactor     4.0561        11.570        .11243E-05   -.26945E-03
  22  norm          28.765        20.781        .86349E-05   -.14901E-04
  23  Normalizat    1.3683        .25628       -.19192E-05   -.59339E-03
  24  Prefactor     .72180        .13018       -.75731E-06   -.74627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  Prefactor  = 0.117458
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.2925
  Prefactor  = 135.22
  Prefactor  = 32.252
  Prefactor  = 0.688985
  Prefactor  = 0.0001
  Prefactor  = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 0.0144717
  Prefactor  = 4.75918
  Prefactor  = 2.67477
  Prefactor  = 8.30457
  Prefactor  = 0.0001
  norm       = 4.49454
  Prefactor  = 4.05608
  norm       = 28.765
  Normalizat = 1.3683
  Prefactor  = 0.721804
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.292     FROM HESSE     STATUS=OK           411 CALLS     3227 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4888        .96808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10008E-03    107.62        .56208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11746        .17596        .41179E-03   -1.5639    
   6  Prefactor     .10000E-03    3.1129        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7667        .20619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.293        31.790        .81267E-04   -1.4722    
   9  Prefactor     135.22        24.584        .17316E-03   -1.3377    
  10  Prefactor     32.252        25.338        .70562E-04   -1.4572    
  11  Prefactor     .68899        .21379        .19157E-04   -1.5542    
  12  Prefactor     .10000E-03    3.2257        .14253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    199.09        .42319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14472E-01    10.732        .77566E-01   -1.5684    
  16  Prefactor     4.7592        26.112        .18447E-03   -1.5272    
  17  Prefactor     2.6748        8.8589        .24901E-03   -1.5381    
  18  Prefactor     8.3046        16.351        .13913E-03   -1.5132    
  19  Prefactor     .10000E-03    26.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4945        19.030        .18991E-03   -1.5284    
  21  Prefactor     4.0561        10.924        .20013E-03   -1.5305    
  22  norm          28.765        20.839        .74708E-04   -1.4635    
  23  Normalizat    1.3683        .30930        .31384E-03   -.81550    
  24  Prefactor     .72180        .15729        .22270E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87013e-09
Minuit parameter uncertainties:
  1  1.17432e-05
  2  1.60757e-06
  3  0.0057718
  4  4.11669e-05
  5  0.17596
  6  3.94738e-06
  7  8.40868e-06
  8  31.8126
  9  24.5862
  10  25.3467
  11  0.213793
  12  9.40206e-07
  13  0.00875426
  14  3.44895e-05
  15  0.785591
  16  22.3103
  17  8.86325
  18  16.3597
  19  0.000169274
  20  18.5066
  21  10.9294
  22  20.8445
  23  0.30972
  24  0.157388
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.890e-01  2.138e-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:  7.218e-01  1.574e-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.368e+00  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.01
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 7.79e-08
Energy Flux (Fixed Index): 8.07e-05 +/- 2.50e-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) = 6608.04533199
delta logL = 0.246347888291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6608.01552539
delta logL = 0.276154487113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77466       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2496       1.0000          .0000       10.000    
     3 'Normalizat'    1.3296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73628       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=   6608.016     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77466        .22528        .44291E-02   -.12064E-02
   2  Index1        2.2496        .28399        .12400        .52476E-04
   3  Normalizat    1.3296        .24265        .71716E-01    .10956E-04
   4  Prefactor     .73628        .12899        .42882E-01    .16992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.774656
  Index1     = 2.24958
  Normalizat = 1.32963
  Prefactor  = 0.736278
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.016     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77466        .23942        .19643E-04   -1.5532    
   2  Index1        2.2496        .31078        .53514E-02   -.58246    
   3  Normalizat    1.3296        .29474        .31733E-03   -.82686    
   4  Prefactor     .73628        .15609        .22065E-03   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50421e-11
Minuit parameter uncertainties:
  1  0.23942
  2  0.311066
  3  0.295119
  4  0.156186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580000': 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) = 6608.01552539
delta logL = 0.276154490311

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.747e-01  2.394e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.250e+00  3.111e-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:  7.363e-01  1.562e-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.330e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.78
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.25 +/- 0.31
Photon Flux (Free Index): 2.91e-07 +/- 9.65e-08
Energy Flux (Free Index): 7.68e-05 +/- 2.27e-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/580000/cmap_HighResolution_593136001_593395201_4FGL_J2253.9+1609_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='7.68e-05', photon_flux_error='7.79e-08', dlogl='2.76e-01', energy_flux='8.07e-05', photon_flux2='2.91e-07', job_status='DONE', time_completed='2021-09-29 02:20:20.315545', photon_index_error2='0.31', photon_index2='2.25', ts='24.01', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.37', time_epoch_completed='1632907220.32', return_code='0', job_id='580000', GAL2='0.74', EG2='1.33', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='9.65e-08', ts2='24.78', photon_index='2.02' WHERE bin_id='1365' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 580000: <4FGL_J2253.9+1609_daily_bin1365> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1365> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:33 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:05:35 2021
Terminated at Wed Sep 29 02:20:20 2021
Results reported at Wed Sep 29 02:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1365 343.496 16.1506 593136001 593395201 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 :                                   614.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

