/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7371
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin849
RA = 197.76, Dec = 32.5565
tmin = 459388801, tmax = 459648001
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='335629', job_status='RUN', time_executed='2021-09-07 04:05:40.869009', time_epoch_executed='1631012740.87' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='849'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335629/ft1_4FGL_J1311.0+3233_daily_bin849.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335629/ft2_4FGL_J1311.0+3233_daily_bin849.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335629/ft1_4FGL_J1311.0+3233_daily_bin849.fits outfile=/scratch/kocevski/335629/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin849.fits ra=197.76 dec=32.5565 rad=12.0 tmin=459388801.0 tmax=459648001.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.52
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335629/ft2_4FGL_J1311.0+3233_daily_bin849.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/335629/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin849.fits evtable="EVENTS" outfile="/scratch/kocevski/335629/ft1_filtered_4FGL_J1311.0+3233_daily_bin849.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335629/ft1_filtered_4FGL_J1311.0+3233_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/335629/ft2_4FGL_J1311.0+3233_daily_bin849.fits sctable="SC_DATA" expcube=/scratch/kocevski/335629/ltcube_459388801_459648001_4FGL_J1311.0+3233_daily_bin849.fits outfile=/scratch/kocevski/335629/expmap_459388801_459648001_4FGL_J1311.0+3233_daily_bin849.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/335629/ltcube_459388801_459648001_4FGL_J1311.0+3233_daily_bin849.fits
.....................!
real 193.32
user 188.30
sys 4.38

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/335629/ft1_filtered_4FGL_J1311.0+3233_daily_bin849.fits scfile=/scratch/kocevski/335629/ft2_4FGL_J1311.0+3233_daily_bin849.fits outfile=/scratch/kocevski/335629/cmap_459388801_459648001_4FGL_J1311.0+3233_daily_bin849.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335629/ft1_filtered_4FGL_J1311.0+3233_daily_bin849.fits scfile=/scratch/kocevski/335629/ft2_4FGL_J1311.0+3233_daily_bin849.fits outfile=/scratch/kocevski/335629/cmap_HighResolution_459388801_459648001_4FGL_J1311.0+3233_daily_bin849.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
     5 'norm      '    35.583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.850       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2757       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74716E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7861       1.0000         .10000E-03   10000.    
    18 'norm      '    .10770E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.0452       1.0000         .10000E-03   10000.    
    20 'norm      '    .10802E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0173       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9625       1.0000         .10000E-03   10000.    
    23 'norm      '    10.774       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.1192       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.0865       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.442       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8977       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3986       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98930       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80581       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=   5715.212     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4153 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2166        3.8887        .13246E-05    .30172E-04
   2  Prefactor     21.938        11.619       -.32567E-06    .32359E-04
   3  Prefactor     1.1200        2.0616       -.17672E-06   -.23948E-03
   4  Prefactor     11.629        4.3256       -.19615E-05    .69582E-04
   5  norm          35.582        9.1460       -.29396E-06    .81376E-04
   6  Prefactor     5.7672        8.2136       -.68428E-06   -.35600E-04
   7  Prefactor     31.852        26.841       -.64791E-05    .39822E-04
   8  Prefactor     .10000E-03    29.773       -.90866E-05** at limit **
   9  Prefactor     9.3751        7.1241       -.39126E-06    .10985E-03
  10  Prefactor     1.2787        5.1616       -.10173E-05   -.84491E-03
  11  norm          .10000E-03    2.5452       -.16933E-06** at limit **
  12  Prefactor     .10000E-03    26.058        .10024E-04** at limit **
  13  Prefactor     .10000E-03    11.484        .30748E-06** at limit **
  14  norm          .85949E-01    2.0268       -.11032E-05    .27557E-03
  15  Prefactor     .10000E-03    6.8338        .67880E-07** at limit **
  16  norm          .10000E-03    1.3818       -.65513E-08** at limit **
  17  norm          4.7856        10.480       -.25752E-06   -.10810E-03
  18  norm          .10000E-03    3.3236       -.45678E-06** at limit **
  19  norm          9.0455        6.1491       -.18563E-05   -.14236E-03
  20  norm          .10000E-03    30.607       -.46235E-05** at limit **
  21  Prefactor     3.0217        3.5331       -.43305E-05   -.11424E-02
  22  Prefactor     2.9390        23.465        .37502E-04    .14630E-03
  23  norm          10.771        9.1824        .16802E-06    .12616E-03
  24  Prefactor     .10000E-03    14.067       -.94768E-06** at limit **
  25  norm          5.1215        11.488       -.15075E-05   -.10421E-03
  26  Prefactor     7.1115        20.411       -.42888E-04   -.15695E-03
  27  Prefactor     29.399        28.315        .22551E-04    .18526E-03
  28  Prefactor     3.7609        137.02       -.14429E-03    .92944E-05
  29  Prefactor     3.3990        3.6143       -.41629E-06   -.20099E-03
  30  Normalizat    .98919        .17739        .50431E-05    .20367E-03
  31  Prefactor     .80595        .20714        .13299E-05    .38019E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.21661
  Prefactor  = 21.9377
  Prefactor  = 1.12005
  Prefactor  = 11.6292
  norm       = 35.5824
  Prefactor  = 5.76716
  Prefactor  = 31.8515
  Prefactor  = 0.0001
  Prefactor  = 9.37506
  Prefactor  = 1.27873
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0859494
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.78556
  norm       = 0.0001
  norm       = 9.04546
  norm       = 0.0001
  Prefactor  = 3.02171
  Prefactor  = 2.939
  norm       = 10.7708
  Prefactor  = 0.0001
  norm       = 5.12153
  Prefactor  = 7.11146
  Prefactor  = 29.3988
  Prefactor  = 3.7609
  Prefactor  = 3.399
  Normalizat = 0.98919
  Prefactor  = 0.80595
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.212     FROM HESSE     STATUS=OK           632 CALLS     4785 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2166        3.8509        .10822E-03   -1.5209    
   2  Prefactor     21.938        11.625        .85519E-04   -1.4771    
   3  Prefactor     1.1200        1.6563        .13601E-02   -1.5496    
   4  Prefactor     11.629        4.2916        .87852E-04   -1.5026    
   5  norm          35.582        9.1455        .67183E-04   -1.4514    
   6  Prefactor     5.7672        8.2015        .16725E-03   -1.5228    
   7  Prefactor     31.852        26.646        .70999E-04   -1.4579    
   8  Prefactor     .10000E-03    29.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3751        7.1272        .13087E-03   -1.5095    
  10  Prefactor     1.2787        5.0632        .31922E-03   -1.5482    
  11  norm          .10000E-03    2.5840        .11772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .85949E-01    27.331        .20574E-02   -1.5649    
  15  Prefactor     .10000E-03    6.8512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3841        .86771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7856        10.479        .18390E-03   -1.5270    
  18  norm          .10000E-03    3.3688        .26681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.0455        6.1028        .13327E-03   -1.5106    
  20  norm          .10000E-03    30.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0217        3.4460        .12387E-03   -1.5360    
  22  Prefactor     2.9390        22.340        .23592E-03   -1.5365    
  23  norm          10.771        9.1169        .12206E-03   -1.5051    
  24  Prefactor     .10000E-03    14.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.1215        11.409        .17770E-03   -1.5255    
  26  Prefactor     7.1115        20.433        .15069E-03   -1.5175    
  27  Prefactor     29.399        28.270        .73838E-04   -1.4623    
  28  Prefactor     3.7609        137.62        .20437E-03   -1.5320    
  29  Prefactor     3.3990        3.6078        .14175E-03   -1.5339    
  30  Normalizat    .98919        .21350        .23034E-03   -.93393    
  31  Prefactor     .80595        .24801        .30587E-03   -.99509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75529e-09
