/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 14 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 = 7363
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1418
RA = 203.439, Dec = 50.9366
tmin = 606873601, tmax = 607132801
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='782765', job_status='RUN', time_executed='2021-09-08 03:51:50.854029', time_epoch_executed='1631098310.85' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782765/ft1_4FGL_J1333.7+5056_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782765/ft2_4FGL_J1333.7+5056_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782765/ft1_4FGL_J1333.7+5056_daily_bin1418.fits outfile=/scratch/kocevski/782765/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1418.fits ra=203.439 dec=50.9366 rad=12.0 tmin=606873601.0 tmax=607132801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.49
user 5.21
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782765/ft1_filtered_4FGL_J1333.7+5056_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/782765/ft2_4FGL_J1333.7+5056_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/782765/ltcube_606873601_607132801_4FGL_J1333.7+5056_daily_bin1418.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/782765/ft2_4FGL_J1333.7+5056_daily_bin1418.fits
.....................!
real 16.60
user 16.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782765/ft1_filtered_4FGL_J1333.7+5056_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/782765/ft2_4FGL_J1333.7+5056_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/782765/ltcube_606873601_607132801_4FGL_J1333.7+5056_daily_bin1418.fits outfile=/scratch/kocevski/782765/expmap_606873601_607132801_4FGL_J1333.7+5056_daily_bin1418.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/782765/ltcube_606873601_607132801_4FGL_J1333.7+5056_daily_bin1418.fits
.....................!
real 192.68
user 187.42
sys 4.61

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782765/ft1_filtered_4FGL_J1333.7+5056_daily_bin1418.fits scfile=/scratch/kocevski/782765/ft2_4FGL_J1333.7+5056_daily_bin1418.fits outfile=/scratch/kocevski/782765/cmap_HighResolution_606873601_607132801_4FGL_J1333.7+5056_daily_bin1418.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=203.439 yref=50.9366 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/782765/ft1_filtered_4FGL_J1333.7+5056_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/782765/ft2_4FGL_J1333.7+5056_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782765/Model_4FGL_J1333.7+5056_daily_bin1418.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/782765/ft1_filtered_4FGL_J1333.7+5056_daily_bin1418.fits.....................!
real 43.26
user 41.91
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.2505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.962       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6872       1.0000         .10000E-03   10000.    
     9 'norm      '    21.582       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.182       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8319       1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    253.09       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4520       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.3392       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.355       1.0000         .10000E-03   10000.    
    28 'Prefactor '    54.186       1.0000         .10000E-03   10000.    
    29 'Prefactor '    38.463       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .25221E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .84926       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91282       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=   4831.309     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4590 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5189        7.7759       -.45005E-05   -.55968E-04
   2  Prefactor     18.411        18.446       -.86411E-06    .16479E-04
   3  Prefactor     .10000E-03    1.8166       -.49129E-07** at limit **
   4  norm          5.2504        2.2627       -.25599E-06    .11102E-03
   5  Prefactor     .10000E-03    25.912       -.20589E-05** at limit **
   6  norm          .10000E-03    .72364       -.10690E-06** at limit **
   7  Prefactor     37.934        54.211       -.20525E-04    .21431E-04
   8  Prefactor     6.6862        7.3797        .16209E-05    .39387E-05
   9  norm          21.580        15.720        .41897E-06    .40726E-04
  10  norm          3.5113        3.2272       -.21682E-06    .25031E-03
  11  Prefactor     .10000E-03    25.788       -.21281E-04** at limit **
  12  Prefactor     18.181        19.329       -.14946E-05   -.22051E-05
  13  Prefactor     .10000E-03    48.383        .50792E-05** at limit **
  14  norm          5.8446        4.6953       -.37943E-06    .75124E-06
  15  Prefactor     .10000E-03    66.814        .26035E-04** at limit **
  16  Prefactor     .10000E-03    52.366       -.12303E-04** at limit **
  17  norm          2.8317        1.6457       -.47147E-06    .63439E-04
  18  norm          .10000E-03    54.893       -.17042E-04** at limit **
  19  norm          .10000E-03    3.9736       -.65977E-07** at limit **
  20  norm          .10000E-03    5.7658       -.60328E-07** at limit **
  21  Prefactor     251.75        494.82       -.84437E-03    .17238E-04
  22  Prefactor     .10000E-03    13.378       -.56771E-07** at limit **
  23  Prefactor     .10000E-03    16.376        .14887E-06** at limit **
  24  Prefactor     2.4511        3.6721       -.96235E-06   -.19451E-03
  25  Prefactor     .10000E-03    4.7002       -.15840E-06** at limit **
  26  Prefactor     2.3388        3.8040       -.23641E-05   -.63227E-03
  27  Prefactor     17.325        32.418        .11662E-04    .61715E-05
  28  Prefactor     54.176        37.117        .17586E-05    .12676E-03
  29  Prefactor     38.481        42.557        .10445E-04    .25317E-03
  30  Prefactor     .10000E-03    26.866        .25198E-04** at limit **
  31  Prefactor     .10028E-03    12.780       -.56186E-05** at limit **
  32  Normalizat    .84958        .17357        .19423E-05    .50398E-03
  33  Prefactor     .91249        .20740        .10442E-04    .20882E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.51886
  Prefactor  = 18.4113
  Prefactor  = 0.0001
  norm       = 5.25038
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.9343
  Prefactor  = 6.68624
  norm       = 21.5795
  norm       = 3.51125
  Prefactor  = 0.0001
  Prefactor  = 18.1814
  Prefactor  = 0.000100001
  norm       = 5.8446
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.83167
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 251.752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45112
  Prefactor  = 0.0001
  Prefactor  = 2.3388
  Prefactor  = 17.325
  Prefactor  = 54.1762
  Prefactor  = 38.4813
  Prefactor  = 0.0001
  Prefactor  = 0.000100277
  Normalizat = 0.849576
  Prefactor  = 0.912486
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.309     FROM HESSE     STATUS=OK           697 CALLS     5287 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5189        7.7742        .12988E-03   -1.5091    
   2  Prefactor     18.411        18.463        .93335E-04   -1.4850    
   3  Prefactor     .10000E-03    1.8215        .91472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2504        2.2636        .66561E-04   -1.5250    
   5  Prefactor     .10000E-03    26.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .72890        .57727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.934        54.382        .65050E-04   -1.4475    
   8  Prefactor     6.6862        7.3809        .15517E-03   -1.5191    
   9  norm          21.580        15.719        .86219E-04   -1.4779    
  10  norm          3.5113        3.2307        .11592E-03   -1.5333    
  11  Prefactor     .10000E-03    25.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.181        19.324        .93928E-04   -1.4855    
  13  Prefactor     .10000E-03    48.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8446        4.6875        .12328E-03   -1.5224    
  15  Prefactor     .10000E-03    67.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8317        1.6473        .64789E-04   -1.5371    
  18  norm          .10000E-03    54.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0860        .27017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.7701        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     251.75        495.23        .12734E-03   -1.2521    
  22  Prefactor     .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4511        3.6571        .15815E-03   -1.5395    
  25  Prefactor     .10000E-03    4.7043        .14717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.3388        3.7368        .13825E-03   -1.5402    
  27  Prefactor     17.325        32.295        .96140E-04   -1.4875    
  28  Prefactor     54.176        36.808        .54490E-04   -1.4235    
  29  Prefactor     38.481        42.623        .64626E-04   -1.4467    
  30  Prefactor     .10000E-03    26.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10028E-03    16.874        .74893E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .84958        .20414        .22234E-03   -.98255    
  33  Prefactor     .91249        .24292        .26693E-03   -.95706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36478e-09
