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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin634
RA = 197.76, Dec = 32.5565
tmin = 403660801, tmax = 403920001
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='334202', job_status='RUN', time_executed='2021-09-07 04:04:38.994064', time_epoch_executed='1631012678.99' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334202/ft1_4FGL_J1311.0+3233_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334202/ft2_4FGL_J1311.0+3233_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334202/ft1_4FGL_J1311.0+3233_daily_bin634.fits outfile=/scratch/kocevski/334202/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin634.fits ra=197.76 dec=32.5565 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.74
user 7.39
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334202/ft1_filtered_4FGL_J1311.0+3233_daily_bin634.fits" evtable="EVENTS" scfile=/scratch/kocevski/334202/ft2_4FGL_J1311.0+3233_daily_bin634.fits sctable="SC_DATA" outfile=/scratch/kocevski/334202/ltcube_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.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/334202/ft2_4FGL_J1311.0+3233_daily_bin634.fits
.....................!
real 15.41
user 15.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334202/ft1_filtered_4FGL_J1311.0+3233_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/334202/ft2_4FGL_J1311.0+3233_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/334202/ltcube_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.fits outfile=/scratch/kocevski/334202/expmap_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.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/334202/ltcube_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.fits
.....................!
real 192.09
user 186.03
sys 5.32

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/334202/ft1_filtered_4FGL_J1311.0+3233_daily_bin634.fits scfile=/scratch/kocevski/334202/ft2_4FGL_J1311.0+3233_daily_bin634.fits outfile=/scratch/kocevski/334202/cmap_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.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/334202/ft1_filtered_4FGL_J1311.0+3233_daily_bin634.fits scfile=/scratch/kocevski/334202/ft2_4FGL_J1311.0+3233_daily_bin634.fits outfile=/scratch/kocevski/334202/cmap_HighResolution_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.036       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17444E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7183       1.0000         .10000E-03   10000.    
     5 'norm      '    11.065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6370       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0592       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6832       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.692       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3469       1.0000         .10000E-03   10000.    
    14 'norm      '    15.098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.122       1.0000         .10000E-03   10000.    
    16 'norm      '    .33345       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    78.628       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.821       1.0000         .10000E-03   10000.    
    25 'norm      '    13.325       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.2383       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .59081       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=   4692.247     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3545 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.038        6.4287       -.22301E-06   -.42548E-03
   2  Prefactor     .10000E-03    3.6118        .78622E-07** at limit **
   3  Prefactor     .10000E-03    2.5403       -.15331E-05** at limit **
   4  Prefactor     6.7184        4.3542       -.53101E-07   -.13744E-03
   5  norm          11.065        7.7313        .10891E-06   -.29965E-04
   6  Prefactor     9.2904        15.706        .64255E-06   -.43078E-04
   7  Prefactor     .10000E-03    12.677        .96759E-07** at limit **
   8  Prefactor     .10000E-03    105.39        .42303E-06** at limit **
   9  Prefactor     2.6372        6.7345        .35650E-05   -.80053E-04
  10  Prefactor     1.0587        7.0208        .70682E-06   -.15355E-04
  11  norm          2.6822        5.5380        .29165E-05   -.16416E-03
  12  Prefactor     22.661        70.171        .30349E-05   -.20973E-04
  13  Prefactor     9.3540        19.229       -.13064E-05   -.24153E-04
  14  norm          15.098        6.1576       -.69684E-07   -.28358E-04
  15  Prefactor     16.122        15.224       -.16380E-06   -.43673E-04
  16  norm          .33329        3.6353        .54428E-06   -.67979E-04
  17  norm          .10000E-03    10.007       -.19296E-05** at limit **
  18  norm          .10000E-03    1.6690        .55143E-07** at limit **
  19  norm          .10000E-03    2.2535        .22186E-07** at limit **
  20  norm          78.626        36.113        .83328E-07   -.21570E-04
  21  Prefactor     .10000E-03    .87281        .23589E-07** at limit **
  22  Prefactor     .10000E-03    4.6020        .50455E-07** at limit **
  23  norm          .10000E-03    7.0198        .13972E-07** at limit **
  24  Prefactor     28.821        33.023        .48690E-07   -.62857E-05
  25  norm          13.324        12.928        .15678E-06   -.29260E-04
  26  Prefactor     .10000E-03    8.1224        .74307E-07** at limit **
  27  Prefactor     .10000E-03    34.944        .48469E-06** at limit **
  28  Prefactor     .10000E-03    35.264        .60281E-07** at limit **
  29  Prefactor     4.2380        4.7094        .13957E-06   -.12689E-04
  30  Normalizat    1.3250        .20774        .12195E-05    .19954E-04
  31  Prefactor     .59072        .24764       -.42080E-05   -.10263E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0378
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.71839
  norm       = 11.0651
  Prefactor  = 9.29038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63721
  Prefactor  = 1.05873
  norm       = 2.68215
  Prefactor  = 22.6611
  Prefactor  = 9.35397
  norm       = 15.0981
  Prefactor  = 16.1225
  norm       = 0.333286
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 78.6256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.8205
  norm       = 13.3239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23804
  Normalizat = 1.32499
  Prefactor  = 0.59072
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.247     FROM HESSE     STATUS=OK           624 CALLS     4169 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.038        6.0039        .46245E-03   -1.4858    
   2  Prefactor     .10000E-03    3.6180        .12715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4337        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7184        4.3395        .10580E-03   -1.5190    
   5  norm          11.065        7.7265        .60219E-03   -1.5043    
   6  Prefactor     9.2904        15.675        .65743E-03   -1.5098    
   7  Prefactor     .10000E-03    12.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    105.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6372        6.7944        .12555E-02   -1.5383    
  10  Prefactor     1.0587        6.9576        .34229E-03   -1.5502    
  11  norm          2.6822        5.6233        .10848E-02   -1.5380    
  12  Prefactor     22.661        70.232        .84085E-04   -1.4756    
  13  Prefactor     9.3540        19.192        .13109E-03   -1.5096    
  14  norm          15.098        6.1560        .10308E-03   -1.4931    
  15  Prefactor     16.122        15.188        .99750E-04   -1.4905    
  16  norm          .33329        7.5469        .24497E-02   -1.5593    
  17  norm          .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6818        .86373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2584        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          78.626        36.094        .45289E-04   -1.3932    
  21  Prefactor     .10000E-03    .87421        .62489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6065        .14352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0546        .17698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.821        33.026        .74628E-04   -1.4634    
  25  norm          13.324        12.908        .10973E-03   -1.4978    
  26  Prefactor     .10000E-03    8.1383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    35.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    35.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.2380        4.7076        .14994E-03   -1.5296    
  30  Normalizat    1.3250        .24436        .22084E-03   -.82824    
  31  Prefactor     .59072        .28507        .37062E-03   -1.0798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98976e-08
