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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7644
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1302.8+5748_daily_bin1747
RA = 195.721, Dec = 57.8146
tmin = 692150401, tmax = 692409601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='802177', job_status='RUN', time_executed='2022-12-11 00:55:29.259612', time_epoch_executed='1670748929.26' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802177

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802177/ft1_4FGL_J1302.8+5748_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802177/ft1_4FGL_J1302.8+5748_daily_bin1747.fits outfile=/scratch/kocevski/802177/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1747.fits ra=195.721 dec=57.8146 rad=12.0 tmin=692150401.0 tmax=692409601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.01
user 3.79
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/802177/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 647

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/802177/ltcube_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits
.....................!
real 12.09
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/802177/ltcube_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits outfile=/scratch/kocevski/802177/expmap_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/802177/ltcube_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits
.....................!
real 191.76
user 185.82
sys 5.55

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1302.8+5748 @ 195.721 57.8146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits scfile=/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits outfile=/scratch/kocevski/802177/cmap_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.721 yref=57.8146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits scfile=/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits outfile=/scratch/kocevski/802177/cmap_HighResolution_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.721 yref=57.8146 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802177/Model_4FGL_J1302.8+5748_daily_bin1747.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits.....................!
real 60.84
user 59.40
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits', '/scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits', expMap='/scratch/kocevski/802177/expmap_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits', expCube='/scratch/kocevski/802177/ltcube_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/802177/Model_4FGL_J1302.8+5748_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1302.8+5748'

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.988e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/802177/ft1_filtered_4FGL_J1302.8+5748_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/802177/ft2_4FGL_J1302.8+5748_daily_bin1747.fits
Exposure map: /scratch/kocevski/802177/expmap_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits
Exposure cube: /scratch/kocevski/802177/ltcube_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/802177/Model_4FGL_J1302.8+5748_daily_bin1747.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35806E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .60186       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9815       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13110E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .94980E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.1252       1.0000          .0000       .10000E+07
     7 'norm      '    6.2175       1.0000          .0000       .10000E+07
     8 'Prefactor '    .78881E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56795E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.7661       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.0404       1.0000          .0000       .10000E+07
    12 'norm      '    1.2705       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11732E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.9302       1.0000          .0000       .10000E+07
    15 'norm      '    7.0294       1.0000          .0000       .10000E+07
    16 'Prefactor '    .46474       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.668       1.0000          .0000       .10000E+07
    18 'Prefactor '    40.678       1.0000          .0000       .10000E+07
    19 'norm      '    .46157E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    15.701       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4421       1.0000          .0000       .10000E+07
    22 'norm      '    2.6254       1.0000          .0000       .10000E+07
    23 'Prefactor '    40.275       1.0000          .0000       .10000E+07
    24 'Prefactor '    .19801E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .57024       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1126       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7054.778     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2380 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.8618        .10252E-06** at limit **
   2  norm          .60889        2.2577        .47328E-07    .21414E-03
   3  Prefactor     3.9538        4.4774       -.28741E-07   -.26589E-03
   4  Prefactor      .0000        5.4312        .23846E-07** at limit **
   5  norm           .0000        .51822       -.21648E-07** at limit **
   6  Prefactor     2.0546        1.5407        .85165E-09    .58825E-02
   7  norm          6.0844        7.8227       -.38939E-07    .41207E-03
   8  Prefactor     .33307E-09    14.711       -.11451E-07** at limit **
   9  Prefactor      .0000        1.8138        .26021E-07** at limit **
  10  norm          3.7649        1.8267        .58414E-08    .33211E-03
  11  Prefactor     3.0210        13.421       -.53745E-07   -.69344E-02
  12  norm          1.2699        1.5581        .14332E-07    .22046E-03
  13  Prefactor     .16653E-09    13.183        .20432E-06** at limit **
  14  Prefactor     2.9202        6.0935        .35874E-07    .14603E-03
  15  norm          7.0492        4.2494       -.17119E-07   -.13816E-03
  16  Prefactor     .59175E-07    168.62       -.14836E-05** at limit **
  17  Prefactor     18.328        6.8287        .16688E-07    .25982E-01
  18  Prefactor     41.231        5.5400        .37194E-07   -.78928E-01
  19  norm           .0000        1.8746       -.86931E-08** at limit **
  20  Prefactor     15.556        1.9111       -.11149E-07   -.93452E-03
  21  Prefactor     1.4239        3.9305        .10487E-06    .25452E-03
  22  norm          2.6371        3.2700        .12076E-07    .25535E-03
  23  Prefactor     40.186        3.2347       -.25361E-07    .55135E-01
  24  Prefactor     .77049E-06    94.548       -.49959E-06** at limit **
  25  Prefactor     .55624        2.2473       -.97901E-10    .11120E-03
  26  Normalizat    1.1130        .17579       -.45260E-06    .15767E-04
  27  Prefactor     .87223        .21392        .78792E-06    .15895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0.608891
  Prefactor  = 3.95381
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.05456
  norm       = 6.08442
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  norm       = 3.76494
  Prefactor  = 3.021
  norm       = 1.2699
  Prefactor  = 1.66533e-10
  Prefactor  = 2.92022
  norm       = 7.04922
  Prefactor  = 5.91749e-08
  Prefactor  = 18.3284
  Prefactor  = 41.2313
  norm       = 0
  Prefactor  = 15.5557
  Prefactor  = 1.42386
  norm       = 2.63708
  Prefactor  = 40.1862
  Prefactor  = 7.70495e-07
  Prefactor  = 0.556243
  Normalizat = 1.11302
  Prefactor  = 0.872234
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.778     FROM HESSE     STATUS=OK           548 CALLS     2928 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.8591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60889        2.2929        .69062E-03   -1.5692    
   3  Prefactor     3.9538        4.5073        .50523E-03   -1.5668    
   4  Prefactor      .0000        5.4241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .51749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0546        34.550        .70707E-03   -1.5679    
   7  norm          6.0844        7.8780        .40236E-03   -1.5659    
   8  Prefactor     .33307E-09    14.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.8175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7649        1.8248        .51998E-03   -1.5669    
  11  Prefactor     3.0210        13.605        .58165E-03   -1.5673    
  12  norm          1.2699        1.5930        .98673E-03   -1.5685    
  13  Prefactor     .16653E-09    13.194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9202        6.1236        .59316E-03   -1.5674    
  15  norm          7.0492        4.3891        .37814E-03   -1.5655    
  16  Prefactor     .59175E-07    171.48        .82339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.328        41.586        .23153E-03   -1.5622    
  18  Prefactor     41.231        41.381        .15681E-03   -1.5580    
  19  norm           .0000        1.8798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.556        44.466        .25250E-03   -1.5629    
  21  Prefactor     1.4239        3.9845        .89781E-03   -1.5684    
  22  norm          2.6371        3.3106        .62913E-03   -1.5675    
  23  Prefactor     40.186        28.304        .15759E-03   -1.5581    
  24  Prefactor     .77049E-06    96.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .55624        2.2611        .71937E-03   -1.5693    
  26  Normalizat    1.1130        .15297        .37509E-01   -.89335    
  27  Prefactor     .87223        .18325        .65470E-01   -.97118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22771e-07
