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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin548
RA = 197.76, Dec = 32.5565
tmin = 381369601, tmax = 381628801
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='332851', job_status='RUN', time_executed='2021-09-07 03:58:45.843084', time_epoch_executed='1631012325.84' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332851/ft1_4FGL_J1311.0+3233_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332851/ft2_4FGL_J1311.0+3233_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332851/ft1_4FGL_J1311.0+3233_daily_bin548.fits outfile=/scratch/kocevski/332851/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin548.fits ra=197.76 dec=32.5565 rad=12.0 tmin=381369601.0 tmax=381628801.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.96
user 2.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332851/ft2_4FGL_J1311.0+3233_daily_bin548.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/332851/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin548.fits evtable="EVENTS" outfile="/scratch/kocevski/332851/ft1_filtered_4FGL_J1311.0+3233_daily_bin548.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332851/ft1_filtered_4FGL_J1311.0+3233_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/332851/ft2_4FGL_J1311.0+3233_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/332851/ltcube_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.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/332851/ft2_4FGL_J1311.0+3233_daily_bin548.fits
.....................!
real 13.63
user 13.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332851/ft1_filtered_4FGL_J1311.0+3233_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/332851/ft2_4FGL_J1311.0+3233_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/332851/ltcube_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.fits outfile=/scratch/kocevski/332851/expmap_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.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/332851/ltcube_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.fits
.....................!
real 156.55
user 151.66
sys 4.45

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/332851/ft1_filtered_4FGL_J1311.0+3233_daily_bin548.fits scfile=/scratch/kocevski/332851/ft2_4FGL_J1311.0+3233_daily_bin548.fits outfile=/scratch/kocevski/332851/cmap_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.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.50
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332851/ft1_filtered_4FGL_J1311.0+3233_daily_bin548.fits scfile=/scratch/kocevski/332851/ft2_4FGL_J1311.0+3233_daily_bin548.fits outfile=/scratch/kocevski/332851/cmap_HighResolution_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.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.51
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9107       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6863       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1194       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3682       1.0000         .10000E-03   10000.    
    23 'norm      '    33.617       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.9018       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3194       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55208       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=   5936.157     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4111 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5046        .44727E-06** at limit **
   2  Prefactor     .10000E-03    7.1235       -.35083E-05** at limit **
   3  Prefactor     3.2127        2.3280       -.58251E-07   -.50184E-03
   4  Prefactor     7.9098        3.2456       -.63790E-07   -.41380E-03
   5  norm          .10000E-03    2.9225       -.33816E-07** at limit **
   6  Prefactor     .10000E-03    7.9953        .35766E-05** at limit **
   7  Prefactor     .10000E-03    21.643       -.51848E-05** at limit **
   8  Prefactor     48.866        60.685        .21941E-05   -.10253E-04
   9  Prefactor     .10000E-03    1.6941       -.75206E-08** at limit **
  10  Prefactor     .10000E-03    4.6082       -.46171E-06** at limit **
  11  norm          2.9562        3.9828       -.37726E-06   -.46900E-03
  12  Prefactor     .10000E-03    32.408       -.93686E-05** at limit **
  13  Prefactor     .10000E-03    17.068        .55494E-05** at limit **
  14  norm          4.8285        3.0207        .23951E-06    .24557E-04
  15  Prefactor     15.651        15.051       -.16715E-06    .76141E-06
  16  norm          .10000E-03    2.8234        .52739E-07** at limit **
  17  norm          .10000E-03    10.674       -.58861E-05** at limit **
  18  norm          2.6631        6.5587        .89001E-06   -.71368E-03
  19  norm          4.1575        10.757       -.15127E-05   -.23275E-03
  20  norm          .10000E-03    14.574        .14628E-05** at limit **
  21  Prefactor     .10000E-03    1.0796       -.20770E-08** at limit **
  22  Prefactor     7.3700        9.1698       -.68668E-07   -.40650E-04
  23  norm          33.617        11.159        .31050E-07   -.44100E-04
  24  Prefactor     .10000E-03    69.569       -.11779E-04** at limit **
  25  norm          6.9016        9.6729       -.14412E-06   -.10164E-03
  26  Prefactor     .10000E-03    3.7732        .84271E-07** at limit **
  27  Prefactor     .10000E-03    9.0282        .29700E-05** at limit **
  28  Prefactor     .10000E-03    42.589        .17779E-04** at limit **
  29  Prefactor     .10000E-03    1.4305       -.56118E-08** at limit **
  30  Normalizat    1.3196        .17958       -.91621E-07   -.15574E-04
  31  Prefactor     .55196        .20784        .27229E-07   -.30640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.21272
  Prefactor  = 7.90977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.82849
  Prefactor  = 15.6506
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.66314
  norm       = 4.15748
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37001
  norm       = 33.6169
  Prefactor  = 0.0001
  norm       = 6.90159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31955
  Prefactor  = 0.551961
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.157     FROM HESSE     STATUS=OK           616 CALLS     4727 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2931        .22243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2127        2.2147        .91081E-04   -1.5349    
   4  Prefactor     7.9098        3.2253        .84237E-04   -1.5145    
   5  norm          .10000E-03    2.9773        .12859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.866        60.668        .57366E-04   -1.4309    
   9  Prefactor     .10000E-03    1.6951        .97934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6500        .16121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9562        3.9801        .16731E-03   -1.5364    
  12  Prefactor     .10000E-03    32.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8285        3.0215        .10290E-03   -1.5268    
  15  Prefactor     15.651        15.031        .10125E-03   -1.4917    
  16  norm          .10000E-03    2.8426        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6631        8.4048        .14792E-03   -1.5382    
  19  norm          4.1575        13.845        .19821E-03   -1.5300    
  20  norm          .10000E-03    14.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.0911        .78062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3700        9.1521        .14776E-03   -1.5165    
  23  norm          33.617        11.149        .69113E-04   -1.4548    
  24  Prefactor     .10000E-03    70.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.9016        9.6541        .15271E-03   -1.5182    
  26  Prefactor     .10000E-03    3.7757        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.0402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.4383        .89964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3196        .20606        .20323E-03   -.82985    
  31  Prefactor     .55196        .23521        .35498E-03   -1.0965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49419e-10
