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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1066
RA = 120.888, Dec = 20.7678
tmin = 515635201, tmax = 515894401
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='73776', job_status='RUN', time_executed='2021-08-28 23:01:16.010491', time_epoch_executed='1630216876.01' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73776/ft1_4FGL_J0803.5+2046_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73776/ft2_4FGL_J0803.5+2046_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73776/ft1_4FGL_J0803.5+2046_daily_bin1066.fits outfile=/scratch/kocevski/73776/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1066.fits ra=120.888 dec=20.7678 rad=12.0 tmin=515635201.0 tmax=515894401.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 3.89
user 3.31
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73776/ft1_filtered_4FGL_J0803.5+2046_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/73776/ft2_4FGL_J0803.5+2046_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/73776/ltcube_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.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/73776/ft2_4FGL_J0803.5+2046_daily_bin1066.fits
.....................!
real 12.80
user 12.10
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73776/ft1_filtered_4FGL_J0803.5+2046_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/73776/ft2_4FGL_J0803.5+2046_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/73776/ltcube_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.fits outfile=/scratch/kocevski/73776/expmap_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.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/73776/ltcube_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.fits
.....................!
real 189.79
user 184.92
sys 4.52

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/73776/ft1_filtered_4FGL_J0803.5+2046_daily_bin1066.fits scfile=/scratch/kocevski/73776/ft2_4FGL_J0803.5+2046_daily_bin1066.fits outfile=/scratch/kocevski/73776/cmap_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.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 0.75
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73776/ft1_filtered_4FGL_J0803.5+2046_daily_bin1066.fits scfile=/scratch/kocevski/73776/ft2_4FGL_J0803.5+2046_daily_bin1066.fits outfile=/scratch/kocevski/73776/cmap_HighResolution_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.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 0.71
user 0.37
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.155       1.0000         .10000E-03   10000.    
     2 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.049       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.940       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    119.94       1.0000         .10000E-03   10000.    
    14 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21729E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1006       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43651E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8910       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95539       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6445.095     FROM MIGRAD    STATUS=CONVERGED   1054 CALLS     3400 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.153        17.608        .11044E-03    .13485E-04
   2  norm          .10000E-03    .71367        .12952E-03** at limit **
   3  norm          1.8402        2.6300        .10322E-03    .16664E-03
   4  Prefactor     10.056        15.998        .12641E-03    .72490E-04
   5  norm          3.2712        4.3015        .82282E-03   -.19412E-04
   6  Prefactor     74.862        49.053        .46382E-04    .67504E-04
   7  Prefactor     .10000E-03    7.2689        .18142E-02** at limit **
   8  Prefactor     33.046        39.978        .69696E-04    .86453E-05
   9  Prefactor     .10000E-03    1.3169        .89544E-03** at limit **
  10  Prefactor     .10000E-03    15.609        .18142E-02** at limit **
  11  norm          .10000E-03    8.8415        .18142E-02** at limit **
  12  Prefactor     25.505        14.618        .79318E-04    .14190E-04
  13  Prefactor     119.94        109.81        .36746E-04    .68065E-06
  14  norm          .10000E-03    130.23        .18142E-02** at limit **
  15  Prefactor     .10000E-03    7.5620        .18142E-02** at limit **
  16  Prefactor     .10018E-03    179.53        .54118E-02** at limit **
  17  Prefactor     .10000E-03    43.561        .18142E-02** at limit **
  18  Prefactor     .10000E-03    10.234        .18142E-02** at limit **
  19  Prefactor     .10000E-03    9.3409        .18142E-02** at limit **
  20  norm          1.1011        .99238        .70965E-04    .20312E-02
  21  Prefactor     .10172E-01    14.723        .52573E-01    .76139E-03
  22  Prefactor     4.8916        4.6937        .16517E-03    .19444E-03
  23  Prefactor     .10000E-03    11.369        .18142E-02** at limit **
  24  Normalizat    1.0965        .23971        .27219E-03    .47001E-03
  25  Prefactor     .95541        .17195        .21895E-03    .34713E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1534
  norm       = 0.0001
  norm       = 1.84018
  Prefactor  = 10.0559
  norm       = 3.27115
  Prefactor  = 74.862
  Prefactor  = 0.0001
  Prefactor  = 33.0464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5053
  Prefactor  = 119.942
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1011
  Prefactor  = 0.0101724
  Prefactor  = 4.89157
  Prefactor  = 0.0001
  Normalizat = 1.09653
  Prefactor  = 0.955407
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.095     FROM HESSE     STATUS=OK           413 CALLS     3813 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.153        17.609        .44175E-05   -1.4982    
   2  norm          .10000E-03    .71367        .25904E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8402        2.6291        .41289E-05   -1.5437    
   4  Prefactor     10.056        15.991        .50562E-05   -1.5074    
   5  norm          3.2712        4.2953        .32913E-04   -1.5346    
   6  Prefactor     74.862        48.997        .92763E-05   -1.3975    
   7  Prefactor     .10000E-03    7.2695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.046        39.991        .27878E-05   -1.4558    
   9  Prefactor     .10000E-03    1.3170        .17909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.8417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.505        14.618        .31727E-05   -1.4697    
  13  Prefactor     119.94        109.82        .73491E-05   -1.3513    
  14  norm          .10000E-03    130.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10018E-03    187.65        .21647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1011        .98956        .28386E-05   -1.5498    
  21  Prefactor     .10172E-01    9.8605        .66075E-01   -1.5688    
  22  Prefactor     4.8916        4.6932        .66070E-05   -1.5266    
  23  Prefactor     .10000E-03    11.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0965        .23939        .54439E-04   -.89863    
  25  Prefactor     .95541        .17202        .43789E-04   -.94231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8149e-09
