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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin424
RA = 122.861, Dec = 1.7756
tmin = 349228801, tmax = 349488001
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='306247', job_status='RUN', time_executed='2021-08-29 12:13:14.516643', time_epoch_executed='1630264394.52' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306247

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306247/ft1_4FGL_J0811.4+0146_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306247/ft2_4FGL_J0811.4+0146_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306247/ft1_4FGL_J0811.4+0146_daily_bin424.fits outfile=/scratch/kocevski/306247/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin424.fits ra=122.861 dec=1.7756 rad=12.0 tmin=349228801.0 tmax=349488001.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.92
user 3.20
sys 2.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306247/ft2_4FGL_J0811.4+0146_daily_bin424.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/306247/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/306247/ft1_filtered_4FGL_J0811.4+0146_daily_bin424.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.95
user 0.32
sys 2.59

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306247/ft1_filtered_4FGL_J0811.4+0146_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/306247/ft2_4FGL_J0811.4+0146_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/306247/ltcube_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.fits outfile=/scratch/kocevski/306247/expmap_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.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/306247/ltcube_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.fits
.....................!
real 195.03
user 185.78
sys 8.87

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/306247/ft1_filtered_4FGL_J0811.4+0146_daily_bin424.fits scfile=/scratch/kocevski/306247/ft2_4FGL_J0811.4+0146_daily_bin424.fits outfile=/scratch/kocevski/306247/cmap_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.91
user 0.36
sys 2.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306247/ft1_filtered_4FGL_J0811.4+0146_daily_bin424.fits scfile=/scratch/kocevski/306247/ft2_4FGL_J0811.4+0146_daily_bin424.fits outfile=/scratch/kocevski/306247/cmap_HighResolution_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.98
user 0.38
sys 2.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6135       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11522E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2558       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .62075E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51903E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3750       1.0000         .10000E-03   10000.    
    13 'norm      '    11.686       1.0000         .10000E-03   10000.    
    14 'norm      '    .22227       1.0000         .10000E-03   10000.    
    15 'norm      '    .19950       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4675       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    32.427       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7267       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6674       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6604       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2061       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93785       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=   8273.985     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2390 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.808        .12771E-06** at limit **
   2  Prefactor     7.6225        7.2477        .14482E-06   -.19340E-04
   3  Prefactor     .10000E-03    35.449        .14868E-06** at limit **
   4  norm          3.6134        1.9053        .11679E-06   -.61027E-04
   5  Prefactor     .10000E-03    33.926        .38143E-06** at limit **
   6  norm          3.2559        6.4386        .27876E-06   -.16754E-04
   7  Prefactor     .10000E-03    2.0742       -.27278E-06** at limit **
   8  norm          .10000E-03    16.753       -.62067E-06** at limit **
   9  Prefactor     9.2302        12.292        .22622E-05   -.39136E-05
  10  Prefactor     .10007E-03    529.11       -.78398E-05** at limit **
  11  Prefactor     .10000E-03    4.0303       -.29712E-07** at limit **
  12  Prefactor     8.3730        18.983       -.76228E-06   -.22940E-04
  13  norm          11.689        9.2038        .95067E-06   -.11674E-03
  14  norm          .22200        1.0934        .36281E-06   -.48816E-03
  15  norm          .20000        .48203        .21563E-06    .51789E-03
  16  norm          6.4660        13.789        .38052E-05   -.65357E-04
  17  norm          1.3703        2.9648        .62721E-06   -.61334E-04
  18  Prefactor     .10000E-03    20.341       -.12152E-06** at limit **
  19  norm          32.398        19.657       -.19878E-06   -.21828E-03
  20  Prefactor     9.7440        13.799        .22848E-06   -.76046E-06
  21  norm          1.6673        1.0058        .57940E-07   -.97084E-04
  22  norm          4.6592        7.2259        .47651E-06   -.84697E-05
  23  Normalizat    1.2061        .18064       -.13998E-05   -.31541E-04
  24  Prefactor     .93788        .11086       -.23242E-06   -.14584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.62255
  Prefactor  = 0.0001
  norm       = 3.61342
  Prefactor  = 0.0001
  norm       = 3.25591
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.23021
  Prefactor  = 0.00010007
  Prefactor  = 0.0001
  Prefactor  = 8.37297
  norm       = 11.6895
  norm       = 0.221997
  norm       = 0.199995
  norm       = 6.46603
  norm       = 1.37029
  Prefactor  = 0.0001
  norm       = 32.3979
  Prefactor  = 9.74401
  norm       = 1.6673
  norm       = 4.65924
  Normalizat = 1.20609
  Prefactor  = 0.93788
 **********
 **   18 **HESSE 
 **********

 FCN=   8273.985     FROM HESSE     STATUS=OK           409 CALLS     2799 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6225        7.2547        .14525E-03   -1.5156    
   3  Prefactor     .10000E-03    35.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6134        1.9013        .86208E-04   -1.5328    
   5  Prefactor     .10000E-03    34.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2559        6.4244        .22445E-03   -1.5347    
   7  Prefactor     .10000E-03    8.8477        .24881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2302        12.180        .65938E-03   -1.5100    
  10  Prefactor     .10007E-03    540.41        .21139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0590        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3730        18.971        .13853E-03   -1.5129    
  13  norm          11.689        9.1664        .58595E-03   -1.5024    
  14  norm          .22200        1.9946        .17873E-02   -1.5614    
  15  norm          .20000        .41954        .94695E-03   -1.5619    
  16  norm          6.4660        13.700        .78907E-03   -1.5199    
  17  norm          1.3703        2.9273        .22117E-03   -1.5474    
  18  Prefactor     .10000E-03    20.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          32.398        19.717        .70366E-04   -1.4569    
  20  Prefactor     9.7440        13.831        .12849E-03   -1.5084    
  21  norm          1.6673        .99672        .67478E-04   -1.5450    
  22  norm          4.6592        7.2128        .18642E-03   -1.5276    
  23  Normalizat    1.2061        .20421        .29011E-03   -.86415    
  24  Prefactor     .93788        .12687        .20580E-03   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83471e-08
