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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1747
RA = 195.418, Dec = 33.6097
tmin = 692150401, tmax = 692409601
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='802175', job_status='RUN', time_executed='2022-12-11 00:58:37.221181', time_epoch_executed='1670749117.22' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802175/ft1_4FGL_J1301.6+3336_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802175/ft2_4FGL_J1301.6+3336_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802175/ft1_4FGL_J1301.6+3336_daily_bin1747.fits outfile=/scratch/kocevski/802175/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1747.fits ra=195.418 dec=33.6097 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.74
sys 0.22

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

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

Number of photons that the gtmktime cut: 624

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802175/ft1_filtered_4FGL_J1301.6+3336_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/802175/ft2_4FGL_J1301.6+3336_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/802175/ltcube_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.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/802175/ft2_4FGL_J1301.6+3336_daily_bin1747.fits
.....................!
real 12.30
user 11.86
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802175/ft1_filtered_4FGL_J1301.6+3336_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/802175/ft2_4FGL_J1301.6+3336_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/802175/ltcube_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.fits outfile=/scratch/kocevski/802175/expmap_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.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/802175/ltcube_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.fits
.....................!
real 191.72
user 185.34
sys 5.96

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/802175/ft1_filtered_4FGL_J1301.6+3336_daily_bin1747.fits scfile=/scratch/kocevski/802175/ft2_4FGL_J1301.6+3336_daily_bin1747.fits outfile=/scratch/kocevski/802175/cmap_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802175/ft1_filtered_4FGL_J1301.6+3336_daily_bin1747.fits scfile=/scratch/kocevski/802175/ft2_4FGL_J1301.6+3336_daily_bin1747.fits outfile=/scratch/kocevski/802175/cmap_HighResolution_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5922       1.0000          .0000       .10000E+07
     2 'Prefactor '    .37124E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20084E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3472       1.0000          .0000       .10000E+07
     5 'norm      '    10.967       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.1282       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.8873       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16899E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9392       1.0000          .0000       .10000E+07
    10 'norm      '    9.2891       1.0000          .0000       .10000E+07
    11 'Prefactor '    .52719E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .17748E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14867E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .38193E-04   1.0000          .0000       .10000E+07
    15 'norm      '    7.4801       1.0000          .0000       .10000E+07
    16 'norm      '    42.414       1.0000          .0000       .10000E+07
    17 'norm      '    .71162E-02   1.0000          .0000       .10000E+07
    18 'norm      '    20.283       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.8067       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12602E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .37385E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .62970E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .32744E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    3.7513       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0816       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77631       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=   6831.929     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1814 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5895        3.4298       -.35681E-06    .86523E-02
   2  Prefactor     .55511E-10    2.3412       -.26680E-06** at limit **
   3  Prefactor      .0000        1.9439        .55335E-06** at limit **
   4  Prefactor     2.3490        2.5832        .12804E-06    .95856E-03
   5  norm          10.907        4.7689       -.19709E-06    .63927E-02
   6  Prefactor     6.1523        9.7413       -.10027E-05    .14858E-02
   7  Prefactor     6.0780        1.1726        .14118E-06    .81948E-02
   8  Prefactor     .77610E-06    4.3642        .40463E-06** at limit **
   9  Prefactor     2.9349        2.9980        .29511E-06   -.36313E-02
  10  norm          9.3395        5.6180       -.13997E-07    .95423E-02
  11  Prefactor     .71293E-06    29.670       -.18035E-05** at limit **
  12  norm          .55511E-10    1.9584       -.33809E-06** at limit **
  13  Prefactor     .21372E-07    11.099       -.10723E-05** at limit **
  14  norm          .14354E-05    2.9787        .20645E-05** at limit **
  15  norm          7.4899        9.0560       -.31660E-05   -.32461E-01
  16  norm          42.365        6.8573        .35961E-06    .14365E-01
  17  norm          .99121E-06    38.151        .14653E-04** at limit **
  18  norm          20.438        1.6385        .20878E-06    .24125E-01
  19  Prefactor     2.8091        2.7213       -.18155E-06   -.29304E-02
  20  Prefactor     .73885E-07    7.1327       -.30769E-07** at limit **
  21  Prefactor     .27761E-06    63.657       -.20464E-05** at limit **
  22  Prefactor     .82945E-06    3.2152        .11256E-05** at limit **
  23  Prefactor     .17419E-06    13.599        .18172E-05** at limit **
  24  Prefactor     3.7316        4.4685       -.28782E-06    .22257E-02
  25  Normalizat    1.0817        .18962       -.56871E-06    .30674E-03
  26  Prefactor     .77601        .22708        .29453E-05    .18538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.58955
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.34904
  norm       = 10.9073
  Prefactor  = 6.15231
  Prefactor  = 6.078
  Prefactor  = 7.76101e-07
  Prefactor  = 2.93486
  norm       = 9.33945
  Prefactor  = 7.1293e-07
  norm       = 5.55112e-11
  Prefactor  = 2.13718e-08
  norm       = 1.43535e-06
  norm       = 7.48986
  norm       = 42.3646
  norm       = 9.91207e-07
  norm       = 20.4379
  Prefactor  = 2.80909
  Prefactor  = 7.38853e-08
  Prefactor  = 2.77611e-07
  Prefactor  = 8.29448e-07
  Prefactor  = 1.74194e-07
  Prefactor  = 3.73155
  Normalizat = 1.08174
  Prefactor  = 0.776015
 **********
 **   18 **HESSE 
 **********

 FCN=   6831.929     FROM HESSE     STATUS=OK           510 CALLS     2324 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5895        3.4471        .36372E-03   -1.5653    
   2  Prefactor     .55511E-10    2.3429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.9111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3490        2.6116        .66884E-03   -1.5677    
   5  norm          10.907        4.7730        .30228E-03   -1.5642    
   6  Prefactor     6.1523        9.8009        .40532E-03   -1.5658    
   7  Prefactor     6.0780        13.371        .41364E-03   -1.5659    
   8  Prefactor     .77610E-06    6.6904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9349        3.0058        .59219E-03   -1.5674    
  10  norm          9.3395        5.6263        .32858E-03   -1.5647    
  11  Prefactor     .71293E-06    31.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.9478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21372E-07    11.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14354E-05    15.577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4899        9.2280        .36646E-03   -1.5653    
  16  norm          42.365        6.8970        .15356E-03   -1.5578    
  17  norm          .99121E-06    40.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.438        15.684        .22211E-03   -1.5618    
  19  Prefactor     2.8091        2.7241        .60694E-03   -1.5674    
  20  Prefactor     .73885E-07    7.3420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .27761E-06    64.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .82945E-06    6.7016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .17419E-06    14.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7316        4.4702        .52104E-03   -1.5669    
  25  Normalizat    1.0817        .16266        .38804E-01   -.90340    
  26  Prefactor     .77601        .19596        .73259E-01   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20338e-07
