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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin354
RA = 125.8, Dec = 40.7077
tmin = 331084801, tmax = 331344001
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='423823', job_status='RUN', time_executed='2021-08-29 17:53:10.076536', time_epoch_executed='1630284790.08' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423823

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423823/ft1_4FGL_J0823.1+4042_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423823/ft2_4FGL_J0823.1+4042_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423823/ft1_4FGL_J0823.1+4042_daily_bin354.fits outfile=/scratch/kocevski/423823/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin354.fits ra=125.8 dec=40.7077 rad=12.0 tmin=331084801.0 tmax=331344001.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 2.85
user 2.37
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423823/ft2_4FGL_J0823.1+4042_daily_bin354.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/423823/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin354.fits evtable="EVENTS" outfile="/scratch/kocevski/423823/ft1_filtered_4FGL_J0823.1+4042_daily_bin354.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.65
user 0.25
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423823/ft1_filtered_4FGL_J0823.1+4042_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/423823/ft2_4FGL_J0823.1+4042_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/423823/ltcube_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.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/423823/ft2_4FGL_J0823.1+4042_daily_bin354.fits
.....................!
real 9.35
user 8.76
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423823/ft1_filtered_4FGL_J0823.1+4042_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/423823/ft2_4FGL_J0823.1+4042_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/423823/ltcube_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.fits outfile=/scratch/kocevski/423823/expmap_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.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/423823/ltcube_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.fits
.....................!
real 147.21
user 142.26
sys 4.63

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/423823/ft1_filtered_4FGL_J0823.1+4042_daily_bin354.fits scfile=/scratch/kocevski/423823/ft2_4FGL_J0823.1+4042_daily_bin354.fits outfile=/scratch/kocevski/423823/cmap_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.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.65
user 0.29
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423823/ft1_filtered_4FGL_J0823.1+4042_daily_bin354.fits scfile=/scratch/kocevski/423823/ft2_4FGL_J0823.1+4042_daily_bin354.fits outfile=/scratch/kocevski/423823/cmap_HighResolution_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.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.68
user 0.31
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0154       1.0000         .10000E-03   10000.    
     5 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3060       1.0000         .10000E-03   10000.    
     9 'norm      '    11.474       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9339       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17515E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.952       1.0000         .10000E-03   10000.    
    17 'norm      '    116.00       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .67871       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3013       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92667       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0631       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=   7676.338     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3721 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0675       -.22961E-05** at limit **
   2  Prefactor     3.3274        16.794       -.43495E-05   -.46595E-03
   3  Prefactor     .10000E-03    23.719       -.12692E-05** at limit **
   4  norm          6.0133        12.434       -.24035E-05   -.77817E-04
   5  norm          .10001E-03    1.4989        .16824E-05** at limit **
   6  Prefactor     .10000E-03    5.4997       -.85482E-06** at limit **
   7  Prefactor     25.751        44.509       -.35686E-04   -.60106E-04
   8  Prefactor     3.3068        3.8567        .12944E-05   -.24728E-03
   9  norm          11.474        3.3932       -.72780E-07   -.14294E-03
  10  norm          1.3167        .68742        .58352E-06    .12152E-02
  11  Prefactor     .10000E-03    35.342        .42012E-05** at limit **
  12  Prefactor     5.9354        9.1895        .18521E-05   -.38841E-04
  13  Prefactor     .10000E-03    1.2542        .22215E-06** at limit **
  14  Prefactor     43.363        35.283       -.21225E-04   -.51441E-04
  15  Prefactor     .10000E-03    10.441        .14360E-05** at limit **
  16  norm          17.950        8.9611       -.41964E-06   -.79041E-03
  17  norm          116.00        17.505       -.43224E-06   -.29435E-05
  18  Prefactor     .10000E-03    1.7154       -.18666E-06** at limit **
  19  Prefactor     .10000E-03    37.444       -.13531E-05** at limit **
  20  Prefactor     6.2579        4.6892        .28384E-07   -.67504E-04
  21  Prefactor     .10000E-03    16.308       -.14666E-06** at limit **
  22  Prefactor     .10000E-03    1.9532       -.11952E-07** at limit **
  23  Prefactor     .10000E-03    5.1188        .71596E-07** at limit **
  24  norm          .67861        .42126       -.71013E-07    .11527E-03
  25  Prefactor     .10000E-03    2.4882       -.82934E-07** at limit **
  26  norm          .10000E-03    2.4718       -.18313E-06** at limit **
  27  Prefactor     2.3008        2.0500       -.25524E-06   -.21557E-03
  28  Normalizat    .92713        .18505        .72181E-05   -.44282E-03
  29  Prefactor     1.0628        .14299        .58361E-07   -.14977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.32741
  Prefactor  = 0.000100001
  norm       = 6.01332
  norm       = 0.000100012
  Prefactor  = 0.000100002
  Prefactor  = 25.7514
  Prefactor  = 3.30675
  norm       = 11.4739
  norm       = 1.31666
  Prefactor  = 0.0001
  Prefactor  = 5.93542
  Prefactor  = 0.0001
  Prefactor  = 43.3628
  Prefactor  = 0.000100003
  norm       = 17.9501
  norm       = 115.997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.678614
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.30084
  Normalizat = 0.927128
  Prefactor  = 1.06277
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.338     FROM HESSE     STATUS=OK           549 CALLS     4270 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3274        14.888        .22105E-03   -1.5343    
   3  Prefactor     .10000E-03    24.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0133        12.435        .16371E-03   -1.5217    
   5  norm          .10001E-03    5.2451        .19332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.751        44.407        .78904E-04   -1.4693    
   8  Prefactor     3.3068        3.8330        .17632E-03   -1.5344    
   9  norm          11.474        3.3924        .85263E-04   -1.5030    
  10  norm          1.3167        .68183        .48738E-04   -1.5478    
  11  Prefactor     .10000E-03    35.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9354        9.1252        .16485E-03   -1.5221    
  13  Prefactor     .10000E-03    2.1427        .18852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.363        35.235        .60865E-04   -1.4390    
  15  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.950        8.9708        .47265E-03   -1.4860    
  17  norm          116.00        17.504        .37357E-04   -1.3550    
  18  Prefactor     .10000E-03    1.7587        .22371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2579        4.6881        .15976E-03   -1.5208    
  21  Prefactor     .10000E-03    16.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0048        .23861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .67861        .41360        .43171E-04   -1.5543    
  25  Prefactor     .10000E-03    2.5352        .26852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.4755        .13452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3008        2.0398        .11459E-03   -1.5405    
  28  Normalizat    .92713        .20962        .30706E-03   -.95513    
  29  Prefactor     1.0628        .16342        .23159E-03   -.90666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07528e-09
