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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin788
RA = 125.8, Dec = 40.7077
tmin = 443577601, tmax = 443836801
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='425533', job_status='RUN', time_executed='2021-08-29 17:57:26.319586', time_epoch_executed='1630285046.32' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425533/ft1_4FGL_J0823.1+4042_daily_bin788.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425533/ft2_4FGL_J0823.1+4042_daily_bin788.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425533/ft1_4FGL_J0823.1+4042_daily_bin788.fits outfile=/scratch/kocevski/425533/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin788.fits ra=125.8 dec=40.7077 rad=12.0 tmin=443577601.0 tmax=443836801.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 4.84
user 3.35
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425533/ft1_filtered_4FGL_J0823.1+4042_daily_bin788.fits" evtable="EVENTS" scfile=/scratch/kocevski/425533/ft2_4FGL_J0823.1+4042_daily_bin788.fits sctable="SC_DATA" outfile=/scratch/kocevski/425533/ltcube_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.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/425533/ft2_4FGL_J0823.1+4042_daily_bin788.fits
.....................!
real 13.45
user 11.85
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425533/ft1_filtered_4FGL_J0823.1+4042_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/425533/ft2_4FGL_J0823.1+4042_daily_bin788.fits sctable="SC_DATA" expcube=/scratch/kocevski/425533/ltcube_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.fits outfile=/scratch/kocevski/425533/expmap_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.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/425533/ltcube_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.fits
.....................!
real 191.80
user 185.28
sys 5.49

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/425533/ft1_filtered_4FGL_J0823.1+4042_daily_bin788.fits scfile=/scratch/kocevski/425533/ft2_4FGL_J0823.1+4042_daily_bin788.fits outfile=/scratch/kocevski/425533/cmap_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.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.15
user 0.37
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425533/ft1_filtered_4FGL_J0823.1+4042_daily_bin788.fits scfile=/scratch/kocevski/425533/ft2_4FGL_J0823.1+4042_daily_bin788.fits outfile=/scratch/kocevski/425533/cmap_HighResolution_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.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.14
user 0.38
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8748       1.0000         .10000E-03   10000.    
     4 'norm      '    8.7551       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9132       1.0000         .10000E-03   10000.    
    10 'norm      '    .78332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2047       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7840       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2198       1.0000         .10000E-03   10000.    
    17 'norm      '    17.721       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5346       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6153       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6651       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.931       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4770       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .81963       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.597       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0733       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77503       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.

 FCN=   5899.458     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3689 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0827        .90712E-02** at limit **
   2  Prefactor     6.4089        12.311        .39636E-02   -.96119E-04
   3  Prefactor     3.8740        19.111        .51247E-02   -.10464E-03
   4  norm          8.7554        9.6728        .33867E-02   -.74066E-04
   5  norm          6.0016        3.4669        .40975E-02   -.81708E-03
   6  Prefactor     .10000E-03    1.9812        .90712E-02** at limit **
   7  Prefactor     .10000E-03    9.6411        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.1019        .90712E-02** at limit **
   9  norm          2.9132        2.2011        .59510E-02    .33926E-04
  10  norm          .78324        .57765        .10269E-01    .31217E-03
  11  Prefactor     8.9223        20.586        .33563E-02   -.18878E-03
  12  Prefactor     8.2059        11.354        .34991E-02    .87135E-03
  13  Prefactor     .10000E-03    .74271        .90712E-02** at limit **
  14  Prefactor     .10000E-03    80.371        .90712E-02** at limit **
  15  Prefactor     7.7855        13.166        .35931E-02    .33739E-03
  16  norm          6.2199        6.9242        .40241E-02    .20042E-03
  17  norm          17.720        9.0996        .23785E-02    .67073E-03
  18  Prefactor     1.5344        2.1013        .86097E-02    .60706E-03
  19  Prefactor     7.6153        310.78        .36330E-02   -.82926E-05
  20  Prefactor     2.6648        3.8908        .62415E-02   -.24646E-02
  21  Prefactor     10.933        37.417        .30295E-02   -.91455E-03
  22  Prefactor     3.4773        3.3627        .54214E-02    .49854E-03
  23  Prefactor     .10000E-03    22.618        .90712E-02** at limit **
  24  norm          .81964        .42931        .79873E-02   -.98634E-04
  25  Prefactor     .10000E-03    1.2458        .90712E-02** at limit **
  26  norm          10.597        8.5664        .30770E-02   -.92931E-03
  27  Prefactor     .10000E-03    1.3135        .32684E-01** at limit **
  28  Normalizat    1.0733        .18371        .39207E-01    .28988E-04
  29  Prefactor     .77502        .14102        .43391E-01    .20449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.40892
  Prefactor  = 3.87398
  norm       = 8.75541
  norm       = 6.00158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91318
  norm       = 0.783239
  Prefactor  = 8.9223
  Prefactor  = 8.20594
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.78546
  norm       = 6.21991
  norm       = 17.7205
  Prefactor  = 1.53436
  Prefactor  = 7.61532
  Prefactor  = 2.66485
  Prefactor  = 10.9326
  Prefactor  = 3.47728
  Prefactor  = 0.0001
  norm       = 0.819636
  Prefactor  = 0.0001
  norm       = 10.5971
  Prefactor  = 0.0001
  Normalizat = 1.07333
  Prefactor  = 0.775022
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.458     FROM HESSE     STATUS=OK           561 CALLS     4250 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1009        .16910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4089        12.281        .15854E-03   -1.5202    
   3  Prefactor     3.8740        19.046        .20499E-03   -1.5314    
   4  norm          8.7554        9.6730        .13547E-03   -1.5116    
   5  norm          6.0016        3.4594        .99916E-04   -1.5218    
   6  Prefactor     .10000E-03    1.9825        .10557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2988        .33768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9132        2.1987        .96401E-04   -1.5367    
  10  norm          .78324        .55707        .46606E-03   -1.5531    
  11  Prefactor     8.9223        20.582        .13425E-03   -1.5110    
  12  Prefactor     8.2059        11.282        .13997E-03   -1.5135    
  13  Prefactor     .10000E-03    .74612        .64574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    81.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7855        13.111        .14372E-03   -1.5150    
  16  norm          6.2199        6.9030        .16096E-03   -1.5209    
  17  norm          17.720        9.0922        .95142E-04   -1.4866    
  18  Prefactor     1.5344        2.0678        .12360E-03   -1.5460    
  19  Prefactor     7.6153        308.94        .14532E-03   -1.5156    
  20  Prefactor     2.6648        3.8783        .17786E-03   -1.5381    
  21  Prefactor     10.933        37.310        .12118E-03   -1.5047    
  22  Prefactor     3.4773        3.3311        .12714E-03   -1.5335    
  23  Prefactor     .10000E-03    22.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .81964        .42933        .35215E-04   -1.5527    
  25  Prefactor     .10000E-03    1.2575        .83561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.597        8.5195        .12308E-03   -1.5057    
  27  Prefactor     .10000E-03    2.4317        .16850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0733        .20949        .24099E-03   -.90613    
  29  Prefactor     .77502        .16069        .22612E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67626e-08
