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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1278
RA = 203.439, Dec = 50.9366
tmin = 570585601, tmax = 570844801
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='782524', job_status='RUN', time_executed='2021-09-08 03:50:55.004850', time_epoch_executed='1631098255.0' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782524/ft1_4FGL_J1333.7+5056_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782524/ft1_4FGL_J1333.7+5056_daily_bin1278.fits outfile=/scratch/kocevski/782524/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1278.fits ra=203.439 dec=50.9366 rad=12.0 tmin=570585601.0 tmax=570844801.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.60
user 2.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.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/782524/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1278.fits evtable="EVENTS" outfile="/scratch/kocevski/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.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.60
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/782524/ltcube_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.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/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits
.....................!
real 14.12
user 13.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/782524/ltcube_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.fits outfile=/scratch/kocevski/782524/expmap_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.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/782524/ltcube_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.fits
.....................!
real 161.95
user 152.41
sys 7.16

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/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.fits scfile=/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits outfile=/scratch/kocevski/782524/cmap_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.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 1.30
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.fits scfile=/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits outfile=/scratch/kocevski/782524/cmap_HighResolution_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/782524/ft2_4FGL_J1333.7+5056_daily_bin1278.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782524/Model_4FGL_J1333.7+5056_daily_bin1278.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/782524/ft1_filtered_4FGL_J1333.7+5056_daily_bin1278.fits.....................!
real 42.17
user 39.89
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.918       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8463       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9402       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5693       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10529E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.652       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.988       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.098       1.0000         .10000E-03   10000.    
    17 'norm      '    21.136       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    26.231       1.0000         .10000E-03   10000.    
    21 'Prefactor '    190.63       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.641       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3081       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.1008       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .31951E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1222       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81831       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=   5745.943     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4594 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.922        19.161        .15060E-07   -.50218E-05
   2  Prefactor     .10000E-03    24.514        .55341E-07** at limit **
   3  Prefactor     .10000E-03    11.294        .36758E-07** at limit **
   4  norm          2.9232        3.0535        .55140E-07   -.63185E-05
   5  Prefactor     7.7994        49.358       -.10974E-06    .14291E-04
   6  norm          2.9403        2.7653        .89690E-09   -.43801E-06
   7  Prefactor     .10000E-03    60.417       -.40005E-06** at limit **
   8  Prefactor     5.5686        7.4198        .88202E-07   -.30033E-05
   9  norm          .10000E-03    5.4484        .32410E-07** at limit **
  10  norm          .10002E-03    5.5825       -.63514E-06** at limit **
  11  Prefactor     20.333        73.529       -.72906E-05    .11922E-04
  12  Prefactor     10.706        30.580       -.25734E-05   -.14193E-04
  13  Prefactor     36.703        77.875        .16687E-05   -.56834E-05
  14  norm          1.8382        7.1116        .17130E-05    .15304E-03
  15  Prefactor     38.954        46.716        .13712E-05    .19809E-04
  16  Prefactor     21.099        26.111        .25186E-06   -.62688E-05
  17  norm          21.136        3.4812        .40672E-07   -.70539E-04
  18  norm          .10000E-03    26.841        .35186E-09** at limit **
  19  norm          .10000E-03    1.2544        .67420E-07** at limit **
  20  norm          26.230        21.123        .23320E-06   -.35418E-05
  21  Prefactor     190.63        203.35        .20276E-06   -.23324E-06
  22  Prefactor     .10000E-03    68.779       -.44578E-06** at limit **
  23  Prefactor     16.643        39.788        .94184E-06   -.67529E-05
  24  Prefactor     .10000E-03    1.4446       -.49625E-07** at limit **
  25  Prefactor     .10000E-03    7.8205       -.57451E-07** at limit **
  26  Prefactor     4.3080        2.8478        .14307E-06   -.70955E-05
  27  Prefactor     8.1004        25.267        .85503E-06   -.60249E-05
  28  Prefactor     .10000E-03    37.322        .17120E-06** at limit **
  29  Prefactor     .10000E-03    34.842        .27689E-06** at limit **
  30  Prefactor     .10000E-03    11.373       -.51634E-07** at limit **
  31  Prefactor     .10001E-03    7.0601       -.16947E-06** at limit **
  32  Normalizat    1.1220        .20030       -.86537E-06   -.27334E-04
  33  Prefactor     .81872        .21235       -.82564E-06   -.69836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92316
  Prefactor  = 7.79939
  norm       = 2.94028
  Prefactor  = 0.0001
  Prefactor  = 5.56859
  norm       = 0.0001
  norm       = 0.000100018
  Prefactor  = 20.3329
  Prefactor  = 10.7063
  Prefactor  = 36.7031
  norm       = 1.8382
  Prefactor  = 38.9543
  Prefactor  = 21.0987
  norm       = 21.1359
  norm       = 0.0001
  norm       = 0.0001
  norm       = 26.23
  Prefactor  = 190.632
  Prefactor  = 0.0001
  Prefactor  = 16.6431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.308
  Prefactor  = 8.1004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Normalizat = 1.12198
  Prefactor  = 0.81872
 **********
 **   18 **HESSE 
 **********

 FCN=   5745.943     FROM HESSE     STATUS=OK           701 CALLS     5295 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.922        19.143        .11604E-03   -1.5017    
   2  Prefactor     .10000E-03    24.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9232        3.0404        .13096E-03   -1.5366    
   5  Prefactor     7.7994        49.790        .14315E-03   -1.5149    
   6  norm          2.9403        2.7720        .11849E-03   -1.5365    
   7  Prefactor     .10000E-03    60.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5686        7.4133        .17024E-03   -1.5236    
   9  norm          .10000E-03    5.4491        .17281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    15.301        .30252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.333        73.151        .88627E-04   -1.4806    
  12  Prefactor     10.706        31.417        .12260E-03   -1.5053    
  13  Prefactor     36.703        77.460        .66199E-04   -1.4496    
  14  norm          1.8382        7.5374        .14900E-02   -1.5437    
  15  Prefactor     38.954        46.712        .64192E-04   -1.4459    
  16  Prefactor     21.099        26.149        .87201E-04   -1.4789    
  17  norm          21.136        3.4977        .52104E-04   -1.4788    
  18  norm          .10000E-03    26.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2659        .82880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          26.230        21.165        .78217E-04   -1.4683    
  21  Prefactor     190.63        203.35        .29251E-04   -1.2938    
  22  Prefactor     .10000E-03    69.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.643        39.966        .98183E-04   -1.4892    
  24  Prefactor     .10000E-03    1.4466        .88902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.8330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.3080        2.8276        .46346E-03   -1.5293    
  27  Prefactor     8.1004        25.201        .14087E-03   -1.5139    
  28  Prefactor     .10000E-03    37.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    34.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    41.839        .38394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1220        .24411        .23724E-03   -.89049    
  33  Prefactor     .81872        .25460        .32081E-03   -.99042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56218e-09
