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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1311
RA = 343.496, Dec = 16.1506
tmin = 579139201, tmax = 579398401
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='579921', job_status='RUN', time_executed='2021-09-29 02:07:37.087640', time_epoch_executed='1632906457.09' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579921/ft1_4FGL_J2253.9+1609_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579921/ft2_4FGL_J2253.9+1609_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579921/ft1_4FGL_J2253.9+1609_daily_bin1311.fits outfile=/scratch/kocevski/579921/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1311.fits ra=343.496 dec=16.1506 rad=12.0 tmin=579139201.0 tmax=579398401.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.49
user 3.25
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579921/ft1_filtered_4FGL_J2253.9+1609_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/579921/ft2_4FGL_J2253.9+1609_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/579921/ltcube_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits outfile=/scratch/kocevski/579921/expmap_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.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/579921/ltcube_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits
.....................!
real 190.36
user 185.13
sys 4.90

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/579921/ft1_filtered_4FGL_J2253.9+1609_daily_bin1311.fits scfile=/scratch/kocevski/579921/ft2_4FGL_J2253.9+1609_daily_bin1311.fits outfile=/scratch/kocevski/579921/cmap_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579921/ft1_filtered_4FGL_J2253.9+1609_daily_bin1311.fits', '/scratch/kocevski/579921/ft2_4FGL_J2253.9+1609_daily_bin1311.fits', expMap='/scratch/kocevski/579921/expmap_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits', expCube='/scratch/kocevski/579921/ltcube_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579921/Model_4FGL_J2253.9+1609_daily_bin1311.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/579921/ft1_filtered_4FGL_J2253.9+1609_daily_bin1311.fits
Spacecraft file(s): /scratch/kocevski/579921/ft2_4FGL_J2253.9+1609_daily_bin1311.fits
Exposure map: /scratch/kocevski/579921/expmap_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits
Exposure cube: /scratch/kocevski/579921/ltcube_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579921/Model_4FGL_J2253.9+1609_daily_bin1311.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10671.3313575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.345       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .84516       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.685       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4320       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30738E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.2736       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1894       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86803       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99720       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=   10671.21     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2346 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.345        14.999        .22766E-02    .19769E-03
   2  norm          7.5586        4.9878        .36466E-02   -.14782E-02
   3  Prefactor     8.4517        11.552        .34470E-02    .29041E-03
   4  Prefactor     14.359        9.1925        .26425E-02    .62615E-04
   5  Prefactor     .84516        .22376        .52833E-02    .66304E-02
   6  Prefactor     16.684        8.8043        .24513E-02    .25497E-03
   7  norm          1.3373        1.4229        .94821E-02    .65499E-03
   8  Prefactor     .10000E-03    12.497        .90712E-02** at limit **
   9  Prefactor     80.713        17.434        .11176E-02    .10281E-02
  10  Prefactor     13.641        12.720        .27113E-02    .46770E-04
  11  Prefactor     2.7861        .27196        .35621E-02    .93007E-02
  12  Prefactor     7.4323        7.8955        .36779E-02    .18053E-03
  13  Prefactor     19.182        43.463        .22862E-02    .41710E-03
  14  Prefactor     .10000E-03    3.3728        .67416E-01** at limit **
  15  Prefactor     .10000E-03    26.059        .90712E-02** at limit **
  16  Prefactor     .10000E-03    6.3341        .90712E-02** at limit **
  17  Prefactor     13.660        8.1682        .27096E-02    .52743E-03
  18  Prefactor     .10000E-03    5.3145        .90712E-02** at limit **
  19  Prefactor     .10000E-03    16.524        .90712E-02** at limit **
  20  norm          8.2747        9.9367        .34844E-02    .47908E-03
  21  Prefactor     2.1876        11.055        .69538E-02    .73452E-03
  22  norm          .10000E-03    7.2679        .90712E-02** at limit **
  23  Normalizat    .86789        .22950        .94672E-01    .89341E-03
  24  Prefactor     .99730        .11764        .46232E-01    .14594E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3449
  norm       = 7.55857
  Prefactor  = 8.45171
  Prefactor  = 14.3588
  Prefactor  = 0.845162
  Prefactor  = 16.6839
  norm       = 1.33728
  Prefactor  = 0.000100002
  Prefactor  = 80.7128
  Prefactor  = 13.6409
  Prefactor  = 2.78614
  Prefactor  = 7.43225
  Prefactor  = 19.1818
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.6599
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.27472
  Prefactor  = 2.18757
  norm       = 0.0001
  Normalizat = 0.86789
  Prefactor  = 0.997303
 **********
 **   18 **HESSE 
 **********

 FCN=   10671.21     FROM HESSE     STATUS=OK           397 CALLS     2743 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.345        14.998        .91063E-04   -1.4828    
   2  norm          7.5586        4.9859        .14586E-03   -1.5158    
   3  Prefactor     8.4517        11.541        .13788E-03   -1.5126    
   4  Prefactor     14.359        9.1905        .10570E-03   -1.4950    
   5  Prefactor     .84516        .22320        .23413E-04   -1.5524    
   6  Prefactor     16.684        8.8126        .98053E-04   -1.4891    
   7  norm          1.3373        1.4041        .12216E-03   -1.5477    
   8  Prefactor     .10000E-03    12.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     80.713        17.408        .44705E-04   -1.3909    
  10  Prefactor     13.641        12.724        .10845E-03   -1.4969    
  11  Prefactor     2.7861        .27149        .15743E-04   -1.5374    
  12  Prefactor     7.4323        7.8919        .14712E-03   -1.5163    
  13  Prefactor     19.182        43.713        .91449E-04   -1.4832    
  14  Prefactor     .10000E-03    9.8049        .36494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.660        8.1792        .10838E-03   -1.4969    
  18  Prefactor     .10000E-03    5.3329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.2747        9.5538        .13938E-03   -1.5133    
  21  Prefactor     2.1876        10.217        .27815E-03   -1.5412    
  22  norm          .10000E-03    7.2899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86789        .26420        .41943E-03   -.97598    
  24  Prefactor     .99730        .13699        .21990E-03   -.92819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0232e-09
