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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin511
RA = 122.861, Dec = 1.7756
tmin = 371779201, tmax = 372038401
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='306385', job_status='RUN', time_executed='2021-08-29 12:13:44.207490', time_epoch_executed='1630264424.21' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306385/ft1_4FGL_J0811.4+0146_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306385/ft1_4FGL_J0811.4+0146_daily_bin511.fits outfile=/scratch/kocevski/306385/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin511.fits ra=122.861 dec=1.7756 rad=12.0 tmin=371779201.0 tmax=372038401.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 5.67
user 3.15
sys 2.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.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/306385/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.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 2.78
user 0.35
sys 2.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/306385/ltcube_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.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/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits
.....................!
real 14.93
user 12.04
sys 2.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/306385/ltcube_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.fits outfile=/scratch/kocevski/306385/expmap_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.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/306385/ltcube_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.fits
.....................!
real 194.10
user 184.85
sys 8.84

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 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J0811.4+0146 @ 122.861 1.7756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits scfile=/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits outfile=/scratch/kocevski/306385/cmap_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.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=122.861 yref=1.7756 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 2.78
user 0.35
sys 2.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits scfile=/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits outfile=/scratch/kocevski/306385/cmap_HighResolution_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.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=122.861 yref=1.7756 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 2.79
user 0.38
sys 2.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306385/Model_4FGL_J0811.4+0146_daily_bin511.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/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits.....................!
real 100.01
user 95.32
sys 4.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits', '/scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits', expMap='/scratch/kocevski/306385/expmap_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.fits', expCube='/scratch/kocevski/306385/ltcube_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/306385/Model_4FGL_J0811.4+0146_daily_bin511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0811.4+0146'

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.108e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/306385/ft1_filtered_4FGL_J0811.4+0146_daily_bin511.fits
Spacecraft file(s): /scratch/kocevski/306385/ft2_4FGL_J0811.4+0146_daily_bin511.fits
Exposure map: /scratch/kocevski/306385/expmap_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.fits
Exposure cube: /scratch/kocevski/306385/ltcube_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/306385/Model_4FGL_J0811.4+0146_daily_bin511.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) = 8292.11434314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.991       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12542E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2851       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11235E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7436       1.0000         .10000E-03   10000.    
    19 'norm      '    18.874       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.921       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9608       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2499       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8292.098     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2730 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.213        44.850        .17908E-05    .19482E-04
   2  Prefactor     11.991        8.7929       -.25713E-06   -.56844E-05
   3  Prefactor     .10000E-03    12.213       -.45753E-05** at limit **
   4  norm          1.0980        1.5019       -.52861E-06   -.14487E-02
   5  Prefactor     .10000E-03    11.345        .27632E-05** at limit **
   6  norm          10.110        9.7287       -.14374E-06   -.67165E-05
   7  Prefactor     .10000E-03    1.6941        .20078E-08** at limit **
   8  norm          .10000E-03    6.5538        .60387E-07** at limit **
   9  Prefactor     .10000E-03    21.907       -.17056E-04** at limit **
  10  Prefactor     .10000E-03    44.528        .11918E-04** at limit **
  11  Prefactor     .10000E-03    3.1141       -.70062E-07** at limit **
  12  Prefactor     .10000E-03    62.981       -.34628E-05** at limit **
  13  norm          7.2830        7.9766       -.66131E-06   -.64680E-04
  14  norm          .10000E-03    1.1796       -.63716E-07** at limit **
  15  norm          .10000E-03    .26915       -.10566E-06** at limit **
  16  norm          .10001E-03    18.827        .16422E-04** at limit **
  17  norm          4.8291        2.8908        .38847E-07    .42009E-04
  18  Prefactor     7.7067        35.626       -.57248E-04   -.29816E-04
  19  norm          18.875        15.605       -.25005E-06    .85378E-05
  20  Prefactor     17.918        14.379        .29776E-05    .15949E-03
  21  norm          1.9606        .92640        .12006E-07    .14109E-03
  22  norm          2.2496        4.3287       -.88187E-06   -.65239E-03
  23  Normalizat    1.0706        .16675        .60046E-05   -.14122E-04
  24  Prefactor     .84206        .10326       -.13191E-05    .74046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.2126
  Prefactor  = 11.9912
  Prefactor  = 0.0001
  norm       = 1.09803
  Prefactor  = 0.0001
  norm       = 10.11
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.283
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 4.82909
  Prefactor  = 7.70667
  norm       = 18.8748
  Prefactor  = 17.9178
  norm       = 1.96059
  norm       = 2.24956
  Normalizat = 1.07059
  Prefactor  = 0.842058
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.098     FROM HESSE     STATUS=OK           399 CALLS     3129 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.213        44.822        .54984E-04   -1.4248    
   2  Prefactor     11.991        8.7933        .11569E-03   -1.5015    
   3  Prefactor     .10000E-03    12.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0980        1.4738        .12243E-03   -1.5498    
   5  Prefactor     .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.110        9.7439        .12603E-03   -1.5072    
   7  Prefactor     .10000E-03    1.7204        .11571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1355        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    65.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2830        7.9837        .14861E-03   -1.5168    
  14  norm          .10000E-03    1.2322        .19286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .37197        .91365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    19.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8291        2.8912        .11595E-03   -1.5268    
  18  Prefactor     7.7067        36.129        .14410E-03   -1.5153    
  19  norm          18.875        15.602        .92191E-04   -1.4839    
  20  Prefactor     17.918        14.429        .94612E-04   -1.4861    
  21  norm          1.9606        .92218        .57607E-04   -1.5428    
  22  norm          2.2496        4.3148        .25476E-03   -1.5408    
  23  Normalizat    1.0706        .19302        .27469E-03   -.90702    
  24  Prefactor     .84206        .11966        .19630E-03   -.98196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57837e-09
