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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin941
RA = 197.76, Dec = 32.5565
tmin = 483235201, tmax = 483494401
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='335759', job_status='RUN', time_executed='2021-09-07 04:09:27.838070', time_epoch_executed='1631012967.84' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335759/ft1_4FGL_J1311.0+3233_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335759/ft2_4FGL_J1311.0+3233_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335759/ft1_4FGL_J1311.0+3233_daily_bin941.fits outfile=/scratch/kocevski/335759/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin941.fits ra=197.76 dec=32.5565 rad=12.0 tmin=483235201.0 tmax=483494401.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 2.89
user 2.66
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335759/ft1_filtered_4FGL_J1311.0+3233_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/335759/ft2_4FGL_J1311.0+3233_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/335759/ltcube_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.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/335759/ft2_4FGL_J1311.0+3233_daily_bin941.fits
.....................!
real 11.20
user 10.89
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335759/ft1_filtered_4FGL_J1311.0+3233_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/335759/ft2_4FGL_J1311.0+3233_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/335759/ltcube_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.fits outfile=/scratch/kocevski/335759/expmap_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.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/335759/ltcube_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.fits
.....................!
real 155.78
user 151.83
sys 3.54

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/335759/ft1_filtered_4FGL_J1311.0+3233_daily_bin941.fits scfile=/scratch/kocevski/335759/ft2_4FGL_J1311.0+3233_daily_bin941.fits outfile=/scratch/kocevski/335759/cmap_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335759/ft1_filtered_4FGL_J1311.0+3233_daily_bin941.fits scfile=/scratch/kocevski/335759/ft2_4FGL_J1311.0+3233_daily_bin941.fits outfile=/scratch/kocevski/335759/cmap_HighResolution_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12010E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4109       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.461       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20802E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    45.849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.294       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.289       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5894       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0913       1.0000         .10000E-03   10000.    
    19 'norm      '    .16394E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.986       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.041       1.0000         .10000E-03   10000.    
    23 'norm      '    16.353       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.7266       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70465       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=   5912.401     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4156 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9974        4.0647       -.20384E-06   -.21419E-04
   2  Prefactor     .10002E-03    6.3662       -.13401E-05** at limit **
   3  Prefactor     4.5387        3.2868        .44103E-06    .12559E-03
   4  Prefactor     2.4109        2.4241       -.14960E-07    .20031E-04
   5  norm          .10000E-03    2.7728        .13314E-07** at limit **
   6  Prefactor     13.461        11.143       -.27472E-07    .12635E-04
   7  Prefactor     .10000E-03    6.4483       -.11249E-06** at limit **
   8  Prefactor     .10000E-03    39.470        .42766E-06** at limit **
   9  Prefactor     4.1335        6.0384        .23614E-05    .56893E-04
  10  Prefactor     .10000E-03    4.9982       -.80421E-06** at limit **
  11  norm          45.851        8.6373        .17664E-06    .48031E-03
  12  Prefactor     30.293        39.553        .39378E-07   -.52971E-05
  13  Prefactor     .10000E-03    19.255        .34579E-06** at limit **
  14  norm          .10000E-03    1.6183        .63176E-08** at limit **
  15  Prefactor     13.344        17.264        .15560E-05    .60447E-04
  16  norm          2.5873        4.5317       -.85287E-07   -.54389E-03
  17  norm          .10000E-03    3.6311       -.72900E-08** at limit **
  18  norm          1.1015        3.6822       -.16804E-05   -.70482E-03
  19  norm          .10000E-03    5.7857       -.16073E-05** at limit **
  20  norm          11.986        14.253        .34816E-07   -.30501E-07
  21  Prefactor     .10000E-03    1.4589       -.77381E-07** at limit **
  22  Prefactor     17.035        13.888        .20003E-06   -.88299E-05
  23  norm          16.352        8.9067       -.21176E-06   -.33298E-05
  24  Prefactor     .10001E-03    82.377       -.90038E-06** at limit **
  25  norm          6.7269        10.054        .12533E-05    .15196E-04
  26  Prefactor     .10000E-03    5.7106        .59840E-07** at limit **
  27  Prefactor     .10000E-03    13.390       -.39546E-07** at limit **
  28  Prefactor     .10001E-03    21.692       -.63393E-06** at limit **
  29  Prefactor     .10001E-03    3.6104        .28383E-05** at limit **
  30  Normalizat    1.1243        .16711        .59091E-06    .14663E-03
  31  Prefactor     .70456        .19945       -.11713E-05    .58141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99735
  Prefactor  = 0.000100019
  Prefactor  = 4.5387
  Prefactor  = 2.41092
  norm       = 0.0001
  Prefactor  = 13.4612
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.13351
  Prefactor  = 0.0001
  norm       = 45.8508
  Prefactor  = 30.2933
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 13.3445
  norm       = 2.58726
  norm       = 0.0001
  norm       = 1.10148
  norm       = 0.0001
  norm       = 11.9864
  Prefactor  = 0.0001
  Prefactor  = 17.035
  norm       = 16.3525
  Prefactor  = 0.000100011
  norm       = 6.7269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100008
  Normalizat = 1.12428
  Prefactor  = 0.704563
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.401     FROM HESSE     STATUS=OK           628 CALLS     4784 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9974        4.1036        .10236E-03   -1.5179    
   2  Prefactor     .10002E-03    43.985        .36245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5387        3.3537        .51563E-03   -1.5282    
   4  Prefactor     2.4109        2.4077        .11325E-03   -1.5397    
   5  norm          .10000E-03    2.8202        .12501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.461        11.118        .10917E-03   -1.4974    
   7  Prefactor     .10000E-03    6.4657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1335        6.7325        .99135E-03   -1.5301    
  10  Prefactor     .10000E-03    13.688        .31548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          45.851        8.6369        .59213E-04   -1.4353    
  12  Prefactor     30.293        39.548        .72795E-04   -1.4607    
  13  Prefactor     .10000E-03    19.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6335        .95496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.344        16.842        .10988E-03   -1.4977    
  16  norm          2.5873        4.5076        .19767E-03   -1.5386    
  17  norm          .10000E-03    3.6324        .14310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1015        3.4708        .23259E-03   -1.5498    
  19  norm          .10000E-03    8.6803        .28849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.986        14.250        .57853E-03   -1.5015    
  21  Prefactor     .10000E-03    1.4690        .90256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.035        13.696        .97022E-04   -1.4882    
  23  norm          16.352        8.9032        .49522E-03   -1.4899    
  24  Prefactor     .10001E-03    83.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.7269        10.246        .77355E-03   -1.5189    
  26  Prefactor     .10000E-03    5.7314        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    22.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    7.9733        .20759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1243        .19131        .21516E-03   -.88976    
  31  Prefactor     .70456        .22760        .32284E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26245e-09
