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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin251
RA = 125.8, Dec = 40.7077
tmin = 304387201, tmax = 304646401
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='423661', job_status='RUN', time_executed='2021-08-29 17:52:24.702425', time_epoch_executed='1630284744.7' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423661/ft1_4FGL_J0823.1+4042_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423661/ft2_4FGL_J0823.1+4042_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423661/ft1_4FGL_J0823.1+4042_daily_bin251.fits outfile=/scratch/kocevski/423661/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin251.fits ra=125.8 dec=40.7077 rad=12.0 tmin=304387201.0 tmax=304646401.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.18
user 3.85
sys 1.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423661/ft1_filtered_4FGL_J0823.1+4042_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/423661/ft2_4FGL_J0823.1+4042_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/423661/ltcube_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.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/423661/ft2_4FGL_J0823.1+4042_daily_bin251.fits
.....................!
real 12.94
user 11.44
sys 1.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423661/ft1_filtered_4FGL_J0823.1+4042_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/423661/ft2_4FGL_J0823.1+4042_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/423661/ltcube_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.fits outfile=/scratch/kocevski/423661/expmap_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.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/423661/ltcube_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.fits
.....................!
real 192.33
user 185.40
sys 6.39

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/423661/ft1_filtered_4FGL_J0823.1+4042_daily_bin251.fits scfile=/scratch/kocevski/423661/ft2_4FGL_J0823.1+4042_daily_bin251.fits outfile=/scratch/kocevski/423661/cmap_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.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.55
user 0.37
sys 1.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423661/ft1_filtered_4FGL_J0823.1+4042_daily_bin251.fits scfile=/scratch/kocevski/423661/ft2_4FGL_J0823.1+4042_daily_bin251.fits outfile=/scratch/kocevski/423661/cmap_HighResolution_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.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.57
user 0.38
sys 1.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.637       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9327       1.0000         .10000E-03   10000.    
    10 'norm      '    .79397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8168       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5380       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .85101       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8987       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3509       1.0000         .10000E-03   10000.    
    26 'norm      '    7.4665       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .99806       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87605       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0654       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=   7045.911     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3699 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2628        24.871        .10578E-05   -.20602E-04
   2  Prefactor     .10000E-03    13.898        .10374E-06** at limit **
   3  Prefactor     36.638        17.776        .16839E-07    .75870E-05
   4  norm          .10000E-03    5.9424        .24143E-07** at limit **
   5  norm          .10000E-03    1.5664        .63581E-07** at limit **
   6  Prefactor     3.3799        6.8923        .37828E-06   -.37779E-04
   7  Prefactor     .10000E-03    25.122        .11547E-06** at limit **
   8  Prefactor     .10000E-03    1.5533        .25387E-07** at limit **
   9  norm          1.9326        1.7248        .38028E-08    .11943E-04
  10  norm          .79396        .49227        .10938E-08   -.87410E-04
  11  Prefactor     24.398        25.514       -.15348E-05   -.13483E-03
  12  Prefactor     21.446        12.548       -.17359E-07    .63095E-05
  13  Prefactor     .10000E-03    1.1793        .11629E-07** at limit **
  14  Prefactor     2.2417        33.101        .51796E-06   -.16296E-04
  15  Prefactor     .10000E-03    4.1386       -.13128E-06** at limit **
  16  norm          .10000E-03    1.2442       -.33710E-07** at limit **
  17  norm          .10000E-03    3.7496       -.10500E-06** at limit **
  18  Prefactor     .10000E-03    .80272       -.10931E-06** at limit **
  19  Prefactor     6.7994        115.93       -.65815E-05   -.29882E-04
  20  Prefactor     .10000E-03    3.8976        .23466E-06** at limit **
  21  Prefactor     .10000E-03    8.4875       -.67421E-07** at limit **
  22  Prefactor     1.5384        3.0542        .62717E-07   -.65953E-04
  23  Prefactor     .84054        9.4543       -.13240E-05    .49124E-04
  24  norm          2.8985        1.0324       -.11746E-06    .47425E-03
  25  Prefactor     2.3521        6.5082        .99907E-06   -.11987E-03
  26  norm          7.4720        8.8837        .17502E-05   -.51689E-04
  27  Prefactor     .99867        2.8187        .17142E-06   -.80628E-04
  28  Normalizat    .87597        .17768        .16771E-06    .91605E-05
  29  Prefactor     1.0655        .14185       -.43763E-06    .35476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26276
  Prefactor  = 0.0001
  Prefactor  = 36.6382
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.37986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93258
  norm       = 0.793957
  Prefactor  = 24.3976
  Prefactor  = 21.4456
  Prefactor  = 0.0001
  Prefactor  = 2.24174
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.7994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53844
  Prefactor  = 0.84054
  norm       = 2.8985
  Prefactor  = 2.35214
  norm       = 7.47197
  Prefactor  = 0.998668
  Normalizat = 0.875971
  Prefactor  = 1.06546
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.911     FROM HESSE     STATUS=OK           555 CALLS     4254 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2628        24.997        .27297E-03   -1.5407    
   2  Prefactor     .10000E-03    14.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.638        17.751        .66212E-04   -1.4497    
   4  norm          .10000E-03    5.9725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6311        .20503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3799        6.8676        .22016E-03   -1.5340    
   7  Prefactor     .10000E-03    25.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5646        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9326        1.7335        .10127E-03   -1.5430    
  10  norm          .79396        .48753        .44133E-04   -1.5530    
  11  Prefactor     24.398        26.300        .81077E-04   -1.4720    
  12  Prefactor     21.446        12.484        .86495E-04   -1.4781    
  13  Prefactor     .10000E-03    1.1953        .88813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2417        33.153        .27434E-03   -1.5409    
  15  Prefactor     .10000E-03    4.1650        .16676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2456        .91426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7994        .15866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .80992        .73343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7994        121.81        .15367E-03   -1.5186    
  20  Prefactor     .10000E-03    3.9841        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5384        2.8880        .17417E-03   -1.5460    
  23  Prefactor     .84054        47.514        .45126E-02   -1.5525    
  24  norm          2.8985        1.1172        .33448E-04   -1.5367    
  25  Prefactor     2.3521        7.0160        .22754E-03   -1.5401    
  26  norm          7.4720        9.2741        .73387E-03   -1.5161    
  27  Prefactor     .99867        2.6267        .19681E-03   -1.5508    
  28  Normalizat    .87597        .20204        .27689E-03   -.97310    
  29  Prefactor     1.0655        .16202        .21205E-03   -.90578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92293e-10
