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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin510
RA = 122.861, Dec = 1.7756
tmin = 371520001, tmax = 371779201
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='306383', job_status='RUN', time_executed='2021-08-29 12:14:11.686220', time_epoch_executed='1630264451.69' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306383/ft1_4FGL_J0811.4+0146_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306383/ft2_4FGL_J0811.4+0146_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306383/ft1_4FGL_J0811.4+0146_daily_bin510.fits outfile=/scratch/kocevski/306383/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin510.fits ra=122.861 dec=1.7756 rad=12.0 tmin=371520001.0 tmax=371779201.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.82
user 4.15
sys 2.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306383/ft1_filtered_4FGL_J0811.4+0146_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/306383/ft2_4FGL_J0811.4+0146_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/306383/ltcube_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.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/306383/ft2_4FGL_J0811.4+0146_daily_bin510.fits
.....................!
real 14.85
user 11.84
sys 2.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306383/ft1_filtered_4FGL_J0811.4+0146_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/306383/ft2_4FGL_J0811.4+0146_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/306383/ltcube_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.fits outfile=/scratch/kocevski/306383/expmap_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.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/306383/ltcube_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.fits
.....................!
real 193.90
user 184.97
sys 8.46

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/306383/ft1_filtered_4FGL_J0811.4+0146_daily_bin510.fits scfile=/scratch/kocevski/306383/ft2_4FGL_J0811.4+0146_daily_bin510.fits outfile=/scratch/kocevski/306383/cmap_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.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 2.94
user 0.38
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306383/ft1_filtered_4FGL_J0811.4+0146_daily_bin510.fits scfile=/scratch/kocevski/306383/ft2_4FGL_J0811.4+0146_daily_bin510.fits outfile=/scratch/kocevski/306383/cmap_HighResolution_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.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 2.93
user 0.39
sys 2.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5030       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11418E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6101       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 '    5.0212       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    124.33       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .47434E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9249       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1220       1.0000         .10000E-03   10000.    
    15 'norm      '    .38431       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5250       1.0000         .10000E-03   10000.    
    19 'norm      '    .12417E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.775       1.0000         .10000E-03   10000.    
    21 'norm      '    4.8875       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3676       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80553       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0322       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=   7856.464     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2424 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4910        37.325       -.58067E-05   -.30902E-05
   2  Prefactor     5.6498        5.8473       -.54450E-07    .40327E-05
   3  Prefactor     .10000E-03    58.166        .17056E-05** at limit **
   4  norm          2.6097        1.7497        .48693E-07   -.29866E-04
   5  Prefactor     .10000E-03    5.5744        .10077E-06** at limit **
   6  norm          .10000E-03    5.6894       -.17866E-06** at limit **
   7  Prefactor     5.0210        3.9377       -.14455E-06   -.57902E-04
   8  norm          .10000E-03    6.6474       -.86997E-07** at limit **
   9  Prefactor     2.6688        7.3841        .34363E-05   -.59271E-05
  10  Prefactor     124.33        118.87       -.11613E-05   -.19735E-05
  11  Prefactor     6.3349        8.6360        .38587E-05    .13710E-04
  12  Prefactor     .10000E-03    104.15       -.31575E-05** at limit **
  13  norm          6.9270        7.2618       -.65134E-06   -.27683E-04
  14  norm          4.1226        2.7020       -.42587E-06   -.11049E-03
  15  norm          .38421        .72263        .98952E-08   -.13737E-03
  16  norm          .10000E-03    3.9315       -.58520E-08** at limit **
  17  norm          .10000E-03    1.2078        .17176E-07** at limit **
  18  Prefactor     3.5263        15.433       -.51206E-06   -.13693E-03
  19  norm          .10000E-03    8.0443       -.44061E-06** at limit **
  20  Prefactor     13.775        12.004       -.28121E-06   -.64088E-05
  21  norm          4.8877        1.2115        .15121E-07    .45981E-06
  22  norm          2.3643        2.5570       -.66951E-09   -.72963E-03
  23  Normalizat    .80559        .17424       -.60090E-06    .66623E-05
  24  Prefactor     1.0322        .11274        .10448E-07   -.44993E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.49095
  Prefactor  = 5.64981
  Prefactor  = 0.0001
  norm       = 2.6097
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.02097
  norm       = 0.0001
  Prefactor  = 2.66879
  Prefactor  = 124.332
  Prefactor  = 6.33485
  Prefactor  = 0.0001
  norm       = 6.92703
  norm       = 4.1226
  norm       = 0.384207
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.52633
  norm       = 0.000100005
  Prefactor  = 13.7748
  norm       = 4.88768
  norm       = 2.36433
  Normalizat = 0.805594
  Prefactor  = 1.03217
 **********
 **   18 **HESSE 
 **********

 FCN=   7856.464     FROM HESSE     STATUS=OK           407 CALLS     2831 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4910        37.393        .18973E-03   -1.5284    
   2  Prefactor     5.6498        5.8512        .16900E-03   -1.5233    
   3  Prefactor     .10000E-03    58.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6097        1.7478        .90912E-04   -1.5385    
   5  Prefactor     .10000E-03    5.5754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0210        3.9399        .14895E-03   -1.5260    
   8  norm          .10000E-03    6.6564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6688        7.3727        .24956E-03   -1.5381    
  10  Prefactor     124.33        118.87        .36098E-04   -1.3473    
  11  Prefactor     6.3349        8.6319        .15941E-03   -1.5205    
  12  Prefactor     .10000E-03    108.28        .38548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9270        7.2631        .15246E-03   -1.5182    
  14  norm          4.1226        2.6623        .10685E-03   -1.5302    
  15  norm          .38421        .63485        .96787E-03   -1.5584    
  16  norm          .10000E-03    3.9329        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2155        .95106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5263        16.842        .10766E-02   -1.5332    
  19  norm          .10000E-03    30.491        .48904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.775        12.034        .10792E-03   -1.4966    
  21  norm          4.8877        1.2161        .46537E-04   -1.5266    
  22  norm          2.3643        8.3817        .13315E-02   -1.5400    
  23  Normalizat    .80559        .20012        .32298E-03   -.99862    
  24  Prefactor     1.0322        .12821        .18875E-03   -.91665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35434e-09