Minuit parameter uncertainties:
  1  4.1038
  2  0.00181617
  3  3.35384
  4  2.40776
  5  1.29727e-06
  6  11.12
  7  8.4214e-05
  8  0.000826964
  9  6.73376
  10  3.81947e-06
  11  8.63711
  12  39.5824
  13  0.00056268
  14  1.95891e-06
  15  16.8477
  16  4.50821
  17  2.57207e-06
  18  3.47144
  19  0.000114736
  20  14.2543
  21  3.08159e-06
  22  13.6989
  23  8.90388
  24  0.00187879
  25  10.2482
  26  2.49863e-05
  27  7.13885e-05
  28  0.000909775
  29  0.000498335
  30  0.19143
  31  0.227904
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.147e-04  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.046e-01  2.279e-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.124e+00  1.914e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335759/likelihoodResults_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.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): 0
logL (Free Index) = 5912.40192036
delta logL = -0.000548928628632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5912.40137247
delta logL = -1.03810180008e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10532E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2764       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70431       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=   5912.401     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      260 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    8.9554        .28801E-02** at limit **
   2  alpha         2.4489        3.5485        .50000       -.20032E-06
   3  Normalizat    1.1243        .18407        .21516E-03    .64568E-04
   4  Prefactor     .70456        .22406        .32284E-03    .49230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010007
  alpha      = 2.44893
  Normalizat = 1.12428
  Prefactor  = 0.704564
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.401     FROM HESSE     STATUS=OK            29 CALLS      289 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    8.8037        .57601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4489        3.5403        .50000       -.20431E-01
   3  Normalizat    1.1243        .18424        .86065E-05   -.88976    
   4  Prefactor     .70456        .22426        .12914E-04   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93561e-09
Minuit parameter uncertainties:
  1  0.00157229
  2  2.5011
  3  0.184342
  4  0.224544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335759': 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) = 5912.40137136
delta logL = 7.37672962714e-08

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.001e-04  1.572e-03  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.449e+00  2.501e+00  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.046e-01  2.245e-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.124e+00  1.843e-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/335759/cmap_HighResolution_483235201_483494401_4FGL_J1311.0+3233_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-07 04:21:48.915487', job_id='335759', GAL2='0.70', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631013708.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='7.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='941' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:21:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 335759: <4FGL_J1311.0+3233_daily_bin941> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin941> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 04:05:29 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:06:16 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:06:16 2021
Terminated at Tue Sep  7 04:21:49 2021
Results reported at Tue Sep  7 04:21:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin941 197.76 32.5565 483235201 483494401 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 :                                   737.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            980 sec.

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

