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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin341
RA = 122.861, Dec = 1.7756
tmin = 327715201, tmax = 327974401
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='304671', job_status='RUN', time_executed='2021-08-29 12:06:35.895934', time_epoch_executed='1630263995.9' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304671

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304671/ft1_4FGL_J0811.4+0146_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304671/ft1_4FGL_J0811.4+0146_daily_bin341.fits outfile=/scratch/kocevski/304671/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin341.fits ra=122.861 dec=1.7756 rad=12.0 tmin=327715201.0 tmax=327974401.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 6.68
user 3.10
sys 3.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.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/304671/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.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 3.84
user 0.34
sys 3.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.fits" evtable="EVENTS" scfile=/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits sctable="SC_DATA" outfile=/scratch/kocevski/304671/ltcube_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.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/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits
.....................!
real 15.65
user 11.45
sys 4.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/304671/ltcube_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.fits outfile=/scratch/kocevski/304671/expmap_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.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/304671/ltcube_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.fits
.....................!
real 193.62
user 184.84
sys 8.35

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/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.fits scfile=/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits outfile=/scratch/kocevski/304671/cmap_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.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 3.90
user 0.37
sys 3.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.fits scfile=/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits outfile=/scratch/kocevski/304671/cmap_HighResolution_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.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 3.51
user 0.38
sys 3.12

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.fits', '/scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits', expMap='/scratch/kocevski/304671/expmap_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.fits', expCube='/scratch/kocevski/304671/ltcube_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304671/Model_4FGL_J0811.4+0146_daily_bin341.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/304671/ft1_filtered_4FGL_J0811.4+0146_daily_bin341.fits
Spacecraft file(s): /scratch/kocevski/304671/ft2_4FGL_J0811.4+0146_daily_bin341.fits
Exposure map: /scratch/kocevski/304671/expmap_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.fits
Exposure cube: /scratch/kocevski/304671/ltcube_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304671/Model_4FGL_J0811.4+0146_daily_bin341.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) = 6319.57856741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23575E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0898       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.073       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15423E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2778       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3658       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8774       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8695       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0668       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3288       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4876       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79880       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=   6319.567     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2733 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    175.71       -.13072E-05** at limit **
   2  Prefactor     1.0868        1.3276        .54639E-07   -.22928E-03
   3  Prefactor     54.061        46.772       -.64668E-05    .36738E-07
   4  norm          2.0291        2.2389        .20219E-06    .10612E-03
   5  Prefactor     .10000E-03    13.989        .33276E-06** at limit **
   6  norm          11.021        14.838       -.19955E-06    .41313E-05
   7  Prefactor     .10000E-03    5.5418        .10635E-05** at limit **
   8  norm          .10000E-03    9.3864       -.18386E-05** at limit **
   9  Prefactor     .10000E-03    5.5785       -.64389E-06** at limit **
  10  Prefactor     .10000E-03    87.742       -.51727E-06** at limit **
  11  Prefactor     .10000E-03    8.2596       -.23859E-05** at limit **
  12  Prefactor     4.2790        33.268       -.77536E-06   -.10037E-04
  13  norm          .10000E-03    6.0227       -.49241E-06** at limit **
  14  norm          8.3653        3.4944       -.35526E-07    .12574E-03
  15  norm          1.8775        1.3059       -.41563E-07    .31245E-04
  16  norm          .10000E-03    8.6991        .41199E-05** at limit **
  17  norm          7.8691        4.7078       -.88672E-06   -.15355E-05
  18  Prefactor     .10000E-03    18.821       -.23722E-06** at limit **
  19  norm          10.518        19.494       -.75979E-07   -.42283E-05
  20  Prefactor     .10008E-03    13.485        .16512E-06** at limit **
  21  norm          2.0668        1.1929       -.52955E-08    .26757E-04
  22  norm          3.3289        4.8920       -.20171E-05   -.13357E-04
  23  Normalizat    1.4876        .21835        .63204E-06   -.16586E-04
  24  Prefactor     .79880        .13401        .61752E-06    .98913E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.08683
  Prefactor  = 54.0611
  norm       = 2.02914
  Prefactor  = 0.0001
  norm       = 11.0208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.279
  norm       = 0.0001
  norm       = 8.36525
  norm       = 1.87749
  norm       = 0.0001
  norm       = 7.86906
  Prefactor  = 0.0001
  norm       = 10.5184
  Prefactor  = 0.000100075
  norm       = 2.06685
  norm       = 3.32887
  Normalizat = 1.48755
  Prefactor  = 0.798802
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.567     FROM HESSE     STATUS=OK           403 CALLS     3136 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    177.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0868        22.673        .22921E-02   -1.5499    
   3  Prefactor     54.061        46.748        .54546E-04   -1.4236    
   4  norm          2.0291        2.2191        .11610E-03   -1.5423    
   5  Prefactor     .10000E-03    14.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.021        14.912        .12068E-03   -1.5044    
   7  Prefactor     .10000E-03    5.7558        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.4229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2790        33.282        .19479E-03   -1.5294    
  13  norm          .10000E-03    6.0456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3653        3.4895        .91309E-04   -1.5129    
  15  norm          1.8775        1.2978        .71637E-04   -1.5434    
  16  norm          .10000E-03    8.7092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8691        4.7059        .12846E-03   -1.5147    
  18  Prefactor     .10000E-03    18.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.518        19.517        .61770E-03   -1.5059    
  20  Prefactor     .10008E-03    114.56        .55114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0668        1.1981        .62948E-04   -1.5420    
  22  norm          3.3289        4.8851        .20740E-03   -1.5343    
  23  Normalizat    1.4876        .24681        .28214E-03   -.78129    
  24  Prefactor     .79880        .15730        .22937E-03   -.99772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03754e-09
