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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1714
RA = 203.439, Dec = 50.9366
tmin = 683596801, tmax = 683856001
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='135164', job_status='RUN', time_executed='2022-09-16 17:43:22.294874', time_epoch_executed='1663375402.29' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135164/ft1_4FGL_J1333.7+5056_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135164/ft1_4FGL_J1333.7+5056_daily_bin1714.fits outfile=/scratch/kocevski/135164/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1714.fits ra=203.439 dec=50.9366 rad=12.0 tmin=683596801.0 tmax=683856001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.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/135164/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/135164/ltcube_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.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/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits
.....................!
real 14.74
user 14.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/135164/ltcube_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.fits outfile=/scratch/kocevski/135164/expmap_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.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/135164/ltcube_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.fits
.....................!
real 191.76
user 186.79
sys 4.57

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/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits scfile=/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits outfile=/scratch/kocevski/135164/cmap_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits scfile=/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits outfile=/scratch/kocevski/135164/cmap_HighResolution_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135164/Model_4FGL_J1333.7+5056_daily_bin1714.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/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits.....................!
real 50.30
user 48.90
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits', '/scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits', expMap='/scratch/kocevski/135164/expmap_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.fits', expCube='/scratch/kocevski/135164/ltcube_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135164/Model_4FGL_J1333.7+5056_daily_bin1714.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  0.000e+00  1.000e+06 ( 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 -5.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/135164/ft1_filtered_4FGL_J1333.7+5056_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/135164/ft2_4FGL_J1333.7+5056_daily_bin1714.fits
Exposure map: /scratch/kocevski/135164/expmap_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.fits
Exposure cube: /scratch/kocevski/135164/ltcube_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135164/Model_4FGL_J1333.7+5056_daily_bin1714.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) = 6122.90027614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1367       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10875E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.1431       1.0000          .0000       .10000E+07
     4 'norm      '    1.1361       1.0000          .0000       .10000E+07
     5 'Prefactor '    .47691E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .12285E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10677E-04   1.0000          .0000       .10000E+07
     8 'norm      '    21.421       1.0000          .0000       .10000E+07
     9 'norm      '    1.9575       1.0000          .0000       .10000E+07
    10 'Prefactor '    26.584       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.179       1.0000          .0000       .10000E+07
    12 'norm      '    .99365E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .86353E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.3208       1.0000          .0000       .10000E+07
    15 'norm      '    1.1753       1.0000          .0000       .10000E+07
    16 'norm      '    4.5800       1.0000          .0000       .10000E+07
    17 'Prefactor '    92.350       1.0000          .0000       .10000E+07
    18 'Prefactor '    .43227E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .61671E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11598E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.5032       1.0000          .0000       .10000E+07
    22 'Prefactor '    .37662E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    15.784       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10127E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .73233E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .79207       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0726       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6122.867     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2388 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0602        5.0679       -.43642E-07   -.19792E-03
   2  Prefactor      .0000        5.1479       -.21206E-06** at limit **
   3  Prefactor     2.1455        2.9464        .16938E-06    .16713E-02
   4  norm          1.1376        1.4367        .19688E-06    .21146E-02
   5  Prefactor     .78826E-08    4.2997        .84066E-06** at limit **
   6  norm           .0000        3.5283        .75890E-06** at limit **
   7  Prefactor     .13411E-06    37.972        .34391E-05** at limit **
   8  norm          21.441        3.0453        .51370E-07    .27602E-01
   9  norm          1.9656        4.0992        .47903E-06   -.16727E-02
  10  Prefactor     26.434        3.7774        .19832E-06    .66661E-02
  11  Prefactor     13.718        5.8914       -.47410E-06   -.13748E-01
  12  norm          .22204E-09    7.1491       -.77686E-06** at limit **
  13  Prefactor     .13212E-07    19.818        .98025E-06** at limit **
  14  norm          1.3220        1.1520       -.86007E-07    .84649E-04
  15  norm          1.1806        2.6966       -.27230E-06   -.90996E-03
  16  norm          4.6128        1.3784        .14774E-07   -.16983E-01
  17  Prefactor     92.267        3.8005        .33763E-07    .32041    
  18  Prefactor      .0000        21.893       -.93966E-06** at limit **
  19  Prefactor      .0000        1.2831        .12448E-06** at limit **
  20  Prefactor     .55511E-09    7.8850       -.26754E-06** at limit **
  21  Prefactor     2.4971        2.1399        .11679E-06   -.29199E-02
  22  Prefactor     .17375E-07    6.0880        .94683E-06** at limit **
  23  Prefactor     19.525        53.908       -.36621E-05    .99446E-02
  24  Prefactor     .55234E-07    6.9574        .24674E-06** at limit **
  25  Prefactor     .64893E-07    3.3847        .47716E-06** at limit **
  26  Normalizat    .79111        .17567        .23147E-05    .10675E-03
  27  Prefactor     1.0720        .22584       -.31900E-06    .65283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.06024
  Prefactor  = 0
  Prefactor  = 2.1455
  norm       = 1.1376
  Prefactor  = 7.88258e-09
  norm       = 0
  Prefactor  = 1.34115e-07
  norm       = 21.4408
  norm       = 1.9656
  Prefactor  = 26.4337
  Prefactor  = 13.7181
  norm       = 2.22045e-10
  Prefactor  = 1.32117e-08
  norm       = 1.32196
  norm       = 1.18065
  norm       = 4.61283
  Prefactor  = 92.2665
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 2.49709
  Prefactor  = 1.7375e-08
  Prefactor  = 19.5254
  Prefactor  = 5.52336e-08
  Prefactor  = 6.48925e-08
  Normalizat = 0.791111
  Prefactor  = 1.07199
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.867     FROM HESSE     STATUS=OK           542 CALLS     2930 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0602        5.0789        .44335E-03   -1.5663    
   2  Prefactor      .0000        5.1936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1455        2.9689        .70373E-03   -1.5679    
   4  norm          1.1376        1.4781        .10926E-02   -1.5687    
   5  Prefactor     .78826E-08    10.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        3.4116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13411E-06    37.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.441        14.985        .21612E-03   -1.5615    
   9  norm          1.9656        4.2592        .74122E-03   -1.5680    
  10  Prefactor     26.434        37.560        .19399E-03   -1.5605    
  11  Prefactor     13.718        41.297        .27566E-03   -1.5634    
  12  norm          .22204E-09    7.0751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13212E-07    19.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3220        1.1803        .95703E-03   -1.5685    
  15  norm          1.1806        2.7400        .10562E-02   -1.5686    
  16  norm          4.6128        13.190        .47012E-03   -1.5665    
  17  Prefactor     92.267        51.847        .10407E-03   -1.5516    
  18  Prefactor      .0000        21.505        .15821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.2807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-09    7.9113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4971        2.2116        .64563E-03   -1.5676    
  22  Prefactor     .17375E-07    10.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.525        54.251        .25183E-03   -1.5620    
  24  Prefactor     .55234E-07    10.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .64893E-07    10.129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .79111        .14699        .43507E-01   -1.0040    
  27  Prefactor     1.0720        .18622        .56192E-01   -.90367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9909e-06