Minuit parameter uncertainties:
  1  44.8501
  2  8.79426
  3  7.48323e-06
  4  1.47385
  5  1.44128e-05
  6  9.74538
  7  3.02013e-06
  8  2.00625e-05
  9  0.000440828
  10  5.29485e-06
  11  1.11276e-05
  12  0.00111049
  13  7.98484
  14  8.88276e-06
  15  6.74186e-06
  16  0.000638761
  17  2.89126
  18  33.4054
  19  15.6055
  20  14.4317
  21  0.922182
  22  4.31535
  23  0.193143
  24  0.119694
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.829e+00  2.891e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.421e-01  1.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.071e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.72
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.23e-05

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) = 8291.29702393
delta logL = 0.801400120412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8291.21839433
delta logL = 0.88002972104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5146       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3310       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8291.218     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      212 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5146        2.3507        .53911E-02    .12486E-02
   2  alpha         1.3311        .34542        .33732       -.46962E-04
   3  Normalizat    1.0919        .15487        .61569E-01    .14328E-04
   4  Prefactor     .83649        .99812E-01    .44190E-01    .10604E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.51464
  alpha      = 1.33106
  Normalizat = 1.09192
  Prefactor  = 0.836495
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.218     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5146        2.9422        .10905E-03   -1.5333    
   2  alpha         1.3311        .47074        .13648E-01   -.48654    
   3  Normalizat    1.0919        .17752        .27231E-03   -.90012    
   4  Prefactor     .83649        .11452        .19693E-03   -.98397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10919e-09
Minuit parameter uncertainties:
  1  2.94229
  2  0.474372
  3  0.177613
  4  0.114551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306385': 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) = 8291.21839433
delta logL = 0.880029724611

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  3.515e+00  2.942e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.331e+00  4.744e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.365e-01  1.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.092e+00  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.47
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.33 +/- 0.47
Photon Flux (Free Index): 1.51e-08 +/- 1.35e-08
Energy Flux (Free Index): 4.76e-05 +/- 4.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/306385/cmap_HighResolution_371779201_372038401_4FGL_J0811.4+0146_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='4.76e-05', photon_flux_error='2.07e-08', dlogl='8.80e-01', energy_flux='2.05e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-08-29 12:25:35.671441', photon_index_error2='0.47', photon_index2='1.33', ts='12.72', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.70e-05', EG='1.07', time_epoch_completed='1630265135.67', return_code='0', job_id='306385', GAL2='0.84', EG2='1.09', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='1.35e-08', ts2='14.47', photon_index='2.01' WHERE bin_id='511' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:25:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 306385: <4FGL_J0811.4+0146_daily_bin511> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin511> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:10:43 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:10:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:10:45 2021
Terminated at Sun Aug 29 12:25:37 2021
Results reported at Sun Aug 29 12:25:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin511 122.861 1.7756 371779201 372038401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0811.4+0146 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

