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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin433
RA = 125.8, Dec = 40.7077
tmin = 351561601, tmax = 351820801
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='423929', job_status='RUN', time_executed='2021-08-29 17:51:47.886716', time_epoch_executed='1630284707.89' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423929

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423929/ft1_4FGL_J0823.1+4042_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423929/ft2_4FGL_J0823.1+4042_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423929/ft1_4FGL_J0823.1+4042_daily_bin433.fits outfile=/scratch/kocevski/423929/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin433.fits ra=125.8 dec=40.7077 rad=12.0 tmin=351561601.0 tmax=351820801.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 7.46
user 6.58
sys 0.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423929/ft2_4FGL_J0823.1+4042_daily_bin433.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/423929/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/423929/ft1_filtered_4FGL_J0823.1+4042_daily_bin433.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.13
user 0.34
sys 0.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423929/ft1_filtered_4FGL_J0823.1+4042_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/423929/ft2_4FGL_J0823.1+4042_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/423929/ltcube_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.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/423929/ft2_4FGL_J0823.1+4042_daily_bin433.fits
.....................!
real 12.02
user 11.00
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423929/ft1_filtered_4FGL_J0823.1+4042_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/423929/ft2_4FGL_J0823.1+4042_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/423929/ltcube_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.fits outfile=/scratch/kocevski/423929/expmap_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.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/423929/ltcube_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.fits
.....................!
real 191.20
user 185.14
sys 5.36

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/423929/ft1_filtered_4FGL_J0823.1+4042_daily_bin433.fits scfile=/scratch/kocevski/423929/ft2_4FGL_J0823.1+4042_daily_bin433.fits outfile=/scratch/kocevski/423929/cmap_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.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.07
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423929/ft1_filtered_4FGL_J0823.1+4042_daily_bin433.fits scfile=/scratch/kocevski/423929/ft2_4FGL_J0823.1+4042_daily_bin433.fits outfile=/scratch/kocevski/423929/cmap_HighResolution_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.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.09
user 0.37
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16491E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21291E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7432       1.0000         .10000E-03   10000.    
     9 'norm      '    .10691E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1275       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9845       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2989       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8451       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45183       1.0000         .10000E-03   10000.    
    24 'norm      '    .56214E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6116       1.0000         .10000E-03   10000.    
    26 'norm      '    15.620       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .75811       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .34866       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1853       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=   4926.388     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3789 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    10.267        .35204E-05** at limit **
   2  Prefactor     .10000E-03    5.8947        .36482E-07** at limit **
   3  Prefactor     .10000E-03    9.7957       -.78120E-07** at limit **
   4  norm          .10000E-03    15.936       -.35798E-05** at limit **
   5  norm          5.4724        3.2387        .48952E-07    .15205E-03
   6  Prefactor     .10009E-03    6.8591       -.21664E-05** at limit **
   7  Prefactor     11.392        38.467        .49629E-05    .14445E-03
   8  Prefactor     6.7437        4.8236        .12175E-05    .56257E-03
   9  norm          .10000E-03    1.7437        .85137E-07** at limit **
  10  norm          1.3966        .63844       -.75558E-07    .88242E-03
  11  Prefactor     34.892        28.336        .11771E-05    .43972E-04
  12  Prefactor     4.1215        12.194        .16354E-05   -.38916E-03
  13  Prefactor     .10000E-03    1.7605       -.55912E-06** at limit **
  14  Prefactor     .10000E-03    18.646       -.79458E-05** at limit **
  15  Prefactor     .10000E-03    4.5186        .39330E-07** at limit **
  16  norm          5.9845        4.5492        .52789E-06    .14379E-03
  17  norm          2.7898        4.5771        .11258E-05    .10448E-03
  18  Prefactor     .10000E-03    .48839        .22603E-07** at limit **
  19  Prefactor     .10000E-03    21.511        .99901E-05** at limit **
  20  Prefactor     4.2993        3.9489        .26839E-06    .10620E-03
  21  Prefactor     .10000E-03    15.538        .50105E-05** at limit **
  22  Prefactor     3.8420        3.2912       -.63906E-08    .17841E-03
  23  Prefactor     .51447        11.277       -.33789E-06   -.25482E-03
  24  norm          .56837E-01    .80891        .16459E-06   -.49962E-03
  25  Prefactor     2.6047        4.1818       -.14148E-06   -.12875E-03
  26  norm          15.591        12.823       -.13786E-05    .21314E-03
  27  Prefactor     .76187        2.4874        .16595E-06    .46600E-04
  28  Normalizat    .34860        .19079       -.29804E-05   -.30189E-04
  29  Prefactor     1.1852        .15694        .29952E-06    .28925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.47244
  Prefactor  = 0.000100093
  Prefactor  = 11.3925
  Prefactor  = 6.74375
  norm       = 0.0001
  norm       = 1.39657
  Prefactor  = 34.8924
  Prefactor  = 4.12152
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.98452
  norm       = 2.78983
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.29926
  Prefactor  = 0.000100001
  Prefactor  = 3.84199
  Prefactor  = 0.51447
  norm       = 0.0568365
  Prefactor  = 2.60475
  norm       = 15.5911
  Prefactor  = 0.76187
  Normalizat = 0.3486
  Prefactor  = 1.18524
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.388     FROM HESSE     STATUS=OK           571 CALLS     4360 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10064E-03    61.631        .41142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9059        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.8231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4724        3.2339        .93480E-04   -1.5240    
   6  Prefactor     .10009E-03    33.422        .33823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.392        37.523        .11873E-03   -1.5033    
   8  Prefactor     6.7437        4.8484        .12171E-03   -1.5189    
   9  norm          .10000E-03    3.0407        .17980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3966        .63872        .35259E-04   -1.5472    
  11  Prefactor     34.892        28.295        .67841E-04   -1.4526    
  12  Prefactor     4.1215        12.496        .99206E-03   -1.5302    
  13  Prefactor     .10000E-03    2.7033        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5387        .14569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9845        4.5431        .12598E-03   -1.5219    
  17  norm          2.7898        4.5573        .18600E-03   -1.5374    
  18  Prefactor     .10000E-03    .48929        .47893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2993        3.9527        .12947E-03   -1.5293    
  21  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8420        3.2729        .10691E-03   -1.5316    
  23  Prefactor     .51447        14.833        .15611       -1.5565    
  24  norm          .56837E-01    5.1879        .77143E-03   -1.5660    
  25  Prefactor     2.6047        7.4534        .11094E-03   -1.5385    
  26  norm          15.591        13.891        .10134E-03   -1.4918    
  27  Prefactor     .76187        2.3881        .17909E-03   -1.5533    
  28  Normalizat    .34860        .19971        .35392E-03   -1.2005    
  29  Prefactor     1.1852        .16790        .17385E-03   -.86787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5684e-07
