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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin589
RA = 197.76, Dec = 32.5565
tmin = 391996801, tmax = 392256001
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='332914', job_status='RUN', time_executed='2021-09-07 03:58:45.711842', time_epoch_executed='1631012325.71' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332914/ft1_4FGL_J1311.0+3233_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332914/ft2_4FGL_J1311.0+3233_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332914/ft1_4FGL_J1311.0+3233_daily_bin589.fits outfile=/scratch/kocevski/332914/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin589.fits ra=197.76 dec=32.5565 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.39
user 5.14
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332914/ft1_filtered_4FGL_J1311.0+3233_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/332914/ft2_4FGL_J1311.0+3233_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/332914/ltcube_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.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/332914/ft2_4FGL_J1311.0+3233_daily_bin589.fits
.....................!
real 15.83
user 15.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332914/ft1_filtered_4FGL_J1311.0+3233_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/332914/ft2_4FGL_J1311.0+3233_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/332914/ltcube_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.fits outfile=/scratch/kocevski/332914/expmap_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.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/332914/ltcube_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.fits
.....................!
real 192.07
user 187.17
sys 4.39

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/332914/ft1_filtered_4FGL_J1311.0+3233_daily_bin589.fits scfile=/scratch/kocevski/332914/ft2_4FGL_J1311.0+3233_daily_bin589.fits outfile=/scratch/kocevski/332914/cmap_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332914/ft1_filtered_4FGL_J1311.0+3233_daily_bin589.fits scfile=/scratch/kocevski/332914/ft2_4FGL_J1311.0+3233_daily_bin589.fits outfile=/scratch/kocevski/332914/cmap_HighResolution_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8011       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0413       1.0000         .10000E-03   10000.    
    11 'norm      '    7.9402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1327       1.0000         .10000E-03   10000.    
    19 'norm      '    10.701       1.0000         .10000E-03   10000.    
    20 'norm      '    23.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2043       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    36.351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.532       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4615       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    92.484       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9694       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .68037       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1076       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=   5118.828     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     4092 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8012        3.5611       -.18873E-06   -.32917E-04
   2  Prefactor     2.4372        4.9277       -.86208E-06   -.10105E-03
   3  Prefactor     .10000E-03    .88832       -.12322E-07** at limit **
   4  Prefactor     .10000E-03    .67247       -.77825E-08** at limit **
   5  norm          6.3097        4.6636       -.15983E-05   -.16332E-03
   6  Prefactor     11.930        9.7656        .20381E-07   -.75275E-06
   7  Prefactor     14.579        14.209        .15942E-08   -.30877E-05
   8  Prefactor     .10000E-03    41.668       -.10731E-04** at limit **
   9  Prefactor     2.8601        4.0283       -.77021E-07   -.24111E-04
  10  Prefactor     1.0393        4.7964       -.17951E-05   -.33981E-03
  11  norm          7.9409        4.8784       -.42323E-06   -.85798E-04
  12  Prefactor     .10000E-03    35.759        .76291E-05** at limit **
  13  Prefactor     .10000E-03    30.587        .29143E-05** at limit **
  14  norm          2.8509        3.6799        .87860E-06    .29953E-04
  15  Prefactor     .10000E-03    11.937        .76195E-05** at limit **
  16  norm          .10000E-03    1.4766       -.34725E-07** at limit **
  17  norm          .10000E-03    12.586       -.79638E-05** at limit **
  18  norm          3.1326        3.2711        .94943E-06   -.21608E-02
  19  norm          10.701        9.0167       -.43975E-06   -.14251E-04
  20  norm          23.959        18.067        .17910E-07    .11283E-05
  21  Prefactor     2.2035        2.7749       -.22181E-06   -.16037E-03
  22  Prefactor     .10000E-03    8.1088       -.14788E-06** at limit **
  23  norm          36.352        10.396        .12654E-06    .65363E-05
  24  Prefactor     63.534        53.858        .14541E-05    .42837E-05
  25  norm          .10000E-03    5.8165        .53941E-07** at limit **
  26  Prefactor     7.4613        13.972        .37693E-07   -.99044E-05
  27  Prefactor     .10000E-03    29.612       -.72628E-06** at limit **
  28  Prefactor     92.483        56.735       -.81296E-06   -.10687E-04
  29  Prefactor     1.9695        3.4620        .91160E-06   -.33413E-04
  30  Normalizat    .68032        .17307       -.30522E-06   -.22592E-04
  31  Prefactor     1.1076        .21317        .13003E-06   -.17851E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.80121
  Prefactor  = 2.4372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.30967
  Prefactor  = 11.9303
  Prefactor  = 14.5793
  Prefactor  = 0.0001
  Prefactor  = 2.86006
  Prefactor  = 1.03927
  norm       = 7.94086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85094
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.13265
  norm       = 10.701
  norm       = 23.9589
  Prefactor  = 2.20352
  Prefactor  = 0.0001
  norm       = 36.3523
  Prefactor  = 63.5336
  norm       = 0.0001
  Prefactor  = 7.46133
  Prefactor  = 0.0001
  Prefactor  = 92.4826
  Prefactor  = 1.96946
  Normalizat = 0.680321
  Prefactor  = 1.10761
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.828     FROM HESSE     STATUS=OK           624 CALLS     4716 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8012        3.5525        .83239E-04   -1.5115    
   2  Prefactor     2.4372        4.9097        .21938E-03   -1.5396    
   3  Prefactor     .10000E-03    .89381        .65694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .67632        .57265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3097        4.6651        .12879E-03   -1.5206    
   6  Prefactor     11.930        9.7647        .11598E-03   -1.5017    
   7  Prefactor     14.579        14.182        .10490E-03   -1.4944    
   8  Prefactor     .10000E-03    41.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8601        4.0173        .16583E-03   -1.5370    
  10  Prefactor     1.0393        4.7313        .30162E-03   -1.5504    
  11  norm          7.9409        4.9294        .11814E-03   -1.5144    
  12  Prefactor     .10000E-03    35.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8509        3.6664        .14923E-03   -1.5370    
  15  Prefactor     .10000E-03    12.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4790        .84885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1326        7.8157        .81205E-03   -1.5354    
  19  norm          10.701        13.792        .12248E-03   -1.5054    
  20  norm          23.959        18.064        .81836E-04   -1.4729    
  21  Prefactor     2.2035        2.7745        .12474E-03   -1.5411    
  22  Prefactor     .10000E-03    8.1374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          36.352        10.385        .66472E-04   -1.4501    
  24  Prefactor     63.534        53.804        .50346E-04   -1.4112    
  25  norm          .10000E-03    5.8425        .16831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4613        13.967        .14682E-03   -1.5162    
  27  Prefactor     .10000E-03    29.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     92.483        56.771        .41788E-04   -1.3782    
  29  Prefactor     1.9695        3.4435        .16785E-03   -1.5427    
  30  Normalizat    .68032        .20720        .25219E-03   -1.0468    
  31  Prefactor     1.1076        .25445        .25697E-03   -.89224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99251e-09
