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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin155
RA = 125.8, Dec = 40.7077
tmin = 279504001, tmax = 279763201
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='422240', job_status='RUN', time_executed='2021-08-29 17:48:59.044459', time_epoch_executed='1630284539.04' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422240/ft1_4FGL_J0823.1+4042_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422240/ft1_4FGL_J0823.1+4042_daily_bin155.fits outfile=/scratch/kocevski/422240/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin155.fits ra=125.8 dec=40.7077 rad=12.0 tmin=279504001.0 tmax=279763201.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.59
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.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/422240/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin155.fits evtable="EVENTS" outfile="/scratch/kocevski/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.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.61
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/422240/ltcube_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.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/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits
.....................!
real 12.01
user 11.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/422240/ltcube_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.fits outfile=/scratch/kocevski/422240/expmap_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.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/422240/ltcube_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.fits
.....................!
real 192.00
user 186.07
sys 5.10

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/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.fits scfile=/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits outfile=/scratch/kocevski/422240/cmap_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.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.62
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.fits scfile=/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits outfile=/scratch/kocevski/422240/cmap_HighResolution_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.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.63
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.fits', '/scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits', expMap='/scratch/kocevski/422240/expmap_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.fits', expCube='/scratch/kocevski/422240/ltcube_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422240/Model_4FGL_J0823.1+4042_daily_bin155.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/422240/ft1_filtered_4FGL_J0823.1+4042_daily_bin155.fits
Spacecraft file(s): /scratch/kocevski/422240/ft2_4FGL_J0823.1+4042_daily_bin155.fits
Exposure map: /scratch/kocevski/422240/expmap_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.fits
Exposure cube: /scratch/kocevski/422240/ltcube_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422240/Model_4FGL_J0823.1+4042_daily_bin155.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6822.82425188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13726       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15671       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60740       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .93746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.297       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9327       1.0000         .10000E-03   10000.    
    16 'norm      '    9.9754       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8841       1.0000         .10000E-03   10000.    
    19 'Prefactor '    96.210       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8188       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1250       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7887       1.0000         .10000E-03   10000.    
    26 'norm      '    .54913E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .39082       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4470       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57451       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=   6822.785     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3265 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48998E-01    11.041        .14432E-05   -.26755E-03
   2  Prefactor     14.269        14.080        .10297E-06   -.33256E-05
   3  Prefactor     .10384E-03    14.734       -.46697E-06** at limit **
   4  norm          .10000E-03    5.3773       -.20477E-07** at limit **
   5  norm          .10000E-03    1.1113        .10536E-06** at limit **
   6  Prefactor     .10000E-03    2.1670        .25502E-06** at limit **
   7  Prefactor     26.319        31.790        .19993E-06    .87803E-04
   8  Prefactor     .60720        2.7225        .21827E-05    .18257E-03
   9  norm          .10000E-03    .78127        .68357E-07** at limit **
  10  norm          .93745        .54242       -.21808E-07   -.40717E-03
  11  Prefactor     51.737        28.333        .56318E-07   -.64937E-04
  12  Prefactor     26.023        14.386       -.13455E-06   -.81497E-04
  13  Prefactor     .10000E-03    1.5489       -.13680E-07** at limit **
  14  Prefactor     11.295        25.555        .60645E-07   -.49973E-04
  15  Prefactor     7.9312        8.3909        .22302E-07   -.88757E-04
  16  norm          9.9727        6.3287        .49794E-07    .41944E-04
  17  norm          4.2332        5.5333        .28829E-06    .95207E-04
  18  Prefactor     2.8844        2.9094        .21458E-06   -.96938E-05
  19  Prefactor     96.248        78.471        .27768E-06    .44407E-04
  20  Prefactor     .10000E-03    1.5953       -.11616E-08** at limit **
  21  Prefactor     .10000E-03    10.546       -.94451E-07** at limit **
  22  Prefactor     4.8199        3.5549       -.49263E-07   -.23564E-03
  23  Prefactor     .10000E-03    10.572        .64205E-07** at limit **
  24  norm          1.1243        .84296        .11974E-06   -.45158E-03
  25  Prefactor     2.7932        5.8035       -.33527E-06   -.10293E-03
  26  norm          .10001E-03    8.7406       -.51450E-06** at limit **
  27  Prefactor     .39767        3.1837        .86606E-06   -.28375E-03
  28  Normalizat    1.4466        .18518       -.76520E-06   -.23142E-03
  29  Prefactor     .57517        .13373       -.27404E-06   -.23422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0489979
  Prefactor  = 14.2693
  Prefactor  = 0.000103841
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3188
  Prefactor  = 0.607196
  norm       = 0.0001
  norm       = 0.937447
  Prefactor  = 51.7371
  Prefactor  = 26.0235
  Prefactor  = 0.0001
  Prefactor  = 11.2946
  Prefactor  = 7.93124
  norm       = 9.97275
  norm       = 4.23323
  Prefactor  = 2.88439
  Prefactor  = 96.2482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.81995
  Prefactor  = 0.0001
  norm       = 1.12427
  Prefactor  = 2.79317
  norm       = 0.000100006
  Prefactor  = 0.397669
  Normalizat = 1.4466
  Prefactor  = 0.575171
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.785     FROM HESSE     STATUS=OK           579 CALLS     3844 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48998E-01    15.018        .75077E-01   -1.5664    
   2  Prefactor     14.269        14.055        .10603E-03   -1.4952    
   3  Prefactor     .10384E-03    17.627        .86700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1244        .84891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1691        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.319        31.836        .78054E-04   -1.4681    
   8  Prefactor     .60720        2.7744        .26801E-03   -1.5552    
   9  norm          .10000E-03    1.2384        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .93745        .53489        .43755E-04   -1.5514    
  11  Prefactor     51.737        28.353        .27876E-03   -1.4268    
  12  Prefactor     26.023        14.344        .78526E-04   -1.4687    
  13  Prefactor     .10000E-03    1.5707        .10012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.295        25.550        .11919E-03   -1.5036    
  15  Prefactor     7.9312        8.3740        .14236E-03   -1.5145    
  16  norm          9.9727        6.3249        .12687E-03   -1.5076    
  17  norm          4.2332        5.5240        .19583E-03   -1.5296    
  18  Prefactor     2.8844        2.8976        .13266E-03   -1.5368    
  19  Prefactor     96.248        78.556        .20489E-03   -1.3743    
  20  Prefactor     .10000E-03    1.5986        .10188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8199        3.4745        .12069E-03   -1.5269    
  23  Prefactor     .10000E-03    10.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1243        .94373        .45845E-04   -1.5496    
  25  Prefactor     2.7932        6.5920        .19537E-03   -1.5374    
  26  norm          .10001E-03    83.057        .43837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .39767        5.1422        .23781E-02   -1.5582    
  28  Normalizat    1.4466        .21630        .23655E-03   -.79290    
  29  Prefactor     .57517        .15567        .26956E-03   -1.0864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66906e-08