Minuit parameter uncertainties:
  1  15.0493
  2  5.90769e-06
  3  17.7532
  4  1.18479e-06
  5  3.1728e-07
  6  6.86917
  7  7.51709e-09
  8  1.4967e-07
  9  1.7335
  10  0.487534
  11  26.312
  12  12.4858
  13  9.32425e-08
  14  17.2529
  15  5.29048e-06
  16  6.46787e-07
  17  2.00239e-06
  18  1.68989e-07
  19  57.6951
  20  3.87843e-06
  21  5.45154e-06
  22  2.88825
  23  12.649
  24  1.11724
  25  7.01845
  26  9.27587
  27  2.62699
  28  0.202213
  29  0.162092
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.145e+01  1.249e+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:  1.065e+00  1.621e-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:  8.760e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.11e-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) = 7045.53789037
delta logL = 0.372993680822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7045.53677934
delta logL = 0.374104713921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0993       1.0000          .0000       10.000    
     3 'Normalizat'    .89053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0560       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=   7045.537     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      309 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.210        21.734        .69538E-04    .15204E-04
   2  Index         2.0992        .38875        .57144E-02    .32844E-03
   3  Normalizat    .89056        .18928        .27481E-03   -.35412E-04
   4  Prefactor     1.0559        .15876        .21279E-03   -.10952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2099
  Index      = 2.0992
  Normalizat = 0.890564
  Prefactor  = 1.05595
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.537     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.210        21.363        .27815E-05   -1.4555    
   2  Index         2.0992        .38201        .11429E-02   -.61893    
   3  Normalizat    .89056        .18942        .10992E-04   -.96793    
   4  Prefactor     1.0559        .15889        .85117E-05   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70479e-12
Minuit parameter uncertainties:
  1  21.3676
  2  0.382569
  3  0.189557
  4  0.158957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423661': 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) = 7045.5367793
delta logL = 0.374104752096

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  3.321e+01  2.137e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.099e+00  3.826e-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.056e+00  1.590e-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:  8.906e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.10 +/- 0.38
Photon Flux (Free Index): 5.31e-08 +/- 3.28e-08
Energy Flux (Free Index): 2.92e-05 +/- 2.29e-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/423661/cmap_HighResolution_304387201_304646401_4FGL_J0823.1+4042_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='2.92e-05', photon_flux_error='3.63e-08', dlogl='3.74e-01', energy_flux='1.91e-05', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-08-29 18:06:42.581645', photon_index_error2='0.38', photon_index2='2.10', ts='5.06', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='0.88', time_epoch_completed='1630285602.58', return_code='0', job_id='423661', GAL2='1.06', EG2='0.89', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.28e-08', ts2='5.81', photon_index='2.46' WHERE bin_id='251' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 423661: <4FGL_J0823.1+4042_daily_bin251> in cluster <slac> Done

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

Your job looked like:

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

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

