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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1744
RA = 195.418, Dec = 33.6097
tmin = 691372801, tmax = 691632001
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='580929', job_status='RUN', time_executed='2022-12-02 01:01:13.279645', time_epoch_executed='1669971673.28' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580929/ft1_4FGL_J1301.6+3336_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580929/ft2_4FGL_J1301.6+3336_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580929/ft1_4FGL_J1301.6+3336_daily_bin1744.fits outfile=/scratch/kocevski/580929/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1744.fits ra=195.418 dec=33.6097 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.53
user 2.30
sys 0.20

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

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

Number of photons that the gtmktime cut: 929

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580929/ft1_filtered_4FGL_J1301.6+3336_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/580929/ft2_4FGL_J1301.6+3336_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/580929/ltcube_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.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/580929/ft2_4FGL_J1301.6+3336_daily_bin1744.fits
.....................!
real 13.34
user 12.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580929/ft1_filtered_4FGL_J1301.6+3336_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/580929/ft2_4FGL_J1301.6+3336_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/580929/ltcube_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.fits outfile=/scratch/kocevski/580929/expmap_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.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/580929/ltcube_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.fits
.....................!
real 191.14
user 185.07
sys 5.51

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/580929/ft1_filtered_4FGL_J1301.6+3336_daily_bin1744.fits scfile=/scratch/kocevski/580929/ft2_4FGL_J1301.6+3336_daily_bin1744.fits outfile=/scratch/kocevski/580929/cmap_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.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.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580929/ft1_filtered_4FGL_J1301.6+3336_daily_bin1744.fits scfile=/scratch/kocevski/580929/ft2_4FGL_J1301.6+3336_daily_bin1744.fits outfile=/scratch/kocevski/580929/cmap_HighResolution_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0051       1.0000          .0000       .10000E+07
     2 'Prefactor '    .90875E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11740E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4751       1.0000          .0000       .10000E+07
     5 'norm      '    30.555       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.7826       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21323E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .70026E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12778E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .18286E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25151       1.0000          .0000       .10000E+07
    12 'norm      '    .12928E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .21390E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .83917E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .12604E-02   1.0000          .0000       .10000E+07
    16 'norm      '    20.736       1.0000          .0000       .10000E+07
    17 'norm      '    35.134       1.0000          .0000       .10000E+07
    18 'norm      '    13.015       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11127E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14891E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .13117E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.1566       1.0000          .0000       .10000E+07
    23 'Prefactor '    8.8676       1.0000          .0000       .10000E+07
    24 'Prefactor '    13.805       1.0000          .0000       .10000E+07
    25 'Normalizat'    .94990       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3193       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=   9969.802     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1740 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0041        2.4207       -.76233E-07   -.38295E-02
   2  Prefactor     .33307E-08    5.6326        .25940E-06** at limit **
   3  Prefactor     .99920E-09    2.0712        .77675E-07** at limit **
   4  Prefactor     2.4698        1.9911        .58779E-07    .47050E-03
   5  norm          30.569        1.3067       -.14066E-07    .23882    
   6  Prefactor     6.7823        1.0217       -.66456E-08    .35649E-01
   7  Prefactor     .61229E-07    2.5743        .73399E-07** at limit **
   8  Prefactor     .72164E-09    2.0943       -.12113E-06** at limit **
   9  Prefactor     .55511E-10    1.0370       -.11122E-06** at limit **
  10  norm          .53124E-07    1.4695        .39443E-07** at limit **
  11  Prefactor     .42983E-05    8.2181       -.59390E-07** at limit **
  12  norm          .55511E-10    1.3777       -.91568E-07** at limit **
  13  Prefactor     .36526E-07    1.7578        .64844E-07** at limit **
  14  norm          .64692E-01    11.522        .37508E-06** at limit **
  15  norm          .10159E-07    23.736       -.16101E-06** at limit **
  16  norm          20.804        4.5476       -.23625E-07    .51488E-02
  17  norm          35.040        2.3734       -.15398E-07    .80029E-02
  18  norm          13.043        1.0068       -.21392E-08    .32001E-02
  19  Prefactor      .0000        .82524        .12524E-06** at limit **
  20  Prefactor     .93092E-07    2.1177        .89890E-07** at limit **
  21  Prefactor     .24980E-08    17.170       -.28449E-06** at limit **
  22  Prefactor     3.1597        1.0769       -.76169E-09    .25637E-01
  23  Prefactor     8.7813        1.8211       -.34324E-08   -.64664E-02
  24  Prefactor     13.760        4.4803        .80015E-07    .17683E-02
  25  Normalizat    .95020        .17307       -.32561E-06    .25218E-03
  26  Prefactor     1.3194        .21866        .26870E-05    .26994E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00409
  Prefactor  = 3.33067e-09
  Prefactor  = 9.99201e-10
  Prefactor  = 2.4698
  norm       = 30.5691
  Prefactor  = 6.78225
  Prefactor  = 6.12288e-08
  Prefactor  = 7.21645e-10
  Prefactor  = 5.55112e-11
  norm       = 5.31242e-08
  Prefactor  = 4.29828e-06
  norm       = 5.55112e-11
  Prefactor  = 3.65263e-08
  norm       = 0.0646921
  norm       = 1.01585e-08
  norm       = 20.8041
  norm       = 35.0399
  norm       = 13.0426
  Prefactor  = 0
  Prefactor  = 9.30922e-08
  Prefactor  = 2.498e-09
  Prefactor  = 3.15971
  Prefactor  = 8.78134
  Prefactor  = 13.7595
  Normalizat = 0.950201
  Prefactor  = 1.31938
 **********
 **   18 **HESSE 
 **********

 FCN=   9969.802     FROM HESSE     STATUS=OK           518 CALLS     2258 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0041        2.4379        .50368E-03   -1.5668    
   2  Prefactor     .33307E-08    5.6140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .99920E-09    2.0572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4698        2.0347        .64963E-03   -1.5677    
   5  norm          30.569        6.4058        .18094E-03   -1.5597    
   6  Prefactor     6.7823        7.6342        .38503E-03   -1.5656    
   7  Prefactor     .61229E-07    4.5929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    2.0975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    1.0370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .53124E-07    3.2143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .42983E-05    14.736        .12492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.3654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36526E-07    3.1464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .64692E-01    1.5896        .41685E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10159E-07    24.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.804        9.0257        .21967E-03   -1.5617    
  17  norm          35.040        16.997        .16873E-03   -1.5590    
  18  norm          13.043        12.138        .27739E-03   -1.5636    
  19  Prefactor      .0000        .82488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .93092E-07    4.6890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .24980E-08    17.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1597        8.5273        .57024E-03   -1.5672    
  23  Prefactor     8.7813        21.603        .33635E-03   -1.5649    
  24  Prefactor     13.760        4.4936        .26932E-03   -1.5634    
  25  Normalizat    .95020        .14804        .45536E-01   -.94718    
  26  Prefactor     1.3194        .18409        .66409E-01   -.82733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7325e-07
