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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1773
RA = 193.307, Dec = 53.0173
tmin = 698889601, tmax = 699148801
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='790541', job_status='RUN', time_executed='2023-02-27 09:50:25.733658', time_epoch_executed='1677520225.73' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790541/ft1_4FGL_J1253.2+5301_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790541/ft1_4FGL_J1253.2+5301_daily_bin1773.fits outfile=/scratch/kocevski/790541/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1773.fits ra=193.307 dec=53.0173 rad=12.0 tmin=698889601.0 tmax=699148801.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.65
user 2.76
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.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/790541/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.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 1.84
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 423

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790541/ltcube_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.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/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits
.....................!
real 15.91
user 15.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790541/ltcube_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.fits outfile=/scratch/kocevski/790541/expmap_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.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/790541/ltcube_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.fits
.....................!
real 193.06
user 186.77
sys 4.17

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/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits scfile=/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits outfile=/scratch/kocevski/790541/cmap_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits scfile=/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits outfile=/scratch/kocevski/790541/cmap_HighResolution_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790541/Model_4FGL_J1253.2+5301_daily_bin1773.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/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits.....................!
real 44.13
user 42.73
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits', '/scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits', expMap='/scratch/kocevski/790541/expmap_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.fits', expCube='/scratch/kocevski/790541/ltcube_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790541/Model_4FGL_J1253.2+5301_daily_bin1773.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/790541/ft1_filtered_4FGL_J1253.2+5301_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/790541/ft2_4FGL_J1253.2+5301_daily_bin1773.fits
Exposure map: /scratch/kocevski/790541/expmap_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.fits
Exposure cube: /scratch/kocevski/790541/ltcube_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790541/Model_4FGL_J1253.2+5301_daily_bin1773.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) = 4730.03722883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3245       1.0000          .0000       .10000E+07
     2 'norm      '    .80447E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .71646E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .77418E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .26102E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .65725E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .23697E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10145E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .97032E-05   1.0000          .0000       .10000E+07
    10 'norm      '    1.7394       1.0000          .0000       .10000E+07
    11 'Prefactor '    75.356       1.0000          .0000       .10000E+07
    12 'norm      '    1.2874       1.0000          .0000       .10000E+07
    13 'Prefactor '    .47884E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .97482E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .18139E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .16355E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18078E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .18346E-02   1.0000          .0000       .10000E+07
    19 'norm      '    5.6055       1.0000          .0000       .10000E+07
    20 'Prefactor '    53.263       1.0000          .0000       .10000E+07
    21 'norm      '    3.8422       1.0000          .0000       .10000E+07
    22 'norm      '    .26833E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    96.269       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2628       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86098       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=   4729.996     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2126 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3287        7.3931        .22746E-06    .24640E-02
   2  norm          .73180E-06    22.368       -.10007E-05** at limit **
   3  Prefactor     .14061E-06    35.753       -.54918E-06** at limit **
   4  Prefactor     .11657E-08    6.0220       -.68386E-07** at limit **
   5  Prefactor     .25646E-07    5.6932        .48952E-07** at limit **
   6  norm           .0000        1.2065       -.52010E-07** at limit **
   7  norm          .57476E-06    6.4974        .32209E-09** at limit **
   8  Prefactor     .52736E-07    17.447        .22969E-06** at limit **
   9  Prefactor      .0000        2.0470        .92869E-07** at limit **
  10  norm          1.7426        1.7533        .48643E-07    .20194E-02
  11  Prefactor     75.831        8.4611       -.63103E-07    .15849    
  12  norm          1.2906        1.7507        .31727E-07    .96930E-03
  13  Prefactor     .15171E-06    7.3791        .14709E-06** at limit **
  14  Prefactor     .25496E-06    6.8412        .40736E-06** at limit **
  15  norm          .10404E-05    4.2304       -.35669E-08** at limit **
  16  norm           .0000        2.6232       -.30215E-07** at limit **
  17  Prefactor     .69389E-08    81.911       -.14576E-07** at limit **
  18  Prefactor     .49294E-07    10.215       -.29429E-07** at limit **
  19  norm          5.6004        4.9647        .94278E-07    .15186E-02
  20  Prefactor     56.017        38.053        .11353E-06    .16352    
  21  norm          3.8437        2.0614        .32791E-07    .23391E-02
  22  norm          .16653E-09    5.5514        .21651E-06** at limit **
  23  Prefactor     100.42        58.878        .27414E-06   -.15367    
  24  Normalizat    1.2592        .24259       -.12994E-05    .12121E-03
  25  Prefactor     .86231        .28246        .32358E-05    .97114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.3287
  norm       = 7.31804e-07
  Prefactor  = 1.4061e-07
  Prefactor  = 1.16573e-09
  Prefactor  = 2.56462e-08
  norm       = 0
  norm       = 5.74762e-07
  Prefactor  = 5.27356e-08
  Prefactor  = 0
  norm       = 1.74261
  Prefactor  = 75.831
  norm       = 1.29062
  Prefactor  = 1.51712e-07
  Prefactor  = 2.54963e-07
  norm       = 1.04039e-06
  norm       = 0
  Prefactor  = 6.93889e-09
  Prefactor  = 4.92939e-08
  norm       = 5.60035
  Prefactor  = 56.0167
  norm       = 3.84366
  norm       = 1.66533e-10
  Prefactor  = 100.42
  Normalizat = 1.25918
  Prefactor  = 0.86231
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.996     FROM HESSE     STATUS=OK           467 CALLS     2593 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3287        7.3915        .34723E-03   -1.5650    
   2  norm          .73180E-06    24.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .14061E-06    35.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11657E-08    6.0371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .25646E-07    13.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.2057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .57476E-06    8.6219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .52736E-07    18.365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        2.0464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7426        1.7687        .79522E-03   -1.5682    
  11  Prefactor     75.831        37.226        .11520E-03   -1.5534    
  12  norm          1.2906        1.7812        .97635E-03   -1.5685    
  13  Prefactor     .15171E-06    13.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .25496E-06    7.5143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10404E-05    7.9069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.6226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .69389E-08    79.719        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49294E-07    11.162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.6004        4.9742        .42407E-03   -1.5661    
  20  Prefactor     56.017        67.882        .13703E-03   -1.5558    
  21  norm          3.8437        2.0622        .51462E-03   -1.5669    
  22  norm          .16653E-09    5.4505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     100.42        71.728        .10193E-03   -1.5508    
  24  Normalizat    1.2592        .20313        .50686E-01   -.84793    
  25  Prefactor     .86231        .23491        .71479E-01   -.97471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3288e-06