Minuit parameter uncertainties:
  1  3.55256
  2  4.91052
  3  2.5945e-06
  4  1.55968e-06
  5  4.66535
  6  9.76603
  7  14.185
  8  0.000200773
  9  4.01767
  10  4.4353
  11  4.92962
  12  0.000166429
  13  0.000110049
  14  3.66669
  15  0.000120179
  16  4.60229e-07
  17  7.17693e-05
  18  7.81823
  19  13.7964
  20  18.0679
  21  2.77463
  22  6.04755e-06
  23  10.3851
  24  53.8456
  25  5.31348e-06
  26  13.9726
  27  3.7443e-05
  28  56.8047
  29  3.44387
  30  0.207436
  31  0.25473
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.070e+01  1.380e+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:  1.108e+00  2.547e-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:  6.803e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 2.75e-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) = 5118.77989883
delta logL = 0.0482433177831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5118.77926528
delta logL = 0.0488768715486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7969       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4787       1.0000          .0000       5.0000    
     3 'Normalizat'    .67529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1098       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=   5118.779     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7957        9.4448        .13514E-03    .30739E-03
   2  alpha         2.4786        .69000        .94025E-02    .37515E-04
   3  Normalizat    .67523        .19763        .25297E-03   -.25009E-03
   4  Prefactor     1.1099        .25190        .25664E-03   -.32215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.79572
  alpha      = 2.47863
  Normalizat = 0.675233
  Prefactor  = 1.10993
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.779     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7957        8.7871        .54057E-05   -1.5115    
   2  alpha         2.4786        .64292        .37610E-03   -.85479E-02
   3  Normalizat    .67523        .19763        .10119E-04   -1.0488    
   4  Prefactor     1.1099        .25206        .51327E-04   -.89150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09313e-10
Minuit parameter uncertainties:
  1  8.78843
  2  0.650224
  3  0.197841
  4  0.25233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332914': 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) = 5118.77926465
delta logL = 0.0488774985524

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.796e+00  8.788e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.479e+00  6.502e-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.110e+00  2.523e-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:  6.752e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.48 +/- 0.65
Photon Flux (Free Index): 3.56e-08 +/- 3.05e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.42e-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/332914/cmap_HighResolution_391996801_392256001_4FGL_J1311.0+3233_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='1.99e-05', photon_flux_error='3.81e-08', dlogl='4.89e-02', energy_flux='2.13e-05', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-07 04:11:01.090959', photon_index_error2='0.65', photon_index2='2.48', ts='4.09', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.68', time_epoch_completed='1631013061.09', return_code='0', job_id='332914', GAL2='1.11', EG2='0.68', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='3.05e-08', ts2='4.24', photon_index='2.27' WHERE bin_id='589' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 332914: <4FGL_J1311.0+3233_daily_bin589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin589 197.76 32.5565 391996801 392256001 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 :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            929 sec.

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

