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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin754
RA = 125.8, Dec = 40.7077
tmin = 434764801, tmax = 435024001
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='425483', job_status='RUN', time_executed='2021-08-29 17:57:12.877836', time_epoch_executed='1630285032.88' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425483/ft1_4FGL_J0823.1+4042_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425483/ft1_4FGL_J0823.1+4042_daily_bin754.fits outfile=/scratch/kocevski/425483/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin754.fits ra=125.8 dec=40.7077 rad=12.0 tmin=434764801.0 tmax=435024001.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 10.00
user 5.42
sys 4.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.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/425483/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.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 4.74
user 0.33
sys 4.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/425483/ltcube_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.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/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits
.....................!
real 17.05
user 11.89
sys 4.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/425483/ltcube_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.fits outfile=/scratch/kocevski/425483/expmap_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.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/425483/ltcube_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.fits
.....................!
real 197.14
user 186.89
sys 9.03

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

Setting source of interest to:
4FGL J0823.1+4042 @ 125.8 40.7077

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits scfile=/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits outfile=/scratch/kocevski/425483/cmap_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.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=125.8 yref=40.7077 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 4.13
user 0.37
sys 3.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits scfile=/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits outfile=/scratch/kocevski/425483/cmap_HighResolution_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.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=125.8 yref=40.7077 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 4.49
user 0.37
sys 4.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425483/Model_4FGL_J0823.1+4042_daily_bin754.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/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits.....................!
real 52.36
user 46.22
sys 5.82

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits', '/scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits', expMap='/scratch/kocevski/425483/expmap_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.fits', expCube='/scratch/kocevski/425483/ltcube_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425483/Model_4FGL_J0823.1+4042_daily_bin754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0823.1+4042'

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/425483/ft1_filtered_4FGL_J0823.1+4042_daily_bin754.fits
Spacecraft file(s): /scratch/kocevski/425483/ft2_4FGL_J0823.1+4042_daily_bin754.fits
Exposure map: /scratch/kocevski/425483/expmap_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.fits
Exposure cube: /scratch/kocevski/425483/ltcube_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425483/Model_4FGL_J0823.1+4042_daily_bin754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4682.73677839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.450       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0330       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.365       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.277       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7647       1.0000         .10000E-03   10000.    
    17 'norm      '    7.0585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.085       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.4586       1.0000         .10000E-03   10000.    
    26 'norm      '    3.1659       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .45118E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70758       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4682.708     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3749 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.448        .57553E-07** at limit **
   2  Prefactor     .10000E-03    18.514       -.72312E-06** at limit **
   3  Prefactor     .10000E-03    10.920        .28797E-06** at limit **
   4  norm          14.452        14.342       -.66637E-06   -.30320E-04
   5  norm          6.4855        3.7715       -.58477E-06   -.10936E-04
   6  Prefactor     .10000E-03    4.3787        .18643E-06** at limit **
   7  Prefactor     27.440        46.969        .31172E-05    .13760E-05
   8  Prefactor     3.0333        5.2438       -.86364E-06   -.48337E-03
   9  norm          .10000E-03    1.4524       -.34451E-07** at limit **
  10  norm          .28891        .31169        .19314E-07    .28821E-03
  11  Prefactor     .10000E-03    13.456       -.14235E-06** at limit **
  12  Prefactor     .10000E-03    7.0567       -.87561E-07** at limit **
  13  Prefactor     3.8217        3.5370       -.38206E-07   -.27210E-03
  14  Prefactor     32.366        31.771        .11881E-05    .61949E-05
  15  Prefactor     17.276        14.259       -.47070E-06    .18081E-05
  16  norm          7.7648        6.8373       -.31499E-06   -.65973E-04
  17  norm          7.0586        6.5400       -.16717E-06    .30704E-04
  18  Prefactor     1.5986        2.1741       -.29842E-06   -.28615E-03
  19  Prefactor     31.894        86.308        .96891E-05    .52730E-05
  20  Prefactor     .10000E-03    2.1742       -.61880E-07** at limit **
  21  Prefactor     .10000E-03    53.519        .68955E-06** at limit **
  22  Prefactor     .10000E-03    3.1238        .53634E-07** at limit **
  23  Prefactor     50.073        34.801       -.10789E-04   -.59444E-04
  24  norm          .10000E-03    .35292       -.35786E-06** at limit **
  25  Prefactor     6.4527        4.7988        .14160E-05    .88427E-03
  26  norm          3.1717        19.279        .16135E-04    .34404E-04
  27  Prefactor     .61104E-01    1.8670       -.55298E-06    .12687E-03
  28  Normalizat    .70777        .19920        .27444E-06    .68167E-04
  29  Prefactor     1.0212        .15296        .15288E-06    .68910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4518
  norm       = 6.48549
  Prefactor  = 0.0001
  Prefactor  = 27.4396
  Prefactor  = 3.03334
  norm       = 0.0001
  norm       = 0.288914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82173
  Prefactor  = 32.3664
  Prefactor  = 17.2758
  norm       = 7.76478
  norm       = 7.05858
  Prefactor  = 1.59864
  Prefactor  = 31.8941
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 50.0732
  norm       = 0.0001
  Prefactor  = 6.45275
  norm       = 3.1717
  Prefactor  = 0.0611044
  Normalizat = 0.707773
  Prefactor  = 1.02125
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.708     FROM HESSE     STATUS=OK           559 CALLS     4308 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.452        14.363        .10537E-03   -1.4947    
   5  norm          6.4855        3.7679        .97211E-04   -1.5199    
   6  Prefactor     .10000E-03    4.3898        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.440        46.990        .76481E-04   -1.4660    
   8  Prefactor     3.0333        5.2382        .19202E-03   -1.5360    
   9  norm          .10000E-03    1.5076        .16104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28891        .30697        .38310E-04   -1.5600    
  11  Prefactor     .10000E-03    13.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0688        .17738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8217        3.5244        .11482E-03   -1.5317    
  14  Prefactor     32.366        31.742        .70433E-04   -1.4570    
  15  Prefactor     17.276        14.256        .96356E-04   -1.4876    
  16  norm          7.7648        6.8316        .14390E-03   -1.5151    
  17  norm          7.0586        6.5387        .15099E-03   -1.5177    
  18  Prefactor     1.5986        2.1485        .11291E-03   -1.5455    
  19  Prefactor     31.894        86.131        .70957E-04   -1.4578    
  20  Prefactor     .10000E-03    2.1778        .98536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2298        .23517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.073        33.959        .56665E-04   -1.4292    
  24  norm          .10000E-03    .59685        .72307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.4527        4.4587        .11180E-03   -1.5200    
  26  norm          3.1717        18.155        .22778E-03   -1.5352    
  27  Prefactor     .61104E-01    19.393        .17487E-02   -1.5659    
  28  Normalizat    .70777        .22667        .28450E-03   -1.0359    
  29  Prefactor     1.0212        .17438        .19900E-03   -.92025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28735e-09
