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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1087
RA = 343.496, Dec = 16.1506
tmin = 521078401, tmax = 521337601
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='578503', job_status='RUN', time_executed='2021-09-29 02:02:46.507468', time_epoch_executed='1632906166.51' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578503/ft1_4FGL_J2253.9+1609_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578503/ft2_4FGL_J2253.9+1609_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578503/ft1_4FGL_J2253.9+1609_daily_bin1087.fits outfile=/scratch/kocevski/578503/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1087.fits ra=343.496 dec=16.1506 rad=12.0 tmin=521078401.0 tmax=521337601.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.61
user 4.33
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578503/ft1_filtered_4FGL_J2253.9+1609_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/578503/ft2_4FGL_J2253.9+1609_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/578503/ltcube_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.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/578503/ft2_4FGL_J2253.9+1609_daily_bin1087.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578503/ft1_filtered_4FGL_J2253.9+1609_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/578503/ft2_4FGL_J2253.9+1609_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/578503/ltcube_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.fits outfile=/scratch/kocevski/578503/expmap_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.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/578503/ltcube_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.fits
.....................!
real 192.55
user 186.78
sys 5.44

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/578503/ft1_filtered_4FGL_J2253.9+1609_daily_bin1087.fits scfile=/scratch/kocevski/578503/ft2_4FGL_J2253.9+1609_daily_bin1087.fits outfile=/scratch/kocevski/578503/cmap_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578503/ft1_filtered_4FGL_J2253.9+1609_daily_bin1087.fits scfile=/scratch/kocevski/578503/ft2_4FGL_J2253.9+1609_daily_bin1087.fits outfile=/scratch/kocevski/578503/cmap_HighResolution_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.449       1.0000         .10000E-03   10000.    
     2 'norm      '    .97513E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0758       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.287       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1646       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11993E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.743       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89919       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0391       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=   10408.92     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2717 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.445        25.912       -.38596E-05    .67911E-05
   2  norm          .10001E-03    3.4762        .34000E-06** at limit **
   3  Prefactor     8.1840        10.947       -.37531E-06   -.13243E-04
   4  Prefactor     5.6200        13.581       -.87553E-05   -.53814E-04
   5  Prefactor     5.0758        .41799       -.97056E-08    .19880E-03
   6  Prefactor     .10000E-03    14.760       -.29644E-06** at limit **
   7  norm          1.1235        1.0363        .33007E-07    .97407E-04
   8  Prefactor     .10000E-03    13.492        .18197E-05** at limit **
   9  Prefactor     .10000E-03    14.342        .26074E-06** at limit **
  10  Prefactor     .10000E-03    6.2302       -.69835E-06** at limit **
  11  Prefactor     .75248        .16418       -.10169E-07    .22548E-03
  12  Prefactor     14.565        10.885       -.16451E-06    .12266E-04
  13  Prefactor     20.340        34.404        .23809E-05    .10236E-04
  14  Prefactor     .10000E-03    2.0910       -.37587E-07** at limit **
  15  Prefactor     .10000E-03    7.5680        .34025E-05** at limit **
  16  Prefactor     14.287        25.033       -.55716E-06   -.26855E-04
  17  Prefactor     13.591        7.4888       -.34462E-06    .10859E-03
  18  Prefactor     .10000E-03    3.8029       -.13553E-06** at limit **
  19  Prefactor     .10000E-03    8.5867       -.40977E-05** at limit **
  20  norm          2.1626        2.2255        .41525E-06   -.13649E-02
  21  Prefactor     .10000E-03    3.1018       -.51894E-06** at limit **
  22  norm          17.743        14.730        .48959E-07    .28248E-04
  23  Normalizat    .89909        .22577        .26217E-05    .12008E-04
  24  Prefactor     1.0391        .11782       -.79016E-08    .10716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4449
  norm       = 0.000100009
  Prefactor  = 8.18396
  Prefactor  = 5.61999
  Prefactor  = 5.07582
  Prefactor  = 0.0001
  norm       = 1.12352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.752485
  Prefactor  = 14.5653
  Prefactor  = 20.3398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2873
  Prefactor  = 13.5912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16258
  Prefactor  = 0.0001
  norm       = 17.7433
  Normalizat = 0.89909
  Prefactor  = 1.03914
 **********
 **   18 **HESSE 
 **********

 FCN=   10408.92     FROM HESSE     STATUS=OK           405 CALLS     3122 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.445        25.791        .93247E-04   -1.4849    
   2  norm          .10001E-03    20.583        .36447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1840        10.954        .14014E-03   -1.5136    
   4  Prefactor     5.6200        13.618        .16926E-03   -1.5234    
   5  Prefactor     5.0758        .41914        .17761E-04   -1.5257    
   6  Prefactor     .10000E-03    15.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1235        1.0387        .97115E-04   -1.5496    
   8  Prefactor     .10000E-03    13.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75248        .16392        .18422E-04   -1.5534    
  12  Prefactor     14.565        10.885        .10495E-03   -1.4944    
  13  Prefactor     20.340        34.518        .88814E-04   -1.4806    
  14  Prefactor     .10000E-03    2.0984        .14406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.287        25.088        .52983E-03   -1.4952    
  17  Prefactor     13.591        7.5071        .10866E-03   -1.4970    
  18  Prefactor     .10000E-03    3.8173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1626        6.5633        .13997E-02   -1.5414    
  21  Prefactor     .10000E-03    14.810        .34402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.743        14.728        .95084E-04   -1.4865    
  23  Normalizat    .89909        .25678        .41191E-03   -.96492    
  24  Prefactor     1.0391        .13484        .21647E-03   -.91436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04873e-09
