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


Performing analysis on: 4FGL_J0854.8+2006_daily_bin1050
RA = 133.707, Dec = 20.1159
tmin = 511488001, tmax = 511747201
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='849831', job_status='RUN', time_executed='2021-08-30 16:20:25.480799', time_epoch_executed='1630365625.48' WHERE source_name='4FGL J0854.8+2006' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849831/ft1_4FGL_J0854.8+2006_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849831/ft1_4FGL_J0854.8+2006_daily_bin1050.fits outfile=/scratch/kocevski/849831/ft1_filteredMKT_4FGL_J0854.8+2006_daily_bin1050.fits ra=133.707 dec=20.1159 rad=12.0 tmin=511488001.0 tmax=511747201.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.84
user 3.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.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/849831/ft1_filteredMKT_4FGL_J0854.8+2006_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.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.10
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/849831/ltcube_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.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/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits
.....................!
real 11.94
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/849831/ltcube_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.fits outfile=/scratch/kocevski/849831/expmap_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.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/849831/ltcube_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.fits
.....................!
real 193.03
user 187.32
sys 4.47

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J0854.8+2006 @ 133.707 20.1159

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits scfile=/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits outfile=/scratch/kocevski/849831/cmap_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.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=133.707 yref=20.1159 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.83
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits scfile=/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits outfile=/scratch/kocevski/849831/cmap_HighResolution_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.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=133.707 yref=20.1159 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.73
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849831/Model_4FGL_J0854.8+2006_daily_bin1050.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/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits.....................!
real 59.03
user 54.46
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits', '/scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits', expMap='/scratch/kocevski/849831/expmap_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.fits', expCube='/scratch/kocevski/849831/ltcube_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849831/Model_4FGL_J0854.8+2006_daily_bin1050.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0854.8+2006'

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  1.743e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
290        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
291         beta:  5.102e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
292           Eb:  6.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/849831/ft1_filtered_4FGL_J0854.8+2006_daily_bin1050.fits
Spacecraft file(s): /scratch/kocevski/849831/ft2_4FGL_J0854.8+2006_daily_bin1050.fits
Exposure map: /scratch/kocevski/849831/expmap_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.fits
Exposure cube: /scratch/kocevski/849831/ltcube_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849831/Model_4FGL_J0854.8+2006_daily_bin1050.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) = 5831.59236221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7898       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8936       1.0000         .10000E-03   10000.    
    11 'norm      '    11.795       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1294       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2176       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .84648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5831.592     FROM MIGRAD    STATUS=CONVERGED    295 CALLS     1437 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.071        32.373        .25792E-02    .46030E-03
   2  Prefactor     .10000E-03    40.022        .90712E-02** at limit **
   3  norm          .10000E-03    .69730        .20661E-01** at limit **
   4  Prefactor     .10000E-03    3.6550        .90712E-02** at limit **
   5  Prefactor     6.8188        6.4993        .38414E-02    .20357E-02
   6  Prefactor     .10000E-03    12.855        .90712E-02** at limit **
   7  norm          1.5332        .68434        .86152E-02   -.21715E-02
   8  Prefactor     3.9664        6.9291        .50635E-02    .87074E-03
   9  Prefactor     6.7905        12.675        .38495E-02    .16152E-02
  10  norm          2.8940        8.3404        .59724E-02    .37436E-03
  11  norm          11.796        24.279        .29160E-02   -.87744E-04
  12  norm          1.2782        1.1324        .98204E-03   -.64223E-03
  13  Prefactor     .10000E-03    28.301        .90712E-02** at limit **
  14  Prefactor     3.1296        2.8192        .57294E-02   -.15610E-03
  15  Normalizat    1.2176        .17421        .51859E-01   -.42351E-03
  16  Prefactor     .84649        .14987        .44319E-01   -.18305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.81882
  Prefactor  = 0.0001
  norm       = 1.53316
  Prefactor  = 3.96644
  Prefactor  = 6.79048
  norm       = 2.89401
  norm       = 11.7957
  norm       = 1.27821
  Prefactor  = 0.0001
  Prefactor  = 3.12957
  Normalizat = 1.21756
  Prefactor  = 0.846485
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.592     FROM HESSE     STATUS=OK           203 CALLS     1640 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.071        32.372        .10317E-03   -1.4931    
   2  Prefactor     .10000E-03    40.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6769        .12262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6742        .14253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8188        6.4975        .15366E-03   -1.5186    
   6  Prefactor     .10000E-03    12.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5332        .68571        .40557E-04   -1.5460    
   8  Prefactor     3.9664        6.9215        .20254E-03   -1.5310    
   9  Prefactor     6.7905        12.690        .76991E-03   -1.5187    
  10  norm          2.8940        8.3244        .23890E-03   -1.5368    
  11  norm          11.796        24.273        .11664E-03   -1.5021    
  12  norm          1.2782        1.1324        .39282E-04   -1.5482    
  13  Prefactor     .10000E-03    28.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1296        2.8260        .11780E-03   -1.5354    
  15  Normalizat    1.2176        .20358        .22929E-03   -.86062    
  16  Prefactor     .84649        .17538        .23505E-03   -.98037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30294e-09
