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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin547
RA = 125.8, Dec = 40.7077
tmin = 381110401, tmax = 381369601
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='424099', job_status='RUN', time_executed='2021-08-29 17:52:40.632911', time_epoch_executed='1630284760.63' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424099/ft1_4FGL_J0823.1+4042_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424099/ft2_4FGL_J0823.1+4042_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424099/ft1_4FGL_J0823.1+4042_daily_bin547.fits outfile=/scratch/kocevski/424099/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin547.fits ra=125.8 dec=40.7077 rad=12.0 tmin=381110401.0 tmax=381369601.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 5.16
user 4.41
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424099/ft2_4FGL_J0823.1+4042_daily_bin547.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/424099/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/424099/ft1_filtered_4FGL_J0823.1+4042_daily_bin547.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.87
user 0.32
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424099/ft1_filtered_4FGL_J0823.1+4042_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/424099/ft2_4FGL_J0823.1+4042_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/424099/ltcube_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.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/424099/ft2_4FGL_J0823.1+4042_daily_bin547.fits
.....................!
real 12.00
user 11.16
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424099/ft1_filtered_4FGL_J0823.1+4042_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/424099/ft2_4FGL_J0823.1+4042_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/424099/ltcube_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.fits outfile=/scratch/kocevski/424099/expmap_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.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/424099/ltcube_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.fits
.....................!
real 192.19
user 185.22
sys 6.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/424099/ft1_filtered_4FGL_J0823.1+4042_daily_bin547.fits scfile=/scratch/kocevski/424099/ft2_4FGL_J0823.1+4042_daily_bin547.fits outfile=/scratch/kocevski/424099/cmap_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.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 0.90
user 0.36
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424099/ft1_filtered_4FGL_J0823.1+4042_daily_bin547.fits scfile=/scratch/kocevski/424099/ft2_4FGL_J0823.1+4042_daily_bin547.fits outfile=/scratch/kocevski/424099/cmap_HighResolution_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.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 0.84
user 0.37
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26373E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.352       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.250       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6619       1.0000         .10000E-03   10000.    
    10 'norm      '    .62064E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7269       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.181       1.0000         .10000E-03   10000.    
    16 'norm      '    17.051       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.597       1.0000         .10000E-03   10000.    
    24 'norm      '    .10784E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5177       1.0000         .10000E-03   10000.    
    26 'norm      '    8.2780       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7608       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3183       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79272       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=   6677.700     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3760 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.990        14.790        .63225E-06    .45890E-04
   2  Prefactor     .10000E-03    6.2714       -.60167E-07** at limit **
   3  Prefactor     13.355        12.586       -.33806E-06   -.20639E-04
   4  norm          .10000E-03    5.3690       -.38213E-08** at limit **
   5  norm          .10000E-03    1.0824        .16981E-07** at limit **
   6  Prefactor     .10000E-03    6.0003       -.70178E-07** at limit **
   7  Prefactor     33.255        44.422        .34287E-05    .71616E-04
   8  Prefactor     .10000E-03    3.0755        .42315E-08** at limit **
   9  norm          5.6621        2.5040        .11108E-07    .34198E-04
  10  norm          .50892E-02    .34964        .33392E-07   -.16966E-03
  11  Prefactor     28.849        34.498       -.35133E-05   -.12044E-03
  12  Prefactor     28.178        18.366       -.15379E-05   -.17259E-03
  13  Prefactor     5.7261        3.6095        .47068E-06   -.18858E-02
  14  Prefactor     .10000E-03    15.157        .97814E-06** at limit **
  15  Prefactor     20.181        13.894       -.10982E-06   -.47230E-04
  16  norm          17.049        8.0298        .20914E-06    .49814E-04
  17  norm          3.9898        3.5869        .27473E-06   -.18188E-02
  18  Prefactor     .10000E-03    1.0102        .74174E-07** at limit **
  19  Prefactor     .10000E-03    112.30        .11578E-05** at limit **
  20  Prefactor     .10000E-03    1.3372       -.13431E-06** at limit **
  21  Prefactor     26.799        45.621       -.41004E-05   -.63104E-04
  22  Prefactor     .10000E-03    4.8440        .13643E-06** at limit **
  23  Prefactor     24.597        45.153        .24772E-05    .35516E-04
  24  norm          .10000E-03    .39986        .73337E-07** at limit **
  25  Prefactor     2.5251        3.7068       -.14410E-06   -.44472E-03
  26  norm          8.2736        21.694       -.27798E-06    .17451E-04
  27  Prefactor     1.7595        3.1294       -.69995E-07   -.31228E-03
  28  Normalizat    1.3183        .20084       -.64420E-07   -.88217E-04
  29  Prefactor     .79279        .14487       -.25026E-06   -.73927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9904
  Prefactor  = 0.0001
  Prefactor  = 13.3551
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2552
  Prefactor  = 0.0001
  norm       = 5.6621
  norm       = 0.00508917
  Prefactor  = 28.8487
  Prefactor  = 28.1783
  Prefactor  = 5.72609
  Prefactor  = 0.0001
  Prefactor  = 20.1808
  norm       = 17.0495
  norm       = 3.98979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7988
  Prefactor  = 0.0001
  Prefactor  = 24.5973
  norm       = 0.0001
  Prefactor  = 2.52511
  norm       = 8.27363
  Prefactor  = 1.75952
  Normalizat = 1.31828
  Prefactor  = 0.79279
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.700     FROM HESSE     STATUS=OK           565 CALLS     4325 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.990        14.809        .10344E-03   -1.4933    
   2  Prefactor     .10000E-03    35.792        .39463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.355        12.591        .10962E-03   -1.4977    
   4  norm          .10000E-03    5.3800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0938        .82944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.255        44.518        .69492E-04   -1.4554    
   8  Prefactor     .10000E-03    3.1062        .13979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6621        2.5041        .83735E-04   -1.5232    
  10  norm          .50892E-02    .35457        .15360E-01   -1.5694    
  11  Prefactor     28.849        34.733        .74582E-04   -1.4633    
  12  Prefactor     28.178        18.550        .75479E-04   -1.4646    
  13  Prefactor     5.7261        4.0493        .60329E-03   -1.5229    
  14  Prefactor     .10000E-03    15.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.181        13.933        .89159E-04   -1.4809    
  16  norm          17.049        8.0564        .96992E-04   -1.4882    
  17  norm          3.9898        4.8701        .96746E-03   -1.5308    
  18  Prefactor     .10000E-03    1.0186        .80156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    112.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3383        .92287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.799        45.765        .77377E-04   -1.4672    
  22  Prefactor     .10000E-03    5.0178        .34904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.597        44.678        .80768E-04   -1.4716    
  24  norm          .10000E-03    .87251        .86809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5251        3.2340        .15845E-03   -1.5390    
  26  norm          8.2736        21.356        .13934E-03   -1.5133    
  27  Prefactor     1.7595        3.0914        .17782E-03   -1.5443    
  28  Normalizat    1.3183        .23478        .26234E-03   -.83022    
  29  Prefactor     .79279        .16722        .25140E-03   -.99995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32959e-09
