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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin825
RA = 125.8, Dec = 40.7077
tmin = 453168001, tmax = 453427201
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='425587', job_status='RUN', time_executed='2021-08-29 17:56:02.132342', time_epoch_executed='1630284962.13' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425587

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425587/ft1_4FGL_J0823.1+4042_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425587/ft2_4FGL_J0823.1+4042_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425587/ft1_4FGL_J0823.1+4042_daily_bin825.fits outfile=/scratch/kocevski/425587/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin825.fits ra=125.8 dec=40.7077 rad=12.0 tmin=453168001.0 tmax=453427201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.92
user 3.37
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425587/ft1_filtered_4FGL_J0823.1+4042_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/425587/ft2_4FGL_J0823.1+4042_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/425587/ltcube_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.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/425587/ft2_4FGL_J0823.1+4042_daily_bin825.fits
.....................!
real 12.27
user 11.55
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425587/ft1_filtered_4FGL_J0823.1+4042_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/425587/ft2_4FGL_J0823.1+4042_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/425587/ltcube_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.fits outfile=/scratch/kocevski/425587/expmap_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.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/425587/ltcube_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.fits
.....................!
real 191.36
user 186.09
sys 4.78

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/425587/ft1_filtered_4FGL_J0823.1+4042_daily_bin825.fits scfile=/scratch/kocevski/425587/ft2_4FGL_J0823.1+4042_daily_bin825.fits outfile=/scratch/kocevski/425587/cmap_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.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.85
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425587/ft1_filtered_4FGL_J0823.1+4042_daily_bin825.fits scfile=/scratch/kocevski/425587/ft2_4FGL_J0823.1+4042_daily_bin825.fits outfile=/scratch/kocevski/425587/cmap_HighResolution_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.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.86
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.846       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9584       1.0000         .10000E-03   10000.    
     5 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2130       1.0000         .10000E-03   10000.    
     9 'norm      '    7.2352       1.0000         .10000E-03   10000.    
    10 'norm      '    .12342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10551E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11242E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3858       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25568E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .35743       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.0482       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4140       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98813       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6789.970     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     3196 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1521       -.59489E-06** at limit **
   2  Prefactor     .10000E-03    4.2039       -.20400E-06** at limit **
   3  Prefactor     13.841        2.6066       -.24856E-06    .14987E-02
   4  norm          1.9591        1.2146       -.25943E-06   -.84168E-04
   5  norm          .10000E-03    4.3274        .10727E-06** at limit **
   6  Prefactor     .10006E-03    19.963        .40489E-05** at limit **
   7  Prefactor     .10121E-03    39.936       -.10657E-04** at limit **
   8  Prefactor     2.2110        3.3020        .10685E-06   -.55841E-04
   9  norm          7.2359        3.0271        .52307E-07    .17803E-05
  10  norm          .12374        .28082        .63126E-07    .36509E-04
  11  Prefactor     11.108        1.1524       -.35944E-07    .57632E-03
  12  Prefactor     8.0658        6.5539        .17847E-06    .71135E-04
  13  Prefactor     .28590E-01    24.049        .74021E-05    .11515E-02
  14  Prefactor     17.090        1.2692        .18653E-07   -.24183E-03
  15  Prefactor     .10000E-03    10.564       -.54869E-06** at limit **
  16  norm          .10000E-03    3.3111        .19308E-06** at limit **
  17  norm          2.9946        4.8210        .16176E-05   -.41143E-03
  18  Prefactor     .10000E-03    .46316       -.49606E-07** at limit **
  19  Prefactor     .10000E-03    20.103        .11228E-05** at limit **
  20  Prefactor     4.9638        3.9371       -.10504E-07   -.55327E-04
  21  Prefactor     .10001E-03    19.108       -.67577E-06** at limit **
  22  Prefactor     4.3858        2.6937       -.65429E-07    .20971E-04
  23  Prefactor     .10010E-03    357.91       -.91671E-05** at limit **
  24  norm          .35746        .31187        .56876E-07    .14331E-03
  25  Prefactor     .10000E-03    1.4125        .13268E-06** at limit **
  26  norm          3.0428        3.8870       -.88650E-06   -.37588E-02
  27  Prefactor     1.4147        2.3461        .38327E-07    .78089E-04
  28  Normalizat    1.0277        .19084       -.59337E-06   -.60374E-04
  29  Prefactor     .98810        .15809       -.38232E-06   -.67283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8411
  norm       = 1.95912
  norm       = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.000101207
  Prefactor  = 2.21103
  norm       = 7.23589
  norm       = 0.123737
  Prefactor  = 11.108
  Prefactor  = 8.06583
  Prefactor  = 0.0285898
  Prefactor  = 17.0897
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.9946
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.96385
  Prefactor  = 0.000100014
  Prefactor  = 4.38581
  Prefactor  = 0.000100099
  norm       = 0.357464
  Prefactor  = 0.0001
  norm       = 3.04282
  Prefactor  = 1.41465
  Normalizat = 1.02774
  Prefactor  = 0.988099
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.970     FROM HESSE     STATUS=OK           637 CALLS     3833 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.841        13.904        .26911E-02   -1.4964    
   4  norm          1.9591        5.2527        .74111E-02   -1.5428    
   5  norm          .10000E-03    1.8851        .35225E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    4.4963        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10121E-03    67.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2110        3.3879        .69121E-02   -1.5411    
   9  norm          7.2359        3.0283        .37280E-02   -1.5170    
  10  norm          .12374        .32758        .16355E-01   -1.5638    
  11  Prefactor     11.108        18.919        .30056E-02   -1.5041    
  12  Prefactor     8.0658        11.410        .35244E-02   -1.5140    
  13  Prefactor     .28590E-01    1.3470        .60385E-01   -1.5674    
  14  Prefactor     17.090        25.173        .24218E-02   -1.4881    
  15  Prefactor     .10000E-03    10.490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9946        4.8980        .58654E-02   -1.5362    
  18  Prefactor     .10000E-03    .46207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9638        3.9394        .45129E-02   -1.5262    
  21  Prefactor     .10001E-03    28.649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3858        2.7119        .48079E-02   -1.5289    
  23  Prefactor     .10010E-03    11.883        .91502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .35746        .32036        .94443E-02   -1.5588    
  25  Prefactor     .10000E-03    1.3872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.0428        7.8707        .58096E-02   -1.5359    
  27  Prefactor     1.4147        2.4103        .91038E-02   -1.5470    
  28  Normalizat    1.0277        .17096        .42380E-01   -.92107    
  29  Prefactor     .98810        .13813        .46119E-01   -.93127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66186e-07
