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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin39
RA = 203.439, Dec = 50.9366
tmin = 249436801, tmax = 249696001
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='775009', job_status='RUN', time_executed='2021-09-08 03:26:00.710702', time_epoch_executed='1631096760.71' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775009/ft1_4FGL_J1333.7+5056_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775009/ft2_4FGL_J1333.7+5056_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775009/ft1_4FGL_J1333.7+5056_daily_bin39.fits outfile=/scratch/kocevski/775009/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin39.fits ra=203.439 dec=50.9366 rad=12.0 tmin=249436801.0 tmax=249696001.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.47
user 1.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775009/ft2_4FGL_J1333.7+5056_daily_bin39.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/775009/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/775009/ft1_filtered_4FGL_J1333.7+5056_daily_bin39.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775009/ft1_filtered_4FGL_J1333.7+5056_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/775009/ft2_4FGL_J1333.7+5056_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/775009/ltcube_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.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/775009/ft2_4FGL_J1333.7+5056_daily_bin39.fits
.....................!
real 18.39
user 17.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775009/ft1_filtered_4FGL_J1333.7+5056_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/775009/ft2_4FGL_J1333.7+5056_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/775009/ltcube_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.fits outfile=/scratch/kocevski/775009/expmap_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.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/775009/ltcube_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.fits
.....................!
real 196.83
user 191.30
sys 5.08

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/775009/ft1_filtered_4FGL_J1333.7+5056_daily_bin39.fits scfile=/scratch/kocevski/775009/ft2_4FGL_J1333.7+5056_daily_bin39.fits outfile=/scratch/kocevski/775009/cmap_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.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.57
user 0.39
sys 0.16

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775009/ft1_filtered_4FGL_J1333.7+5056_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/775009/ft2_4FGL_J1333.7+5056_daily_bin39.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775009/Model_4FGL_J1333.7+5056_daily_bin39.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/775009/ft1_filtered_4FGL_J1333.7+5056_daily_bin39.fits.....................!
real 43.77
user 42.31
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.647       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2505       1.0000         .10000E-03   10000.    
    15 'Prefactor '    80.321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12798E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6124       1.0000         .10000E-03   10000.    
    20 'norm      '    .55974E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .74659E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1883       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    52.450       1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.7575       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .65567       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4645       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=   5077.776     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     4645 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3405       -.58585E-07** at limit **
   2  Prefactor     .10000E-03    10.606       -.46545E-06** at limit **
   3  Prefactor     .10000E-03    1.8086        .30538E-08** at limit **
   4  norm          .10000E-03    .75184       -.11344E-07** at limit **
   5  Prefactor     .10000E-03    7.1770       -.14898E-06** at limit **
   6  norm          .10000E-03    1.0347       -.32640E-07** at limit **
   7  Prefactor     .10000E-03    36.418        .72155E-05** at limit **
   8  Prefactor     .10000E-03    4.3712        .14246E-07** at limit **
   9  norm          .10000E-03    9.0964        .12354E-06** at limit **
  10  norm          .10000E-03    .80356       -.62410E-07** at limit **
  11  Prefactor     .10000E-03    12.195        .10936E-06** at limit **
  12  Prefactor     31.128        21.980        .14848E-05    .27138E-04
  13  Prefactor     58.624        41.917        .13779E-04    .14432E-03
  14  norm          4.2513        4.4891       -.85387E-06   -.14150E-03
  15  Prefactor     80.327        77.145       -.37360E-05    .60975E-05
  16  Prefactor     .10000E-03    71.768        .36163E-06** at limit **
  17  norm          .10000E-03    .87545       -.73311E-06** at limit **
  18  norm          .10000E-03    34.299       -.51279E-05** at limit **
  19  norm          4.6122        4.9554        .71084E-07   -.22996E-03
  20  norm          .10455E-03    17.657       -.74981E-06** at limit **
  21  Prefactor     .10000E-03    941.41        .54730E-04** at limit **
  22  Prefactor     .10000E-03    15.856       -.13333E-05** at limit **
  23  Prefactor     23.252        42.708       -.26443E-04    .50857E-05
  24  Prefactor     .10000E-03    3.6150        .51043E-06** at limit **
  25  Prefactor     .10000E-03    6.8018        .47709E-07** at limit **
  26  Prefactor     4.1883        2.8195        .25506E-06   -.32434E-04
  27  Prefactor     .10000E-03    19.505        .63932E-05** at limit **
  28  Prefactor     .10000E-03    43.230       -.19064E-05** at limit **
  29  Prefactor     .10000E-03    20.414       -.51231E-05** at limit **
  30  Prefactor     52.444        37.599        .32877E-05   -.21948E-04
  31  Prefactor     5.7621        15.742        .27899E-05   -.21002E-04
  32  Normalizat    .65553        .17739       -.55724E-06    .22606E-03
  33  Prefactor     1.4644        .21829        .86630E-06    .16903E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1277
  Prefactor  = 58.6245
  norm       = 4.25127
  Prefactor  = 80.3268
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 4.61217
  norm       = 0.000104548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2521
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.1883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.4441
  Prefactor  = 5.76212
  Normalizat = 0.655531
  Prefactor  = 1.46439
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.776     FROM HESSE     STATUS=OK           689 CALLS     5334 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3540        .12719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8111        .93587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .75739        .60336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0613        .14153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3783        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .80401        .62384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.128        21.934        .71812E-04   -1.4592    
  13  Prefactor     58.624        41.940        .52388E-04   -1.4175    
  14  norm          4.2513        4.4764        .13944E-03   -1.5296    
  15  Prefactor     80.327        77.149        .44813E-04   -1.3913    
  16  Prefactor     .10000E-03    72.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8315        .12660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    34.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6122        4.9383        .15468E-03   -1.5278    
  20  norm          .10455E-03    18.948        .88383E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    940.94        .20943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.252        42.659        .83095E-04   -1.4743    
  24  Prefactor     .10000E-03    3.6656        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.8092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.1883        2.8135        .93557E-04   -1.5299    
  27  Prefactor     .10000E-03    19.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    43.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    20.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     52.444        37.558        .27690E-03   -1.4258    
  31  Prefactor     5.7621        15.715        .16739E-03   -1.5228    
  32  Normalizat    .65553        .20919        .27143E-03   -1.0568    
  33  Prefactor     1.4644        .25902        .24256E-03   -.78542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67351e-10
