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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin790
RA = 122.861, Dec = 1.7756
tmin = 444096001, tmax = 444355201
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='310996', job_status='RUN', time_executed='2021-08-29 12:28:42.897859', time_epoch_executed='1630265322.9' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='790'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310996/ft1_4FGL_J0811.4+0146_daily_bin790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310996/ft2_4FGL_J0811.4+0146_daily_bin790.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310996/ft1_4FGL_J0811.4+0146_daily_bin790.fits outfile=/scratch/kocevski/310996/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin790.fits ra=122.861 dec=1.7756 rad=12.0 tmin=444096001.0 tmax=444355201.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 4.58
user 3.55
sys 1.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310996/ft1_filtered_4FGL_J0811.4+0146_daily_bin790.fits" evtable="EVENTS" scfile=/scratch/kocevski/310996/ft2_4FGL_J0811.4+0146_daily_bin790.fits sctable="SC_DATA" outfile=/scratch/kocevski/310996/ltcube_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.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/310996/ft2_4FGL_J0811.4+0146_daily_bin790.fits
.....................!
real 14.35
user 13.09
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310996/ft1_filtered_4FGL_J0811.4+0146_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/310996/ft2_4FGL_J0811.4+0146_daily_bin790.fits sctable="SC_DATA" expcube=/scratch/kocevski/310996/ltcube_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.fits outfile=/scratch/kocevski/310996/expmap_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.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/310996/ltcube_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.fits
.....................!
real 192.69
user 185.89
sys 6.21

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/310996/ft1_filtered_4FGL_J0811.4+0146_daily_bin790.fits scfile=/scratch/kocevski/310996/ft2_4FGL_J0811.4+0146_daily_bin790.fits outfile=/scratch/kocevski/310996/cmap_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.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.27
user 0.36
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310996/ft1_filtered_4FGL_J0811.4+0146_daily_bin790.fits scfile=/scratch/kocevski/310996/ft2_4FGL_J0811.4+0146_daily_bin790.fits outfile=/scratch/kocevski/310996/cmap_HighResolution_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.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.34
user 0.39
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.793       1.0000         .10000E-03   10000.    
     4 'norm      '    6.7477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    40.371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9332       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.218       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7064       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8236       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1651       1.0000         .10000E-03   10000.    
    18 'Prefactor '    86.995       1.0000         .10000E-03   10000.    
    19 'norm      '    14.023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .91100       1.0000         .10000E-03   10000.    
    22 'norm      '    .14274E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95060       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95847       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=   6026.993     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2808 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.093        .18065E-07** at limit **
   2  Prefactor     .10000E-03    5.6699        .69836E-07** at limit **
   3  Prefactor     85.793        45.132       -.62657E-08   -.30763E-05
   4  norm          6.7477        2.6441        .31905E-07   -.25656E-05
   5  Prefactor     .10000E-03    9.8077        .54301E-07** at limit **
   6  norm          .10000E-03    10.006        .23189E-07** at limit **
   7  Prefactor     .10000E-03    4.3470        .53343E-07** at limit **
   8  norm          40.373        25.024       -.15509E-06    .19962E-04
   9  Prefactor     .10000E-03    22.337       -.31182E-06** at limit **
  10  Prefactor     .10000E-03    95.518        .73901E-07** at limit **
  11  Prefactor     2.9329        10.895        .90679E-06    .17024E-04
  12  Prefactor     .10000E-03    115.74        .13181E-05** at limit **
  13  norm          20.222        18.341       -.50962E-06   -.34788E-05
  14  norm          .10000E-03    1.3816        .17543E-07** at limit **
  15  norm          3.7062        1.6294        .34256E-07   -.85129E-04
  16  norm          1.7844        66.854       -.10495E-04   -.44311E-04
  17  norm          7.1609        5.4494        .36675E-06    .77264E-04
  18  Prefactor     86.902        47.295        .19597E-05    .64461E-04
  19  norm          14.023        16.290        .56459E-07   -.34132E-05
  20  Prefactor     .10000E-03    3.7866       -.24379E-06** at limit **
  21  norm          .91127        .89250       -.74460E-07   -.26614E-03
  22  norm          .10001E-03    5.4642        .62002E-06** at limit **
  23  Normalizat    .94999        .24470        .43851E-05   -.41579E-04
  24  Prefactor     .95877        .15191       -.24826E-05    .14062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.7926
  norm       = 6.74765
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 40.3733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93295
  Prefactor  = 0.0001
  norm       = 20.2221
  norm       = 0.0001
  norm       = 3.7062
  norm       = 1.78443
  norm       = 7.1609
  Prefactor  = 86.9024
  norm       = 14.0225
  Prefactor  = 0.0001
  norm       = 0.91127
  norm       = 0.000100005
  Normalizat = 0.94999
  Prefactor  = 0.958772
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.993     FROM HESSE     STATUS=OK           395 CALLS     3203 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7337        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.793        45.122        .43372E-04   -1.3853    
   4  norm          6.7477        2.6423        .74207E-04   -1.5188    
   5  Prefactor     .10000E-03    9.8070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4385        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          40.373        24.917        .63087E-04   -1.4436    
   9  Prefactor     .10000E-03    22.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    95.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9329        10.796        .23717E-03   -1.5365    
  12  Prefactor     .10000E-03    119.10        .42314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.222        18.242        .89076E-04   -1.4808    
  14  norm          .10000E-03    1.3907        .88953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7062        1.6288        .62230E-04   -1.5323    
  16  norm          1.7844        70.297        .30917E-03   -1.5441    
  17  norm          7.1609        5.4537        .14848E-03   -1.5173    
  18  Prefactor     86.902        48.215        .21537E-03   -1.3841    
  19  norm          14.023        16.291        .10696E-03   -1.4959    
  20  Prefactor     .10000E-03    3.7938        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .91127        .86801        .69534E-04   -1.5517    
  22  norm          .10001E-03    15.532        .34265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94999        .25491        .32396E-03   -.94725    
  24  Prefactor     .95877        .15999        .20749E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6248e-10