Minuit parameter uncertainties:
  1  3.85108
  2  11.6262
  3  1.65637
  4  4.29167
  5  9.14581
  6  8.20307
  7  26.6558
  8  4.03133e-05
  9  7.12783
  10  5.06488
  11  1.63339e-05
  12  2.81567e-05
  13  3.16306e-05
  14  3.06498
  15  7.15796e-06
  16  2.96516e-07
  17  10.4827
  18  7.66325e-05
  19  6.10325
  20  0.00014857
  21  3.44618
  22  16.2139
  23  9.1181
  24  1.60347e-05
  25  11.4143
  26  20.4526
  27  28.2826
  28  45.6131
  29  3.60807
  30  0.213688
  31  0.248358
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  9.045e+00  6.103e+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:  8.060e-01  2.484e-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.892e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.74
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.22e-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) = 5715.20988805
delta logL = 0.00198621417621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5715.2065477
delta logL = 0.00532656328778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2766       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3668       1.0000          .0000       5.0000    
     3 'Normalizat'    .98610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80821       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=   5715.207     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2732        136.00        .34838E-02    .51644E-04
   2  alpha         2.3670        3.3972        .24938        .53803E-04
   3  Normalizat    .98607        .10710        .45993E-01   -.28114E-05
   4  Prefactor     .80824        .87578E-01    .69040E-01    .21543E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.27325
  alpha      = 2.36698
  Normalizat = 0.986067
  Prefactor  = 0.808239
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.207     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2732        10.555        .13875E-03   -1.5133    
   2  alpha         2.3670        1.0137        .12997E-01   -.53231E-01
   3  Normalizat    .98607        .20366        .23065E-03   -.93499    
   4  Prefactor     .80824        .24490        .30547E-03   -.99425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50835e-11
Minuit parameter uncertainties:
  1  10.5577
  2  1.04382
  3  0.203818
  4  0.245229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335629': 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) = 5715.20654762
delta logL = 0.00532664324874

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.273e+00  1.056e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.367e+00  1.044e+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:  8.082e-01  2.452e-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.861e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.37 +/- 1.04
Photon Flux (Free Index): 2.71e-08 +/- 2.89e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.40e-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/335629/cmap_HighResolution_459388801_459648001_4FGL_J1311.0+3233_daily_bin849.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='1.73e-05', photon_flux_error='1.69e-08', dlogl='5.33e-03', energy_flux='1.80e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-09-07 04:18:22.712343', photon_index_error2='1.04', photon_index2='2.37', ts='6.74', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.99', time_epoch_completed='1631013502.71', return_code='0', job_id='335629', GAL2='0.81', EG2='0.99', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.89e-08', ts2='6.73', photon_index='2.27' WHERE bin_id='849' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:18:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 335629: <4FGL_J1311.0+3233_daily_bin849> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin849> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 04:05:20 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:05:28 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:28 2021
Terminated at Tue Sep  7 04:18:23 2021
Results reported at Tue Sep  7 04:18:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin849 197.76 32.5565 459388801 459648001 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 :                                   754.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            783 sec.

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

