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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin135
RA = 122.861, Dec = 1.7756
tmin = 274320001, tmax = 274579201
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='303066', job_status='RUN', time_executed='2021-08-29 12:05:07.100190', time_epoch_executed='1630263907.1' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303066

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303066/ft1_4FGL_J0811.4+0146_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303066/ft2_4FGL_J0811.4+0146_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303066/ft1_4FGL_J0811.4+0146_daily_bin135.fits outfile=/scratch/kocevski/303066/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin135.fits ra=122.861 dec=1.7756 rad=12.0 tmin=274320001.0 tmax=274579201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.75
user 3.36
sys 3.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303066/ft1_filtered_4FGL_J0811.4+0146_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/303066/ft2_4FGL_J0811.4+0146_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/303066/ltcube_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.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/303066/ft2_4FGL_J0811.4+0146_daily_bin135.fits
.....................!
real 15.43
user 11.51
sys 3.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303066/ft1_filtered_4FGL_J0811.4+0146_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/303066/ft2_4FGL_J0811.4+0146_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/303066/ltcube_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.fits outfile=/scratch/kocevski/303066/expmap_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.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/303066/ltcube_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.fits
.....................!
real 194.96
user 185.52
sys 9.04

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/303066/ft1_filtered_4FGL_J0811.4+0146_daily_bin135.fits scfile=/scratch/kocevski/303066/ft2_4FGL_J0811.4+0146_daily_bin135.fits outfile=/scratch/kocevski/303066/cmap_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.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.80
user 0.36
sys 3.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303066/ft1_filtered_4FGL_J0811.4+0146_daily_bin135.fits scfile=/scratch/kocevski/303066/ft2_4FGL_J0811.4+0146_daily_bin135.fits outfile=/scratch/kocevski/303066/cmap_HighResolution_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.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.65
user 0.38
sys 3.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0040       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21294E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .67176E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.369       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5832       1.0000         .10000E-03   10000.    
    15 'norm      '    9.3600       1.0000         .10000E-03   10000.    
    16 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.555       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7272       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89692       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1734       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=   7235.905     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     2437 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.990       -.16600E-06** at limit **
   2  Prefactor     10.474        10.218        .31983E-07   -.29402E-04
   3  Prefactor     6.0061        19.997       -.31540E-05   -.26014E-04
   4  norm          3.3559        2.2643       -.14367E-06   -.39929E-03
   5  Prefactor     .10000E-03    15.841        .16518E-07** at limit **
   6  norm          .10000E-03    9.5900        .30353E-08** at limit **
   7  Prefactor     .10004E-03    4.3719        .14663E-07** at limit **
   8  norm          1.3580        109.45       -.57545E-05   -.13366E-03
   9  Prefactor     24.905        20.654        .59887E-06    .14218E-03
  10  Prefactor     .10000E-03    75.879       -.15070E-05** at limit **
  11  Prefactor     .10000E-03    3.1784       -.22316E-07** at limit **
  12  Prefactor     11.366        25.783       -.10757E-04   -.66483E-05
  13  norm          .10000E-03    2.9180       -.10544E-07** at limit **
  14  norm          1.5833        1.5208       -.20825E-07    .11757E-03
  15  norm          9.3605        1.8838       -.68883E-07    .17328E-04
  16  norm          .10000E-03    19.487        .36019E-06** at limit **
  17  norm          .10000E-03    3.6481        .53488E-07** at limit **
  18  Prefactor     .10000E-03    35.294        .59789E-06** at limit **
  19  norm          .10000E-03    11.440       -.58473E-07** at limit **
  20  Prefactor     20.575        18.640       -.78634E-05    .17550E-05
  21  norm          1.7273        .93146       -.18293E-07    .87647E-05
  22  norm          .10000E-03    6.2648       -.85849E-07** at limit **
  23  Normalizat    .89742        .21255        .30144E-05   -.29332E-04
  24  Prefactor     1.1730        .13579        .23787E-06    .97434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.4735
  Prefactor  = 6.0061
  norm       = 3.35591
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010004
  norm       = 1.35798
  Prefactor  = 24.9051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3659
  norm       = 0.0001
  norm       = 1.58329
  norm       = 9.36046
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5746
  norm       = 1.72735
  norm       = 0.0001
  Normalizat = 0.897424
  Prefactor  = 1.17301
 **********
 **   18 **HESSE 
 **********

 FCN=   7235.905     FROM HESSE     STATUS=OK           403 CALLS     2840 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.474        10.235        .12383E-03   -1.5061    
   3  Prefactor     6.0061        20.011        .16387E-03   -1.5218    
   4  norm          3.3559        2.2633        .99366E-04   -1.5342    
   5  Prefactor     .10000E-03    15.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.6127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    5.1279        .49463E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3580        95.269        .37531E-03   -1.5475    
   9  Prefactor     24.905        18.876        .79134E-04   -1.4709    
  10  Prefactor     .10000E-03    75.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1861        .14810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.366        25.664        .11881E-03   -1.5034    
  13  norm          .10000E-03    2.9215        .14190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5833        1.5277        .99751E-04   -1.5456    
  15  norm          9.3605        1.8840        .50059E-04   -1.5096    
  16  norm          .10000E-03    19.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7706        .31708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.575        18.504        .88345E-04   -1.4800    
  21  norm          1.7273        .92745        .58185E-04   -1.5445    
  22  norm          .10000E-03    6.3650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89742        .23668        .35715E-03   -.96551    
  24  Prefactor     1.1730        .15269        .20536E-03   -.87166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02031e-09