Minuit parameter uncertainties:
  1  6.00409
  2  1.10457e-05
  3  0.00023929
  4  4.33972
  5  7.72724
  6  15.6822
  7  1.36894e-05
  8  0.000312315
  9  6.79638
  10  5.42881
  11  5.62439
  12  70.4902
  13  19.2042
  14  6.15631
  15  15.1917
  16  3.17189
  17  0.000413468
  18  4.49551e-06
  19  1.53492e-06
  20  36.1044
  21  1.37481e-06
  22  7.58207e-06
  23  9.00356e-07
  24  33.0466
  25  12.9104
  26  2.92878e-05
  27  0.000185056
  28  5.99951e-05
  29  4.70797
  30  0.244576
  31  0.285773
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.535e-06  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.907e-01  2.858e-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.325e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/334202/likelihoodResults_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.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): 102
logL (Free Index) = 4692.24864869
delta logL = -0.00191050522608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4692.24673812
delta logL = 6.11780706095e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2564       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59077       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=   4692.247     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      241 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    194.13        .10172E-01** at limit **
   2  alpha         1.4178        4.1888        .16560        .39817E-08
   3  Normalizat    1.3250        .42244E-01    .22084E-03   -.21834E-03
   4  Prefactor     .59072        .49363E-01    .37062E-03   -.12448E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.41779
  Normalizat = 1.32498
  Prefactor  = 0.590723
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.247     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1519        .11870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4178        4.2494        .66242E-02   -.44769    
   3  Normalizat    1.3250        .23989        .44168E-04   -.82824    
   4  Prefactor     .59072        .27989        .14825E-04   -1.0798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79477e-11
Minuit parameter uncertainties:
  1  1.36828e-05
  2  250.914
  3  0.240088
  4  0.280554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334202': 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) = 4692.24673192
delta logL = 6.26000746706e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.368e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.418e+00  2.509e+02  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  5.907e-01  2.806e-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.325e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.760 32.556

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/334202/cmap_HighResolution_403660801_403920001_4FGL_J1311.0+3233_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='3.24e-08', time_completed='2021-09-07 04:16:58.347137', job_id='334202', GAL2='0.59', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631013418.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='6.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='634' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 334202: <4FGL_J1311.0+3233_daily_bin634> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin634> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:30 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:00:41 2021
Terminated at Tue Sep  7 04:16:59 2021
Results reported at Tue Sep  7 04:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin634 197.76 32.5565 403660801 403920001 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 :                                   736.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            989 sec.

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

