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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin511
RA = 197.76, Dec = 32.5565
tmin = 371779201, tmax = 372038401
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='332787', job_status='RUN', time_executed='2021-09-07 03:59:04.093799', time_epoch_executed='1631012344.09' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332787/ft1_4FGL_J1311.0+3233_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332787/ft2_4FGL_J1311.0+3233_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332787/ft1_4FGL_J1311.0+3233_daily_bin511.fits outfile=/scratch/kocevski/332787/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin511.fits ra=197.76 dec=32.5565 rad=12.0 tmin=371779201.0 tmax=372038401.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332787/ft2_4FGL_J1311.0+3233_daily_bin511.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/332787/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/332787/ft1_filtered_4FGL_J1311.0+3233_daily_bin511.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332787/ft1_filtered_4FGL_J1311.0+3233_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/332787/ft2_4FGL_J1311.0+3233_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/332787/ltcube_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.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/332787/ft2_4FGL_J1311.0+3233_daily_bin511.fits
.....................!
real 12.95
user 12.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332787/ft1_filtered_4FGL_J1311.0+3233_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/332787/ft2_4FGL_J1311.0+3233_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/332787/ltcube_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.fits outfile=/scratch/kocevski/332787/expmap_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.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/332787/ltcube_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.fits
.....................!
real 191.06
user 185.63
sys 4.89

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/332787/ft1_filtered_4FGL_J1311.0+3233_daily_bin511.fits scfile=/scratch/kocevski/332787/ft2_4FGL_J1311.0+3233_daily_bin511.fits outfile=/scratch/kocevski/332787/cmap_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332787/ft1_filtered_4FGL_J1311.0+3233_daily_bin511.fits scfile=/scratch/kocevski/332787/ft2_4FGL_J1311.0+3233_daily_bin511.fits outfile=/scratch/kocevski/332787/cmap_HighResolution_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91435       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7459       1.0000         .10000E-03   10000.    
     5 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69607E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.624       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.662       1.0000         .10000E-03   10000.    
    18 'norm      '    .13606E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.8957       1.0000         .10000E-03   10000.    
    20 'norm      '    18.870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9668       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2493       1.0000         .10000E-03   10000.    
    23 'norm      '    6.8124       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    23.926       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9680       1.0000         .10000E-03   10000.    
    27 'Prefactor '    47.879       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90969       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2121       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=   5827.484     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4214 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91508        2.3613        .10929E-05    .26010E-03
   2  Prefactor     .10000E-03    6.2585        .17973E-06** at limit **
   3  Prefactor     2.5574        2.2504       -.19133E-06    .13832E-03
   4  Prefactor     1.7458        1.6526       -.74475E-07   -.90917E-04
   5  norm          .10000E-03    2.4252        .14738E-06** at limit **
   6  Prefactor     4.2598        7.2012        .90252E-07   -.48699E-04
   7  Prefactor     .10000E-03    27.298       -.37776E-07** at limit **
   8  Prefactor     .10000E-03    505.61       -.22666E-05** at limit **
   9  Prefactor     .10000E-03    21.025        .17594E-06** at limit **
  10  Prefactor     .10000E-03    7.7989       -.87792E-06** at limit **
  11  norm          .10000E-03    1.9116       -.25171E-07** at limit **
  12  Prefactor     .10000E-03    29.816        .41858E-07** at limit **
  13  Prefactor     .10000E-03    14.415       -.13748E-06** at limit **
  14  norm          1.7232        4.5987        .10227E-05   -.12824E-03
  15  Prefactor     14.637        21.124        .31788E-06   -.15277E-04
  16  norm          .10000E-03    4.7467       -.37922E-06** at limit **
  17  norm          19.662        15.329        .81586E-07   -.48140E-06
  18  norm          .10000E-03    2.7783        .16862E-06** at limit **
  19  norm          7.9040        5.9568       -.21860E-07   -.12090E-03
  20  norm          18.861        22.624       -.41908E-07    .18027E-04
  21  Prefactor     3.9654        4.8269        .12516E-06   -.64789E-04
  22  Prefactor     4.2543        12.606        .19367E-06   -.27859E-04
  23  norm          6.8139        6.7129        .27582E-07   -.15482E-04
  24  Prefactor     .10000E-03    40.768        .34666E-07** at limit **
  25  norm          23.929        13.744        .62346E-07   -.82405E-05
  26  Prefactor     4.9666        11.151        .58992E-07   -.22193E-05
  27  Prefactor     47.922        32.091        .56210E-07   -.74717E-04
  28  Prefactor     .10000E-03    30.622        .79664E-07** at limit **
  29  Prefactor     .10000E-03    1.8911       -.25440E-07** at limit **
  30  Normalizat    .90959        .18221       -.87622E-07   -.60605E-04
  31  Prefactor     1.2121        .22111       -.11104E-05    .19944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.915076
  Prefactor  = 0.0001
  Prefactor  = 2.55736
  Prefactor  = 1.74582
  norm       = 0.0001
  Prefactor  = 4.25977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72321
  Prefactor  = 14.637
  norm       = 0.0001
  norm       = 19.662
  norm       = 0.0001
  norm       = 7.90397
  norm       = 18.8612
  Prefactor  = 3.96541
  Prefactor  = 4.25426
  norm       = 6.81393
  Prefactor  = 0.0001
  norm       = 23.9286
  Prefactor  = 4.96656
  Prefactor  = 47.9225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.909592
  Prefactor  = 1.21215
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.484     FROM HESSE     STATUS=OK           630 CALLS     4844 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91508        2.3144        .18087E-02   -1.5517    
   2  Prefactor     .10000E-03    6.3157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5574        2.2608        .93697E-04   -1.5388    
   4  Prefactor     1.7458        1.6642        .92174E-04   -1.5444    
   5  norm          .10000E-03    5.9004        .23092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2598        7.1756        .19520E-03   -1.5295    
   7  Prefactor     .10000E-03    27.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    513.80        .18709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.830        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9186        .10303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7232        4.5212        .24850E-03   -1.5445    
  15  Prefactor     14.637        21.101        .10474E-03   -1.4943    
  16  norm          .10000E-03    4.7710        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.662        15.330        .90326E-04   -1.4821    
  18  norm          .10000E-03    7.2700        .21726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.9040        5.4102        .14223E-03   -1.5146    
  20  norm          18.861        22.604        .92201E-04   -1.4839    
  21  Prefactor     3.9654        4.7338        .15072E-03   -1.5310    
  22  Prefactor     4.2543        12.430        .19546E-03   -1.5295    
  23  norm          6.8139        6.7010        .15372E-03   -1.5186    
  24  Prefactor     .10000E-03    40.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.929        13.730        .81892E-04   -1.4729    
  26  Prefactor     4.9666        11.120        .18043E-03   -1.5262    
  27  Prefactor     47.922        32.072        .57950E-04   -1.4322    
  28  Prefactor     .10000E-03    30.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.9080        .10247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90959        .21633        .25498E-03   -.96124    
  31  Prefactor     1.2121        .26009        .27510E-03   -.85958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99423e-10