Minuit parameter uncertainties:
  1  7.39154
  2  0.0084032
  3  0.0044904
  4  0.000168319
  5  0.00115521
  6  4.67003e-06
  7  0.00445225
  8  0.00196856
  9  7.44022e-06
  10  1.76866
  11  37.2259
  12  1.78122
  13  0.00284079
  14  0.00276845
  15  0.00573632
  16  4.92155e-06
  17  0.00148905
  18  0.00148334
  19  4.97423
  20  67.8833
  21  2.06217
  22  5.51502e-05
  23  71.7285
  24  0.20326
  25  0.235188
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.291e+00  1.781e+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:  8.623e-01  2.352e-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:  1.259e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 9.06e-06 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/790541/likelihoodResults_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.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) = 4729.98614569
delta logL = 0.00976136566715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4729.98596482
delta logL = 0.00994224096394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2878       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1070       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86378       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=   4729.986     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2862        65.772        .97609E-03    .19625E-02
   2  alpha         2.1051        3.5472        .41813        .62855E-05
   3  Normalizat    1.2560        .81596E-01    .50737E-01   -.14809E-04
   4  Prefactor     .86378        .77913E-01    .71419E-01    .12455E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28618
  alpha      = 2.10511
  Normalizat = 1.25602
  Prefactor  = 0.86378
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.986     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2862        1.7375        .10153E-04   -1.5685    
   2  alpha         2.1051        1.1921        .23276E-01   -.15862    
   3  Normalizat    1.2560        .23614        .22431E-03   -.84889    
   4  Prefactor     .86378        .28099        .31601E-03   -.97418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03958e-12
Minuit parameter uncertainties:
  1  1.73749
  2  1.24413
  3  0.23634
  4  0.28146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790541': 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) = 4729.9859629
delta logL = 0.00994415977948

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.286e+00  1.737e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  2.105e+00  1.244e+00  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:  8.638e-01  2.815e-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:  1.256e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 193.307 53.017
Photon Index (Free Index): 2.11 +/- 1.24
Photon Flux (Free Index): 1.59e-08 +/- 3.19e-08
Energy Flux (Free Index): 8.38e-06 +/- 1.19e-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/790541/cmap_HighResolution_698889601_699148801_4FGL_J1253.2+5301_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='8.38e-06', photon_flux_error='1.73e-08', dlogl='9.94e-03', energy_flux='9.06e-06', photon_flux2='1.59e-08', job_status='DONE', time_completed='2023-02-27 10:00:24.149289', photon_index_error2='1.24', photon_index2='2.11', ts='1.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.47e-08', energy_flux_error2='1.19e-05', EG='1.26', time_epoch_completed='1677520824.15', return_code='0', job_id='790541', GAL2='0.86', EG2='1.26', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.19e-08', ts2='1.02', photon_index='1.93' WHERE bin_id='1773' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:00:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 790541: <4FGL_J1253.2+5301_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:18 2023
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:19 2023
Terminated at Mon Feb 27 10:00:25 2023
Results reported at Mon Feb 27 10:00:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1773 193.307 53.0173 698889601 699148801 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 :                                   594.34 sec.
    Max Memory :                                 1057 MB
    Average Memory :                             236.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

