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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin632
RA = 197.76, Dec = 32.5565
tmin = 403142401, tmax = 403401601
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='334199', job_status='RUN', time_executed='2021-09-07 04:00:58.444760', time_epoch_executed='1631012458.44' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334199/ft1_4FGL_J1311.0+3233_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334199/ft1_4FGL_J1311.0+3233_daily_bin632.fits outfile=/scratch/kocevski/334199/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin632.fits ra=197.76 dec=32.5565 rad=12.0 tmin=403142401.0 tmax=403401601.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 3.56
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334199/ft1_filtered_4FGL_J1311.0+3233_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/334199/ltcube_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.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/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits
.....................!
real 14.03
user 13.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334199/ft1_filtered_4FGL_J1311.0+3233_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/334199/ltcube_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.fits outfile=/scratch/kocevski/334199/expmap_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.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/334199/ltcube_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.fits
.....................!
real 190.56
user 186.06
sys 4.07

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/334199/ft1_filtered_4FGL_J1311.0+3233_daily_bin632.fits scfile=/scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits outfile=/scratch/kocevski/334199/cmap_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334199/ft1_filtered_4FGL_J1311.0+3233_daily_bin632.fits scfile=/scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits outfile=/scratch/kocevski/334199/cmap_HighResolution_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/334199/ft1_filtered_4FGL_J1311.0+3233_daily_bin632.fits', '/scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits', expMap='/scratch/kocevski/334199/expmap_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.fits', expCube='/scratch/kocevski/334199/ltcube_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/334199/Model_4FGL_J1311.0+3233_daily_bin632.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/334199/ft1_filtered_4FGL_J1311.0+3233_daily_bin632.fits
Spacecraft file(s): /scratch/kocevski/334199/ft2_4FGL_J1311.0+3233_daily_bin632.fits
Exposure map: /scratch/kocevski/334199/expmap_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.fits
Exposure cube: /scratch/kocevski/334199/ltcube_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/334199/Model_4FGL_J1311.0+3233_daily_bin632.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) = 6483.40290372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.581       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1928       1.0000         .10000E-03   10000.    
     5 'norm      '    7.0933       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.827       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.473       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.779       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2888       1.0000         .10000E-03   10000.    
    17 'norm      '    37.623       1.0000         .10000E-03   10000.    
    18 'norm      '    29.905       1.0000         .10000E-03   10000.    
    19 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.745       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7460       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .87052       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    40.651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .76453       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4404       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=   6483.358     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3554 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7962        5.1340        .12480E-07   -.19359E-04
   2  Prefactor     12.580        10.767        .85246E-07    .35128E-05
   3  Prefactor     .13844        1.9126       -.77691E-07    .81159E-04
   4  Prefactor     6.1939        4.1547        .79234E-07   -.34329E-05
   5  norm          7.0928        6.3163        .12873E-06   -.75748E-05
   6  Prefactor     .10000E-03    8.1790        .15151E-06** at limit **
   7  Prefactor     .10000E-03    18.704       -.13991E-06** at limit **
   8  Prefactor     .10000E-03    40.118       -.46643E-06** at limit **
   9  Prefactor     .10000E-03    4.9963        .92583E-07** at limit **
  10  Prefactor     .10000E-03    2.6007       -.12730E-06** at limit **
  11  norm          4.6937        5.7940        .10189E-06   -.18764E-04
  12  Prefactor     71.825        65.944       -.80246E-08   -.56837E-05
  13  Prefactor     41.453        43.351       -.55286E-06   -.12195E-03
  14  norm          9.9518        4.9357       -.74826E-08   -.35276E-04
  15  Prefactor     12.774        20.079       -.14693E-06   -.32794E-04
  16  norm          3.2873        6.4759        .30339E-06   -.50849E-04
  17  norm          37.622        20.835        .58318E-07   -.98284E-05
  18  norm          29.901        7.7652       -.72742E-09   -.81647E-04
  19  norm          .10000E-03    5.6030       -.45172E-07** at limit **
  20  norm          22.745        19.564       -.54930E-06   -.46831E-04
  21  Prefactor     4.7472        4.5377        .41813E-07   -.19482E-03
  22  Prefactor     .10000E-03    15.607       -.55080E-06** at limit **
  23  norm          .87133        7.3915        .36453E-05   -.89098E-04
  24  Prefactor     .10000E-03    19.926       -.68836E-07** at limit **
  25  norm          .10000E-03    7.6965       -.67223E-06** at limit **
  26  Prefactor     .10000E-03    20.374        .44785E-07** at limit **
  27  Prefactor     40.648        28.755       -.15397E-06   -.42158E-04
  28  Prefactor     .10000E-03    33.677        .48540E-06** at limit **
  29  Prefactor     .10000E-03    3.1549        .12156E-06** at limit **
  30  Normalizat    .76453        .20083        .83047E-06   -.90015E-04
  31  Prefactor     1.4404        .23849       -.13725E-05    .10024E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.79617
  Prefactor  = 12.5803
  Prefactor  = 0.138441
  Prefactor  = 6.19392
  norm       = 7.09283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69368
  Prefactor  = 71.8251
  Prefactor  = 41.4528
  norm       = 9.95183
  Prefactor  = 12.7743
  norm       = 3.28735
  norm       = 37.6223
  norm       = 29.9015
  norm       = 0.0001
  norm       = 22.7454
  Prefactor  = 4.74721
  Prefactor  = 0.0001
  norm       = 0.871331
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.764526
  Prefactor  = 1.44042
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.358     FROM HESSE     STATUS=OK           620 CALLS     4174 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7962        6.2300        .11691E-03   -1.5115    
   2  Prefactor     12.580        10.765        .11293E-03   -1.4998    
   3  Prefactor     .13844        23.059        .18560E-02   -1.5634    
   4  Prefactor     6.1939        4.1233        .12076E-03   -1.5210    
   5  norm          7.0928        6.3100        .15062E-03   -1.5175    
   6  Prefactor     .10000E-03    8.2060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0366        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6040        .12674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6937        5.7615        .18579E-03   -1.5275    
  12  Prefactor     71.825        65.974        .47369E-04   -1.4011    
  13  Prefactor     41.453        43.126        .62246E-04   -1.4419    
  14  norm          9.9518        4.9350        .12096E-03   -1.5077    
  15  Prefactor     12.774        19.954        .11205E-03   -1.4993    
  16  norm          3.2873        6.4084        .22327E-03   -1.5345    
  17  norm          37.622        20.844        .65342E-04   -1.4480    
  18  norm          29.901        7.7473        .73265E-04   -1.4614    
  19  norm          .10000E-03    5.6123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.745        19.589        .83987E-04   -1.4754    
  21  Prefactor     4.7472        4.5173        .15258E-03   -1.5272    
  22  Prefactor     .10000E-03    15.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .87133        7.4718        .41654E-03   -1.5521    
  24  Prefactor     .10000E-03    19.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.8944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     40.648        28.773        .62870E-04   -1.4432    
  28  Prefactor     .10000E-03    33.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.1999        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .76453        .23694        .31326E-03   -1.0140    
  31  Prefactor     1.4404        .28098        .28795E-03   -.79222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44452e-10
