aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 165 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1731
RA = 343.308, Dec = -12.5416
tmin = 688003201, tmax = 688262401
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='551231', job_status='RUN', time_executed='2022-10-24 00:43:25.806384', time_epoch_executed='1666597405.81' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551231/ft1_4FGL_J2253.2-1232_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551231/ft1_4FGL_J2253.2-1232_daily_bin1731.fits outfile=/scratch/kocevski/551231/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1731.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=688003201.0 tmax=688262401.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.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.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/551231/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1731.fits evtable="EVENTS" outfile="/scratch/kocevski/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.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

Number of photons that the gtmktime cut: 423

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits" evtable="EVENTS" scfile=/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits sctable="SC_DATA" outfile=/scratch/kocevski/551231/ltcube_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.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/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits
.....................!
real 12.19
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/551231/ltcube_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.fits outfile=/scratch/kocevski/551231/expmap_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.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/551231/ltcube_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.fits
.....................!
real 191.62
user 185.21
sys 5.38

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/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits scfile=/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits outfile=/scratch/kocevski/551231/cmap_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.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 1.35
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits scfile=/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits outfile=/scratch/kocevski/551231/cmap_HighResolution_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.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 1.58
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551231/Model_4FGL_J2253.2-1232_daily_bin1731.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/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits.....................!
real 48.28
user 45.41
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits', '/scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits', expMap='/scratch/kocevski/551231/expmap_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.fits', expCube='/scratch/kocevski/551231/ltcube_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551231/Model_4FGL_J2253.2-1232_daily_bin1731.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  0.000e+00  1.000e+06 ( 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/551231/ft1_filtered_4FGL_J2253.2-1232_daily_bin1731.fits
Spacecraft file(s): /scratch/kocevski/551231/ft2_4FGL_J2253.2-1232_daily_bin1731.fits
Exposure map: /scratch/kocevski/551231/expmap_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.fits
Exposure cube: /scratch/kocevski/551231/ltcube_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551231/Model_4FGL_J2253.2-1232_daily_bin1731.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) = 4818.69203447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95315E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .46041E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .40034E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .38290       1.0000          .0000       .10000E+07
     5 'Prefactor '    .90044E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    14.484       1.0000          .0000       .10000E+07
     7 'norm      '    3.7664       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27451E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .42509       1.0000          .0000       .10000E+07
    10 'Prefactor '    58.782       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.4402       1.0000          .0000       .10000E+07
    12 'norm      '    .60364E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    64.655       1.0000          .0000       .10000E+07
    14 'Prefactor '    .23826E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .15802E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.7130       1.0000          .0000       .10000E+07
    17 'norm      '    4.0668       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11630E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .86677       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4818.599     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     1636 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-09    52.554       -.38568E-05** at limit **
   2  Prefactor      .0000        2.5303        .60191E-06** at limit **
   3  Prefactor     .10867E-04    28.374       -.78834E-06** at limit **
   4  norm          .41302        11.703        .26140E-05   -.54009E-03
   5  Prefactor     .31520E-05    54.848       -.84459E-06** at limit **
   6  Prefactor     14.475        19.126       -.50036E-06    .38424E-03
   7  norm          3.7738        1.3665       -.67761E-07   -.25336E-02
   8  Prefactor     .30870E-05    70.608        .14473E-05** at limit **
   9  norm          .35514        3.3787        .68452E-07   -.56672E-02
  10  Prefactor     61.300        56.852       -.16899E-05    .12856E-01
  11  Prefactor     7.4272        7.7583       -.76998E-08   -.15734E-03
  12  norm           .0000        20.880        .20918E-05** at limit **
  13  Prefactor     74.244        88.526       -.12552E-05   -.17286E-02
  14  Prefactor      .0000        24.115       -.22508E-05** at limit **
  15  Prefactor     .16653E-09    18.651        .19534E-05** at limit **
  16  norm          1.7152        1.4929       -.23132E-07   -.13526E-03
  17  norm          3.6731        8.4833        .18113E-06    .35892E-04
  18  Prefactor      .0000        8.4249       -.23998E-07** at limit **
  19  Normalizat    .85604        .27927        .12853E-04   -.74925E-04
  20  Prefactor     1.0397        .20218       -.83404E-05   -.10689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-10
  Prefactor  = 0
  Prefactor  = 1.08666e-05
  norm       = 0.413022
  Prefactor  = 3.15203e-06
  Prefactor  = 14.4754
  norm       = 3.77376
  Prefactor  = 3.08698e-06
  norm       = 0.355136
  Prefactor  = 61.2997
  Prefactor  = 7.42721
  norm       = 0
  Prefactor  = 74.2436
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 1.71525
  norm       = 3.67309
  Prefactor  = 0
  Normalizat = 0.856036
  Prefactor  = 1.03965
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.599     FROM HESSE     STATUS=OK           347 CALLS     1983 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    14.956        .85257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.5341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10867E-04    72.606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .41302        2.6800        .63423E-02   -1.5695    
   5  Prefactor     .31520E-05    67.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.475        19.025        .26292E-03   -1.5632    
   7  norm          3.7738        1.3873        .51996E-03   -1.5669    
   8  Prefactor     .30870E-05    83.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .35514        4.9061        .25286E-02   -1.5696    
  10  Prefactor     61.300        83.369        .13044E-03   -1.5551    
  11  Prefactor     7.4272        7.7618        .36745E-03   -1.5653    
  12  norm           .0000        20.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     74.244        88.017        .12437E-03   -1.5536    
  14  Prefactor      .0000        24.082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16653E-09    18.511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7152        1.5029        .80272E-03   -1.5682    
  17  norm          3.6731        8.6021        .49973E-03   -1.5670    
  18  Prefactor      .0000        8.4697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85604        .23556        .67034E-01   -.98023    
  20  Prefactor     1.0397        .16987        .40871E-01   -.91419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48565e-07
