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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin927
RA = 197.76, Dec = 32.5565
tmin = 479606401, tmax = 479865601
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='335739', job_status='RUN', time_executed='2021-09-07 04:06:21.659949', time_epoch_executed='1631012781.66' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335739/ft1_4FGL_J1311.0+3233_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335739/ft2_4FGL_J1311.0+3233_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335739/ft1_4FGL_J1311.0+3233_daily_bin927.fits outfile=/scratch/kocevski/335739/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin927.fits ra=197.76 dec=32.5565 rad=12.0 tmin=479606401.0 tmax=479865601.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 3.43
user 3.21
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335739/ft1_filtered_4FGL_J1311.0+3233_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/335739/ft2_4FGL_J1311.0+3233_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/335739/ltcube_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.fits outfile=/scratch/kocevski/335739/expmap_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.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/335739/ltcube_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.fits
.....................!
real 190.85
user 184.37
sys 6.08

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/335739/ft1_filtered_4FGL_J1311.0+3233_daily_bin927.fits scfile=/scratch/kocevski/335739/ft2_4FGL_J1311.0+3233_daily_bin927.fits outfile=/scratch/kocevski/335739/cmap_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335739/ft1_filtered_4FGL_J1311.0+3233_daily_bin927.fits scfile=/scratch/kocevski/335739/ft2_4FGL_J1311.0+3233_daily_bin927.fits outfile=/scratch/kocevski/335739/cmap_HighResolution_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7795       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1455       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.176       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2597       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6623       1.0000         .10000E-03   10000.    
    17 'norm      '    40.428       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7148       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.409       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.5580       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.011       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86807       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81638       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=   5295.158     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4100 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7464        4.2559       -.13788E-06   -.28731E-03
   2  Prefactor     1.7800        6.9450        .10385E-05   -.14299E-03
   3  Prefactor     2.5530        2.4088        .86395E-07    .67644E-05
   4  Prefactor     .10000E-03    1.0459        .31572E-07** at limit **
   5  norm          5.1457        3.7936        .19614E-07    .42067E-04
   6  Prefactor     .10000E-03    9.0167       -.39865E-06** at limit **
   7  Prefactor     .10000E-03    65.745       -.30651E-05** at limit **
   8  Prefactor     30.582        71.168        .15415E-05    .32565E-04
   9  Prefactor     .10000E-03    8.7209        .37596E-06** at limit **
  10  Prefactor     .10000E-03    2.6154       -.35318E-07** at limit **
  11  norm          20.174        6.4163       -.10378E-08    .16480E-03
  12  Prefactor     .10000E-03    20.646        .17873E-05** at limit **
  13  Prefactor     .10000E-03    29.525       -.20956E-05** at limit **
  14  norm          7.1915        4.6049        .10193E-05   -.11582E-02
  15  Prefactor     6.2571        10.136        .14686E-05   -.30835E-03
  16  norm          7.6611        5.1337       -.44973E-07    .50154E-04
  17  norm          40.427        19.079        .62709E-07   -.13968E-04
  18  norm          2.7146        2.4566       -.11933E-07    .36420E-04
  19  norm          .10000E-03    3.0414        .16114E-08** at limit **
  20  norm          28.884        21.234       -.20940E-06    .62043E-05
  21  Prefactor     .10000E-03    2.4647        .84341E-08** at limit **
  22  Prefactor     27.406        14.665        .60878E-07    .29913E-04
  23  norm          .10000E-03    2.9130       -.64967E-07** at limit **
  24  Prefactor     .10001E-03    26.323       -.38283E-05** at limit **
  25  norm          8.5584        7.1476        .75230E-06   -.46582E-03
  26  Prefactor     .10000E-03    5.7492        .23170E-08** at limit **
  27  Prefactor     14.013        13.529        .25730E-07   -.46004E-05
  28  Prefactor     .10002E-03    34.055        .65468E-05** at limit **
  29  Prefactor     .10000E-03    1.6328        .30227E-07** at limit **
  30  Normalizat    .86802        .16408       -.58552E-06    .87286E-05
  31  Prefactor     .81638        .19870       -.40459E-06   -.12300E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.74637
  Prefactor  = 1.77996
  Prefactor  = 2.55296
  Prefactor  = 0.0001
  norm       = 5.14569
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 30.582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1738
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 7.19147
  Prefactor  = 6.2571
  norm       = 7.66109
  norm       = 40.4271
  norm       = 2.71459
  norm       = 0.0001
  norm       = 28.8836
  Prefactor  = 0.0001
  Prefactor  = 27.4059
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 8.55844
  Prefactor  = 0.0001
  Prefactor  = 14.013
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Normalizat = 0.86802
  Prefactor  = 0.816383
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.158     FROM HESSE     STATUS=OK           618 CALLS     4718 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7464        4.2574        .91178E-04   -1.5083    
   2  Prefactor     1.7800        6.9975        .31376E-03   -1.5441    
   3  Prefactor     2.5530        2.4059        .10083E-03   -1.5388    
   4  Prefactor     .10000E-03    1.9712        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1457        3.7945        .11851E-03   -1.5254    
   6  Prefactor     .10000E-03    9.1216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    67.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.582        71.231        .72456E-04   -1.4601    
   9  Prefactor     .10000E-03    8.8802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6243        .11489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.174        6.4125        .89168E-04   -1.4809    
  12  Prefactor     .10000E-03    20.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1915        4.8363        .62300E-03   -1.5172    
  15  Prefactor     6.2571        10.358        .80222E-03   -1.5208    
  16  norm          7.6611        5.1287        .12858E-03   -1.5154    
  17  norm          40.427        19.082        .63043E-04   -1.4435    
  18  norm          2.7146        2.4525        .10333E-03   -1.5378    
  19  norm          .10000E-03    3.0597        .12369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.884        21.244        .74548E-04   -1.4633    
  21  Prefactor     .10000E-03    2.5042        .22158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.406        14.622        .76522E-04   -1.4660    
  23  norm          .10000E-03    2.9400        .12120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    27.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.5584        7.2529        .68514E-03   -1.5123    
  26  Prefactor     .10000E-03    5.7631        .17038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.013        13.536        .10700E-03   -1.4959    
  28  Prefactor     .10002E-03    37.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.103        .17907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86802        .19711        .22082E-03   -.97593    
  31  Prefactor     .81638        .23836        .28171E-03   -.99127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67635e-09