Minuit parameter uncertainties:
  1  17.6156
  2  2.34728e-06
  3  2.62922
  4  15.9978
  5  4.2957
  6  49.0237
  7  7.90106e-06
  8  40.0233
  9  8.15794e-07
  10  6.7627e-06
  11  9.85129e-06
  12  14.6203
  13  110.01
  14  0.000851292
  15  1.50096e-06
  16  0.0116105
  17  3.6793e-05
  18  2.87097e-05
  19  6.06551e-06
  20  0.989572
  21  0.630402
  22  4.69356
  23  5.00392e-06
  24  0.239629
  25  0.17212
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  8.513e-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:  9.554e-01  1.721e-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.097e+00  2.396e-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: 5.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73776/likelihoodResults_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.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) = 6445.09501467
delta logL = -3.64547140634e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.94730392
delta logL = 0.14767429496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.875       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95616       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.

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

 FCN=   6444.947     FROM MIGRAD    STATUS=FAILED        91 CALLS      318 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.887        88.959        .83750E-04   -.15746E-04
   2  alpha         3.8627        3.9450        .44304E-01    .18069E-03
   3  Normalizat    1.0772        .22411        .27435E-03   -.12021E-03
   4  Prefactor     .95615        .16921        .21885E-03   -.98493E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6444.947     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      396 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.887        88.959        .91187E-03   -1.4751    
   2  alpha         3.8627        3.9450        .50445E-02    .57650    
   3  Normalizat    1.0772        .22411        .30116E-03   -.90489    
   4  Prefactor     .95615        .16921        .29803E-03   -.94206    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6444.947     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      434 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.887        66.050        .33500E-05   -.67873E-05
   2  alpha         3.8627        1.6578        .88608E-02    .10559E-05
   3  Normalizat    1.0772        .22413        .10974E-04   -.12432E-05
   4  Prefactor     .95615        .16856        .87539E-05   -.77922E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 22.8868
  alpha      = 3.86275
  Normalizat = 1.07715
  Prefactor  = 0.956152
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.947     FROM HESSE     STATUS=OK            25 CALLS      459 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.887        62.905        .67000E-06   -1.4751    
   2  alpha         3.8627        1.6019        .35443E-03    .57651    
   3  Normalizat    1.0772        .22415        .21948E-05   -.90489    
   4  Prefactor     .95615        .16849        .17508E-05   -.94206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41285e-12
Minuit parameter uncertainties:
  1  63.0879
  2  1.82335
  3  0.224352
  4  0.168584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73776': 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) = 6444.94730389
delta logL = 0.147674321217

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.289e+01  6.309e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.863e+00  1.823e+00  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.562e-01  1.686e-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.077e+00  2.244e-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/73776/cmap_HighResolution_515635201_515894401_4FGL_J0803.5+2046_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2021-08-28 23:13:34.858758', job_id='73776', GAL2='0.96', fit_tolerance='1e-08', EG2='1.08', EG='1.10', time_epoch_completed='1630217614.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.48e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1066' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:13:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 73776: <4FGL_J0803.5+2046_daily_bin1066> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1066> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 23:00:54 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:00:55 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:00:55 2021
Terminated at Sat Aug 28 23:13:35 2021
Results reported at Sat Aug 28 23:13:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1066 120.888 20.7678 515635201 515894401 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 :                                   739.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

