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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1057
RA = 343.496, Dec = 16.1506
tmin = 513302401, tmax = 513561601
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='578454', job_status='RUN', time_executed='2021-09-29 02:02:47.692012', time_epoch_executed='1632906167.69' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578454/ft1_4FGL_J2253.9+1609_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578454/ft2_4FGL_J2253.9+1609_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578454/ft1_4FGL_J2253.9+1609_daily_bin1057.fits outfile=/scratch/kocevski/578454/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1057.fits ra=343.496 dec=16.1506 rad=12.0 tmin=513302401.0 tmax=513561601.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.28
user 4.04
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578454/ft1_filtered_4FGL_J2253.9+1609_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/578454/ft2_4FGL_J2253.9+1609_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/578454/ltcube_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.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/578454/ft2_4FGL_J2253.9+1609_daily_bin1057.fits
.....................!
real 10.03
user 9.75
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578454/ft1_filtered_4FGL_J2253.9+1609_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/578454/ft2_4FGL_J2253.9+1609_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/578454/ltcube_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.fits outfile=/scratch/kocevski/578454/expmap_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.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/578454/ltcube_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.fits
.....................!
real 149.61
user 145.53
sys 3.82

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/578454/ft1_filtered_4FGL_J2253.9+1609_daily_bin1057.fits scfile=/scratch/kocevski/578454/ft2_4FGL_J2253.9+1609_daily_bin1057.fits outfile=/scratch/kocevski/578454/cmap_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.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.44
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578454/ft1_filtered_4FGL_J2253.9+1609_daily_bin1057.fits scfile=/scratch/kocevski/578454/ft2_4FGL_J2253.9+1609_daily_bin1057.fits outfile=/scratch/kocevski/578454/cmap_HighResolution_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.963       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.493       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6289       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3175       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.896       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.440       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3628       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7583       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77599       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94188       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=   7723.300     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2693 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.963        28.151       -.18176E-06   -.39932E-04
   2  norm          .10000E-03    3.0175       -.37561E-08** at limit **
   3  Prefactor     1.8583        25.289        .29313E-05    .58338E-06
   4  Prefactor     11.492        16.777       -.14988E-05   -.14599E-03
   5  Prefactor     3.3313        .41783       -.16644E-07   -.31070E-04
   6  Prefactor     4.6291        4.0228       -.53934E-06    .14699E-02
   7  norm          3.3175        2.2974       -.69204E-07   -.10230E-03
   8  Prefactor     51.900        44.317        .23176E-05    .11813E-03
   9  Prefactor     13.440        13.172        .26695E-06    .18713E-04
  10  Prefactor     26.097        23.647        .24881E-06    .27663E-04
  11  Prefactor     3.3627        .35093       -.21213E-07    .34811E-03
  12  Prefactor     11.418        11.836       -.23431E-06   -.52297E-04
  13  Prefactor     6.4357        33.493       -.19673E-05   -.34619E-04
  14  Prefactor     .76484        5.3523        .95133E-06   -.53963E-03
  15  Prefactor     .10000E-03    9.6342       -.10103E-05** at limit **
  16  Prefactor     15.325        19.900       -.27963E-06   -.25205E-04
  17  Prefactor     2.8072        6.0323        .45065E-07   -.21972E-03
  18  Prefactor     20.730        12.359       -.88764E-06   -.21757E-03
  19  Prefactor     .10000E-03    7.8756        .29242E-05** at limit **
  20  norm          3.7608        7.9853        .10195E-05    .74921E-05
  21  Prefactor     .10000E-03    4.8785        .22567E-06** at limit **
  22  norm          .10000E-03    7.1610       -.17784E-05** at limit **
  23  Normalizat    .77605        .25215        .69956E-06   -.44137E-04
  24  Prefactor     .94183        .13092       -.20326E-06   -.48218E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9629
  norm       = 0.0001
  Prefactor  = 1.85833
  Prefactor  = 11.4916
  Prefactor  = 3.33131
  Prefactor  = 4.62906
  norm       = 3.3175
  Prefactor  = 51.8997
  Prefactor  = 13.4401
  Prefactor  = 26.0968
  Prefactor  = 3.36268
  Prefactor  = 11.4185
  Prefactor  = 6.43574
  Prefactor  = 0.764843
  Prefactor  = 0.0001
  Prefactor  = 15.3252
  Prefactor  = 2.80721
  Prefactor  = 20.7303
  Prefactor  = 0.000100001
  norm       = 3.76076
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.776047
  Prefactor  = 0.941835
 **********
 **   18 **HESSE 
 **********

 FCN=   7723.300     FROM HESSE     STATUS=OK           407 CALLS     3100 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.963        28.135        .70873E-04   -1.4577    
   2  norm          .10000E-03    3.0398        .14902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8583        25.230        .30586E-03   -1.5435    
   4  Prefactor     11.492        16.913        .11817E-03   -1.5030    
   5  Prefactor     3.3313        .41816        .18629E-04   -1.5343    
   6  Prefactor     4.6291        4.8478        .93536E-03   -1.5278    
   7  norm          3.3175        2.2962        .10444E-03   -1.5344    
   8  Prefactor     51.900        44.585        .55673E-04   -1.4266    
   9  Prefactor     13.440        13.152        .10926E-03   -1.4975    
  10  Prefactor     26.097        23.672        .78418E-04   -1.4686    
  11  Prefactor     3.3627        .35244        .15326E-04   -1.5341    
  12  Prefactor     11.418        11.841        .11856E-03   -1.5032    
  13  Prefactor     6.4357        33.655        .15819E-03   -1.5201    
  14  Prefactor     .76484        6.9529        .44466E-03   -1.5533    
  15  Prefactor     .10000E-03    9.7426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.325        19.910        .10231E-03   -1.4925    
  17  Prefactor     2.8072        6.0606        .24280E-03   -1.5373    
  18  Prefactor     20.730        12.381        .87968E-04   -1.4797    
  19  Prefactor     .10000E-03    8.0640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7608        7.9468        .20826E-03   -1.5320    
  21  Prefactor     .10000E-03    4.9535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.2598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77605        .28133        .42799E-03   -1.0096    
  24  Prefactor     .94183        .14798        .22145E-03   -.94694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28073e-09