Minuit parameter uncertainties:
  1  0.00010753
  2  1.75474e-05
  3  2.21476
  4  3.2254
  5  2.36979e-07
  6  1.33673e-05
  7  3.66615e-05
  8  60.7449
  9  3.28936e-07
  10  7.96467e-06
  11  3.98046
  12  9.57567e-06
  13  4.90636e-06
  14  3.02155
  15  15.0346
  16  1.94273e-06
  17  1.34117e-05
  18  8.40849
  19  13.8561
  20  8.56029e-06
  21  2.96074e-07
  22  9.15383
  23  11.1496
  24  0.000167913
  25  9.65626
  26  5.20061e-07
  27  1.51029e-06
  28  2.10054e-05
  29  2.00751e-08
  30  0.206192
  31  0.235626
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  4.157e+00  1.386e+01  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:  5.520e-01  2.356e-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.320e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332851/likelihoodResults_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.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) = 5936.15186412
delta logL = 0.00556455184324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5936.14863742
delta logL = 0.00879124746643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6505       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4238       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55300       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.

 FCN=   5936.149     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6480        126.40        .52857E-02    .36858E-03
   2  alpha         2.4239        3.6168        .41176        .30527E-04
   3  Normalizat    1.3177        .49399E-01    .32497E-01   -.11122E-04
   4  Prefactor     .55299        .51866E-01    .80072E-01    .23916E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64798
  alpha      = 2.42387
  Normalizat = 1.31766
  Prefactor  = 0.552989
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.149     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6480        6.8533        .18205E-03   -1.5326    
   2  alpha         2.4239        1.2044        .15589E-01   -.30458E-01
   3  Normalizat    1.3177        .19719        .20334E-03   -.83041    
   4  Prefactor     .55299        .23183        .35464E-03   -1.0960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89742e-09
Minuit parameter uncertainties:
  1  6.85481
  2  1.25667
  3  0.197298
  4  0.232229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332851': 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) = 5936.14863726
delta logL = 0.00879140577126

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.648e+00  6.855e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.424e+00  1.257e+00  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:  5.530e-01  2.322e-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.318e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
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/332851/cmap_HighResolution_381369601_381628801_4FGL_J1311.0+3233_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-09-07 04:10:49.688121', job_id='332851', GAL2='0.55', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631013049.69', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='8.79e-03', ts2='0.87', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='548' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 332851: <4FGL_J1311.0+3233_daily_bin548> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin548> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 03:55:27 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:55:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 03:55:50 2021
Terminated at Tue Sep  7 04:10:50 2021
Results reported at Tue Sep  7 04:10:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin548 197.76 32.5565 381369601 381628801 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            923 sec.

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

