/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 2 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin431
RA = 197.76, Dec = 32.5565
tmin = 351043201, tmax = 351302401
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='331626', job_status='RUN', time_executed='2021-09-07 03:51:06.318575', time_epoch_executed='1631011866.32' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331626/ft1_4FGL_J1311.0+3233_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331626/ft2_4FGL_J1311.0+3233_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331626/ft1_4FGL_J1311.0+3233_daily_bin431.fits outfile=/scratch/kocevski/331626/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin431.fits ra=197.76 dec=32.5565 rad=12.0 tmin=351043201.0 tmax=351302401.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331626/ft1_filtered_4FGL_J1311.0+3233_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/331626/ft2_4FGL_J1311.0+3233_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/331626/ltcube_351043201_351302401_4FGL_J1311.0+3233_daily_bin431.fits outfile=/scratch/kocevski/331626/expmap_351043201_351302401_4FGL_J1311.0+3233_daily_bin431.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/331626/ltcube_351043201_351302401_4FGL_J1311.0+3233_daily_bin431.fits
.....................!
real 193.33
user 186.64
sys 5.91

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/331626/ft1_filtered_4FGL_J1311.0+3233_daily_bin431.fits scfile=/scratch/kocevski/331626/ft2_4FGL_J1311.0+3233_daily_bin431.fits outfile=/scratch/kocevski/331626/cmap_351043201_351302401_4FGL_J1311.0+3233_daily_bin431.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331626/ft1_filtered_4FGL_J1311.0+3233_daily_bin431.fits scfile=/scratch/kocevski/331626/ft2_4FGL_J1311.0+3233_daily_bin431.fits outfile=/scratch/kocevski/331626/cmap_HighResolution_351043201_351302401_4FGL_J1311.0+3233_daily_bin431.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4016       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5292       1.0000         .10000E-03   10000.    
     5 'norm      '    .10769E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8284       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2471       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54503E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8323       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.551       1.0000         .10000E-03   10000.    
    18 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4754       1.0000         .10000E-03   10000.    
    20 'norm      '    6.6471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2971       1.0000         .10000E-03   10000.    
    23 'norm      '    8.9376       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17060E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.451       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    43.136       1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.463       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3577       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .54809       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=   5991.425     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4186 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4015        2.7983        .22843E-07    .10338E-04
   2  Prefactor     .10000E-03    1.7109        .27905E-07** at limit **
   3  Prefactor     2.9914        2.1804        .10488E-07    .79502E-05
   4  Prefactor     7.5293        2.8911       -.68103E-07   -.10057E-03
   5  norm          .10000E-03    3.0432        .78644E-06** at limit **
   6  Prefactor     7.8286        7.1317       -.89844E-07   -.26269E-04
   7  Prefactor     5.2468        11.256        .45345E-05    .12476E-03
   8  Prefactor     4.6371        378.64        .13859E-04   -.16822E-04
   9  Prefactor     .10002E-03    5.7012       -.13023E-06** at limit **
  10  Prefactor     .10000E-03    1.3717       -.14456E-07** at limit **
  11  norm          2.2326        5.1088       -.38247E-05   -.30185E-03
  12  Prefactor     80.561        66.481        .60260E-07    .11068E-04
  13  Prefactor     8.8430        18.768        .25839E-05    .97616E-04
  14  norm          2.9728        3.5831       -.30609E-07    .56189E-04
  15  Prefactor     .10000E-03    5.6385        .16395E-06** at limit **
  16  norm          .10000E-03    1.0367       -.68895E-08** at limit **
  17  norm          16.550        13.534        .15064E-06    .11728E-04
  18  norm          .10000E-03    2.8320       -.67536E-06** at limit **
  19  norm          6.4758        4.8162        .74303E-07    .15542E-03
  20  norm          6.6468        20.854        .51552E-06    .55606E-05
  21  Prefactor     .10000E-03    2.1476       -.65076E-06** at limit **
  22  Prefactor     8.2841        14.008        .56203E-06    .11948E-03
  23  norm          8.9366        9.0510        .91040E-07    .34933E-05
  24  Prefactor     .10000E-03    215.46        .29724E-06** at limit **
  25  norm          10.451        12.157        .91916E-07    .20100E-04
  26  Prefactor     .10000E-03    17.953        .42850E-06** at limit **
  27  Prefactor     43.117        28.934       -.20079E-06    .54431E-04
  28  Prefactor     36.445        62.710       -.10380E-05    .15033E-04
  29  Prefactor     .10000E-03    1.1876        .21738E-06** at limit **
  30  Normalizat    1.3578        .19149        .44381E-05   -.28889E-03
  31  Prefactor     .54808        .22436       -.95228E-05    .44728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40152
  Prefactor  = 0.0001
  Prefactor  = 2.99135
  Prefactor  = 7.52934
  norm       = 0.0001
  Prefactor  = 7.82861
  Prefactor  = 5.24681
  Prefactor  = 4.6371
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 2.23261
  Prefactor  = 80.5608
  Prefactor  = 8.84296
  norm       = 2.97283
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.5505
  norm       = 0.0001
  norm       = 6.47578
  norm       = 6.64683
  Prefactor  = 0.0001
  Prefactor  = 8.28407
  norm       = 8.93664
  Prefactor  = 0.000100001
  norm       = 10.4511
  Prefactor  = 0.0001
  Prefactor  = 43.1171
  Prefactor  = 36.4449
  Prefactor  = 0.0001
  Normalizat = 1.35777
  Prefactor  = 0.548079
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.425     FROM HESSE     STATUS=OK           630 CALLS     4816 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4015        2.8126        .10837E-03   -1.5339    
   2  Prefactor     .10000E-03    1.7123        .98878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9914        2.1949        .89996E-04   -1.5362    
   4  Prefactor     7.5293        2.8867        .78501E-04   -1.5159    
   5  norm          .10000E-03    6.2621        .26056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8286        7.1278        .14331E-03   -1.5148    
   7  Prefactor     5.2468        11.275        .87738E-03   -1.5250    
   8  Prefactor     4.6371        383.61        .18293E-03   -1.5277    
   9  Prefactor     .10002E-03    23.015        .35365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3734        .88527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2326        5.0808        .21440E-03   -1.5409    
  12  Prefactor     80.561        66.480        .44746E-04   -1.3910    
  13  Prefactor     8.8430        18.778        .13487E-03   -1.5113    
  14  norm          2.9728        3.5630        .15337E-03   -1.5363    
  15  Prefactor     .10000E-03    5.6727        .17950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0375        .76964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.550        13.531        .98449E-04   -1.4894    
  18  norm          .10000E-03    2.8719        .25263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4758        4.7997        .14069E-03   -1.5199    
  20  norm          6.6468        20.789        .15564E-03   -1.5192    
  21  Prefactor     .10000E-03    2.2144        .22027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.2841        14.010        .13918E-03   -1.5132    
  23  norm          8.9366        9.0139        .13407E-03   -1.5110    
  24  Prefactor     .10000E-03    217.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.451        12.128        .12394E-03   -1.5061    
  26  Prefactor     .10000E-03    18.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     43.117        29.007        .61039E-04   -1.4394    
  28  Prefactor     36.445        63.092        .66369E-04   -1.4500    
  29  Prefactor     .10000E-03    1.1940        .82364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3578        .20988        .20257E-03   -.81858    
  31  Prefactor     .54808        .23841        .36679E-03   -1.0982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65271e-09
