/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 219 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 = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0854.8+2006_daily_bin94
RA = 133.707, Dec = 20.1159
tmin = 263692801, tmax = 263952001
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='841786', job_status='RUN', time_executed='2021-08-30 15:55:10.716105', time_epoch_executed='1630364110.72' WHERE source_name='4FGL J0854.8+2006' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841786/ft1_4FGL_J0854.8+2006_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841786/ft1_4FGL_J0854.8+2006_daily_bin94.fits outfile=/scratch/kocevski/841786/ft1_filteredMKT_4FGL_J0854.8+2006_daily_bin94.fits ra=133.707 dec=20.1159 rad=12.0 tmin=263692801.0 tmax=263952001.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 1.64
user 1.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.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/841786/ft1_filteredMKT_4FGL_J0854.8+2006_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/841786/ltcube_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.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/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits
.....................!
real 12.43
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/841786/ltcube_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.fits outfile=/scratch/kocevski/841786/expmap_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.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/841786/ltcube_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.fits
.....................!
real 190.72
user 185.05
sys 5.29

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/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.fits scfile=/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits outfile=/scratch/kocevski/841786/cmap_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.fits scfile=/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits outfile=/scratch/kocevski/841786/cmap_HighResolution_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.fits', '/scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits', expMap='/scratch/kocevski/841786/expmap_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.fits', expCube='/scratch/kocevski/841786/ltcube_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/841786/Model_4FGL_J0854.8+2006_daily_bin94.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/841786/ft1_filtered_4FGL_J0854.8+2006_daily_bin94.fits
Spacecraft file(s): /scratch/kocevski/841786/ft2_4FGL_J0854.8+2006_daily_bin94.fits
Exposure map: /scratch/kocevski/841786/expmap_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.fits
Exposure cube: /scratch/kocevski/841786/ltcube_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/841786/Model_4FGL_J0854.8+2006_daily_bin94.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) = 5393.75909291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .78354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11660E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.610       1.0000         .10000E-03   10000.    
     7 'norm      '    .33199E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5261       1.0000         .10000E-03   10000.    
    10 'norm      '    7.7746       1.0000         .10000E-03   10000.    
    11 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2605       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1800       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .88545       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5393.751     FROM MIGRAD    STATUS=CONVERGED    315 CALLS     1493 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.221       -.35015E-05** at limit **
   2  Prefactor     .10000E-03    15.714        .92351E-06** at limit **
   3  norm          .78417        1.1012       -.10529E-05   -.24307E-02
   4  Prefactor     .10000E-03    5.7283       -.17598E-06** at limit **
   5  Prefactor     .10000E-03    7.0602       -.71966E-07** at limit **
   6  Prefactor     29.573        38.613       -.50214E-04    .90778E-04
   7  norm          .29912E-01    .41764       -.65608E-06    .99226E-03
   8  Prefactor     17.584        14.578       -.55032E-07    .47905E-03
   9  Prefactor     2.4960        26.160       -.17469E-04   -.64542E-04
  10  norm          7.7745        6.8767       -.22015E-06    .13360E-04
  11  norm          .10000E-03    40.008        .78325E-05** at limit **
  12  norm          3.7727        1.9381       -.75962E-08    .37685E-03
  13  Prefactor     33.254        57.199       -.74894E-04    .46493E-04
  14  Prefactor     2.2603        2.8016        .59779E-08    .58520E-04
  15  Normalizat    1.1806        .19302        .13237E-04   -.98910E-06
  16  Prefactor     .88511        .15861        .27104E-06    .89977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.784167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5733
  norm       = 0.0299121
  Prefactor  = 17.584
  Prefactor  = 2.496
  norm       = 7.7745
  norm       = 0.000100001
  norm       = 3.77271
  Prefactor  = 33.2539
  Prefactor  = 2.2603
  Normalizat = 1.18056
  Prefactor  = 0.88511
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.751     FROM HESSE     STATUS=OK           203 CALLS     1696 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .78417        1.0168        .86614E-03   -1.5531    
   4  Prefactor     .10000E-03    5.7898        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.573        38.720        .73629E-04   -1.4620    
   7  norm          .29912E-01    3.7981        .86075E-03   -1.5673    
   8  Prefactor     17.584        14.785        .95562E-04   -1.4869    
   9  Prefactor     2.4960        26.454        .25701E-03   -1.5392    
  10  norm          7.7745        6.8775        .14381E-03   -1.5150    
  11  norm          .10000E-03    40.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7727        1.9387        .71127E-04   -1.5319    
  13  Prefactor     33.254        57.218        .69437E-04   -1.4554    
  14  Prefactor     2.2603        2.7890        .13220E-03   -1.5407    
  15  Normalizat    1.1806        .22857        .23168E-03   -.87206    
  16  Prefactor     .88511        .18892        .23090E-03   -.96663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40749e-09
