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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin2
RA = 203.439, Dec = 50.9366
tmin = 239846401, tmax = 240105601
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='773819', job_status='RUN', time_executed='2021-09-08 03:24:29.269187', time_epoch_executed='1631096669.27' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773819/ft1_4FGL_J1333.7+5056_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773819/ft1_4FGL_J1333.7+5056_daily_bin2.fits outfile=/scratch/kocevski/773819/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin2.fits ra=203.439 dec=50.9366 rad=12.0 tmin=239846401.0 tmax=240105601.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.49
user 1.30
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.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/773819/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/773819/ltcube_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.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/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits
.....................!
real 18.32
user 17.83
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/773819/ltcube_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.fits outfile=/scratch/kocevski/773819/expmap_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.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/773819/ltcube_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.fits
.....................!
real 193.15
user 186.57
sys 5.77

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/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.fits scfile=/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits outfile=/scratch/kocevski/773819/cmap_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.fits scfile=/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits outfile=/scratch/kocevski/773819/cmap_HighResolution_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/773819/ft2_4FGL_J1333.7+5056_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773819/Model_4FGL_J1333.7+5056_daily_bin2.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/773819/ft1_filtered_4FGL_J1333.7+5056_daily_bin2.fits.....................!
real 40.92
user 39.30
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.013       1.0000         .10000E-03   10000.    
     6 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12368E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.219       1.0000         .10000E-03   10000.    
    10 'norm      '    .58044E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.439       1.0000         .10000E-03   10000.    
    14 'norm      '    24.330       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.765       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9436       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12981E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1676       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.0391       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.0162       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.781       1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.035       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77369       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=   4352.765     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4631 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4536        19.845        .17914E-04   -.27740E-03
   2  Prefactor     13.885        32.101       -.31891E-05   -.17382E-03
   3  Prefactor     .10000E-03    4.0909        .11770E-06** at limit **
   4  norm          2.4781        2.1105        .38415E-07    .53050E-04
   5  Prefactor     36.014        30.709       -.83090E-06   -.53423E-04
   6  norm          .10000E-03    1.6457        .23892E-07** at limit **
   7  Prefactor     .10002E-03    78.817        .68179E-04** at limit **
   8  Prefactor     .10000E-03    13.460       -.35300E-05** at limit **
   9  norm          17.203        26.231        .51997E-05   -.11707E-03
  10  norm          .10215E-03    2.8815       -.18367E-05** at limit **
  11  Prefactor     16.815        44.994        .11821E-04    .14549E-03
  12  Prefactor     25.240        30.738       -.64897E-06    .13206E-04
  13  Prefactor     27.418        39.967       -.19960E-05    .54687E-04
  14  norm          24.331        9.3074       -.41539E-06    .94693E-04
  15  Prefactor     .10000E-03    39.376        .86898E-05** at limit **
  16  Prefactor     91.791        63.972        .14512E-04    .14179E-03
  17  norm          2.9445        1.9360        .20103E-06    .11034E-03
  18  norm          .10000E-03    34.247        .17496E-04** at limit **
  19  norm          .10000E-03    2.0059       -.49982E-07** at limit **
  20  norm          .10000E-03    57.884       -.40442E-04** at limit **
  21  Prefactor     .10003E-03    275.33       -.70202E-04** at limit **
  22  Prefactor     .10000E-03    15.691        .12376E-04** at limit **
  23  Prefactor     .10000E-03    16.702       -.94076E-05** at limit **
  24  Prefactor     3.1680        4.7749        .11138E-06   -.19369E-03
  25  Prefactor     9.0422        16.534       -.10805E-05   -.62266E-03
  26  Prefactor     .10000E-03    1.5646       -.45211E-07** at limit **
  27  Prefactor     .10000E-03    9.2841        .15642E-06** at limit **
  28  Prefactor     9.0175        22.269       -.42221E-06   -.28576E-04
  29  Prefactor     .10000E-03    30.516       -.10156E-04** at limit **
  30  Prefactor     23.786        34.897       -.28484E-06   -.12254E-04
  31  Prefactor     10.036        10.115        .35124E-06    .48559E-04
  32  Normalizat    1.0764        .20711       -.24995E-05    .26002E-03
  33  Prefactor     .77440        .23784       -.11533E-05    .70580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45364
  Prefactor  = 13.8853
  Prefactor  = 0.0001
  norm       = 2.47806
  Prefactor  = 36.0144
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 17.2032
  norm       = 0.000102151
  Prefactor  = 16.8149
  Prefactor  = 25.2397
  Prefactor  = 27.4177
  norm       = 24.331
  Prefactor  = 0.0001
  Prefactor  = 91.7914
  norm       = 2.94454
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100028
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.16801
  Prefactor  = 9.04221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.01749
  Prefactor  = 0.0001
  Prefactor  = 23.7859
  Prefactor  = 10.0361
  Normalizat = 1.07638
  Prefactor  = 0.7744
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.765     FROM HESSE     STATUS=OK           699 CALLS     5330 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4536        17.047        .35600E-03   -1.5467    
   2  Prefactor     13.885        30.172        .10755E-03   -1.4963    
   3  Prefactor     .10000E-03    4.1302        .13026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4781        2.1067        .86025E-04   -1.5393    
   5  Prefactor     36.014        30.786        .66782E-04   -1.4507    
   6  norm          .10000E-03    1.6935        .16521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    79.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.203        26.170        .96521E-04   -1.4878    
  10  norm          .10215E-03    4.4301        .39971E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.815        44.844        .97663E-04   -1.4888    
  12  Prefactor     25.240        30.781        .79735E-04   -1.4703    
  13  Prefactor     27.418        39.863        .76479E-04   -1.4660    
  14  norm          24.331        9.3157        .81210E-04   -1.4721    
  15  Prefactor     .10000E-03    39.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     91.791        64.029        .41950E-04   -1.3789    
  17  norm          2.9445        1.9319        .70163E-04   -1.5365    
  18  norm          .10000E-03    34.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0167        .91217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    58.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    275.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1680        4.7585        .16998E-03   -1.5352    
  25  Prefactor     9.0422        16.556        .66655E-03   -1.5106    
  26  Prefactor     .10000E-03    1.5868        .80203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.2864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.0175        22.210        .13348E-03   -1.5107    
  29  Prefactor     .10000E-03    30.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     23.786        34.899        .82141E-04   -1.4732    
  31  Prefactor     10.036        10.117        .12649E-03   -1.5074    
  32  Normalizat    1.0764        .24391        .22321E-03   -.90514    
  33  Prefactor     .77440        .27771        .31001E-03   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76142e-09
