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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin73
RA = 203.439, Dec = 50.9366
tmin = 258249601, tmax = 258508801
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='775061', job_status='RUN', time_executed='2021-09-08 03:28:22.029587', time_epoch_executed='1631096902.03' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775061

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775061/ft1_4FGL_J1333.7+5056_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775061/ft2_4FGL_J1333.7+5056_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775061/ft1_4FGL_J1333.7+5056_daily_bin73.fits outfile=/scratch/kocevski/775061/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin73.fits ra=203.439 dec=50.9366 rad=12.0 tmin=258249601.0 tmax=258508801.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.35
user 1.05
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775061/ft2_4FGL_J1333.7+5056_daily_bin73.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/775061/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/775061/ft1_filtered_4FGL_J1333.7+5056_daily_bin73.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.57
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775061/ft1_filtered_4FGL_J1333.7+5056_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/775061/ft2_4FGL_J1333.7+5056_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/775061/ltcube_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.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/775061/ft2_4FGL_J1333.7+5056_daily_bin73.fits
.....................!
real 14.77
user 14.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775061/ft1_filtered_4FGL_J1333.7+5056_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/775061/ft2_4FGL_J1333.7+5056_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/775061/ltcube_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.fits outfile=/scratch/kocevski/775061/expmap_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.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/775061/ltcube_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.fits
.....................!
real 193.89
user 186.96
sys 5.95

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

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

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775061/ft1_filtered_4FGL_J1333.7+5056_daily_bin73.fits scfile=/scratch/kocevski/775061/ft2_4FGL_J1333.7+5056_daily_bin73.fits outfile=/scratch/kocevski/775061/cmap_HighResolution_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775061/ft1_filtered_4FGL_J1333.7+5056_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/775061/ft2_4FGL_J1333.7+5056_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775061/Model_4FGL_J1333.7+5056_daily_bin73.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/775061/ft1_filtered_4FGL_J1333.7+5056_daily_bin73.fits.....................!
real 34.51
user 33.04
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.7794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.289       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.893       1.0000         .10000E-03   10000.    
    18 'norm      '    .10286E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5514       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.706       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.451       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15970E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    87.770       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .13305E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95838       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0667       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=   3316.369     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4564 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.686        15.961       -.19397E-07   -.26890E-03
   2  Prefactor     .10000E-03    39.458        .23161E-04** at limit **
   3  Prefactor     .10000E-03    8.5509        .26661E-05** at limit **
   4  norm          5.7796        4.0131        .64764E-07   -.13640E-03
   5  Prefactor     20.182        28.322        .26227E-06   -.67620E-04
   6  norm          .10000E-03    1.4409        .60781E-07** at limit **
   7  Prefactor     .10000E-03    183.32        .60131E-04** at limit **
   8  Prefactor     .10000E-03    12.576        .10357E-05** at limit **
   9  norm          14.290        20.338        .98071E-07   -.67351E-04
  10  norm          .10000E-03    2.5618        .32919E-07** at limit **
  11  Prefactor     .10000E-03    31.191       -.39317E-05** at limit **
  12  Prefactor     11.896        26.289        .76621E-06    .40410E-04
  13  Prefactor     .10000E-03    194.05        .47399E-04** at limit **
  14  norm          .10000E-03    9.6250       -.19035E-05** at limit **
  15  Prefactor     .10000E-03    26.786       -.79577E-05** at limit **
  16  Prefactor     .10000E-03    18.314       -.72871E-05** at limit **
  17  norm          11.894        3.6313       -.10526E-07   -.41843E-03
  18  norm          .10000E-03    119.22        .36513E-04** at limit **
  19  norm          5.5517        7.2338        .12045E-06    .39793E-04
  20  norm          .10000E-03    9.1010        .44764E-05** at limit **
  21  Prefactor     .10000E-03    241.49       -.33431E-04** at limit **
  22  Prefactor     .10000E-03    28.856       -.93527E-05** at limit **
  23  Prefactor     .10000E-03    55.948       -.15880E-04** at limit **
  24  Prefactor     .10000E-03    8.6865       -.55339E-05** at limit **
  25  Prefactor     21.719        40.770        .28393E-05    .11336E-03
  26  Prefactor     10.451        5.0909        .39351E-07    .12105E-02
  27  Prefactor     .10003E-03    284.27       -.12941E-03** at limit **
  28  Prefactor     .10000E-03    21.198        .14632E-04** at limit **
  29  Prefactor     87.795        109.47        .21915E-04    .15157E-03
  30  Prefactor     .10000E-03    33.076        .33380E-05** at limit **
  31  Prefactor     .10001E-03    87.856       -.32346E-04** at limit **
  32  Normalizat    .95802        .24764       -.16973E-05    .32051E-03
  33  Prefactor     1.0671        .27992       -.75305E-06    .20910E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 41.686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7796
  Prefactor  = 20.1822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2898
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8937
  norm       = 0.0001
  norm       = 5.5517
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7188
  Prefactor  = 10.4515
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 87.7951
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 0.958025
  Prefactor  = 1.06711
 **********
 **   18 **HESSE 
 **********

 FCN=   3316.369     FROM HESSE     STATUS=OK           673 CALLS     5237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.686        15.959        .62087E-04   -1.4416    
   2  Prefactor     .10000E-03    39.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5943        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.7796        4.0123        .92857E-04   -1.5227    
   5  Prefactor     20.182        28.353        .89163E-04   -1.4809    
   6  norm          .10000E-03    1.4501        .67494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    184.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.290        20.345        .10596E-03   -1.4952    
  10  norm          .10000E-03    2.5765        .90000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.896        25.987        .11615E-03   -1.5018    
  13  Prefactor     .10000E-03    195.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.7816        .34370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.894        3.6413        .56845E-04   -1.5018    
  18  norm          .10000E-03    119.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5517        7.2280        .16766E-03   -1.5237    
  20  norm          .10000E-03    9.1047        .16969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    241.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    56.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7532        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.719        41.174        .85973E-04   -1.4776    
  26  Prefactor     10.451        5.0895        .86423E-04   -1.5061    
  27  Prefactor     .10003E-03    286.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     87.795        109.91        .42885E-04   -1.3831    
  30  Prefactor     .10000E-03    33.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    89.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .95802        .28847        .25547E-03   -.94450    
  33  Prefactor     1.0671        .32402        .29547E-03   -.90525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06424e-09
