/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 2 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_J0816.3+5739_daily_bin1202
RA = 124.1, Dec = 57.6616
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='360559', job_status='RUN', time_executed='2021-08-29 14:51:21.464616', time_epoch_executed='1630273881.46' WHERE source_name='4FGL J0816.3+5739' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360559

Creating custom pfile directory:
/scratch/kocevski/360559/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/360559/ft1_4FGL_J0816.3+5739_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/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360559/ft1_4FGL_J0816.3+5739_daily_bin1202.fits outfile=/scratch/kocevski/360559/ft1_filteredMKT_4FGL_J0816.3+5739_daily_bin1202.fits ra=124.1 dec=57.6616 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 3.86
user 3.54
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_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/360559/ft1_filteredMKT_4FGL_J0816.3+5739_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_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 0.62
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/360559/ltcube_550886401_551145601_4FGL_J0816.3+5739_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/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits
.....................!
real 11.66
user 11.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/360559/ltcube_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.fits outfile=/scratch/kocevski/360559/expmap_550886401_551145601_4FGL_J0816.3+5739_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/360559/ltcube_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.fits
.....................!
real 190.02
user 185.20
sys 4.06

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

Setting source of interest to:
4FGL J0816.3+5739 @ 124.1 57.6616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits scfile=/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits outfile=/scratch/kocevski/360559/cmap_550886401_551145601_4FGL_J0816.3+5739_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=124.1 yref=57.6616 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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits scfile=/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits outfile=/scratch/kocevski/360559/cmap_HighResolution_550886401_551145601_4FGL_J0816.3+5739_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=124.1 yref=57.6616 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360559/Model_4FGL_J0816.3+5739_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/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits......................!
real 35.04
user 33.66
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits', '/scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits', expMap='/scratch/kocevski/360559/expmap_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.fits', expCube='/scratch/kocevski/360559/ltcube_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360559/Model_4FGL_J0816.3+5739_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0816.3+5739'

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  5.498e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.085e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/360559/ft1_filtered_4FGL_J0816.3+5739_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/360559/ft2_4FGL_J0816.3+5739_daily_bin1202.fits
Exposure map: /scratch/kocevski/360559/expmap_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.fits
Exposure cube: /scratch/kocevski/360559/ltcube_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360559/Model_4FGL_J0816.3+5739_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) = 2505.34481253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.355       1.0000         .10000E-03   10000.    
     5 'Prefactor '    107.76       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2475       1.0000         .10000E-03   10000.    
     7 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.513       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .24249E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.779       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4090       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .67552E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7533       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.680       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.8551       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.357       1.0000         .10000E-03   10000.    
    30 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3694       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2505.333     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4337 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.718        .30192E-06** at limit **
   2  Prefactor     .10000E-03    18.209       -.90603E-08** at limit **
   3  Prefactor     .10000E-03    55.130       -.55562E-06** at limit **
   4  Prefactor     56.352        49.468        .11084E-05    .52408E-04
   5  Prefactor     107.76        71.077        .20591E-06    .60439E-05
   6  Prefactor     8.2461        704.26        .48791E-05    .44793E-05
   7  norm          .10000E-03    .95794        .24600E-07** at limit **
   8  Prefactor     11.500        28.912       -.87260E-06   -.19352E-04
   9  norm          5.6813        8.6856        .18542E-05    .58253E-05
  10  Prefactor     .10000E-03    21.019       -.90044E-06** at limit **
  11  norm          .10000E-03    5.2850       -.22566E-05** at limit **
  12  Prefactor     15.734        43.067        .66739E-05    .33255E-04
  13  norm          .10000E-03    9.1118        .25259E-06** at limit **
  14  norm          .10000E-03    2.9904        .43736E-07** at limit **
  15  Prefactor     2.9658        2.9409        .62973E-06    .62544E-03
  16  Prefactor     3.4054        19.422        .49114E-05    .37784E-04
  17  Prefactor     .10000E-03    9.0858       -.81136E-07** at limit **
  18  Prefactor     .10000E-03    17.808        .38191E-06** at limit **
  19  Prefactor     .10000E-03    28.721        .77903E-06** at limit **
  20  norm          .10000E-03    17.352       -.54892E-05** at limit **
  21  norm          1.7656        25.628        .13914E-04   -.25665E-04
  22  Prefactor     .10000E-03    11.443       -.20046E-06** at limit **
  23  Prefactor     33.681        22.018        .39993E-06    .69925E-04
  24  Prefactor     .10000E-03    26.302        .86910E-07** at limit **
  25  Prefactor     .10000E-03    48.633        .27017E-06** at limit **
  26  norm          1.8555        1.6308        .32879E-07   -.27961E-04
  27  Prefactor     .10000E-03    7.4340        .96763E-07** at limit **
  28  Prefactor     .10000E-03    16.879        .57028E-06** at limit **
  29  Prefactor     10.352        20.631        .25564E-06   -.29527E-04
  30  norm          .10000E-03    79.703        .47251E-06** at limit **
  31  Normalizat    1.3691        .33448       -.20411E-05    .22689E-03
  32  Prefactor     .80244        .23465       -.14554E-05    .18680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.3515
  Prefactor  = 107.763
  Prefactor  = 8.24611
  norm       = 0.0001
  Prefactor  = 11.4999
  norm       = 5.68134
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.7338
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.96578
  Prefactor  = 3.40541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 1.7656
  Prefactor  = 0.0001
  Prefactor  = 33.6809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3523
  norm       = 0.0001
  Normalizat = 1.36914
  Prefactor  = 0.802437
 **********
 **   18 **HESSE 
 **********

 FCN=   2505.333     FROM HESSE     STATUS=OK           651 CALLS     4988 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.717        .16006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.352        49.380        .53436E-04   -1.4205    
   5  Prefactor     107.76        71.000        .38742E-04   -1.3628    
   6  Prefactor     8.2461        704.58        .13960E-03   -1.5134    
   7  norm          .10000E-03    1.2477        .94761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.500        28.788        .11807E-03   -1.5030    
   9  norm          5.6813        8.6034        .77777E-03   -1.5231    
  10  Prefactor     .10000E-03    21.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.070        .21637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.734        43.305        .10083E-03   -1.4914    
  13  norm          .10000E-03    9.3043        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0500        .84474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9658        2.9308        .41000E-03   -1.5364    
  16  Prefactor     3.4054        19.140        .10955E-02   -1.5339    
  17  Prefactor     .10000E-03    9.2110        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    52.510        .37507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7656        27.144        .15829E-02   -1.5442    
  22  Prefactor     .10000E-03    11.448        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.681        22.001        .69049E-04   -1.4547    
  24  Prefactor     .10000E-03    26.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    48.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.8555        1.6237        .56104E-04   -1.5436    
  27  Prefactor     .10000E-03    7.4855        .13327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.352        20.637        .12450E-03   -1.5064    
  30  norm          .10000E-03    80.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3691        .37742        .27131E-03   -.81525    
  32  Prefactor     .80244        .26697        .24989E-03   -.99639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66023e-10
