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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1118
RA = 343.496, Dec = 16.1506
tmin = 529113601, tmax = 529372801
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='578550', job_status='RUN', time_executed='2021-09-29 02:03:56.202230', time_epoch_executed='1632906236.2' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578550/ft1_4FGL_J2253.9+1609_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578550/ft1_4FGL_J2253.9+1609_daily_bin1118.fits outfile=/scratch/kocevski/578550/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1118.fits ra=343.496 dec=16.1506 rad=12.0 tmin=529113601.0 tmax=529372801.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.91
user 3.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578550/ft1_filtered_4FGL_J2253.9+1609_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/578550/ltcube_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.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/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits
.....................!
real 12.43
user 12.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578550/ft1_filtered_4FGL_J2253.9+1609_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/578550/ltcube_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.fits outfile=/scratch/kocevski/578550/expmap_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.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/578550/ltcube_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.fits
.....................!
real 190.62
user 185.34
sys 4.83

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/578550/ft1_filtered_4FGL_J2253.9+1609_daily_bin1118.fits scfile=/scratch/kocevski/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits outfile=/scratch/kocevski/578550/cmap_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578550/ft1_filtered_4FGL_J2253.9+1609_daily_bin1118.fits scfile=/scratch/kocevski/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits outfile=/scratch/kocevski/578550/cmap_HighResolution_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.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/578550/ft1_filtered_4FGL_J2253.9+1609_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/578550/ft2_4FGL_J2253.9+1609_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578550/Model_4FGL_J2253.9+1609_daily_bin1118.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/578550/ft1_filtered_4FGL_J2253.9+1609_daily_bin1118.fits.....................!
real 93.73
user 92.28
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.067       1.0000         .10000E-03   10000.    
     2 'norm      '    .51459E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2572       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .97248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5668       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5214       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.024       1.0000         .10000E-03   10000.    
    20 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3657       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78103       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=   8754.589     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2816 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.070        25.768        .13738E-06   -.28172E-05
   2  norm          .59987E-01    4.0757        .25960E-06   -.12501E-03
   3  Prefactor     8.7514        20.973        .28128E-06   -.16958E-04
   4  Prefactor     .10000E-03    15.719        .97427E-06** at limit **
   5  Prefactor     3.1187        .39739        .74892E-08   -.72689E-03
   6  Prefactor     .10000E-03    9.6103        .13581E-05** at limit **
   7  norm          1.2573        1.1588        .74118E-08    .35403E-04
   8  Prefactor     .10000E-03    9.3731       -.50283E-07** at limit **
   9  Prefactor     .10000E-03    13.277       -.12484E-05** at limit **
  10  Prefactor     .10000E-03    5.3035       -.12899E-07** at limit **
  11  Prefactor     .97251        .20191       -.41467E-08   -.59153E-03
  12  Prefactor     15.235        14.269       -.62108E-07   -.70396E-04
  13  Prefactor     2.5645        58.619        .19601E-05    .11151E-04
  14  Prefactor     .96145        4.0626        .20752E-05   -.33150E-03
  15  Prefactor     .10000E-03    7.3556        .88269E-06** at limit **
  16  Prefactor     .10000E-03    12.829       -.22714E-06** at limit **
  17  Prefactor     .10000E-03    7.6090        .77020E-07** at limit **
  18  Prefactor     1.5193        9.1147        .12382E-05   -.91091E-04
  19  Prefactor     47.024        26.703        .46269E-06    .10845E-03
  20  norm          .10000E-03    7.6303       -.16141E-05** at limit **
  21  Prefactor     .10000E-03    3.4691       -.60591E-07** at limit **
  22  norm          .10000E-03    4.2498       -.26655E-08** at limit **
  23  Normalizat    1.3656        .23074       -.74219E-06   -.46181E-04
  24  Prefactor     .78108        .11629       -.50593E-07   -.11542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.0699
  norm       = 0.0599872
  Prefactor  = 8.7514
  Prefactor  = 0.0001
  Prefactor  = 3.11867
  Prefactor  = 0.000100001
  norm       = 1.25727
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.972511
  Prefactor  = 15.2354
  Prefactor  = 2.56454
  Prefactor  = 0.961451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51933
  Prefactor  = 47.0239
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.36555
  Prefactor  = 0.78108
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.589     FROM HESSE     STATUS=OK           401 CALLS     3217 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.070        25.769        .59074E-04   -1.4349    
   2  norm          .59987E-01    5.1176        .55422E-01   -1.5659    
   3  Prefactor     8.7514        21.068        .13550E-03   -1.5116    
   4  Prefactor     .10000E-03    16.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1187        .40002        .18929E-04   -1.5355    
   6  Prefactor     .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2573        1.1470        .94160E-04   -1.5484    
   8  Prefactor     .10000E-03    9.3766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .97251        .20198        .18099E-04   -1.5511    
  12  Prefactor     15.235        14.309        .10262E-03   -1.4927    
  13  Prefactor     2.5645        58.833        .25479E-03   -1.5388    
  14  Prefactor     .96145        4.5243        .38819E-03   -1.5512    
  15  Prefactor     .10000E-03    7.5812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5193        9.3750        .34636E-03   -1.5461    
  19  Prefactor     47.024        26.956        .58472E-04   -1.4335    
  20  norm          .10000E-03    8.1849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.4921        .17012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.2523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3656        .27184        .33743E-03   -.81630    
  24  Prefactor     .78108        .13658        .22999E-03   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1405e-10