Minuit parameter uncertainties:
  1  32.4102
  2  0.000170639
  3  2.19579e-06
  4  4.39429e-05
  5  6.49819
  6  1.51979e-05
  7  0.685718
  8  6.92291
  9  12.6945
  10  8.32769
  11  24.2929
  12  1.13242
  13  0.000139831
  14  2.82615
  15  0.203716
  16  0.175493
Done.

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

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  1.533e+00  6.857e-01  1.000e-04  1.000e+04 ( 1.000e-11)
290        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
291         beta:  5.102e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
292           Eb:  6.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.465e-01  1.755e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.218e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.92
Ra Dec: 133.707 20.116
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.24e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.42e-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) = 5829.53206457
delta logL = 2.05990722809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5829.51207967
delta logL = 2.07989213427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0478       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3762       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83316       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5829.512     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0477        .58351        .87399E-02   -.15382E-02
   2  alpha         1.3762        .28459        .20267        .16873E-04
   3  Normalizat    1.2565        .17028        .51211E-01    .58172E-04
   4  Prefactor     .83319        .14908        .44147E-01    .19949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04768
  alpha      = 1.37617
  Normalizat = 1.25654
  Prefactor  = 0.833192
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.512     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0477        .73674        .38196E-04   -1.5503    
   2  alpha         1.3762        .37118        .85775E-02   -.46624    
   3  Normalizat    1.2565        .19897        .22641E-03   -.84873    
   4  Prefactor     .83319        .17419        .23696E-03   -.98516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40222e-10
Minuit parameter uncertainties:
  1  0.736748
  2  0.372916
  3  0.199093
  4  0.174303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849831': 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) = 5829.51207963
delta logL = 2.07989217382

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  1.048e+00  7.367e-01  1.000e-04  1.000e+04 ( 1.000e-11)
290        alpha:  1.376e+00  3.729e-01  0.000e+00  5.000e+00 ( 1.000e+00)
291         beta:  5.102e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
292           Eb:  6.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.332e-01  1.743e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.257e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.09
Ra Dec: 133.707 20.116
Photon Index (Free Index): 1.38 +/- 0.37
Photon Flux (Free Index): 3.08e-08 +/- 2.17e-08
Energy Flux (Free Index): 8.78e-05 +/- 7.01e-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/849831/cmap_HighResolution_511488001_511747201_4FGL_J0854.8+2006_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.24e-08', energy_flux2='8.78e-05', photon_flux_error='3.24e-08', dlogl='2.08e+00', energy_flux='3.18e-05', photon_flux2='3.08e-08', job_status='DONE', time_completed='2021-08-30 16:28:21.106238', photon_index_error2='0.37', photon_index2='1.38', ts='21.92', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='7.01e-05', EG='1.22', time_epoch_completed='1630366101.11', return_code='0', job_id='849831', GAL2='0.83', EG2='1.26', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='2.17e-08', ts2='26.09', photon_index='2.16' WHERE bin_id='1050' AND source_name='4FGL J0854.8+2006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 16:28:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 849831: <4FGL_J0854.8+2006_daily_bin1050> in cluster <slac> Done

Job <4FGL_J0854.8+2006_daily_bin1050> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 30 16:16:29 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 16:16:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 16:16:31 2021
Terminated at Mon Aug 30 16:28:21 2021
Results reported at Mon Aug 30 16:28:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0854.8+2006_daily_bin1050 133.707 20.1159 511488001 511747201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0854.8+2006 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   463.58 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

