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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin365
RA = 125.8, Dec = 40.7077
tmin = 333936001, tmax = 334195201
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='423840', job_status='RUN', time_executed='2021-08-29 17:51:47.232707', time_epoch_executed='1630284707.23' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423840/ft1_4FGL_J0823.1+4042_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423840/ft2_4FGL_J0823.1+4042_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423840/ft1_4FGL_J0823.1+4042_daily_bin365.fits outfile=/scratch/kocevski/423840/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin365.fits ra=125.8 dec=40.7077 rad=12.0 tmin=333936001.0 tmax=334195201.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.75
user 3.31
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423840/ft1_filtered_4FGL_J0823.1+4042_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/423840/ft2_4FGL_J0823.1+4042_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/423840/ltcube_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.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/423840/ft2_4FGL_J0823.1+4042_daily_bin365.fits
.....................!
real 12.12
user 11.46
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423840/ft1_filtered_4FGL_J0823.1+4042_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/423840/ft2_4FGL_J0823.1+4042_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/423840/ltcube_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.fits outfile=/scratch/kocevski/423840/expmap_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.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/423840/ltcube_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.fits
.....................!
real 193.53
user 187.01
sys 4.95

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/423840/ft1_filtered_4FGL_J0823.1+4042_daily_bin365.fits scfile=/scratch/kocevski/423840/ft2_4FGL_J0823.1+4042_daily_bin365.fits outfile=/scratch/kocevski/423840/cmap_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.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.75
user 0.36
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423840/ft1_filtered_4FGL_J0823.1+4042_daily_bin365.fits scfile=/scratch/kocevski/423840/ft2_4FGL_J0823.1+4042_daily_bin365.fits outfile=/scratch/kocevski/423840/cmap_HighResolution_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.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.75
user 0.37
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .93379E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .24084E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21315E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.765       1.0000         .10000E-03   10000.    
    10 'norm      '    .49640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0441       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .68374       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4062       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2818       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5509       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .67483E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8959       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2138       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94712       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7063.833     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3272 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.0638         .0000    ** at limit **
   2  Prefactor     .10834E-03    5.3591         .0000    ** at limit **
   3  Prefactor     .10000E-03    7.7609         .0000    ** at limit **
   4  norm          .10168E-03    8.8500         .0000    ** at limit **
   5  norm          .10000E-03    .71864         .0000    ** at limit **
   6  Prefactor     .10000E-03    2.5130         .0000    ** at limit **
   7  Prefactor     .11268E-03    113.94         .0000    ** at limit **
   8  Prefactor     .10000E-03    4.3042         .0000    ** at limit **
   9  norm          11.765        3.4019         .0000       -.25882E-03
  10  norm          .49659        .44013         .0000       -.33168E-04
  11  Prefactor     .10004E-03    7.4171         .0000    ** at limit **
  12  Prefactor     7.0401        11.645         .0000        .33146E-03
  13  Prefactor     3.0439        2.5482         .0000        .56185E-04
  14  Prefactor     21.657        26.667         .0000       -.58312E-03
  15  Prefactor     .10000E-03    3.7002         .0000    ** at limit **
  16  norm          .68412        8.8777         .0000        .41216E-01
  17  norm          5.4047        7.5212         .0000       -.81861E-03
  18  Prefactor     .36852        1.5066         .0000        .14105E-02
  19  Prefactor     .10000E-03    28.481         .0000    ** at limit **
  20  Prefactor     2.2816        2.8290         .0000       -.12280E-03
  21  Prefactor     .10000E-03    17.772         .0000    ** at limit **
  22  Prefactor     .10000E-03    1.3895         .0000    ** at limit **
  23  Prefactor     .10003E-03    8.0036         .0000    ** at limit **
  24  norm          1.5505        .60576         .0000        .11897E-02
  25  Prefactor     .10000E-03    1.8322         .0000    ** at limit **
  26  norm          .10001E-03    8.4186         .0000    ** at limit **
  27  Prefactor     1.8957        1.7759         .0000        .89275E-04
  28  Normalizat    1.2137        .17575         .0000        .52741E-04
  29  Prefactor     .94725        .14031         .0000        .57574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.000108336
  Prefactor  = 0.0001
  norm       = 0.000101675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000112678
  Prefactor  = 0.0001
  norm       = 11.7653
  norm       = 0.496588
  Prefactor  = 0.00010004
  Prefactor  = 7.04012
  Prefactor  = 3.04392
  Prefactor  = 21.6574
  Prefactor  = 0.0001
  norm       = 0.684122
  norm       = 5.40473
  Prefactor  = 0.368523
  Prefactor  = 0.0001
  Prefactor  = 2.28163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 1.55048
  Prefactor  = 0.000100003
  norm       = 0.000100006
  Prefactor  = 1.89572
  Normalizat = 1.21373
  Prefactor  = 0.947251
 **********
 **   18 **HESSE 
 **********

 FCN=   7063.833     FROM HESSE     STATUS=OK           569 CALLS     3841 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.1031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10834E-03    7.1765        .69246E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10168E-03    13.509        .69837E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .72129        .69559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5185        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11268E-03    116.32        .18142E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4555        .33994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.765        3.4021        .81053E-04   -1.5022    
  10  norm          .49659        .43173        .49591E-04   -1.5567    
  11  Prefactor     .10004E-03    7.4199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0401        11.545        .15119E-03   -1.5177    
  13  Prefactor     3.0439        2.5379        .11456E-03   -1.5359    
  14  Prefactor     21.657        26.623        .86056E-04   -1.4777    
  15  Prefactor     .10000E-03    3.7122        .15784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .68412        8.8798        .23041E-02   -1.5543    
  17  norm          5.4047        7.4407        .17283E-03   -1.5243    
  18  Prefactor     .36852        2.6114        .19302E-02   -1.5587    
  19  Prefactor     .10000E-03    28.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2816        2.8237        .15351E-03   -1.5406    
  21  Prefactor     .10000E-03    17.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.4161        .96628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    8.0232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5505        .54143        .35296E-04   -1.5459    
  25  Prefactor     .10000E-03    16.231        .19488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    8.7338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.8957        1.7751        .10509E-03   -1.5433    
  28  Normalizat    1.2137        .20282        .25422E-03   -.86179    
  29  Prefactor     .94725        .16287        .23260E-03   -.94509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33283e-07
