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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1202
RA = 203.439, Dec = 50.9366
tmin = 550886401, tmax = 551145601
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='781071', job_status='RUN', time_executed='2021-09-08 03:49:34.485949', time_epoch_executed='1631098174.49' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781071/ft1_4FGL_J1333.7+5056_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781071/ft1_4FGL_J1333.7+5056_daily_bin1202.fits outfile=/scratch/kocevski/781071/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1202.fits ra=203.439 dec=50.9366 rad=12.0 tmin=550886401.0 tmax=551145601.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 4.10
user 3.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781071/ft1_filtered_4FGL_J1333.7+5056_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/781071/ltcube_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.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/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits
.....................!
real 18.09
user 17.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781071/ft1_filtered_4FGL_J1333.7+5056_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/781071/ltcube_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.fits outfile=/scratch/kocevski/781071/expmap_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.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/781071/ltcube_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.fits
.....................!
real 203.85
user 196.54
sys 4.64

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/781071/ft1_filtered_4FGL_J1333.7+5056_daily_bin1202.fits scfile=/scratch/kocevski/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits outfile=/scratch/kocevski/781071/cmap_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781071/ft1_filtered_4FGL_J1333.7+5056_daily_bin1202.fits scfile=/scratch/kocevski/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits outfile=/scratch/kocevski/781071/cmap_HighResolution_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/781071/ft1_filtered_4FGL_J1333.7+5056_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/781071/ft2_4FGL_J1333.7+5056_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781071/Model_4FGL_J1333.7+5056_daily_bin1202.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/781071/ft1_filtered_4FGL_J1333.7+5056_daily_bin1202.fits......................!
real 28.44
user 26.73
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12208E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0366       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6390       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    131.12       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8115       1.0000         .10000E-03   10000.    
    14 'norm      '    18.930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.544       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8427       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.085       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20113E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    86.069       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7987       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8005       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    65.710       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    49.057       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .73533       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5233       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=   2033.213     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4571 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    132.77       -.71143E-05** at limit **
   2  Prefactor     .10000E-03    37.500        .18406E-06** at limit **
   3  Prefactor     3.0369        12.092       -.18642E-06   -.30580E-04
   4  norm          4.6397        4.4444       -.12192E-06   -.49162E-04
   5  Prefactor     .10000E-03    20.407        .11626E-06** at limit **
   6  norm          3.5999        3.7436        .89384E-07   -.41392E-04
   7  Prefactor     95.070        124.34       -.11846E-05   -.25597E-04
   8  Prefactor     .10000E-03    14.014        .23716E-06** at limit **
   9  norm          .10000E-03    15.087        .19228E-06** at limit **
  10  norm          .10000E-03    3.2349        .51015E-07** at limit **
  11  Prefactor     131.41        123.94       -.13322E-05   -.11525E-04
  12  Prefactor     .10000E-03    21.542        .33898E-06** at limit **
  13  Prefactor     5.7208        667.25        .25612E-05   -.10427E-04
  14  norm          18.936        10.834       -.29511E-06   -.11765E-03
  15  Prefactor     .10000E-03    139.86        .11359E-05** at limit **
  16  Prefactor     55.586        92.077       -.10419E-05   -.23518E-05
  17  norm          5.8466        4.1020       -.22771E-06   -.25287E-03
  18  norm          .10000E-03    134.32       -.22381E-06** at limit **
  19  norm          13.086        10.307       -.13558E-06   -.52918E-04
  20  norm          .10000E-03    14.462       -.15414E-08** at limit **
  21  Prefactor     .10000E-03    524.75        .15951E-05** at limit **
  22  Prefactor     86.089        111.63        .12893E-06   -.15626E-05
  23  Prefactor     .10000E-03    44.956        .21982E-06** at limit **
  24  Prefactor     .10000E-03    4.5204        .58016E-07** at limit **
  25  Prefactor     3.8709        136.41       -.43809E-06   -.91594E-05
  26  Prefactor     2.8006        4.7295       -.14502E-06   -.64380E-04
  27  Prefactor     .10000E-03    14.721        .20052E-07** at limit **
  28  Prefactor     .10000E-03    20.784       -.83322E-07** at limit **
  29  Prefactor     65.797        167.27        .16958E-05    .88236E-05
  30  Prefactor     .10000E-03    23.029        .27293E-07** at limit **
  31  Prefactor     49.040        50.963       -.22078E-06   -.84661E-05
  32  Normalizat    .73444        .43419        .11780E-04   -.13872E-03
  33  Prefactor     1.5244        .50458       -.11973E-04   -.12396E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03689
  norm       = 4.63968
  Prefactor  = 0.0001
  norm       = 3.59995
  Prefactor  = 95.0696
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 131.413
  Prefactor  = 0.0001
  Prefactor  = 5.72076
  norm       = 18.9361
  Prefactor  = 0.0001
  Prefactor  = 55.586
  norm       = 5.84659
  norm       = 0.0001
  norm       = 13.0857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.0889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.87089
  Prefactor  = 2.80062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.7974
  Prefactor  = 0.0001
  Prefactor  = 49.0398
  Normalizat = 0.734444
  Prefactor  = 1.52445
 **********
 **   18 **HESSE 
 **********

 FCN=   2033.213     FROM HESSE     STATUS=OK           691 CALLS     5262 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    129.30        .38033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0369        12.028        .23285E-03   -1.5359    
   4  norm          4.6397        4.4348        .87876E-04   -1.5277    
   5  Prefactor     .10000E-03    20.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5999        3.7447        .86286E-04   -1.5328    
   7  Prefactor     95.070        124.33        .20605E-03   -1.3755    
   8  Prefactor     .10000E-03    14.043        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.095        .17112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2374        .79208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     131.41        123.81        .17582E-03   -1.3410    
  12  Prefactor     .10000E-03    21.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7208        670.86        .16660E-03   -1.5230    
  14  norm          18.936        10.830        .92054E-04   -1.4837    
  15  Prefactor     .10000E-03    139.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     55.586        92.035        .53823E-04   -1.4215    
  17  norm          5.8466        4.0955        .70157E-04   -1.5224    
  18  norm          .10000E-03    134.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.086        10.295        .11073E-03   -1.4984    
  20  norm          .10000E-03    14.464        .16752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    524.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     86.089        111.52        .43303E-04   -1.3850    
  23  Prefactor     .10000E-03    44.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5223        .93631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.8709        135.77        .20711E-03   -1.5314    
  26  Prefactor     2.8006        4.7035        .11887E-03   -1.5373    
  27  Prefactor     .10000E-03    14.723        .16901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     65.797        167.17        .49509E-04   -1.4084    
  30  Prefactor     .10000E-03    23.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     49.040        50.932        .57253E-04   -1.4306    
  32  Normalizat    .73444        .43233        .30610E-03   -1.0255    
  33  Prefactor     1.5244        .50440        .28107E-03   -.76857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40482e-10
