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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1763
RA = 195.418, Dec = 33.6097
tmin = 696297601, tmax = 696556801
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='280869', job_status='RUN', time_executed='2023-01-28 00:57:44.156671', time_epoch_executed='1674896264.16' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280869/ft1_4FGL_J1301.6+3336_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280869/ft2_4FGL_J1301.6+3336_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280869/ft1_4FGL_J1301.6+3336_daily_bin1763.fits outfile=/scratch/kocevski/280869/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1763.fits ra=195.418 dec=33.6097 rad=12.0 tmin=696297601.0 tmax=696556801.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.72
user 3.41
sys 0.22

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

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

Number of photons that the gtmktime cut: 611

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280869/ft1_filtered_4FGL_J1301.6+3336_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/280869/ft2_4FGL_J1301.6+3336_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/280869/ltcube_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.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/280869/ft2_4FGL_J1301.6+3336_daily_bin1763.fits
.....................!
real 14.88
user 14.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280869/ft1_filtered_4FGL_J1301.6+3336_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/280869/ft2_4FGL_J1301.6+3336_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/280869/ltcube_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.fits outfile=/scratch/kocevski/280869/expmap_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.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/280869/ltcube_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.fits
.....................!
real 192.29
user 186.16
sys 5.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 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/280869/ft1_filtered_4FGL_J1301.6+3336_daily_bin1763.fits scfile=/scratch/kocevski/280869/ft2_4FGL_J1301.6+3336_daily_bin1763.fits outfile=/scratch/kocevski/280869/cmap_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280869/ft1_filtered_4FGL_J1301.6+3336_daily_bin1763.fits scfile=/scratch/kocevski/280869/ft2_4FGL_J1301.6+3336_daily_bin1763.fits outfile=/scratch/kocevski/280869/cmap_HighResolution_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.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.60
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7369       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16146E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .83226E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.6856       1.0000          .0000       .10000E+07
     5 'norm      '    11.191       1.0000          .0000       .10000E+07
     6 'Prefactor '    .30418E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25618E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34716E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43609E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.2537       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22078E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .39645E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .79379E-05   1.0000          .0000       .10000E+07
    14 'norm      '    5.8670       1.0000          .0000       .10000E+07
    15 'norm      '    .64310E-04   1.0000          .0000       .10000E+07
    16 'norm      '    20.271       1.0000          .0000       .10000E+07
    17 'norm      '    60.333       1.0000          .0000       .10000E+07
    18 'norm      '    41.640       1.0000          .0000       .10000E+07
    19 'Prefactor '    .41012E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.7142       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11792E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .49869E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .55124E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    5.0199       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.6146       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54008       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=   6806.907     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2251 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7307        4.1812       -.86981E-08   -.25283E-03
   2  Prefactor     .55511E-10    10.873        .15196E-06** at limit **
   3  Prefactor     .55511E-10    2.0933       -.65371E-07** at limit **
   4  Prefactor     4.6901        3.3069       -.82603E-08   -.28520E-03
   5  norm          11.188        4.9088       -.32543E-07   -.61759E-03
   6  Prefactor     .13323E-08    4.6874       -.19259E-08** at limit **
   7  Prefactor     .14988E-08    2.4783        .11677E-06** at limit **
   8  Prefactor     .31031E-07    2.4061        .10127E-06** at limit **
   9  Prefactor      .0000        1.4954       -.18488E-07** at limit **
  10  norm          2.2624        4.8128        .10913E-06    .52179E-03
  11  Prefactor     .35916E-07    4.5575        .11381E-06** at limit **
  12  norm          .49960E-09    3.4208       -.10761E-06** at limit **
  13  Prefactor     .77716E-09    3.6574       -.85755E-08** at limit **
  14  norm          5.8671        4.5599        .16324E-07    .26951E-03
  15  norm          .34805E-07    2.7290        .11879E-06** at limit **
  16  norm          20.251        6.9577       -.14600E-07    .53810E-02
  17  norm          60.548        4.8357        .12361E-07   -.44094E-01
  18  norm          41.703        4.2425        .16781E-07   -.47964E-01
  19  Prefactor     .55511E-10    1.9379       -.20066E-07** at limit **
  20  Prefactor     1.6178        2.1490       -.14733E-07   -.10806E-02
  21  Prefactor     .74385E-08    19.239       -.21238E-06** at limit **
  22  Prefactor     .16320E-07    7.7930        .84956E-07** at limit **
  23  Prefactor      .0000        .86731        .11728E-08** at limit **
  24  Prefactor     5.0251        5.9638        .35057E-08   -.45140E-03
  25  Normalizat    1.6146        .22718        .80429E-08   -.12470E-04
  26  Prefactor     .54028        .25344       -.82745E-06   -.77154E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.73069
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 4.69007
  norm       = 11.1885
  Prefactor  = 1.33227e-09
  Prefactor  = 1.4988e-09
  Prefactor  = 3.10307e-08
  Prefactor  = 0
  norm       = 2.26243
  Prefactor  = 3.59157e-08
  norm       = 4.996e-10
  Prefactor  = 7.77156e-10
  norm       = 5.86706
  norm       = 3.48055e-08
  norm       = 20.2512
  norm       = 60.548
  norm       = 41.7034
  Prefactor  = 5.55112e-11
  Prefactor  = 1.61784
  Prefactor  = 7.43849e-09
  Prefactor  = 1.63203e-08
  Prefactor  = 0
  Prefactor  = 5.0251
  Normalizat = 1.61457
  Prefactor  = 0.54028
 **********
 **   18 **HESSE 
 **********

 FCN=   6806.907     FROM HESSE     STATUS=OK           508 CALLS     2759 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7307        4.1999        .41911E-03   -1.5660    
   2  Prefactor     .55511E-10    13.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    2.0853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6901        3.3202        .46466E-03   -1.5665    
   5  norm          11.188        4.9091        .29923E-03   -1.5641    
   6  Prefactor     .13323E-08    4.7367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14988E-08    6.8632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31031E-07    6.8350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.4956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2624        4.8617        .68412E-03   -1.5678    
  11  Prefactor     .35916E-07    11.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .49960E-09    3.4223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .77716E-09    3.7003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8671        4.5669        .41437E-03   -1.5660    
  15  norm          .34805E-07    7.1098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.251        12.271        .22218E-03   -1.5618    
  17  norm          60.548        22.283        .12875E-03   -1.5552    
  18  norm          41.703        28.647        .15498E-03   -1.5579    
  19  Prefactor     .55511E-10    1.9362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6178        43.054        .80239E-03   -1.5683    
  21  Prefactor     .74385E-08    19.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16320E-07    10.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        47.928        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0251        5.9590        .44858E-03   -1.5663    
  25  Normalizat    1.6146        .20116        .52288E-01   -.74608    
  26  Prefactor     .54028        .22681        .97383E-01   -1.1016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94328e-07