Minuit parameter uncertainties:
  1  25.8066
  2  0.000869315
  3  10.9568
  4  13.6255
  5  0.419139
  6  2.10517e-05
  7  1.03868
  8  2.0891e-06
  9  6.66361e-06
  10  5.4917e-06
  11  0.16392
  12  10.8867
  13  34.5515
  14  3.47946e-06
  15  2.13817e-05
  16  25.1064
  17  7.50762
  18  6.34234e-06
  19  1.69853e-05
  20  6.56553
  21  2.17017e-05
  22  14.7315
  23  0.257132
  24  0.13488
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.525e-01  1.639e-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.039e+00  1.349e-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.991e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.98
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.74e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 8.81e-05 +/- 1.92e-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) = 10408.9141357
delta logL = 0.0106955912725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10408.909921
delta logL = 0.0149103160238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73627       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9797       1.0000          .0000       10.000    
     3 'Normalizat'    .90625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0364       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=   10408.91     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      197 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73629        .16920        .41314E-02   -.11268E-03
   2  Index1        1.9798        .20224        .11049       -.14306E-03
   3  Normalizat    .90626        .20974        .92673E-01    .53016E-05
   4  Prefactor     1.0364        .11719        .40780E-01   -.31885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.736286
  Index1     = 1.97976
  Normalizat = 0.906262
  Prefactor  = 1.03642
 **********
 **   18 **HESSE 
 **********

 FCN=   10408.91     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73629        .18718        .18298E-04   -1.5536    
   2  Index1        1.9798        .22930        .47851E-03   -.64857    
   3  Normalizat    .90626        .24083        .41052E-03   -.96240    
   4  Prefactor     1.0364        .13450        .21673E-03   -.91525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33071e-12
Minuit parameter uncertainties:
  1  0.187185
  2  0.229431
  3  0.241118
  4  0.134543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578503': 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) = 10408.909921
delta logL = 0.0149103312251

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.363e-01  1.872e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.980e+00  2.294e-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.036e+00  1.345e-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.063e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.30
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.98 +/- 0.23
Photon Flux (Free Index): 2.68e-07 +/- 6.96e-08
Energy Flux (Free Index): 8.94e-05 +/- 2.10e-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/578503/cmap_HighResolution_521078401_521337601_4FGL_J2253.9+1609_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-07', energy_flux2='8.94e-05', photon_flux_error='5.98e-08', dlogl='1.49e-02', energy_flux='8.81e-05', photon_flux2='2.68e-07', job_status='DONE', time_completed='2021-09-29 02:16:00.009462', photon_index_error2='0.23', photon_index2='1.98', ts='51.98', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.90', time_epoch_completed='1632906960.01', return_code='0', job_id='578503', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='6.96e-08', ts2='51.30', photon_index='2.02' WHERE bin_id='1087' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 578503: <4FGL_J2253.9+1609_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1087 343.496 16.1506 521078401 521337601 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 :                                   787.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

