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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin4
RA = 203.439, Dec = 50.9366
tmin = 240364801, tmax = 240624001
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='773822', job_status='RUN', time_executed='2021-09-08 03:21:12.091270', time_epoch_executed='1631096472.09' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773822/ft1_4FGL_J1333.7+5056_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773822/ft1_4FGL_J1333.7+5056_daily_bin4.fits outfile=/scratch/kocevski/773822/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin4.fits ra=203.439 dec=50.9366 rad=12.0 tmin=240364801.0 tmax=240624001.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.45
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773822/ft1_filtered_4FGL_J1333.7+5056_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/773822/ltcube_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.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/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits
.....................!
real 14.12
user 13.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773822/ft1_filtered_4FGL_J1333.7+5056_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/773822/ltcube_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.fits outfile=/scratch/kocevski/773822/expmap_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.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/773822/ltcube_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.fits
.....................!
real 192.40
user 187.30
sys 4.53

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/773822/ft1_filtered_4FGL_J1333.7+5056_daily_bin4.fits scfile=/scratch/kocevski/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits outfile=/scratch/kocevski/773822/cmap_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773822/ft1_filtered_4FGL_J1333.7+5056_daily_bin4.fits scfile=/scratch/kocevski/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits outfile=/scratch/kocevski/773822/cmap_HighResolution_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/773822/ft1_filtered_4FGL_J1333.7+5056_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/773822/ft2_4FGL_J1333.7+5056_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773822/Model_4FGL_J1333.7+5056_daily_bin4.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/773822/ft1_filtered_4FGL_J1333.7+5056_daily_bin4.fits.....................!
real 47.03
user 45.65
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72497E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.6783       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.9968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.007       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.205       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.554       1.0000         .10000E-03   10000.    
    14 'norm      '    6.0331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38913E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .87393       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.876       1.0000         .10000E-03   10000.    
    20 'norm      '    16.349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .83362E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2785       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9727       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    35.446       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .83892       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1145       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=   5269.709     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4578 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74472        13.816        .64042E-05   -.11076E-03
   2  Prefactor     .10000E-03    21.899       -.82008E-06** at limit **
   3  Prefactor     .10000E-03    8.7012        .31762E-06** at limit **
   4  norm          6.6881        3.6875        .79899E-08   -.23447E-03
   5  Prefactor     .10000E-03    8.2853       -.12944E-07** at limit **
   6  norm          6.9973        2.9309        .21687E-08   -.92710E-04
   7  Prefactor     50.972        68.838        .30569E-06   -.20946E-04
   8  Prefactor     .10000E-03    15.550        .19225E-06** at limit **
   9  norm          11.004        17.086        .15536E-06   -.54035E-05
  10  norm          .10000E-03    1.0732       -.15668E-09** at limit **
  11  Prefactor     19.201        31.518        .16813E-06   -.11389E-04
  12  Prefactor     36.566        22.640       -.58001E-07   -.40599E-05
  13  Prefactor     41.553        34.041       -.87379E-08   -.13002E-04
  14  norm          6.0326        4.8886        .50541E-07   -.86583E-05
  15  Prefactor     .10000E-03    302.92       -.13920E-05** at limit **
  16  Prefactor     .10000E-03    81.744        .11677E-05** at limit **
  17  norm          .87315        1.4332        .31298E-06    .52751E-04
  18  norm          .10000E-03    42.275       -.23906E-06** at limit **
  19  norm          10.875        5.2683        .74304E-07    .49354E-04
  20  norm          16.348        14.166        .44633E-07   -.87310E-05
  21  Prefactor     .10006E-03    751.98       -.52782E-05** at limit **
  22  Prefactor     .10000E-03    127.59       -.62814E-06** at limit **
  23  Prefactor     .10000E-03    16.628       -.16948E-06** at limit **
  24  Prefactor     .10000E-03    2.1437       -.71879E-08** at limit **
  25  Prefactor     8.2771        11.504        .13463E-05   -.48842E-04
  26  Prefactor     1.9725        1.9478        .53226E-07   -.51828E-05
  27  Prefactor     .10000E-03    14.526        .38398E-06** at limit **
  28  Prefactor     .10000E-03    12.344       -.64211E-07** at limit **
  29  Prefactor     35.437        55.318        .12100E-06   -.16174E-04
  30  Prefactor     .10000E-03    17.504       -.19466E-06** at limit **
  31  Prefactor     .10000E-03    7.6988       -.14174E-06** at limit **
  32  Normalizat    .83897        .17953       -.77935E-06   -.12234E-03
  33  Prefactor     1.1146        .21812       -.57452E-06   -.10476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.744723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.68815
  Prefactor  = 0.0001
  norm       = 6.99734
  Prefactor  = 50.9723
  Prefactor  = 0.0001
  norm       = 11.0042
  norm       = 0.0001
  Prefactor  = 19.2012
  Prefactor  = 36.5665
  Prefactor  = 41.5535
  norm       = 6.03257
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.873147
  norm       = 0.0001
  norm       = 10.8753
  norm       = 16.3477
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.27715
  Prefactor  = 1.97253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.838966
  Prefactor  = 1.1146
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.709     FROM HESSE     STATUS=OK           695 CALLS     5273 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74472        13.777        .48910E-02   -1.5535    
   2  Prefactor     .10000E-03    22.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.319        .37255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6881        3.3403        .90224E-04   -1.5191    
   5  Prefactor     .10000E-03    8.2949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.9973        2.9287        .77838E-04   -1.5179    
   7  Prefactor     50.972        68.889        .56168E-04   -1.4279    
   8  Prefactor     .10000E-03    15.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.004        17.068        .12076E-03   -1.5044    
  10  norm          .10000E-03    1.0762        .73428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.201        31.496        .91395E-04   -1.4831    
  12  Prefactor     36.566        22.630        .66277E-04   -1.4498    
  13  Prefactor     41.553        33.981        .62186E-04   -1.4418    
  14  norm          6.0326        4.8831        .12958E-03   -1.5217    
  15  Prefactor     .10000E-03    312.31        .42552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    82.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .87315        1.3934        .10500E-03   -1.5521    
  18  norm          .10000E-03    42.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.875        5.2687        .11039E-03   -1.5048    
  20  norm          16.348        14.165        .99055E-04   -1.4899    
  21  Prefactor     .10006E-03    750.98        .20877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    129.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1579        .10377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.2771        11.516        .69668E-03   -1.5132    
  26  Prefactor     1.9725        1.9330        .96993E-04   -1.5427    
  27  Prefactor     .10000E-03    14.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     35.437        55.310        .67312E-04   -1.4517    
  30  Prefactor     .10000E-03    17.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    7.7162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .83897        .21442        .24352E-03   -.98639    
  33  Prefactor     1.1146        .26143        .26753E-03   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09334e-07
