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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin686
RA = 203.439, Dec = 50.9366
tmin = 417139201, tmax = 417398401
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='777980', job_status='RUN', time_executed='2021-09-08 03:36:12.868781', time_epoch_executed='1631097372.87' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/777980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/777980/ft1_4FGL_J1333.7+5056_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/777980/ft1_4FGL_J1333.7+5056_daily_bin686.fits outfile=/scratch/kocevski/777980/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin686.fits ra=203.439 dec=50.9366 rad=12.0 tmin=417139201.0 tmax=417398401.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 4.60
user 4.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/777980/ft1_filtered_4FGL_J1333.7+5056_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/777980/ltcube_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.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/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits
.....................!
real 13.20
user 12.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/777980/ft1_filtered_4FGL_J1333.7+5056_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/777980/ltcube_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.fits outfile=/scratch/kocevski/777980/expmap_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.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/777980/ltcube_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.fits
.....................!
real 158.72
user 154.02
sys 4.36

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/777980/ft1_filtered_4FGL_J1333.7+5056_daily_bin686.fits scfile=/scratch/kocevski/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits outfile=/scratch/kocevski/777980/cmap_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.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.49
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/777980/ft1_filtered_4FGL_J1333.7+5056_daily_bin686.fits scfile=/scratch/kocevski/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits outfile=/scratch/kocevski/777980/cmap_HighResolution_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/777980/ft1_filtered_4FGL_J1333.7+5056_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/777980/ft2_4FGL_J1333.7+5056_daily_bin686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/777980/Model_4FGL_J1333.7+5056_daily_bin686.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/777980/ft1_filtered_4FGL_J1333.7+5056_daily_bin686.fits.....................!
real 33.94
user 32.64
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3730       1.0000         .10000E-03   10000.    
     4 'norm      '    11.312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.4770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.537       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1660       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2013       1.0000         .10000E-03   10000.    
    21 'Prefactor '    286.87       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    43.067       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8066       1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.632       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .35308       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4281       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=   4409.084     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4611 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8088        7.9808        .13833E-05    .15577E-03
   2  Prefactor     .10000E-03    65.916       -.84857E-06** at limit **
   3  Prefactor     5.3728        6.9605        .18557E-07    .13719E-04
   4  norm          11.312        4.4296        .21669E-07   -.97018E-05
   5  Prefactor     .10000E-03    29.903       -.12304E-06** at limit **
   6  norm          7.4769        3.3922        .20182E-07    .59732E-04
   7  Prefactor     .10000E-03    335.21        .83472E-06** at limit **
   8  Prefactor     .10000E-03    4.3551       -.50788E-08** at limit **
   9  norm          .10000E-03    14.044       -.12355E-06** at limit **
  10  norm          3.2278        6.1001        .16964E-06    .21783E-04
  11  Prefactor     33.371        42.807        .34200E-06    .33542E-04
  12  Prefactor     10.534        17.604        .63928E-06    .27008E-05
  13  Prefactor     .10000E-03    19.957       -.83869E-06** at limit **
  14  norm          .10000E-03    2.1730        .83494E-08** at limit **
  15  Prefactor     18.133        68.897       -.11885E-05    .19809E-05
  16  Prefactor     58.526        52.769        .55301E-06   -.17866E-04
  17  norm          7.1661        2.4649        .50912E-08    .22801E-04
  18  norm          .10000E-03    28.744        .22423E-06** at limit **
  19  norm          .10000E-03    1.3641        .23471E-07** at limit **
  20  norm          2.2017        15.670        .74363E-05   -.11677E-04
  21  Prefactor     286.87        353.15       -.90999E-07    .68196E-06
  22  Prefactor     .10000E-03    34.909       -.97683E-06** at limit **
  23  Prefactor     .10000E-03    51.552        .17141E-05** at limit **
  24  Prefactor     .10000E-03    1.8943        .20614E-09** at limit **
  25  Prefactor     43.065        29.347       -.18321E-06   -.68741E-04
  26  Prefactor     1.8065        1.8656        .91079E-09   -.93226E-04
  27  Prefactor     50.630        32.177       -.12099E-06   -.70660E-04
  28  Prefactor     .10000E-03    21.838        .12883E-06** at limit **
  29  Prefactor     .10000E-03    16.377        .31705E-06** at limit **
  30  Prefactor     .10000E-03    23.449        .74771E-06** at limit **
  31  Prefactor     .10000E-03    12.719        .16496E-07** at limit **
  32  Normalizat    .35320        .21488        .36738E-07   -.35459E-05
  33  Prefactor     1.4279        .24492       -.63430E-06    .30512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80876
  Prefactor  = 0.000100001
  Prefactor  = 5.37281
  norm       = 11.3124
  Prefactor  = 0.0001
  norm       = 7.47689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.22781
  Prefactor  = 33.3711
  Prefactor  = 10.5342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.1329
  Prefactor  = 58.5262
  norm       = 7.16607
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.20168
  Prefactor  = 286.872
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.0648
  Prefactor  = 1.80654
  Prefactor  = 50.6301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.353205
  Prefactor  = 1.42793
 **********
 **   18 **HESSE 
 **********

 FCN=   4409.084     FROM HESSE     STATUS=OK           687 CALLS     5298 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8088        7.9837        .83325E-03   -1.5226    
   2  Prefactor     .10000E-03    66.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3728        6.9535        .17337E-03   -1.5244    
   4  norm          11.312        4.4290        .80702E-04   -1.5035    
   5  Prefactor     .10000E-03    30.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.4769        3.3892        .79477E-04   -1.5161    
   7  Prefactor     .10000E-03    337.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3643        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2278        6.0546        .20429E-03   -1.5349    
  11  Prefactor     33.371        42.649        .69361E-04   -1.4552    
  12  Prefactor     10.534        17.532        .61720E-03   -1.5059    
  13  Prefactor     .10000E-03    19.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1774        .95347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.133        68.722        .94078E-04   -1.4856    
  16  Prefactor     58.526        52.679        .52437E-04   -1.4176    
  17  norm          7.1661        2.4605        .57650E-04   -1.5173    
  18  norm          .10000E-03    28.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3686        .75705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2017        15.679        .13865E-02   -1.5411    
  21  Prefactor     286.87        353.14        .11981E-03   -1.2304    
  22  Prefactor     .10000E-03    35.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    51.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.8964        .89227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     43.065        29.260        .61088E-04   -1.4395    
  26  Prefactor     1.8065        1.8612        .87975E-04   -1.5439    
  27  Prefactor     50.630        32.073        .56360E-04   -1.4284    
  28  Prefactor     .10000E-03    21.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .35320        .23128        .35254E-03   -1.1979    
  33  Prefactor     1.4279        .27068        .23122E-03   -.79579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47837e-10
