/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 169 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0823.1+4042_daily_bin164
RA = 125.8, Dec = 40.7077
tmin = 281836801, tmax = 282096001
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='422254', job_status='RUN', time_executed='2021-08-29 17:49:13.139661', time_epoch_executed='1630284553.14' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422254/ft1_4FGL_J0823.1+4042_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422254/ft2_4FGL_J0823.1+4042_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422254/ft1_4FGL_J0823.1+4042_daily_bin164.fits outfile=/scratch/kocevski/422254/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin164.fits ra=125.8 dec=40.7077 rad=12.0 tmin=281836801.0 tmax=282096001.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 4.71
user 3.83
sys 0.81

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422254/ft1_filtered_4FGL_J0823.1+4042_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/422254/ft2_4FGL_J0823.1+4042_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/422254/ltcube_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.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/422254/ft2_4FGL_J0823.1+4042_daily_bin164.fits
.....................!
real 12.48
user 11.36
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422254/ft1_filtered_4FGL_J0823.1+4042_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/422254/ft2_4FGL_J0823.1+4042_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/422254/ltcube_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.fits outfile=/scratch/kocevski/422254/expmap_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.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/422254/ltcube_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.fits
.....................!
real 190.63
user 184.81
sys 5.41

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/422254/ft1_filtered_4FGL_J0823.1+4042_daily_bin164.fits scfile=/scratch/kocevski/422254/ft2_4FGL_J0823.1+4042_daily_bin164.fits outfile=/scratch/kocevski/422254/cmap_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.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 1.30
user 0.37
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422254/ft1_filtered_4FGL_J0823.1+4042_daily_bin164.fits scfile=/scratch/kocevski/422254/ft2_4FGL_J0823.1+4042_daily_bin164.fits outfile=/scratch/kocevski/422254/cmap_HighResolution_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.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 1.20
user 0.38
sys 0.76

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4434       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.709       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8111       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3157       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.771       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5392       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9576       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3544       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12910E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1505       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0237       1.0000         .10000E-03   10000.    
    26 'norm      '    10.699       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97957       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=   6670.201     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3160 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4424        8.4680       -.23823E-05   -.28700E-03
   2  Prefactor     6.7983        13.416       -.48962E-05   -.51816E-04
   3  Prefactor     20.711        18.842       -.70402E-05    .22093E-04
   4  norm          4.8112        9.8107       -.18078E-05   -.11272E-03
   5  norm          .10000E-03    1.1488        .61048E-08** at limit **
   6  Prefactor     .10000E-03    2.1083       -.17220E-06** at limit **
   7  Prefactor     .10000E-03    12.662       -.24197E-05** at limit **
   8  Prefactor     .10000E-03    4.1023        .15838E-06** at limit **
   9  norm          3.3156        2.0744       -.48565E-07    .16183E-04
  10  norm          1.1326        .57215        .20238E-06    .69246E-03
  11  Prefactor     .10000E-03    9.9363       -.56198E-05** at limit **
  12  Prefactor     30.773        15.359       -.48169E-05   -.49190E-05
  13  Prefactor     .10000E-03    .84492        .12886E-06** at limit **
  14  Prefactor     28.064        24.986       -.45798E-05    .12416E-04
  15  Prefactor     9.5415        11.687       -.25279E-05   -.33452E-04
  16  norm          2.9526        5.4086        .25091E-05   -.46395E-03
  17  norm          .10000E-03    3.1255       -.32345E-06** at limit **
  18  Prefactor     .10000E-03    .76447       -.12570E-07** at limit **
  19  Prefactor     .10000E-03    271.39       -.12806E-04** at limit **
  20  Prefactor     6.3553        4.7276        .19781E-06    .75658E-04
  21  Prefactor     .10000E-03    16.987        .33179E-06** at limit **
  22  Prefactor     .10000E-03    1.7393        .75804E-07** at limit **
  23  Prefactor     .10000E-03    10.325        .83298E-05** at limit **
  24  norm          1.1481        .77924        .50939E-07   -.73778E-03
  25  Prefactor     2.0395        4.9628       -.82433E-06   -.83075E-03
  26  norm          10.702        10.808       -.49636E-05   -.15937E-03
  27  Prefactor     .10000E-03    .78464        .10640E-06** at limit **
  28  Normalizat    1.0515        .18033        .43166E-05   -.11178E-03
  29  Prefactor     .97988        .14074        .38413E-06    .18406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44239
  Prefactor  = 6.79833
  Prefactor  = 20.7113
  norm       = 4.81125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31565
  norm       = 1.13255
  Prefactor  = 0.0001
  Prefactor  = 30.7727
  Prefactor  = 0.0001
  Prefactor  = 28.0645
  Prefactor  = 9.54146
  norm       = 2.95256
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.35533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14813
  Prefactor  = 2.03954
  norm       = 10.7017
  Prefactor  = 0.0001
  Normalizat = 1.0515
  Prefactor  = 0.979877
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.201     FROM HESSE     STATUS=OK           553 CALLS     3713 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4424        8.5023        .26173E-03   -1.5395    
   2  Prefactor     6.7983        13.402        .15389E-03   -1.5186    
   3  Prefactor     20.711        18.816        .88016E-04   -1.4797    
   4  norm          4.8112        9.8173        .18341E-03   -1.5269    
   5  norm          .10000E-03    1.1661        .85236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1102        .11579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2065        .32253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3156        2.0733        .90576E-04   -1.5344    
  10  norm          1.1326        .57626        .41622E-04   -1.5495    
  11  Prefactor     .10000E-03    9.9408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.773        15.322        .72230E-04   -1.4598    
  13  Prefactor     .10000E-03    .84969        .73270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.064        24.959        .75629E-04   -1.4648    
  15  Prefactor     9.5415        11.683        .12975E-03   -1.5090    
  16  norm          2.9526        5.3546        .23613E-03   -1.5364    
  17  norm          .10000E-03    3.1447        .14099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .77012        .69706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    273.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3553        4.7338        .14887E-03   -1.5204    
  21  Prefactor     .10000E-03    16.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0922        .20581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1481        .90699        .42167E-04   -1.5494    
  25  Prefactor     2.0395        5.8534        .20002E-03   -1.5422    
  26  norm          10.702        10.820        .12249E-03   -1.5054    
  27  Prefactor     .10000E-03    .78810        .70606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0515        .20751        .26348E-03   -.91325    
  29  Prefactor     .97988        .16354        .22190E-03   -.93403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79218e-09
