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 62 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1674
RA = 203.439, Dec = 50.9366
tmin = 673228801, tmax = 673488001
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='670397', job_status='RUN', time_executed='2022-05-06 02:52:11.731169', time_epoch_executed='1651830731.73' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670397/ft1_4FGL_J1333.7+5056_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670397/ft1_4FGL_J1333.7+5056_daily_bin1674.fits outfile=/scratch/kocevski/670397/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1674.fits ra=203.439 dec=50.9366 rad=12.0 tmin=673228801.0 tmax=673488001.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.74
user 2.55
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.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/670397/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 990

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670397/ltcube_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.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/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits
.....................!
real 13.27
user 12.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670397/ltcube_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.fits outfile=/scratch/kocevski/670397/expmap_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.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/670397/ltcube_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.fits
.....................!
real 192.16
user 186.31
sys 5.29

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

Setting source of interest to:
4FGL J1333.7+5056 @ 203.439 50.9366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits scfile=/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits outfile=/scratch/kocevski/670397/cmap_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.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=203.439 yref=50.9366 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits scfile=/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits outfile=/scratch/kocevski/670397/cmap_HighResolution_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.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=203.439 yref=50.9366 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670397/Model_4FGL_J1333.7+5056_daily_bin1674.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/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits.....................!
real 80.92
user 79.52
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits', '/scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits', expMap='/scratch/kocevski/670397/expmap_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.fits', expCube='/scratch/kocevski/670397/ltcube_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670397/Model_4FGL_J1333.7+5056_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.7+5056'

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.543e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/670397/ft1_filtered_4FGL_J1333.7+5056_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670397/ft2_4FGL_J1333.7+5056_daily_bin1674.fits
Exposure map: /scratch/kocevski/670397/expmap_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670397/ltcube_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670397/Model_4FGL_J1333.7+5056_daily_bin1674.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) = 10844.747256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9116       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1981       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .51974       1.0000         .10000E-03   10000.    
    10 'norm      '    .76342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2876       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.208       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.083       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .55648E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1575       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.3034       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10844.68     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4639 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8062        5.9181       -.16857E-07    .60825E-04
   2  Prefactor     8.5078        14.945        .97151E-07    .55760E-04
   3  Prefactor     .10000E-03    1.9947       -.60687E-08** at limit **
   4  norm          4.9124        1.8055        .13849E-07    .42518E-03
   5  Prefactor     8.1950        10.477        .12668E-06    .99374E-04
   6  norm          2.0117        1.3872        .10300E-07    .25342E-03
   7  Prefactor     .10003E-03    108.32       -.71115E-05** at limit **
   8  Prefactor     .10000E-03    10.046       -.85185E-06** at limit **
   9  norm          .52581        6.7962        .22720E-05   -.17743E-03
  10  norm          .76652        1.6822       -.51848E-06   -.61655E-03
  11  Prefactor     52.042        26.702        .67605E-06    .33138E-03
  12  Prefactor     .10000E-03    5.9968        .22517E-06** at limit **
  13  Prefactor     .10000E-03    7.5938       -.51118E-06** at limit **
  14  norm          .10000E-03    .78776       -.26240E-07** at limit **
  15  Prefactor     .10000E-03    8.2026        .44667E-06** at limit **
  16  Prefactor     .10000E-03    18.341       -.43230E-06** at limit **
  17  norm          .10000E-03    .26101       -.34261E-07** at limit **
  18  norm          .10000E-03    13.532        .11044E-05** at limit **
  19  norm          3.2873        2.9869        .12613E-07    .25291E-03
  20  norm          .10000E-03    6.0296       -.30070E-06** at limit **
  21  Prefactor     .10009E-03    164.43        .11348E-04** at limit **
  22  Prefactor     .10000E-03    18.343       -.43102E-06** at limit **
  23  Prefactor     10.196        30.443        .48351E-07    .44801E-04
  24  Prefactor     .10000E-03    1.7117       -.72717E-07** at limit **
  25  Prefactor     .10000E-03    8.6297        .21310E-06** at limit **
  26  Prefactor     .10000E-03    .75407        .55846E-06** at limit **
  27  Prefactor     15.066        18.548       -.70563E-06   -.65998E-04
  28  Prefactor     .10004E-03    28.225       -.92721E-05** at limit **
  29  Prefactor     .10000E-03    16.531       -.83715E-07** at limit **
  30  Prefactor     1.2195        83.571       -.29860E-05    .68307E-05
  31  Prefactor     6.3035        8.4447        .34144E-06    .82409E-03
  32  Normalizat    1.0114        .12632        .29306E-06    .56218E-03
  33  Prefactor     1.1564        .15451       -.55981E-07    .41284E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.80616
  Prefactor  = 8.50781
  Prefactor  = 0.0001
  norm       = 4.91244
  Prefactor  = 8.19503
  norm       = 2.01174
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  norm       = 0.525812
  norm       = 0.766516
  Prefactor  = 52.0425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 3.28725
  norm       = 0.0001
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 10.196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.0656
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 1.21953
  Prefactor  = 6.30354
  Normalizat = 1.01144
  Prefactor  = 1.1564
 **********
 **   18 **HESSE 
 **********

 FCN=   10844.68     FROM HESSE     STATUS=OK           693 CALLS     5332 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8062        5.9074        .12797E-03   -1.5082    
   2  Prefactor     8.5078        14.916        .13742E-03   -1.5125    
   3  Prefactor     .10000E-03    2.0178        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9124        1.8022        .82037E-04   -1.5265    
   5  Prefactor     8.1950        10.472        .14002E-03   -1.5135    
   6  norm          2.0117        1.3804        .98600E-04   -1.5424    
   7  Prefactor     .10003E-03    113.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52581        37.075        .46816E-02   -1.5563    
  10  norm          .76652        1.5954        .19795E-02   -1.5533    
  11  Prefactor     52.042        26.691        .55581E-04   -1.4264    
  12  Prefactor     .10000E-03    6.1226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .80100        .90243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.2173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26646        .51936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2873        2.9679        .16257E-03   -1.5345    
  20  norm          .10000E-03    6.0549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10009E-03    172.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.196        30.336        .12541E-03   -1.5069    
  24  Prefactor     .10000E-03    1.7406        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.7200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.7217        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.066        17.867        .10313E-03   -1.4931    
  28  Prefactor     .10004E-03    33.247        .53407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.2195        81.491        .42883E-03   -1.5487    
  31  Prefactor     6.3035        8.6653        .79940E-03   -1.5206    
  32  Normalizat    1.0114        .15385        .22830E-03   -.92648    
  33  Prefactor     1.1564        .18875        .26948E-03   -.87684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62898e-09