Minuit parameter uncertainties:
  1  9.95907
  2  30.2047
  3  7.96305e-06
  4  2.10675
  5  30.7997
  6  3.17632e-06
  7  0.00254781
  8  1.11518e-05
  9  26.1874
  10  0.0061745
  11  44.9336
  12  30.8004
  13  39.9016
  14  9.31624
  15  0.000185531
  16  64.0767
  17  1.93198
  18  0.000490613
  19  1.59693e-05
  20  0.000616668
  21  0.0056311
  22  0.000239373
  23  0.000167443
  24  4.75909
  25  16.5648
  26  3.28655e-06
  27  3.90327e-06
  28  22.2299
  29  0.00023561
  30  34.9293
  31  10.1189
  32  0.24416
  33  0.278212
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.433e+01  9.316e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.744e-01  2.782e-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.076e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.56
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 6.03e-05 +/- 2.31e-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) = 4352.71865826
delta logL = 0.0463779980537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4352.7082256
delta logL = 0.0568106601258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.484       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1408       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76431       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=   4352.708     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.484        18.011        .19838E-02   -.20237E-02
   2  alpha         2.1407        .62135        .18216        .24962E-04
   3  Normalizat    1.0894        .20245        .38451E-01    .51453E-05
   4  Prefactor     .76428        .23922        .70494E-01    .15136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.4842
  alpha      = 2.1407
  Normalizat = 1.08936
  Prefactor  = 0.764284
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.708     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.484        9.1734        .79353E-04   -1.4698    
   2  alpha         2.1407        .33536        .76413E-02   -.14422    
   3  Normalizat    1.0894        .23276        .22219E-03   -.90094    
   4  Prefactor     .76428        .27566        .31195E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87917e-09
Minuit parameter uncertainties:
  1  9.17391
  2  0.336399
  3  0.232978
  4  0.27616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773819': 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) = 4352.70822556
delta logL = 0.0568107043537

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.548e+01  9.174e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.141e+00  3.364e-01  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.643e-01  2.762e-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.089e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.92
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.14 +/- 0.34
Photon Flux (Free Index): 1.45e-07 +/- 6.19e-08
Energy Flux (Free Index): 6.46e-05 +/- 2.63e-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/773819/cmap_HighResolution_239846401_240105601_4FGL_J1333.7+5056_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='6.46e-05', photon_flux_error='6.04e-08', dlogl='5.68e-02', energy_flux='6.03e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-08 03:36:50.264469', photon_index_error2='0.34', photon_index2='2.14', ts='32.56', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.08', time_epoch_completed='1631097410.26', return_code='0', job_id='773819', GAL2='0.76', EG2='1.09', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='6.19e-08', ts2='32.92', photon_index='2.25' WHERE bin_id='2' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 773819: <4FGL_J1333.7+5056_daily_bin2> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin2> 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) <bullet0243>, 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:36:51 2021
Results reported at Wed Sep  8 03:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin2 203.439 50.9366 239846401 240105601 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 :                                   738.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            963 sec.

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

