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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1184
RA = 343.308, Dec = -12.5416
tmin = 546220801, tmax = 546480001
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='571016', job_status='RUN', time_executed='2021-09-29 01:41:26.043432', time_epoch_executed='1632904886.04' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571016/ft1_4FGL_J2253.2-1232_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571016/ft1_4FGL_J2253.2-1232_daily_bin1184.fits outfile=/scratch/kocevski/571016/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1184.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=546220801.0 tmax=546480001.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.87
user 3.64
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.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/571016/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1184.fits evtable="EVENTS" outfile="/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/571016/ltcube_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.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/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits
.....................!
real 11.70
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/571016/ltcube_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.fits outfile=/scratch/kocevski/571016/expmap_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.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/571016/ltcube_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.fits
.....................!
real 190.59
user 185.11
sys 5.13

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.2-1232 @ 343.308 -12.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits scfile=/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits outfile=/scratch/kocevski/571016/cmap_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.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.308 yref=-12.5416 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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits scfile=/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits outfile=/scratch/kocevski/571016/cmap_HighResolution_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.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.308 yref=-12.5416 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571016/Model_4FGL_J2253.2-1232_daily_bin1184.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/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits.....................!
real 31.01
user 29.75
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits', '/scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits', expMap='/scratch/kocevski/571016/expmap_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.fits', expCube='/scratch/kocevski/571016/ltcube_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571016/Model_4FGL_J2253.2-1232_daily_bin1184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.2-1232'

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  7.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/571016/ft1_filtered_4FGL_J2253.2-1232_daily_bin1184.fits
Spacecraft file(s): /scratch/kocevski/571016/ft2_4FGL_J2253.2-1232_daily_bin1184.fits
Exposure map: /scratch/kocevski/571016/expmap_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.fits
Exposure cube: /scratch/kocevski/571016/ltcube_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571016/Model_4FGL_J2253.2-1232_daily_bin1184.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) = 2651.08212592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.905       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    312.97       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.742       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0271       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    179.70       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7008       1.0000         .10000E-03   10000.    
    14 'norm      '    63.911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    26.075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.270       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88492       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2650.747     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2756 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.904        25.469       -.12579E-05   -.79165E-05
   2  Prefactor     .10000E-03    88.873        .62178E-04** at limit **
   3  Prefactor     .10000E-03    5.3386        .19117E-06** at limit **
   4  Prefactor     .10000E-03    55.497       -.14849E-04** at limit **
   5  norm          13.722        9.2958       -.41411E-06   -.12702E-03
   6  Prefactor     313.00        223.64        .14069E-04   -.49029E-05
   7  Prefactor     36.739        22.300       -.13908E-05    .30972E-04
   8  norm          3.0270        1.6364       -.19322E-06   -.33643E-03
   9  Prefactor     .10000E-03    30.519        .27291E-04** at limit **
  10  norm          1.3271        1.6660       -.12473E-07   -.12696E-02
  11  Prefactor     179.69        70.286       -.22683E-05   -.19790E-03
  12  Prefactor     .10000E-03    25.354       -.96246E-05** at limit **
  13  Prefactor     5.6987        16.312       -.11463E-05   -.57359E-04
  14  norm          63.917        51.557        .43953E-05   -.29328E-05
  15  Prefactor     .10000E-03    84.252        .64039E-04** at limit **
  16  Prefactor     .10000E-03    39.371       -.41609E-04** at limit **
  17  Prefactor     .10000E-03    32.737        .55120E-05** at limit **
  18  norm          .10000E-03    3.2710       -.45786E-07** at limit **
  19  norm          26.084        16.708       -.54876E-06   -.59768E-04
  20  Prefactor     58.230        76.582       -.42578E-04    .78847E-04
  21  Prefactor     .10000E-03    11.293        .16836E-06** at limit **
  22  Prefactor     .10000E-03    151.91       -.16242E-03** at limit **
  23  Normalizat    .88511        .30977        .10597E-04   -.13576E-03
  24  Prefactor     .71920        .23791       -.17838E-05    .17368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.722
  Prefactor  = 312.999
  Prefactor  = 36.7387
  norm       = 3.02702
  Prefactor  = 0.0001
  norm       = 1.3271
  Prefactor  = 179.695
  Prefactor  = 0.0001
  Prefactor  = 5.69874
  norm       = 63.9173
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.0836
  Prefactor  = 58.2298
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.885115
  Prefactor  = 0.719199
 **********
 **   18 **HESSE 
 **********

 FCN=   2650.747     FROM HESSE     STATUS=OK           389 CALLS     3145 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.904        25.478        .73265E-04   -1.4614    
   2  Prefactor     .10000E-03    88.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3403        .11619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.722        9.3120        .10813E-03   -1.4967    
   6  Prefactor     313.00        223.74        .11486E-03   -1.2151    
   7  Prefactor     36.739        22.441        .66118E-04   -1.4495    
   8  norm          3.0270        1.6349        .46316E-04   -1.5360    
   9  Prefactor     .10000E-03    30.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3271        1.6297        .66224E-04   -1.5478    
  11  Prefactor     179.69        69.552        .30111E-04   -1.3019    
  12  Prefactor     .10000E-03    25.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6987        16.299        .16823E-03   -1.5230    
  14  norm          63.917        51.572        .50197E-04   -1.4107    
  15  Prefactor     .10000E-03    84.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.2708        .17700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          26.084        16.315        .78451E-04   -1.4686    
  20  Prefactor     58.230        77.029        .52556E-04   -1.4180    
  21  Prefactor     .10000E-03    11.302        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    152.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88511        .36870        .29020E-03   -.96985    
  24  Prefactor     .71920        .28209        .25043E-03   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97455e-09
