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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1003
RA = 203.439, Dec = 50.9366
tmin = 499305601, tmax = 499564801
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='779468', job_status='RUN', time_executed='2021-09-08 03:40:40.226293', time_epoch_executed='1631097640.23' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779468/ft1_4FGL_J1333.7+5056_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779468/ft1_4FGL_J1333.7+5056_daily_bin1003.fits outfile=/scratch/kocevski/779468/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1003.fits ra=203.439 dec=50.9366 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.51
user 5.17
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.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/779468/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/779468/ltcube_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.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/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits
.....................!
real 17.59
user 16.96
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/779468/ltcube_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.fits outfile=/scratch/kocevski/779468/expmap_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.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/779468/ltcube_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.fits
.....................!
real 193.82
user 186.91
sys 6.15

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/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits scfile=/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits outfile=/scratch/kocevski/779468/cmap_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.439 yref=50.9366 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits scfile=/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits outfile=/scratch/kocevski/779468/cmap_HighResolution_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/779468/ft2_4FGL_J1333.7+5056_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779468/Model_4FGL_J1333.7+5056_daily_bin1003.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/779468/ft1_filtered_4FGL_J1333.7+5056_daily_bin1003.fits.....................!
real 44.39
user 42.88
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2824       1.0000         .10000E-03   10000.    
     9 'norm      '    10.203       1.0000         .10000E-03   10000.    
    10 'norm      '    .51298E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.124       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33288E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9455       1.0000         .10000E-03   10000.    
    18 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1832       1.0000         .10000E-03   10000.    
    20 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14272E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    90.996       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.148       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.126       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.627       1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.567       1.0000         .10000E-03   10000.    
    30 'Prefactor '    29.351       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .21833E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .60621       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=   4677.363     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4676 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4713        6.5158        .59009E-06    .78201E-05
   2  Prefactor     25.246        23.674       -.10364E-05   -.13015E-04
   3  Prefactor     .10000E-03    3.7952        .11228E-06** at limit **
   4  norm          3.9833        2.7291        .33103E-06    .11482E-02
   5  Prefactor     .10000E-03    14.649        .52527E-06** at limit **
   6  norm          5.0343        2.8078        .82997E-07   -.46516E-04
   7  Prefactor     .10000E-03    27.528        .62537E-06** at limit **
   8  Prefactor     7.2806        11.134        .15679E-05   -.65779E-04
   9  norm          10.202        12.834        .30873E-06   -.17490E-04
  10  norm          .11016E-03    2.9323        .41994E-06** at limit **
  11  Prefactor     .10000E-03    37.110       -.27147E-05** at limit **
  12  Prefactor     21.746        23.949       -.17170E-05   -.33521E-04
  13  Prefactor     69.171        51.803        .14596E-04   -.22221E-04
  14  norm          .10000E-03    4.3700       -.27209E-06** at limit **
  15  Prefactor     38.401        63.928        .16550E-04    .82628E-05
  16  Prefactor     .10014E-03    39.330       -.98732E-06** at limit **
  17  norm          9.9443        2.6736       -.11126E-06   -.11973E-03
  18  norm          .10000E-03    156.18       -.70579E-04** at limit **
  19  norm          3.1831        3.4325        .22799E-06    .17185E-03
  20  norm          .10000E-03    8.6989       -.88200E-07** at limit **
  21  Prefactor     .10000E-03    210.49        .30277E-04** at limit **
  22  Prefactor     91.005        51.206       -.53194E-06   -.67438E-05
  23  Prefactor     .10000E-03    84.680        .17088E-05** at limit **
  24  Prefactor     16.145        7.0488       -.62832E-06   -.48755E-04
  25  Prefactor     19.116        26.964        .11787E-05   -.24418E-04
  26  Prefactor     .10000E-03    .51183        .17886E-07** at limit **
  27  Prefactor     .10000E-03    7.2923        .47182E-07** at limit **
  28  Prefactor     14.622        18.312       -.27064E-05   -.31929E-04
  29  Prefactor     25.639        67.160        .53574E-04    .16831E-04
  30  Prefactor     29.332        26.910       -.55000E-06   -.67829E-05
  31  Prefactor     .10002E-03    26.059       -.42562E-05** at limit **
  32  Normalizat    1.0383        .20487       -.36343E-05    .79627E-04
  33  Prefactor     .60632        .22821       -.43213E-05   -.69669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.47135
  Prefactor  = 25.2457
  Prefactor  = 0.0001
  norm       = 3.98329
  Prefactor  = 0.0001
  norm       = 5.03427
  Prefactor  = 0.0001
  Prefactor  = 7.28062
  norm       = 10.2022
  norm       = 0.000110157
  Prefactor  = 0.000100002
  Prefactor  = 21.7463
  Prefactor  = 69.1711
  norm       = 0.0001
  Prefactor  = 38.4012
  Prefactor  = 0.00010014
  norm       = 9.94434
  norm       = 0.000100001
  norm       = 3.18314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.0052
  Prefactor  = 0.000100002
  Prefactor  = 16.1448
  Prefactor  = 19.1165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6218
  Prefactor  = 25.6389
  Prefactor  = 29.3324
  Prefactor  = 0.000100015
  Normalizat = 1.03831
  Prefactor  = 0.606319
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.363     FROM HESSE     STATUS=OK           705 CALLS     5381 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4713        6.5118        .17177E-03   -1.5240    
   2  Prefactor     25.246        23.684        .79703E-04   -1.4703    
   3  Prefactor     .10000E-03    3.8169        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9833        2.7340        .45195E-03   -1.5309    
   5  Prefactor     .10000E-03    14.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0343        2.8080        .83053E-04   -1.5259    
   7  Prefactor     .10000E-03    27.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2806        11.127        .14863E-03   -1.5168    
   9  norm          10.202        12.832        .12544E-03   -1.5069    
  10  norm          .11016E-03    5.7891        .39809E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.746        23.965        .85875E-04   -1.4775    
  13  Prefactor     69.171        51.746        .48280E-04   -1.4043    
  14  norm          .10000E-03    4.4085        .13917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.401        63.617        .64700E-04   -1.4468    
  16  Prefactor     .10014E-03    328.86        .81277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9443        2.6753        .54532E-04   -1.5077    
  18  norm          .10000E-03    156.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1831        3.4166        .12584E-03   -1.5351    
  20  norm          .10000E-03    8.7107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    210.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     91.005        51.191        .42125E-04   -1.3797    
  23  Prefactor     .10000E-03    85.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.145        7.0451        .99671E-04   -1.4904    
  25  Prefactor     19.116        27.147        .91583E-04   -1.4833    
  26  Prefactor     .10000E-03    .51212        .47769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2985        .18038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.622        18.310        .10473E-03   -1.4943    
  29  Prefactor     25.639        67.140        .79225E-04   -1.4695    
  30  Prefactor     29.332        26.918        .73952E-04   -1.4624    
  31  Prefactor     .10002E-03    26.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0383        .23982        .22552E-03   -.91758    
  33  Prefactor     .60632        .26508        .33566E-03   -1.0732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09149e-09