Minuit parameter uncertainties:
  1  5.90775
  2  14.9223
  3  8.80161e-07
  4  1.8022
  5  10.4739
  6  1.38039
  7  0.00369684
  8  0.00012396
  9  8.83543
  10  1.59547
  11  26.6967
  12  2.0415e-05
  13  7.83896e-05
  14  2.0738e-06
  15  6.50384e-05
  16  9.64521e-05
  17  1.33224e-06
  18  0.000210127
  19  2.96807
  20  3.97663e-05
  21  0.00771279
  22  9.59053e-05
  23  30.3814
  24  8.32492e-06
  25  2.28181e-05
  26  0.000133348
  27  17.8737
  28  0.00227623
  29  1.45656e-05
  30  19.9656
  31  8.66703
  32  0.153913
  33  0.18886
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  2.074e-06  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.156e+00  1.889e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.011e+00  1.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.439 50.937
Photon Flux Upper Limit: 2.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670397/likelihoodResults_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.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) = 10844.688691
delta logL = -0.00589918222977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10844.6827913
delta logL = 4.71009116154e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2399       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1564       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   10844.68     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      243 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.764        .90933E-02** at limit **
   2  alpha         1.8855        3.6007        .50000       -.38654E-08
   3  Normalizat    1.0114        .12090E-01    .22830E-03    .33027E-03
   4  Prefactor     1.1564        .15205E-01    .26948E-03    .29550E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88546
  Normalizat = 1.01144
  Prefactor  = 1.1564
 **********
 **   18 **HESSE 
 **********

 FCN=   10844.68     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    107.60        .95426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8855        2.9758        .50000       -.24836    
   3  Normalizat    1.0114        .39691E-01    .45660E-04   -.92648    
   4  Prefactor     1.1564        .49917E-01    .53896E-04   -.87684    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3849e-10
Minuit parameter uncertainties:
  1  2.32655e-05
  2  914.598
  3  0.0396923
  4  0.0499186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670397': 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) = 10844.6827856
delta logL = 6.25619395578e-06

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  2.327e-05  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  1.885e+00  9.146e+02  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.156e+00  4.992e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.011e+00  3.969e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.439 50.937

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/670397/cmap_HighResolution_673228801_673488001_4FGL_J1333.7+5056_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-06', job_status='DONE', photon_flux_upper_limit='2.37e-08', time_completed='2022-05-06 03:18:49.671791', job_id='670397', GAL2='1.16', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1651832329.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='6.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1674' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:18:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 670414: <4FGL_J1333.7+5056_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:35 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:51:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:51:08 2022
Terminated at Fri May  6 03:18:16 2022
Results reported at Fri May  6 03:18:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1674 203.439 50.9366 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.7+5056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1603.30 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1628 sec.
    Turnaround time :                            11441 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 670397: <4FGL_J1333.7+5056_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:34 2022
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:51:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:51:01 2022
Terminated at Fri May  6 03:18:50 2022
Results reported at Fri May  6 03:18:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1674 203.439 50.9366 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.7+5056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1598.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1668 sec.
    Turnaround time :                            11476 sec.

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