Minuit parameter uncertainties:
  1  4.2575
  2  7.00069
  3  2.40596
  4  5.32048e-06
  5  3.79466
  6  4.28687e-05
  7  0.000830897
  8  71.4305
  9  3.91e-05
  10  9.65728e-07
  11  6.41268
  12  0.000316311
  13  0.000438826
  14  4.83654
  15  10.3614
  16  5.12899
  17  19.085
  18  2.45257
  19  6.86571e-07
  20  21.2494
  21  8.862e-07
  22  14.624
  23  4.26272e-06
  24  0.000773805
  25  7.25362
  26  7.95835e-07
  27  13.5389
  28  0.00154363
  29  0.000139567
  30  0.197273
  31  0.238661
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  6.866e-07  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.164e-01  2.387e-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:  8.680e-01  1.973e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335739/likelihoodResults_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.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) = 5295.15928634
delta logL = -0.00154576652221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5295.15774069
delta logL = -1.23137397168e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2545       1.0000          .0000       5.0000    
     3 'Normalizat'    .86804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81637       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=   5295.158     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      234 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    228.60        .12545E-01** at limit **
   2  alpha         1.2965        2.9429        .16562        .10983E-06
   3  Normalizat    .86802        .28320E-01    .22082E-03    .10045E-03
   4  Prefactor     .81638        .35314E-01    .28171E-03    .85029E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.2965
  Normalizat = 0.868019
  Prefactor  = 0.816383
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.158     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9017        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2965        2.6147        .66248E-02   -.50225    
   3  Normalizat    .86802        .18951        .88326E-05   -.97593    
   4  Prefactor     .81638        .23620        .11269E-04   -.99127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04027e-10
Minuit parameter uncertainties:
  1  6.31983e-05
  2  252.731
  3  0.189653
  4  0.23649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335739': 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) = 5295.15773448
delta logL = 6.0889933593e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  6.320e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.296e+00  2.527e+02  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.164e-01  2.365e-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:  8.680e-01  1.897e-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/335739/cmap_HighResolution_479606401_479865601_4FGL_J1311.0+3233_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='3.23e-08', time_completed='2021-09-07 04:19:58.945300', job_id='335739', GAL2='0.82', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631013598.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='927' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:19:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 335739: <4FGL_J1311.0+3233_daily_bin927> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin927 197.76 32.5565 479606401 479865601 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 :                                   813.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            872 sec.

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

