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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1115
RA = 120.888, Dec = 20.7678
tmin = 528336001, tmax = 528595201
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='75094', job_status='RUN', time_executed='2021-08-28 23:07:14.111310', time_epoch_executed='1630217234.11' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75094/ft1_4FGL_J0803.5+2046_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75094/ft1_4FGL_J0803.5+2046_daily_bin1115.fits outfile=/scratch/kocevski/75094/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1115.fits ra=120.888 dec=20.7678 rad=12.0 tmin=528336001.0 tmax=528595201.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 8.59
user 3.05
sys 5.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.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/75094/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/75094/ft1_filtered_4FGL_J0803.5+2046_daily_bin1115.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 5.74
user 0.31
sys 4.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75094/ft1_filtered_4FGL_J0803.5+2046_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/75094/ltcube_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.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/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.fits
.....................!
real 18.47
user 11.99
sys 6.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75094/ft1_filtered_4FGL_J0803.5+2046_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/75094/ltcube_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.fits outfile=/scratch/kocevski/75094/expmap_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.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/75094/ltcube_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.fits
.....................!
real 197.71
user 184.96
sys 11.62

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/75094/ft1_filtered_4FGL_J0803.5+2046_daily_bin1115.fits scfile=/scratch/kocevski/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.fits outfile=/scratch/kocevski/75094/cmap_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.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 5.55
user 0.35
sys 4.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75094/ft1_filtered_4FGL_J0803.5+2046_daily_bin1115.fits scfile=/scratch/kocevski/75094/ft2_4FGL_J0803.5+2046_daily_bin1115.fits outfile=/scratch/kocevski/75094/cmap_HighResolution_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.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 6.24
user 0.35
sys 4.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.804       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2293       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4159       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5746       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.220       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8858       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45833       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.639       1.0000         .10000E-03   10000.    
    20 'norm      '    .50414E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.630       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.071       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90218       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0684       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=   7764.885     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2952 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.801        13.226       -.23019E-05    .10021E-03
   2  norm          2.2290        1.1583       -.32990E-07   -.77440E-04
   3  norm          3.1589        2.1551        .10303E-06   -.19394E-03
   4  Prefactor     4.4154        10.977       -.87763E-06   -.21527E-03
   5  norm          2.0240        5.0447       -.22750E-06   -.91482E-03
   6  Prefactor     20.636        50.428       -.52181E-05    .49566E-04
   7  Prefactor     .10000E-03    10.082        .14703E-06** at limit **
   8  Prefactor     22.700        38.408       -.51324E-06    .46593E-05
   9  Prefactor     .10000E-03    .92593        .24727E-07** at limit **
  10  Prefactor     .10000E-03    27.497       -.20196E-05** at limit **
  11  norm          5.5728        9.7114       -.19885E-06   -.32166E-04
  12  Prefactor     .10000E-03    5.6835       -.59501E-06** at limit **
  13  Prefactor     41.205        66.280       -.11115E-04    .65287E-04
  14  norm          .10000E-03    20.563        .16459E-05** at limit **
  15  Prefactor     .10000E-03    10.418       -.22961E-07** at limit **
  16  Prefactor     2.8902        62.355        .11584E-04   -.49237E-04
  17  Prefactor     .32088        28.783       -.28485E-05   -.15357E-04
  18  Prefactor     1.5981        22.480       -.29095E-05   -.19301E-03
  19  Prefactor     57.666        26.110       -.38056E-06   -.19003E-04
  20  norm          .10000E-03    .57431        .32742E-07** at limit **
  21  Prefactor     10.638        9.5766       -.69381E-06   -.75990E-04
  22  Prefactor     .10000E-03    8.0629        .61811E-06** at limit **
  23  Prefactor     25.043        45.217       -.69380E-05    .51843E-04
  24  Normalizat    .90217        .18854        .16504E-05    .69140E-04
  25  Prefactor     1.0686        .13551        .66056E-06    .13605E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8006
  norm       = 2.22904
  norm       = 3.15887
  Prefactor  = 4.41544
  norm       = 2.02396
  Prefactor  = 20.6365
  Prefactor  = 0.0001
  Prefactor  = 22.6999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.57276
  Prefactor  = 0.0001
  Prefactor  = 41.2045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89016
  Prefactor  = 0.320878
  Prefactor  = 1.59806
  Prefactor  = 57.6662
  norm       = 0.000100002
  Prefactor  = 10.6384
  Prefactor  = 0.0001
  Prefactor  = 25.0434
  Normalizat = 0.902174
  Prefactor  = 1.06856
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.885     FROM HESSE     STATUS=OK           441 CALLS     3393 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.801        13.221        .10075E-03   -1.4913    
   2  norm          2.2290        1.1571        .65859E-04   -1.5409    
   3  norm          3.1589        2.2009        .76711E-04   -1.5352    
   4  Prefactor     4.4154        11.246        .19164E-03   -1.5288    
   5  norm          2.0240        4.9761        .24867E-03   -1.5423    
   6  Prefactor     20.636        47.761        .88192E-04   -1.4799    
   7  Prefactor     .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.700        38.356        .84039E-04   -1.4755    
   9  Prefactor     .10000E-03    .93779        .82750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5728        9.6957        .17016E-03   -1.5236    
  12  Prefactor     .10000E-03    5.7529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.205        65.531        .62436E-04   -1.4423    
  14  norm          .10000E-03    20.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8902        60.365        .23924E-03   -1.5368    
  17  Prefactor     .32088        32.981        .13229       -1.5595    
  18  Prefactor     1.5981        23.756        .33513E-03   -1.5455    
  19  Prefactor     57.666        24.340        .52841E-04   -1.4188    
  20  norm          .10000E-03    7.1603        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.638        9.4297        .12289E-03   -1.5056    
  22  Prefactor     .10000E-03    8.2292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.043        45.156        .80002E-04   -1.4707    
  24  Normalizat    .90217        .22227        .29859E-03   -.96384    
  25  Prefactor     1.0686        .15930        .21066E-03   -.90478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37776e-09
