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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin772
RA = 122.861, Dec = 1.7756
tmin = 439430401, tmax = 439689601
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='309341', job_status='RUN', time_executed='2021-08-29 12:23:44.825913', time_epoch_executed='1630265024.83' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309341/ft1_4FGL_J0811.4+0146_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309341/ft2_4FGL_J0811.4+0146_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309341/ft1_4FGL_J0811.4+0146_daily_bin772.fits outfile=/scratch/kocevski/309341/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin772.fits ra=122.861 dec=1.7756 rad=12.0 tmin=439430401.0 tmax=439689601.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.33
user 4.64
sys 0.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309341/ft2_4FGL_J0811.4+0146_daily_bin772.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/309341/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin772.fits evtable="EVENTS" outfile="/scratch/kocevski/309341/ft1_filtered_4FGL_J0811.4+0146_daily_bin772.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 1.17
user 0.33
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309341/ft1_filtered_4FGL_J0811.4+0146_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/309341/ft2_4FGL_J0811.4+0146_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/309341/ltcube_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.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/309341/ft2_4FGL_J0811.4+0146_daily_bin772.fits
.....................!
real 12.25
user 11.28
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309341/ft1_filtered_4FGL_J0811.4+0146_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/309341/ft2_4FGL_J0811.4+0146_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/309341/ltcube_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.fits outfile=/scratch/kocevski/309341/expmap_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.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/309341/ltcube_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.fits
.....................!
real 191.53
user 184.79
sys 6.06

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/309341/ft1_filtered_4FGL_J0811.4+0146_daily_bin772.fits scfile=/scratch/kocevski/309341/ft2_4FGL_J0811.4+0146_daily_bin772.fits outfile=/scratch/kocevski/309341/cmap_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.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 0.97
user 0.38
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309341/ft1_filtered_4FGL_J0811.4+0146_daily_bin772.fits scfile=/scratch/kocevski/309341/ft2_4FGL_J0811.4+0146_daily_bin772.fits outfile=/scratch/kocevski/309341/cmap_HighResolution_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.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 0.96
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67314E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6140       1.0000         .10000E-03   10000.    
     8 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12801E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    176.43       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4138       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2300       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8297       1.0000         .10000E-03   10000.    
    16 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.176       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .97095       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5872       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83470       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1121       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6581.160     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     3515 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8341        35.982        .15351E-03   -.28143E-05
   2  Prefactor     .10000E-03    5.3718        .18142E-02** at limit **
   3  Prefactor     .10000E-03    18.012        .18142E-02** at limit **
   4  norm          17.020        3.3783        .62865E-04    .35626E-04
   5  Prefactor     .10000E-03    29.045        .13155    ** at limit **
   6  norm          .10000E-03    5.3184        .18142E-02** at limit **
   7  Prefactor     4.6121        5.0171        .17699E-03    .77723E-05
   8  norm          .10000E-03    29.948        .18142E-02** at limit **
   9  Prefactor     .10000E-03    58.319        .47614E-02** at limit **
  10  Prefactor     176.41        213.93        .15192E-03    .26192E-05
  11  Prefactor     5.4141        6.3777        .17271E-03    .62536E-04
  12  Prefactor     .10000E-03    17.015        .18142E-02** at limit **
  13  norm          7.2289        12.770        .14918E-03    .40544E-04
  14  norm          .10000E-03    1.5828        .19573E-03** at limit **
  15  norm          2.8300        1.2581        .58496E-04    .17317E-03
  16  norm          .10000E-03    6.9683        .18142E-02** at limit **
  17  norm          5.3443        4.1417        .13939E-03   -.93632E-04
  18  Prefactor     24.165        29.016        .81468E-04    .49540E-04
  19  norm          .10000E-03    7.1166        .18142E-02** at limit **
  20  Prefactor     .10000E-03    14.623        .18142E-02** at limit **
  21  norm          .97157        .91781        .73751E-04   -.10451E-03
  22  norm          6.5882        9.3683        .15636E-03    .76854E-04
  23  Normalizat    .83479        .23690        .34573E-03   -.86811E-05
  24  Prefactor     1.1119        .15496        .20317E-03    .43937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.0196
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.61212
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 176.412
  Prefactor  = 5.41411
  Prefactor  = 0.0001
  norm       = 7.22887
  norm       = 0.0001
  norm       = 2.83004
  norm       = 0.0001
  norm       = 5.34427
  Prefactor  = 24.1646
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.971571
  norm       = 6.58819
  Normalizat = 0.83479
  Prefactor  = 1.11193
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.160     FROM HESSE     STATUS=OK           383 CALLS     3898 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8341        35.983        .61402E-05   -1.5185    
   2  Prefactor     .10000E-03    5.3727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.020        3.3783        .25146E-05   -1.4883    
   5  Prefactor     .10000E-03    28.429        .13386       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6121        5.0151        .70795E-05   -1.5278    
   8  norm          .10000E-03    29.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.239        .95227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     176.41        213.99        .60767E-05   -1.3044    
  11  Prefactor     5.4141        6.3775        .69082E-05   -1.5243    
  12  Prefactor     .10000E-03    17.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2289        12.768        .59670E-05   -1.5170    
  14  norm          .10000E-03    1.5828        .39146E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8300        1.2581        .23398E-05   -1.5371    
  16  norm          .10000E-03    6.9685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3443        4.1415        .55755E-05   -1.5246    
  18  Prefactor     24.165        29.012        .32587E-05   -1.4724    
  19  norm          .10000E-03    7.1167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .97157        .91777        .29501E-05   -1.5511    
  22  norm          6.5882        9.3679        .62543E-05   -1.5195    
  23  Normalizat    .83479        .23696        .13829E-04   -.98791    
  24  Prefactor     1.1119        .15505        .40634E-04   -.89086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93987e-11