Minuit parameter uncertainties:
  1  2.81267
  2  2.92523e-07
  3  2.19499
  4  2.8868
  5  9.69336e-05
  6  7.12853
  7  11.2797
  8  84.9211
  9  0.00133684
  10  2.02697e-06
  11  5.08174
  12  66.541
  13  18.7907
  14  3.56326
  15  4.92322e-06
  16  1.40219e-07
  17  13.533
  18  2.78889e-06
  19  4.80003
  20  20.8115
  21  7.7767e-06
  22  14.0152
  23  9.01529
  24  0.000668601
  25  12.1304
  26  1.80898e-05
  27  29.0166
  28  63.2082
  29  1.47354e-06
  30  0.210013
  31  0.238846
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  6.476e+00  4.800e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  5.481e-01  2.388e-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.358e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.62
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 9.57e-06

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) = 5991.42410294
delta logL = 0.000777342387664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5991.42306164
delta logL = 0.00181864871411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8004       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2041       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54742       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5991.423     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      255 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8038        7.9180        .72563E-03    .29611E-04
   2  alpha         2.2033        1.1844        .14931E-01    .62153E-05
   3  Normalizat    1.3592        .19550        .20249E-03   -.46016E-04
   4  Prefactor     .54739        .23364        .36703E-03   -.48507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.80379
  alpha      = 2.20334
  Normalizat = 1.35915
  Prefactor  = 0.547385
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.423     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8038        7.3537        .29025E-04   -1.5186    
   2  alpha         2.2033        1.1059        .59725E-03   -.11895    
   3  Normalizat    1.3592        .19529        .40498E-04   -.81817    
   4  Prefactor     .54739        .23370        .14681E-04   -1.0985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62217e-12
Minuit parameter uncertainties:
  1  7.35472
  2  1.14617
  3  0.195401
  4  0.23411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331626': 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) = 5991.42306135
delta logL = 0.00181893213266

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  6.804e+00  7.355e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.203e+00  1.146e+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:  5.474e-01  2.341e-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.359e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.20 +/- 1.15
Photon Flux (Free Index): 1.67e-08 +/- 2.29e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.12e-05

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/331626/cmap_HighResolution_351043201_351302401_4FGL_J1311.0+3233_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='1.32e-05', photon_flux_error='1.33e-08', dlogl='1.82e-03', energy_flux='1.29e-05', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-09-07 04:04:32.640387', photon_index_error2='1.15', photon_index2='2.20', ts='6.62', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='1.36', time_epoch_completed='1631012672.64', return_code='0', job_id='331626', GAL2='0.55', EG2='1.36', return_code2='0', energy_flux_error='9.57e-06', photon_flux_error2='2.29e-08', ts2='6.62', photon_index='2.27' WHERE bin_id='431' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 331626: <4FGL_J1311.0+3233_daily_bin431> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin431> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 03:50:49 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:50:54 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:50:54 2021
Terminated at Tue Sep  7 04:04:33 2021
Results reported at Tue Sep  7 04:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin431 197.76 32.5565 351043201 351302401 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 :                                   798.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            824 sec.

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