Minuit parameter uncertainties:
  1  0.000171083
  2  2.52843e-06
  3  0.0561783
  4  2.10418
  5  0.0291686
  6  19.0254
  7  1.38725
  8  0.0320364
  9  2.63994
  10  83.3708
  11  7.76176
  12  1.90878e-05
  13  88.0187
  14  1.95049e-05
  15  0.000105378
  16  1.50293
  17  8.6021
  18  2.96106e-05
  19  0.23584
  20  0.16996
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  6.130e+01  8.337e+01  0.000e+00  1.000e+06 ( 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.040e+00  1.700e-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.560e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.98
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 1.65e-07
Energy Flux (Fixed Index): 3.06e-05 +/- 4.16e-05

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

Saving results to:
/scratch/kocevski/551231/likelihoodResults_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.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): 0
logL (Free Index) = 4818.54949964
delta logL = 0.0494883173151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4818.54466052
delta logL = 0.0543274308093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.044       1.0000          .0000       .10000E+07
     2 'Index     '    2.8565       1.0000          .0000       10.000    
     3 'Normalizat'    .83666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0506       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=   4818.545     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      280 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.034        55.500        .57122E-05    .14043E-02
   2  Index         2.8564        .75257        .46930E-02    .79910E-04
   3  Normalizat    .83659        .26358        .29959E-03   -.51704E-03
   4  Prefactor     1.0507        .19845        .20730E-03   -.10258E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.0337
  Index      = 2.85645
  Normalizat = 0.836587
  Prefactor  = 1.05075
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.545     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.034        49.641        .11424E-05   -1.5568    
   2  Index         2.8564        .67275        .18772E-03   -.44307    
   3  Normalizat    .83659        .26267        .59917E-04   -.98726    
   4  Prefactor     1.0507        .19780        .41460E-04   -.91056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21361e-09
Minuit parameter uncertainties:
  1  49.6416
  2  0.675265
  3  0.263069
  4  0.197933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551231': 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) = 4818.54465955
delta logL = 0.0543284072901

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  4.903e+01  4.964e+01  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.856e+00  6.753e-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:  1.051e+00  1.979e-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.366e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 2.86 +/- 0.68
Photon Flux (Free Index): 1.36e-07 +/- 8.93e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.77e-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/551231/cmap_HighResolution_688003201_688262401_4FGL_J2253.2-1232_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-02', comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.95e-05', photon_flux_error='1.65e-07', dlogl='5.43e-02', energy_flux='3.06e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2022-10-24 00:51:25.898406', photon_index_error2='0.68', photon_index2='2.86', ts='3.98', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.63e-07', energy_flux_error2='1.77e-05', EG='0.86', time_epoch_completed='1666597885.9', return_code='0', job_id='551231', GAL2='1.05', EG2='0.84', return_code2='0', energy_flux_error='4.16e-05', photon_flux_error2='8.93e-08', ts2='4.16', photon_index='2.65' WHERE bin_id='1731' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 00:51:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 551231: <4FGL_J2253.2-1232_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1731> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Oct 24 00:40:27 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:40:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:40:28 2022
Terminated at Mon Oct 24 00:51:26 2022
Results reported at Mon Oct 24 00:51:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1731 343.308 -12.5416 688003201 688262401 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 :                                   477.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            659 sec.

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