Minuit parameter uncertainties:
  1  6.23045
  2  10.7672
  3  3.57356
  4  4.12349
  5  6.31058
  6  3.18536e-05
  7  1.67808e-05
  8  0.000255347
  9  3.40449e-06
  10  2.01813e-06
  11  5.76218
  12  66.0408
  13  43.158
  14  4.93522
  15  19.9646
  16  6.40971
  17  20.8485
  18  7.74761
  19  2.25839e-07
  20  19.5946
  21  4.51762
  22  4.87452e-06
  23  5.10368
  24  5.66016e-06
  25  9.34292e-05
  26  3.60362e-05
  27  28.7827
  28  0.000240373
  29  7.67946e-07
  30  0.237261
  31  0.281285
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  2.258e-07  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:  1.440e+00  2.813e-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:  7.645e-01  2.373e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334199/likelihoodResults_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.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) = 6483.35926922
delta logL = -0.000842096213091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6483.35842712
delta logL = 4.55656845588e-10

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.2762       1.0000          .0000       5.0000    
     3 'Normalizat'    .76453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4404       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=   6483.358     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      305 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .20065        .80379E-02** at limit **
   2  alpha         4.5088        4.6449        .16545        .13812E-07
   3  Normalizat    .76448        .53036E-02    .31326E-03    .94358E-06
   4  Prefactor     1.4404        .64919E-02    .28795E-03    .23689E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.5088
  Normalizat = 0.76448
  Prefactor  = 1.44045
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.358     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      340 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .46021        .72782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5088        3.1545        .66179E-02    .93319    
   3  Normalizat    .76448        .73420E-02    .12530E-04   -1.0140    
   4  Prefactor     1.4404        .89852E-02    .11518E-04   -.79222    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76102e-14
Minuit parameter uncertainties:
  1  5.64797e-07
  2  146.745
  3  0.00734197
  4  0.00898522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334199': 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): 102
logL (Free Index) = 6483.35841857
delta logL = 8.54693644214e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  5.648e-07  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  4.509e+00  1.467e+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:  1.440e+00  8.985e-03  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:  7.645e-01  7.342e-03  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/334199/cmap_HighResolution_403142401_403401601_4FGL_J1311.0+3233_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-07 04:15:19.309869', job_id='334199', GAL2='1.44', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631013319.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='8.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='632' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:15:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 334199: <4FGL_J1311.0+3233_daily_bin632> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin632> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:30 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00:41 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:00:41 2021
Terminated at Tue Sep  7 04:15:20 2021
Results reported at Tue Sep  7 04:15:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin632 197.76 32.5565 403142401 403401601 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 :                                   857.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            890 sec.

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