Minuit parameter uncertainties:
  1  5.43898e-06
  2  3.86001e-05
  3  6.64149e-06
  4  14.3663
  5  3.76806
  6  7.37594e-06
  7  47.0533
  8  5.23896
  9  5.76153e-09
  10  0.306972
  11  6.68121e-07
  12  3.0922e-06
  13  3.52459
  14  31.7585
  15  14.2586
  16  6.83229
  17  6.53937
  18  2.14858
  19  86.4694
  20  1.75832e-06
  21  0.000461737
  22  2.31063e-05
  23  33.9723
  24  2.67363e-05
  25  4.45889
  26  15.1835
  27  2.1761
  28  0.226973
  29  0.174481
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.092e-06  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.021e+00  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  7.078e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425483/likelihoodResults_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.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) = 4682.70890953
delta logL = -0.000673637524415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4682.708236
delta logL = -1.04184437077e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4323       1.0000          .0000       10.000    
     3 'Normalizat'    .70779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+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=   4682.708     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    67.678        .18142E-02** at limit **
   2  Index         2.3628        5.9597        .50000        .24003E-04
   3  Normalizat    .70777        .14474E-01    .28450E-03    .24775E-04
   4  Prefactor     1.0212        .12057E-01    .19900E-03    .43452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101995
  Index      = 2.36276
  Normalizat = 0.707773
  Prefactor  = 1.02125
 **********
 **   18 **HESSE 
 **********

 FCN=   4682.708     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10200E-03    286.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3628        6.9525        .50000       -.55559    
   3  Normalizat    .70777        .30872E-01    .11380E-04   -1.0359    
   4  Prefactor     1.0212        .25716E-01    .39800E-04   -.92025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57409e-08
Minuit parameter uncertainties:
  1  0.0480497
  2  572.576
  3  0.0308726
  4  0.0257165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425483': 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): 102
logL (Free Index) = 4682.70823544
delta logL = 4.54268047179e-07

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.020e-04  4.805e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.363e+00  5.726e+02  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.021e+00  2.572e-02  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  7.078e-01  3.087e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.800 40.708

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/425483/cmap_HighResolution_434764801_435024001_4FGL_J0823.1+4042_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-08-29 18:10:53.192083', job_id='425483', GAL2='1.02', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630285853.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='754' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 425483: <4FGL_J0823.1+4042_daily_bin754> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin754> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:55:35 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:55:37 2021
Terminated at Sun Aug 29 18:10:54 2021
Results reported at Sun Aug 29 18:10:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin754 125.8 40.7077 434764801 435024001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0823.1+4042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   879.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