Minuit parameter uncertainties:
  1  2.27599e-05
  2  7.93375e-06
  3  45.1405
  4  2.64238
  5  9.50342e-06
  6  7.39437e-07
  7  1.27576e-05
  8  24.9231
  9  5.93499e-05
  10  5.01426e-05
  11  10.8032
  12  0.000483603
  13  18.2474
  14  1.56504e-06
  15  1.62883
  16  22.4278
  17  5.4541
  18  48.237
  19  16.2965
  20  9.28979e-06
  21  0.86802
  22  0.000572157
  23  0.255238
  24  0.160069
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.161e+00  5.454e+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.588e-01  1.601e-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.500e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.27
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 2.32e-05

TS (Fixed Index): 3.27
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310996/likelihoodResults_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.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) = 6026.42215255
delta logL = 0.570934830364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6026.39883544
delta logL = 0.59425193374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0019       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6140       1.0000          .0000       5.0000    
     3 'Normalizat'    .89906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97518       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=   6026.399     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0024        4.9442        .10868E-03   -.12496E-02
   2  alpha         2.6145        .58004        .10697E-01   -.13257E-03
   3  Normalizat    .89912        .24553        .33164E-03    .16951E-03
   4  Prefactor     .97520        .15547        .20576E-03    .35118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00237
  alpha      = 2.61446
  Normalizat = 0.899122
  Prefactor  = 0.975204
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.399     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0024        4.7166        .43473E-05   -1.5218    
   2  alpha         2.6145        .55308        .42788E-03    .45801E-01
   3  Normalizat    .89912        .24553        .13266E-04   -.96491    
   4  Prefactor     .97520        .15547        .41152E-04   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79445e-10
Minuit parameter uncertainties:
  1  4.71691
  2  0.557708
  3  0.245832
  4  0.155543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310996': 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) = 6026.39883412
delta logL = 0.594253257299

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.002e+00  4.717e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.614e+00  5.577e-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:  9.752e-01  1.555e-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.991e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.61 +/- 0.56
Photon Flux (Free Index): 9.99e-08 +/- 7.05e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.66e-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/310996/cmap_HighResolution_444096001_444355201_4FGL_J0811.4+0146_daily_bin790.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-05', comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='2.70e-05', photon_flux_error='3.91e-08', dlogl='5.94e-01', energy_flux='3.04e-05', photon_flux2='9.99e-08', job_status='DONE', time_completed='2021-08-29 12:39:39.493099', photon_index_error2='0.56', photon_index2='2.61', ts='3.27', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.66e-05', EG='0.95', time_epoch_completed='1630265979.49', return_code='0', job_id='310996', GAL2='0.98', EG2='0.90', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='7.05e-08', ts2='4.50', photon_index='2.01' WHERE bin_id='790' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 310996: <4FGL_J0811.4+0146_daily_bin790> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin790> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:25:17 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:25:19 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:25:19 2021
Terminated at Sun Aug 29 12:39:40 2021
Results reported at Sun Aug 29 12:39:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin790 122.861 1.7756 444096001 444355201 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 :                                   668.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

