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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin755
RA = 125.8, Dec = 40.7077
tmin = 435024001, tmax = 435283201
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='425485', job_status='RUN', time_executed='2021-08-29 17:57:22.865194', time_epoch_executed='1630285042.87' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425485/ft1_4FGL_J0823.1+4042_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425485/ft2_4FGL_J0823.1+4042_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425485/ft1_4FGL_J0823.1+4042_daily_bin755.fits outfile=/scratch/kocevski/425485/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin755.fits ra=125.8 dec=40.7077 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.63
user 4.85
sys 0.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425485/ft1_filtered_4FGL_J0823.1+4042_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/425485/ft2_4FGL_J0823.1+4042_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/425485/ltcube_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.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/425485/ft2_4FGL_J0823.1+4042_daily_bin755.fits
.....................!
real 13.18
user 11.59
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425485/ft1_filtered_4FGL_J0823.1+4042_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/425485/ft2_4FGL_J0823.1+4042_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/425485/ltcube_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.fits outfile=/scratch/kocevski/425485/expmap_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.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/425485/ltcube_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.fits
.....................!
real 191.32
user 184.86
sys 4.60

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/425485/ft1_filtered_4FGL_J0823.1+4042_daily_bin755.fits scfile=/scratch/kocevski/425485/ft2_4FGL_J0823.1+4042_daily_bin755.fits outfile=/scratch/kocevski/425485/cmap_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.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.00
user 0.38
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425485/ft1_filtered_4FGL_J0823.1+4042_daily_bin755.fits scfile=/scratch/kocevski/425485/ft2_4FGL_J0823.1+4042_daily_bin755.fits outfile=/scratch/kocevski/425485/cmap_HighResolution_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.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.06
user 0.38
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9735       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5931       1.0000         .10000E-03   10000.    
    10 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6011       1.0000         .10000E-03   10000.    
    16 'norm      '    26.136       1.0000         .10000E-03   10000.    
    17 'norm      '    18.971       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14592E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47911       1.0000         .10000E-03   10000.    
    26 'norm      '    18.107       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77315       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99128       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=   5408.786     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3773 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.486        .12643E-05** at limit **
   2  Prefactor     17.632        11.824        .21873E-07    .75331E-05
   3  Prefactor     .10000E-03    14.110       -.10428E-05** at limit **
   4  norm          .10000E-03    5.3005        .30336E-07** at limit **
   5  norm          1.9735        1.9405        .31601E-08    .14438E-04
   6  Prefactor     .10000E-03    9.0236        .54888E-06** at limit **
   7  Prefactor     2.2744        77.900       -.28219E-05   -.29278E-04
   8  Prefactor     .10000E-03    1.5743        .18876E-07** at limit **
   9  norm          1.5931        2.1257        .69944E-07   -.10334E-03
  10  norm          .10000E-03    .39236        .44927E-07** at limit **
  11  Prefactor     .10000E-03    35.499       -.10197E-05** at limit **
  12  Prefactor     41.794        18.651        .29183E-06    .10375E-04
  13  Prefactor     .10000E-03    1.9668        .14002E-06** at limit **
  14  Prefactor     12.660        38.210       -.77918E-06   -.17137E-05
  15  Prefactor     4.6025        13.402        .24580E-06   -.14322E-04
  16  norm          26.136        9.8385       -.48410E-08    .93477E-05
  17  norm          18.970        10.891        .16191E-07   -.27757E-05
  18  Prefactor     3.9293        2.7634       -.52323E-07   -.87377E-05
  19  Prefactor     .10000E-03    25.903        .42280E-06** at limit **
  20  Prefactor     .10000E-03    3.3739       -.40990E-06** at limit **
  21  Prefactor     .10000E-03    12.961        .45119E-06** at limit **
  22  Prefactor     2.1313        3.7458        .63543E-07   -.11131E-03
  23  Prefactor     .10000E-03    9.0762       -.57454E-06** at limit **
  24  norm          .10000E-03    .21879       -.37466E-06** at limit **
  25  Prefactor     .47936        2.7278        .19881E-05   -.33400E-04
  26  norm          18.106        12.203       -.67422E-07    .61857E-04
  27  Prefactor     .10000E-03    1.2337       -.61989E-07** at limit **
  28  Normalizat    .77321        .18607       -.50383E-06    .92235E-04
  29  Prefactor     .99126        .14539        .15955E-06    .48333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.632
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.97351
  Prefactor  = 0.0001
  Prefactor  = 2.27442
  Prefactor  = 0.0001
  norm       = 1.59306
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7941
  Prefactor  = 0.0001
  Prefactor  = 12.6601
  Prefactor  = 4.60251
  norm       = 26.1355
  norm       = 18.9704
  Prefactor  = 3.92933
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.13133
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.479359
  norm       = 18.1064
  Prefactor  = 0.0001
  Normalizat = 0.773211
  Prefactor  = 0.991259
 **********
 **   18 **HESSE 
 **********

 FCN=   5408.786     FROM HESSE     STATUS=OK           561 CALLS     4334 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.435        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.632        11.811        .95383E-04   -1.4868    
   3  Prefactor     .10000E-03    14.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.3372        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9735        1.9356        .97666E-04   -1.5427    
   6  Prefactor     .10000E-03    9.5770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2744        82.709        .27131E-03   -1.5406    
   8  Prefactor     .10000E-03    1.5820        .90063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5931        2.1045        .12030E-03   -1.5456    
  10  norm          .10000E-03    .75326        .86295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.794        18.178        .62016E-04   -1.4414    
  13  Prefactor     .10000E-03    2.0142        .20062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.660        37.746        .11257E-03   -1.4996    
  15  Prefactor     4.6025        13.218        .18765E-03   -1.5279    
  16  norm          26.136        9.8402        .78359E-04   -1.4685    
  17  norm          18.970        10.890        .91956E-04   -1.4837    
  18  Prefactor     3.9293        2.7586        .98273E-04   -1.5311    
  19  Prefactor     .10000E-03    25.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.0914        .25946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1313        3.7033        .17287E-03   -1.5416    
  23  Prefactor     .10000E-03    9.0842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .35211        .66113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .47936        3.1318        .24371E-03   -1.5570    
  26  norm          18.106        12.189        .94123E-04   -1.4857    
  27  Prefactor     .10000E-03    1.2432        .79658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77321        .21676        .27471E-03   -1.0107    
  29  Prefactor     .99126        .17023        .20345E-03   -.93021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16798e-10
