/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1202
RA = 120.888, Dec = 20.7678
tmin = 550886401, tmax = 551145601
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='75228', job_status='RUN', time_executed='2021-08-28 23:07:25.688878', time_epoch_executed='1630217245.69' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75228/ft1_4FGL_J0803.5+2046_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75228/ft1_4FGL_J0803.5+2046_daily_bin1202.fits outfile=/scratch/kocevski/75228/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1202.fits ra=120.888 dec=20.7678 rad=12.0 tmin=550886401.0 tmax=551145601.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.60
user 3.51
sys 1.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.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/75228/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.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.42
user 0.32
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/75228/ltcube_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.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/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits
.....................!
real 13.35
user 11.94
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/75228/ltcube_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.fits outfile=/scratch/kocevski/75228/expmap_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.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/75228/ltcube_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.fits
.....................!
real 192.82
user 186.47
sys 5.79

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/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.fits scfile=/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits outfile=/scratch/kocevski/75228/cmap_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.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.44
user 0.36
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.fits scfile=/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits outfile=/scratch/kocevski/75228/cmap_HighResolution_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.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.42
user 0.37
sys 1.00

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.fits', '/scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits', expMap='/scratch/kocevski/75228/expmap_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.fits', expCube='/scratch/kocevski/75228/ltcube_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75228/Model_4FGL_J0803.5+2046_daily_bin1202.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/75228/ft1_filtered_4FGL_J0803.5+2046_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/75228/ft2_4FGL_J0803.5+2046_daily_bin1202.fits
Exposure map: /scratch/kocevski/75228/expmap_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.fits
Exposure cube: /scratch/kocevski/75228/ltcube_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75228/Model_4FGL_J0803.5+2046_daily_bin1202.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) = 7939.62282662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .77408E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0693       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14364E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45601E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5296       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.161       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.792       1.0000         .10000E-03   10000.    
    20 'norm      '    .28778       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99755       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7939.565     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3098 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1365         .0000    ** at limit **
   2  norm          .77314E-01    .56895         .0000        .26144E-02
   3  norm          2.4480        1.7268         .0000        .53423E-04
   4  Prefactor     1.0889        23.270         .0000        .11828E-02
   5  norm          4.0291        4.3938         .0000        .34132E-03
   6  Prefactor     3.0794        194.44         .0000        .86249E-03
   7  Prefactor     4.9420        16.208         .0000        .71036E-04
   8  Prefactor     65.196        45.573         .0000        .20004E-04
   9  Prefactor     .10000E-03    .96382         .0000    ** at limit **
  10  Prefactor     .10000E-03    14.313         .0000    ** at limit **
  11  norm          .10000E-03    11.345         .0000    ** at limit **
  12  Prefactor     7.5394        6.9543         .0000       -.16102E-03
  13  Prefactor     29.186        51.664         .0000        .41962E-04
  14  norm          .10000E-03    34.970         .0000    ** at limit **
  15  Prefactor     23.289        34.726         .0000       -.56843E-04
  16  Prefactor     .10000E-03    20.047         .0000    ** at limit **
  17  Prefactor     .10000E-03    11.697         .0000    ** at limit **
  18  Prefactor     .10000E-03    30.334         .0000    ** at limit **
  19  Prefactor     16.824        20.078         .0000       -.19095E-04
  20  norm          .28827        .94726         .0000        .26073E-02
  21  Prefactor     7.0298        8.5894         .0000        .34248E-02
  22  Prefactor     .10000E-03    3.0030         .0000    ** at limit **
  23  Prefactor     .10000E-03    16.353         .0000    ** at limit **
  24  Normalizat    1.0920        .18261         .0000        .28717E-04
  25  Prefactor     .99825        .12811         .0000        .10196E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0773137
  norm       = 2.44804
  Prefactor  = 1.08887
  norm       = 4.0291
  Prefactor  = 3.07944
  Prefactor  = 4.94205
  Prefactor  = 65.1959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.53936
  Prefactor  = 29.1857
  norm       = 0.0001
  Prefactor  = 23.2891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8238
  norm       = 0.288266
  Prefactor  = 7.02979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.092
  Prefactor  = 0.998252
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.565     FROM HESSE     STATUS=OK           431 CALLS     3529 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .77314E-01    1.3382        .12842E-02   -1.5652    
   3  norm          2.4480        1.6215        .71596E-04   -1.5395    
   4  Prefactor     1.0889        20.253        .47019E-03   -1.5499    
   5  norm          4.0291        4.2906        .16720E-03   -1.5306    
   6  Prefactor     3.0794        188.83        .20505E-02   -1.5357    
   7  Prefactor     4.9420        16.103        .18068E-03   -1.5263    
   8  Prefactor     65.196        44.673        .49740E-04   -1.4091    
   9  Prefactor     .10000E-03    6.3199        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5394        6.9408        .14615E-03   -1.5159    
  13  Prefactor     29.186        51.618        .74191E-04   -1.4627    
  14  norm          .10000E-03    34.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.289        34.717        .82953E-04   -1.4742    
  16  Prefactor     .10000E-03    20.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.824        19.664        .97738E-04   -1.4887    
  20  norm          .28827        .89363        .14175E-03   -1.5601    
  21  Prefactor     7.0298        8.5675        .75797E-03   -1.5178    
  22  Prefactor     .10000E-03    3.0255        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0920        .21498        .28054E-03   -.90009    
  25  Prefactor     .99825        .15212        .21647E-03   -.92788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.055e-10
