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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin351
RA = 122.861, Dec = 1.7756
tmin = 330307201, tmax = 330566401
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='304686', job_status='RUN', time_executed='2021-08-29 12:09:10.231130', time_epoch_executed='1630264150.23' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304686/ft1_4FGL_J0811.4+0146_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304686/ft2_4FGL_J0811.4+0146_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304686/ft1_4FGL_J0811.4+0146_daily_bin351.fits outfile=/scratch/kocevski/304686/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin351.fits ra=122.861 dec=1.7756 rad=12.0 tmin=330307201.0 tmax=330566401.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.08
user 3.57
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304686/ft2_4FGL_J0811.4+0146_daily_bin351.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/304686/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/304686/ft1_filtered_4FGL_J0811.4+0146_daily_bin351.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.77
user 0.32
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304686/ft1_filtered_4FGL_J0811.4+0146_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/304686/ft2_4FGL_J0811.4+0146_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/304686/ltcube_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.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/304686/ft2_4FGL_J0811.4+0146_daily_bin351.fits
.....................!
real 12.14
user 11.52
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304686/ft1_filtered_4FGL_J0811.4+0146_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/304686/ft2_4FGL_J0811.4+0146_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/304686/ltcube_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.fits outfile=/scratch/kocevski/304686/expmap_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.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/304686/ltcube_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.fits
.....................!
real 191.05
user 185.58
sys 5.11

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/304686/ft1_filtered_4FGL_J0811.4+0146_daily_bin351.fits scfile=/scratch/kocevski/304686/ft2_4FGL_J0811.4+0146_daily_bin351.fits outfile=/scratch/kocevski/304686/cmap_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.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.74
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304686/ft1_filtered_4FGL_J0811.4+0146_daily_bin351.fits scfile=/scratch/kocevski/304686/ft2_4FGL_J0811.4+0146_daily_bin351.fits outfile=/scratch/kocevski/304686/cmap_HighResolution_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.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.75
user 0.37
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.445       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.364       1.0000         .10000E-03   10000.    
     4 'norm      '    .69164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4884       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0640       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8279       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3729       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8383       1.0000         .10000E-03   10000.    
    15 'norm      '    .83923       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8525       1.0000         .10000E-03   10000.    
    17 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2292       1.0000         .10000E-03   10000.    
    21 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93221       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97386       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=   7030.099     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2345 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.869       -.59234E-06** at limit **
   2  Prefactor     19.440        11.911       -.31316E-06   -.10959E-03
   3  Prefactor     31.307        31.080        .10762E-05    .74817E-04
   4  norm          .69646        1.0798        .16812E-05   -.51422E-03
   5  Prefactor     2.4786        70.395        .68983E-06   -.27779E-05
   6  norm          1.0637        16.217        .86334E-05   -.95076E-04
   7  Prefactor     .10000E-03    2.0005        .87242E-08** at limit **
   8  norm          .10000E-03    7.8430       -.10676E-07** at limit **
   9  Prefactor     32.328        13.787        .36998E-07   -.48115E-04
  10  Prefactor     .10000E-03    46.214       -.17245E-06** at limit **
  11  Prefactor     4.8278        4.9520       -.63418E-07   -.78208E-04
  12  Prefactor     .10000E-03    27.551        .28497E-06** at limit **
  13  norm          7.3730        8.4702        .45910E-07   -.70247E-04
  14  norm          2.8384        2.0024        .36354E-07   -.78396E-04
  15  norm          .83918        1.0084        .70286E-07    .23075E-03
  16  norm          2.8498        21.538        .50249E-06   -.30607E-04
  17  norm          .10000E-03    3.0317       -.35779E-07** at limit **
  18  Prefactor     .10000E-03    13.433       -.71498E-07** at limit **
  19  norm          .10000E-03    8.5407        .14216E-07** at limit **
  20  Prefactor     5.2284        13.629        .43072E-06   -.19364E-04
  21  norm          .10000E-03    .52394        .17954E-06** at limit **
  22  norm          .10000E-03    3.0359       -.14119E-07** at limit **
  23  Normalizat    .93232        .17687        .74221E-07   -.34258E-03
  24  Prefactor     .97378        .11608       -.11108E-05   -.25710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.4404
  Prefactor  = 31.3071
  norm       = 0.696455
  Prefactor  = 2.47863
  norm       = 1.06369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.3279
  Prefactor  = 0.0001
  Prefactor  = 4.8278
  Prefactor  = 0.0001
  norm       = 7.37296
  norm       = 2.83843
  norm       = 0.839182
  norm       = 2.84982
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.22841
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.93232
  Prefactor  = 0.973781
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.099     FROM HESSE     STATUS=OK           399 CALLS     2744 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.440        11.983        .90828E-04   -1.4826    
   3  Prefactor     31.307        31.075        .71546E-04   -1.4588    
   4  norm          .69646        1.0807        .12361E-02   -1.5541    
   5  Prefactor     2.4786        71.108        .25913E-03   -1.5393    
   6  norm          1.0637        16.257        .23678E-02   -1.5502    
   7  Prefactor     .10000E-03    2.0211        .11575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.328        13.794        .70469E-04   -1.4570    
  10  Prefactor     .10000E-03    46.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8278        4.9510        .18296E-03   -1.5268    
  12  Prefactor     .10000E-03    27.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3730        8.4640        .14771E-03   -1.5165    
  14  norm          2.8384        1.9860        .94113E-04   -1.5371    
  15  norm          .83918        .97753        .85557E-04   -1.5525    
  16  norm          2.8498        21.516        .24072E-03   -1.5370    
  17  norm          .10000E-03    3.1221        .28481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.5576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2284        13.643        .17578E-03   -1.5251    
  21  norm          .10000E-03    1.0627        .11665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.0571        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93232        .20177        .29767E-03   -.95334    
  24  Prefactor     .97378        .13356        .18962E-03   -.93609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87054e-10
