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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1780
RA = 195.418, Dec = 33.6097
tmin = 700704001, tmax = 700963201
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='63927', job_status='RUN', time_executed='2023-03-20 00:55:51.658688', time_epoch_executed='1679298951.66' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63927/ft1_4FGL_J1301.6+3336_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63927/ft1_4FGL_J1301.6+3336_daily_bin1780.fits outfile=/scratch/kocevski/63927/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1780.fits ra=195.418 dec=33.6097 rad=12.0 tmin=700704001.0 tmax=700963201.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.08
user 3.85
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.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/63927/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/63927/ft1_filtered_4FGL_J1301.6+3336_daily_bin1780.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 566

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63927/ft1_filtered_4FGL_J1301.6+3336_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/63927/ltcube_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.fits outfile=/scratch/kocevski/63927/expmap_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.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/63927/ltcube_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.fits
.....................!
real 190.78
user 185.09
sys 5.33

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/63927/ft1_filtered_4FGL_J1301.6+3336_daily_bin1780.fits scfile=/scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.fits outfile=/scratch/kocevski/63927/cmap_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63927/ft1_filtered_4FGL_J1301.6+3336_daily_bin1780.fits scfile=/scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.fits outfile=/scratch/kocevski/63927/cmap_HighResolution_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/63927/ft1_filtered_4FGL_J1301.6+3336_daily_bin1780.fits', '/scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.fits', expMap='/scratch/kocevski/63927/expmap_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.fits', expCube='/scratch/kocevski/63927/ltcube_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/63927/Model_4FGL_J1301.6+3336_daily_bin1780.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/63927/ft1_filtered_4FGL_J1301.6+3336_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/63927/ft2_4FGL_J1301.6+3336_daily_bin1780.fits
Exposure map: /scratch/kocevski/63927/expmap_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.fits
Exposure cube: /scratch/kocevski/63927/ltcube_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/63927/Model_4FGL_J1301.6+3336_daily_bin1780.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) = 6536.84073597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1205       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10543E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22783E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6974       1.0000          .0000       .10000E+07
     5 'norm      '    1.2375       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29912E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .69308E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21713E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.2113       1.0000          .0000       .10000E+07
    10 'norm      '    10.229       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29577E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .48824E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9202       1.0000          .0000       .10000E+07
    14 'norm      '    .24352E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .48164E-03   1.0000          .0000       .10000E+07
    16 'norm      '    12.424       1.0000          .0000       .10000E+07
    17 'norm      '    12.849       1.0000          .0000       .10000E+07
    18 'norm      '    .99541E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13395E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .34110E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .34721E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .94046E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    29.973       1.0000          .0000       .10000E+07
    24 'Prefactor '    6.8429       1.0000          .0000       .10000E+07
    25 'Normalizat'    .62717       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3301       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=   6536.825     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2255 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1262        2.7145       -.80143E-07    .18977E-03
   2  Prefactor     .10832E-04    31.207        .24800E-06** at limit **
   3  Prefactor     .55511E-10    8.2102        .42957E-07** at limit **
   4  Prefactor     2.6985        2.3472        .55968E-07   -.28506E-03
   5  norm          1.2375        3.1965        .44978E-06   -.68620E-03
   6  Prefactor     .69445E-05    38.397        .31973E-06** at limit **
   7  Prefactor     .59608E-06    6.3812       -.32167E-06** at limit **
   8  Prefactor      .0000        2.4792        .15752E-06** at limit **
   9  Prefactor     7.1905        6.0377       -.26660E-07   -.36465E-03
  10  norm          10.230        4.6316        .10775E-06   -.27318E-02
  11  Prefactor     .13619E-04    60.051        .12753E-06** at limit **
  12  norm           .0000        1.2245       -.64777E-07** at limit **
  13  Prefactor     1.9268        7.6742        .17252E-07   -.95816E-03
  14  norm          .14988E-08    8.0712       -.27891E-06** at limit **
  15  norm          .31869E-06    5.0445       -.36564E-06** at limit **
  16  norm          12.434        4.1508        .25688E-07    .32408E-02
  17  norm          12.837        2.9878       -.46149E-08   -.10017E-01
  18  norm          .50071E-07    4.4549       -.37026E-06** at limit **
  19  Prefactor      .0000        1.9121        .14939E-06** at limit **
  20  Prefactor     .27756E-09    14.977       -.60203E-06** at limit **
  21  Prefactor      .0000        25.020        .24616E-06** at limit **
  22  Prefactor     .90150E-07    5.1513       -.38124E-06** at limit **
  23  Prefactor     30.149        15.988       -.34111E-07   -.16513    
  24  Prefactor     6.8555        4.8391        .34442E-07    .26709E-03
  25  Normalizat    .62699        .18663       -.47764E-05   -.84467E-05
  26  Prefactor     1.3302        .22910        .17252E-05    .76771E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.12618
  Prefactor  = 1.08321e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 2.69847
  norm       = 1.23749
  Prefactor  = 6.9445e-06
  Prefactor  = 5.96079e-07
  Prefactor  = 0
  Prefactor  = 7.19047
  norm       = 10.2304
  Prefactor  = 1.36192e-05
  norm       = 0
  Prefactor  = 1.92681
  norm       = 1.4988e-09
  norm       = 3.1869e-07
  norm       = 12.4339
  norm       = 12.8372
  norm       = 5.00711e-08
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 9.01501e-08
  Prefactor  = 30.1487
  Prefactor  = 6.85553
  Normalizat = 0.626992
  Prefactor  = 1.33019
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.825     FROM HESSE     STATUS=OK           520 CALLS     2775 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1262        2.8981        .49636E-03   -1.5667    
   2  Prefactor     .10832E-04    7.9601        .61492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    1.3741        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6985        2.3695        .62002E-03   -1.5675    
   5  norm          1.2375        3.2512        .10085E-02   -1.5686    
   6  Prefactor     .69445E-05    77.863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59608E-06    12.282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.4828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1905        6.9646        .37329E-03   -1.5654    
  10  norm          10.230        4.6549        .31304E-03   -1.5644    
  11  Prefactor     .13619E-04    71.328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.2237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9268        38.889        .74960E-03   -1.5680    
  14  norm          .14988E-08    8.0229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .31869E-06    13.103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.434        8.4260        .28394E-03   -1.5637    
  17  norm          12.837        14.804        .27918E-03   -1.5636    
  18  norm          .50071E-07    10.510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.9098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27756E-09    15.349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        24.879        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .90150E-07    10.454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.149        27.846        .18268E-03   -1.5598    
  24  Prefactor     6.8555        4.8503        .38331E-03   -1.5656    
  25  Normalizat    .62699        .16037        .63493E-01   -1.0685    
  26  Prefactor     1.3302        .19312        .56197E-01   -.82414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19065e-06