Minuit parameter uncertainties:
  1  15.9607
  2  2.3695e-05
  3  1.06236e-05
  4  4.01253
  5  28.3721
  6  2.09984e-06
  7  0.000337365
  8  1.24088e-05
  9  20.3545
  10  1.81997e-06
  11  1.8098e-06
  12  26.0117
  13  0.000192663
  14  1.16467e-05
  15  7.07449e-06
  16  7.14738e-06
  17  3.64132
  18  4.77382e-06
  19  7.22916
  20  1.13775e-06
  21  8.47626e-06
  22  1.95112e-05
  23  0.000219682
  24  6.09108e-05
  25  41.2277
  26  5.08971
  27  0.0059273
  28  1.31583e-05
  29  110.169
  30  6.46779e-05
  31  0.00149055
  32  0.288941
  33  0.324618
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.165e-05  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.067e+00  3.246e-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:  9.580e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.439 50.937
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775061/likelihoodResults_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.txt

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) = 3316.36979909
delta logL = -0.000488131556722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3316.36931113
delta logL = -1.74720753421e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3411       1.0000          .0000       5.0000    
     3 'Normalizat'    .95758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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=   3314.741     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      267 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26824        .18627        .43247E-02    .19228E-03
   2  alpha         5.0000        .50434        .41257    ** at limit **
   3  Normalizat    .80611        .23964        .45633E-01    .18952E-03
   4  Prefactor     1.1781        .28397        .63958E-01    .27932E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.268243
  alpha      = 5
  Normalizat = 0.806108
  Prefactor  = 1.17809
 **********
 **   18 **HESSE 
 **********

 FCN=   3314.741     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26824        .18570        .19402E-04   -1.5812    
   2  alpha         5.0000        .86221        .35362E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80611        .27459        .27483E-03   -.99843    
   4  Prefactor     1.1781        .32830        .28286E-03   -.87008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09797e-10
Minuit parameter uncertainties:
  1  0.185697
  2  2.31357e-05
  3  0.275063
  4  0.32887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775061': 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) = 3314.74056931
delta logL = 1.62874165263

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.682e-01  1.857e-01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  5.000e+00  2.314e-05  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.178e+00  3.289e-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.061e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 203.439 50.937
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.32e-07 +/- 9.07e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.24e-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/775061/cmap_HighResolution_258249601_258508801_4FGL_J1333.7+5056_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='1.63e+00', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 03:40:18.446573', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.24e-05', EG='0.96', time_epoch_completed='1631097618.45', return_code='0', job_id='775061', GAL2='1.18', EG2='0.81', return_code2='0', photon_flux_error2='9.07e-08', ts2='3.50', photon_index='2.25' WHERE bin_id='73' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:40:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 775061: <4FGL_J1333.7+5056_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin73 203.439 50.9366 258249601 258508801 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 :                                   716.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            885 sec.

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