Minuit parameter uncertainties:
  1  1.71433
  2  14.0578
  3  0.016461
  4  2.5855e-06
  5  1.86052e-06
  6  2.96068e-06
  7  31.8568
  8  2.59581
  9  1.50773e-06
  10  0.534896
  11  28.3605
  12  14.3458
  13  4.47452e-07
  14  25.5749
  15  8.37527
  16  6.32529
  17  5.52462
  18  2.8977
  19  78.6411
  20  7.84535e-07
  21  2.8961e-05
  22  3.47463
  23  2.73649e-05
  24  0.943743
  25  6.59372
  26  0.00141479
  27  2.85993
  28  0.216438
  29  0.155784
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.602e+01  1.435e+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:  5.752e-01  1.558e-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.447e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.29
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.28e-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) = 6822.78247217
delta logL = 0.00276547684189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6822.77849414
delta logL = 0.00674350946883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.914       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3980       1.0000          .0000       10.000    
     3 'Normalizat'    1.4497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57332       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=   6822.778     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.918        23.285        .75827E-04   -.53756E-03
   2  Index         2.3980        .52175        .52627E-02   -.25682E-03
   3  Normalizat    1.4498        .20301        .23634E-03    .39938E-03
   4  Prefactor     .57328        .15218        .26995E-03    .48246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9175
  Index      = 2.39798
  Normalizat = 1.44976
  Prefactor  = 0.573285
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.778     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.918        22.015        .15165E-04   -1.4651    
   2  Index         2.3980        .49313        .21051E-03   -.54732    
   3  Normalizat    1.4498        .20292        .47269E-04   -.79200    
   4  Prefactor     .57328        .15214        .10798E-04   -1.0872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1285e-10
Minuit parameter uncertainties:
  1  22.0212
  2  0.494233
  3  0.203036
  4  0.152251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422240': 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) = 6822.77849406
delta logL = 0.0067435833289

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.792e+01  2.202e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.398e+00  4.942e-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:  5.733e-01  1.523e-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.450e+00  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.40 +/- 0.49
Photon Flux (Free Index): 7.34e-08 +/- 4.47e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/422240/cmap_HighResolution_279504001_279763201_4FGL_J0823.1+4042_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='2.41e-05', photon_flux_error='4.17e-08', dlogl='6.74e-03', energy_flux='2.31e-05', photon_flux2='7.34e-08', job_status='DONE', time_completed='2021-08-29 18:01:52.805626', photon_index_error2='0.49', photon_index2='2.40', ts='6.29', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.45', time_epoch_completed='1630285312.81', return_code='0', job_id='422240', GAL2='0.57', EG2='1.45', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.47e-08', ts2='6.31', photon_index='2.46' WHERE bin_id='155' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:01:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 422240: <4FGL_J0823.1+4042_daily_bin155> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin155> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:47 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45:48 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:45:48 2021
Terminated at Sun Aug 29 18:01:54 2021
Results reported at Sun Aug 29 18:01:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin155 125.8 40.7077 279504001 279763201 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