Minuit parameter uncertainties:
  1  0.000218412
  2  4.39722e-05
  3  12.0377
  4  4.43515
  5  1.79602e-05
  6  3.74498
  7  124.669
  8  1.53252e-05
  9  2.95874e-05
  10  4.93196e-06
  11  124.052
  12  3.16171e-05
  13  125.366
  14  10.8311
  15  0.000222396
  16  92.2719
  17  4.09565
  18  3.99794e-05
  19  10.2963
  20  4.12829e-06
  21  0.000925948
  22  111.792
  23  1.69594e-05
  24  5.53962e-06
  25  45.9626
  26  4.70413
  27  1.58285e-07
  28  1.55468e-05
  29  168.383
  30  2.71641e-06
  31  50.9776
  32  0.434358
  33  0.506075
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.524e+00  5.061e-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.344e-01  4.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 7.02e-08
Energy Flux (Fixed Index): 4.70e-05 +/- 2.69e-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) = 2033.18186842
delta logL = 0.0315405161311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2033.17515839
delta logL = 0.0382505526677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.997       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0735       1.0000          .0000       5.0000    
     3 'Normalizat'    .75744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5058       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=   2033.175     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.998        11.918        .89568E-04   -.96408E-04
   2  alpha         2.0737        .63935        .98280E-02   -.14038E-04
   3  Normalizat    .75705        .39633        .30207E-03   -.14176E-03
   4  Prefactor     1.5063        .49735        .28249E-03   -.15918E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9985
  alpha      = 2.07367
  Normalizat = 0.757046
  Prefactor  = 1.50626
 **********
 **   18 **HESSE 
 **********

 FCN=   2033.175     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.998        11.863        .17914E-04   -1.4813    
   2  alpha         2.0737        .63599        .39312E-03   -.17137    
   3  Normalizat    .75705        .39652        .12083E-04   -1.0168    
   4  Prefactor     1.5063        .49769        .56499E-04   -.77365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11083e-10
Minuit parameter uncertainties:
  1  11.8646
  2  0.643275
  3  0.39804
  4  0.49931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781071': 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) = 2033.17515787
delta logL = 0.03825107541

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.506e+00  4.993e-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.570e-01  3.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.25
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.07 +/- 0.64
Photon Flux (Free Index): 1.06e-07 +/- 8.52e-08
Energy Flux (Free Index): 5.20e-05 +/- 3.78e-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/781071/cmap_HighResolution_550886401_551145601_4FGL_J1333.7+5056_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='5.20e-05', photon_flux_error='7.02e-08', dlogl='3.83e-02', energy_flux='4.70e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-08 03:59:16.947543', photon_index_error2='0.64', photon_index2='2.07', ts='9.19', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', energy_flux_error2='3.78e-05', EG='0.73', time_epoch_completed='1631098756.95', return_code='0', job_id='781071', GAL2='1.51', EG2='0.76', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='8.52e-08', ts2='9.25', photon_index='2.25' WHERE bin_id='1202' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 781071: <4FGL_J1333.7+5056_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1202> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 03:45:26 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:46:08 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:46:08 2021
Terminated at Wed Sep  8 03:59:17 2021
Results reported at Wed Sep  8 03:59:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1202 203.439 50.9366 550886401 551145601 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 :                                   568.59 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             220.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            831 sec.

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

