/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 118 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 = 7647
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1137
RA = 203.439, Dec = 50.9366
tmin = 534038401, tmax = 534297601
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='779661', job_status='RUN', time_executed='2021-09-08 03:42:49.614342', time_epoch_executed='1631097769.61' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779661

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779661/ft1_4FGL_J1333.7+5056_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779661/ft1_4FGL_J1333.7+5056_daily_bin1137.fits outfile=/scratch/kocevski/779661/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1137.fits ra=203.439 dec=50.9366 rad=12.0 tmin=534038401.0 tmax=534297601.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.76
user 3.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/779661/ltcube_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.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/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits
.....................!
real 15.87
user 15.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/779661/ltcube_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.fits outfile=/scratch/kocevski/779661/expmap_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.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/779661/ltcube_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.fits
.....................!
real 191.71
user 186.31
sys 4.46

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/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits scfile=/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits outfile=/scratch/kocevski/779661/cmap_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits scfile=/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits outfile=/scratch/kocevski/779661/cmap_HighResolution_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.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/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779661/Model_4FGL_J1333.7+5056_daily_bin1137.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/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits.....................!
real 45.48
user 44.06
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits', '/scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits', expMap='/scratch/kocevski/779661/expmap_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.fits', expCube='/scratch/kocevski/779661/ltcube_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779661/Model_4FGL_J1333.7+5056_daily_bin1137.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/779661/ft1_filtered_4FGL_J1333.7+5056_daily_bin1137.fits
Spacecraft file(s): /scratch/kocevski/779661/ft2_4FGL_J1333.7+5056_daily_bin1137.fits
Exposure map: /scratch/kocevski/779661/expmap_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.fits
Exposure cube: /scratch/kocevski/779661/ltcube_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779661/Model_4FGL_J1333.7+5056_daily_bin1137.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) = 5230.49766155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8218       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.619       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7294       1.0000         .10000E-03   10000.    
    10 'norm      '    7.0123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    92.427       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4410       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5185       1.0000         .10000E-03   10000.    
    14 'norm      '    6.4443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.294       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1620       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8693       1.0000         .10000E-03   10000.    
    20 'norm      '    6.2983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    69.521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1573       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.6287       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7521       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.984       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.8929       1.0000         .10000E-03   10000.    
    30 'Prefactor '    40.455       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .99635       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .76954       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=   5230.472     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4590 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1070        .41565E-07** at limit **
   2  Prefactor     20.226        26.157        .13847E-06   -.87063E-05
   3  Prefactor     .10000E-03    4.7457        .17098E-07** at limit **
   4  norm          3.8221        2.4595       -.23866E-06   -.11645E-02
   5  Prefactor     13.619        16.393       -.21766E-06   -.28687E-05
   6  norm          2.4731        2.0514       -.98528E-07   -.18604E-03
   7  Prefactor     36.914        58.490       -.16717E-04   -.11899E-05
   8  Prefactor     .10000E-03    4.0807       -.12748E-06** at limit **
   9  norm          7.7298        15.935        .30415E-05   -.20726E-04
  10  norm          7.0124        4.3126       -.90480E-07    .18869E-04
  11  Prefactor     92.428        56.813        .88539E-06    .81390E-05
  12  Prefactor     4.4426        18.602       -.40584E-05   -.90987E-04
  13  Prefactor     7.5182        73.812       -.24287E-05   -.95310E-05
  14  norm          6.4442        5.0640        .35538E-06   -.73152E-04
  15  Prefactor     .10000E-03    34.371        .17323E-04** at limit **
  16  Prefactor     40.299        44.583        .25699E-05   -.21795E-04
  17  norm          2.1621        1.4464       -.47619E-07   -.14416E-03
  18  norm          .10000E-03    32.790       -.17444E-04** at limit **
  19  norm          1.8692        2.1919       -.10841E-06   -.14802E-04
  20  norm          6.2959        17.012        .20036E-05   -.36704E-04
  21  Prefactor     .10000E-03    181.83       -.24652E-05** at limit **
  22  Prefactor     .10000E-03    20.952        .11243E-05** at limit **
  23  Prefactor     69.525        43.044        .22552E-05    .44526E-04
  24  Prefactor     1.1561        2.9313       -.77305E-06   -.12215E-02
  25  Prefactor     5.6301        13.175       -.36182E-06   -.41748E-04
  26  Prefactor     4.7517        2.6733        .24660E-08   -.93654E-04
  27  Prefactor     20.983        18.611        .23350E-06   -.18387E-05
  28  Prefactor     .10000E-03    12.720        .55241E-07** at limit **
  29  Prefactor     7.8797        86.450       -.26913E-04   -.26659E-05
  30  Prefactor     40.456        32.634        .68131E-07    .13992E-05
  31  Prefactor     .10000E-03    7.6673        .35867E-06** at limit **
  32  Normalizat    .99627        .18170        .45510E-07    .29554E-04
  33  Prefactor     .76964        .20623        .19424E-05   -.49861E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.2259
  Prefactor  = 0.0001
  norm       = 3.82206
  Prefactor  = 13.6194
  norm       = 2.47311
  Prefactor  = 36.9136
  Prefactor  = 0.0001
  norm       = 7.72976
  norm       = 7.0124
  Prefactor  = 92.4281
  Prefactor  = 4.44261
  Prefactor  = 7.51819
  norm       = 6.44423
  Prefactor  = 0.0001
  Prefactor  = 40.2991
  norm       = 2.16209
  norm       = 0.0001
  norm       = 1.86923
  norm       = 6.29591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.5248
  Prefactor  = 1.15608
  Prefactor  = 5.63014
  Prefactor  = 4.75172
  Prefactor  = 20.9833
  Prefactor  = 0.0001
  Prefactor  = 7.87969
  Prefactor  = 40.4563
  Prefactor  = 0.0001
  Normalizat = 0.99627
  Prefactor  = 0.769643
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.472     FROM HESSE     STATUS=OK           705 CALLS     5295 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1184        .14296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.226        26.317        .89055E-04   -1.4808    
   3  Prefactor     .10000E-03    4.9079        .30717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8221        2.4644        .44168E-03   -1.5317    
   5  Prefactor     13.619        16.388        .10854E-03   -1.4970    
   6  norm          2.4731        2.0444        .91424E-04   -1.5393    
   7  Prefactor     36.914        58.337        .65951E-04   -1.4492    
   8  Prefactor     .10000E-03    4.0918        .14265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7298        15.903        .14424E-03   -1.5152    
  10  norm          7.0124        4.3098        .11214E-03   -1.5178    
  11  Prefactor     92.428        56.334        .41801E-04   -1.3782    
  12  Prefactor     4.4426        18.488        .19108E-03   -1.5286    
  13  Prefactor     7.5182        71.937        .14626E-03   -1.5160    
  14  norm          6.4442        5.0242        .12302E-03   -1.5200    
  15  Prefactor     .10000E-03    34.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.299        44.845        .63147E-04   -1.4437    
  17  norm          2.1621        1.4428        .67594E-04   -1.5414    
  18  norm          .10000E-03    32.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8692        2.1853        .11236E-03   -1.5435    
  20  norm          6.2959        17.039        .15994E-03   -1.5206    
  21  Prefactor     .10000E-03    181.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     69.525        42.927        .48142E-04   -1.4038    
  24  Prefactor     1.1561        2.3471        .19141E-02   -1.5493    
  25  Prefactor     5.6301        13.160        .16932E-03   -1.5233    
  26  Prefactor     4.7517        2.6705        .84369E-04   -1.5272    
  27  Prefactor     20.983        18.618        .87437E-04   -1.4791    
  28  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.8797        86.189        .14272E-03   -1.5146    
  30  Prefactor     40.456        32.631        .63021E-04   -1.4435    
  31  Prefactor     .10000E-03    7.6866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .99627        .21976        .21913E-03   -.93156    
  33  Prefactor     .76964        .24531        .29970E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79845e-10
