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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin994
RA = 203.439, Dec = 50.9366
tmin = 496972801, tmax = 497232001
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='779455', job_status='RUN', time_executed='2021-09-08 03:40:45.558161', time_epoch_executed='1631097645.56' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779455/ft1_4FGL_J1333.7+5056_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779455/ft2_4FGL_J1333.7+5056_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779455/ft1_4FGL_J1333.7+5056_daily_bin994.fits outfile=/scratch/kocevski/779455/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin994.fits ra=203.439 dec=50.9366 rad=12.0 tmin=496972801.0 tmax=497232001.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.27
user 5.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779455/ft2_4FGL_J1333.7+5056_daily_bin994.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/779455/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/779455/ft1_filtered_4FGL_J1333.7+5056_daily_bin994.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779455/ft1_filtered_4FGL_J1333.7+5056_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/779455/ft2_4FGL_J1333.7+5056_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/779455/ltcube_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.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/779455/ft2_4FGL_J1333.7+5056_daily_bin994.fits
.....................!
real 16.22
user 15.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779455/ft1_filtered_4FGL_J1333.7+5056_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/779455/ft2_4FGL_J1333.7+5056_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/779455/ltcube_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.fits outfile=/scratch/kocevski/779455/expmap_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.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/779455/ltcube_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.fits
.....................!
real 191.58
user 186.40
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/779455/ft1_filtered_4FGL_J1333.7+5056_daily_bin994.fits scfile=/scratch/kocevski/779455/ft2_4FGL_J1333.7+5056_daily_bin994.fits outfile=/scratch/kocevski/779455/cmap_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.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/779455/ft1_filtered_4FGL_J1333.7+5056_daily_bin994.fits scfile=/scratch/kocevski/779455/ft2_4FGL_J1333.7+5056_daily_bin994.fits outfile=/scratch/kocevski/779455/cmap_HighResolution_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4966       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.859       1.0000         .10000E-03   10000.    
     6 'norm      '    7.0508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59514       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.033       1.0000         .10000E-03   10000.    
     9 'norm      '    15.472       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.202       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2463       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4433       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.4495       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.302       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.310       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.363       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1162       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82306       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3559.638     FROM MIGRAD    STATUS=CONVERGED   1608 CALLS     5279 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6638        7.8939        .13618E-03   -.14401E-04
   2  Prefactor     .10000E-03    12.413        .18142E-02** at limit **
   3  Prefactor     4.4963        5.3287        .14243E-03   -.28056E-04
   4  norm          1.9402        2.6403        .10523E-03    .65360E-04
   5  Prefactor     10.859        15.329        .60790E-03    .34570E-04
   6  norm          7.0509        2.8490        .62217E-04   -.61761E-04
   7  Prefactor     .38222        78.539        .14901        .50320E-04
   8  Prefactor     27.031        17.646        .77050E-04   -.48175E-04
   9  norm          15.481        22.476        .10182E-03   -.64256E-04
  10  norm          .10000E-03    2.7868        .96806E-03** at limit **
  11  Prefactor     26.209        60.996        .78261E-04   -.32322E-04
  12  Prefactor     7.0617        19.134        .15090E-03   -.15746E-04
  13  Prefactor     8.2430        87.326        .13961E-03   -.69217E-06
  14  norm          .10000E-03    2.0978        .84190E-03** at limit **
  15  Prefactor     7.9752        157.66        .14305E-03   -.71130E-05
  16  Prefactor     .10000E-03    19.221        .18142E-02** at limit **
  17  norm          3.4431        2.4499        .74184E-04   -.40611E-04
  18  norm          .10000E-03    40.402        .18142E-02** at limit **
  19  norm          8.4478        6.1492        .11938E-03   -.77420E-04
  20  norm          .10000E-03    19.594        .18142E-02** at limit **
  21  Prefactor     .10000E-03    467.87        .18142E-02** at limit **
  22  Prefactor     .10000E-03    35.106        .18142E-02** at limit **
  23  Prefactor     23.314        61.092        .82980E-04   -.45212E-05
  24  Prefactor     .10000E-03    5.1203        .13149E-02** at limit **
  25  Prefactor     .10000E-03    14.492        .18142E-02** at limit **
  26  Prefactor     .10000E-03    2.2273        .86508E-03** at limit **
  27  Prefactor     14.303        57.563        .10588E-03   -.12509E-04
  28  Prefactor     .10000E-03    26.856        .18142E-02** at limit **
  29  Prefactor     .10000E-03    55.269        .18142E-02** at limit **
  30  Prefactor     21.349        65.983        .86659E-04   -.50508E-05
  31  Prefactor     .10000E-03    20.482        .18142E-02** at limit **
  32  Normalizat    1.1161        .27449        .21995E-03   -.16957E-03
  33  Prefactor     .82321        .30670        .30815E-03   -.85482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.66383
  Prefactor  = 0.0001
  Prefactor  = 4.49625
  norm       = 1.94021
  Prefactor  = 10.8592
  norm       = 7.05092
  Prefactor  = 0.382217
  Prefactor  = 27.0306
  norm       = 15.481
  norm       = 0.0001
  Prefactor  = 26.2086
  Prefactor  = 7.06174
  Prefactor  = 8.24299
  norm       = 0.0001
  Prefactor  = 7.97524
  Prefactor  = 0.0001
  norm       = 3.44314
  norm       = 0.0001
  norm       = 8.44777
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3489
  Prefactor  = 0.0001
  Normalizat = 1.11609
  Prefactor  = 0.823206
 **********
 **   18 **HESSE 
 **********

 FCN=   3559.638     FROM HESSE     STATUS=OK           671 CALLS     5950 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6638        7.8937        .54472E-05   -1.5119    
   2  Prefactor     .10000E-03    12.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4963        5.3284        .56973E-05   -1.5284    
   4  norm          1.9402        2.6401        .42094E-05   -1.5429    
   5  Prefactor     10.859        15.328        .24316E-04   -1.5049    
   6  norm          7.0509        2.8490        .24887E-05   -1.5177    
   7  Prefactor     .38222        76.744        .15161       -1.5584    
   8  Prefactor     27.031        17.646        .30820E-05   -1.4668    
   9  norm          15.481        22.477        .40729E-05   -1.4921    
  10  norm          .10000E-03    2.7870        .19361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.209        60.969        .31304E-05   -1.4684    
  12  Prefactor     7.0617        19.131        .60359E-05   -1.5176    
  13  Prefactor     8.2430        87.208        .55844E-05   -1.5134    
  14  norm          .10000E-03    2.0979        .16838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9752        157.54        .57219E-05   -1.5143    
  16  Prefactor     .10000E-03    19.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4431        2.4498        .29673E-05   -1.5337    
  18  norm          .10000E-03    40.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.4478        6.1489        .47754E-05   -1.5127    
  20  norm          .10000E-03    19.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    467.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.314        61.101        .33192E-05   -1.4742    
  24  Prefactor     .10000E-03    5.1207        .26297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.2274        .17302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.303        57.557        .42352E-05   -1.4951    
  28  Prefactor     .10000E-03    26.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    55.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     21.349        66.014        .34664E-05   -1.4784    
  31  Prefactor     .10000E-03    20.483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1161        .27471        .43991E-04   -.89237    
  33  Prefactor     .82321        .30698        .12326E-04   -.98879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02282e-10