Minuit parameter uncertainties:
  1  4.09759e-05
  2  1.72299e-06
  3  13.9077
  4  5.2539
  5  3.30124e-06
  6  0.00105712
  7  0.0181131
  8  3.38818
  9  3.02837
  10  0.327581
  11  18.9294
  12  11.4129
  13  0.391799
  14  25.1887
  15  0.000215912
  16  3.12065e-06
  17  4.89864
  18  1.71955e-07
  19  0.000298284
  20  3.93956
  21  0.00127468
  22  2.71199
  23  0.0021658
  24  0.320358
  25  1.53364e-06
  26  7.87336
  27  2.41044
  28  0.171055
  29  0.138179
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  8.066e+00  1.141e+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.881e-01  1.382e-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.028e+00  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/425587/likelihoodResults_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.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) = 6789.96722857
delta logL = 0.00259459514109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.96547163
delta logL = 0.00435153581475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3311       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5454       1.0000          .0000       10.000    
     3 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98913       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=   6789.965     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3290        14.267        .14813E-03    .25863E-03
   2  Index         2.5464        1.0973        .95061E-02    .62967E-04
   3  Normalizat    1.0256        .18956        .25429E-03   -.59729E-03
   4  Prefactor     .98917        .15762        .21584E-03   -.77014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.329
  Index      = 2.54638
  Normalizat = 1.02565
  Prefactor  = 0.989167
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.965     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3290        12.677        .59253E-05   -1.5166    
   2  Index         2.5464        .97666        .38024E-03   -.51292    
   3  Normalizat    1.0256        .18943        .50858E-04   -.92176    
   4  Prefactor     .98917        .15755        .43168E-04   -.93091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09586e-10
Minuit parameter uncertainties:
  1  12.6819
  2  0.985031
  3  0.189555
  4  0.157624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425587': 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) = 6789.96547084
delta logL = 0.00435232271138

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  7.329e+00  1.268e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.546e+00  9.850e-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.892e-01  1.576e-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.026e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
Ra Dec: 125.800 40.708

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/425587/cmap_HighResolution_453168001_453427201_4FGL_J0823.1+4042_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-08-29 18:11:16.112796', job_id='425587', GAL2='0.99', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630285876.11', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.35e-03', ts2='0.86', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='825' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:11:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 425587: <4FGL_J0823.1+4042_daily_bin825> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin825> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:55:43 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:44 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:44 2021
Terminated at Sun Aug 29 18:11:16 2021
Results reported at Sun Aug 29 18:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin825 125.8 40.7077 453168001 453427201 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 :                                   914.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