Minuit parameter uncertainties:
  1  9.21204e-05
  2  4.9579e-05
  3  1.01686
  4  5.29723e-05
  5  1.62241e-05
  6  38.7528
  7  0.673033
  8  14.7883
  9  16.2607
  10  6.87816
  11  0.000360352
  12  1.93868
  13  57.3128
  14  2.78917
  15  0.228759
  16  0.189064
Done.

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

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  2.991e-02  6.730e-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.851e-01  1.891e-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.181e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 133.707 20.116
Photon Flux Upper Limit: 8.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841786/likelihoodResults_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.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) = 5393.27770045
delta logL = 0.472846858082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5393.17444628
delta logL = 0.576101032329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12725       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8075       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91818       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=   5393.174     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      228 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12737        2.0878        .57021E-02    .24050E-02
   2  alpha         3.8071        4.4002        .48018        .44045E-04
   3  Normalizat    1.1137        .39977E-01    .53687E-01    .39080E-05
   4  Prefactor     .91812        .35270E-01    .45236E-01    .38601E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.127375
  alpha      = 3.80711
  Normalizat = 1.11367
  Prefactor  = 0.918122
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.174     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      263 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12737        6.3830        .26001E-03   -1.5637    
   2  alpha         3.8071        2.5199        .19740E-01    .55019    
   3  Normalizat    1.1137        .19917        .23738E-03   -.89314    
   4  Prefactor     .91812        .17471        .22701E-03   -.95511    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.34615e-07
Minuit parameter uncertainties:
  1  1.80286
  2  9.0799
  3  0.199302
  4  0.174819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841786': 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): 102
logL (Free Index) = 5393.17444597
delta logL = 0.576101344936

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  1.274e-01  1.803e+00  1.000e-04  1.000e+04 ( 1.000e-11)
290        alpha:  3.807e+00  9.080e+00  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:  9.181e-01  1.748e-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.114e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 133.707 20.116
Photon Index (Free Index): 3.81 +/- 9.08
Photon Flux (Free Index): 5.48e-08 +/- 5.76e-08
Energy Flux (Free Index): 8.68e-06 +/- 2.06e-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/841786/cmap_HighResolution_263692801_263952001_4FGL_J0854.8+2006_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-05', comment='SUCCESS', energy_flux2='8.68e-06', dlogl='5.76e-01', photon_flux2='5.48e-08', job_status='DONE', time_completed='2021-08-30 16:03:07.186113', photon_index_error2='9.08', photon_index2='3.81', ts='0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.07e-08', energy_flux_error2='2.06e-05', EG='1.18', time_epoch_completed='1630364587.19', return_code='0', job_id='841786', GAL2='0.92', EG2='1.11', return_code2='102', photon_flux_error2='5.76e-08', ts2='1.22', photon_index='2.16' WHERE bin_id='94' AND source_name='4FGL J0854.8+2006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 16:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 841786: <4FGL_J0854.8+2006_daily_bin94> in cluster <slac> Done

Job <4FGL_J0854.8+2006_daily_bin94> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 15:51:19 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 15:51:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 15:51:21 2021
Terminated at Mon Aug 30 16:03:07 2021
Results reported at Mon Aug 30 16:03:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0854.8+2006_daily_bin94 133.707 20.1159 263692801 263952001 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 :                                   476.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