Minuit parameter uncertainties:
  1  0.000468628
  2  0.0154714
  3  1.2872e-05
  4  0.00951576
  5  1.38016e-06
  6  1.30819e-06
  7  0.0769548
  8  2.15533e-05
  9  3.40214
  10  0.431731
  11  0.00108392
  12  11.5482
  13  2.53802
  14  26.6379
  15  5.41449e-08
  16  4.92998
  17  7.44202
  18  1.96184
  19  0.000110742
  20  2.82389
  21  4.46128e-05
  22  2.59625e-06
  23  0.000978135
  24  0.541432
  25  0.000410692
  26  0.000460902
  27  1.77518
  28  0.202947
  29  0.162958
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  7.040e+00  1.155e+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.473e-01  1.630e-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.214e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/423840/likelihoodResults_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.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) = 7063.83309195
delta logL = 0.000174597843397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7063.83298373
delta logL = 0.000282815573883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8454       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4815       1.0000          .0000       10.000    
     3 'Normalizat'    1.2131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94745       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=   7063.833     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      251 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8409        14.920        .15335E-03   -.40857E-03
   2  Index         2.4829        1.2210        .93712E-02   -.14738E-03
   3  Normalizat    1.2132        .19824        .25426E-03   -.14057E-02
   4  Prefactor     .94752        .16221        .23257E-03   -.16242E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.8409
  Index      = 2.48287
  Normalizat = 1.21322
  Prefactor  = 0.947522
 **********
 **   18 **HESSE 
 **********

 FCN=   7063.833     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8409        13.672        .61339E-05   -1.5185    
   2  Index         2.4829        1.1207        .37485E-03   -.52756    
   3  Normalizat    1.2132        .19818        .50852E-04   -.86195    
   4  Prefactor     .94752        .16219        .46513E-04   -.94500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86804e-09
Minuit parameter uncertainties:
  1  13.6778
  2  1.1337
  3  0.198301
  4  0.162274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423840': 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) = 7063.83298086
delta logL = 0.000285689957309

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  6.841e+00  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.483e+00  1.134e+00  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.475e-01  1.623e-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.213e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/423840/cmap_HighResolution_333936001_334195201_4FGL_J0823.1+4042_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.83e-08', time_completed='2021-08-29 18:07:23.166853', job_id='423840', GAL2='0.95', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630285643.17', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.86e-04', ts2='0.53', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='365' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 423840: <4FGL_J0823.1+4042_daily_bin365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin365 125.8 40.7077 333936001 334195201 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 :                                   935.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