Minuit parameter uncertainties:
  1  25.487
  2  6.86188e-05
  3  9.69684e-06
  4  5.57044e-05
  5  9.31301
  6  224.363
  7  22.4466
  8  1.63489
  9  5.57266e-05
  10  1.62974
  11  69.5835
  12  4.75519e-05
  13  16.3116
  14  51.6079
  15  0.000175106
  16  0.000501906
  17  0.000177032
  18  9.26516e-05
  19  16.318
  20  77.1613
  21  0.00022788
  22  1.17015e-05
  23  0.369756
  24  0.282657
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.797e+02  6.958e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.192e-01  2.827e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  8.851e-01  3.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.28
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 3.56e-07 +/- 1.38e-07
Energy Flux (Fixed Index): 8.96e-05 +/- 3.47e-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) = 2650.74652187
delta logL = 2.29026036322e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2650.74648494
delta logL = 5.98344918217e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    178.86       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6513       1.0000          .0000       10.000    
     3 'Normalizat'    .88453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2650.746     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      258 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     178.78        107.18        .15090E-03   -.48556E-04
   2  Index         2.6509        .41921        .26736E-02   -.33548E-04
   3  Normalizat    .88444        .35167        .29029E-03   -.54535E-04
   4  Prefactor     .71965        .27466        .25036E-03   -.12637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 178.777
  Index      = 2.65087
  Normalizat = 0.884438
  Prefactor  = 0.71965
 **********
 **   18 **HESSE 
 **********

 FCN=   2650.746     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     178.78        103.46        .60360E-05   -1.3026    
   2  Index         2.6509        .40454        .10694E-03   -.48909    
   3  Normalizat    .88444        .35179        .11612E-04   -.97009    
   4  Prefactor     .71965        .27472        .10014E-04   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07249e-11
Minuit parameter uncertainties:
  1  103.57
  2  0.405107
  3  0.352706
  4  0.27524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571016': 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) = 2650.74648081
delta logL = 6.396282879e-05

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.788e+02  1.036e+02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.651e+00  4.051e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.197e-01  2.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  8.844e-01  3.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.50
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 2.65 +/- 0.41
Photon Flux (Free Index): 3.57e-07 +/- 1.44e-07
Energy Flux (Free Index): 8.94e-05 +/- 3.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/571016/cmap_HighResolution_546220801_546480001_4FGL_J2253.2-1232_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.56e-07', energy_flux2='8.94e-05', photon_flux_error='1.38e-07', dlogl='6.40e-05', energy_flux='8.96e-05', photon_flux2='3.57e-07', job_status='DONE', time_completed='2021-09-29 01:48:31.162921', photon_index_error2='0.41', photon_index2='2.65', ts='16.28', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='3.51e-05', EG='0.89', time_epoch_completed='1632905311.16', return_code='0', job_id='571016', GAL2='0.72', EG2='0.88', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='1.44e-07', ts2='16.50', photon_index='2.65' WHERE bin_id='1184' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 571016: <4FGL_J2253.2-1232_daily_bin1184> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1184> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:19 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:40:20 2021
Terminated at Wed Sep 29 01:48:31 2021
Results reported at Wed Sep 29 01:48:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1184 343.308 -12.5416 546220801 546480001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.2-1232 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   417.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             244.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   491 sec.
    Turnaround time :                            492 sec.

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