Minuit parameter uncertainties:
  1  7.63764e-05
  2  0.642898
  3  1.62157
  4  9.39543
  5  4.29097
  6  48.3878
  7  16.1172
  8  44.6957
  9  3.25886e-05
  10  5.47953e-05
  11  5.11377e-05
  12  6.94155
  13  51.6968
  14  9.28263e-05
  15  34.7472
  16  7.73214e-05
  17  0.000148004
  18  2.45909e-05
  19  19.6717
  20  0.893673
  21  8.56899
  22  3.69795e-06
  23  8.45579e-05
  24  0.215155
  25  0.152181
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  9.283e-05  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:  9.983e-01  1.522e-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:  1.092e+00  2.152e-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: 2.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75228/likelihoodResults_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.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) = 7939.56505227
delta logL = -0.000136120900606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7939.56491859
delta logL = -2.44272632699e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .16379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99825       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=   7939.565     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      217 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.988        .90712E-02** at limit **
   2  alpha         .16791        2.6580        .50000       -.30159E-05
   3  Normalizat    1.0920        .16983        .63424E-01    .20622E-04
   4  Prefactor     .99825        .12658        .46245E-01    .42855E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 0.167915
  Normalizat = 1.092
  Prefactor  = 0.998251
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.565     FROM HESSE     STATUS=OK            27 CALLS      244 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .16791        2.6571        .20000E-01   -1.2022    
   3  Normalizat    1.0920        .19957        .28054E-03   -.90009    
   4  Prefactor     .99825        .14887        .21647E-03   -.92788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.248e-11
Minuit parameter uncertainties:
  1  4.5246e-05
  2  0.90081
  3  0.199706
  4  0.148927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75228': 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) = 7939.56491855
delta logL = -2.40989174927e-06

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  4.525e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.679e-01  9.008e-01  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:  9.983e-01  1.489e-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:  1.092e+00  1.997e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/75228/cmap_HighResolution_550886401_551145601_4FGL_J0803.5+2046_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='2.90e-08', time_completed='2021-08-28 23:21:00.749152', job_id='75228', GAL2='1.00', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630218060.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-2.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1202' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:21:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 75228: <4FGL_J0803.5+2046_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:43 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:44 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:44 2021
Terminated at Sat Aug 28 23:21:01 2021
Results reported at Sat Aug 28 23:21:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1202 120.888 20.7678 550886401 551145601 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 :                                   826.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

