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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin141
RA = 122.861, Dec = 1.7756
tmin = 275875201, tmax = 276134401
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='303074', job_status='RUN', time_executed='2021-08-29 12:04:45.285651', time_epoch_executed='1630263885.29' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303074

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303074/ft1_4FGL_J0811.4+0146_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303074/ft2_4FGL_J0811.4+0146_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303074/ft1_4FGL_J0811.4+0146_daily_bin141.fits outfile=/scratch/kocevski/303074/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin141.fits ra=122.861 dec=1.7756 rad=12.0 tmin=275875201.0 tmax=276134401.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.60
user 2.96
sys 0.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303074/ft1_filtered_4FGL_J0811.4+0146_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/303074/ft2_4FGL_J0811.4+0146_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/303074/ltcube_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.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/303074/ft2_4FGL_J0811.4+0146_daily_bin141.fits
.....................!
real 11.12
user 10.24
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303074/ft1_filtered_4FGL_J0811.4+0146_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/303074/ft2_4FGL_J0811.4+0146_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/303074/ltcube_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.fits outfile=/scratch/kocevski/303074/expmap_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.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/303074/ltcube_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.fits
.....................!
real 193.31
user 185.45
sys 6.67

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

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

This is gtbin version HEAD
real 0.97
user 0.36
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303074/ft1_filtered_4FGL_J0811.4+0146_daily_bin141.fits scfile=/scratch/kocevski/303074/ft2_4FGL_J0811.4+0146_daily_bin141.fits outfile=/scratch/kocevski/303074/cmap_HighResolution_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.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.95
user 0.38
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50845E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1621       1.0000         .10000E-03   10000.    
     8 'norm      '    .10867E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19459E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1162       1.0000         .10000E-03   10000.    
    15 'norm      '    4.7804       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6642       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.1007       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76271       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0718       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=   6702.275     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2327 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    31.462        .90712E-02** at limit **
   2  Prefactor     .10000E-03    3.2004        .90712E-02** at limit **
   3  Prefactor     .10001E-03    27.802        .90712E-02** at limit **
   4  norm          1.0524        1.7029        .12037E-01    .11883E-02
   5  Prefactor     .10050E-03    170.49        .10575E-01** at limit **
   6  norm          .10000E-03    8.8656        .90712E-02** at limit **
   7  Prefactor     5.1629        5.0102        .44235E-02    .27950E-03
   8  norm          .10001E-03    34.310        .90712E-02** at limit **
   9  Prefactor     21.950        14.265        .21378E-02    .76238E-03
  10  Prefactor     .10002E-03    145.21        .90712E-02** at limit **
  11  Prefactor     8.9949        6.4298        .33406E-02    .76402E-03
  12  Prefactor     .10000E-03    6.9757        .90712E-02** at limit **
  13  norm          .10000E-03    6.3167        .76426E-01** at limit **
  14  norm          1.1163        1.8788        .11140E-01    .69250E-03
  15  norm          4.7807        1.4355        .46003E-02    .81697E-04
  16  norm          6.6669        15.301        .38860E-02    .21841E-03
  17  norm          .10000E-03    1.0462        .90712E-02** at limit **
  18  Prefactor     .10000E-03    20.494        .90712E-02** at limit **
  19  norm          19.127        17.826        .22896E-02    .21583E-03
  20  Prefactor     .10000E-03    11.031        .90712E-02** at limit **
  21  norm          7.1011        1.6504        .37635E-02   -.88869E-05
  22  norm          .10000E-03    2.5895        .90712E-02** at limit **
  23  Normalizat    .76260        .19944        .78074E-01    .36300E-04
  24  Prefactor     1.0717        .12584        .38774E-01    .75694E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 1.0524
  Prefactor  = 0.000100496
  norm       = 0.0001
  Prefactor  = 5.16294
  norm       = 0.000100011
  Prefactor  = 21.9496
  Prefactor  = 0.000100018
  Prefactor  = 8.99494
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.1163
  norm       = 4.78066
  norm       = 6.66689
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.127
  Prefactor  = 0.0001
  norm       = 7.10112
  norm       = 0.0001
  Normalizat = 0.762604
  Prefactor  = 1.0717
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.275     FROM HESSE     STATUS=OK           393 CALLS     2720 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    31.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2095        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    27.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0524        1.6766        .12766E-03   -1.5503    
   5  Prefactor     .10050E-03    177.51        .42298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.9353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1629        5.0040        .17079E-03   -1.5253    
   8  norm          .10001E-03    34.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.950        14.248        .85514E-04   -1.4771    
  10  Prefactor     .10002E-03    145.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9949        6.4101        .13362E-03   -1.5108    
  12  Prefactor     .10000E-03    6.9770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    35.556        .39448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1163        1.8226        .13862E-03   -1.5497    
  15  norm          4.7807        1.4308        .50759E-04   -1.5271    
  16  norm          6.6669        15.299        .15544E-03   -1.5192    
  17  norm          .10000E-03    1.0487        .81766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.127        17.828        .91584E-04   -1.4833    
  20  Prefactor     .10000E-03    11.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.1011        1.6532        .48254E-04   -1.5175    
  22  norm          .10000E-03    2.5935        .12865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76260        .22238        .34564E-03   -1.0147    
  24  Prefactor     1.0717        .14182        .19044E-03   -.90376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.958e-09
Minuit parameter uncertainties:
  1  0.00228597
  2  1.16532e-06
  3  0.00120206
  4  1.67665
  5  0.0188214
  6  6.98582e-06
  7  5.00444
  8  0.00121664
  9  14.2503
  10  0.00323438
  11  6.41056
  12  3.7037e-06
  13  0.000259139
  14  1.82269
  15  1.43085
  16  15.3078
  17  7.71981e-07
  18  8.36333e-05
  19  17.8326
  20  6.69176e-07
  21  1.65316
  22  5.54408e-07
  23  0.222641
  24  0.141868
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  7.720e-07  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.072e+00  1.419e-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:  7.626e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303074/likelihoodResults_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.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) = 6702.27922873
delta logL = -0.00438078413208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6702.27484794
delta logL = 1.49611878442e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0026       1.0000          .0000       5.0000    
     3 'Normalizat'    .76261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0717       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=   6702.275     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      226 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0603        .81794E-03** at limit **
   2  alpha         1.8915        2.6920        .16892E-01    .62590E-07
   3  Normalizat    .76260        .21346        .34564E-03    .21511E-04
   4  Prefactor     1.0717        .13839        .19044E-03    .51350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89148
  Normalizat = 0.762604
  Prefactor  = 1.0717
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.275     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0561        .16359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8915        2.7101        .67570E-03   -.24588    
   3  Normalizat    .76260        .21358        .13826E-04   -1.0147    
   4  Prefactor     1.0717        .13846        .38089E-04   -.90376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57931e-11
Minuit parameter uncertainties:
  1  3.31179e-06
  2  137.552
  3  0.213811
  4  0.138509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303074': 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) = 6702.27484761
delta logL = 3.30496732204e-07

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  3.312e-06  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.891e+00  1.376e+02  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.072e+00  1.385e-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:  7.626e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.861 1.776

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/303074/cmap_HighResolution_275875201_276134401_4FGL_J0811.4+0146_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-08-29 12:15:28.158522', job_id='303074', GAL2='1.07', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630264528.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='141' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:15:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 303074: <4FGL_J0811.4+0146_daily_bin141> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin141> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:33 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00: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:00:35 2021
Terminated at Sun Aug 29 12:15:28 2021
Results reported at Sun Aug 29 12:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin141 122.861 1.7756 275875201 276134401 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 :                                   644.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

