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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1756
RA = 195.418, Dec = 33.6097
tmin = 694483201, tmax = 694742401
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='13112', job_status='RUN', time_executed='2023-01-07 00:52:37.580456', time_epoch_executed='1673081557.58' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13112/ft1_4FGL_J1301.6+3336_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13112/ft2_4FGL_J1301.6+3336_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13112/ft1_4FGL_J1301.6+3336_daily_bin1756.fits outfile=/scratch/kocevski/13112/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1756.fits ra=195.418 dec=33.6097 rad=12.0 tmin=694483201.0 tmax=694742401.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.96
user 2.74
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13112/ft2_4FGL_J1301.6+3336_daily_bin1756.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/13112/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/13112/ft1_filtered_4FGL_J1301.6+3336_daily_bin1756.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1014

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13112/ft1_filtered_4FGL_J1301.6+3336_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/13112/ft2_4FGL_J1301.6+3336_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/13112/ltcube_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.fits outfile=/scratch/kocevski/13112/expmap_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.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/13112/ltcube_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.fits
.....................!
real 192.14
user 186.87
sys 4.21

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/13112/ft1_filtered_4FGL_J1301.6+3336_daily_bin1756.fits scfile=/scratch/kocevski/13112/ft2_4FGL_J1301.6+3336_daily_bin1756.fits outfile=/scratch/kocevski/13112/cmap_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13112/ft1_filtered_4FGL_J1301.6+3336_daily_bin1756.fits scfile=/scratch/kocevski/13112/ft2_4FGL_J1301.6+3336_daily_bin1756.fits outfile=/scratch/kocevski/13112/cmap_HighResolution_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2333       1.0000          .0000       .10000E+07
     2 'Prefactor '    .63616E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0259       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8405       1.0000          .0000       .10000E+07
     5 'norm      '    10.187       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13808E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .56425E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .95823E-06   1.0000          .0000       .10000E+07
    10 'norm      '    13.154       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10678E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .42379E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .72363E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .71776E-07   1.0000          .0000       .10000E+07
    15 'norm      '    2.2803       1.0000          .0000       .10000E+07
    16 'norm      '    77.219       1.0000          .0000       .10000E+07
    17 'norm      '    7.4398       1.0000          .0000       .10000E+07
    18 'norm      '    32.244       1.0000          .0000       .10000E+07
    19 'Prefactor '    .14561E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .13605E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .77412E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.4020       1.0000          .0000       .10000E+07
    23 'Prefactor '    14.200       1.0000          .0000       .10000E+07
    24 'Prefactor '    .55343E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .97740       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2012       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=   10565.28     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1766 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2389        4.2060        .43818E-07    .40382E-02
   2  Prefactor     .88263E-08    2.1695        .79608E-07** at limit **
   3  Prefactor     1.0231        2.4428       -.55455E-07   -.63239E-03
   4  Prefactor     7.8386        3.0682       -.10315E-07   -.17165E-02
   5  norm          10.176        4.9956        .43505E-07    .28187E-01
   6  Prefactor     .19984E-08    2.7072        .59069E-07** at limit **
   7  Prefactor     .55511E-09    3.9537        .16732E-07** at limit **
   8  Prefactor     .99920E-09    2.4065        .64387E-07** at limit **
   9  Prefactor      .0000        3.5034        .31894E-07** at limit **
  10  norm          13.168        4.9779        .23254E-07   -.30636E-01
  11  Prefactor     .11546E-07    17.660        .28630E-08** at limit **
  12  norm          .18319E-08    1.8356        .47320E-07** at limit **
  13  Prefactor     .51814E-06    6.1309        .11655E-06** at limit **
  14  norm           .0000        1.0235        .14057E-07** at limit **
  15  norm          2.2903        4.9072        .18945E-07    .94589E-03
  16  norm          77.189        3.2484        .54770E-08    .13941    
  17  norm          7.5473        2.1426       -.15250E-07    .32536E-01
  18  norm          31.687        2.5998        .17193E-08   -.51867E-02
  19  Prefactor     .10325E-07    1.1590        .86575E-07** at limit **
  20  Prefactor     .37748E-08    5.9721       -.14085E-06** at limit **
  21  Prefactor     .34012E-06    6.8505        .79901E-08** at limit **
  22  Prefactor     1.4046        1.3084       -.37027E-08    .34069E-03
  23  Prefactor     14.221        1.0589       -.33502E-08    .10645E-02
  24  Prefactor     .11102E-09    2.1379        .29942E-07** at limit **
  25  Normalizat    .97743        .17666       -.88465E-06    .17575E-03
  26  Prefactor     1.2014        .21995        .20022E-05    .20059E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.23886
  Prefactor  = 8.82627e-09
  Prefactor  = 1.02308
  Prefactor  = 7.83857
  norm       = 10.1762
  Prefactor  = 1.9984e-09
  Prefactor  = 5.55112e-10
  Prefactor  = 9.99201e-10
  Prefactor  = 0
  norm       = 13.1677
  Prefactor  = 1.15463e-08
  norm       = 1.83187e-09
  Prefactor  = 5.18141e-07
  norm       = 0
  norm       = 2.29025
  norm       = 77.189
  norm       = 7.54731
  norm       = 31.687
  Prefactor  = 1.03251e-08
  Prefactor  = 3.77476e-09
  Prefactor  = 3.40117e-07
  Prefactor  = 1.40455
  Prefactor  = 14.2205
  Prefactor  = 1.11022e-10
  Normalizat = 0.977433
  Prefactor  = 1.20142
 **********
 **   18 **HESSE 
 **********

 FCN=   10565.28     FROM HESSE     STATUS=OK           508 CALLS     2274 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2389        4.3668        .40184E-03   -1.5658    
   2  Prefactor     .88263E-08    5.2569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0231        2.6208        .12624E-02   -1.5688    
   4  Prefactor     7.8386        3.0814        .35786E-03   -1.5652    
   5  norm          10.176        5.1394        .31369E-03   -1.5644    
   6  Prefactor     .19984E-08    5.5706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-09    4.4703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .99920E-09    2.4601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.5134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.168        5.4863        .27593E-03   -1.5635    
  11  Prefactor     .11546E-07    17.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .18319E-08    1.8893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .51814E-06    12.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.0263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2903        4.9305        .67966E-03   -1.5678    
  16  norm          77.189        8.8633        .11381E-03   -1.5532    
  17  norm          7.5473        10.825        .36746E-03   -1.5653    
  18  norm          31.687        19.704        .17613E-03   -1.5595    
  19  Prefactor     .10325E-07    5.6670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .37748E-08    6.7549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .34012E-06    11.322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4046        25.856        .91581E-03   -1.5684    
  23  Prefactor     14.221        13.281        .26554E-03   -1.5633    
  24  Prefactor     .11102E-09    2.1358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97743        .15042        .45883E-01   -.93790    
  26  Prefactor     1.2014        .18482        .71326E-01   -.86288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06722e-07