Minuit parameter uncertainties:
  1  0.0126056
  2  3.11536e-06
  3  1.14813e-06
  4  9.50139e-05
  5  3.23398
  6  0.00352359
  7  37.6011
  8  4.84866
  9  1.39732e-05
  10  0.638725
  11  28.3057
  12  12.5043
  13  8.18816e-06
  14  0.000296725
  15  5.83836e-06
  16  4.54332
  17  4.55782
  18  4.49667e-07
  19  0.000443561
  20  3.95291
  21  0.000212984
  22  3.2731
  23  5.52586
  24  1.08516
  25  7.45607
  26  13.8941
  27  2.38839
  28  0.20012
  29  0.167979
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  4.122e+00  1.250e+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.185e+00  1.680e-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:  3.486e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/423929/likelihoodResults_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.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) = 4926.38697579
delta logL = 0.00107703616686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4926.38665926
delta logL = 0.00139357088301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5223       1.0000          .0000       10.000    
     3 'Normalizat'    .34810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1855       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4926.387     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      269 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8063        14.536        .10326E-02   -.44401E-04
   2  Index         2.5228        1.4253        .10321E-01   -.17074E-04
   3  Normalizat    .34807        .18572        .35418E-03   -.15664E-04
   4  Prefactor     1.1855        .16326        .17383E-03    .11903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80627
  Index      = 2.52282
  Normalizat = 0.34807
  Prefactor  = 1.18552
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.387     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8063        12.876        .41305E-04   -1.5318    
   2  Index         2.5228        1.2682        .41284E-03   -.51834    
   3  Normalizat    .34807        .18577        .14167E-04   -1.2008    
   4  Prefactor     1.1855        .16321        .69532E-05   -.86778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03703e-11
Minuit parameter uncertainties:
  1  12.8851
  2  1.28698
  3  0.186095
  4  0.163284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423929': 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) = 4926.38665868
delta logL = 0.00139414606019

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  3.806e+00  1.289e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.523e+00  1.287e+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:  1.186e+00  1.633e-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:  3.481e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/423929/cmap_HighResolution_351561601_351820801_4FGL_J0823.1+4042_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-08-29 18:05:09.126930', job_id='423929', GAL2='1.19', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1630285509.13', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.39e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='433' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 423929: <4FGL_J0823.1+4042_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin433 125.8 40.7077 351561601 351820801 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 :                                   804.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             315.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

