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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1774
RA = 193.307, Dec = 53.0173
tmin = 699148801, tmax = 699408001
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='682623', job_status='RUN', time_executed='2023-03-02 00:48:15.387193', time_epoch_executed='1677746895.39' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682623/ft1_4FGL_J1253.2+5301_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682623/ft1_4FGL_J1253.2+5301_daily_bin1774.fits outfile=/scratch/kocevski/682623/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1774.fits ra=193.307 dec=53.0173 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.81
user 2.60
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.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/682623/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.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.34
sys 0.14

Number of photons that the gtmktime cut: 376

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/682623/ltcube_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.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/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits
.....................!
real 13.30
user 12.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/682623/ltcube_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.fits outfile=/scratch/kocevski/682623/expmap_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.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/682623/ltcube_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.fits
.....................!
real 190.45
user 185.57
sys 4.47

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

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits scfile=/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits outfile=/scratch/kocevski/682623/cmap_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.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=193.307 yref=53.0173 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits scfile=/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits outfile=/scratch/kocevski/682623/cmap_HighResolution_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.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=193.307 yref=53.0173 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/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682623/Model_4FGL_J1253.2+5301_daily_bin1774.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/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits.....................!
real 41.06
user 39.80
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits', '/scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits', expMap='/scratch/kocevski/682623/expmap_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.fits', expCube='/scratch/kocevski/682623/ltcube_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682623/Model_4FGL_J1253.2+5301_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682623/ft1_filtered_4FGL_J1253.2+5301_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/682623/ft2_4FGL_J1253.2+5301_daily_bin1774.fits
Exposure map: /scratch/kocevski/682623/expmap_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.fits
Exposure cube: /scratch/kocevski/682623/ltcube_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682623/Model_4FGL_J1253.2+5301_daily_bin1774.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) = 4258.02863037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12565E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .27537E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42299E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .31998E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    9.0152       1.0000          .0000       .10000E+07
     6 'norm      '    12.597       1.0000          .0000       .10000E+07
     7 'norm      '    .15703E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .54511E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.4533       1.0000          .0000       .10000E+07
    10 'norm      '    1.4305       1.0000          .0000       .10000E+07
    11 'Prefactor '    27.900       1.0000          .0000       .10000E+07
    12 'norm      '    1.7045       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.830       1.0000          .0000       .10000E+07
    14 'Prefactor '    .42624E-03   1.0000          .0000       .10000E+07
    15 'norm      '    38.312       1.0000          .0000       .10000E+07
    16 'norm      '    4.6453       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57875E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.4589       1.0000          .0000       .10000E+07
    19 'norm      '    6.5277       1.0000          .0000       .10000E+07
    20 'Prefactor '    15.244       1.0000          .0000       .10000E+07
    21 'norm      '    .86617       1.0000          .0000       .10000E+07
    22 'norm      '    2.5522       1.0000          .0000       .10000E+07
    23 'Prefactor '    .71297       1.0000          .0000       .10000E+07
    24 'Normalizat'    .91608       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4258.020     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     2106 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74990E-06    32.152        .10398E-06** at limit **
   2  norm           .0000        3.9976        .31190E-07** at limit **
   3  Prefactor     .57432E-05    26.514        .19285E-06** at limit **
   4  Prefactor     .55511E-09    5.6854        .81614E-07** at limit **
   5  Prefactor     9.0592        20.411       -.47185E-07    .18527E-01
   6  norm          12.643        5.6400       -.20795E-07    .66404E-03
   7  norm           .0000        15.075        .11640E-07** at limit **
   8  Prefactor     .17708E-06    23.590        .12593E-06** at limit **
   9  Prefactor     4.4261        6.2039       -.41645E-07   -.61682E-03
  10  norm          1.4352        1.8164       -.87046E-08   -.11166E-02
  11  Prefactor     28.216        2.1978       -.22031E-08   -.16428E-01
  12  norm          1.7069        2.0128        .16814E-07    .26044E-02
  13  Prefactor     21.065        21.681        .25589E-07   -.97869E-02
  14  Prefactor     .27756E-09    4.1469        .14057E-06** at limit **
  15  norm          38.250        2.7273        .23780E-08    .82729E-02
  16  norm          4.6215        5.0289       -.27619E-07   -.83952E-03
  17  Prefactor     .24203E-06    29.041        .19359E-06** at limit **
  18  Prefactor     4.8289        12.981       -.40994E-07    .50218E-01
  19  norm          6.5504        5.7251        .31873E-07    .20295E-02
  20  Prefactor     16.122        11.571        .73637E-08    .44253E-01
  21  norm          .86211        1.3672       -.33354E-07   -.37168E-02
  22  norm          2.5556        2.7293        .17035E-07    .25897E-02
  23  Prefactor     .28447E-04    202.78       -.14610E-06** at limit **
  24  Normalizat    .91289        .24973        .13926E-05    .28110E-03
  25  Prefactor     1.1119        .29597        .51899E-06    .24124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.499e-07
  norm       = 0
  Prefactor  = 5.74318e-06
  Prefactor  = 5.55112e-10
  Prefactor  = 9.05917
  norm       = 12.6429
  norm       = 0
  Prefactor  = 1.77081e-07
  Prefactor  = 4.42607
  norm       = 1.43517
  Prefactor  = 28.2158
  norm       = 1.70692
  Prefactor  = 21.065
  Prefactor  = 2.77556e-10
  norm       = 38.2498
  norm       = 4.62153
  Prefactor  = 2.42029e-07
  Prefactor  = 4.82887
  norm       = 6.55035
  Prefactor  = 16.1225
  norm       = 0.862108
  norm       = 2.55555
  Prefactor  = 2.84472e-05
  Normalizat = 0.912891
  Prefactor  = 1.11191
 **********
 **   18 **HESSE 
 **********

 FCN=   4258.020     FROM HESSE     STATUS=OK           487 CALLS     2593 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74990E-06    32.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.9947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57432E-05    57.266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-09    5.6813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0592        20.578        .33357E-03   -1.5648    
   6  norm          12.643        5.6481        .28198E-03   -1.5637    
   7  norm           .0000        8.9054        .72824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17708E-06    23.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4261        6.2430        .47693E-03   -1.5666    
  10  norm          1.4352        1.8396        .90287E-03   -1.5684    
  11  Prefactor     28.216        31.000        .18935E-03   -1.5602    
  12  norm          1.7069        2.0285        .80519E-03   -1.5682    
  13  Prefactor     21.065        54.370        .22463E-03   -1.5616    
  14  Prefactor     .27756E-09    4.1433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          38.250        26.633        .16158E-03   -1.5584    
  16  norm          4.6215        5.0747        .46672E-03   -1.5665    
  17  Prefactor     .24203E-06    56.429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8289        91.637        .54353E-03   -1.5664    
  19  norm          6.5504        5.7723        .39256E-03   -1.5657    
  20  Prefactor     16.122        46.946        .25626E-03   -1.5628    
  21  norm          .86211        1.3933        .48128E-03   -1.5689    
  22  norm          2.5556        2.7397        .63886E-03   -1.5676    
  23  Prefactor     .28447E-04    264.99        .59661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91289        .21612        .45107E-01   -.96009    
  25  Prefactor     1.1119        .24923        .62470E-01   -.89087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5072e-06
