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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1
RA = 203.439, Dec = 50.9366
tmin = 239587201, tmax = 239846401
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='773818', job_status='RUN', time_executed='2021-09-08 03:24:38.852082', time_epoch_executed='1631096678.85' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773818

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773818/ft1_4FGL_J1333.7+5056_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773818/ft1_4FGL_J1333.7+5056_daily_bin1.fits outfile=/scratch/kocevski/773818/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1.fits ra=203.439 dec=50.9366 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.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/773818/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/773818/ltcube_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.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/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits
.....................!
real 17.78
user 17.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/773818/ltcube_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.fits outfile=/scratch/kocevski/773818/expmap_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.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/773818/ltcube_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.fits
.....................!
real 193.40
user 187.88
sys 4.67

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/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.fits scfile=/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits outfile=/scratch/kocevski/773818/cmap_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.fits scfile=/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits outfile=/scratch/kocevski/773818/cmap_HighResolution_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.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.61
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/773818/ft2_4FGL_J1333.7+5056_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773818/Model_4FGL_J1333.7+5056_daily_bin1.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/773818/ft1_filtered_4FGL_J1333.7+5056_daily_bin1.fits.....................!
real 36.77
user 35.13
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12906E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.879       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.950       1.0000         .10000E-03   10000.    
    14 'norm      '    21.452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6715       1.0000         .10000E-03   10000.    
    18 'norm      '    .12769E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1787       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43951E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .54132E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.932       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .46027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6625       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    34.139       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18532E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    30.927       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .74783       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97062       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=   3541.921     FROM MIGRAD    STATUS=CONVERGED    936 CALLS     4659 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7804       -.88674E-06** at limit **
   2  Prefactor     8.6694        21.226        .19824E-05    .46881E-04
   3  Prefactor     .10000E-03    5.7656        .39983E-08** at limit **
   4  norm          4.1862        2.6371        .90737E-08    .11663E-04
   5  Prefactor     20.861        21.896        .10438E-05    .13723E-04
   6  norm          .10000E-03    .90702        .12978E-08** at limit **
   7  Prefactor     .10000E-03    41.129       -.93243E-06** at limit **
   8  Prefactor     .10000E-03    5.5670        .24487E-07** at limit **
   9  norm          .10000E-03    11.328       -.77649E-07** at limit **
  10  norm          .10000E-03    1.1694        .12822E-07** at limit **
  11  Prefactor     .10000E-03    16.224       -.22841E-06** at limit **
  12  Prefactor     .10000E-03    36.448        .10014E-05** at limit **
  13  Prefactor     10.956        23.560       -.32610E-06   -.64134E-06
  14  norm          21.462        7.9597        .10653E-06   -.53204E-04
  15  Prefactor     .10000E-03    44.332        .80914E-06** at limit **
  16  Prefactor     .10000E-03    24.504       -.10235E-05** at limit **
  17  norm          2.6714        1.7061        .21427E-07   -.10509E-04
  18  norm          .10000E-03    37.424        .28887E-07** at limit **
  19  norm          1.1832        8.2881        .13011E-05    .55920E-04
  20  norm          .10000E-03    6.4392        .11693E-07** at limit **
  21  Prefactor     .10000E-03    347.91       -.80309E-05** at limit **
  22  Prefactor     .10000E-03    526.33       -.32168E-05** at limit **
  23  Prefactor     16.892        57.559       -.38525E-05   -.59779E-05
  24  Prefactor     .10000E-03    29.870       -.42083E-05** at limit **
  25  Prefactor     .10000E-03    19.585        .83978E-06** at limit **
  26  Prefactor     3.6529        6.6263       -.20074E-07    .65048E-04
  27  Prefactor     .10000E-03    13.070        .68177E-06** at limit **
  28  Prefactor     34.176        60.717       -.45880E-06   -.26512E-05
  29  Prefactor     .10000E-03    1607.1        .27110E-05** at limit **
  30  Prefactor     30.932        31.206        .23258E-06    .70034E-06
  31  Prefactor     .10000E-03    27.752        .10023E-05** at limit **
  32  Normalizat    .74798        .20745       -.14505E-05    .80083E-04
  33  Prefactor     .97046        .23882        .11738E-05   -.62117E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.66938
  Prefactor  = 0.0001
  norm       = 4.1862
  Prefactor  = 20.861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9558
  norm       = 21.4621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67138
  norm       = 0.0001
  norm       = 1.1832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65292
  Prefactor  = 0.0001
  Prefactor  = 34.1755
  Prefactor  = 0.0001
  Prefactor  = 30.9324
  Prefactor  = 0.0001
  Normalizat = 0.747976
  Prefactor  = 0.970457
 **********
 **   18 **HESSE 
 **********

 FCN=   3541.921     FROM HESSE     STATUS=OK           699 CALLS     5358 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6694        21.411        .13630E-03   -1.5119    
   3  Prefactor     .10000E-03    5.8490        .13942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1862        2.6339        .74448E-04   -1.5299    
   5  Prefactor     20.861        21.874        .87658E-04   -1.4794    
   6  norm          .10000E-03    .91215        .55362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6031        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1705        .62853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.956        23.546        .12107E-03   -1.5046    
  14  norm          21.462        7.9505        .86479E-04   -1.4781    
  15  Prefactor     .10000E-03    44.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6714        1.7064        .59253E-04   -1.5381    
  18  norm          .10000E-03    37.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1832        7.9748        .30384E-03   -1.5490    
  20  norm          .10000E-03    6.4415        .14751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    348.02        .21220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    531.40        .38182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.892        58.322        .97334E-04   -1.4886    
  24  Prefactor     .10000E-03    29.675        .23532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6529        6.4286        .12974E-03   -1.5326    
  27  Prefactor     .10000E-03    13.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     34.176        60.380        .68584E-04   -1.4538    
  29  Prefactor     .10000E-03    110.60        .16802       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     30.932        31.208        .72047E-04   -1.4595    
  31  Prefactor     .10000E-03    27.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .74798        .23577        .22961E-03   -1.0203    
  33  Prefactor     .97046        .26981        .24976E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9233e-10
