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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin658
RA = 197.76, Dec = 32.5565
tmin = 409881601, tmax = 410140801
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='334235', job_status='RUN', time_executed='2021-09-07 04:03:35.098484', time_epoch_executed='1631012615.1' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334235/ft1_4FGL_J1311.0+3233_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334235/ft2_4FGL_J1311.0+3233_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334235/ft1_4FGL_J1311.0+3233_daily_bin658.fits outfile=/scratch/kocevski/334235/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin658.fits ra=197.76 dec=32.5565 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.22
user 5.97
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334235/ft1_filtered_4FGL_J1311.0+3233_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/334235/ft2_4FGL_J1311.0+3233_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/334235/ltcube_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.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/334235/ft2_4FGL_J1311.0+3233_daily_bin658.fits
.....................!
real 15.30
user 14.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334235/ft1_filtered_4FGL_J1311.0+3233_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/334235/ft2_4FGL_J1311.0+3233_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/334235/ltcube_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.fits outfile=/scratch/kocevski/334235/expmap_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.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/334235/ltcube_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.fits
.....................!
real 190.58
user 185.94
sys 4.09

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/334235/ft1_filtered_4FGL_J1311.0+3233_daily_bin658.fits scfile=/scratch/kocevski/334235/ft2_4FGL_J1311.0+3233_daily_bin658.fits outfile=/scratch/kocevski/334235/cmap_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334235/ft1_filtered_4FGL_J1311.0+3233_daily_bin658.fits scfile=/scratch/kocevski/334235/ft2_4FGL_J1311.0+3233_daily_bin658.fits outfile=/scratch/kocevski/334235/cmap_HighResolution_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.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.58
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11119E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.7207       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7611       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .50942E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.792       1.0000         .10000E-03   10000.    
    20 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20836       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3869       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.160       1.0000         .10000E-03   10000.    
    25 'norm      '    7.9768       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
    27 'Prefactor '    62.880       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0157       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1560       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78999       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=   3922.772     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4208 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.167        4.9952        .12694E-06    .39467E-03
   2  Prefactor     17.288        10.300       -.68195E-10    .26613E-04
   3  Prefactor     .10006E-03    50.266        .13004E-05** at limit **
   4  Prefactor     .10000E-03    1.4579       -.10308E-06** at limit **
   5  norm          9.7199        6.8075        .17917E-07    .16657E-04
   6  Prefactor     18.842        12.663        .10156E-06    .59611E-04
   7  Prefactor     .10000E-03    11.916       -.11967E-06** at limit **
   8  Prefactor     62.790        60.966        .61992E-06    .12652E-04
   9  Prefactor     1.7588        19.773        .68235E-06   -.48426E-05
  10  Prefactor     .10000E-03    3.0249       -.10906E-06** at limit **
  11  norm          .10000E-03    2.8619       -.24908E-06** at limit **
  12  Prefactor     14.764        58.073        .27865E-05    .52912E-05
  13  Prefactor     .10000E-03    51.317       -.22704E-06** at limit **
  14  norm          .10461E-03    21.867        .12449E-05** at limit **
  15  Prefactor     .10000E-03    4.9401       -.10568E-06** at limit **
  16  norm          .10000E-03    1.6717       -.68134E-07** at limit **
  17  norm          .10000E-03    8.1352       -.43019E-06** at limit **
  18  norm          .10000E-03    5.3038       -.69405E-06** at limit **
  19  norm          14.797        8.7679        .56671E-06    .13969E-03
  20  norm          .10000E-03    88.205       -.52218E-06** at limit **
  21  Prefactor     .10000E-03    2.5232       -.22482E-06** at limit **
  22  Prefactor     .10877        58.516       -.17283E-05   -.24261E-04
  23  norm          1.3844        20.997       -.89192E-06   -.31750E-04
  24  Prefactor     29.192        41.018       -.56694E-06   -.83816E-05
  25  norm          7.9739        12.783        .56765E-06    .12730E-04
  26  Prefactor     11.504        13.664        .76891E-08    .25950E-06
  27  Prefactor     62.876        37.545        .30759E-07    .54409E-05
  28  Prefactor     1.8849        1158.8       -.27582E-04   -.73949E-05
  29  Prefactor     .10000E-03    1.4265       -.75419E-07** at limit **
  30  Normalizat    1.1561        .23667        .26678E-05   -.95386E-04
  31  Prefactor     .79020        .28089       -.30733E-05    .16366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1672
  Prefactor  = 17.2877
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  norm       = 9.71988
  Prefactor  = 18.8417
  Prefactor  = 0.0001
  Prefactor  = 62.79
  Prefactor  = 1.7588
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7641
  Prefactor  = 0.0001
  norm       = 0.00010461
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.7974
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.108769
  norm       = 1.38438
  Prefactor  = 29.1916
  norm       = 7.97393
  Prefactor  = 11.5041
  Prefactor  = 62.8755
  Prefactor  = 1.88493
  Prefactor  = 0.0001
  Normalizat = 1.15609
  Prefactor  = 0.790202
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.772     FROM HESSE     STATUS=OK           642 CALLS     4850 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.167        4.6564        .87924E-04   -1.5070    
   2  Prefactor     17.288        10.309        .96322E-04   -1.4876    
   3  Prefactor     .10006E-03    58.350        .15438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4946        .14760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.7199        6.8074        .12853E-03   -1.5084    
   6  Prefactor     18.842        12.648        .92268E-04   -1.4840    
   7  Prefactor     .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     62.790        61.146        .25314E-03   -1.4121    
   9  Prefactor     1.7588        21.004        .15787E-02   -1.5443    
  10  Prefactor     .10000E-03    3.0536        .10643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8903        .10360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.764        58.170        .10395E-03   -1.4939    
  13  Prefactor     .10000E-03    52.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10461E-03    6.6681        .37852E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9447        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6734        .79095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.1602        .17467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5635        .28320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.797        8.8627        .10414E-03   -1.4938    
  20  norm          .10000E-03    89.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5734        .96955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10877        22.866        .66086E-01   -1.5642    
  23  norm          1.3844        19.673        .36923E-03   -1.5473    
  24  Prefactor     29.192        41.101        .74194E-04   -1.4627    
  25  norm          7.9739        12.332        .14196E-03   -1.5143    
  26  Prefactor     11.504        13.657        .11812E-03   -1.5029    
  27  Prefactor     62.876        37.616        .50604E-04   -1.4120    
  28  Prefactor     1.8849        1177.3        .29154E-02   -1.5433    
  29  Prefactor     .10000E-03    1.4321        .73074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1561        .26518        .21673E-03   -.87971    
  31  Prefactor     .79020        .30855        .31604E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28363e-09
