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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin505
RA = 122.861, Dec = 1.7756
tmin = 370224001, tmax = 370483201
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='306376', job_status='RUN', time_executed='2021-08-29 12:14:24.730207', time_epoch_executed='1630264464.73' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306376/ft1_4FGL_J0811.4+0146_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306376/ft2_4FGL_J0811.4+0146_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306376/ft1_4FGL_J0811.4+0146_daily_bin505.fits outfile=/scratch/kocevski/306376/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin505.fits ra=122.861 dec=1.7756 rad=12.0 tmin=370224001.0 tmax=370483201.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 19.37
user 15.89
sys 3.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306376/ft1_filtered_4FGL_J0811.4+0146_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/306376/ft2_4FGL_J0811.4+0146_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/306376/ltcube_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.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/306376/ft2_4FGL_J0811.4+0146_daily_bin505.fits
.....................!
real 14.10
user 10.28
sys 3.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306376/ft1_filtered_4FGL_J0811.4+0146_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/306376/ft2_4FGL_J0811.4+0146_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/306376/ltcube_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.fits outfile=/scratch/kocevski/306376/expmap_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.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/306376/ltcube_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.fits
.....................!
real 195.44
user 186.31
sys 8.50

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/306376/ft1_filtered_4FGL_J0811.4+0146_daily_bin505.fits scfile=/scratch/kocevski/306376/ft2_4FGL_J0811.4+0146_daily_bin505.fits outfile=/scratch/kocevski/306376/cmap_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.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 3.55
user 0.39
sys 3.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306376/ft1_filtered_4FGL_J0811.4+0146_daily_bin505.fits scfile=/scratch/kocevski/306376/ft2_4FGL_J0811.4+0146_daily_bin505.fits outfile=/scratch/kocevski/306376/cmap_HighResolution_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.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 3.23
user 0.40
sys 2.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1514       1.0000         .10000E-03   10000.    
     4 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.588       1.0000         .10000E-03   10000.    
     6 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0305       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18600E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2150       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    66.585       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.497       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0223       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0635       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3825.418     FROM MIGRAD    STATUS=FAILED       958 CALLS     3120 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.187        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.0549        .13577E-02** at limit **
   3  Prefactor     1.0887        518.06        .88259E-02    .37787E-03
   4  norm          .10000E-03    3.1165        .15699E-02** at limit **
   5  Prefactor     52.600        49.197        .55307E-04    .19117E-05
   6  norm          .10000E-03    9.2546        .18142E-02** at limit **
   7  Prefactor     4.0359        5.8200        .16558E-03   -.74943E-04
   8  norm          5.9203        33.235        .16500E-03   -.30592E-04
   9  Prefactor     .10000E-03    16.244        .18142E-02** at limit **
  10  Prefactor     .10000E-03    194.57        .18142E-02** at limit **
  11  Prefactor     .10000E-03    4.3263        .12560E-02** at limit **
  12  Prefactor     .10000E-03    27.452        .18142E-02** at limit **
  13  norm          .10000E-03    12.826        .18142E-02** at limit **
  14  norm          .10000E-03    1.4410        .72379E-03** at limit **
  15  norm          .10000E-03    .82963        .54471E-03** at limit **
  16  norm          .10000E-03    14.706        .18142E-02** at limit **
  17  norm          7.2160        6.9932        .74666E-03   -.20517E-04
  18  Prefactor     .10000E-03    56.593        .18142E-02** at limit **
  19  norm          66.608        56.561        .49185E-04   -.24039E-05
  20  Prefactor     10.506        13.720        .12367E-03    .19719E-04
  21  norm          1.0220        1.0153        .60280E-04    .59314E-04
  22  norm          .10000E-03    5.4783        .14123E-02** at limit **
  23  Normalizat    1.0492        .31549        .30326E-03   -.29334E-04
  24  Prefactor     1.0635        .20614        .20121E-03   -.15651E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3825.418     FROM SIMPLEX   STATUS=UNCHANGED   1512 CALLS     4632 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.187        .74988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0549        .29226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0887        518.06        .11639E-05   -1.5499    
   4  norm          .10000E-03    3.1165        .96611E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.600        49.197        .10197E-05   -1.4256    
   6  norm          .10000E-03    9.2546        .41948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0359        5.8200        .10949E-05   -1.5306    
   8  norm          5.9203        33.235        .10889E-05   -1.5221    
   9  Prefactor     .10000E-03    16.244        .34791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    194.57        .20324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3263        .23116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.452        .19728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.826        .19705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4410        .10152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .82963        .16165E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.706        .16376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2160        6.9932        .10852E-05   -1.5171    
  18  Prefactor     .10000E-03    56.593        .43150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          66.608        56.561        .10066E-05   -1.4074    
  20  Prefactor     10.506        13.720        .10772E-05   -1.5060    
  21  norm          1.0220        1.0153        .11092E-05   -1.5506    
  22  norm          .10000E-03    5.4783        .20796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0492        .31549        .65381E-06   -.91400    
  24  Prefactor     1.0635        .20614        .64837E-06   -.90643    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3825.418     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     5012 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.190        .36285E-03** at limit **
   2  Prefactor     .10000E-03    5.0550        .27155E-03** at limit **
   3  Prefactor     1.0887        523.86        .17652E-02    .78253E-06
   4  norm          .10000E-03    3.1245        .31398E-03** at limit **
   5  Prefactor     52.600        49.189        .11061E-04    .61667E-06
   6  norm          .10000E-03    9.2547        .36285E-03** at limit **
   7  Prefactor     4.0359        5.8188        .66231E-05    .51496E-06
   8  norm          5.9203        33.205        .66000E-05    .34451E-06
   9  Prefactor     .10000E-03    16.246        .36285E-03** at limit **
  10  Prefactor     .10000E-03    194.57        .36285E-03** at limit **
  11  Prefactor     .10000E-03    4.3264        .25121E-03** at limit **
  12  Prefactor     .10000E-03    27.454        .36285E-03** at limit **
  13  norm          .10000E-03    12.828        .36285E-03** at limit **
  14  norm          .10000E-03    1.4411        .14476E-03** at limit **
  15  norm          .10000E-03    .82968        .10894E-03** at limit **
  16  norm          .10000E-03    14.708        .36285E-03** at limit **
  17  norm          7.2160        6.9895        .29866E-04    .76130E-06
  18  Prefactor     .10000E-03    56.614        .36285E-03** at limit **
  19  norm          66.608        56.553        .98371E-05     .0000    
  20  Prefactor     10.506        13.716        .49466E-05    .22983E-06
  21  norm          1.0220        1.0151        .24112E-05    .47150E-06
  22  norm          .10000E-03    5.4785        .28247E-03** at limit **
  23  Normalizat    1.0492        .31566        .12130E-04    .27179E-05
  24  Prefactor     1.0635        .20578        .80484E-05    .42376E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08867
  norm       = 0.0001
  Prefactor  = 52.6003
  norm       = 0.0001
  Prefactor  = 4.03587
  norm       = 5.92035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.21603
  Prefactor  = 0.0001
  norm       = 66.608
  Prefactor  = 10.5059
  norm       = 1.02205
  norm       = 0.0001
  Normalizat = 1.04919
  Prefactor  = 1.06347
 **********
 **   18 **HESSE 
 **********

 FCN=   3825.418     FROM HESSE     STATUS=OK           375 CALLS     5387 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.191        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0550        .54310E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0887        521.19        .70607E-04   -1.5499    
   4  norm          .10000E-03    3.1249        .62797E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.600        49.192        .22123E-05   -1.4256    
   6  norm          .10000E-03    9.2548        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0359        5.8197        .13246E-05   -1.5306    
   8  norm          5.9203        33.328        .13200E-05   -1.5221    
   9  Prefactor     .10000E-03    16.246        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    194.57        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3264        .50242E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.454        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.828        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4411        .28952E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .82969        .21789E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.708        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2160        6.9902        .11947E-05   -1.5171    
  18  Prefactor     .10000E-03    56.615        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          66.608        56.552        .98371E-05   -1.4074    
  20  Prefactor     10.506        13.722        .98933E-06   -1.5060    
  21  norm          1.0220        1.0151        .24112E-05   -1.5506    
  22  norm          .10000E-03    5.4785        .56493E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0492        .31611        .24261E-05   -.91400    
  24  Prefactor     1.0635        .20597        .16097E-05   -.90643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68256e-14