Minuit parameter uncertainties:
  1  0.00987847
  2  8.51069e-06
  3  0.036271
  4  0.000112693
  5  20.5779
  6  5.6481
  7  9.00569e-06
  8  0.00410827
  9  6.24299
  10  1.83956
  11  31
  12  2.02853
  13  54.3716
  14  6.92695e-05
  15  26.6326
  16  5.07467
  17  0.00739161
  18  42.0723
  19  5.77235
  20  46.9469
  21  1.39329
  22  2.73969
  23  0.173654
  24  0.216323
  25  0.249493
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.707e+00  2.029e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.112e+00  2.495e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.129e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.42e-05

TS (Fixed Index): 1.48
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682623/likelihoodResults_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.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) = 4257.70568993
delta logL = 0.314680422143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4257.70398862
delta logL = 0.316381731692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3390       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6343       1.0000          .0000       5.0000    
     3 'Normalizat'    .89209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4257.704     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3387        36.005        .94716E-03    .21012E-02
   2  alpha         2.6344        3.5198        .28104        .36161E-04
   3  Normalizat    .89203        .73598E-01    .44800E-01    .87686E-05
   4  Prefactor     1.1224        .79307E-01    .62172E-01    .46769E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33875
  alpha      = 2.63437
  Normalizat = 0.892035
  Prefactor  = 1.1224
 **********
 **   18 **HESSE 
 **********

 FCN=   4257.704     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3387        1.8102        .71064E-05   -1.5685    
   2  alpha         2.6344        .88821        .13751E-01    .53775E-01
   3  Normalizat    .89203        .24192        .24935E-03   -.96741    
   4  Prefactor     1.1224        .29382        .27498E-03   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77337e-09
Minuit parameter uncertainties:
  1  1.81024
  2  0.90811
  3  0.242214
  4  0.29425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682623': 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) = 4257.70398836
delta logL = 0.31638199058

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.339e+00  1.810e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  2.634e+00  9.081e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.122e+00  2.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.920e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.63 +/- 0.91
Photon Flux (Free Index): 3.91e-08 +/- 4.60e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.07e-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/682623/cmap_HighResolution_699148801_699408001_4FGL_J1253.2+5301_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-05', comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='1.09e-05', photon_flux_error='1.97e-08', dlogl='3.16e-01', energy_flux='1.20e-05', photon_flux2='3.91e-08', job_status='DONE', time_completed='2023-03-02 00:57:33.482236', photon_index_error2='0.91', photon_index2='2.63', ts='1.48', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.40e-08', energy_flux_error2='1.07e-05', EG='0.91', time_epoch_completed='1677747453.48', return_code='0', job_id='682623', GAL2='1.12', EG2='0.89', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.60e-08', ts2='2.11', photon_index='1.93' WHERE bin_id='1774' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:57:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 682623: <4FGL_J1253.2+5301_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:45:14 2023
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:45:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:45:16 2023
Terminated at Thu Mar  2 00:57:34 2023
Results reported at Thu Mar  2 00:57:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1774 193.307 53.0173 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   560.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             221.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            740 sec.

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

