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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin128
RA = 203.439, Dec = 50.9366
tmin = 272505601, tmax = 272764801
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='775144', job_status='RUN', time_executed='2021-09-08 03:27:00.630796', time_epoch_executed='1631096820.63' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775144/ft1_4FGL_J1333.7+5056_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775144/ft1_4FGL_J1333.7+5056_daily_bin128.fits outfile=/scratch/kocevski/775144/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin128.fits ra=203.439 dec=50.9366 rad=12.0 tmin=272505601.0 tmax=272764801.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.77
user 1.59
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.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/775144/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin128.fits evtable="EVENTS" outfile="/scratch/kocevski/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.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/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/775144/ltcube_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.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/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits
.....................!
real 15.90
user 15.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/775144/ltcube_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.fits outfile=/scratch/kocevski/775144/expmap_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.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/775144/ltcube_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.fits
.....................!
real 191.82
user 186.30
sys 3.96

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1333.7+5056 @ 203.439 50.9366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.fits scfile=/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits outfile=/scratch/kocevski/775144/cmap_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.fits scfile=/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits outfile=/scratch/kocevski/775144/cmap_HighResolution_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.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 1.03
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/775144/ft2_4FGL_J1333.7+5056_daily_bin128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775144/Model_4FGL_J1333.7+5056_daily_bin128.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/775144/ft1_filtered_4FGL_J1333.7+5056_daily_bin128.fits.....................!
real 49.87
user 48.30
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23517E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5526       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8697       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8544       1.0000         .10000E-03   10000.    
    18 'norm      '    20.246       1.0000         .10000E-03   10000.    
    19 'norm      '    .41609E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15963E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14997E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7634       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.095       1.0000         .10000E-03   10000.    
    28 'Prefactor '    33.546       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1202       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=   5903.990     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     4719 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1137        .50078E-07** at limit **
   2  Prefactor     25.983        27.327        .12636E-06   -.46013E-06
   3  Prefactor     .10010E-03    11.442       -.72181E-05** at limit **
   4  norm          1.7717        1.7179       -.12798E-06    .12786E-03
   5  Prefactor     .10000E-03    20.348       -.12074E-06** at limit **
   6  norm          1.5184        1.5933        .58959E-08    .50397E-04
   7  Prefactor     .10000E-03    21.706        .65135E-07** at limit **
   8  Prefactor     .10000E-03    4.0023        .39000E-07** at limit **
   9  norm          .10000E-03    13.077        .58248E-07** at limit **
  10  norm          .10000E-03    6.8883       -.48499E-05** at limit **
  11  Prefactor     7.4139        86.967       -.99148E-05   -.51416E-04
  12  Prefactor     .10000E-03    6.0543        .13920E-06** at limit **
  13  Prefactor     8.6341        59.830       -.12055E-06   -.82425E-04
  14  norm          4.8702        3.3191        .67563E-08   -.14257E-03
  15  Prefactor     .10002E-03    151.29       -.40945E-06** at limit **
  16  Prefactor     .10000E-03    48.738        .82055E-06** at limit **
  17  norm          3.8541        1.9830        .14441E-06    .20275E-04
  18  norm          20.379        80.608       -.46829E-05   -.26076E-04
  19  norm          .10001E-03    2.5133       -.87787E-06** at limit **
  20  norm          .10000E-03    7.2869        .54133E-07** at limit **
  21  Prefactor     .10000E-03    295.59       -.26502E-06** at limit **
  22  Prefactor     .10000E-03    41.392       -.53181E-06** at limit **
  23  Prefactor     .10000E-03    100.01        .17718E-05** at limit **
  24  Prefactor     .10000E-03    4.1080        .17884E-06** at limit **
  25  Prefactor     5.7615        14.258        .20470E-05    .38796E-03
  26  Prefactor     .10000E-03    1.6654       -.95627E-08** at limit **
  27  Prefactor     11.111        29.304       -.26580E-06   -.11405E-03
  28  Prefactor     33.538        27.956       -.12165E-06   -.17395E-03
  29  Prefactor     .10000E-03    15.312        .16627E-06** at limit **
  30  Prefactor     .10000E-03    30.097       -.13482E-06** at limit **
  31  Prefactor     12.611        15.839        .40147E-06   -.49913E-04
  32  Normalizat    1.2101        .18891        .23044E-05   -.46405E-03
  33  Prefactor     1.1202        .22220       -.56861E-05   -.74831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 25.9831
  Prefactor  = 0.000100096
  norm       = 1.77172
  Prefactor  = 0.0001
  norm       = 1.51841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.41387
  Prefactor  = 0.0001
  Prefactor  = 8.6341
  norm       = 4.87019
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 3.85407
  norm       = 20.3792
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.76146
  Prefactor  = 0.0001
  Prefactor  = 11.1113
  Prefactor  = 33.5383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6107
  Normalizat = 1.2101
  Prefactor  = 1.12024
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.990     FROM HESSE     STATUS=OK           687 CALLS     5406 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1301        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.983        27.361        .78591E-04   -1.4688    
   3  Prefactor     .10010E-03    23.945        .33831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7717        1.7103        .95338E-04   -1.5442    
   5  Prefactor     .10000E-03    20.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5184        1.5959        .96584E-04   -1.5462    
   7  Prefactor     .10000E-03    21.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0088        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.1188        .29693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4139        89.117        .14588E-03   -1.5163    
  12  Prefactor     .10000E-03    6.0678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6341        58.874        .13707E-03   -1.5120    
  14  norm          4.8702        3.3186        .11183E-03   -1.5267    
  15  Prefactor     .10002E-03    152.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8541        1.9810        .72707E-04   -1.5315    
  18  norm          20.379        80.361        .89015E-04   -1.4805    
  19  norm          .10001E-03    13.028        .22378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.3024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    295.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    101.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.2905        .30408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.7615        14.456        .83651E-03   -1.5228    
  26  Prefactor     .10000E-03    1.7004        .19289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.111        29.235        .12028E-03   -1.5041    
  28  Prefactor     33.538        27.871        .69186E-04   -1.4549    
  29  Prefactor     .10000E-03    15.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    30.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     12.611        15.839        .11280E-03   -1.4998    
  32  Normalizat    1.2101        .22426        .23049E-03   -.86291    
  33  Prefactor     1.1202        .26564        .29479E-03   -.88822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08069e-09
