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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1709
RA = 195.418, Dec = 33.6097
tmin = 682300801, tmax = 682560001
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='126498', job_status='RUN', time_executed='2022-09-16 17:11:16.117897', time_epoch_executed='1663373476.12' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126498/ft1_4FGL_J1301.6+3336_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126498/ft1_4FGL_J1301.6+3336_daily_bin1709.fits outfile=/scratch/kocevski/126498/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1709.fits ra=195.418 dec=33.6097 rad=12.0 tmin=682300801.0 tmax=682560001.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.79
user 3.53
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.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/126498/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 535

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/126498/ltcube_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.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/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits
.....................!
real 15.35
user 14.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/126498/ltcube_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.fits outfile=/scratch/kocevski/126498/expmap_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.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/126498/ltcube_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.fits
.....................!
real 192.75
user 186.22
sys 5.58

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

Setting source of interest to:
4FGL J1301.6+3336 @ 195.418 33.6097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits scfile=/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits outfile=/scratch/kocevski/126498/cmap_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.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=195.418 yref=33.6097 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.57
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits scfile=/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits outfile=/scratch/kocevski/126498/cmap_HighResolution_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.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=195.418 yref=33.6097 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126498/Model_4FGL_J1301.6+3336_daily_bin1709.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/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits.....................!
real 50.61
user 49.08
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits', '/scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits', expMap='/scratch/kocevski/126498/expmap_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.fits', expCube='/scratch/kocevski/126498/ltcube_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/126498/Model_4FGL_J1301.6+3336_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1301.6+3336'

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/126498/ft1_filtered_4FGL_J1301.6+3336_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/126498/ft2_4FGL_J1301.6+3336_daily_bin1709.fits
Exposure map: /scratch/kocevski/126498/expmap_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.fits
Exposure cube: /scratch/kocevski/126498/ltcube_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/126498/Model_4FGL_J1301.6+3336_daily_bin1709.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) = 6138.78090834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.885       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25125E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7218       1.0000          .0000       .10000E+07
     4 'Prefactor '    .36225E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .70256       1.0000          .0000       .10000E+07
     6 'Prefactor '    .66488E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33201E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .39968E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.3218       1.0000          .0000       .10000E+07
    10 'norm      '    9.1649       1.0000          .0000       .10000E+07
    11 'Prefactor '    23.368       1.0000          .0000       .10000E+07
    12 'norm      '    .64201       1.0000          .0000       .10000E+07
    13 'Prefactor '    .70219E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .26821E-05   1.0000          .0000       .10000E+07
    15 'norm      '    21.278       1.0000          .0000       .10000E+07
    16 'norm      '    30.496       1.0000          .0000       .10000E+07
    17 'norm      '    .49622E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .38950E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .41117E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    13.013       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23292E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .49996E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    26.547       1.0000          .0000       .10000E+07
    24 'Prefactor '    14.828       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0713       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6138.687     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     2185 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.871        4.0401       -.52812E-08    .17682E-02
   2  Prefactor     .14433E-07    2.0595        .38192E-08** at limit **
   3  Prefactor     1.7239        1.8252       -.10553E-07   -.93266E-03
   4  Prefactor     .11657E-08    2.2187       -.21663E-07** at limit **
   5  norm          .72442        .64824       -.15912E-08    .13777E-01
   6  Prefactor     .87708E-08    3.6298        .13408E-06** at limit **
   7  Prefactor     .65947E-07    5.4436        .15838E-06** at limit **
   8  Prefactor     .22538E-07    2.0401       -.65429E-08** at limit **
   9  Prefactor     1.2848        4.6538       -.25714E-06   -.30260E-02
  10  norm          9.1149        5.2364        .24487E-07   -.16395E-01
  11  Prefactor     24.201        5.9551        .35118E-07   -.52303E-01
  12  norm          .64110        .60127        .88799E-08   -.79342E-02
  13  Prefactor     .13878E-08    4.7000       -.66637E-07** at limit **
  14  norm          .10547E-08    1.8544       -.90166E-08** at limit **
  15  norm          21.270        1.2655        .14615E-10   -.48529E-02
  16  norm          30.441        4.1250       -.11056E-07    .15563    
  17  norm          .14894E-06    5.0143        .13956E-06** at limit **
  18  norm          .27756E-09    14.347        .35297E-07** at limit **
  19  Prefactor      .0000        3.2680       -.24678E-07** at limit **
  20  Prefactor     13.245        2.7973        .20270E-07    .30066E-01
  21  Prefactor     .61562E-07    23.355       -.29857E-06** at limit **
  22  Prefactor     .24314E-07    4.2749        .13946E-06** at limit **
  23  Prefactor     26.446        1.1005       -.86754E-09   -.10765E-01
  24  Prefactor     14.817        5.8253       -.10970E-08    .14264E-02
  25  Normalizat    1.0707        .21403       -.59589E-06    .20369E-03
  26  Prefactor     .87982        .25296        .26471E-05    .20350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.871
  Prefactor  = 1.44329e-08
  Prefactor  = 1.72391
  Prefactor  = 1.16573e-09
  norm       = 0.724421
  Prefactor  = 8.77076e-09
  Prefactor  = 6.59472e-08
  Prefactor  = 2.25375e-08
  Prefactor  = 1.28479
  norm       = 9.11486
  Prefactor  = 24.201
  norm       = 0.641101
  Prefactor  = 1.38778e-09
  norm       = 1.05471e-09
  norm       = 21.2696
  norm       = 30.4407
  norm       = 1.48936e-07
  norm       = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 13.2454
  Prefactor  = 6.15619e-08
  Prefactor  = 2.43139e-08
  Prefactor  = 26.4458
  Prefactor  = 14.8174
  Normalizat = 1.0707
  Prefactor  = 0.879825
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.687     FROM HESSE     STATUS=OK           510 CALLS     2695 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.871        4.0593        .30343E-03   -1.5642    
   2  Prefactor     .14433E-07    2.3189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7239        1.8231        .80021E-03   -1.5682    
   4  Prefactor     .11657E-08    2.1970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72442        8.0805        .60501E-03   -1.5691    
   6  Prefactor     .87708E-08    7.9671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65947E-07    10.176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22538E-07    2.4380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2848        4.7210        .95648E-03   -1.5685    
  10  norm          9.1149        5.5129        .33082E-03   -1.5648    
  11  Prefactor     24.201        25.371        .20692E-03   -1.5610    
  12  norm          .64110        5.2638        .65546E-03   -1.5692    
  13  Prefactor     .13878E-08    4.7199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10547E-08    1.8672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.270        18.336        .21685E-03   -1.5616    
  16  norm          30.441        7.7392        .18111E-03   -1.5598    
  17  norm          .14894E-06    10.729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .27756E-09    14.670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        3.2634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.245        22.142        .27742E-03   -1.5635    
  21  Prefactor     .61562E-07    24.838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .24314E-07    7.7673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.446        22.767        .19412E-03   -1.5605    
  24  Prefactor     14.817        5.8508        .25984E-03   -1.5631    
  25  Normalizat    1.0707        .18147        .56357E-01   -.90698    
  26  Prefactor     .87982        .21621        .72775E-01   -.96850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23047e-06