Minuit parameter uncertainties:
  1  2.89812
  2  0.0185715
  3  1.62083e-05
  4  2.3695
  5  3.25122
  6  0.0465074
  7  0.00541147
  8  1.54589e-06
  9  6.9646
  10  4.65489
  11  0.0623362
  12  1.38093e-06
  13  17.3128
  14  0.000219505
  15  0.00408709
  16  8.42601
  17  14.8036
  18  0.00145113
  19  4.36759e-06
  20  0.000131294
  21  2.27999e-05
  22  0.00194128
  23  27.8458
  24  4.85029
  25  0.160485
  26  0.193229
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.362e-05  6.234e-02  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:  1.330e+00  1.932e-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:  6.270e-01  1.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63927/likelihoodResults_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.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) = 6536.83270755
delta logL = -0.00762833444242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6536.82509264
delta logL = -1.34237634484e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11693E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.4601       1.0000          .0000       10.000    
     3 'Normalizat'    .62656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3302       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=   6536.825     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      221 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31253E-07    124.99       -.50448E-05** at limit **
   2  Index         2.4235        6.2076        .10951E-03    .14424E-08
   3  Normalizat    .62699        .18276       -.10156E-04   -.27935E-03
   4  Prefactor     1.3302        .22881       -.78550E-05   -.10803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12528e-08
  Index      = 2.42355
  Normalizat = 0.626989
  Prefactor  = 1.3302
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.825     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      260 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31253E-07    5.3670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4235        6.9983        .50000       -.54135    
   3  Normalizat    .62699        .80818E-03    .63493E-01   -1.0685    
   4  Prefactor     1.3302        .10094E-02    .56197E-01   -.82414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.80028e-12
Minuit parameter uncertainties:
  1  0.000818762
  2  2273.99
  3  0.000808183
  4  0.00100944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63927': 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): 102
logL (Free Index) = 6536.82507912
delta logL = 9.46856744122e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.125e-08  8.188e-04  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.424e+00  2.274e+03  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:  1.330e+00  1.009e-03  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:  6.270e-01  8.082e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.418 33.610

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/63927/cmap_HighResolution_700704001_700963201_4FGL_J1301.6+3336_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2023-03-20 01:06:28.823703', job_id='63927', GAL2='1.33', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1679299588.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='9.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1780' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:06:28 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 63927: <4FGL_J1301.6+3336_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 00:55:12 2023
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:55:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:55:13 2023
Terminated at Mon Mar 20 01:06:29 2023
Results reported at Mon Mar 20 01:06:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1780 195.418 33.6097 700704001 700963201 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 :                                   639.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

