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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin868
RA = 197.76, Dec = 32.5565
tmin = 464313601, tmax = 464572801
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='335656', job_status='RUN', time_executed='2021-09-07 04:08:47.304955', time_epoch_executed='1631012927.3' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335656/ft1_4FGL_J1311.0+3233_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335656/ft1_4FGL_J1311.0+3233_daily_bin868.fits outfile=/scratch/kocevski/335656/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin868.fits ra=197.76 dec=32.5565 rad=12.0 tmin=464313601.0 tmax=464572801.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 2.81
user 2.60
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.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/335656/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin868.fits evtable="EVENTS" outfile="/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.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.46
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/335656/ltcube_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.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/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits
.....................!
real 13.22
user 12.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/335656/ltcube_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.fits outfile=/scratch/kocevski/335656/expmap_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.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/335656/ltcube_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.fits
.....................!
real 156.42
user 152.07
sys 3.84

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1311.0+3233 @ 197.76 32.5565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits scfile=/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits outfile=/scratch/kocevski/335656/cmap_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.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=197.76 yref=32.5565 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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits scfile=/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits outfile=/scratch/kocevski/335656/cmap_HighResolution_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.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=197.76 yref=32.5565 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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335656/Model_4FGL_J1311.0+3233_daily_bin868.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/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits.....................!
real 42.08
user 40.82
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits', '/scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits', expMap='/scratch/kocevski/335656/expmap_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.fits', expCube='/scratch/kocevski/335656/ltcube_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335656/Model_4FGL_J1311.0+3233_daily_bin868.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1311.0+3233'

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335656/ft1_filtered_4FGL_J1311.0+3233_daily_bin868.fits
Spacecraft file(s): /scratch/kocevski/335656/ft2_4FGL_J1311.0+3233_daily_bin868.fits
Exposure map: /scratch/kocevski/335656/expmap_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.fits
Exposure cube: /scratch/kocevski/335656/ltcube_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335656/Model_4FGL_J1311.0+3233_daily_bin868.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) = 6060.08905116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8757       1.0000         .10000E-03   10000.    
     5 'norm      '    13.303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.061       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.698       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5889       1.0000         .10000E-03   10000.    
    17 'norm      '    13.860       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8469       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.911       1.0000         .10000E-03   10000.    
    23 'norm      '    27.462       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0809       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9441       1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.613       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3725       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2204       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .73999       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6060.076     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     4098 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0992        2.3016        .25025E-07    .27036E-03
   2  Prefactor     .10000E-03    9.8140        .10052E-05** at limit **
   3  Prefactor     1.4993        1.4056        .36923E-07    .37160E-03
   4  Prefactor     4.8761        3.2410        .27960E-06    .31717E-03
   5  norm          13.303        6.5380        .15870E-06    .16147E-03
   6  Prefactor     .48201        6.5217       -.36372E-05   -.42243E-04
   7  Prefactor     .10000E-03    7.6518       -.22215E-06** at limit **
   8  Prefactor     18.746        67.208        .16628E-03    .26677E-04
   9  Prefactor     .10000E-03    2.7710        .29019E-07** at limit **
  10  Prefactor     .10000E-03    2.0891        .22249E-08** at limit **
  11  norm          .10000E-03    1.0031       -.56515E-06** at limit **
  12  Prefactor     17.047        51.249       -.29465E-04   -.90054E-05
  13  Prefactor     .10000E-03    4.6235       -.15936E-06** at limit **
  14  norm          6.2222        4.3084        .89417E-08   -.10501E-03
  15  Prefactor     11.698        10.972        .34965E-06   -.46560E-04
  16  norm          3.5890        3.0942       -.54395E-07   -.41331E-04
  17  norm          13.859        10.657        .10894E-05    .15234E-04
  18  norm          .10000E-03    .69102       -.81688E-07** at limit **
  19  norm          .10000E-03    1.3654       -.30733E-07** at limit **
  20  norm          .10000E-03    17.521       -.23761E-05** at limit **
  21  Prefactor     2.8469        3.6232        .56433E-06   -.62666E-03
  22  Prefactor     15.912        12.732        .16313E-06   -.62449E-04
  23  norm          27.462        9.9053        .52635E-06   -.96937E-06
  24  Prefactor     14.661        61.015        .43807E-05   -.14714E-04
  25  norm          2.0809        6.8662       -.58522E-06   -.48460E-03
  26  Prefactor     9.9451        14.511        .13312E-05   -.64622E-04
  27  Prefactor     26.611        18.403       -.58908E-06   -.25051E-04
  28  Prefactor     .10000E-03    24.009        .32626E-05** at limit **
  29  Prefactor     3.3726        3.6020        .82470E-06   -.36511E-03
  30  Normalizat    1.2203        .16946       -.44861E-05    .35131E-03
  31  Prefactor     .74011        .20338       -.30024E-05   -.82964E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.09923
  Prefactor  = 0.0001
  Prefactor  = 1.49929
  Prefactor  = 4.87609
  norm       = 13.3028
  Prefactor  = 0.482012
  Prefactor  = 0.0001
  Prefactor  = 18.7461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 17.0466
  Prefactor  = 0.0001
  norm       = 6.2222
  Prefactor  = 11.6982
  norm       = 3.58897
  norm       = 13.8591
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.84695
  Prefactor  = 15.9116
  norm       = 27.4622
  Prefactor  = 14.661
  norm       = 2.08091
  Prefactor  = 9.94513
  Prefactor  = 26.6111
  Prefactor  = 0.0001
  Prefactor  = 3.37255
  Normalizat = 1.22027
  Prefactor  = 0.740106
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.076     FROM HESSE     STATUS=OK           630 CALLS     4728 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0992        2.3042        .98092E-04   -1.5356    
   2  Prefactor     .10000E-03    10.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4993        1.4244        .86345E-04   -1.5463    
   4  Prefactor     4.8761        3.2126        .10661E-03   -1.5266    
   5  norm          13.303        6.5336        .10982E-03   -1.4978    
   6  Prefactor     .48201        21.192        .37685E-02   -1.5569    
   7  Prefactor     .10000E-03    7.6611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.746        67.098        .92699E-04   -1.4842    
   9  Prefactor     .10000E-03    2.7755        .12654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0954        .10986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0065        .76186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.047        51.298        .96966E-04   -1.4882    
  13  Prefactor     .10000E-03    4.6252        .16348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2222        4.3078        .12926E-03   -1.5209    
  15  Prefactor     11.698        10.977        .11713E-03   -1.5024    
  16  norm          3.5890        3.0905        .12313E-03   -1.5329    
  17  norm          13.859        10.657        .10759E-03   -1.4963    
  18  norm          .10000E-03    .69229        .63187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3665        .88833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8469        3.5810        .14243E-03   -1.5370    
  22  Prefactor     15.912        12.686        .10041E-03   -1.4910    
  23  norm          27.462        9.8514        .76448E-04   -1.4659    
  24  Prefactor     14.661        60.624        .10461E-03   -1.4942    
  25  norm          2.0809        6.8103        .28627E-03   -1.5419    
  26  Prefactor     9.9451        14.499        .12707E-03   -1.5077    
  27  Prefactor     26.611        18.397        .77655E-04   -1.4676    
  28  Prefactor     .10000E-03    24.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.3726        3.5956        .14600E-03   -1.5341    
  30  Normalizat    1.2203        .19824        .21804E-03   -.85979    
  31  Prefactor     .74011        .23600        .33241E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39538e-08