Minuit parameter uncertainties:
  1  25.7754
  2  1.10731
  3  21.0857
  4  0.000172745
  5  0.400023
  6  0.000183633
  7  1.14704
  8  6.56894e-06
  9  0.000175584
  10  1.10301e-06
  11  0.201982
  12  14.3118
  13  24.5935
  14  4.17159
  15  0.000108021
  16  3.1914e-05
  17  1.47617e-05
  18  7.54967
  19  26.9632
  20  0.000184118
  21  5.13838e-07
  22  5.00905e-07
  23  0.272124
  24  0.136643
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.725e-01  2.020e-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.811e-01  1.366e-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.366e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.85
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.55e-07 +/- 7.36e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 2.36e-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) = 8754.36762812
delta logL = 0.221323093723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8754.32135861
delta logL = 0.267592597027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0579       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1894       1.0000          .0000       10.000    
     3 'Normalizat'    1.3236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79686       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=   8754.321     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0579        .21789        .41662E-02    .19997E-03
   2  Index1        2.1894        .21239        .10597       -.92007E-04
   3  Normalizat    1.3236        .22030        .77161E-01    .98326E-05
   4  Prefactor     .79687        .11642        .43676E-01    .16610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05793
  Index1     = 2.18941
  Normalizat = 1.32362
  Prefactor  = 0.796866
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.321     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0579        .23558        .18452E-04   -1.5502    
   2  Index1        2.1894        .23570        .45815E-03   -.59695    
   3  Normalizat    1.3236        .26159        .34150E-03   -.82864    
   4  Prefactor     .79687        .13740        .22794E-03   -.99844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33716e-13
Minuit parameter uncertainties:
  1  0.235577
  2  0.235824
  3  0.261856
  4  0.137457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578550': 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) = 8754.32135859
delta logL = 0.267592616539

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.058e+00  2.356e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.189e+00  2.358e-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.969e-01  1.375e-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.324e+00  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 53.68
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.19 +/- 0.24
Photon Flux (Free Index): 3.93e-07 +/- 9.41e-08
Energy Flux (Free Index): 1.09e-04 +/- 2.30e-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/578550/cmap_HighResolution_529113601_529372801_4FGL_J2253.9+1609_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.55e-07', energy_flux2='1.09e-04', photon_flux_error='7.36e-08', dlogl='2.68e-01', energy_flux='1.14e-04', photon_flux2='3.93e-07', job_status='DONE', time_completed='2021-09-29 02:16:21.421151', photon_index_error2='0.24', photon_index2='2.19', ts='53.85', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.37', time_epoch_completed='1632906981.42', return_code='0', job_id='578550', GAL2='0.80', EG2='1.32', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='9.41e-08', ts2='53.68', photon_index='2.02' WHERE bin_id='1118' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 578550: <4FGL_J2253.9+1609_daily_bin1118> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1118> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:39 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:40 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:40 2021
Terminated at Wed Sep 29 02:16:21 2021
Results reported at Wed Sep 29 02:16:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1118 343.496 16.1506 529113601 529372801 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 :                                   719.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