Minuit parameter uncertainties:
  1  3.44713
  2  2.62579e-05
  3  9.96417e-06
  4  2.6116
  5  4.77301
  6  9.80095
  7  13.371
  8  0.0045574
  9  3.00585
  10  5.62629
  11  0.00944694
  12  2.42502e-05
  13  0.00100568
  14  0.00945717
  15  9.22797
  16  6.89698
  17  0.012682
  18  15.6845
  19  2.72405
  20  0.00147288
  21  0.00843831
  22  0.00471543
  23  0.00315454
  24  4.47016
  25  0.162733
  26  0.196139
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  7.129e-07  9.447e-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:  7.760e-01  1.961e-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.082e+00  1.627e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802175/likelihoodResults_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.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) = 6831.94538684
delta logL = -0.0164949498567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6831.92889204
delta logL = -1.57079739438e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87053E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.8955       1.0000          .0000       10.000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77603       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=   6831.929     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      229 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10458E-06    9.0742        .42118E-03** at limit **
   2  Index         2.3139        5.0247        .50000        .53433E-08
   3  Normalizat    1.0817        .16494E-02    .38796E-01    .82644E-03
   4  Prefactor     .77601        .20027E-02    .73259E-01    .36346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04583e-07
  Index      = 2.31386
  Normalizat = 1.08174
  Prefactor  = 0.776011
 **********
 **   18 **HESSE 
 **********

 FCN=   6831.929     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      260 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10458E-06    46.298        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3139        5.5608        .50000       -.56715    
   3  Normalizat    1.0817        .37162E-02    .23108E-03   -.90340    
   4  Prefactor     .77601        .45045E-02    .32423E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1615e-09
Minuit parameter uncertainties:
  1  0.00440079
  2  6207.59
  3  0.00371622
  4  0.00450446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802175': 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) = 6831.92889188
delta logL = 1.0008989193e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.046e-07  4.401e-03  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.314e+00  6.208e+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:  7.760e-01  4.504e-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.082e+00  3.716e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/802175/cmap_HighResolution_692150401_692409601_4FGL_J1301.6+3336_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2022-12-11 01:09:15.845738', job_id='802175', GAL2='0.78', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1670749755.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1747' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:09:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 802175: <4FGL_J1301.6+3336_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1747> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Dec 11 00:55:15 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:55:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:55:16 2022
Terminated at Sun Dec 11 01:09:16 2022
Results reported at Sun Dec 11 01:09:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1747 195.418 33.6097 692150401 692409601 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 :                                   640.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

