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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1712
RA = 195.418, Dec = 33.6097
tmin = 683078401, tmax = 683337601
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='126503', job_status='RUN', time_executed='2022-09-16 17:12:39.512862', time_epoch_executed='1663373559.51' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126503/ft1_4FGL_J1301.6+3336_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126503/ft2_4FGL_J1301.6+3336_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126503/ft1_4FGL_J1301.6+3336_daily_bin1712.fits outfile=/scratch/kocevski/126503/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1712.fits ra=195.418 dec=33.6097 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.89
user 4.58
sys 0.24

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

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

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126503/ft1_filtered_4FGL_J1301.6+3336_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/126503/ft2_4FGL_J1301.6+3336_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/126503/ltcube_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.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/126503/ft2_4FGL_J1301.6+3336_daily_bin1712.fits
.....................!
real 16.62
user 16.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126503/ft1_filtered_4FGL_J1301.6+3336_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/126503/ft2_4FGL_J1301.6+3336_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/126503/ltcube_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.fits outfile=/scratch/kocevski/126503/expmap_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.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/126503/ltcube_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.fits
.....................!
real 193.10
user 187.54
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/126503/ft1_filtered_4FGL_J1301.6+3336_daily_bin1712.fits scfile=/scratch/kocevski/126503/ft2_4FGL_J1301.6+3336_daily_bin1712.fits outfile=/scratch/kocevski/126503/cmap_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126503/ft1_filtered_4FGL_J1301.6+3336_daily_bin1712.fits scfile=/scratch/kocevski/126503/ft2_4FGL_J1301.6+3336_daily_bin1712.fits outfile=/scratch/kocevski/126503/cmap_HighResolution_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3917       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.8309       1.0000          .0000       .10000E+07
     3 'Prefactor '    .77156       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.2204       1.0000          .0000       .10000E+07
     5 'norm      '    4.8338       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.6901       1.0000          .0000       .10000E+07
     7 'Prefactor '    .33917E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.8383       1.0000          .0000       .10000E+07
     9 'Prefactor '    .39652E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .37995E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.778       1.0000          .0000       .10000E+07
    12 'norm      '    .99129       1.0000          .0000       .10000E+07
    13 'Prefactor '    .40967E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .28611E-03   1.0000          .0000       .10000E+07
    15 'norm      '    11.622       1.0000          .0000       .10000E+07
    16 'norm      '    17.580       1.0000          .0000       .10000E+07
    17 'norm      '    1.1354       1.0000          .0000       .10000E+07
    18 'norm      '    13.887       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10933E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .25212E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .77896E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    17.469       1.0000          .0000       .10000E+07
    23 'Prefactor '    10.593       1.0000          .0000       .10000E+07
    24 'Prefactor '    .12505       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2575       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65853       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=   5432.506     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2219 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3857        4.3796        .26278E-07    .14396E-02
   2  Prefactor     2.8424        8.1117        .28505E-06    .76353E-02
   3  Prefactor     .76722        2.3361        .31500E-06    .11320E-02
   4  Prefactor     3.2244        2.7142        .15313E-06    .34825E-02
   5  norm          4.8171        3.8823        .12126E-06    .21782E-02
   6  Prefactor     4.6876        5.2009       -.39066E-07   -.77292E-01
   7  Prefactor     .46912E-06    21.940        .13641E-06** at limit **
   8  Prefactor     4.8575        1.7371       -.14493E-06    .14071E-01
   9  Prefactor     .39413E-08    7.8709        .53118E-06** at limit **
  10  norm           .0000        3.0849        .16800E-07** at limit **
  11  Prefactor     18.024        4.8186       -.10680E-06    .46336E-01
  12  norm          .99189        2.9902       -.48324E-06    .27971E-03
  13  Prefactor     .28977E-07    17.854       -.27708E-07** at limit **
  14  norm           .0000        1.4612        .35142E-06** at limit **
  15  norm          11.657        1.7698       -.19864E-06   -.10854E-01
  16  norm          17.604        8.1388       -.69274E-06    .68492E-02
  17  norm          .99532        28.424        .58630E-05   -.19298E-02
  18  norm          13.823        1.4853        .35687E-07   -.16992E-01
  19  Prefactor      .0000        2.0895        .85353E-07** at limit **
  20  Prefactor     .43299E-08    8.2998       -.38723E-06** at limit **
  21  Prefactor     .33035E-06    54.609       -.16297E-05** at limit **
  22  Prefactor     18.110        3.8189       -.11112E-06    .56150E-01
  23  Prefactor     9.6300        7.5215        .12642E-06   -.47131E-01
  24  Prefactor     .13768        31.583        .21382E-05** at limit **
  25  Normalizat    1.2566        .21182        .10213E-04    .13588E-03
  26  Prefactor     .65945        .24735       -.22649E-04    .98433E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.38575
  Prefactor  = 2.84238
  Prefactor  = 0.767222
  Prefactor  = 3.22443
  norm       = 4.81712
  Prefactor  = 4.68759
  Prefactor  = 4.69125e-07
  Prefactor  = 4.85753
  Prefactor  = 3.94129e-09
  norm       = 0
  Prefactor  = 18.0242
  norm       = 0.991889
  Prefactor  = 2.89768e-08
  norm       = 0
  norm       = 11.6567
  norm       = 17.6045
  norm       = 0.995315
  norm       = 13.8227
  Prefactor  = 0
  Prefactor  = 4.32987e-09
  Prefactor  = 3.30347e-07
  Prefactor  = 18.1101
  Prefactor  = 9.63004
  Prefactor  = 0.137676
  Normalizat = 1.25659
  Prefactor  = 0.659447
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.506     FROM HESSE     STATUS=OK           524 CALLS     2743 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3857        4.4130        .34582E-03   -1.5650    
   2  Prefactor     2.8424        8.2013        .60416E-03   -1.5674    
   3  Prefactor     .76722        2.3781        .55079E-03   -1.5690    
   4  Prefactor     3.2244        2.7415        .56426E-03   -1.5672    
   5  norm          4.8171        3.8887        .45732E-03   -1.5664    
   6  Prefactor     4.6876        8.8127        .46443E-03   -1.5665    
   7  Prefactor     .46912E-06    24.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8575        11.691        .45710E-03   -1.5664    
   9  Prefactor     .39413E-08    8.0250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.0698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.024        32.074        .23727E-03   -1.5623    
  12  norm          .99189        3.0422        .43457E-03   -1.5688    
  13  Prefactor     .28977E-07    18.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.4600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.657        11.215        .29361E-03   -1.5640    
  16  norm          17.604        11.748        .23860E-03   -1.5624    
  17  norm          .99532        52.680        .10934E-02   -1.5688    
  18  norm          13.823        16.581        .26852E-03   -1.5634    
  19  Prefactor      .0000        2.0887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .43299E-08    8.4686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .33035E-06    55.568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.110        19.653        .23936E-03   -1.5623    
  23  Prefactor     9.6300        23.235        .30760E-03   -1.5646    
  24  Prefactor     .13768        2.3316        .81074E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2566        .18438        .48674E-01   -.84872    
  26  Prefactor     .65945        .21433        .77147E-01   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94668e-06