Minuit parameter uncertainties:
  1  4.65652
  2  10.3099
  3  0.00385881
  4  2.06478e-06
  5  6.80798
  6  12.6495
  7  7.80146e-07
  8  61.2071
  9  12.1609
  10  6.04701e-07
  11  6.8191e-06
  12  58.3946
  13  8.12389e-05
  14  0.0110902
  15  1.91406e-06
  16  5.39728e-07
  17  2.59355e-05
  18  3.21444e-05
  19  8.8635
  20  3.95612e-06
  21  2.67755e-06
  22  3.15386
  23  10.4411
  24  41.1411
  25  12.3356
  26  13.6606
  27  37.6305
  28  96.1784
  29  3.66255e-07
  30  0.265485
  31  0.309225
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.480e+01  8.864e+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:  7.902e-01  3.092e-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.156e+00  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.63
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.77e-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) = 3922.77165314
delta logL = 1.33387893584e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3922.77163587
delta logL = 3.06010215354e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.874       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2671       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79025       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=   3922.772     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.876        14.053        .10385E-03   -.85565E-03
   2  alpha         2.2674        .70647        .92154E-02   -.13361E-03
   3  Normalizat    1.1563        .24553        .21670E-03    .31864E-03
   4  Prefactor     .79003        .30096        .31608E-03    .34979E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8761
  alpha      = 2.26735
  Normalizat = 1.15634
  Prefactor  = 0.790027
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.772     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.876        13.338        .20771E-04   -1.4936    
   2  alpha         2.2674        .67121        .36862E-03   -.93194E-01
   3  Normalizat    1.1563        .24541        .43340E-04   -.87963    
   4  Prefactor     .79003        .30103        .63216E-04   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14241e-09
Minuit parameter uncertainties:
  1  13.3402
  2  0.679626
  3  0.245649
  4  0.301654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334235': 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) = 3922.77163527
delta logL = 3.12060769829e-05

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.488e+01  1.334e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.267e+00  6.796e-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:  7.900e-01  3.017e-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.156e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.27 +/- 0.68
Photon Flux (Free Index): 4.07e-08 +/- 3.23e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.08e-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/334235/cmap_HighResolution_409881601_410140801_4FGL_J1311.0+3233_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='2.96e-05', photon_flux_error='2.45e-08', dlogl='3.12e-05', energy_flux='2.95e-05', photon_flux2='4.07e-08', job_status='DONE', time_completed='2021-09-07 04:14:17.344257', photon_index_error2='0.68', photon_index2='2.27', ts='7.63', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.16', time_epoch_completed='1631013257.34', return_code='0', job_id='334235', GAL2='0.79', EG2='1.16', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.23e-08', ts2='7.61', photon_index='2.27' WHERE bin_id='658' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 334235: <4FGL_J1311.0+3233_daily_bin658> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin658> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:33 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00:56 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:56 2021
Terminated at Tue Sep  7 04:14:18 2021
Results reported at Tue Sep  7 04:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin658 197.76 32.5565 409881601 410140801 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 :                                   639.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            825 sec.

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