Minuit parameter uncertainties:
  1  4.05934
  2  0.000366038
  3  1.82314
  4  0.000101574
  5  4.83888
  6  0.00052839
  7  0.00163846
  8  0.000468873
  9  4.72104
  10  5.51286
  11  25.3715
  12  3.67403
  13  0.000162952
  14  8.85046e-05
  15  18.3364
  16  7.73924
  17  0.00252806
  18  0.000127279
  19  1.38953e-05
  20  22.1417
  21  0.00247282
  22  0.000869375
  23  22.7673
  24  5.85082
  25  0.181577
  26  0.216419
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.420e+01  2.537e+01  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.798e-01  2.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.071e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.15
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 9.90e-06 +/- 1.04e-05

TS (Fixed Index): 2.15
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126498/likelihoodResults_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.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) = 6138.29858543
delta logL = 0.388108642924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6138.2726462
delta logL = 0.414047866641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.637       1.0000          .0000       .10000E+07
     2 'Index     '    1.8737       1.0000          .0000       10.000    
     3 'Normalizat'    1.0907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6138.273     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      223 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.681        48.571        .18069E-03   -.27495E-04
   2  Index         1.8764        .87691        .26570       -.19833E-04
   3  Normalizat    1.0904        .17978        .55941E-01    .19614E-04
   4  Prefactor     .86384        .21205        .73368E-01    .23702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6813
  Index      = 1.87641
  Normalizat = 1.09035
  Prefactor  = 0.863839
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.273     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.681        31.589        .72277E-05   -1.5597    
   2  Index         1.8764        .71120        .10848E-01   -.67477    
   3  Normalizat    1.0904        .21245        .24736E-03   -.90062    
   4  Prefactor     .86384        .25163        .32467E-03   -.97416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6074e-10
Minuit parameter uncertainties:
  1  31.5893
  2  0.715193
  3  0.212619
  4  0.251964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126498': 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) = 6138.27263824
delta logL = 0.414055827011

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.068e+01  3.159e+01  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  1.876e+00  7.152e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.638e-01  2.520e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.090e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 195.418 33.610
Photon Index (Free Index): 1.88 +/- 0.72
Photon Flux (Free Index): 1.88e-08 +/- 2.60e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.63e-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/126498/cmap_HighResolution_682300801_682560001_4FGL_J1301.6+3336_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.80e-05', photon_flux_error='3.93e-08', dlogl='4.14e-01', energy_flux='9.90e-06', photon_flux2='1.88e-08', job_status='DONE', time_completed='2022-09-16 17:21:44.125390', photon_index_error2='0.72', photon_index2='1.88', ts='2.15', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.63e-05', EG='1.07', time_epoch_completed='1663374104.13', return_code='0', job_id='126498', GAL2='0.86', EG2='1.09', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.60e-08', ts2='3.02', photon_index='2.59' WHERE bin_id='1709' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:21:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 126498: <4FGL_J1301.6+3336_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1709> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:10:17 2022
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:11:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:11:08 2022
Terminated at Fri Sep 16 17:21:44 2022
Results reported at Fri Sep 16 17:21:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1709 195.418 33.6097 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1301.6+3336 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            687 sec.

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

