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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1106
RA = 120.888, Dec = 20.7678
tmin = 526003201, tmax = 526262401
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='75080', job_status='RUN', time_executed='2021-08-28 23:08:06.079885', time_epoch_executed='1630217286.08' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75080/ft1_4FGL_J0803.5+2046_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75080/ft1_4FGL_J0803.5+2046_daily_bin1106.fits outfile=/scratch/kocevski/75080/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1106.fits ra=120.888 dec=20.7678 rad=12.0 tmin=526003201.0 tmax=526262401.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.81
user 3.39
sys 1.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.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/75080/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.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 1.57
user 0.28
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/75080/ltcube_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.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/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits
.....................!
real 13.46
user 11.49
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/75080/ltcube_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.fits outfile=/scratch/kocevski/75080/expmap_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.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/75080/ltcube_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.fits
.....................!
real 193.18
user 185.67
sys 6.78

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0803.5+2046 @ 120.888 20.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits scfile=/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits outfile=/scratch/kocevski/75080/cmap_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.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=120.888 yref=20.7678 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 1.77
user 0.37
sys 1.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits scfile=/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits outfile=/scratch/kocevski/75080/cmap_HighResolution_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.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=120.888 yref=20.7678 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 1.83
user 0.37
sys 1.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75080/Model_4FGL_J0803.5+2046_daily_bin1106.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/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits.....................!
real 66.24
user 62.38
sys 2.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits', '/scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits', expMap='/scratch/kocevski/75080/expmap_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.fits', expCube='/scratch/kocevski/75080/ltcube_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75080/Model_4FGL_J0803.5+2046_daily_bin1106.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0803.5+2046'

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75080/ft1_filtered_4FGL_J0803.5+2046_daily_bin1106.fits
Spacecraft file(s): /scratch/kocevski/75080/ft2_4FGL_J0803.5+2046_daily_bin1106.fits
Exposure map: /scratch/kocevski/75080/expmap_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.fits
Exposure cube: /scratch/kocevski/75080/ltcube_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75080/Model_4FGL_J0803.5+2046_daily_bin1106.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) = 6072.78258551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1653       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2572       1.0000         .10000E-03   10000.    
     3 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4207       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.079       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.939       1.0000         .10000E-03   10000.    
    20 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.687       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71122       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6072.761     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2871 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1654        8.3219       -.24623E-07    .20333E-05
   2  norm          1.2572        .87336       -.32316E-07   -.17455E-04
   3  norm          .10000E-03    .62648       -.41057E-06** at limit **
   4  Prefactor     7.4230        8.0431        .28446E-05   -.67869E-03
   5  norm          .10000E-03    1.5476        .17374E-07** at limit **
   6  Prefactor     .10000E-03    12.626       -.15633E-05** at limit **
   7  Prefactor     .10000E-03    5.8890        .68410E-08** at limit **
   8  Prefactor     21.946        35.461       -.31540E-05   -.90143E-04
   9  Prefactor     .10000E-03    1.1842       -.15849E-07** at limit **
  10  Prefactor     .10000E-03    9.1859       -.88148E-07** at limit **
  11  norm          .10000E-03    11.145        .17873E-05** at limit **
  12  Prefactor     17.133        12.529        .78933E-07   -.45438E-04
  13  Prefactor     .10000E-03    42.397        .12839E-05** at limit **
  14  norm          .10000E-03    132.83       -.18319E-05** at limit **
  15  Prefactor     .10000E-03    15.512        .32549E-05** at limit **
  16  Prefactor     19.076        33.546        .20961E-06   -.37048E-04
  17  Prefactor     .10000E-03    20.634       -.22926E-05** at limit **
  18  Prefactor     .10000E-03    9.1373       -.41412E-07** at limit **
  19  Prefactor     36.934        22.870        .17538E-06    .11106E-04
  20  norm          .10000E-03    .49764        .16661E-07** at limit **
  21  Prefactor     12.686        10.953        .11468E-06   -.26550E-04
  22  Prefactor     .10000E-03    6.3030        .67739E-07** at limit **
  23  Prefactor     .10000E-03    12.647       -.15794E-05** at limit **
  24  Normalizat    .71132        .19213       -.50687E-06    .34912E-05
  25  Prefactor     1.1441        .14331       -.10735E-06    .19740E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.16544
  norm       = 1.25719
  norm       = 0.0001
  Prefactor  = 7.42296
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.9458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 17.1328
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 19.076
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.9335
  norm       = 0.0001
  Prefactor  = 12.6859
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.711322
  Prefactor  = 1.14411
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.761     FROM HESSE     STATUS=OK           419 CALLS     3290 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1654        8.3230        .14030E-03   -1.5136    
   2  norm          1.2572        .88101        .58965E-04   -1.5484    
   3  norm          .10000E-03    .66996        .12245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4230        8.4815        .73615E-03   -1.5163    
   5  norm          .10000E-03    1.5732        .94606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.946        35.461        .85475E-04   -1.4771    
   9  Prefactor     .10000E-03    1.1973        .82766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.133        12.530        .96756E-04   -1.4880    
  13  Prefactor     .10000E-03    42.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    133.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.076        33.603        .91695E-04   -1.4834    
  17  Prefactor     .10000E-03    21.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.1888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.934        22.820        .65942E-04   -1.4492    
  20  norm          .10000E-03    .50729        .10666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.686        11.004        .11246E-03   -1.4995    
  22  Prefactor     .10000E-03    6.4241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71132        .22198        .30150E-03   -1.0345    
  25  Prefactor     1.1441        .16569        .19176E-03   -.88069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03031e-09
