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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin974
RA = 197.76, Dec = 32.5565
tmin = 491788801, tmax = 492048001
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='337105', job_status='RUN', time_executed='2021-09-07 04:12:29.463381', time_epoch_executed='1631013149.46' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337105

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337105/ft1_4FGL_J1311.0+3233_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337105/ft2_4FGL_J1311.0+3233_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337105/ft1_4FGL_J1311.0+3233_daily_bin974.fits outfile=/scratch/kocevski/337105/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin974.fits ra=197.76 dec=32.5565 rad=12.0 tmin=491788801.0 tmax=492048001.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.31
user 4.02
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337105/ft1_filtered_4FGL_J1311.0+3233_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/337105/ft2_4FGL_J1311.0+3233_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/337105/ltcube_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.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/337105/ft2_4FGL_J1311.0+3233_daily_bin974.fits
.....................!
real 16.81
user 16.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337105/ft1_filtered_4FGL_J1311.0+3233_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/337105/ft2_4FGL_J1311.0+3233_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/337105/ltcube_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.fits outfile=/scratch/kocevski/337105/expmap_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.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/337105/ltcube_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.fits
.....................!
real 193.64
user 188.20
sys 4.80

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/337105/ft1_filtered_4FGL_J1311.0+3233_daily_bin974.fits scfile=/scratch/kocevski/337105/ft2_4FGL_J1311.0+3233_daily_bin974.fits outfile=/scratch/kocevski/337105/cmap_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/337105/ft1_filtered_4FGL_J1311.0+3233_daily_bin974.fits scfile=/scratch/kocevski/337105/ft2_4FGL_J1311.0+3233_daily_bin974.fits outfile=/scratch/kocevski/337105/cmap_HighResolution_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.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.64
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .83742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3638       1.0000         .10000E-03   10000.    
     5 'norm      '    9.8368       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.006       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    144.69       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.8213       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.934       1.0000         .10000E-03   10000.    
    17 'norm      '    41.604       1.0000         .10000E-03   10000.    
    18 'norm      '    27.363       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.100       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .24197       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.688       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19013E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.7386       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5250       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .26815E-05   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=   844.7477     FROM MIGRAD    STATUS=CONVERGED   1460 CALLS     5566 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.256        .10292E-02** at limit **
   2  Prefactor     23.061        28.077        .83408E-04    .61165E-05
   3  Prefactor     .83409        35.483        .20306E-02    .18749E-03
   4  Prefactor     4.3605        14.091        .14012E-03    .62768E-04
   5  norm          9.8360        14.469        .12776E-03    .27251E-05
   6  Prefactor     .10000E-03    69.364        .18142E-02** at limit **
   7  Prefactor     48.935        94.767        .57283E-04    .98241E-05
   8  Prefactor     .10000E-03    118.67        .18142E-02** at limit **
   9  Prefactor     .10000E-03    9.2290        .86254E-03** at limit **
  10  Prefactor     .10000E-03    20.671        .12898E-02** at limit **
  11  norm          .10000E-03    6.1754        .70548E-03** at limit **
  12  Prefactor     144.58        237.36        .16749E-03   -.69320E-05
  13  Prefactor     .10000E-03    42.628        .18142E-02** at limit **
  14  norm          9.8197        16.737        .12787E-03    .17026E-04
  15  Prefactor     .10000E-03    56.878        .18142E-02** at limit **
  16  norm          21.930        21.162        .85525E-04    .56810E-04
  17  norm          41.590        58.150        .62149E-04    .29726E-05
  18  norm          27.362        15.596        .76585E-04   -.15443E-03
  19  norm          .10000E-03    45.562        .18142E-02** at limit **
  20  norm          .10000E-03    63.751        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.3806        .65755E-03** at limit **
  22  Prefactor     .10000E-03    21.629        .13205E-02** at limit **
  23  norm          15.152        28.494        .10307E-03   -.21853E-04
  24  Prefactor     .10000E-03    73.878        .18142E-02** at limit **
  25  norm          .55197E-01    200.05        .58497E-01    .26871E-04
  26  Prefactor     24.692        55.110        .80620E-04   -.13044E-05
  27  Prefactor     .10000E-03    69.459        .18142E-02** at limit **
  28  Prefactor     .10000E-03    1436.2        .20274E-02** at limit **
  29  Prefactor     4.7372        15.676        .18484E-03   -.31444E-05
  30  Normalizat    1.5252        .33044        .19518E-03    .17430E-04
  31  Prefactor     .83322E-12    1.0456        .12004E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 23.0607
  Prefactor  = 0.834088
  Prefactor  = 4.36047
  norm       = 9.83601
  Prefactor  = 0.0001
  Prefactor  = 48.9348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 144.584
  Prefactor  = 0.0001
  norm       = 9.8197
  Prefactor  = 0.0001
  norm       = 21.9302
  norm       = 41.5896
  norm       = 27.3624
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1517
  Prefactor  = 0.0001
  norm       = 0.0551967
  Prefactor  = 24.6915
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.73716
  Normalizat = 1.52517
  Prefactor  = 8.33222e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   844.7477     FROM HESSE     STATUS=OK           602 CALLS     6168 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.256        .20583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.061        28.073        .33363E-05   -1.4747    
   3  Prefactor     .83409        33.581        .81224E-04   -1.5525    
   4  Prefactor     4.3605        13.733        .56048E-05   -1.5290    
   5  norm          9.8360        14.462        .51106E-05   -1.5081    
   6  Prefactor     .10000E-03    69.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.935        94.748        .11457E-04   -1.4308    
   8  Prefactor     .10000E-03    118.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2290        .17251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.672        .25796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.1754        .14110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     144.58        237.33        .66995E-05   -1.3297    
  13  Prefactor     .10000E-03    42.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.8197        16.732        .51146E-05   -1.5081    
  15  Prefactor     .10000E-03    56.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.930        21.160        .34210E-05   -1.4771    
  17  norm          41.590        58.148        .24859E-05   -1.4417    
  18  norm          27.362        15.592        .15317E-04   -1.4661    
  19  norm          .10000E-03    45.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    63.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3806        .13151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.629        .26411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.152        27.358        .41229E-05   -1.4929    
  24  Prefactor     .10000E-03    73.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .55197E-01    129.89        .71994E-01   -1.5661    
  26  Prefactor     24.692        55.106        .32248E-05   -1.4714    
  27  Prefactor     .10000E-03    69.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1436.9        .40548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.7372        15.669        .73937E-05   -1.5273    
  30  Normalizat    1.5252        .32906        .78074E-05   -.77073    
  31  Prefactor     .83322E-12    1.0467        .24009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24561e-10