Minuit parameter uncertainties:
  1  2.84454e-07
  2  1.06129e-08
  3  48.0649
  4  1.41772e-07
  5  49.2299
  6  8.5923e-09
  7  5.82052
  8  28.1173
  9  1.59849e-06
  10  1.35242e-06
  11  6.56479e-09
  12  2.72975e-07
  13  9.47505e-08
  14  9.40149e-10
  15  1.48164e-09
  16  1.16652e-07
  17  6.99099
  18  7.67718e-07
  19  56.5977
  20  13.7265
  21  1.01508
  22  2.32424e-08
  23  0.316677
  24  0.206127
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  7.216e+00  6.991e+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.063e+00  2.061e-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.049e+00  3.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 5.01e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 2.97e-05

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

Saving results to:
/scratch/kocevski/306376/likelihoodResults_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.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) = 3824.67188102
delta logL = 0.745756808177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3824.6671274
delta logL = 0.750510433003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6311       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8338       1.0000          .0000       5.0000    
     3 'Normalizat'    .98153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0888       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=   3824.667     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6313        6.2053        .88080E-04   -.31352E-03
   2  alpha         2.8339        .82561        .94036E-02   -.28463E-04
   3  Normalizat    .98153        .30777        .31197E-03    .62607E-04
   4  Prefactor     1.0888        .20333        .19900E-03    .13209E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.6313
  alpha      = 2.83389
  Normalizat = 0.981528
  Prefactor  = 1.0888
 **********
 **   18 **HESSE 
 **********

 FCN=   3824.667     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6313        5.5679        .35232E-05   -1.5278    
   2  alpha         2.8339        .74296        .37614E-03    .13396    
   3  Normalizat    .98153        .30768        .12479E-04   -.93652    
   4  Prefactor     1.0888        .20317        .39801E-04   -.89825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44739e-11
Minuit parameter uncertainties:
  1  5.5685
  2  0.754574
  3  0.30824
  4  0.203319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306376': 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) = 3824.66712738
delta logL = 0.750510452198

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.631e+00  5.569e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.834e+00  7.546e-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.089e+00  2.033e-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.815e-01  3.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.83 +/- 0.75
Photon Flux (Free Index): 1.09e-07 +/- 8.13e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.86e-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/306376/cmap_HighResolution_370224001_370483201_4FGL_J0811.4+0146_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-05', comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='2.52e-05', photon_flux_error='5.01e-08', dlogl='7.51e-01', energy_flux='3.07e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-29 12:26:19.159840', photon_index_error2='0.75', photon_index2='2.83', ts='1.44', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.86e-05', EG='1.05', time_epoch_completed='1630265179.16', return_code='0', job_id='306376', GAL2='1.09', EG2='0.98', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='8.13e-08', ts2='3.00', photon_index='2.01' WHERE bin_id='505' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:26:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 306376: <4FGL_J0811.4+0146_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin505 122.861 1.7756 370224001 370483201 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 :                                   752.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