Minuit parameter uncertainties:
  1  3.44206e-06
  2  26.3324
  3  2.71765e-06
  4  2.46449
  5  16.3932
  6  2.04444
  7  58.4274
  8  1.58673e-06
  9  15.912
  10  4.30994
  11  56.3662
  12  18.1351
  13  46.5849
  14  5.02449
  15  4.09648e-05
  16  44.8829
  17  1.44282
  18  3.31807e-07
  19  2.18542
  20  17.0518
  21  2.45576e-05
  22  6.79211e-06
  23  42.9464
  24  2.34725
  25  13.1668
  26  2.67057
  27  18.6236
  28  8.81412e-06
  29  52.2162
  30  32.645
  31  5.5754e-05
  32  0.219958
  33  0.245662
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  6.444e+00  5.024e+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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.696e-01  2.457e-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:  9.963e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.25e-05

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) = 5230.46465633
delta logL = 0.0069870569705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5230.46277889
delta logL = 0.00886449422069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6871       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1228       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76477       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=   5230.463     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6870        4.9567        .12750E-03    .65653E-03
   2  alpha         2.1248        .94334        .16791E-01    .46842E-04
   3  Normalizat    1.0024        .20049        .21857E-03   -.78541E-04
   4  Prefactor     .76448        .24076        .30061E-03   -.10714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.68697
  alpha      = 2.1248
  Normalizat = 1.00236
  Prefactor  = 0.76448
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.463     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6870        4.8868        .51000E-05   -1.5191    
   2  alpha         2.1248        .92985        .67165E-03   -.15065    
   3  Normalizat    1.0024        .20043        .87428E-05   -.92951    
   4  Prefactor     .76448        .24081        .12024E-04   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7674e-10
Minuit parameter uncertainties:
  1  4.88707
  2  0.953307
  3  0.200578
  4  0.241137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779661': 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) = 5230.46277286
delta logL = 0.00887053134011

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  6.687e+00  4.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.125e+00  9.533e-01  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:  7.645e-01  2.411e-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.002e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.12 +/- 0.95
Photon Flux (Free Index): 3.74e-08 +/- 4.14e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.51e-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/779661/cmap_HighResolution_534038401_534297601_4FGL_J1333.7+5056_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='1.70e-05', photon_flux_error='3.26e-08', dlogl='8.87e-03', energy_flux='1.60e-05', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-09-08 03:57:01.961149', photon_index_error2='0.95', photon_index2='2.12', ts='4.70', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.00', time_epoch_completed='1631098621.96', return_code='0', job_id='779661', GAL2='0.76', EG2='1.00', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.14e-08', ts2='4.71', photon_index='2.25' WHERE bin_id='1137' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 779661: <4FGL_J1333.7+5056_daily_bin1137> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1137> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 03:40:37 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:40:42 2021
Terminated at Wed Sep  8 03:57:02 2021
Results reported at Wed Sep  8 03:57:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1137 203.439 50.9366 534038401 534297601 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 :                                   845.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            985 sec.

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

