/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 239 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1333.7+5056_daily_bin24
RA = 203.439, Dec = 50.9366
tmin = 245548801, tmax = 245808001
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='774986', job_status='RUN', time_executed='2021-09-08 03:29:49.902885', time_epoch_executed='1631096989.9' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774986/ft1_4FGL_J1333.7+5056_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774986/ft1_4FGL_J1333.7+5056_daily_bin24.fits outfile=/scratch/kocevski/774986/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin24.fits ra=203.439 dec=50.9366 rad=12.0 tmin=245548801.0 tmax=245808001.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 1.23
user 1.04
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774986/ft1_filtered_4FGL_J1333.7+5056_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/774986/ltcube_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.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/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits
.....................!
real 12.57
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774986/ft1_filtered_4FGL_J1333.7+5056_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/774986/ltcube_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.fits outfile=/scratch/kocevski/774986/expmap_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.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/774986/ltcube_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.fits
.....................!
real 156.07
user 151.64
sys 3.96

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/774986/ft1_filtered_4FGL_J1333.7+5056_daily_bin24.fits scfile=/scratch/kocevski/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits outfile=/scratch/kocevski/774986/cmap_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774986/ft1_filtered_4FGL_J1333.7+5056_daily_bin24.fits scfile=/scratch/kocevski/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits outfile=/scratch/kocevski/774986/cmap_HighResolution_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.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.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/774986/ft1_filtered_4FGL_J1333.7+5056_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/774986/ft2_4FGL_J1333.7+5056_daily_bin24.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774986/Model_4FGL_J1333.7+5056_daily_bin24.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/774986/ft1_filtered_4FGL_J1333.7+5056_daily_bin24.fits.....................!
real 40.03
user 38.86
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4600       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11373E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.050       1.0000         .10000E-03   10000.    
    10 'norm      '    5.5798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38254E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47468E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.197       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.177       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0517       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    23.416       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35348E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3736       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2990       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .48016       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.567       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .23212       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67712       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1567       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=   5960.170     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     4700 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.352        8.5226       -.11227E-06    .64785E-04
   2  Prefactor     .10000E-03    8.4077       -.87474E-07** at limit **
   3  Prefactor     .10000E-03    1.8056       -.85697E-07** at limit **
   4  norm          2.5503        1.6879        .30734E-08    .13373E-04
   5  Prefactor     .10000E-03    4.0973       -.55520E-07** at limit **
   6  norm          2.4601        2.2640       -.51008E-06    .65124E-03
   7  Prefactor     .10000E-03    32.737       -.21745E-05** at limit **
   8  Prefactor     .10000E-03    13.644       -.86947E-06** at limit **
   9  norm          15.051        12.040       -.18857E-06    .72647E-04
  10  norm          5.5809        4.0501       -.25892E-06    .63088E-04
  11  Prefactor     46.205        34.486        .44109E-06   -.26115E-03
  12  Prefactor     .10021E-03    13.582        .13455E-04** at limit **
  13  Prefactor     .10001E-03    58.766        .21751E-05** at limit **
  14  norm          5.6825        3.9287       -.15021E-05   -.86924E-03
  15  Prefactor     52.181        49.585       -.55881E-06   -.19408E-04
  16  Prefactor     43.171        45.050        .92699E-06    .49557E-04
  17  norm          2.0520        1.2609       -.11211E-06    .22188E-03
  18  norm          .10000E-03    23.743        .49132E-06** at limit **
  19  norm          .10000E-03    1.3096        .34362E-06** at limit **
  20  norm          23.419        17.353       -.18616E-06    .26213E-04
  21  Prefactor     .10004E-03    596.74        .34946E-04** at limit **
  22  Prefactor     .10000E-03    11.467        .54582E-06** at limit **
  23  Prefactor     4.9624        72.975        .57128E-05    .57110E-04
  24  Prefactor     7.3739        5.8136       -.51330E-06    .39007E-03
  25  Prefactor     6.3010        11.388       -.53152E-06    .12022E-03
  26  Prefactor     .48010        1.4075       -.23454E-05    .69191E-04
  27  Prefactor     17.570        18.868        .23523E-05    .17535E-03
  28  Prefactor     .10000E-03    60.517        .69155E-05** at limit **
  29  Prefactor     .10000E-03    37.659        .11913E-05** at limit **
  30  Prefactor     .10000E-03    11.145       -.38319E-06** at limit **
  31  Prefactor     .18055        176.86        .74000E-04   -.56776E-04
  32  Normalizat    .67673        .15945        .29507E-05    .13509E-03
  33  Prefactor     1.1571        .19452       -.16686E-05   -.26452E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5503
  Prefactor  = 0.0001
  norm       = 2.46011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0509
  norm       = 5.58089
  Prefactor  = 46.2045
  Prefactor  = 0.000100205
  Prefactor  = 0.000100015
  norm       = 5.6825
  Prefactor  = 52.1807
  Prefactor  = 43.1706
  norm       = 2.052
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.4192
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 4.96236
  Prefactor  = 7.37394
  Prefactor  = 6.30097
  Prefactor  = 0.480102
  Prefactor  = 17.5701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.180546
  Normalizat = 0.676734
  Prefactor  = 1.15709
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.170     FROM HESSE     STATUS=OK           705 CALLS     5405 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.352        8.5238        .93494E-04   -1.4851    
   2  Prefactor     .10000E-03    8.4166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8156        .10129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5503        1.6916        .79311E-04   -1.5389    
   5  Prefactor     .10000E-03    4.0986        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4601        2.2519        .10706E-03   -1.5394    
   7  Prefactor     .10000E-03    32.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.212        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.051        12.039        .10324E-03   -1.4932    
  10  norm          5.5809        4.0419        .12425E-03   -1.5235    
  11  Prefactor     46.205        34.391        .58975E-04   -1.4347    
  12  Prefactor     .10021E-03    77.212        .43743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    60.443        .42366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6825        3.7117        .11531E-03   -1.5231    
  15  Prefactor     52.181        49.471        .55513E-04   -1.4262    
  16  Prefactor     43.171        45.091        .61010E-04   -1.4393    
  17  norm          2.0520        1.2532        .65090E-04   -1.5421    
  18  norm          .10000E-03    23.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3177        .86197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.419        17.358        .82778E-04   -1.4740    
  21  Prefactor     .10004E-03    597.81        .19643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9624        71.901        .18079E-03   -1.5262    
  24  Prefactor     7.3739        5.7641        .14568E-03   -1.5165    
  25  Prefactor     6.3010        11.370        .15994E-03   -1.5206    
  26  Prefactor     .48010        1.4219        .15021E-03   -1.5569    
  27  Prefactor     17.570        18.857        .95559E-04   -1.4869    
  28  Prefactor     .10000E-03    62.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    37.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .18055        13.421        .77270E-01   -1.5623    
  32  Normalizat    .67673        .18727        .24917E-03   -1.0482    
  33  Prefactor     1.1571        .22743        .24792E-03   -.87662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65544e-09
