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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin223
RA = 125.8, Dec = 40.7077
tmin = 297129601, tmax = 297388801
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='423618', job_status='RUN', time_executed='2021-08-29 17:51:47.815834', time_epoch_executed='1630284707.82' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423618/ft1_4FGL_J0823.1+4042_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423618/ft2_4FGL_J0823.1+4042_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423618/ft1_4FGL_J0823.1+4042_daily_bin223.fits outfile=/scratch/kocevski/423618/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin223.fits ra=125.8 dec=40.7077 rad=12.0 tmin=297129601.0 tmax=297388801.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.99
user 3.36
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423618/ft2_4FGL_J0823.1+4042_daily_bin223.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/423618/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin223.fits evtable="EVENTS" outfile="/scratch/kocevski/423618/ft1_filtered_4FGL_J0823.1+4042_daily_bin223.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.32
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423618/ft1_filtered_4FGL_J0823.1+4042_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/423618/ft2_4FGL_J0823.1+4042_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/423618/ltcube_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.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/423618/ft2_4FGL_J0823.1+4042_daily_bin223.fits
.....................!
real 12.53
user 11.69
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423618/ft1_filtered_4FGL_J0823.1+4042_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/423618/ft2_4FGL_J0823.1+4042_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/423618/ltcube_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.fits outfile=/scratch/kocevski/423618/expmap_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.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/423618/ltcube_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.fits
.....................!
real 194.25
user 186.68
sys 6.69

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/423618/ft1_filtered_4FGL_J0823.1+4042_daily_bin223.fits scfile=/scratch/kocevski/423618/ft2_4FGL_J0823.1+4042_daily_bin223.fits outfile=/scratch/kocevski/423618/cmap_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.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.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423618/ft1_filtered_4FGL_J0823.1+4042_daily_bin223.fits scfile=/scratch/kocevski/423618/ft2_4FGL_J0823.1+4042_daily_bin223.fits outfile=/scratch/kocevski/423618/cmap_HighResolution_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.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.40
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0774       1.0000         .10000E-03   10000.    
     4 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .66953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2912       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11629E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6101       1.0000         .10000E-03   10000.    
    10 'norm      '    .57036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21957E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40722E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3928       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7029       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22193E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20716E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18032E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1375       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12940E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1154       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0456       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=   8056.359     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3205 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.573        10.713        .19325E-05    .38736E-05
   2  Prefactor     18.635        13.426       -.41330E-07   -.96233E-05
   3  Prefactor     8.1935        15.944       -.35267E-05   -.13031E-04
   4  norm          .10000E-03    8.9259        .59923E-06** at limit **
   5  norm          .66559        2.5418        .12633E-06   -.14684E-03
   6  Prefactor     2.2771        1.1338        .47202E-07   -.15285E-02
   7  Prefactor     .10000E-03    15.292        .37209E-06** at limit **
   8  Prefactor     .10000E-03    3.9100       -.72679E-07** at limit **
   9  norm          1.6103        1.5137        .44774E-08    .22797E-05
  10  norm          .57070        .47265       -.61482E-07   -.50126E-03
  11  Prefactor     .10000E-03    77.038       -.16589E-04** at limit **
  12  Prefactor     21.153        13.301        .12692E-05    .25992E-05
  13  Prefactor     .10000E-03    1.2090       -.52744E-07** at limit **
  14  Prefactor     .10000E-03    17.083        .25383E-05** at limit **
  15  Prefactor     9.4164        9.4477        .43640E-06   -.51032E-04
  16  norm          8.7001        5.2647        .43934E-06   -.30360E-04
  17  norm          7.3639        6.4299        .17421E-06   -.30520E-04
  18  Prefactor     .10000E-03    .57660        .98958E-08** at limit **
  19  Prefactor     .10000E-03    32.093        .38247E-05** at limit **
  20  Prefactor     .10000E-03    1.4586        .41897E-08** at limit **
  21  Prefactor     .10000E-03    9.4236       -.86606E-06** at limit **
  22  Prefactor     .10000E-03    1.8027       -.48091E-08** at limit **
  23  Prefactor     .10000E-03    29.763       -.42486E-05** at limit **
  24  norm          1.1375        .48781       -.28229E-07   -.16307E-02
  25  Prefactor     .10000E-03    1.6711        .41462E-06** at limit **
  26  norm          .10000E-03    4.4914       -.11447E-05** at limit **
  27  Prefactor     .10000E-03    1.0462        .90280E-08** at limit **
  28  Normalizat    1.1153        .16731       -.28885E-06    .53699E-04
  29  Prefactor     1.0456        .13524        .51461E-07    .65889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5731
  Prefactor  = 18.6351
  Prefactor  = 8.19353
  norm       = 0.0001
  norm       = 0.665586
  Prefactor  = 2.2771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61025
  norm       = 0.570702
  Prefactor  = 0.000100001
  Prefactor  = 21.1531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.41637
  norm       = 8.70011
  norm       = 7.36387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13752
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11534
  Prefactor  = 1.04557
 **********
 **   18 **HESSE 
 **********

 FCN=   8056.359     FROM HESSE     STATUS=OK           555 CALLS     3760 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.573        10.711        .12342E-03   -1.5058    
   2  Prefactor     18.635        13.141        .92790E-04   -1.4844    
   3  Prefactor     8.1935        16.133        .14107E-03   -1.5135    
   4  norm          .10000E-03    9.0246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .66559        2.5191        .25147E-03   -1.5545    
   6  Prefactor     2.2771        5.2183        .13559E-02   -1.5406    
   7  Prefactor     .10000E-03    15.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0140        .34583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6103        1.5201        .10429E-03   -1.5454    
  10  norm          .57070        .44422        .52846E-03   -1.5557    
  11  Prefactor     .10000E-03    78.080        .40287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.153        13.203        .86975E-04   -1.4788    
  13  Prefactor     .10000E-03    1.2219        .96125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.103        .21255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4164        9.4385        .13076E-03   -1.5094    
  16  norm          8.7001        5.2612        .13588E-03   -1.5118    
  17  norm          7.3639        6.4271        .14776E-03   -1.5165    
  18  Prefactor     .10000E-03    .58167        .66534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4636        .10586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8736        .23472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1375        .45191        .36881E-04   -1.5495    
  25  Prefactor     .10000E-03    4.4639        .20573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.5157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.6950        .17748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1153        .19128        .26530E-03   -.89261    
  29  Prefactor     1.0456        .15586        .22554E-03   -.91225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1126e-09