Minuit parameter uncertainties:
  1  8.50647
  2  13.4082
  3  18.8209
  4  9.8206
  5  1.73887e-05
  6  1.07357e-05
  7  2.89317e-05
  8  4.39982e-05
  9  2.07333
  10  0.576262
  11  1.65176e-05
  12  15.3237
  13  1.15069e-05
  14  24.9687
  15  11.686
  16  5.35544
  17  2.12838e-05
  18  4.00985e-06
  19  0.0014366
  20  4.73412
  21  1.6379e-05
  22  3.74955e-05
  23  6.55281e-05
  24  0.906996
  25  5.85509
  26  10.8215
  27  4.68755e-06
  28  0.207668
  29  0.163623
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  3.077e+01  1.532e+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:  9.799e-01  1.636e-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.051e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.45
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 8.96e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.36e-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) = 6670.19180928
delta logL = 0.00871193511466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6670.17248986
delta logL = 0.0280313642352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.197       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5797       1.0000          .0000       10.000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98503       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.

 FCN=   6670.172     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.149        215.56        .19567E-02   -.60054E-04
   2  Index         2.5806        2.7703        .11499        .10338E-03
   3  Normalizat    1.0429        .92897E-01    .59782E-01    .15771E-04
   4  Prefactor     .98510        .61202E-01    .46080E-01    .10720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1485
  Index      = 2.58055
  Normalizat = 1.04293
  Prefactor  = 0.985095
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.172     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.149        26.666        .78268E-04   -1.4685    
   2  Index         2.5806        .61739        .44097E-02   -.50509    
   3  Normalizat    1.0429        .20090        .26438E-03   -.91606    
   4  Prefactor     .98510        .16239        .22140E-03   -.93228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49997e-09
Minuit parameter uncertainties:
  1  26.6785
  2  0.619458
  3  0.201049
  4  0.162474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422254': 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) = 6670.17248742
delta logL = 0.0280338026023

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.615e+01  2.668e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.581e+00  6.195e-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:  9.851e-01  1.625e-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.043e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.57
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.58 +/- 0.62
Photon Flux (Free Index): 9.53e-08 +/- 5.07e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/422254/cmap_HighResolution_281836801_282096001_4FGL_J0823.1+4042_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.96e-08', energy_flux2='2.55e-05', photon_flux_error='4.46e-08', dlogl='2.80e-02', energy_flux='2.74e-05', photon_flux2='9.53e-08', job_status='DONE', time_completed='2021-08-29 18:01:56.109434', photon_index_error2='0.62', photon_index2='2.58', ts='7.45', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.05', time_epoch_completed='1630285316.11', return_code='0', job_id='422254', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.07e-08', ts2='7.57', photon_index='2.46' WHERE bin_id='164' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:01:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 422254: <4FGL_J0823.1+4042_daily_bin164> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin164> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:47 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45: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 17:45:48 2021
Terminated at Sun Aug 29 18:01:56 2021
Results reported at Sun Aug 29 18:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin164 125.8 40.7077 281836801 282096001 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