Minuit parameter uncertainties:
  1  0.000278728
  2  11.9841
  3  31.0907
  4  1.08078
  5  26.5862
  6  8.31914
  7  2.07978e-08
  8  9.0088e-07
  9  13.7954
  10  1.75902e-05
  11  4.95139
  12  2.17193e-05
  13  8.46537
  14  1.986
  15  0.977544
  16  15.6684
  17  2.07779e-05
  18  4.63597e-07
  19  1.38513e-05
  20  13.651
  21  2.28362e-05
  22  1.39083e-05
  23  0.201935
  24  0.133604
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  2.078e-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:  9.738e-01  1.336e-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.323e-01  2.019e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304686/likelihoodResults_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.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) = 7030.10075212
delta logL = -0.00152849049391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7030.09920475
delta logL = 1.88772573892e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26625E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3215       1.0000          .0000       5.0000    
     3 'Normalizat'    .93217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97389       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=   7030.099     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      279 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10296E-01    1.0018        .39295E-01    .20814E-03
   2  alpha         3.2869        3.6752        .44387        .16662E-04
   3  Normalizat    .93177        .77380E-02    .67309E-01   -.71923E-04
   4  Prefactor     .97393        .50528E-02    .45940E-01   -.25440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0102958
  alpha      = 3.28694
  Normalizat = 0.931769
  Prefactor  = 0.973929
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.099     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      320 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10296E-01    5.8800        .17524E-01   -1.5688    
   2  alpha         3.2869        3.2011        .50000        .32022    
   3  Normalizat    .93177        .10562E-01    .29775E-03   -.95353    
   4  Prefactor     .97393        .69024E-02    .18961E-03   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10004e-08
Minuit parameter uncertainties:
  1  0.489747
  2  22.534
  3  0.0105623
  4  0.00690245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304686': 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): 102
logL (Free Index) = 7030.09914564
delta logL = 7.79892006904e-05

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.030e-02  4.897e-01  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.287e+00  2.253e+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.739e-01  6.902e-03  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.318e-01  1.056e-02  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/304686/cmap_HighResolution_330307201_330566401_4FGL_J0811.4+0146_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-08-29 12:20:09.036343', job_id='304686', GAL2='0.97', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630264809.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.80e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='351' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:20:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 304686: <4FGL_J0811.4+0146_daily_bin351> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin351> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:30 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:05:32 2021
Terminated at Sun Aug 29 12:20:09 2021
Results reported at Sun Aug 29 12:20:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin351 122.861 1.7756 330307201 330566401 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 :                                   661.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

