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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1751
RA = 195.418, Dec = 33.6097
tmin = 693187201, tmax = 693446401
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='77746', job_status='RUN', time_executed='2022-12-23 00:42:38.068871', time_epoch_executed='1671784958.07' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77746

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77746/ft1_4FGL_J1301.6+3336_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77746/ft2_4FGL_J1301.6+3336_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77746/ft1_4FGL_J1301.6+3336_daily_bin1751.fits outfile=/scratch/kocevski/77746/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1751.fits ra=195.418 dec=33.6097 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.38
sys 0.21

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

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

Number of photons that the gtmktime cut: 641

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77746/ft1_filtered_4FGL_J1301.6+3336_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77746/ft2_4FGL_J1301.6+3336_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77746/ltcube_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.fits outfile=/scratch/kocevski/77746/expmap_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.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/77746/ltcube_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.fits
.....................!
real 190.57
user 185.24
sys 4.98

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/77746/ft1_filtered_4FGL_J1301.6+3336_daily_bin1751.fits scfile=/scratch/kocevski/77746/ft2_4FGL_J1301.6+3336_daily_bin1751.fits outfile=/scratch/kocevski/77746/cmap_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77746/ft1_filtered_4FGL_J1301.6+3336_daily_bin1751.fits scfile=/scratch/kocevski/77746/ft2_4FGL_J1301.6+3336_daily_bin1751.fits outfile=/scratch/kocevski/77746/cmap_HighResolution_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3934       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5919       1.0000          .0000       .10000E+07
     3 'Prefactor '    .84885       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3358       1.0000          .0000       .10000E+07
     5 'norm      '    13.377       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.2664       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11793E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .69911E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .84330E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.7234       1.0000          .0000       .10000E+07
    11 'Prefactor '    42.376       1.0000          .0000       .10000E+07
    12 'norm      '    1.1479       1.0000          .0000       .10000E+07
    13 'Prefactor '    .76399       1.0000          .0000       .10000E+07
    14 'norm      '    .20827E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.4666       1.0000          .0000       .10000E+07
    16 'norm      '    29.851       1.0000          .0000       .10000E+07
    17 'norm      '    16.977       1.0000          .0000       .10000E+07
    18 'norm      '    64.047       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.6678       1.0000          .0000       .10000E+07
    20 'Prefactor '    .44743E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .56403E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.696       1.0000          .0000       .10000E+07
    23 'Prefactor '    24.667       1.0000          .0000       .10000E+07
    24 'Prefactor '    5.6038       1.0000          .0000       .10000E+07
    25 'Normalizat'    .82216       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1068       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=   6838.883     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2214 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3807        3.2264        .19036E-07    .35267E-02
   2  Prefactor     6.6058        8.1829        .22610E-07   -.31880E-01
   3  Prefactor     .85920        1.6841       -.12492E-08    .11519E-02
   4  Prefactor     2.3368        1.5483       -.14350E-07   -.26359E-02
   5  norm          13.342        5.1328       -.51638E-08   -.17122E-02
   6  Prefactor     9.2722        7.5128        .47976E-07    .12431E-01
   7  Prefactor     .14766E-07    5.9158        .91197E-07** at limit **
   8  Prefactor     .36637E-08    4.2850       -.76782E-07** at limit **
   9  Prefactor     .93814E-08    2.7274       -.11021E-06** at limit **
  10  norm          3.7317        4.3723        .19657E-09   -.23065E-02
  11  Prefactor     42.394        11.929        .12416E-07    .15348    
  12  norm          1.1520        2.0504       -.97206E-07   -.54616E-02
  13  Prefactor     1.3017        35.332       -.49055E-06    .17399E-01
  14  norm          .47873E-06    5.5567       -.12966E-07** at limit **
  15  norm          1.4148        1.2039       -.26258E-08    .19952E-02
  16  norm          29.861        6.0700        .43685E-08   -.12068E-01
  17  norm          16.960        5.5890       -.37553E-07    .41899E-04
  18  norm          63.629        8.5693        .22429E-07    .73098E-01
  19  Prefactor     1.6593        2.8889        .10553E-06    .25908E-02
  20  Prefactor     .20417E-06    4.6580       -.88849E-07** at limit **
  21  Prefactor     .15171E-06    25.542       -.21992E-06** at limit **
  22  Prefactor     10.697        1.2025       -.38116E-09   -.18376E-03
  23  Prefactor     24.662        5.7122       -.47525E-07    .21139E-01
  24  Prefactor     5.6308        3.9267        .13749E-07    .13412E-02
  25  Normalizat    .82049        .19474       -.17056E-05   -.61400E-06
  26  Prefactor     1.1081        .23812        .21443E-05    .74696E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38069
  Prefactor  = 6.60585
  Prefactor  = 0.859196
  Prefactor  = 2.33681
  norm       = 13.3425
  Prefactor  = 9.27223
  Prefactor  = 1.4766e-08
  Prefactor  = 3.66374e-09
  Prefactor  = 9.38138e-09
  norm       = 3.73167
  Prefactor  = 42.3939
  norm       = 1.15197
  Prefactor  = 1.30167
  norm       = 4.78728e-07
  norm       = 1.4148
  norm       = 29.8608
  norm       = 16.9599
  norm       = 63.6289
  Prefactor  = 1.65928
  Prefactor  = 2.0417e-07
  Prefactor  = 1.51712e-07
  Prefactor  = 10.6971
  Prefactor  = 24.6624
  Prefactor  = 5.63077
  Normalizat = 0.820494
  Prefactor  = 1.10806
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.883     FROM HESSE     STATUS=OK           522 CALLS     2736 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3807        3.2205        .43247E-03   -1.5662    
   2  Prefactor     6.6058        8.2922        .39062E-03   -1.5657    
   3  Prefactor     .85920        1.6901        .49363E-03   -1.5689    
   4  Prefactor     2.3368        1.5482        .67065E-03   -1.5677    
   5  norm          13.342        5.1351        .27361E-03   -1.5635    
   6  Prefactor     9.2722        7.5252        .32899E-03   -1.5647    
   7  Prefactor     .14766E-07    5.9303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36637E-08    4.2736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .93814E-08    2.7421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7317        4.6116        .52306E-03   -1.5669    
  11  Prefactor     42.394        30.658        .15363E-03   -1.5578    
  12  norm          1.1520        2.4964        .35689E-02   -1.5686    
  13  Prefactor     1.3017        39.595        .55659E-03   -1.5685    
  14  norm          .47873E-06    6.6630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4148        21.205        .88746E-03   -1.5684    
  16  norm          29.861        9.0504        .18306E-03   -1.5599    
  17  norm          16.960        13.768        .24280E-03   -1.5626    
  18  norm          63.629        29.230        .12496E-03   -1.5548    
  19  Prefactor     1.6593        2.9427        .81615E-03   -1.5682    
  20  Prefactor     .20417E-06    5.0800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .15171E-06    25.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.697        10.121        .30611E-03   -1.5643    
  23  Prefactor     24.662        17.131        .20139E-03   -1.5609    
  24  Prefactor     5.6308        3.9352        .42414E-03   -1.5661    
  25  Normalizat    .82049        .16838        .43899E-01   -.99313    
  26  Prefactor     1.1081        .20338        .65115E-01   -.89209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01132e-07