Minuit parameter uncertainties:
  1  3.80446e-06
  2  10.237
  3  20.0331
  4  2.26333
  5  1.23974e-05
  6  8.07159e-06
  7  0.000908818
  8  22.7854
  9  18.8802
  10  4.72097e-06
  11  4.16371e-06
  12  25.6887
  13  1.76382e-06
  14  1.52769
  15  1.88397
  16  0.00014137
  17  1.007e-05
  18  0.0001782
  19  6.22389e-06
  20  18.5095
  21  0.92746
  22  2.10168e-05
  23  0.236956
  24  0.152749
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  1.007e-05  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.173e+00  1.527e-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.974e-01  2.370e-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: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303066/likelihoodResults_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.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): 102
logL (Free Index) = 7235.90653503
delta logL = -0.00126630927389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7235.90526885
delta logL = -1.33796675073e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0270       1.0000          .0000       5.0000    
     3 'Normalizat'    .89759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1729       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=   7235.905     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      247 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    335.16        .32196E-02** at limit **
   2  alpha         2.2703        3.7721        .16849        .58364E-07
   3  Normalizat    .89742        .53997E-01    .35715E-03   -.45809E-03
   4  Prefactor     1.1730        .35217E-01    .20536E-03   -.81502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27033
  Normalizat = 0.897424
  Prefactor  = 1.17301
 **********
 **   18 **HESSE 
 **********

 FCN=   7235.905     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2680        .64393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2703        3.2989        .67397E-02   -.91998E-01
   3  Normalizat    .89742        .22661        .14286E-04   -.96551    
   4  Prefactor     1.1730        .14794        .41071E-04   -.87166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43703e-10
Minuit parameter uncertainties:
  1  1.25001e-05
  2  149.807
  3  0.226847
  4  0.147996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303066': 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) = 7235.90526719
delta logL = 1.52925622388e-06

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  1.250e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.270e+00  1.498e+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.173e+00  1.480e-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.974e-01  2.268e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/303066/cmap_HighResolution_274320001_274579201_4FGL_J0811.4+0146_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-05', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-08-29 12:16:53.865147', job_id='303066', GAL2='1.17', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630264613.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='135' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 303066: <4FGL_J0811.4+0146_daily_bin135> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin135> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:32 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:34 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:34 2021
Terminated at Sun Aug 29 12:16:55 2021
Results reported at Sun Aug 29 12:16:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin135 122.861 1.7756 274320001 274579201 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 :                                   756.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

