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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin673
RA = 197.76, Dec = 32.5565
tmin = 413769601, tmax = 414028801
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='334256', job_status='RUN', time_executed='2021-09-07 04:01:11.705994', time_epoch_executed='1631012471.71' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334256

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334256/ft1_4FGL_J1311.0+3233_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334256/ft2_4FGL_J1311.0+3233_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334256/ft1_4FGL_J1311.0+3233_daily_bin673.fits outfile=/scratch/kocevski/334256/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin673.fits ra=197.76 dec=32.5565 rad=12.0 tmin=413769601.0 tmax=414028801.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.17
user 5.92
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334256/ft2_4FGL_J1311.0+3233_daily_bin673.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/334256/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin673.fits evtable="EVENTS" outfile="/scratch/kocevski/334256/ft1_filtered_4FGL_J1311.0+3233_daily_bin673.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/334256/ft1_filtered_4FGL_J1311.0+3233_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/334256/ft2_4FGL_J1311.0+3233_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/334256/ltcube_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.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/334256/ft2_4FGL_J1311.0+3233_daily_bin673.fits
.....................!
real 14.02
user 13.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334256/ft1_filtered_4FGL_J1311.0+3233_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/334256/ft2_4FGL_J1311.0+3233_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/334256/ltcube_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.fits outfile=/scratch/kocevski/334256/expmap_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.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/334256/ltcube_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.fits
.....................!
real 193.80
user 188.27
sys 4.65

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/334256/ft1_filtered_4FGL_J1311.0+3233_daily_bin673.fits scfile=/scratch/kocevski/334256/ft2_4FGL_J1311.0+3233_daily_bin673.fits outfile=/scratch/kocevski/334256/cmap_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334256/ft1_filtered_4FGL_J1311.0+3233_daily_bin673.fits scfile=/scratch/kocevski/334256/ft2_4FGL_J1311.0+3233_daily_bin673.fits outfile=/scratch/kocevski/334256/cmap_HighResolution_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.379       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9840       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0618       1.0000         .10000E-03   10000.    
     5 'norm      '    12.210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99351       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.050       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.067       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5964       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.404       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16467E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.7624       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .24115       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=   4171.733     FROM MIGRAD    STATUS=CONVERGED   1475 CALLS     4767 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.380        6.8634        .79516E-04    .18729E-04
   2  Prefactor     .10000E-03    2.1130        .91685E-03** at limit **
   3  Prefactor     1.9841        1.9752        .86891E-04    .66597E-04
   4  Prefactor     9.0626        4.6398        .91671E-04    .39313E-04
   5  norm          12.212        8.0630        .11464E-03    .37585E-04
   6  Prefactor     2.2876        26.658        .13580E-02    .18040E-04
   7  Prefactor     .10000E-03    15.216        .18142E-02** at limit **
   8  Prefactor     .10000E-03    30.322        .18142E-02** at limit **
   9  Prefactor     .10000E-03    4.3712        .13174E-02** at limit **
  10  Prefactor     .99571        8.3521        .35823E-03    .13329E-05
  11  norm          2.5568        6.7047        .21659E-03    .63199E-04
  12  Prefactor     .63923        65.167        .16417        .84731E-04
  13  Prefactor     10.048        33.719        .12640E-03    .23386E-05
  14  norm          .10000E-03    1.3936        .74406E-03** at limit **
  15  Prefactor     .10000E-03    19.328        .18142E-02** at limit **
  16  norm          .10000E-03    3.6871        .12064E-02** at limit **
  17  norm          24.080        22.857        .81652E-04    .69617E-06
  18  norm          3.5981        4.2180        .13403E-03    .16761E-03
  19  norm          .10000E-03    7.4956        .17145E-02** at limit **
  20  norm          .10000E-03    40.160        .18142E-02** at limit **
  21  Prefactor     .10000E-03    2.0468        .17817E-03** at limit **
  22  Prefactor     .10000E-03    7.2783        .16987E-02** at limit **
  23  norm          .10000E-03    11.051        .18142E-02** at limit **
  24  Prefactor     37.380        54.639        .65532E-04   -.21234E-04
  25  norm          .10000E-03    6.8591        .16480E-02** at limit **
  26  Prefactor     .10000E-03    14.358        .18142E-02** at limit **
  27  Prefactor     .10000E-03    102.52        .36285E-03** at limit **
  28  Prefactor     .10000E-03    122.27        .18142E-02** at limit **
  29  Prefactor     .10000E-03    1.5566        .78575E-03** at limit **
  30  Normalizat    1.7623        .25514        .19439E-03    .16741E-03
  31  Prefactor     .24107        .28845        .55425E-03    .70540E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.38
  Prefactor  = 0.0001
  Prefactor  = 1.98409
  Prefactor  = 9.06256
  norm       = 12.2116
  Prefactor  = 2.28762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.99571
  norm       = 2.55676
  Prefactor  = 0.639228
  Prefactor  = 10.0483
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.0801
  norm       = 3.59812
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.3796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.76229
  Prefactor  = 0.241071
 **********
 **   18 **HESSE 
 **********

 FCN=   4171.733     FROM HESSE     STATUS=OK           602 CALLS     5369 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.380        6.8631        .31807E-05   -1.4700    
   2  Prefactor     .10000E-03    2.1130        .18337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9841        1.9751        .34756E-05   -1.5426    
   4  Prefactor     9.0626        4.6341        .36668E-05   -1.5106    
   5  norm          12.212        8.0625        .45856E-05   -1.5009    
   6  Prefactor     2.2876        26.547        .54321E-04   -1.5405    
   7  Prefactor     .10000E-03    15.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3714        .26347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .99571        8.3487        .14329E-04   -1.5508    
  11  norm          2.5568        6.6991        .86634E-05   -1.5388    
  12  Prefactor     .63923        64.376        .16589       -1.5548    
  13  Prefactor     10.048        33.693        .50558E-05   -1.5074    
  14  norm          .10000E-03    1.3936        .14881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6875        .24129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.080        22.854        .32661E-05   -1.4726    
  18  norm          3.5981        4.2167        .53611E-05   -1.5329    
  19  norm          .10000E-03    7.4959        .34289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    40.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.0468        .35634E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2792        .33973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.380        54.639        .13106E-04   -1.4484    
  25  norm          .10000E-03    6.8602        .32960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    102.52        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    122.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.5567        .15715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.7623        .25491        .38877E-04   -.70652    
  31  Prefactor     .24107        .28815        .22170E-04   -1.2590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07726e-10
