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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1044
RA = 343.308, Dec = -12.5416
tmin = 509932801, tmax = 510192001
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='569732', job_status='RUN', time_executed='2021-09-29 01:36:53.900487', time_epoch_executed='1632904613.9' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569732/ft1_4FGL_J2253.2-1232_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569732/ft1_4FGL_J2253.2-1232_daily_bin1044.fits outfile=/scratch/kocevski/569732/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1044.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=509932801.0 tmax=510192001.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.53
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.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/569732/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/569732/ltcube_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.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/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits
.....................!
real 12.14
user 11.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/569732/ltcube_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.fits outfile=/scratch/kocevski/569732/expmap_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.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/569732/ltcube_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.fits
.....................!
real 189.71
user 184.80
sys 4.45

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/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits scfile=/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits outfile=/scratch/kocevski/569732/cmap_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits scfile=/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits outfile=/scratch/kocevski/569732/cmap_HighResolution_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/569732/Model_4FGL_J2253.2-1232_daily_bin1044.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/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits.....................!
real 59.58
user 58.05
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits', '/scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits', expMap='/scratch/kocevski/569732/expmap_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.fits', expCube='/scratch/kocevski/569732/ltcube_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569732/Model_4FGL_J2253.2-1232_daily_bin1044.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/569732/ft1_filtered_4FGL_J2253.2-1232_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/569732/ft2_4FGL_J2253.2-1232_daily_bin1044.fits
Exposure map: /scratch/kocevski/569732/expmap_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.fits
Exposure cube: /scratch/kocevski/569732/ltcube_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569732/Model_4FGL_J2253.2-1232_daily_bin1044.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) = 6411.27866451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.621       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7418       1.0000         .10000E-03   10000.    
     9 'Prefactor '    122.83       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4843       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0214       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8783       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.051       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0964       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2987       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=   6411.240     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2729 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.546       -.17547E-05** at limit **
   2  Prefactor     26.597        148.70       -.10925E-05   -.37372E-05
   3  Prefactor     .10000E-03    2.5874       -.46121E-07** at limit **
   4  Prefactor     .10000E-03    23.384       -.39583E-07** at limit **
   5  norm          6.7809        6.0085        .13500E-06    .30988E-04
   6  Prefactor     .10000E-03    61.724        .78806E-07** at limit **
   7  Prefactor     .10000E-03    38.005       -.18134E-06** at limit **
   8  norm          2.7417        1.1832        .10295E-07   -.27398E-05
   9  Prefactor     122.84        66.692       -.23761E-05   -.20390E-04
  10  norm          3.4824        4.1926        .13232E-05    .30680E-03
  11  Prefactor     50.246        82.271       -.58492E-06    .10088E-04
  12  Prefactor     4.0186        10.513        .42756E-06    .13393E-04
  13  Prefactor     .10000E-03    4.4969        .20233E-06** at limit **
  14  norm          22.073        15.919        .17487E-06    .19521E-04
  15  Prefactor     .10000E-03    21.196        .72264E-07** at limit **
  16  Prefactor     .10000E-03    22.313       -.32967E-07** at limit **
  17  Prefactor     .10000E-03    4.1235        .56960E-08** at limit **
  18  norm          .10000E-03    .52432       -.36009E-07** at limit **
  19  norm          5.8784        5.1269        .39096E-07    .10055E-04
  20  Prefactor     .10000E-03    111.58        .13873E-06** at limit **
  21  Prefactor     29.051        25.692        .47672E-06    .99500E-06
  22  Prefactor     .10000E-03    55.055       -.11785E-06** at limit **
  23  Normalizat    1.0959        .27356       -.35709E-05    .53226E-04
  24  Prefactor     1.2991        .20271        .24669E-05   -.11413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.5966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74175
  Prefactor  = 122.836
  norm       = 3.4824
  Prefactor  = 50.2459
  Prefactor  = 4.01865
  Prefactor  = 0.0001
  norm       = 22.0728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.87843
  Prefactor  = 0.0001
  Prefactor  = 29.0507
  Prefactor  = 0.0001
  Normalizat = 1.09591
  Prefactor  = 1.29906
 **********
 **   18 **HESSE 
 **********

 FCN=   6411.240     FROM HESSE     STATUS=OK           393 CALLS     3122 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.597        148.15        .77643E-04   -1.4676    
   3  Prefactor     .10000E-03    2.6087        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7809        5.9955        .15409E-03   -1.5187    
   6  Prefactor     .10000E-03    61.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7417        1.1827        .54995E-04   -1.5377    
   9  Prefactor     122.84        67.935        .36315E-04   -1.3487    
  10  norm          3.4824        4.3616        .93227E-04   -1.5335    
  11  Prefactor     50.246        81.914        .56627E-04   -1.4289    
  12  Prefactor     4.0186        10.502        .20109E-03   -1.5307    
  13  Prefactor     .10000E-03    4.5021        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.073        15.931        .42626E-03   -1.4768    
  15  Prefactor     .10000E-03    21.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1353        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .96830        .11258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8784        5.1201        .16405E-03   -1.5223    
  20  Prefactor     .10000E-03    111.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.051        25.689        .74333E-04   -1.4629    
  22  Prefactor     .10000E-03    55.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0959        .29553        .34941E-03   -.89883    
  24  Prefactor     1.2991        .21951        .24853E-03   -.83335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45492e-10