Minuit parameter uncertainties:
  1  25.9392
  2  5.8518
  3  4.12547e-05
  4  1.74788
  5  7.14275e-07
  6  2.45922e-07
  7  3.94009
  8  3.7397e-05
  9  7.37516
  10  119.095
  11  8.63363
  12  0.000234262
  13  7.26405
  14  2.66242
  15  0.634866
  16  6.57004e-07
  17  6.68357e-07
  18  15.4197
  19  0.000771099
  20  12.0365
  21  1.21611
  22  8.3859
  23  0.200299
  24  0.128243
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  6.684e-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.032e+00  1.282e-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.056e-01  2.003e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306383/likelihoodResults_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.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) = 7856.46787561
delta logL = -0.00389096117578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7856.46399133
delta logL = -6.67369749863e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9978       1.0000          .0000       5.0000    
     3 'Normalizat'    .80547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0320       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=   7856.464     FROM MIGRAD    STATUS=FAILED       116 CALLS      263 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.590        .26303E-01** at limit **
   2  alpha         .79075        2.8770        .50000       -.99411E-05
   3  Normalizat    .80559        .20878E-01    .32298E-03    .79551E-05
   4  Prefactor     1.0322        .13746E-01    .18875E-03   -.13191E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7856.464     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      444 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.590        .23319E-03** at limit **
   2  alpha         .79075        2.8770        .50559E-04   -.99411E-05
   3  Normalizat    .80559        .20878E-01    .17945E-06    .79551E-05
   4  Prefactor     1.0322        .13746E-01    .60141E-08   -.13191E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7856.464     FROM MIGRAD    STATUS=FAILED        71 CALLS      515 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3796        .28136E-03** at limit **
   2  alpha         .79019        2.6473        .50000       -.10154E-04
   3  Normalizat    .80559        .18925        .25838E-05    .87998E-05
   4  Prefactor     1.0322        .12469        .15100E-05   -.12046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 0.790194
  Normalizat = 0.805593
  Prefactor  = 1.03217
 **********
 **   18 **HESSE 
 **********

 FCN=   7856.464     FROM HESSE     STATUS=OK            27 CALLS      542 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2565        .56272E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .79019        2.8624        .50000       -.75313    
   3  Normalizat    .80559        .18731        .51677E-06   -.99862    
   4  Prefactor     1.0322        .12378        .30200E-06   -.91665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05418e-07
Minuit parameter uncertainties:
  1  3.7937e-05
  2  58.3726
  3  0.187455
  4  0.123818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306383': 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): 1
logL (Free Index) = 7856.46396572
delta logL = 1.89317752302e-05

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  3.794e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  7.902e-01  5.837e+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.032e+00  1.238e-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.056e-01  1.875e-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/306383/cmap_HighResolution_371520001_371779201_4FGL_J0811.4+0146_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-08-29 12:27:01.775050', job_id='306383', GAL2='1.03', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630265221.78', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.89e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='510' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 306383: <4FGL_J0811.4+0146_daily_bin510> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin510> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:10:43 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:10:45 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:45 2021
Terminated at Sun Aug 29 12:27:02 2021
Results reported at Sun Aug 29 12:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin510 122.861 1.7756 371520001 371779201 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 :                                   801.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