Minuit parameter uncertainties:
  1  8.52437
  2  5.99847e-06
  3  4.72112e-06
  4  1.69167
  5  3.71235e-06
  6  2.25198
  7  3.73879e-05
  8  9.16713e-05
  9  12.0411
  10  4.04207
  11  34.4059
  12  0.00797535
  13  0.00190356
  14  3.71187
  15  49.5103
  16  45.127
  17  1.25325
  18  2.8447e-05
  19  1.58932e-05
  20  17.3616
  21  0.00946835
  22  4.65288e-06
  23  37.8328
  24  5.76453
  25  11.374
  26  1.42202
  27  18.8637
  28  0.000298504
  29  0.000143526
  30  1.94148e-05
  31  3.11308
  32  0.187446
  33  0.227625
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  5.682e+00  3.712e+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:  1.157e+00  2.276e-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:  6.767e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.14
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 9.21e-06

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) = 5960.15895861
delta logL = 0.0112573661454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5960.15585926
delta logL = 0.0143567200512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0037       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1678       1.0000          .0000       5.0000    
     3 'Normalizat'    .67876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1552       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=   5960.156     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0040        4.3131        .11876E-03   -.21060E-02
   2  alpha         2.1677        .50534        .12560E-01   -.20497E-03
   3  Normalizat    .67876        .17688        .24883E-03    .95534E-04
   4  Prefactor     1.1552        .22553        .24809E-03    .11933E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00402
  alpha      = 2.1677
  Normalizat = 0.678758
  Prefactor  = 1.15522
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.156     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0040        4.2477        .47505E-05   -1.5218    
   2  alpha         2.1677        .49776        .50239E-03   -.13331    
   3  Normalizat    .67876        .17702        .99532E-05   -1.0474    
   4  Prefactor     1.1552        .22571        .49619E-04   -.87721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94987e-09
Minuit parameter uncertainties:
  1  4.24793
  2  0.501169
  3  0.177172
  4  0.225898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774986': 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) = 5960.15585926
delta logL = 0.0143567238938

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  6.004e+00  4.248e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.168e+00  5.012e-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:  1.155e+00  2.259e-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:  6.788e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.17 +/- 0.50
Photon Flux (Free Index): 3.52e-08 +/- 2.49e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.16e-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/774986/cmap_HighResolution_245548801_245808001_4FGL_J1333.7+5056_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='1.51e-05', photon_flux_error='2.40e-08', dlogl='1.44e-02', energy_flux='1.41e-05', photon_flux2='3.52e-08', job_status='DONE', time_completed='2021-09-08 03:42:00.861190', photon_index_error2='0.50', photon_index2='2.17', ts='4.14', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.68', time_epoch_completed='1631097720.86', return_code='0', job_id='774986', GAL2='1.16', EG2='0.68', return_code2='0', energy_flux_error='9.21e-06', photon_flux_error2='2.49e-08', ts2='4.16', photon_index='2.25' WHERE bin_id='24' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 774986: <4FGL_J1333.7+5056_daily_bin24> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin24> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:25:27 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:25:40 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:25:40 2021
Terminated at Wed Sep  8 03:42:01 2021
Results reported at Wed Sep  8 03:42:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin24 203.439 50.9366 245548801 245808001 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 :                                   727.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            994 sec.

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