Minuit parameter uncertainties:
  1  2.25223e-05
  2  2.29294
  3  4.50728
  4  3.04235e-06
  5  5.90068e-07
  6  16.8505
  7  7.87802
  8  0.000144248
  9  1.87203e-06
  10  1.82481
  11  12.8221
  12  1.59297
  13  9.58681e-05
  14  6.12359
  15  4.38914
  16  0.00637055
  17  41.5868
  18  41.3808
  19  1.89747e-07
  20  44.4665
  21  3.98452
  22  3.31058
  23  28.3045
  24  0.0172636
  25  2.24295
  26  0.153033
  27  0.18338
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  2.920e+00  6.124e+00  0.000e+00  1.000e+06 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.722e-01  1.834e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.113e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802177/likelihoodResults_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7054.77391143
delta logL = 0.00427601916635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7054.77277462
delta logL = 0.0054128254942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2316       1.0000          .0000       .10000E+07
     2 'Index     '    2.1227       1.0000          .0000       10.000    
     3 'Normalizat'    1.1152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7054.773     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      265 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2350        7.1827        .11265E-03   -.97592E-04
   2  Index         2.1191        1.3666        .65165E-02   -.51902E-05
   3  Normalizat    1.1149        .17303        .21065E-03   -.32274E-04
   4  Prefactor     .87071        .21313        .28982E-03   -.21771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23499
  Index      = 2.11908
  Normalizat = 1.1149
  Prefactor  = 0.870714
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.773     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2350        7.0423        .45059E-05   -1.5672    
   2  Index         2.1191        1.3408        .26066E-03   -.61405    
   3  Normalizat    1.1149        .17315        .84260E-05   -.89275    
   4  Prefactor     .87071        .21330        .11593E-04   -.97172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67884e-12
Minuit parameter uncertainties:
  1  7.04236
  2  1.36614
  3  0.173239
  4  0.213506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802177': 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) = 7054.77276914
delta logL = 0.00541831423379

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  3.235e+00  7.042e+00  0.000e+00  1.000e+06 ( 1.000e-13)
372        Index:  2.119e+00  1.366e+00  0.000e+00  1.000e+01 (-1.000e+00)
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.707e-01  2.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.115e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
Ra Dec: 195.721 57.815

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/802177/cmap_HighResolution_692150401_692409601_4FGL_J1302.8+5748_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2022-12-11 01:08:52.443010', job_id='802177', GAL2='0.87', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1670749732.44', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.42e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1747' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:08:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 802177: <4FGL_J1302.8+5748_daily_bin1747> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin1747 195.721 57.8146 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1302.8+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.41 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             332.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

