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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin753
RA = 125.8, Dec = 40.7077
tmin = 434505601, tmax = 434764801
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='425481', job_status='RUN', time_executed='2021-08-29 17:57:04.766898', time_epoch_executed='1630285024.77' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425481

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425481/ft1_4FGL_J0823.1+4042_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425481/ft1_4FGL_J0823.1+4042_daily_bin753.fits outfile=/scratch/kocevski/425481/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin753.fits ra=125.8 dec=40.7077 rad=12.0 tmin=434505601.0 tmax=434764801.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.99
user 5.70
sys 4.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425481/ft1_filtered_4FGL_J0823.1+4042_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/425481/ltcube_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.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/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits
.....................!
real 18.16
user 12.21
sys 5.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425481/ft1_filtered_4FGL_J0823.1+4042_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/425481/ltcube_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.fits outfile=/scratch/kocevski/425481/expmap_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.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/425481/ltcube_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.fits
.....................!
real 196.82
user 185.91
sys 10.44

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/425481/ft1_filtered_4FGL_J0823.1+4042_daily_bin753.fits scfile=/scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits outfile=/scratch/kocevski/425481/cmap_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.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.99
user 0.37
sys 4.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425481/ft1_filtered_4FGL_J0823.1+4042_daily_bin753.fits scfile=/scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits outfile=/scratch/kocevski/425481/cmap_HighResolution_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.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.58
user 0.38
sys 4.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425481/ft1_filtered_4FGL_J0823.1+4042_daily_bin753.fits', '/scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits', expMap='/scratch/kocevski/425481/expmap_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.fits', expCube='/scratch/kocevski/425481/ltcube_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425481/Model_4FGL_J0823.1+4042_daily_bin753.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/425481/ft1_filtered_4FGL_J0823.1+4042_daily_bin753.fits
Spacecraft file(s): /scratch/kocevski/425481/ft2_4FGL_J0823.1+4042_daily_bin753.fits
Exposure map: /scratch/kocevski/425481/expmap_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.fits
Exposure cube: /scratch/kocevski/425481/ltcube_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425481/Model_4FGL_J0823.1+4042_daily_bin753.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) = 4549.38974127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.081       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16657E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8362       1.0000         .10000E-03   10000.    
    16 'norm      '    13.355       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4311       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1035       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4964       1.0000         .10000E-03   10000.    
    26 'norm      '    21.293       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1577       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82836       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=   4549.333     FROM MIGRAD    STATUS=CONVERGED   1319 CALLS     4346 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.274        .18142E-02** at limit **
   2  Prefactor     .10000E-03    9.1740        .18142E-02** at limit **
   3  Prefactor     16.080        20.568        .99877E-04    .21058E-04
   4  norm          .10000E-03    3.4169        .12164E-02** at limit **
   5  norm          1.7174        2.0840        .10466E-03   -.13143E-04
   6  Prefactor     8.0412        9.5910        .14142E-03    .65597E-04
   7  Prefactor     .10000E-03    105.92        .18142E-02** at limit **
   8  Prefactor     .10000E-03    9.5088        .37078E-01** at limit **
   9  norm          .10000E-03    .83387        .60097E-03** at limit **
  10  norm          1.0449        .77833        .48180E-04    .22133E-03
  11  Prefactor     .10000E-03    31.516        .18142E-02** at limit **
  12  Prefactor     15.591        14.106        .10145E-03    .55693E-04
  13  Prefactor     .10000E-03    2.3788        .19947E-03** at limit **
  14  Prefactor     .10000E-03    78.589        .18142E-02** at limit **
  15  Prefactor     9.8413        13.343        .12777E-03   -.45379E-05
  16  norm          13.356        8.9438        .10961E-03    .19604E-04
  17  norm          2.4301        10.553        .13123E-02    .14303E-04
  18  Prefactor     .10000E-03    1.8210        .87929E-03** at limit **
  19  Prefactor     .10000E-03    41.513        .18142E-02** at limit **
  20  Prefactor     4.4515        7.4230        .19084E-03    .20255E-05
  21  Prefactor     .10000E-03    16.251        .18142E-02** at limit **
  22  Prefactor     8.1033        5.7370        .11898E-03    .21376E-03
  23  Prefactor     .10000E-03    61.688        .18142E-02** at limit **
  24  norm          .10000E-03    .70198        .75964E-03** at limit **
  25  Prefactor     2.5038        4.7640        .18735E-03    .40894E-03
  26  norm          21.278        16.070        .86800E-04    .27112E-04
  27  Prefactor     1.1570        3.1422        .18285E-03    .36621E-04
  28  Normalizat    1.0587        .23337        .24699E-03    .13358E-03
  29  Prefactor     .82835        .17671        .22104E-03    .21319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.08
  norm       = 0.0001
  norm       = 1.71742
  Prefactor  = 8.04121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.04493
  Prefactor  = 0.0001
  Prefactor  = 15.5914
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.84126
  norm       = 13.3562
  norm       = 2.43006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.45153
  Prefactor  = 0.0001
  Prefactor  = 8.10328
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.50377
  norm       = 21.2779
  Prefactor  = 1.15699
  Normalizat = 1.05868
  Prefactor  = 0.828351
 **********
 **   18 **HESSE 
 **********

 FCN=   4549.333     FROM HESSE     STATUS=OK           535 CALLS     4881 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.080        20.567        .39951E-05   -1.4906    
   4  norm          .10000E-03    3.4170        .24329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7174        2.0840        .41865E-05   -1.5446    
   6  Prefactor     8.0412        9.5901        .56569E-05   -1.5141    
   7  Prefactor     .10000E-03    105.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4648        .47144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .83387        .12019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0449        .77807        .19272E-05   -1.5504    
  11  Prefactor     .10000E-03    31.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.591        14.107        .40581E-05   -1.4918    
  13  Prefactor     .10000E-03    2.3789        .39894E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    78.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8413        13.341        .51107E-05   -1.5080    
  16  norm          13.356        8.9346        .43842E-05   -1.4977    
  17  norm          2.4301        10.523        .52491E-04   -1.5396    
  18  Prefactor     .10000E-03    1.8214        .17586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4515        7.4227        .76335E-05   -1.5286    
  21  Prefactor     .10000E-03    16.252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.1033        5.7353        .47590E-05   -1.5139    
  23  Prefactor     .10000E-03    61.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .70237        .15193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5038        4.7601        .74939E-05   -1.5391    
  26  norm          21.278        16.066        .34720E-05   -1.4785    
  27  Prefactor     1.1570        3.1409        .73141E-05   -1.5493    
  28  Normalizat    1.0587        .23358        .98795E-05   -.91090    
  29  Prefactor     .82835        .17684        .44208E-04   -.98692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8975e-10
