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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1692
RA = 193.467, Dec = 62.7052
tmin = 677894401, tmax = 678153601
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='405414', job_status='RUN', time_executed='2022-06-29 04:29:42.783611', time_epoch_executed='1656502182.78' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405414/ft1_4FGL_J1253.8+6242_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405414/ft1_4FGL_J1253.8+6242_daily_bin1692.fits outfile=/scratch/kocevski/405414/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1692.fits ra=193.467 dec=62.7052 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.49
user 4.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.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/405414/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.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.32
sys 0.16

Number of photons that the gtmktime cut: 639

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405414/ltcube_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.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/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits
.....................!
real 13.47
user 12.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405414/ltcube_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.fits outfile=/scratch/kocevski/405414/expmap_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.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/405414/ltcube_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.fits
.....................!
real 192.57
user 186.20
sys 6.01

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits scfile=/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits outfile=/scratch/kocevski/405414/cmap_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.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.467 yref=62.7052 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.80
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits scfile=/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits outfile=/scratch/kocevski/405414/cmap_HighResolution_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.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.467 yref=62.7052 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405414/Model_4FGL_J1253.8+6242_daily_bin1692.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/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits.....................!
real 61.14
user 59.43
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits', '/scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits', expMap='/scratch/kocevski/405414/expmap_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.fits', expCube='/scratch/kocevski/405414/ltcube_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405414/Model_4FGL_J1253.8+6242_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405414/ft1_filtered_4FGL_J1253.8+6242_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/405414/ft2_4FGL_J1253.8+6242_daily_bin1692.fits
Exposure map: /scratch/kocevski/405414/expmap_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.fits
Exposure cube: /scratch/kocevski/405414/ltcube_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405414/Model_4FGL_J1253.8+6242_daily_bin1692.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) = 6978.25078618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.075       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65467       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2348       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.406       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3414       1.0000         .10000E-03   10000.    
    14 'norm      '    .82288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12539E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15297E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7661       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .88970       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    22.028       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3079       1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.907       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .88355E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96329       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6978.239     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4159 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.075        32.256       -.33848E-06   -.39150E-05
   2  Prefactor     .10000E-03    5.6890       -.12082E-06** at limit **
   3  Prefactor     .65601        7.1687       -.52184E-05   -.38249E-03
   4  norm          .10000E-03    4.0220       -.13921E-06** at limit **
   5  norm          5.1179        5.5794       -.87971E-07   -.62561E-04
   6  Prefactor     5.2349        6.7330       -.26332E-06   -.17566E-03
   7  Prefactor     .10000E-03    15.278        .43277E-05** at limit **
   8  norm          .10000E-03    1.4900       -.15898E-06** at limit **
   9  Prefactor     25.554        19.032       -.33996E-06   -.17174E-04
  10  Prefactor     65.446        72.036       -.21439E-05   -.27346E-04
  11  norm          .10000E-03    1.8189       -.35451E-06** at limit **
  12  Prefactor     .10000E-03    1.1631        .70110E-07** at limit **
  13  norm          1.3415        1.1861        .74136E-07    .34679E-04
  14  norm          .82224        1.9595       -.43035E-06   -.93372E-04
  15  Prefactor     .10131E-03    289.72       -.13619E-04** at limit **
  16  Prefactor     .10000E-03    12.812       -.32032E-06** at limit **
  17  Prefactor     .10000E-03    15.994       -.17386E-06** at limit **
  18  Prefactor     .10000E-03    81.250        .26070E-05** at limit **
  19  Prefactor     .10000E-03    6.5731       -.16943E-06** at limit **
  20  Prefactor     .10000E-03    39.312       -.12627E-05** at limit **
  21  Prefactor     3.7663        3.4751       -.42225E-07    .10381E-03
  22  Prefactor     .88311        6.4181       -.79207E-06    .12051E-02
  23  Prefactor     .10000E-03    20.425       -.18853E-06** at limit **
  24  Prefactor     .10000E-03    5.3410       -.20978E-06** at limit **
  25  Prefactor     .10000E-03    2.7231       -.19021E-06** at limit **
  26  norm          22.024        47.747       -.35917E-07    .76475E-06
  27  norm          1.3071        2.9557       -.45490E-06   -.26956E-04
  28  Prefactor     29.914        31.064       -.32112E-07    .18643E-04
  29  Prefactor     .10001E-03    373.48       -.79831E-05** at limit **
  30  Normalizat    .96332        .15193        .13684E-05    .32309E-03
  31  Prefactor     1.1275        .18299        .75996E-07    .91773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.0755
  Prefactor  = 0.0001
  Prefactor  = 0.656014
  norm       = 0.0001
  norm       = 5.11793
  Prefactor  = 5.23485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5537
  Prefactor  = 65.4456
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34151
  norm       = 0.82224
  Prefactor  = 0.000101306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76632
  Prefactor  = 0.883107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0237
  norm       = 1.3071
  Prefactor  = 29.9139
  Prefactor  = 0.000100006
  Normalizat = 0.96332
  Prefactor  = 1.12753
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.239     FROM HESSE     STATUS=OK           628 CALLS     4787 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.075        32.257        .54546E-04   -1.4236    
   2  Prefactor     .10000E-03    5.6913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .65601        7.5363        .30093E-02   -1.5546    
   4  norm          .10000E-03    4.0243        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1179        5.5495        .17771E-03   -1.5255    
   6  Prefactor     5.2349        6.7084        .17568E-03   -1.5250    
   7  Prefactor     .10000E-03    15.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5540        .19905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.554        19.053        .79241E-04   -1.4697    
  10  Prefactor     65.446        72.302        .49624E-04   -1.4088    
  11  norm          .10000E-03    1.8345        .11007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1637        .87961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3415        1.2012        .83255E-04   -1.5476    
  14  norm          .82224        1.9320        .17403E-03   -1.5527    
  15  Prefactor     .10131E-03    26.657        .13715       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    82.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7663        3.4632        .14177E-03   -1.5320    
  22  Prefactor     .88311        15.916        .25540E-02   -1.5520    
  23  Prefactor     .10000E-03    20.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.7387        .13466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          22.024        47.758        .85342E-04   -1.4769    
  27  norm          1.3071        2.9198        .20851E-03   -1.5479    
  28  Prefactor     29.914        31.054        .73263E-04   -1.4614    
  29  Prefactor     .10001E-03    374.45        .20842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96332        .18161        .22954E-03   -.94270    
  31  Prefactor     1.1275        .21755        .26120E-03   -.88592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03345e-08