Minuit parameter uncertainties:
  1  9.37091e-07
  2  3.49886e-06
  3  9.6061e-08
  4  1.05336e-07
  5  5.64332e-06
  6  8.63773e-07
  7  5.0191e-05
  8  7.68533e-07
  9  1.07808e-05
  10  2.77122e-06
  11  0.000115756
  12  21.9394
  13  41.9612
  14  4.47674
  15  77.2457
  16  0.00012829
  17  0.000110522
  18  3.14369e-06
  19  4.93872
  20  0.0185723
  21  0.000114092
  22  3.9911e-05
  23  42.7149
  24  0.000105838
  25  1.97906e-05
  26  2.81358
  27  3.74909e-05
  28  9.07854e-05
  29  4.30817e-05
  30  37.5751
  31  15.7261
  32  0.209443
  33  0.259252
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  4.251e+00  4.477e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.464e+00  2.593e-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:  6.555e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.11e-05

TS (Fixed Index): 2.10
Ra Dec: 203.439 50.937
Photon Flux Upper Limit: 9.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775009/likelihoodResults_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.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) = 5077.77355929
delta logL = 0.00248502386512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5077.77343987
delta logL = 0.00260443816114

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5077.773     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      194 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2018        4.6072        .48856E-02    .17956E-03
   2  alpha         2.3350        1.1792        .41272E-01    .12561E-04
   3  Normalizat    .65287        .17195        .61463E-01    .25314E-04
   4  Prefactor     1.4663        .21798        .54829E-01    .14989E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20178
  alpha      = 2.33504
  Normalizat = 0.652872
  Prefactor  = 1.46629
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.773     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2018        4.1652        .13592E-03   -1.5298    
   2  alpha         2.3350        1.0793        .16509E-02   -.66034E-01
   3  Normalizat    .65287        .20402        .27190E-03   -1.0578    
   4  Prefactor     1.4663        .25909        .24241E-03   -.78488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23846e-12
Minuit parameter uncertainties:
  1  4.16548
  2  1.11613
  3  0.204259
  4  0.259327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775009': 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) = 5077.77336915
delta logL = 0.002675166058

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  4.202e+00  4.165e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.335e+00  1.116e+00  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.466e+00  2.593e-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:  6.529e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.34 +/- 1.12
Photon Flux (Free Index): 3.00e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/775009/cmap_HighResolution_249436801_249696001_4FGL_J1333.7+5056_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.04e-05', photon_flux_error='2.90e-08', dlogl='2.68e-03', energy_flux='1.05e-05', photon_flux2='3.00e-08', job_status='DONE', time_completed='2021-09-08 03:41:28.874305', photon_index_error2='1.12', photon_index2='2.34', ts='2.10', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='9.48e-08', energy_flux_error2='1.01e-05', EG='0.66', time_epoch_completed='1631097688.87', return_code='0', job_id='775009', GAL2='1.47', EG2='0.65', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.46e-08', ts2='2.13', photon_index='2.25' WHERE bin_id='39' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 775009: <4FGL_J1333.7+5056_daily_bin39> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin39> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:25:29 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:25:47 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:25:47 2021
Terminated at Wed Sep  8 03:41:29 2021
Results reported at Wed Sep  8 03:41:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin39 203.439 50.9366 249436801 249696001 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 :                                   925.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            960 sec.

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