Minuit parameter uncertainties:
  1  28.1465
  2  2.791e-06
  3  13.7012
  4  16.9196
  5  0.418156
  6  4.84817
  7  2.29623
  8  44.6136
  9  13.155
  10  23.6803
  11  0.352441
  12  11.8438
  13  29.4604
  14  4.61252
  15  6.29481e-05
  16  19.919
  17  6.0619
  18  12.3823
  19  0.000164615
  20  7.94904
  21  4.09446e-06
  22  9.66367e-05
  23  0.28186
  24  0.148043
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.363e+00  3.524e-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.418e-01  1.480e-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.760e-01  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 318.68
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.23e-06 +/- 1.28e-07
Energy Flux (Fixed Index): 3.94e-04 +/- 4.13e-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) = 7722.60505304
delta logL = 0.694687492276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7722.59914898
delta logL = 0.700591552615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5132       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1622       1.0000          .0000       10.000    
     3 'Normalizat'    .70917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96776       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=   7722.599     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5132        .35388        .34914E-02    .13145E-02
   2  Index1        2.1622        .11862        .54932E-01   -.53209E-04
   3  Normalizat    .70917        .23657        .10028        .29283E-04
   4  Prefactor     .96776        .13212        .45863E-01    .52146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.51322
  Index1     = 2.16223
  Normalizat = 0.709167
  Prefactor  = 0.967764
 **********
 **   18 **HESSE 
 **********

 FCN=   7722.599     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5132        .36419        .15430E-04   -1.5333    
   2  Index1        2.1622        .12288        .24176E-03   -.60353    
   3  Normalizat    .70917        .26508        .44451E-03   -1.0353    
   4  Prefactor     .96776        .14822        .21871E-03   -.93812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61589e-12
Minuit parameter uncertainties:
  1  0.364186
  2  0.122895
  3  0.265565
  4  0.148278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578454': 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) = 7722.59914898
delta logL = 0.700591553106

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.513e+00  3.642e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.162e+00  1.229e-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:  9.678e-01  1.483e-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.092e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 320.39
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.16 +/- 0.12
Photon Flux (Free Index): 1.30e-06 +/- 1.42e-07
Energy Flux (Free Index): 3.68e-04 +/- 4.18e-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/578454/cmap_HighResolution_513302401_513561601_4FGL_J2253.9+1609_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-06', energy_flux2='3.68e-04', photon_flux_error='1.28e-07', dlogl='7.01e-01', energy_flux='3.94e-04', photon_flux2='1.30e-06', job_status='DONE', time_completed='2021-09-29 02:11:51.486044', photon_index_error2='0.12', photon_index2='2.16', ts='318.68', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.18e-05', EG='0.78', time_epoch_completed='1632906711.49', return_code='0', job_id='578454', GAL2='0.97', EG2='0.71', return_code2='0', energy_flux_error='4.13e-05', photon_flux_error2='1.42e-07', ts2='320.39', photon_index='2.02' WHERE bin_id='1057' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 578454: <4FGL_J2253.9+1609_daily_bin1057> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1057 343.496 16.1506 513302401 513561601 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 :                                   537.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            679 sec.

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