Minuit parameter uncertainties:
  1  1.73658e-05
  2  12.2856
  3  17.1879
  4  9.67471
  5  3.45948
  6  4.54236e-06
  7  1.71313e-05
  8  5.08977e-05
  9  2.19878
  10  0.557076
  11  20.5987
  12  11.2849
  13  8.76509e-07
  14  0.000702377
  15  13.1155
  16  6.90385
  17  9.09288
  18  2.06786
  19  97.5535
  20  3.87864
  21  37.39
  22  3.3313
  23  9.18542e-05
  24  0.429329
  25  4.61006e-06
  26  8.52046
  27  5.35719e-06
  28  0.209647
  29  0.160786
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  8.206e+00  1.128e+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:  7.750e-01  1.608e-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.073e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425533/likelihoodResults_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.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) = 5899.45766187
delta logL = 1.64618541021e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5899.45766187
delta logL = 3.04771674564e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2059       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4561       1.0000          .0000       10.000    
     3 'Normalizat'    1.0733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77502       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5899.458     FROM MIGRAD    STATUS=FAILED        78 CALLS      220 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2032        27.700        .13995E-03   -.10306E-02
   2  Index         2.4564        6.2282        .93742E-02   -.31408E-03
   3  Normalizat    1.0733        .25339        .24099E-03   -.70977E-03
   4  Prefactor     .77503        .17523        .22612E-03   -.83295E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5899.458     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      299 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2032        27.700        .28618E-03   -1.5135    
   2  Index         2.4564        6.2282        .22787E-02   -.53369    
   3  Normalizat    1.0733        .25339        .16356E-03   -.90613    
   4  Prefactor     .77503        .17523        .19994E-03   -1.0066    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5899.458     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      326 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2008        18.635        .55982E-05   -.13135E-02
   2  Index         2.4569        2.7332        .37497E-03   -.11604E-03
   3  Normalizat    1.0733        .22194        .48199E-04   -.53991E-03
   4  Prefactor     .77504        .16487        .45224E-04   -.55702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.2008
  Index      = 2.45687
  Normalizat = 1.0733
  Prefactor  = 0.775035
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.458     FROM HESSE     STATUS=OK            23 CALLS      349 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2008        18.507        .11196E-05   -1.5135    
   2  Index         2.4569        2.7158        .74994E-04   -.53359    
   3  Normalizat    1.0733        .22156        .96397E-05   -.90614    
   4  Prefactor     .77504        .16477        .90448E-05   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53247e-09
Minuit parameter uncertainties:
  1  18.5198
  2  2.93884
  3  0.221748
  4  0.164874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425533': 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) = 5899.45766183
delta logL = 4.16976035922e-08

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  8.201e+00  1.852e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.457e+00  2.939e+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:  7.750e-01  1.649e-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.073e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425533/cmap_HighResolution_443577601_443836801_4FGL_J0823.1+4042_daily_bin788.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-29 18:12:06.298036', job_id='425533', GAL2='0.78', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630285926.3', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.17e-08', ts2='0.81', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='788' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 425533: <4FGL_J0823.1+4042_daily_bin788> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin788> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:55:40 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:55:42 2021
Terminated at Sun Aug 29 18:12:07 2021
Results reported at Sun Aug 29 18:12:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin788 125.8 40.7077 443577601 443836801 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 :                                   885.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