Minuit parameter uncertainties:
  1  7.89467
  2  3.25553e-06
  3  5.32899
  4  2.64026
  5  15.3338
  6  2.84907
  7  10.8447
  8  17.6489
  9  22.4895
  10  8.54203e-06
  11  61.1148
  12  19.1475
  13  53.7231
  14  1.05223e-05
  15  71.1074
  16  2.49125e-05
  17  2.44988
  18  1.90255e-05
  19  6.14938
  20  3.70417e-05
  21  0.000839489
  22  3.41012e-05
  23  61.2653
  24  7.34186e-06
  25  1.32266e-05
  26  8.59671e-06
  27  57.4808
  28  2.11894e-05
  29  1.48036e-05
  30  66.2416
  31  3.57051e-05
  32  0.27506
  33  0.307621
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.052e-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:  8.232e-01  3.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.116e+00  2.751e-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: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779455/likelihoodResults_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.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) = 3559.6397829
delta logL = -0.00220746661626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3559.63757545
delta logL = -1.25437509269e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2540       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3559.638     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      230 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1004        .84190E-03** at limit **
   2  alpha         2.3001        3.3585        .16562E-01   -.10639E-07
   3  Normalizat    1.1161        .24491        .21995E-03    .13800E-04
   4  Prefactor     .82321        .30009        .30815E-03    .10275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.30008
  Normalizat = 1.11609
  Prefactor  = 0.823206
 **********
 **   18 **HESSE 
 **********

 FCN=   3559.638     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0985        .16838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3001        3.8445        .66250E-03   -.80052E-01
   3  Normalizat    1.1161        .24513        .87982E-05   -.89237    
   4  Prefactor     .82321        .30036        .12326E-04   -.98879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92983e-12
Minuit parameter uncertainties:
  1  1.09243e-06
  2  387.095
  3  0.245382
  4  0.300965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779455': 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) = 3559.63757543
delta logL = 7.86803866504e-09

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.092e-06  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.300e+00  3.871e+02  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:  8.232e-01  3.010e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.116e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.439 50.937

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/779455/cmap_HighResolution_496972801_497232001_4FGL_J1333.7+5056_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-08 03:54:11.730221', job_id='779455', GAL2='0.82', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631098451.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.87e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='994' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:54:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 779455: <4FGL_J1333.7+5056_daily_bin994> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin994> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 03:40:22 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:40:26 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:40:26 2021
Terminated at Wed Sep  8 03:54:12 2021
Results reported at Wed Sep  8 03:54:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin994 203.439 50.9366 496972801 497232001 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 :                                   801.20 sec.
    Max Memory :                                 1037 MB
    Average Memory :                             321.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            830 sec.

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