Minuit parameter uncertainties:
  1  4.36683
  2  0.000431235
  3  2.62085
  4  3.08143
  5  5.1394
  6  0.000209888
  7  9.80873e-05
  8  9.78123e-05
  9  1.50617e-05
  10  5.48633
  11  0.000912344
  12  0.00011719
  13  0.00512132
  14  4.24741e-06
  15  4.93049
  16  8.86326
  17  10.8248
  18  19.704
  19  0.00048358
  20  0.000318728
  21  0.00392482
  22  12.0526
  23  13.2815
  24  3.13367e-05
  25  0.150482
  26  0.184923
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.155e-08  9.123e-04  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.201e+00  1.849e-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.774e-01  1.505e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13112/likelihoodResults_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.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) = 10565.3112086
delta logL = -0.026943944009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10564.359735
delta logL = 0.924529701313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98124E-03   1.0000          .0000       .10000E+07
     2 'Index     '    8.3143       1.0000          .0000       10.000    
     3 'Normalizat'    .91954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2514       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10565.28     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      316 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .19441        .42118E-03** at limit **
   2  Index         .16215        .34884        .28812E-05     .0000    
   3  Normalizat    .97743        1.2891        .67896E-05   -.18960E-03
   4  Prefactor     1.2014        1.0694       -.15236E-04   -.23377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.162148
  Normalizat = 0.977433
  Prefactor  = 1.20142
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10565.28     FROM HESSE     STATUS=FAILED         9 CALLS      325 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .19441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3944        1.0440        .28812E-05   -1.8262    
   3  Normalizat    .97743        1.2891        .67896E-05   -.93790    
   4  Prefactor     1.2014        1.0694       -.15236E-04   -.86288    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.96647e-11
Minuit parameter uncertainties:
  1  2.84986e-07
  2  0.353438
  3  1.33396
  4  1.08967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13112': 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): 101
logL (Free Index) = 10565.2842647
delta logL = 3.11047188006e-10

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  0.000e+00  2.850e-07  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  1.621e-01  3.534e-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.201e+00  1.090e+00  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.774e-01  1.334e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/13112/cmap_HighResolution_694483201_694742401_4FGL_J1301.6+3336_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2023-01-07 01:06:34.907173', job_id='13112', GAL2='1.20', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1673082394.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.11e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1756' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:06:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 13112: <4FGL_J1301.6+3336_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:50:14 2023
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:50:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:50:50 2023
Terminated at Sat Jan  7 01:06:35 2023
Results reported at Sat Jan  7 01:06:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1756 195.418 33.6097 694483201 694742401 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 :                                   837.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            981 sec.

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