Minuit parameter uncertainties:
  1  4.14838e-05
  2  7.25556
  3  2.32016e-05
  4  1.90138
  5  0.000120665
  6  6.42572
  7  7.66192e-05
  8  0.000139011
  9  12.1828
  10  0.0124213
  11  2.50961e-06
  12  18.9848
  13  9.1675
  14  1.33062
  15  0.419547
  16  13.7063
  17  2.92756
  18  3.64844e-05
  19  19.7206
  20  13.8356
  21  0.996732
  22  7.21418
  23  0.204345
  24  0.126913
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.370e+00  2.928e+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:  9.379e-01  1.269e-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.206e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/306247/likelihoodResults_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.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) = 8273.9463553
delta logL = 0.0388575873021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8273.94577601
delta logL = 0.0394368739708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4124       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3423       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93963       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=   8273.946     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4176        2.8812        .19465E-03   -.54901E-05
   2  alpha         2.3462        1.2201        .31388E-01    .99908E-04
   3  Normalizat    1.1998        .19568        .29076E-03   -.43010E-05
   4  Prefactor     .93953        .12362        .20563E-03   -.91775E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41758
  alpha      = 2.34622
  Normalizat = 1.19978
  Prefactor  = 0.939533
 **********
 **   18 **HESSE 
 **********

 FCN=   8273.946     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4176        2.7797        .77860E-05   -1.5470    
   2  alpha         2.3462        1.1807        .62775E-02   -.61550E-01
   3  Normalizat    1.1998        .19577        .11630E-04   -.86610    
   4  Prefactor     .93953        .12367        .82254E-05   -.94773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88454e-13
Minuit parameter uncertainties:
  1  2.77998
  2  1.22994
  3  0.195894
  4  0.12371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306247': 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) = 8273.94576576
delta logL = 0.0394471240343

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.418e+00  2.780e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.346e+00  1.230e+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:  9.395e-01  1.237e-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.200e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 122.861 1.776

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/306247/cmap_HighResolution_349228801_349488001_4FGL_J0811.4+0146_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-08-29 12:25:55.886623', job_id='306247', GAL2='0.94', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1630265155.89', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.94e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='424' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 306247: <4FGL_J0811.4+0146_daily_bin424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin424 122.861 1.7756 349228801 349488001 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 :                                   797.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            926 sec.

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