Minuit parameter uncertainties:
  1  13.2236
  2  1.15708
  3  2.20099
  4  11.2511
  5  4.97715
  6  47.8499
  7  4.07529e-06
  8  38.398
  9  5.12457e-07
  10  0.000140852
  11  9.6984
  12  1.01187e-05
  13  65.6454
  14  5.00399e-05
  15  2.99584e-05
  16  26.447
  17  6.50897
  18  12.3285
  19  24.344
  20  0.000257065
  21  9.43106
  22  1.8562e-05
  23  45.2181
  24  0.222493
  25  0.159374
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  5.004e-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:  1.069e+00  1.594e-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:  9.022e-01  2.225e-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: 1.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75094/likelihoodResults_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.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) = 7764.88567695
delta logL = -0.000231399531913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7764.8854494
delta logL = -3.85044222639e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7055       1.0000          .0000       5.0000    
     3 'Normalizat'    .90218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0686       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=   7764.885     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      261 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    286.54        .18142E-01** at limit **
   2  alpha         1.7191        3.0766        .50000        .32560E-07
   3  Normalizat    .90217        .16576E-01    .29859E-03    .30803E-04
   4  Prefactor     1.0686        .12698E-01    .21066E-03    .96396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71908
  Normalizat = 0.902173
  Prefactor  = 1.06856
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.885     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.704        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7191        2.8550        .20000E-01   -.31769    
   3  Normalizat    .90217        .20337        .11943E-04   -.96384    
   4  Prefactor     1.0686        .15587        .42132E-04   -.90478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55914e-10
Minuit parameter uncertainties:
  1  1.84486e-05
  2  881.158
  3  0.203547
  4  0.155933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75094': 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) = 7764.88544549
delta logL = 6.04995875619e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.845e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.719e+00  8.812e+02  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.069e+00  1.559e-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:  9.022e-01  2.035e-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/75094/cmap_HighResolution_528336001_528595201_4FGL_J0803.5+2046_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-05', job_status='DONE', photon_flux_upper_limit='1.95e-08', time_completed='2021-08-28 23:21:36.158226', job_id='75094', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630218096.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1115' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 75094: <4FGL_J0803.5+2046_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1115 120.888 20.7678 528336001 528595201 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 :                                   925.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