Minuit parameter uncertainties:
  1  32.2673
  2  6.10326e-06
  3  4.44734
  4  3.53479e-06
  5  5.55003
  6  6.70935
  7  0.00012689
  8  7.48739e-06
  9  19.058
  10  72.3991
  11  9.61351e-06
  12  6.94515e-07
  13  1.20123
  14  1.93219
  15  0.0118069
  16  7.70581e-05
  17  2.06323e-05
  18  0.00024738
  19  6.9534e-06
  20  0.000123956
  21  3.46339
  22  7.50015
  23  6.87861e-06
  24  2.59765e-05
  25  7.07228e-06
  26  47.8407
  27  2.92016
  28  31.0707
  29  0.00313365
  30  0.181722
  31  0.21772
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.013e-04  1.181e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.128e+00  2.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.633e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405414/likelihoodResults_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.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) = 6978.23861671
delta logL = -1.26215873024e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6978.23861671
delta logL = -1.26196173369e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9867       1.0000          .0000       10.000    
     3 'Normalizat'    .96332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6978.185     FROM MIGRAD    STATUS=CONVERGED    199 CALLS      366 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3387        16.973        .36285E-03    .85786E-04
   2  Index         2.7610        1.9358        .10346E-02    .18086E-04
   3  Normalizat    .95663        .17774        .23026E-03   -.55743E-04
   4  Prefactor     1.1295        .21625        .26098E-03   -.32627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33874
  Index      = 2.76102
  Normalizat = 0.956633
  Prefactor  = 1.12946
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.185     FROM HESSE     STATUS=OK            23 CALLS      389 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3387        14.850        .14514E-04   -1.5402    
   2  Index         2.7610        1.8182        .41386E-04   -.46430    
   3  Normalizat    .95663        .17792        .92103E-05   -.94498    
   4  Prefactor     1.1295        .21645        .10439E-04   -.88530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06328e-11
Minuit parameter uncertainties:
  1  11.7907
  2  1.87252
  3  0.178034
  4  0.216615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405414': 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) = 6978.18455114
delta logL = 0.0540529425489

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.339e+00  1.179e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.761e+00  1.873e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.129e+00  2.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.566e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.467 62.705

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405414/cmap_HighResolution_677894401_678153601_4FGL_J1253.8+6242_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2022-06-29 04:48:58.346480', job_id='405414', GAL2='1.13', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1656503338.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.41e-02', ts2='0.11', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1692' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:48:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 405413: <4FGL_J1253.8+6242_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:47 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:29:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:29:21 2022
Terminated at Wed Jun 29 04:48:17 2022
Results reported at Wed Jun 29 04:48:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1692 193.467 62.7052 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   994.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             286.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1136 sec.
    Turnaround time :                            16890 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 405414: <4FGL_J1253.8+6242_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:47 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:29:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:29:22 2022
Terminated at Wed Jun 29 04:48:59 2022
Results reported at Wed Jun 29 04:48:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1692 193.467 62.7052 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1148.53 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1177 sec.
    Turnaround time :                            16932 sec.

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