Minuit parameter uncertainties:
  1  31.3926
  2  3.1636e-06
  3  7.12083e-06
  4  3.37837
  5  0.000310429
  6  5.5951e-06
  7  5.01553
  8  7.72624e-05
  9  6.63172e-05
  10  214.942
  11  6.37828
  12  5.35982e-06
  13  12.7726
  14  1.86611e-06
  15  1.25809
  16  5.8621e-06
  17  4.14172
  18  29.0284
  19  1.81844e-05
  20  6.87428e-05
  21  0.917779
  22  9.36999
  23  0.23725
  24  0.15511
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.344e+00  4.142e+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:  1.112e+00  1.551e-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:  8.348e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.83e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.76e-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) = 6581.10435215
delta logL = 0.0559706925851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6581.08299857
delta logL = 0.0773242679834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0660       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5942       1.0000          .0000       5.0000    
     3 'Normalizat'    .85356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1084       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=   6581.083     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0556        3.7052        .49988E-02    .56237E-05
   2  alpha         1.5924        .52459        .45229       -.33454E-04
   3  Normalizat    .85314        .20131        .77370E-01    .42622E-04
   4  Prefactor     1.1085        .13451        .37278E-01    .49994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0556
  alpha      = 1.5924
  Normalizat = 0.853137
  Prefactor  = 1.10845
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.083     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0556        6.3866        .14216E-03   -1.5305    
   2  alpha         1.5924        1.1179        .17430E-01   -.37153    
   3  Normalizat    .85314        .22666        .34247E-03   -.98127    
   4  Prefactor     1.1085        .15049        .20352E-03   -.89197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44378e-09
Minuit parameter uncertainties:
  1  6.38768
  2  1.16602
  3  0.226916
  4  0.150548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309341': 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) = 6581.08299288
delta logL = 0.0773299624498

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.056e+00  6.388e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.592e+00  1.166e+00  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:  1.108e+00  1.505e-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:  8.531e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.59
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.59 +/- 1.17
Photon Flux (Free Index): 1.96e-08 +/- 4.46e-08
Energy Flux (Free Index): 2.99e-05 +/- 4.02e-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/309341/cmap_HighResolution_439430401_439689601_4FGL_J0811.4+0146_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.83e-08', energy_flux2='2.99e-05', photon_flux_error='2.97e-08', dlogl='7.73e-02', energy_flux='2.27e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-08-29 12:34:43.016767', photon_index_error2='1.17', photon_index2='1.59', ts='4.45', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='0.83', time_epoch_completed='1630265683.02', return_code='0', job_id='309341', GAL2='1.11', EG2='0.85', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='4.46e-08', ts2='4.59', photon_index='2.01' WHERE bin_id='772' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:34:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 309341: <4FGL_J0811.4+0146_daily_bin772> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin772> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:18 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:20 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:20:20 2021
Terminated at Sun Aug 29 12:34:43 2021
Results reported at Sun Aug 29 12:34:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin772 122.861 1.7756 439430401 439689601 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 :                                   663.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