Minuit parameter uncertainties:
  1  7.5627e-05
  2  28.0893
  3  10.5906
  4  13.7431
  5  14.4667
  6  0.000309568
  7  95.0418
  8  0.000107456
  9  4.33262e-06
  10  8.11942e-05
  11  9.13249e-06
  12  238.921
  13  0.000131779
  14  16.7397
  15  3.11838e-05
  16  21.1668
  17  58.2273
  18  15.5948
  19  0.00058138
  20  0.000146685
  21  1.10516e-05
  22  1.92744e-05
  23  27.3811
  24  0.000105223
  25  5.3621
  26  55.2194
  27  0.000119405
  28  0.00433035
  29  15.6823
  30  0.329527
  31  1.90167e-06
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  5.814e-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:  8.332e-13  1.902e-06  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.525e+00  3.295e-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: 2.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/337105/likelihoodResults_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.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) = 844.747838508
delta logL = -0.000106157068899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 844.74773533
delta logL = -2.97909900837e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9529       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28888E-05   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=   844.7477     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      301 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    270.04        .12701E-01** at limit **
   2  alpha         2.0481        3.4806        .50000        .12972E-06
   3  Normalizat    1.5252        .26352E-01    .19518E-03   -.38449E-04
   4  Prefactor     .80963E-11    .12356E-01    .12003E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100071
  alpha      = 2.04814
  Normalizat = 1.52517
  Prefactor  = 8.0963e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   844.7477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      330 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    1705.6        .19687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0481        3.7481        .50000       -.18174    
   3  Normalizat    1.5252        .69720E-01    .39036E-04   -.77073    
   4  Prefactor     .80963E-11    .86714E-01    .24006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.69682e-09
Minuit parameter uncertainties:
  1  0.0226188
  2  3253.98
  3  0.0697244
  4  1.67822e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337105': 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) = 844.747732281
delta logL = 7.03345222064e-08

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.001e-04  2.262e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.048e+00  3.254e+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:  8.096e-12  1.678e-06  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.525e+00  6.972e-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/337105/cmap_HighResolution_491788801_492048001_4FGL_J1311.0+3233_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-04', job_status='DONE', photon_flux_upper_limit='2.11e-07', time_completed='2021-09-07 04:19:56.911876', job_id='337105', GAL2='0.00', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631013596.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='7.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='974' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:19:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 337105: <4FGL_J1311.0+3233_daily_bin974> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin974> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 04:10:27 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:10:31 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:10:31 2021
Terminated at Tue Sep  7 04:19:57 2021
Results reported at Tue Sep  7 04:19:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin974 197.76 32.5565 491788801 492048001 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 :                                   442.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            570 sec.

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