Minuit parameter uncertainties:
  1  5.07887
  2  9.40317e-07
  3  2.96889
  4  1.47814
  5  0.000588574
  6  4.88829e-06
  7  0.00449082
  8  14.9852
  9  4.25918
  10  37.5599
  11  41.2979
  12  7.58878e-05
  13  0.00102483
  14  1.18032
  15  2.74003
  16  13.1902
  17  51.8475
  18  1.58028e-05
  19  8.89272e-06
  20  0.000129214
  21  2.21158
  22  0.000873704
  23  54.2524
  24  0.00149169
  25  0.0016217
  26  0.147062
  27  0.186334
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.220e-10  7.589e-05  0.000e+00  1.000e+06 ( 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 -5.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.072e+00  1.863e-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:  7.911e-01  1.471e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135164/likelihoodResults_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.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) = 6121.57585828
delta logL = 1.2913432794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6121.56973121
delta logL = 1.29747035237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15934       1.0000          .0000       .10000E+07
     2 'alpha     '    4.8140       1.0000          .0000       5.0000    
     3 'Normalizat'    .70598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1417       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6121.570     FROM MIGRAD    STATUS=FAILED       102 CALLS      393 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15964        3.9527        .21526E-04** at limit **
   2  alpha         4.8133        2.5933        .41964E-01   -.10608E-04
   3  Normalizat    .70594        .15173        .23396E-03    .87954E-05
   4  Prefactor     1.1416        .19062        .24156E-03    .78598E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6121.570     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      479 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15964        3.9527        .65686E-05** at limit **
   2  alpha         4.8133        2.5933        .10724E-01   -.10608E-04
   3  Normalizat    .70594        .15173        .90002E-04    .87954E-05
   4  Prefactor     1.1416        .19062        .65056E-04    .78598E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6121.570     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      517 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15964        .60166        .43053E-05** at limit **
   2  alpha         4.8133        4.7406        .16786E-02   -.10362E-05
   3  Normalizat    .70594        .18169        .93582E-05    .68031E-05
   4  Prefactor     1.1416        .22966        .96622E-05    .63537E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.159638
  alpha      = 4.81329
  Normalizat = 0.70594
  Prefactor  = 1.14158
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.570     FROM HESSE     STATUS=OK            25 CALLS      542 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15964        .47660        .17221E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.8133        4.3480        .67143E-04    1.1819    
   3  Normalizat    .70594        .18188        .18716E-05   -1.0366    
   4  Prefactor     1.1416        .22985        .19324E-05   -.88148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59995e-13
Minuit parameter uncertainties:
  1  0.476603
  2  1.67593
  3  0.182031
  4  0.230049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135164': 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) = 6121.5697301
delta logL = 1.29747145986

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.596e-01  4.766e-01  0.000e+00  1.000e+06 ( 1.000e-12)
351        alpha:  4.813e+00  1.676e+00  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  8.960e-02  0.000e+00 -5.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.142e+00  2.300e-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:  7.059e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 203.439 50.937
Photon Index (Free Index): 4.81 +/- 1.68
Photon Flux (Free Index): 5.64e-08 +/- 4.04e-08
Energy Flux (Free Index): 7.82e-06 +/- 5.71e-06

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/135164/cmap_HighResolution_683596801_683856001_4FGL_J1333.7+5056_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', comment='SUCCESS', energy_flux2='7.82e-06', dlogl='1.30e+00', photon_flux2='5.64e-08', job_status='DONE', time_completed='2022-09-16 17:55:41.554811', photon_index_error2='1.68', photon_index2='4.81', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='5.49e-08', energy_flux_error2='5.71e-06', EG='0.79', time_epoch_completed='1663376141.55', return_code='0', job_id='135164', GAL2='1.14', EG2='0.71', return_code2='0', photon_flux_error2='4.04e-08', ts2='2.78', photon_index='2.25' WHERE bin_id='1714' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:55:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 135164: <4FGL_J1333.7+5056_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1714> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:40:22 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:42:21 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:42:21 2022
Terminated at Fri Sep 16 17:55:42 2022
Results reported at Fri Sep 16 17:55:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1714 203.439 50.9366 683596801 683856001 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 :                                   740.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            920 sec.

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