Minuit parameter uncertainties:
  1  3.22048
  2  8.2922
  3  1.69007
  4  1.54817
  5  5.13513
  6  7.52525
  7  0.000592147
  8  0.000251047
  9  0.000320617
  10  4.61163
  11  30.6581
  12  2.49637
  13  14.3583
  14  0.00357205
  15  10.9545
  16  9.05038
  17  13.7681
  18  29.2297
  19  2.94271
  20  0.00203682
  21  0.00396086
  22  10.1213
  23  17.1314
  24  3.93516
  25  0.168491
  26  0.203525
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.108e+00  2.035e-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.205e-01  1.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.62
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/77746/likelihoodResults_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.79321651
delta logL = 0.0900015764992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.78691323
delta logL = 0.096304855113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.921       1.0000          .0000       .10000E+07
     2 'Index     '    2.9243       1.0000          .0000       10.000    
     3 'Normalizat'    .80114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1251       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 MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6838.787     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      296 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.909        42.333        .71944E-05   -.16371E-02
   2  Index         2.9247        .97812        .62051E-02    .53909E-03
   3  Normalizat    .80103        .19817        .26553E-03    .55788E-04
   4  Prefactor     1.1255        .24317        .28611E-03   -.16585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9093
  Index      = 2.9247
  Normalizat = 0.801029
  Prefactor  = 1.12552
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.787     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.909        35.931        .28778E-06   -1.5597    
   2  Index         2.9247        .83084        .12410E-02   -.42801    
   3  Normalizat    .80103        .19697        .10621E-04   -1.0003    
   4  Prefactor     1.1255        .24218        .11444E-04   -.88655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16054e-10
Minuit parameter uncertainties:
  1  35.931
  2  0.835531
  3  0.197141
  4  0.242418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77746': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.78690979
delta logL = 0.0963082988073

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.126e+00  2.424e-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.010e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.92 +/- 0.84
Photon Flux (Free Index): 8.02e-08 +/- 5.69e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.04e-05

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/77746/cmap_HighResolution_693187201_693446401_4FGL_J1301.6+3336_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='1.67e-05', photon_flux_error='4.75e-08', dlogl='9.63e-02', energy_flux='1.73e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2022-12-23 00:53:51.027587', photon_index_error2='0.84', photon_index2='2.92', ts='3.62', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.04e-05', EG='0.82', time_epoch_completed='1671785631.03', return_code='0', job_id='77746', GAL2='1.13', EG2='0.80', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.69e-08', ts2='3.99', photon_index='2.59' WHERE bin_id='1751' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:53:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 77746: <4FGL_J1301.6+3336_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:20 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:21 2022
Terminated at Fri Dec 23 00:53:51 2022
Results reported at Fri Dec 23 00:53:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1751 195.418 33.6097 693187201 693446401 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 :                                   674.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

