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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin550
RA = 197.76, Dec = 32.5565
tmin = 381888001, tmax = 382147201
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='332854', job_status='RUN', time_executed='2021-09-07 03:56:08.567418', time_epoch_executed='1631012168.57' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332854/ft1_4FGL_J1311.0+3233_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332854/ft2_4FGL_J1311.0+3233_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332854/ft1_4FGL_J1311.0+3233_daily_bin550.fits outfile=/scratch/kocevski/332854/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin550.fits ra=197.76 dec=32.5565 rad=12.0 tmin=381888001.0 tmax=382147201.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 4.89
user 4.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332854/ft1_filtered_4FGL_J1311.0+3233_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/332854/ft2_4FGL_J1311.0+3233_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/332854/ltcube_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.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/332854/ft2_4FGL_J1311.0+3233_daily_bin550.fits
.....................!
real 14.15
user 13.81
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332854/ft1_filtered_4FGL_J1311.0+3233_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/332854/ft2_4FGL_J1311.0+3233_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/332854/ltcube_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.fits outfile=/scratch/kocevski/332854/expmap_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.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/332854/ltcube_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.fits
.....................!
real 190.70
user 186.31
sys 3.94

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/332854/ft1_filtered_4FGL_J1311.0+3233_daily_bin550.fits scfile=/scratch/kocevski/332854/ft2_4FGL_J1311.0+3233_daily_bin550.fits outfile=/scratch/kocevski/332854/cmap_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332854/ft1_filtered_4FGL_J1311.0+3233_daily_bin550.fits scfile=/scratch/kocevski/332854/ft2_4FGL_J1311.0+3233_daily_bin550.fits outfile=/scratch/kocevski/332854/cmap_HighResolution_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.76 yref=32.5565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2720       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1503       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.187       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5952       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.132       1.0000         .10000E-03   10000.    
    18 'norm      '    7.3953       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    38.693       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8257       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .73031       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0122       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=   5797.883     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4141 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2716        2.7841       -.15795E-08    .22573E-05
   2  Prefactor     .10000E-03    3.5074        .27372E-07** at limit **
   3  Prefactor     .10000E-03    1.1230        .87921E-08** at limit **
   4  Prefactor     6.1498        3.0235        .28317E-07   -.77691E-05
   5  norm          3.6451        5.2379        .14566E-06   -.11615E-03
   6  Prefactor     .10000E-03    3.0847        .25151E-08** at limit **
   7  Prefactor     .10000E-03    6.9924       -.41136E-09** at limit **
   8  Prefactor     .10000E-03    44.830       -.66975E-06** at limit **
   9  Prefactor     .10000E-03    13.724       -.25591E-06** at limit **
  10  Prefactor     .10000E-03    1.8138        .30324E-07** at limit **
  11  norm          .10000E-03    1.9778        .10317E-06** at limit **
  12  Prefactor     .10000E-03    17.359       -.29125E-06** at limit **
  13  Prefactor     23.153        27.383        .15331E-05    .21364E-03
  14  norm          5.5930        4.3882        .16700E-05   -.13966E-02
  15  Prefactor     .10000E-03    5.7806        .51524E-07** at limit **
  16  norm          .10000E-03    2.6729        .63378E-07** at limit **
  17  norm          11.130        12.483        .56576E-07   -.44366E-05
  18  norm          7.3960        3.8689       -.10350E-06    .17307E-03
  19  norm          .10000E-03    2.9734        .10439E-07** at limit **
  20  norm          .10001E-03    27.268        .40474E-05** at limit **
  21  Prefactor     .10000E-03    .96534        .13989E-07** at limit **
  22  Prefactor     .10001E-03    25.298       -.49777E-05** at limit **
  23  norm          38.690        10.699       -.39021E-07   -.92179E-04
  24  Prefactor     .10000E-03    21.989        .11561E-05** at limit **
  25  norm          .10000E-03    4.1318        .41230E-08** at limit **
  26  Prefactor     8.8424        13.321       -.14383E-05   -.30038E-03
  27  Prefactor     .10000E-03    6.5941        .14156E-07** at limit **
  28  Prefactor     .43872        72.971       -.63670E-07    .27148E-04
  29  Prefactor     .10000E-03    1.6875        .14088E-07** at limit **
  30  Normalizat    1.0301        .17257       -.66082E-06    .10420E-03
  31  Prefactor     1.0122        .20658       -.10452E-06    .25763E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.27159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14979
  norm       = 3.64513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1532
  norm       = 5.59301
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.13
  norm       = 7.39601
  norm       = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 38.6899
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.84245
  Prefactor  = 0.0001
  Prefactor  = 0.438715
  Prefactor  = 0.0001
  Normalizat = 1.03008
  Prefactor  = 1.01224
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.883     FROM HESSE     STATUS=OK           618 CALLS     4759 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2716        2.7826        .98940E-04   -1.5295    
   2  Prefactor     .10000E-03    3.5590        .13926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1501        .15734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1498        3.0207        .88787E-04   -1.5212    
   5  norm          3.6451        5.2341        .20149E-03   -1.5326    
   6  Prefactor     .10000E-03    3.0879        .13060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8169        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9835        .10434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.153        27.696        .83184E-04   -1.4745    
  14  norm          5.5930        4.7275        .72803E-03   -1.5235    
  15  Prefactor     .10000E-03    5.7951        .17878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7313        .12152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.130        12.486        .12008E-03   -1.5041    
  18  norm          7.3960        3.8548        .10051E-03   -1.5164    
  19  norm          .10000E-03    2.9793        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    28.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .97038        .73018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    27.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          38.690        10.696        .64435E-04   -1.4463    
  24  Prefactor     .10000E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.1396        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.8424        13.592        .13492E-03   -1.5113    
  27  Prefactor     .10000E-03    6.5989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .43872        73.882        .16285       -1.5576    
  29  Prefactor     .10000E-03    1.6997        .96562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0301        .20628        .22757E-03   -.92029    
  31  Prefactor     1.0122        .24555        .28542E-03   -.92323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8472e-09