Minuit parameter uncertainties:
  1  2.01854e-05
  2  1.68527e-05
  3  0.00030837
  4  49.4158
  5  71.056
  6  154.363
  7  2.99208e-06
  8  28.8226
  9  8.60527
  10  0.000109607
  11  1.08992e-05
  12  43.3913
  13  5.26362e-06
  14  5.71191e-06
  15  2.93096
  16  16.1542
  17  3.36662e-05
  18  2.88087e-05
  19  8.41842e-05
  20  0.000595453
  21  13.8528
  22  3.28882e-05
  23  22.0059
  24  2.85117e-05
  25  3.26364e-05
  26  1.62372
  27  1.80576e-05
  28  6.09683e-05
  29  20.6509
  30  0.000203226
  31  0.37819
  32  0.267399
Done.

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

Extracting fit parameters...

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  3.405e+00  1.615e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.085e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  8.024e-01  2.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  1.369e+00  3.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 124.100 57.662
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360559/likelihoodResults_550886401_551145601_4FGL_J0816.3+5739_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) = 2505.3333592
delta logL = 7.97715620138e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2505.33335487
delta logL = 1.23007980619e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4398       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0776       1.0000          .0000       10.000    
     3 'Normalizat'    1.3691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+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=   2505.333     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      248 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4377        24.336        .21808E-03    .27786E-03
   2  Index         2.0769        1.6904        .12249E-01    .10074E-03
   3  Normalizat    1.3692        .35766        .27131E-03   -.21014E-03
   4  Prefactor     .80241        .26299        .24989E-03   -.31477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43774
  Index      = 2.07685
  Normalizat = 1.3692
  Prefactor  = 0.802406
 **********
 **   18 **HESSE 
 **********

 FCN=   2505.333     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4377        21.982        .87232E-05   -1.5337    
   2  Index         2.0769        1.6125        .48997E-03   -.62442    
   3  Normalizat    1.3692        .35780        .54261E-04   -.81524    
   4  Prefactor     .80241        .26305        .49979E-04   -.99640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95598e-09
Minuit parameter uncertainties:
  1  17.395
  2  1.65826
  3  0.358456
  4  0.263462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360559': 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) = 2505.33335464
delta logL = 1.25384813146e-05

Extracting fit parameters...

4FGL J0816.3+5739
   Spectrum: PowerLaw
339    Prefactor:  3.438e+00  1.740e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.077e+00  1.658e+00  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  1.529e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  8.024e-01  2.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  1.369e+00  3.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 124.100 57.662

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/360559/cmap_HighResolution_550886401_551145601_4FGL_J0816.3+5739_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-08-29 15:02:09.169317', job_id='360559', GAL2='0.80', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630274529.17', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.25e-05', ts2='0.05', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1202' AND source_name='4FGL J0816.3+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 15:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 360559: <4FGL_J0816.3+5739_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0816.3+5739_daily_bin1202> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 14:50:47 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 14:50:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 14:50:48 2021
Terminated at Sun Aug 29 15:02:09 2021
Results reported at Sun Aug 29 15:02:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0816.3+5739_daily_bin1202 124.1 57.6616 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0816.3+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            682 sec.

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