Minuit parameter uncertainties:
  1  4.19992
  2  5.11983e-05
  3  2.59458e-05
  4  3.3202
  5  4.90905
  6  0.000157333
  7  0.000203727
  8  0.000921262
  9  1.52277e-06
  10  4.86166
  11  0.00129975
  12  8.22058e-05
  13  0.000108814
  14  4.56687
  15  0.000995086
  16  12.2708
  17  22.2834
  18  28.6471
  19  2.08951e-05
  20  16.6921
  21  0.000761293
  22  0.000837654
  23  4.56539e-05
  24  5.95898
  25  0.201256
  26  0.227192
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.592e-08  1.300e-03  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:  5.403e-01  2.272e-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.615e+00  2.013e-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: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280869/likelihoodResults_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.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) = 6806.90693176
delta logL = -6.04546594332e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6806.90687131
delta logL = -1.17233867059e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76883E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1349       1.0000          .0000       10.000    
     3 'Normalizat'    1.6145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54030       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=   6806.907     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      239 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-08    12.070       -.13781E-05** at limit **
   2  Index         2.5570        6.2775        .56566E-04    .85445E-10
   3  Normalizat    1.6146        .22243       -.92052E-05    .22418E-03
   4  Prefactor     .54028        .25426        .28445E-04    .11752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-09
  Index      = 2.55702
  Normalizat = 1.61457
  Prefactor  = 0.54028
 **********
 **   18 **HESSE 
 **********

 FCN=   6806.907     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      276 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-08    .49166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5570        7.4052        .36388       -.51048    
   3  Normalizat    1.6146        .95389E-03    .52288E-01   -.74608    
   4  Prefactor     .54028        .10980E-02    .97383E-01   -1.1016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.23034e-12
Minuit parameter uncertainties:
  1  4.69428e-05
  2  14979.9
  3  0.000953885
  4  0.00109802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280869': 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) = 6806.9068713
delta logL = 1.45792000694e-09

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.110e-09  4.694e-05  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.557e+00  1.498e+04  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:  5.403e-01  1.098e-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:  1.615e+00  9.539e-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/280869/cmap_HighResolution_696297601_696556801_4FGL_J1301.6+3336_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2023-01-28 01:08:59.039806', job_id='280869', GAL2='0.54', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1674896939.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1763' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:08:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 280869: <4FGL_J1301.6+3336_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1763> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jan 28 00:55:20 2023
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:55:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:55:46 2023
Terminated at Sat Jan 28 01:08:59 2023
Results reported at Sat Jan 28 01:08:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1763 195.418 33.6097 696297601 696556801 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 :                                   675.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            819 sec.

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