Minuit parameter uncertainties:
  1  6.40753
  2  0.000105877
  3  6.24769e-05
  4  3.34042
  5  1.54483e-07
  6  2.92872
  7  68.997
  8  2.88135e-05
  9  17.0759
  10  4.62578e-07
  11  31.5228
  12  22.6348
  13  33.9964
  14  4.88343
  15  0.00113841
  16  0.000649052
  17  1.39348
  18  0.000176254
  19  5.26889
  20  14.1677
  21  0.0140452
  22  0.000340915
  23  5.45808e-05
  24  8.96412e-07
  25  11.519
  26  1.93308
  27  0.000105353
  28  1.5995e-05
  29  55.3906
  30  9.03808e-05
  31  4.97239e-06
  32  0.214637
  33  0.261728
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  6.033e+00  4.883e+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.115e+00  2.617e-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:  8.390e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.29
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.21e-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) = 5269.39704976
delta logL = 0.311589868588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5269.39429654
delta logL = 0.31434308522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7507       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7232       1.0000          .0000       5.0000    
     3 'Normalizat'    .85595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   5269.394     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7463        5.5643        .41873E-02    .18245E-03
   2  alpha         1.7224        .57341        .41755       -.50218E-04
   3  Normalizat    .85550        .17313        .44336E-01   -.43641E-03
   4  Prefactor     1.1042        .21662        .60778E-01   -.64260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.74633
  alpha      = 1.7224
  Normalizat = 0.855502
  Prefactor  = 1.1042
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.394     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7463        5.5351        .14336E-03   -1.5228    
   2  alpha         1.7224        .69560        .15018E-01   -.31629    
   3  Normalizat    .85550        .20734        .24156E-03   -.98042    
   4  Prefactor     1.1042        .25929        .26879E-03   -.89332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58937e-10
Minuit parameter uncertainties:
  1  5.53557
  2  0.70594
  3  0.207537
  4  0.259585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773822': 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) = 5269.39429292
delta logL = 0.314346706276

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  5.746e+00  5.536e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  1.722e+00  7.059e-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.104e+00  2.596e-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:  8.555e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.95
Ra Dec: 203.439 50.937
Photon Index (Free Index): 1.72 +/- 0.71
Photon Flux (Free Index): 2.22e-08 +/- 2.85e-08
Energy Flux (Free Index): 2.11e-05 +/- 2.19e-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/773822/cmap_HighResolution_240364801_240624001_4FGL_J1333.7+5056_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.11e-05', photon_flux_error='3.16e-08', dlogl='3.14e-01', energy_flux='1.50e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-08 03:35:37.722774', photon_index_error2='0.71', photon_index2='1.72', ts='6.29', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.84', time_epoch_completed='1631097337.72', return_code='0', job_id='773822', GAL2='1.10', EG2='0.86', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.85e-08', ts2='6.95', photon_index='2.25' WHERE bin_id='4' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:35:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 773822: <4FGL_J1333.7+5056_daily_bin4> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin4> 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) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:20:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:20:51 2021
Terminated at Wed Sep  8 03:35:38 2021
Results reported at Wed Sep  8 03:35:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin4 203.439 50.9366 240364801 240624001 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 :                                   827.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