Minuit parameter uncertainties:
  1  1.43516e-05
  2  14.0824
  3  0.000355908
  4  12.4401
  5  0.000503475
  6  0.000211273
  7  44.4643
  8  3.83332
  9  3.39251
  10  0.681837
  11  0.00022248
  12  9.12733
  13  2.6321e-05
  14  35.2518
  15  0.000373793
  16  8.97146
  17  17.505
  18  8.9394e-06
  19  1.03084e-05
  20  4.68832
  21  2.92505e-05
  22  1.6063e-05
  23  9.45953e-06
  24  0.413599
  25  1.30563e-05
  26  3.78355e-06
  27  2.03989
  28  0.2098
  29  0.163493
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  5.935e+00  9.127e+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

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.063e+00  1.635e-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:  9.271e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/423823/likelihoodResults_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.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) = 7675.91619619
delta logL = 0.42225753341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7675.89131132
delta logL = 0.447142405011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0695       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5619       1.0000          .0000       10.000    
     3 'Normalizat'    .93884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0571       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=   7675.891     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0659        10.687        .14114E-03   -.21668E-03
   2  Index         1.5598        .78084        .14151E-01    .46802E-04
   3  Normalizat    .93931        .20009        .30531E-03    .75361E-03
   4  Prefactor     1.0569        .16142        .23209E-03    .78876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06588
  Index      = 1.55978
  Normalizat = 0.939314
  Prefactor  = 1.05688
 **********
 **   18 **HESSE 
 **********

 FCN=   7675.891     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0659        10.878        .28228E-04   -1.5140    
   2  Index         1.5598        .79495        .56603E-03   -.75879    
   3  Normalizat    .93931        .20023        .61062E-04   -.95092    
   4  Prefactor     1.0569        .16154        .46419E-04   -.90857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58903e-10
Minuit parameter uncertainties:
  1  10.8809
  2  0.801456
  3  0.200388
  4  0.161611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423823': 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) = 7675.89130401
delta logL = 0.44714971552

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  8.066e+00  1.088e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  1.560e+00  8.015e-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:  1.057e+00  1.616e-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:  9.393e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 125.800 40.708
Photon Index (Free Index): 1.56 +/- 0.80
Photon Flux (Free Index): 6.57e-09 +/- 1.13e-08
Energy Flux (Free Index): 1.70e-05 +/- 3.30e-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/423823/cmap_HighResolution_331084801_331344001_4FGL_J0823.1+4042_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='4.47e-01', photon_flux2='6.57e-09', job_status='DONE', time_completed='2021-08-29 18:06:18.841115', photon_index_error2='0.80', photon_index2='1.56', ts='0.74', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.43e-08', energy_flux_error2='3.30e-05', EG='0.93', time_epoch_completed='1630285578.84', return_code='0', job_id='423823', GAL2='1.06', EG2='0.94', return_code2='0', photon_flux_error2='1.13e-08', ts2='1.64', photon_index='2.46' WHERE bin_id='354' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 423823: <4FGL_J0823.1+4042_daily_bin354> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin354 125.8 40.7077 331084801 331344001 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