Minuit parameter uncertainties:
  1  7.98517
  2  0.000558274
  3  6.9545
  4  4.42917
  5  4.27502e-05
  6  3.38924
  7  0.000779997
  8  1.46242e-07
  9  1.19678e-05
  10  6.05571
  11  42.6875
  12  17.5407
  13  9.80286e-05
  14  1.88347e-08
  15  69.0246
  16  52.7214
  17  2.46054
  18  3.43303e-05
  19  1.39996e-06
  20  11.755
  21  355.83
  22  0.000174579
  23  0.000430464
  24  5.45187e-08
  25  29.2697
  26  1.86129
  27  32.0837
  28  2.03421e-05
  29  3.85322e-05
  30  9.78007e-05
  31  3.12641e-06
  32  0.231908
  33  0.270947
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  1.883e-08  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.428e+00  2.709e-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:  3.532e-01  2.319e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/777980/likelihoodResults_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.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) = 4409.08641168
delta logL = -0.00211881848827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4409.08429289
delta logL = -2.77668732451e-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.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    .35320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4280       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=   4409.084     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    3.5813        .95354E-03** at limit **
   2  alpha         2.2231        2.8982        .16564        .13802E-05
   3  Normalizat    .35321        .21069        .35254E-03   -.30313E-05
   4  Prefactor     1.4279        .26667        .23122E-03   -.54084E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4409.084     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      347 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    3.5813        .23133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2231        2.8982        .28056E-03   -.11098    
   3  Normalizat    .35321        .21069        .55414E-04   -1.1979    
   4  Prefactor     1.4279        .26667        .47124E-04   -.79579    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4409.084     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      374 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1807        .19071E-03** at limit **
   2  alpha         2.1859        3.7847        .66255E-02   -.14139E-06
   3  Normalizat    .35321        .21078        .14102E-04    .77395E-05
   4  Prefactor     1.4279        .26679        .92489E-05    .76210E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.18593
  Normalizat = 0.353205
  Prefactor  = 1.42793
 **********
 **   18 **HESSE 
 **********

 FCN=   4409.084     FROM HESSE     STATUS=OK            23 CALLS      397 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1807        .38142E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1859        3.6999        .13251E-02   -.12596    
   3  Normalizat    .35321        .21064        .28203E-05   -1.1979    
   4  Prefactor     1.4279        .26661        .18498E-05   -.79579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06323e-10
Minuit parameter uncertainties:
  1  7.7429e-05
  2  243.68
  3  0.211117
  4  0.266871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/777980': 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) = 4409.08429283
delta logL = 3.3619471651e-08

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.000e-04  7.743e-05  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.186e+00  2.437e+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:  1.428e+00  2.669e-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:  3.532e-01  2.111e-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/777980/cmap_HighResolution_417139201_417398401_4FGL_J1333.7+5056_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-08 03:48:01.302035', job_id='777980', GAL2='1.43', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1631098081.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='3.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='686' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:48:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 777980: <4FGL_J1333.7+5056_daily_bin686> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin686> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 03:35:35 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:36:00 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:36:00 2021
Terminated at Wed Sep  8 03:48:02 2021
Results reported at Wed Sep  8 03:48:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin686 203.439 50.9366 417139201 417398401 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            747 sec.

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