Minuit parameter uncertainties:
  1  2.3146
  2  2.05046e-06
  3  2.26087
  4  1.66424
  5  3.56007e-05
  6  7.17703
  7  8.18607e-05
  8  0.000955703
  9  4.61001e-05
  10  5.23178e-05
  11  2.05625e-06
  12  1.71324e-06
  13  1.45379e-05
  14  4.52214
  15  21.1117
  16  1.73652e-05
  17  15.3332
  18  5.19896e-05
  19  5.41053
  20  22.614
  21  4.73429
  22  12.438
  23  6.70174
  24  8.59239e-06
  25  13.7321
  26  11.1246
  27  32.084
  28  2.14092e-05
  29  3.35434e-06
  30  0.216535
  31  0.260361
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  7.904e+00  5.411e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.212e+00  2.604e-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:  9.096e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.08e-05

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) = 5827.35680989
delta logL = 0.127454156588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5827.35277989
delta logL = 0.131484157481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9722       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8861       1.0000          .0000       5.0000    
     3 'Normalizat'    .91449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2117       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5827.353     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      306 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9877        7.7442        .63445E-03    .15804E-04
   2  alpha         1.8889        .74152        .16093E-01    .90586E-05
   3  Normalizat    .91465        .20817        .25437E-03   -.45095E-04
   4  Prefactor     1.2115        .25627        .27521E-03   -.43912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.98773
  alpha      = 1.88891
  Normalizat = 0.914655
  Prefactor  = 1.2115
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.353     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9877        7.6227        .25378E-04   -1.5076    
   2  alpha         1.8889        .73026        .64372E-03   -.24694    
   3  Normalizat    .91465        .20838        .10175E-04   -.95947    
   4  Prefactor     1.2115        .25655        .11008E-04   -.85978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64176e-12
Minuit parameter uncertainties:
  1  7.62342
  2  0.741783
  3  0.208561
  4  0.256816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332787': 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) = 5827.35276453
delta logL = 0.131499517314

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  9.988e+00  7.623e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.889e+00  7.418e-01  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.212e+00  2.568e-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:  9.147e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.45
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.89 +/- 0.74
Photon Flux (Free Index): 1.51e-08 +/- 1.49e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.62e-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/332787/cmap_HighResolution_371779201_372038401_4FGL_J1311.0+3233_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.91e-05', photon_flux_error='1.49e-08', dlogl='1.31e-01', energy_flux='1.58e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-07 04:11:45.380369', photon_index_error2='0.74', photon_index2='1.89', ts='9.19', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.91', time_epoch_completed='1631013105.38', return_code='0', job_id='332787', GAL2='1.21', EG2='0.91', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='1.49e-08', ts2='9.45', photon_index='2.27' WHERE bin_id='511' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 332787: <4FGL_J1311.0+3233_daily_bin511> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin511> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 03:55:22 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:55: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 03:55:36 2021
Terminated at Tue Sep  7 04:11:48 2021
Results reported at Tue Sep  7 04:11:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin511 197.76 32.5565 371779201 372038401 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 :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            986 sec.

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

