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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin375
RA = 122.861, Dec = 1.7756
tmin = 336528001, tmax = 336787201
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='304722', job_status='RUN', time_executed='2021-08-29 12:09:02.295073', time_epoch_executed='1630264142.3' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304722/ft1_4FGL_J0811.4+0146_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304722/ft2_4FGL_J0811.4+0146_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304722/ft1_4FGL_J0811.4+0146_daily_bin375.fits outfile=/scratch/kocevski/304722/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin375.fits ra=122.861 dec=1.7756 rad=12.0 tmin=336528001.0 tmax=336787201.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.42
user 5.55
sys 0.81

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304722/ft1_filtered_4FGL_J0811.4+0146_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/304722/ft2_4FGL_J0811.4+0146_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/304722/ltcube_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.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/304722/ft2_4FGL_J0811.4+0146_daily_bin375.fits
.....................!
real 14.59
user 13.53
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304722/ft1_filtered_4FGL_J0811.4+0146_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/304722/ft2_4FGL_J0811.4+0146_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/304722/ltcube_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.fits outfile=/scratch/kocevski/304722/expmap_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.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/304722/ltcube_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.fits
.....................!
real 195.99
user 185.85
sys 6.53

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/304722/ft1_filtered_4FGL_J0811.4+0146_daily_bin375.fits scfile=/scratch/kocevski/304722/ft2_4FGL_J0811.4+0146_daily_bin375.fits outfile=/scratch/kocevski/304722/cmap_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.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 1.15
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304722/ft1_filtered_4FGL_J0811.4+0146_daily_bin375.fits scfile=/scratch/kocevski/304722/ft2_4FGL_J0811.4+0146_daily_bin375.fits outfile=/scratch/kocevski/304722/cmap_HighResolution_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.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 1.18
user 0.38
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.823       1.0000         .10000E-03   10000.    
     4 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7941       1.0000         .10000E-03   10000.    
     8 'norm      '    .98663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.264       1.0000         .10000E-03   10000.    
    13 'norm      '    24.143       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2552       1.0000         .10000E-03   10000.    
    15 'norm      '    .38201       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0846       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26783E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    39.900       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3994       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96826       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0728       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=   6020.499     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2770 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.722       -.39441E-05** at limit **
   2  Prefactor     20.974        14.761        .24042E-05   -.54803E-04
   3  Prefactor     30.820        39.719       -.74431E-06   -.39508E-04
   4  norm          .10000E-03    1.0335        .28546E-06** at limit **
   5  Prefactor     .10000E-03    26.056        .31884E-05** at limit **
   6  norm          .10000E-03    5.1771        .11862E-07** at limit **
   7  Prefactor     6.7971        5.9626       -.37381E-05   -.29108E-03
   8  norm          .97267        11.989        .28974E-06   -.13655E-03
   9  Prefactor     .10000E-03    4.7871       -.50488E-09** at limit **
  10  Prefactor     37.080        146.02        .17422E-03   -.48096E-05
  11  Prefactor     4.0582        6.0895        .11053E-05   -.14920E-03
  12  Prefactor     51.237        44.788       -.41905E-05   -.76156E-04
  13  norm          24.146        14.029        .14728E-06   -.62367E-04
  14  norm          3.2549        2.3718        .14091E-06   -.22626E-04
  15  norm          .38193        .92528       -.13703E-06   -.13139E-02
  16  norm          8.0802        23.641        .37738E-04    .13860E-04
  17  norm          3.8822        3.8753       -.36578E-06   -.28578E-03
  18  Prefactor     .10009E-03    293.47       -.12972E-04** at limit **
  19  norm          39.898        29.319        .99002E-06    .66563E-05
  20  Prefactor     .10000E-03    5.9799       -.11328E-06** at limit **
  21  norm          1.3996        1.2934        .51491E-07   -.78758E-03
  22  norm          .10000E-03    10.165        .24766E-06** at limit **
  23  Normalizat    .96769        .23033       -.71430E-05    .55492E-04
  24  Prefactor     1.0732        .13997        .70297E-06   -.31555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.9741
  Prefactor  = 30.8197
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.7971
  norm       = 0.972669
  Prefactor  = 0.0001
  Prefactor  = 37.0801
  Prefactor  = 4.05815
  Prefactor  = 51.2369
  norm       = 24.1464
  norm       = 3.25493
  norm       = 0.381929
  norm       = 8.08019
  norm       = 3.88217
  Prefactor  = 0.000100088
  norm       = 39.8982
  Prefactor  = 0.0001
  norm       = 1.39964
  norm       = 0.0001
  Normalizat = 0.967685
  Prefactor  = 1.07317
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.499     FROM HESSE     STATUS=OK           405 CALLS     3175 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.974        14.795        .87450E-04   -1.4792    
   3  Prefactor     30.820        39.513        .72169E-04   -1.4597    
   4  norm          .10000E-03    3.3760        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1792        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7971        5.9629        .15393E-03   -1.5186    
   8  norm          .97267        65.731        .51147E-02   -1.5511    
   9  Prefactor     .10000E-03    4.7913        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.080        145.65        .32960E-03   -1.4489    
  11  Prefactor     4.0582        6.0740        .20015E-03   -1.5305    
  12  Prefactor     51.237        44.766        .56013E-04   -1.4275    
  13  norm          24.146        14.041        .81523E-04   -1.4725    
  14  norm          3.2549        2.3554        .97776E-04   -1.5347    
  15  norm          .38193        .81750        .10923E-02   -1.5584    
  16  norm          8.0802        23.546        .14101E-03   -1.5139    
  17  norm          3.8822        3.8664        .14691E-03   -1.5314    
  18  Prefactor     .10009E-03    306.14        .36625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          39.898        29.276        .63456E-04   -1.4444    
  20  Prefactor     .10000E-03    6.0017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3996        1.2753        .79793E-04   -1.5471    
  22  norm          .10000E-03    10.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96769        .25960        .33381E-03   -.94121    
  24  Prefactor     1.0732        .15838        .20097E-03   -.90329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44416e-09