Minuit parameter uncertainties:
  1  14.8124
  2  4.0605e-05
  3  12.594
  4  2.18107e-06
  5  4.57599e-07
  6  2.82788e-05
  7  44.563
  8  4.55346e-06
  9  2.50419
  10  0.0841193
  11  34.757
  12  18.5538
  13  4.04946
  14  6.20677e-05
  15  13.9352
  16  8.05695
  17  4.87059
  18  7.71798e-07
  19  0.000144386
  20  1.99886e-06
  21  45.8253
  22  8.86336e-07
  23  44.7387
  24  5.11953e-07
  25  3.23424
  26  21.3757
  27  3.09172
  28  0.234967
  29  0.167328
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.818e+01  1.855e+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:  7.928e-01  1.673e-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.318e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.65e-05

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) = 6677.69593272
delta logL = 0.0042518285336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6677.69178485
delta logL = 0.00839970143625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.266       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5244       1.0000          .0000       10.000    
     3 'Normalizat'    1.3138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79485       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=   6677.692     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      233 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.262        23.051        .78165E-04    .44401E-03
   2  Index         2.5248        .56933        .52651E-02    .16114E-03
   3  Normalizat    1.3136        .21872        .26271E-03   -.51243E-03
   4  Prefactor     .79506        .16530        .25108E-03   -.64763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2624
  Index      = 2.52479
  Normalizat = 1.31359
  Prefactor  = 0.795063
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.692     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.262        21.702        .15633E-04   -1.4683    
   2  Index         2.5248        .53559        .21061E-03   -.51788    
   3  Normalizat    1.3136        .21852        .52543E-04   -.83162    
   4  Prefactor     .79506        .16524        .50216E-04   -.99911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30922e-10
Minuit parameter uncertainties:
  1  21.7089
  2  0.536954
  3  0.218671
  4  0.165347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424099': 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) = 6677.69178331
delta logL = 0.00840124246497

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.626e+01  2.171e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.525e+00  5.370e-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:  7.951e-01  1.653e-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.314e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.52 +/- 0.54
Photon Flux (Free Index): 8.65e-08 +/- 6.05e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/424099/cmap_HighResolution_381110401_381369601_4FGL_J0823.1+4042_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='2.44e-05', photon_flux_error='5.40e-08', dlogl='8.40e-03', energy_flux='2.51e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2021-08-29 18:06:09.806534', photon_index_error2='0.54', photon_index2='2.52', ts='4.77', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.32', time_epoch_completed='1630285569.81', return_code='0', job_id='424099', GAL2='0.80', EG2='1.31', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='6.05e-08', ts2='4.84', photon_index='2.46' WHERE bin_id='547' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:06:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 424099: <4FGL_J0823.1+4042_daily_bin547> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin547> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:51:07 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:51:09 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:51:09 2021
Terminated at Sun Aug 29 18:06:10 2021
Results reported at Sun Aug 29 18:06:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin547 125.8 40.7077 381110401 381369601 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 :                                   808.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

