/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7589
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0854.8+2006_daily_bin1456
RA = 133.707, Dec = 20.1159
tmin = 616723201, tmax = 616982401
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='853071', job_status='RUN', time_executed='2021-08-30 16:31:08.981656', time_epoch_executed='1630366268.98' WHERE source_name='4FGL J0854.8+2006' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853071

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853071/ft1_4FGL_J0854.8+2006_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853071/ft2_4FGL_J0854.8+2006_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853071/ft1_4FGL_J0854.8+2006_daily_bin1456.fits outfile=/scratch/kocevski/853071/ft1_filteredMKT_4FGL_J0854.8+2006_daily_bin1456.fits ra=133.707 dec=20.1159 rad=12.0 tmin=616723201.0 tmax=616982401.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 15.41
user 2.84
sys 9.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853071/ft1_filtered_4FGL_J0854.8+2006_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/853071/ft2_4FGL_J0854.8+2006_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/853071/ltcube_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.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/853071/ft2_4FGL_J0854.8+2006_daily_bin1456.fits
.....................!
real 25.15
user 12.71
sys 10.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853071/ft1_filtered_4FGL_J0854.8+2006_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/853071/ft2_4FGL_J0854.8+2006_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/853071/ltcube_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.fits outfile=/scratch/kocevski/853071/expmap_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.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/853071/ltcube_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.fits
.....................!
real 205.94
user 185.23
sys 16.58

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/853071/ft1_filtered_4FGL_J0854.8+2006_daily_bin1456.fits scfile=/scratch/kocevski/853071/ft2_4FGL_J0854.8+2006_daily_bin1456.fits outfile=/scratch/kocevski/853071/cmap_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.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 9.60
user 0.37
sys 9.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853071/ft1_filtered_4FGL_J0854.8+2006_daily_bin1456.fits scfile=/scratch/kocevski/853071/ft2_4FGL_J0854.8+2006_daily_bin1456.fits outfile=/scratch/kocevski/853071/cmap_HighResolution_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.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 9.79
user 0.39
sys 9.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38554E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12979E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10254E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15631E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.0353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .53039       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .97253       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=   295.8589     FROM MIGRAD    STATUS=CONVERGED    305 CALLS     1523 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    6877.2       -.41294E-05** at limit **
   2  Prefactor    10000.0        9857.9        .26404E-05** at limit **
   3  norm         10000.0        910.90        .18930E-06** at limit **
   4  Prefactor     .10017E-03    9823.5       -.87332E-05** at limit **
   5  Prefactor     .10000E-03    669.98       -.88999E-06** at limit **
   6  Prefactor     .10000E-03    542.47       -.66028E-06** at limit **
   7  norm          .10000E-03    9.0190       -.41566E-06** at limit **
   8  Prefactor     27.511        325.81       -.17832E-04   -.90755E-05
   9  Prefactor     .10000E-03    255.50        .23516E-06** at limit **
  10  norm          .10000E-03    39.997       -.20710E-06** at limit **
  11  norm          .10000E-03    107.69       -.69680E-06** at limit **
  12  norm          8.0395        13.244        .23302E-06    .14601E-04
  13  Prefactor     .10000E-03    101.47        .42449E-06** at limit **
  14  Prefactor     .10000E-03    7.5795       -.17507E-08** at limit **
  15  Normalizat    .53109        .83452       -.37762E-04    .17086E-05
  16  Prefactor     .97186        .79881        .27539E-04   -.55441E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100043
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100174
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.5113
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 8.03952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.531086
  Prefactor  = 0.971863
 **********
 **   18 **HESSE 
 **********

 FCN=   295.8589     FROM HESSE     STATUS=OK           189 CALLS     1712 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    6881.4        .19540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        9855.7        .18152E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        910.91        .21368E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10017E-03    9826.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    670.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    542.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.0324        .50527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.511        326.93        .76172E-04   -1.4658    
   9  Prefactor     .10000E-03    255.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    40.011        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    107.86        .17491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.0395        13.238        .78267E-04   -1.5141    
  13  Prefactor     .10000E-03    101.57        .16972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5812        .46287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .53109        .83296        .30536E-03   -1.1100    
  16  Prefactor     .97186        .79732        .20465E-03   -.93673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40668e-11
Minuit parameter uncertainties:
  1  0.0273068
  2  0.11675
  3  0.000420224
  4  0.115326
  5  0.00228669
  6  0.000583296
  7  4.00278e-05
  8  190.994
  9  0.000605554
  10  7.47548e-05
  11  0.000564637
  12  13.2433
  13  0.000396753
  14  9.78039e-07
  15  0.853829
  16  0.807279
Done.

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

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  1.000e-04  4.003e-05  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:  9.719e-01  8.073e-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:  5.311e-01  8.538e-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: 2.42e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853071/likelihoodResults_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.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): 102
logL (Free Index) = 295.85908613
delta logL = -0.000193354605983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 295.8589006
delta logL = -7.82428162438e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11256E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3113       1.0000          .0000       5.0000    
     3 'Normalizat'    .53118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97183       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   295.8589     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      266 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    718.03        .34856E-02** at limit **
   2  alpha         1.7615        3.2421        .50000        .15402E-07
   3  Normalizat    .53109        .17103        .30540E-03    .50018E-04
   4  Prefactor     .97187        .15322        .20463E-03    .77254E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.76153
  Normalizat = 0.531086
  Prefactor  = 0.971867
 **********
 **   18 **HESSE 
 **********

 FCN=   295.8589     FROM HESSE     STATUS=OK            29 CALLS      295 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.619        .52599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7615        3.3789        .50000       -.29986    
   3  Normalizat    .53109        .80759        .61080E-04   -1.1100    
   4  Prefactor     .97187        .73238        .40925E-04   -.93673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71282e-10
Minuit parameter uncertainties:
  1  0.000316288
  2  588.441
  3  0.826532
  4  0.740057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853071': 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) = 295.858892349
delta logL = 4.26297788181e-07

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  1.000e-04  3.163e-04  1.000e-04  1.000e+04 ( 1.000e-11)
290        alpha:  1.762e+00  5.884e+02  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.719e-01  7.401e-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:  5.311e-01  8.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 133.707 20.116

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/853071/cmap_HighResolution_616723201_616982401_4FGL_J0854.8+2006_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-03', job_status='DONE', photon_flux_upper_limit='2.42e-06', time_completed='2021-08-30 16:39:14.058948', job_id='853071', GAL2='0.97', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1630366754.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1456' AND source_name='4FGL J0854.8+2006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 16:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 853071: <4FGL_J0854.8+2006_daily_bin1456> in cluster <slac> Done

Job <4FGL_J0854.8+2006_daily_bin1456> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 16:25:35 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 16:25:37 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:25:37 2021
Terminated at Mon Aug 30 16:39:16 2021
Results reported at Mon Aug 30 16:39:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0854.8+2006_daily_bin1456 133.707 20.1159 616723201 616982401 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 :                                   602.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             191.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