Minuit parameter uncertainties:
  1  3.74825e-05
  2  126.023
  3  1.34893e-06
  4  5.8712e-06
  5  5.99605
  6  3.61003e-05
  7  7.65713e-05
  8  1.18272
  9  67.9783
  10  4.36196
  11  82.0987
  12  10.5073
  13  6.11474e-06
  14  15.934
  15  1.66113e-05
  16  1.49077e-05
  17  2.04414e-06
  18  3.67679e-06
  19  5.12052
  20  8.1239e-05
  21  25.6989
  22  2.99924e-05
  23  0.295977
  24  0.219665
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  5.025e+01  8.210e+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:  1.299e+00  2.197e-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:  1.096e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 3.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/569732/likelihoodResults_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.txt

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): 102
logL (Free Index) = 6409.39924511
delta logL = 1.84077248913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6409.1937027
delta logL = 2.04631489218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92910E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5361       1.0000          .0000       10.000    
     3 'Normalizat'    .93952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3882       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.

 FCN=   6409.194     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      339 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90747E-01    .59268        .25951E-02    .56249E-02
   2  Index         6.5480        2.1678        .87560E-01    .22818E-03
   3  Normalizat    .93951        .75280E-01    .84060E-01    .30055E-04
   4  Prefactor     1.3881        .58009E-01    .54669E-01   -.11848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0907472
  Index      = 6.54801
  Normalizat = 0.939515
  Prefactor  = 1.38813
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.194     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      370 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90747E-01    1.1209        .11617E-04   -1.5648    
   2  Index         6.5480        3.1261        .35713E-02    .31477    
   3  Normalizat    .93951        .25470        .37217E-03   -.95085    
   4  Prefactor     1.3881        .19150        .24170E-03   -.80723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.22208e-11
Minuit parameter uncertainties:
  1  0.637525
  2  3.4114
  3  0.255026
  4  0.191599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569732': 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): 102
logL (Free Index) = 6409.19369571
delta logL = 2.04632188217

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  9.075e-02  6.375e-01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  6.548e+00  3.411e+00  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:  1.388e+00  1.916e-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:  9.395e-01  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 6.55 +/- 3.41
Photon Flux (Free Index): 2.74e-07 +/- 1.42e-07
Energy Flux (Free Index): 3.33e-05 +/- 1.92e-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/569732/cmap_HighResolution_509932801_510192001_4FGL_J2253.2-1232_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-02', comment='SUCCESS', energy_flux2='3.33e-05', dlogl='2.05e+00', photon_flux2='2.74e-07', job_status='DONE', time_completed='2021-09-29 01:48:13.665826', photon_index_error2='3.41', photon_index2='6.55', ts='0.80', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='3.07e-07', energy_flux_error2='1.92e-05', EG='1.10', time_epoch_completed='1632905293.67', return_code='0', job_id='569732', GAL2='1.39', EG2='0.94', return_code2='102', photon_flux_error2='1.42e-07', ts2='5.50', photon_index='2.65' WHERE bin_id='1044' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:48:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 569732: <4FGL_J2253.2-1232_daily_bin1044> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1044> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:35:51 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:35:53 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:35:53 2021
Terminated at Wed Sep 29 01:48:14 2021
Results reported at Wed Sep 29 01:48:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1044 343.308 -12.5416 509932801 510192001 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 :                                   639.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