Minuit parameter uncertainties:
  1  10.7133
  2  13.1427
  3  16.1415
  4  3.75215e-06
  5  2.51949
  6  5.2193
  7  1.44064e-05
  8  1.01121e-05
  9  1.52017
  10  0.444218
  11  0.000432261
  12  13.2049
  13  7.33242e-06
  14  4.26047e-05
  15  9.43998
  16  5.26151
  17  6.42769
  18  6.11039e-07
  19  5.98153e-07
  20  3.01277e-07
  21  6.17038e-07
  22  2.5453e-07
  23  9.24431e-05
  24  0.451914
  25  0.000152607
  26  4.07583e-06
  27  7.64682e-07
  28  0.191404
  29  0.155929
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.115e+01  1.320e+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.046e+00  1.559e-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.115e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.17e-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) = 8056.21033454
delta logL = 0.148214286892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8056.19221105
delta logL = 0.166337782234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.774       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8239       1.0000          .0000       10.000    
     3 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0578       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=   8056.192     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      282 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.766        19.274        .10792E-03   -.79278E-03
   2  Index         2.8244        .83484        .47980E-02   -.11029E-03
   3  Normalizat    1.0918        .19334        .26767E-03    .49576E-03
   4  Prefactor     1.0579        .15651        .22438E-03    .93987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7661
  Index      = 2.82436
  Normalizat = 1.09185
  Prefactor  = 1.05787
 **********
 **   18 **HESSE 
 **********

 FCN=   8056.192     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.766        15.613        .43170E-05   -1.4966    
   2  Index         2.8244        .67659        .19192E-03   -.45018    
   3  Normalizat    1.0918        .19197        .53534E-04   -.90014    
   4  Prefactor     1.0579        .15580        .89752E-05   -.90825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14016e-09
Minuit parameter uncertainties:
  1  15.6177
  2  0.679159
  3  0.192091
  4  0.15587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423618': 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) = 8056.19221071
delta logL = 0.16633811941

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.377e+01  1.562e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.824e+00  6.792e-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.058e+00  1.559e-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.092e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.82 +/- 0.68
Photon Flux (Free Index): 7.93e-08 +/- 5.14e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.01e-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/423618/cmap_HighResolution_297129601_297388801_4FGL_J0823.1+4042_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='1.75e-05', photon_flux_error='3.84e-08', dlogl='1.66e-01', energy_flux='1.88e-05', photon_flux2='7.93e-08', job_status='DONE', time_completed='2021-08-29 18:06:31.423723', photon_index_error2='0.68', photon_index2='2.82', ts='4.44', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.12', time_epoch_completed='1630285591.42', return_code='0', job_id='423618', GAL2='1.06', EG2='1.09', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.14e-08', ts2='4.81', photon_index='2.46' WHERE bin_id='223' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:06:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 423618: <4FGL_J0823.1+4042_daily_bin223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin223 125.8 40.7077 297129601 297388801 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 :                                   876.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