Minuit parameter uncertainties:
  1  0.000292633
  2  9.93182
  3  46.7794
  4  2.21915
  5  5.26271e-06
  6  14.917
  7  2.05873e-05
  8  1.41605e-06
  9  2.17113e-06
  10  1.42146e-05
  11  5.6868e-06
  12  23.8856
  13  2.1801e-06
  14  3.48956
  15  1.29778
  16  2.99565e-06
  17  4.70615
  18  6.92535e-06
  19  19.5289
  20  0.00589124
  21  1.19808
  22  4.88569
  23  0.24701
  24  0.157391
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.869e+00  4.706e+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:  7.988e-01  1.574e-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.488e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.10
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 2.00e-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) = 6319.07053566
delta logL = 0.496533960421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6319.03067566
delta logL = 0.536393961399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4356       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5439       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79522       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=   6319.031     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4346        5.0563       -.11035E-05   -.19984E-03
   2  alpha         1.5437        .44028       -.19428E-04    .15818E-04
   3  Normalizat    1.5051        .20839        .60379E-06    .13616E-03
   4  Prefactor     .79520        .12933        .30445E-07    .13937E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.43458
  alpha      = 1.54369
  Normalizat = 1.50508
  Prefactor  = 0.795203
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.031     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4346        4.9987        .12884E-03   -1.5163    
   2  alpha         1.5437        .43481        .12084E-01   -.39253    
   3  Normalizat    1.5051        .23662        .28079E-03   -.77636    
   4  Prefactor     .79520        .14691        .22986E-03   -.99905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85693e-11
Minuit parameter uncertainties:
  1  4.99896
  2  0.437423
  3  0.236795
  4  0.146981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304671': 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) = 6319.03067555
delta logL = 0.536394069934

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.435e+00  4.999e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.544e+00  4.374e-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:  7.952e-01  1.470e-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.505e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.16
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.54 +/- 0.44
Photon Flux (Free Index): 3.49e-08 +/- 2.85e-08
Energy Flux (Free Index): 6.06e-05 +/- 5.38e-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/304671/cmap_HighResolution_327715201_327974401_4FGL_J0811.4+0146_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='6.06e-05', photon_flux_error='3.38e-08', dlogl='5.36e-01', energy_flux='3.35e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-08-29 12:17:07.488621', photon_index_error2='0.44', photon_index2='1.54', ts='13.10', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='5.38e-05', EG='1.49', time_epoch_completed='1630264627.49', return_code='0', job_id='304671', GAL2='0.80', EG2='1.51', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='2.85e-08', ts2='14.16', photon_index='2.01' WHERE bin_id='341' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:17:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 304671: <4FGL_J0811.4+0146_daily_bin341> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin341> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:28 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05:31 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:05:31 2021
Terminated at Sun Aug 29 12:17:09 2021
Results reported at Sun Aug 29 12:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin341 122.861 1.7756 327715201 327974401 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 :                                   683.51 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             352.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            701 sec.

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

