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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin954
RA = 122.861, Dec = 1.7756
tmin = 486604801, tmax = 486864001
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='309670', job_status='RUN', time_executed='2021-08-29 12:24:09.649154', time_epoch_executed='1630265049.65' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309670/ft1_4FGL_J0811.4+0146_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309670/ft2_4FGL_J0811.4+0146_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309670/ft1_4FGL_J0811.4+0146_daily_bin954.fits outfile=/scratch/kocevski/309670/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin954.fits ra=122.861 dec=1.7756 rad=12.0 tmin=486604801.0 tmax=486864001.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.59
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309670/ft1_filtered_4FGL_J0811.4+0146_daily_bin954.fits" evtable="EVENTS" scfile=/scratch/kocevski/309670/ft2_4FGL_J0811.4+0146_daily_bin954.fits sctable="SC_DATA" outfile=/scratch/kocevski/309670/ltcube_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.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/309670/ft2_4FGL_J0811.4+0146_daily_bin954.fits
.....................!
real 11.73
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309670/ft1_filtered_4FGL_J0811.4+0146_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/309670/ft2_4FGL_J0811.4+0146_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/309670/ltcube_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.fits outfile=/scratch/kocevski/309670/expmap_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.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/309670/ltcube_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.fits
.....................!
real 191.92
user 186.37
sys 5.20

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/309670/ft1_filtered_4FGL_J0811.4+0146_daily_bin954.fits scfile=/scratch/kocevski/309670/ft2_4FGL_J0811.4+0146_daily_bin954.fits outfile=/scratch/kocevski/309670/cmap_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309670/ft1_filtered_4FGL_J0811.4+0146_daily_bin954.fits scfile=/scratch/kocevski/309670/ft2_4FGL_J0811.4+0146_daily_bin954.fits outfile=/scratch/kocevski/309670/cmap_HighResolution_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4724       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.031       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0548       1.0000         .10000E-03   10000.    
     8 'norm      '    51.932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0910       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0583       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1771       1.0000         .10000E-03   10000.    
    16 'norm      '    28.398       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.860       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7319       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0839       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79833       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=   7562.200     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2708 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.52       -.25360E-05** at limit **
   2  Prefactor     8.7442        7.5043       -.11329E-05   -.20230E-03
   3  Prefactor     8.4611        42.034       -.10958E-04   -.75162E-04
   4  norm          4.5554        2.0222        .13263E-06   -.24238E-02
   5  Prefactor     10.031        21.126       -.24450E-06   -.14458E-03
   6  norm          .10000E-03    5.0078       -.36351E-07** at limit **
   7  Prefactor     5.0563        3.1431        .73025E-06   -.33544E-02
   8  norm          51.941        25.211        .37255E-06   -.63206E-04
   9  Prefactor     4.0825        14.991       -.75333E-05   -.22851E-03
  10  Prefactor     .10000E-03    76.828        .20705E-05** at limit **
  11  Prefactor     .10000E-03    4.1838        .17439E-06** at limit **
  12  Prefactor     .10000E-03    14.262       -.72655E-07** at limit **
  13  norm          4.0579        5.1288       -.27553E-06   -.10813E-03
  14  norm          .10000E-03    .51913       -.38743E-07** at limit **
  15  norm          3.1771        1.0461       -.29504E-07    .53966E-04
  16  norm          28.396        19.429       -.77396E-07    .85912E-05
  17  norm          8.1135        3.6711       -.18549E-07    .26660E-04
  18  Prefactor     10.861        17.773       -.10809E-06   -.15368E-05
  19  norm          8.9231        9.9847       -.11091E-06   -.25982E-05
  20  Prefactor     .10000E-03    17.280       -.87450E-07** at limit **
  21  norm          .10000E-03    .31001        .47578E-08** at limit **
  22  norm          1.7323        3.8518       -.14418E-06   -.24943E-03
  23  Normalizat    1.0838        .17291        .45379E-06    .52225E-04
  24  Prefactor     .79835        .10977        .60245E-06    .45286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.74421
  Prefactor  = 8.46112
  norm       = 4.55539
  Prefactor  = 10.0306
  norm       = 0.0001
  Prefactor  = 5.0563
  norm       = 51.9414
  Prefactor  = 4.08247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05787
  norm       = 0.0001
  norm       = 3.17706
  norm       = 28.3963
  norm       = 8.11349
  Prefactor  = 10.8608
  norm       = 8.92307
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.73233
  Normalizat = 1.08382
  Prefactor  = 0.798347
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.200     FROM HESSE     STATUS=OK           405 CALLS     3113 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7442        7.5129        .13554E-03   -1.5116    
   3  Prefactor     8.4611        42.194        .13772E-03   -1.5126    
   4  norm          4.5554        2.0876        .39865E-03   -1.5281    
   5  Prefactor     10.031        21.285        .63258E-03   -1.5074    
   6  norm          .10000E-03    5.0224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0563        5.3582        .89423E-03   -1.5258    
   8  norm          51.941        25.086        .55654E-04   -1.4265    
   9  Prefactor     4.0825        14.953        .19932E-03   -1.5304    
  10  Prefactor     .10000E-03    76.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2405        .17364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0579        5.1263        .20015E-03   -1.5305    
  14  norm          .10000E-03    .52224        .61159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1771        1.0466        .22736E-04   -1.5351    
  16  norm          28.396        19.443        .75180E-04   -1.4642    
  17  norm          8.1135        3.6725        .10826E-03   -1.5138    
  18  Prefactor     10.861        17.772        .12157E-03   -1.5049    
  19  norm          8.9231        9.9854        .13418E-03   -1.5110    
  20  Prefactor     .10000E-03    17.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .46139        .93646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7323        3.8318        .24793E-03   -1.5445    
  23  Normalizat    1.0838        .19949        .28165E-03   -.90273    
  24  Prefactor     .79835        .12613        .20402E-03   -.99789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22869e-09