Minuit parameter uncertainties:
  1  2.4379
  2  0.00027401
  3  9.09808e-05
  4  2.03469
  5  6.40582
  6  7.63417
  7  0.00106078
  8  7.66916e-05
  9  1.41317e-05
  10  0.000826393
  11  0.0159172
  12  1.47476e-05
  13  0.000678029
  14  0.64136
  15  0.00100615
  16  9.02575
  17  16.9969
  18  12.1383
  19  5.18343e-06
  20  0.00132123
  21  0.000414413
  22  8.52736
  23  21.6034
  24  4.49362
  25  0.148103
  26  0.184182
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.298e-06  1.592e-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.319e+00  1.842e-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:  9.502e-01  1.481e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580929/likelihoodResults_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.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) = 9969.80540006
delta logL = -0.00381615495826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9967.95728278
delta logL = 1.84430112813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29741E-04   1.0000          .0000       .10000E+07
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .87453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3866       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9967.957     FROM MIGRAD    STATUS=FAILED       342 CALLS      667 TOTAL
                     EDM=   .90E+00    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29728E-04    .22222E-04     .0000    ** at limit **
   2  Index        10.0000        .39738         .0000    ** at limit **
   3  Normalizat    .87453        .19164         .0000        .48240E-03
   4  Prefactor     1.3867        .24224         .0000       -.72686E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9967.957     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      765 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29728E-04    .22222E-04    .42737E-09   -58.119    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .39738        .92072E-02    667.59    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .87453        .19164        .12073E-04   -114.07    
   4  Prefactor     1.3867        .24224        .20672E-05   -27.467    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9967.957     FROM MIGRAD    STATUS=FAILED        47 CALLS      812 TOTAL
                     EDM=   .87E+00    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29728E-04    .21774E-04     .0000    ** at limit **
   2  Index        10.0000        .44939         .0000    ** at limit **
   3  Normalizat    .87453        .17800         .0000       -.75878E-04
   4  Prefactor     1.3867        .22398         .0000        .77624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97276e-05
  Index      = 10
  Normalizat = 0.874529
  Prefactor  = 1.38667
 **********
 **   18 **HESSE 
 **********

 FCN=   9967.957     FROM HESSE     STATUS=OK            29 CALLS      841 TOTAL
                     EDM=   .17E+01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29728E-04    .21822E-04    .13857E-04   -58.119    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .41842        .40402        667.59    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .87453        .17817        .11075E-04   -114.07    
   4  Prefactor     1.3867        .22406        .11506E-04   -27.467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74386
Minuit parameter uncertainties:
  1  2.18215e-05
  2  5.85579e-05
  3  0.178292
  4  0.224221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580929': 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): 1
logL (Free Index) = 9967.9572762
delta logL = 1.84430770276

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.973e-05  2.182e-05  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  1.000e+01  5.856e-05  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.387e+00  2.242e-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:  8.745e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 195.418 33.610
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.73e-08 +/- 4.07e-08
Energy Flux (Free Index): 6.40e-06 +/- 4.58e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/580929/cmap_HighResolution_691372801_691632001_4FGL_J1301.6+3336_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', comment='SUCCESS', energy_flux2='6.40e-06', dlogl='1.84e+00', photon_flux2='5.73e-08', job_status='DONE', time_completed='2022-12-02 01:16:04.847100', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='4.58e-06', EG='0.95', time_epoch_completed='1669972564.85', return_code='0', job_id='580929', GAL2='1.39', EG2='0.87', return_code2='1', photon_flux_error2='4.07e-08', ts2='3.84', photon_index='2.59' WHERE bin_id='1744' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:16:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 580929: <4FGL_J1301.6+3336_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1744> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec  2 01:00:31 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 01:00:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 01:00:32 2022
Terminated at Fri Dec  2 01:16:05 2022
Results reported at Fri Dec  2 01:16:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1744 195.418 33.6097 691372801 691632001 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 :                                   893.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

