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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin75
RA = 203.439, Dec = 50.9366
tmin = 258768001, tmax = 259027201
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='775064', job_status='RUN', time_executed='2021-09-08 03:29:16.499680', time_epoch_executed='1631096956.5' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775064

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775064/ft1_4FGL_J1333.7+5056_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775064/ft1_4FGL_J1333.7+5056_daily_bin75.fits outfile=/scratch/kocevski/775064/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin75.fits ra=203.439 dec=50.9366 rad=12.0 tmin=258768001.0 tmax=259027201.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.13
user 0.96
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775064/ft1_filtered_4FGL_J1333.7+5056_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/775064/ltcube_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.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/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits
.....................!
real 10.87
user 10.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775064/ft1_filtered_4FGL_J1333.7+5056_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/775064/ltcube_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.fits outfile=/scratch/kocevski/775064/expmap_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.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/775064/ltcube_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.fits
.....................!
real 192.88
user 187.77
sys 4.48

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/775064/ft1_filtered_4FGL_J1333.7+5056_daily_bin75.fits scfile=/scratch/kocevski/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits outfile=/scratch/kocevski/775064/cmap_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775064/ft1_filtered_4FGL_J1333.7+5056_daily_bin75.fits scfile=/scratch/kocevski/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits outfile=/scratch/kocevski/775064/cmap_HighResolution_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775064/ft1_filtered_4FGL_J1333.7+5056_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/775064/ft2_4FGL_J1333.7+5056_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775064/Model_4FGL_J1333.7+5056_daily_bin75.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/775064/ft1_filtered_4FGL_J1333.7+5056_daily_bin75.fits.....................!
real 34.25
user 32.89
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6371       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18943E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.7890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2853       1.0000         .10000E-03   10000.    
     9 'norm      '    21.870       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5452       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5570       1.0000         .10000E-03   10000.    
    18 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.197       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .77788E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.086       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .81553       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.710       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .40548       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96771       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .86048       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=   3399.974     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4596 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6198        9.4258       -.16255E-05   -.59250E-04
   2  Prefactor     .10000E-03    148.04       -.12635E-05** at limit **
   3  Prefactor     .10058E-03    11.301        .16938E-05** at limit **
   4  norm          6.7883        4.2912       -.28358E-06   -.50277E-03
   5  Prefactor     .10000E-03    9.4640        .59388E-05** at limit **
   6  norm          .10000E-03    .92030       -.12288E-06** at limit **
   7  Prefactor     66.725        72.213       -.76268E-04    .36504E-05
   8  Prefactor     7.2892        15.826       -.33318E-05   -.16996E-03
   9  norm          21.868        20.224        .58833E-05    .28970E-04
  10  norm          3.5452        5.5043        .19619E-05   -.12322E-03
  11  Prefactor     .10000E-03    19.480       -.80434E-05** at limit **
  12  Prefactor     .10000E-03    19.521       -.71602E-05** at limit **
  13  Prefactor     .10000E-03    20.921        .17555E-05** at limit **
  14  norm          .10000E-03    1.9742       -.68981E-07** at limit **
  15  Prefactor     .10000E-03    25.084        .15382E-04** at limit **
  16  Prefactor     .10000E-03    28.269        .69969E-05** at limit **
  17  norm          3.5571        2.3007       -.40220E-06    .96785E-04
  18  norm          .10000E-03    35.447       -.26566E-04** at limit **
  19  norm          .10000E-03    1.1923       -.96404E-07** at limit **
  20  norm          22.195        20.415       -.87966E-06    .23024E-04
  21  Prefactor     .10000E-03    1862.9       -.41862E-03** at limit **
  22  Prefactor     .10000E-03    21.328        .44034E-05** at limit **
  23  Prefactor     11.056        40.914       -.33076E-04   -.10431E-04
  24  Prefactor     .10000E-03    1.7765        .23083E-07** at limit **
  25  Prefactor     .10000E-03    10.034       -.66979E-05** at limit **
  26  Prefactor     .82127        2.8174        .23241E-05    .90021E-03
  27  Prefactor     .10000E-03    8.5655       -.11790E-05** at limit **
  28  Prefactor     29.683        37.331       -.11036E-04   -.10358E-03
  29  Prefactor     .10000E-03    53.016        .26469E-06** at limit **
  30  Prefactor     .10000E-03    12.630        .43103E-05** at limit **
  31  Prefactor     .42434        11.217       -.14932E-05    .23154E-03
  32  Normalizat    .96759        .20645        .77129E-05   -.26595E-03
  33  Prefactor     .86049        .24501        .18569E-05    .14081E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.61984
  Prefactor  = 0.0001
  Prefactor  = 0.000100583
  norm       = 6.78826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 66.7245
  Prefactor  = 7.28923
  norm       = 21.8679
  norm       = 3.54523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.55706
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.1949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.821274
  Prefactor  = 0.0001
  Prefactor  = 29.6834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.424339
  Normalizat = 0.967591
  Prefactor  = 0.860492
 **********
 **   18 **HESSE 
 **********

 FCN=   3399.974     FROM HESSE     STATUS=OK           687 CALLS     5283 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6198        9.3854        .15576E-03   -1.5193    
   2  Prefactor     .10000E-03    153.04        .36470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10058E-03    55.581        .35551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7883        4.1618        .86238E-04   -1.5187    
   5  Prefactor     .10000E-03    9.4738        .17522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .92684        .54624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     66.725        72.141        .24552E-03   -1.4072    
   8  Prefactor     7.2892        15.674        .14860E-03   -1.5168    
   9  norm          21.868        20.223        .85650E-04   -1.4772    
  10  norm          3.5452        5.4906        .16225E-03   -1.5331    
  11  Prefactor     .10000E-03    19.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9803        .79993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5571        2.2991        .66861E-04   -1.5331    
  18  norm          .10000E-03    35.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1946        .62177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.195        20.418        .85017E-04   -1.4765    
  21  Prefactor     .10000E-03    1864.4        .20919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.056        40.934        .12033E-03   -1.5043    
  24  Prefactor     .10000E-03    1.7773        .75890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.048        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .82127        2.3849        .14372E-02   -1.5527    
  27  Prefactor     .10000E-03    8.5691        .16667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     29.683        34.620        .73505E-04   -1.4618    
  29  Prefactor     .10000E-03    53.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    12.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .42434        91.146        .37576E-02   -1.5578    
  32  Normalizat    .96759        .24282        .21166E-03   -.94124    
  33  Prefactor     .86049        .28896        .27353E-03   -.97536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43356e-08