Minuit parameter uncertainties:
  1  8.03339e-06
  2  14.7972
  3  39.5469
  4  4.72687e-05
  5  3.41289e-05
  6  3.15327e-06
  7  5.96342
  8  16.0093
  9  7.21916e-06
  10  147.084
  11  6.07496
  12  44.7958
  13  14.0432
  14  2.35546
  15  0.81752
  16  23.5734
  17  3.86664
  18  0.0104625
  19  29.2866
  20  2.33469e-06
  21  1.27537
  22  7.44364e-05
  23  0.259937
  24  0.158448
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  3.882e+00  3.867e+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.073e+00  1.584e-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:  9.677e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.64e-05

TS (Fixed Index): 1.79
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304722/likelihoodResults_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.txt

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) = 6020.49322577
delta logL = 0.00573527023516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6020.49308438
delta logL = 0.00587665865442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8684       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0951       1.0000          .0000       5.0000    
     3 'Normalizat'    .96441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0742       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=   6020.493     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8610        158.52        .51292E-02    .19900E-03
   2  alpha         2.0930        3.3412        .41855        .11628E-04
   3  Normalizat    .96462        .19493        .75537E-01   -.15245E-03
   4  Prefactor     1.0741        .72883E-01    .38663E-01   -.35453E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86103
  alpha      = 2.093
  Normalizat = 0.964617
  Prefactor  = 1.07411
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.493     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8610        3.8401        .14509E-03   -1.5315    
   2  alpha         2.0930        .80784        .19982E-01   -.16353    
   3  Normalizat    .96462        .23984        .33428E-03   -.94225    
   4  Prefactor     1.0741        .15113        .20089E-03   -.90298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13077e-10
Minuit parameter uncertainties:
  1  3.84039
  2  0.823023
  3  0.240108
  4  0.151189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304722': 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) = 6020.49307837
delta logL = 0.0058826653576

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  3.861e+00  3.840e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.093e+00  8.230e-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:  1.074e+00  1.512e-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:  9.646e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.09 +/- 0.82
Photon Flux (Free Index): 3.08e-08 +/- 4.04e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.73e-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/304722/cmap_HighResolution_336528001_336787201_4FGL_J0811.4+0146_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-05', comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='1.56e-05', photon_flux_error='2.77e-08', dlogl='5.88e-03', energy_flux='1.65e-05', photon_flux2='3.08e-08', job_status='DONE', time_completed='2021-08-29 12:20:01.262798', photon_index_error2='0.82', photon_index2='2.09', ts='1.79', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.89e-08', energy_flux_error2='1.73e-05', EG='0.97', time_epoch_completed='1630264801.26', return_code='0', job_id='304722', GAL2='1.07', EG2='0.96', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.04e-08', ts2='1.80', photon_index='2.01' WHERE bin_id='375' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:20:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 304722: <4FGL_J0811.4+0146_daily_bin375> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin375> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:33 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05:35 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:35 2021
Terminated at Sun Aug 29 12:20:02 2021
Results reported at Sun Aug 29 12:20:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin375 122.861 1.7756 336528001 336787201 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 :                                   661.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