Minuit parameter uncertainties:
  1  6.8633
  2  2.95903e-07
  3  1.97518
  4  4.63432
  5  8.06318
  6  15.5943
  7  4.16969e-05
  8  6.54596e-06
  9  1.15956e-06
  10  5.76722
  11  6.70108
  12  12.843
  13  33.7569
  14  4.14407e-07
  15  8.7796e-05
  16  6.45037e-07
  17  22.8619
  18  4.21702
  19  3.76083e-05
  20  4.2518e-05
  21  1.84077e-05
  22  3.04179e-05
  23  1.29998e-05
  24  54.712
  25  2.59276e-06
  26  7.73819e-06
  27  0.00114733
  28  0.000751621
  29  2.14058e-06
  30  0.255103
  31  0.289876
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  3.761e-05  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:  2.411e-01  2.899e-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.762e+00  2.551e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334256/likelihoodResults_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.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) = 4171.73405717
delta logL = -0.000632528867754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4171.73342464
delta logL = -2.357410267e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2698       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24107       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=   4171.733     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    214.76        .17152E-02** at limit **
   2  alpha         2.2483        3.3983        .50000        .12358E-05
   3  Normalizat    1.7623        .28961E-01    .19439E-03    .70767E-05
   4  Prefactor     .24107        .33318E-01    .55424E-03    .15179E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100073
  alpha      = 2.24829
  Normalizat = 1.76229
  Prefactor  = 0.24107
 **********
 **   18 **HESSE 
 **********

 FCN=   4171.733     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    840.83        .34305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2483        3.7065        .50000       -.10086    
   3  Normalizat    1.7623        .66326E-01    .77754E-05   -.70652    
   4  Prefactor     .24107        .76280E-01    .22170E-04   -1.2590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05668e-08
Minuit parameter uncertainties:
  1  0.015901
  2  1791.77
  3  0.0663295
  4  0.0763111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334256': 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): 102
logL (Free Index) = 4171.73342463
delta logL = 1.04746504803e-08

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.001e-04  1.590e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.248e+00  1.792e+03  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:  2.411e-01  7.631e-02  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.762e+00  6.633e-02  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/334256/cmap_HighResolution_413769601_414028801_4FGL_J1311.0+3233_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-07 04:14:22.867850', job_id='334256', GAL2='0.24', fit_tolerance='1e-08', EG2='1.76', EG='1.76', time_epoch_completed='1631013262.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.24', dlogl='1.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='673' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:14:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 334256: <4FGL_J1311.0+3233_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin673 197.76 32.5565 413769601 414028801 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            829 sec.

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