Minuit parameter uncertainties:
  1  4.41298
  2  8.20134
  3  2.37812
  4  2.7415
  5  3.88875
  6  8.81275
  7  0.00674284
  8  11.6907
  9  0.000355332
  10  1.82905e-05
  11  32.0748
  12  3.04217
  13  0.00144783
  14  1.00583e-05
  15  11.2154
  16  11.748
  17  14.4823
  18  16.5809
  19  1.19276e-05
  20  0.000383872
  21  0.00856924
  22  19.6531
  23  23.2353
  24  1.13316
  25  0.184472
  26  0.214597
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.802e+01  3.207e+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:  6.594e-01  2.146e-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.257e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/126503/likelihoodResults_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.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) = 5431.62664331
delta logL = 0.87934978102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5431.62494649
delta logL = 0.881046602815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2339       1.0000          .0000       .10000E+07
     2 'Index     '    4.5421       1.0000          .0000       10.000    
     3 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72712       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=   5431.625     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      312 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2238        28.391        .68749E-03    .86697E-02
   2  Index         4.5445        2.9520        .12637        .17883E-03
   3  Normalizat    1.1733        .51839E-01    .35583E-01   -.80565E-04
   4  Prefactor     .72712        .60798E-01    .73809E-01   -.83973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22375
  Index      = 4.54446
  Normalizat = 1.17327
  Prefactor  = 0.727122
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.625     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      343 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2238        57.747        .76945E-05   -1.5678    
   2  Index         4.5445        7.1066        .45780E-02   -.91235E-01
   3  Normalizat    1.1733        .18956        .22111E-03   -.87433    
   4  Prefactor     .72712        .22112        .32669E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.53153e-10
Minuit parameter uncertainties:
  1  22.6644
  2  5.54461
  3  0.189673
  4  0.221389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126503': 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) = 5431.62494571
delta logL = 0.881047381527

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.224e+00  2.266e+01  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  4.544e+00  5.545e+00  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.271e-01  2.214e-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.173e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 195.418 33.610
Photon Index (Free Index): 4.54 +/- 5.54
Photon Flux (Free Index): 9.82e-08 +/- 7.30e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/126503/cmap_HighResolution_683078401_683337601_4FGL_J1301.6+3336_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='8.81e-01', photon_flux2='9.82e-08', job_status='DONE', time_completed='2022-09-16 17:22:58.406479', photon_index_error2='5.54', photon_index2='4.54', ts='0.42', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.27e-05', EG='1.26', time_epoch_completed='1663374178.41', return_code='0', job_id='126503', GAL2='0.73', EG2='1.17', return_code2='102', photon_flux_error2='7.30e-08', ts2='2.36', photon_index='2.59' WHERE bin_id='1712' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:22:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 126503: <4FGL_J1301.6+3336_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:10:17 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:11:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:11:08 2022
Terminated at Fri Sep 16 17:22:59 2022
Results reported at Fri Sep 16 17:22:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1712 195.418 33.6097 683078401 683337601 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 :                                   620.61 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            762 sec.

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