Minuit parameter uncertainties:
  1  15.0009
  2  4.98614
  3  11.5445
  4  9.19142
  5  0.223204
  6  8.81332
  7  1.40417
  8  0.000334186
  9  17.4087
  10  12.7261
  11  0.271488
  12  7.89302
  13  43.7861
  14  0.000133132
  15  0.00049688
  16  3.51699e-05
  17  8.17991
  18  2.36106e-05
  19  0.000196369
  20  9.5556
  21  9.45757
  22  2.78433e-06
  23  0.264598
  24  0.137033
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.786e+00  2.715e-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.973e-01  1.370e-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.679e-01  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 341.67
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.02e-06 +/- 9.90e-08
Energy Flux (Fixed Index): 3.26e-04 +/- 3.18e-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) = 10671.1164452
delta logL = 0.0927637073237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10671.1150349
delta logL = 0.0941739199425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7252       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9727       1.0000          .0000       10.000    
     3 'Normalizat'    .89189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98813       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=   10671.12     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7252        .28557        .35425E-02    .80279E-04
   2  Index1        1.9727        .10098        .53413E-01   -.10105E-03
   3  Normalizat    .89189        .21275        .93613E-01    .43724E-04
   4  Prefactor     .98812        .11692        .46119E-01    .93815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72519
  Index1     = 1.97275
  Normalizat = 0.891895
  Prefactor  = 0.988117
 **********
 **   18 **HESSE 
 **********

 FCN=   10671.12     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .77E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7252        .30200        .15657E-04   -1.5378    
   2  Index1        1.9727        .10734        .23526E-03   -.65033    
   3  Normalizat    .89189        .24808        .41471E-03   -.96746    
   4  Prefactor     .98812        .13621        .22084E-03   -.93127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70095e-14
Minuit parameter uncertainties:
  1  0.302
  2  0.107349
  3  0.248396
  4  0.136261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579921': 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) = 10671.1150349
delta logL = 0.0941739438676

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.725e+00  3.020e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.973e+00  1.073e-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.881e-01  1.363e-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.919e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 338.80
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.97 +/- 0.11
Photon Flux (Free Index): 9.91e-07 +/- 1.12e-07
Energy Flux (Free Index): 3.33e-04 +/- 3.65e-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/579921/cmap_HighResolution_579139201_579398401_4FGL_J2253.9+1609_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-06', energy_flux2='3.33e-04', photon_flux_error='9.90e-08', dlogl='9.42e-02', energy_flux='3.26e-04', photon_flux2='9.91e-07', job_status='DONE', time_completed='2021-09-29 02:21:22.265310', photon_index_error2='0.11', photon_index2='1.97', ts='341.67', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.65e-05', EG='0.87', time_epoch_completed='1632907282.27', return_code='0', job_id='579921', GAL2='0.99', EG2='0.89', return_code2='0', energy_flux_error='3.18e-05', photon_flux_error2='1.12e-07', ts2='338.80', photon_index='2.02' WHERE bin_id='1311' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 579921: <4FGL_J2253.9+1609_daily_bin1311> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1311> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:28 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:29 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:29 2021
Terminated at Wed Sep 29 02:21:22 2021
Results reported at Wed Sep 29 02:21:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1311 343.496 16.1506 579139201 579398401 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 :                                   758.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