Minuit parameter uncertainties:
  1  8.39833e-06
  2  27.3743
  3  0.00303381
  4  1.71031
  5  0.000141955
  6  1.59597
  7  3.89492e-05
  8  1.39894e-05
  9  4.69105e-05
  10  6.34959e-05
  11  51.5038
  12  2.43712e-05
  13  45.1559
  14  3.31871
  15  0.00311937
  16  9.02244e-05
  17  1.98105
  18  80.7925
  19  0.000677309
  20  1.08253e-05
  21  0.000186264
  22  0.000202905
  23  5.13632e-05
  24  2.15068e-05
  25  14.4649
  26  3.75768e-06
  27  29.2723
  28  27.8821
  29  1.20056e-05
  30  2.9846e-05
  31  15.8446
  32  0.224438
  33  0.265951
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.120e+00  2.660e-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.210e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.64
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 8.23e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5903.09653306
delta logL = 0.893879550293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5903.0923222
delta logL = 0.898090411444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6180       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4705       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1097       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=   5903.092     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6180        3.2941        .46824E-02    .59648E-02
   2  alpha         1.4701        .43333        .35970       -.23820E-04
   3  Normalizat    1.2272        .17475        .51816E-01    .55162E-05
   4  Prefactor     1.1099        .21686        .66912E-01    .79563E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61798
  alpha      = 1.47014
  Normalizat = 1.22721
  Prefactor  = 1.10989
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.092     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6180        3.7273        .11489E-03   -1.5278    
   2  alpha         1.4701        .54171        .14338E-01   -.42458    
   3  Normalizat    1.2272        .21058        .22910E-03   -.85766    
   4  Prefactor     1.1099        .26119        .29601E-03   -.89151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24949e-09
Minuit parameter uncertainties:
  1  3.72745
  2  0.54695
  3  0.210731
  4  0.261494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775144': 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) = 5903.09232174
delta logL = 0.898090872537

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  4.618e+00  3.727e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  1.470e+00  5.470e-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.110e+00  2.615e-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.227e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.44
Ra Dec: 203.439 50.937
Photon Index (Free Index): 1.47 +/- 0.55
Photon Flux (Free Index): 1.55e-08 +/- 1.42e-08
Energy Flux (Free Index): 2.71e-05 +/- 2.97e-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/775144/cmap_HighResolution_272505601_272764801_4FGL_J1333.7+5056_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='2.71e-05', photon_flux_error='2.15e-08', dlogl='8.98e-01', energy_flux='1.21e-05', photon_flux2='1.55e-08', job_status='DONE', time_completed='2021-09-08 03:42:01.308502', photon_index_error2='0.55', photon_index2='1.47', ts='7.64', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='1.21', time_epoch_completed='1631097721.31', return_code='0', job_id='775144', GAL2='1.11', EG2='1.23', return_code2='0', energy_flux_error='8.23e-06', photon_flux_error2='1.42e-08', ts2='9.44', photon_index='2.25' WHERE bin_id='128' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:42:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 775144: <4FGL_J1333.7+5056_daily_bin128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin128 203.439 50.9366 272505601 272764801 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 :                                   894.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            981 sec.

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