Minuit parameter uncertainties:
  1  0.000112974
  2  11.8125
  3  3.4808e-05
  4  1.82766e-06
  5  1.93565
  6  9.78842e-05
  7  27.4716
  8  1.41068e-06
  9  2.10461
  10  8.9081e-06
  11  5.39012e-06
  12  18.1801
  13  1.26959e-05
  14  37.8174
  15  13.2266
  16  9.84078
  17  10.8916
  18  2.75867
  19  8.13245e-07
  20  0.00037336
  21  2.53192e-07
  22  3.70374
  23  2.05476e-06
  24  4.52887e-06
  25  2.45045
  26  12.1906
  27  1.36325e-06
  28  0.216999
  29  0.170322
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  4.179e+01  1.818e+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.913e-01  1.703e-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:  7.732e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.00
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 5.29e-08
Energy Flux (Fixed Index): 3.72e-05 +/- 1.62e-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) = 5407.78692014
delta logL = 0.999189948348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5407.76638205
delta logL = 1.01972802994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.873       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2122       1.0000          .0000       10.000    
     3 'Normalizat'    .71265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0295       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=   5407.766     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      249 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.873        71.101        .27911E-02    .81212E-03
   2  Index         3.2122        2.1935        .63461E-01    .15626E-03
   3  Normalizat    .71267        .93854E-01    .64371E-01    .21014E-04
   4  Prefactor     1.0295        .73785E-01    .41296E-01    .16479E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.873
  Index      = 3.21219
  Normalizat = 0.712669
  Prefactor  = 1.02951
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.766     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.873        24.826        .93185E-04   -1.4990    
   2  Index         3.2122        .97850        .26874E-02   -.36566    
   3  Normalizat    .71267        .21011        .28479E-03   -1.0339    
   4  Prefactor     1.0295        .17262        .20006E-03   -.91752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17219e-09
Minuit parameter uncertainties:
  1  24.8461
  2  0.985809
  3  0.21035
  4  0.172708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425485': 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) = 5407.76638203
delta logL = 1.01972805399

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.287e+01  2.485e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  3.212e+00  9.858e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.030e+00  1.727e-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:  7.127e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.28
Ra Dec: 125.800 40.708
Photon Index (Free Index): 3.21 +/- 0.99
Photon Flux (Free Index): 1.59e-07 +/- 6.15e-08
Energy Flux (Free Index): 2.90e-05 +/- 1.35e-05

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/425485/cmap_HighResolution_435024001_435283201_4FGL_J0823.1+4042_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='2.90e-05', photon_flux_error='5.29e-08', dlogl='1.02e+00', energy_flux='3.72e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-08-29 18:09:42.200362', photon_index_error2='0.99', photon_index2='3.21', ts='10.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.77', time_epoch_completed='1630285782.2', return_code='0', job_id='425485', GAL2='1.03', EG2='0.71', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.15e-08', ts2='12.28', photon_index='2.46' WHERE bin_id='755' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 425485: <4FGL_J0823.1+4042_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin755 125.8 40.7077 435024001 435283201 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 :                                   738.28 sec.
    Max Memory :                                 1048 MB
    Average Memory :                             292.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            850 sec.

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