Minuit parameter uncertainties:
  1  7.60876e-05
  2  21.4298
  3  2.71638e-06
  4  2.63399
  5  21.882
  6  1.15723e-06
  7  2.09992e-05
  8  2.82575e-06
  9  5.21527e-06
  10  7.12397e-07
  11  4.64261e-08
  12  3.48162e-05
  13  23.5662
  14  7.95091
  15  1.29131e-05
  16  2.46184e-05
  17  1.70641
  18  1.10867e-06
  19  6.14448
  20  2.64149e-07
  21  0.000380916
  22  0.000446917
  23  58.5195
  24  0.000118893
  25  2.49101e-05
  26  6.42979
  27  8.69685e-07
  28  60.4879
  29  0.000190832
  30  31.2248
  31  7.92374e-06
  32  0.236093
  33  0.270189
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.146e+01  7.951e+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:  9.705e-01  2.702e-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.480e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.36
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 5.15e-08
Energy Flux (Fixed Index): 5.32e-05 +/- 1.97e-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) = 3541.91810783
delta logL = 0.00252684098905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3541.9170615
delta logL = 0.00357317568978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.119       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2884       1.0000          .0000       5.0000    
     3 'Normalizat'    .74327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97431       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=   3541.917     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      229 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.118        8.9798        .87159E-04    .11097E-02
   2  alpha         2.2883        .41589        .75303E-02    .12402E-03
   3  Normalizat    .74331        .22501        .23024E-03   -.30269E-04
   4  Prefactor     .97430        .27051        .24933E-03   -.55354E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.1182
  alpha      = 2.28832
  Normalizat = 0.743309
  Prefactor  = 0.974305
 **********
 **   18 **HESSE 
 **********

 FCN=   3541.917     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.118        8.8584        .17432E-04   -1.4789    
   2  alpha         2.2883        .40997        .30121E-03   -.84775E-01
   3  Normalizat    .74331        .22507        .92096E-05   -1.0221    
   4  Prefactor     .97430        .27064        .99734E-05   -.93591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55004e-10
Minuit parameter uncertainties:
  1  8.85891
  2  0.41184
  3  0.225353
  4  0.271016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773818': 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) = 3541.91706144
delta logL = 0.00357323425396

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.112e+01  8.859e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.288e+00  4.118e-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:  9.743e-01  2.710e-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.433e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.24
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.29 +/- 0.41
Photon Flux (Free Index): 1.43e-07 +/- 6.69e-08
Energy Flux (Free Index): 5.23e-05 +/- 2.18e-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/773818/cmap_HighResolution_239587201_239846401_4FGL_J1333.7+5056_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='5.23e-05', photon_flux_error='5.15e-08', dlogl='3.57e-03', energy_flux='5.32e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-08 03:35:40.962150', photon_index_error2='0.41', photon_index2='2.29', ts='17.36', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='0.75', time_epoch_completed='1631097340.96', return_code='0', job_id='773818', GAL2='0.97', EG2='0.74', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='6.69e-08', ts2='17.24', photon_index='2.25' WHERE bin_id='1' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:35:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 773818: <4FGL_J1333.7+5056_daily_bin1> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:20:48 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:20:51 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:20:51 2021
Terminated at Wed Sep  8 03:35:41 2021
Results reported at Wed Sep  8 03:35:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1 203.439 50.9366 239587201 239846401 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 :                                   660.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