Minuit parameter uncertainties:
  1  1.20368e-05
  2  1.23849e-05
  3  20.5761
  4  2.70102e-06
  5  2.08406
  6  9.59197
  7  9.94472e-05
  8  4.45201e-05
  9  6.13812e-07
  10  0.778081
  11  0.00010922
  12  14.1104
  13  1.62358e-05
  14  0.000768045
  15  13.3453
  16  8.9355
  17  10.1167
  18  7.31462e-06
  19  0.000393379
  20  7.42426
  21  2.26552e-05
  22  5.73571
  23  0.000435455
  24  4.79858e-06
  25  4.7608
  26  16.069
  27  3.14136
  28  0.233808
  29  0.17696
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.559e+01  1.411e+01  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:  8.284e-01  1.770e-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:  1.059e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 4.11e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.25e-05

TS (Fixed Index): 1.98
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425481/likelihoodResults_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.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) = 4549.16540491
delta logL = 0.167848047278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4549.16461197
delta logL = 0.16864099172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.164       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0890       1.0000          .0000       10.000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82024       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=   4549.165     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.174        25.147        .79855E-04    .40147E-04
   2  Index         2.0889        .57696        .64072E-02    .16945E-03
   3  Normalizat    1.0702        .21474        .24580E-03    .28214E-05
   4  Prefactor     .82020        .17261        .22191E-03   -.31661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.1736
  Index      = 2.08891
  Normalizat = 1.07017
  Prefactor  = 0.820199
 **********
 **   18 **HESSE 
 **********

 FCN=   4549.165     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.174        24.603        .31942E-05   -1.4704    
   2  Index         2.0889        .56455        .12814E-02   -.62146    
   3  Normalizat    1.0702        .21482        .98319E-05   -.90715    
   4  Prefactor     .82020        .17268        .88764E-05   -.98988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44216e-11
Minuit parameter uncertainties:
  1  24.6132
  2  0.566381
  3  0.214998
  4  0.172798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425481': 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) = 4549.1646116
delta logL = 0.168641354843

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.517e+01  2.461e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.089e+00  5.664e-01  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:  8.202e-01  1.728e-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:  1.070e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.09 +/- 0.57
Photon Flux (Free Index): 3.96e-08 +/- 3.59e-08
Energy Flux (Free Index): 2.23e-05 +/- 2.69e-05

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/425481/cmap_HighResolution_434505601_434764801_4FGL_J0823.1+4042_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='2.23e-05', photon_flux_error='4.11e-08', dlogl='1.69e-01', energy_flux='1.39e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2021-08-29 18:11:21.914004', photon_index_error2='0.57', photon_index2='2.09', ts='1.98', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='2.69e-05', EG='1.06', time_epoch_completed='1630285881.91', return_code='0', job_id='425481', GAL2='0.82', EG2='1.07', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.59e-08', ts2='2.33', photon_index='2.46' WHERE bin_id='753' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:11:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 425481: <4FGL_J0823.1+4042_daily_bin753> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin753> 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) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:36 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:36 2021
Terminated at Sun Aug 29 18:11:22 2021
Results reported at Sun Aug 29 18:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin753 125.8 40.7077 434505601 434764801 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 :                                   924.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