Minuit parameter uncertainties:
  1  6.51265
  2  23.6931
  3  1.12306e-05
  4  2.7341
  5  4.53456e-05
  6  2.80812
  7  2.87753e-05
  8  11.13
  9  12.8354
  10  0.0153378
  11  0.000478322
  12  23.9753
  13  51.7801
  14  1.72009e-05
  15  63.7302
  16  0.013655
  17  2.67532
  18  0.000587691
  19  3.41678
  20  1.95724e-05
  21  6.30213e-05
  22  51.2155
  23  0.000747623
  24  7.04544
  25  27.164
  26  1.03778e-06
  27  9.93041e-06
  28  18.3171
  29  67.3384
  30  26.9287
  31  0.00127806
  32  0.24007
  33  0.265625
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.720e-05  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:  6.063e-01  2.656e-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.038e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/779468/likelihoodResults_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.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) = 4677.36362424
delta logL = -0.00108054681186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4677.36254372
delta logL = -3.54530129698e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2474       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60632       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=   4677.363     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3874        .90712E-02** at limit **
   2  alpha         2.2410        3.4889        .41420        .74420E-05
   3  Normalizat    1.0383        .19066        .41414E-01   -.61661E-05
   4  Prefactor     .60632        .22274        .75809E-01    .22658E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.24101
  Normalizat = 1.03831
  Prefactor  = 0.606322
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.363     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4149        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2410        3.4867        .50000       -.10378    
   3  Normalizat    1.0383        .22028        .22553E-03   -.91758    
   4  Prefactor     .60632        .25676        .33566E-03   -1.0732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90298e-11
Minuit parameter uncertainties:
  1  1.50567e-05
  2  2.48667
  3  0.220472
  4  0.257258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779468': 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) = 4677.36254365
delta logL = 3.68054315913e-08

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.506e-05  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.241e+00  2.487e+00  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:  6.063e-01  2.573e-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.038e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.439 50.937

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/779468/cmap_HighResolution_499305601_499564801_4FGL_J1333.7+5056_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-08 03:55:35.203023', job_id='779468', GAL2='0.61', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631098535.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1003' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 779468: <4FGL_J1333.7+5056_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1003 203.439 50.9366 499305601 499564801 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