Minuit parameter uncertainties:
  1  8.32415
  2  0.881016
  3  1.46064e-05
  4  8.48289
  5  8.47522e-07
  6  0.000192976
  7  1.47471e-06
  8  35.4952
  9  4.42308e-07
  10  9.16619e-06
  11  0.000204722
  12  12.5324
  13  0.000288933
  14  0.000681171
  15  0.000454093
  16  33.6364
  17  0.000352421
  18  5.6367e-06
  19  22.8254
  20  2.96002e-07
  21  11.0059
  22  4.21008e-06
  23  0.000194594
  24  0.22226
  25  0.165761
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  6.812e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.144e+00  1.658e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  7.113e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 3.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75080/likelihoodResults_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.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) = 6072.76122294
delta logL = -3.55253978341e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.6761181
delta logL = 0.0850693199991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1056       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .69190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6072.676     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1077        40.116        .57526E-02    .45941E-03
   2  alpha         5.0000        4.7171        .46268    ** at limit **
   3  Normalizat    .69191        .18477        .69033E-01    .15643E-04
   4  Prefactor     1.1508        .14380        .35911E-01   -.74371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10771
  alpha      = 5
  Normalizat = 0.691907
  Prefactor  = 1.15083
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.676     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1077        9.7500        .23010E-03   -1.5355    
   2  alpha         5.0000        4.2668        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .69191        .21334        .30550E-03   -1.0421    
   4  Prefactor     1.1508        .16521        .19128E-03   -.87858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21457e-10
Minuit parameter uncertainties:
  1  9.75497
  2  0.00135141
  3  0.213597
  4  0.165287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75080': 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) = 6072.67611773
delta logL = 0.085069685827

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.108e+00  9.755e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  1.351e-03  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.151e+00  1.653e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  6.919e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.888 20.768

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/75080/cmap_HighResolution_526003201_526262401_4FGL_J0803.5+2046_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-05', job_status='DONE', photon_flux_upper_limit='3.59e-08', time_completed='2021-08-28 23:19:45.517529', job_id='75080', GAL2='1.15', fit_tolerance='1e-08', EG2='0.69', EG='0.71', time_epoch_completed='1630217985.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='8.51e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1106' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 75080: <4FGL_J0803.5+2046_daily_bin1106> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1106> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:31 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:05:33 2021
Terminated at Sat Aug 28 23:19:46 2021
Results reported at Sat Aug 28 23:19:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1106 120.888 20.7678 526003201 526262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0803.5+2046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