Minuit parameter uncertainties:
  1  2.30423
  2  5.97371e-05
  3  1.4244
  4  3.21268
  5  6.53393
  6  6.39393
  7  7.68819e-06
  8  67.3699
  9  6.55352e-06
  10  6.126e-07
  11  5.72993e-05
  12  51.4309
  13  3.50161e-05
  14  4.30799
  15  10.9791
  16  3.09065
  17  10.6583
  18  6.57334e-06
  19  3.98426e-06
  20  5.20378e-05
  21  3.58126
  22  12.6886
  23  9.85195
  24  59.7303
  25  6.81282
  26  14.5044
  27  18.4014
  28  5.96894e-05
  29  3.59579
  30  0.198364
  31  0.236319
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  3.984e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.401e-01  2.363e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.220e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 2.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335656/likelihoodResults_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.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): 102
logL (Free Index) = 6060.07552116
delta logL = -1.05045910459e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6060.07551949
delta logL = 6.23173946224e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6060.076     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      252 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    156.76        .93349E-02** at limit **
   2  alpha         1.2112        2.9686        .16597        .28591E-06
   3  Normalizat    1.2203        .34135E-01    .21804E-03   -.29001E-03
   4  Prefactor     .74011        .41723E-01    .33241E-03   -.22443E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.21117
  Normalizat = 1.22027
  Prefactor  = 0.740111
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.076     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7156        .12501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2112        4.3936        .66389E-02   -.54163    
   3  Normalizat    1.2203        .19164        .43608E-04   -.85979    
   4  Prefactor     .74011        .23406        .13296E-04   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44e-09
Minuit parameter uncertainties:
  1  0.000147592
  2  197.446
  3  0.191746
  4  0.234372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335656': 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) = 6060.07550201
delta logL = 1.81021841854e-05

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.476e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.211e+00  1.974e+02  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.401e-01  2.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.220e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.760 32.556

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/335656/cmap_HighResolution_464313601_464572801_4FGL_J1311.0+3233_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2021-09-07 04:21:12.552517', job_id='335656', GAL2='0.74', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631013672.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.81e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='868' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 335656: <4FGL_J1311.0+3233_daily_bin868> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin868> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 04:05:22 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:05:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:05:36 2021
Terminated at Tue Sep  7 04:21:12 2021
Results reported at Tue Sep  7 04:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin868 197.76 32.5565 464313601 464572801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            950 sec.

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