Minuit parameter uncertainties:
  1  9.38748
  2  0.000128171
  3  0.0113928
  4  4.16202
  5  2.05289e-05
  6  5.06833e-06
  7  72.2355
  8  15.6828
  9  20.2291
  10  5.49142
  11  1.84745e-05
  12  0.000136448
  13  1.79926e-05
  14  1.11796e-05
  15  5.71711e-05
  16  0.000115152
  17  2.29915
  18  3.29845e-06
  19  3.28026e-06
  20  20.424
  21  0.00177897
  22  7.31688e-05
  23  41.0385
  24  1.23032e-05
  25  4.23233e-06
  26  2.38519
  27  1.2151e-05
  28  34.6432
  29  0.000148392
  30  4.41476e-06
  31  12.4559
  32  0.243097
  33  0.289474
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.118e-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.605e-01  2.895e-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.676e-01  2.431e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775064/likelihoodResults_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.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) = 3399.97606968
delta logL = -0.00238011615511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3399.97368958
delta logL = -1.45946614794e-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.2576       1.0000          .0000       5.0000    
     3 'Normalizat'    .96762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86049       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3399.959     FROM MIGRAD    STATUS=FAILED       136 CALLS      275 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23203E-01    4.8080        .80040E-02    .37221E-02
   2  alpha         5.0000        4.5808        .50000    ** at limit **
   3  Normalizat    .95117        .42198E-01    .21165E-03   -.11491E-03
   4  Prefactor     .87313        .49111E-01    .27353E-03   -.88133E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3399.959     FROM SIMPLEX   STATUS=UNCHANGED    119 CALLS      394 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23203E-01    4.8080        .13080E-04    .37221E-02
   2  alpha         5.0000        4.5808        .35564E-01** at limit **
   3  Normalizat    .95117        .42198E-01    .29851E-05   -.11491E-03
   4  Prefactor     .87313        .49111E-01    .72484E-06   -.88133E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3399.959     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      436 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23202E-01    .24310        .33517E-03    .10086E-01
   2  alpha         5.0000        2.9525        .50000    ** at limit **
   3  Normalizat    .95117        .25477        .42331E-04   -.19981E-03
   4  Prefactor     .87313        .29728        .10941E-04   -.12292E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.023202
  alpha      = 5
  Normalizat = 0.951172
  Prefactor  = 0.873132
 **********
 **   18 **HESSE 
 **********

 FCN=   3399.959     FROM HESSE     STATUS=OK            31 CALLS      467 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23202E-01    .21769        .67034E-04   -1.5678    
   2  alpha         5.0000        3.2195        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95117        .25564        .84661E-05   -.94685    
   4  Prefactor     .87313        .29802        .21883E-05   -.97086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06549e-11
Minuit parameter uncertainties:
  1  0.141831
  2  8.32996e-06
  3  0.25597
  4  0.298578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775064': 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) = 3399.9589559
delta logL = 0.0147336580239

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.320e-02  1.418e-01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  5.000e+00  8.330e-06  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.731e-01  2.986e-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.512e-01  2.560e-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/775064/cmap_HighResolution_258768001_259027201_4FGL_J1333.7+5056_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-08 03:41:20.480671', job_id='775064', GAL2='0.87', fit_tolerance='1e-08', EG2='0.95', EG='0.97', time_epoch_completed='1631097680.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.47e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='75' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:41:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 775064: <4FGL_J1333.7+5056_daily_bin75> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin75> 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) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:26:07 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:07 2021
Terminated at Wed Sep  8 03:41:21 2021
Results reported at Wed Sep  8 03:41:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin75 203.439 50.9366 258768001 259027201 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            948 sec.

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