Minuit parameter uncertainties:
  1  7.77499
  2  18.4685
  3  1.14461e-05
  4  2.26367
  5  0.000119693
  6  7.05182e-06
  7  54.4532
  8  7.38191
  9  15.7217
  10  3.23088
  11  8.76103e-05
  12  19.3303
  13  0.000375212
  14  4.68779
  15  0.000419493
  16  0.000256583
  17  1.64732
  18  6.26446e-05
  19  8.70436e-06
  20  1.40089e-05
  21  503.875
  22  8.40219e-06
  23  6.33599e-05
  24  3.65743
  25  1.40341e-05
  26  3.73713
  27  32.3271
  28  36.823
  29  42.6572
  30  0.00018183
  31  0.0043237
  32  0.204324
  33  0.243206
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  5.845e+00  4.688e+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:  9.125e-01  2.432e-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.496e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.16e-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) = 4830.58389763
delta logL = 0.725553134926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4830.39863004
delta logL = 0.910820724687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6904       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96879       1.0000          .0000       5.0000    
     3 'Normalizat'    .86937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91308       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=   4830.399     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6904        1.9623        .80944E-02   -.40303E-02
   2  alpha         .96857        .48883        .34045       -.38514E-04
   3  Normalizat    .86932        .16521        .44509E-01    .12308E-04
   4  Prefactor     .91316        .20609        .45171E-01    .98620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69042
  alpha      = 0.96857
  Normalizat = 0.869318
  Prefactor  = 0.913158
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.399     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6904        3.5814        .87270E-04   -1.5448    
   2  alpha         .96857        .89575        .14457E-01   -.65931    
   3  Normalizat    .86932        .19330        .22025E-03   -.97547    
   4  Prefactor     .91316        .24121        .26721E-03   -.95683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21629e-08
Minuit parameter uncertainties:
  1  3.5818
  2  0.929672
  3  0.193451
  4  0.24149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782765': 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) = 4830.39862985
delta logL = 0.910820914089

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.690e+00  3.582e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  9.686e-01  9.297e-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:  9.132e-01  2.415e-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.693e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.93
Ra Dec: 203.439 50.937
Photon Index (Free Index): 0.97 +/- 0.93
Photon Flux (Free Index): 6.15e-09 +/- 9.38e-09
Energy Flux (Free Index): 4.03e-05 +/- 6.25e-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/782765/cmap_HighResolution_606873601_607132801_4FGL_J1333.7+5056_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='4.03e-05', photon_flux_error='3.04e-08', dlogl='9.11e-01', energy_flux='1.45e-05', photon_flux2='6.15e-09', job_status='DONE', time_completed='2021-09-08 04:06:10.832807', photon_index_error2='0.93', photon_index2='0.97', ts='5.11', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.25e-05', EG='0.85', time_epoch_completed='1631099170.83', return_code='0', job_id='782765', GAL2='0.91', EG2='0.87', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='9.38e-09', ts2='6.93', photon_index='2.25' WHERE bin_id='1418' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:06:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 782765: <4FGL_J1333.7+5056_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1418> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 03:50:44 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:51:20 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:51:20 2021
Terminated at Wed Sep  8 04:06:11 2021
Results reported at Wed Sep  8 04:06:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1418 203.439 50.9366 606873601 607132801 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 :                                   803.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            927 sec.

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