Minuit parameter uncertainties:
  1  19.1525
  2  1.20538e-05
  3  1.28356e-05
  4  3.04061
  5  39.4604
  6  2.77209
  7  2.16615e-05
  8  7.41455
  9  2.1256e-06
  10  0.00104381
  11  73.4761
  12  31.4652
  13  77.6731
  14  7.44596
  15  46.7554
  16  26.1632
  17  3.49775
  18  1.60526e-06
  19  1.22606e-06
  20  21.171
  21  204.107
  22  1.34456e-05
  23  40.0298
  24  7.16126e-07
  25  9.24741e-06
  26  2.82764
  27  25.2343
  28  4.0225e-05
  29  5.62963e-05
  30  1.95588e-06
  31  0.00128816
  32  0.244355
  33  0.254964
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.838e+00  7.446e+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:  8.187e-01  2.550e-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.122e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 203.439 50.937
Photon Flux Upper Limit: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782524/likelihoodResults_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.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) = 5744.57627223
delta logL = 1.36715057342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.38615282
delta logL = 1.55726998297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21909       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91665       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.

 FCN=   5744.386     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      323 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21881        3.9088        .47782E-02    .16463E-02
   2  alpha         5.0000        4.9894        .46269    ** at limit **
   3  Normalizat    1.0002        .10266        .46168E-01    .81355E-05
   4  Prefactor     .91678        .11712        .68907E-01    .14624E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.218812
  alpha      = 5
  Normalizat = 1.00018
  Prefactor  = 0.916781
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.386     FROM HESSE     STATUS=OK            35 CALLS      358 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21881        .17077        .21536E-04   -1.5614    
   2  alpha         5.0000        .83709        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0002        .22642        .24852E-03   -.93024    
   4  Prefactor     .91678        .25903        .30483E-03   -.95557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28246e-11
Minuit parameter uncertainties:
  1  0.170775
  2  4.79403e-05
  3  0.226639
  4  0.259378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782524': 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) = 5744.38614063
delta logL = 1.55728217279

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.188e-01  1.708e-01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  5.000e+00  4.794e-05  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:  9.168e-01  2.594e-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.000e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 203.439 50.937
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.07e-07 +/- 8.34e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.14e-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/782524/cmap_HighResolution_570585601_570844801_4FGL_J1333.7+5056_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='1.56e+00', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-08 04:05:42.433209', photon_index_error2='0.00', photon_index2='5.00', ts='0.11', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.63e-08', energy_flux_error2='1.14e-05', EG='1.12', time_epoch_completed='1631099142.43', return_code='0', job_id='782524', GAL2='0.92', EG2='1.00', return_code2='0', photon_flux_error2='8.34e-08', ts2='3.48', photon_index='2.25' WHERE bin_id='1278' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:05:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 782524: <4FGL_J1333.7+5056_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1278> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 03:50:25 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:50:41 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:50:41 2021
Terminated at Wed Sep  8 04:05:43 2021
Results reported at Wed Sep  8 04:05:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1278 203.439 50.9366 570585601 570844801 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 :                                   866.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            918 sec.

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