Minuit parameter uncertainties:
  1  2.78265
  2  1.13687e-06
  3  2.01834e-07
  4  3.02074
  5  5.23473
  6  1.76782e-07
  7  3.01965e-06
  8  0.000221103
  9  4.27072e-05
  10  9.03487e-07
  11  7.83338e-06
  12  5.16277e-05
  13  27.7111
  14  4.72784
  15  1.97995e-06
  16  1.78469e-06
  17  12.4891
  18  3.8549
  19  2.51956e-06
  20  0.000833318
  21  1.59992e-06
  22  0.000904373
  23  10.6965
  24  0.000239685
  25  1.0895e-06
  26  13.5971
  27  9.38572e-06
  28  11.3996
  29  3.44608e-06
  30  0.206438
  31  0.245822
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  2.520e-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:  1.012e+00  2.458e-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.030e+00  2.064e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332854/likelihoodResults_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.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) = 5797.88408793
delta logL = -0.00158202745297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5797.88250588
delta logL = 1.83017618838e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2660       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0122       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=   5797.873     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      280 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35558E-02    .39290        .47071E-02    .31501E-02
   2  alpha         5.0000        4.9986        .50000    ** at limit **
   3  Normalizat    1.0209        .24588E-01    .22757E-03   -.44532E-03
   4  Prefactor     1.0190        .30448E-01    .28542E-03   -.67913E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00355583
  alpha      = 5
  Normalizat = 1.02085
  Prefactor  = 1.01905
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.873     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35558E-02    .59631E-01    .16483E-03   -1.5696    
   2  alpha         5.0000        2.7238        .50000       -4.7126    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0209        .21020        .45513E-04   -.92335    
   4  Prefactor     1.0190        .25034        .11417E-04   -.92097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61932e-09
Minuit parameter uncertainties:
  1  0.0287107
  2  0.00278735
  3  0.210368
  4  0.250629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332854': 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) = 5797.87321038
delta logL = 0.0092955238415

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.556e-03  2.871e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  2.787e-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:  1.019e+00  2.506e-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.021e+00  2.104e-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/332854/cmap_HighResolution_381888001_382147201_4FGL_J1311.0+3233_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='3.45e-08', time_completed='2021-09-07 04:10:50.825687', job_id='332854', GAL2='1.02', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1631013050.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='9.30e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='550' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 332854: <4FGL_J1311.0+3233_daily_bin550> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin550 197.76 32.5565 381888001 382147201 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 :                                   878.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            924 sec.

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