Minuit parameter uncertainties:
  1  7.15668e-05
  2  7.51373
  3  37.832
  4  2.08762
  5  21.3008
  6  4.25346e-06
  7  5.35871
  8  25.0907
  9  14.9663
  10  0.000243047
  11  1.88867e-06
  12  8.471e-07
  13  5.12682
  14  8.96007e-07
  15  1.04665
  16  19.4473
  17  3.67259
  18  17.7804
  19  9.98721
  20  1.99373e-05
  21  4.7017e-06
  22  3.83231
  23  0.199628
  24  0.126177
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  8.113e+00  3.673e+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.983e-01  1.262e-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.084e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.75
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 5.82e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 1.56e-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) = 7562.08429645
delta logL = 0.115933001703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7562.08110342
delta logL = 0.11912602937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2893       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8020       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79377       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=   7562.081     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2893        6.0309        .34811E-02    .50656E-02
   2  alpha         1.8022        .55705        .32167       -.36652E-04
   3  Normalizat    1.0967        .17201        .63355E-01   -.21996E-04
   4  Prefactor     .79368        .10767        .43636E-01    .21821E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.28932
  alpha      = 1.80215
  Normalizat = 1.0967
  Prefactor  = 0.793684
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.081     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2893        3.8025        .11151E-03   -1.5132    
   2  alpha         1.8022        .40531        .12286E-01   -.28290    
   3  Normalizat    1.0967        .19482        .28023E-03   -.89858    
   4  Prefactor     .79368        .12279        .20455E-03   -.99962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65519e-09
Minuit parameter uncertainties:
  1  3.80258
  2  0.407266
  3  0.194947
  4  0.122834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309670': 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) = 7562.08110296
delta logL = 0.119126492456

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  8.289e+00  3.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.802e+00  4.073e-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.937e-01  1.228e-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.097e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.97
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.80 +/- 0.41
Photon Flux (Free Index): 4.78e-08 +/- 2.94e-08
Energy Flux (Free Index): 4.32e-05 +/- 3.00e-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/309670/cmap_HighResolution_486604801_486864001_4FGL_J0811.4+0146_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.82e-08', energy_flux2='4.32e-05', photon_flux_error='2.63e-08', dlogl='1.19e-01', energy_flux='3.45e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-08-29 12:34:50.715380', photon_index_error2='0.41', photon_index2='1.80', ts='14.75', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='1.08', time_epoch_completed='1630265690.72', return_code='0', job_id='309670', GAL2='0.79', EG2='1.10', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='2.94e-08', ts2='14.97', photon_index='2.01' WHERE bin_id='954' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:34:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 309670: <4FGL_J0811.4+0146_daily_bin954> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin954 122.861 1.7756 486604801 486864001 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 :                                   641.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

