aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 8 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 = 17236
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0854.8+2006_weekly_bin598
RA = 133.707, Dec = 20.1159
tmin = 600652801, tmax = 601257601
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='484707', job_status='RUN', time_executed='2021-07-14 16:36:03.769593', time_epoch_executed='1626305763.77' WHERE source_name='4FGL J0854.8+2006' and cadence='weekly' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484707

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484707/ft1_4FGL_J0854.8+2006_weekly_bin598.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484707/ft1_4FGL_J0854.8+2006_weekly_bin598.fits outfile=/scratch/kocevski/484707/ft1_filteredMKT_4FGL_J0854.8+2006_weekly_bin598.fits ra=133.707 dec=20.1159 rad=12.0 tmin=600652801.0 tmax=601257601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.88
user 7.40
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.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/484707/ft1_filteredMKT_4FGL_J0854.8+2006_weekly_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/484707/ft1_filtered_4FGL_J0854.8+2006_weekly_bin598.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.55
user 0.39
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484707/ft1_filtered_4FGL_J0854.8+2006_weekly_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/484707/ltcube_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.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/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.fits
.....................!
real 30.64
user 29.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484707/ft1_filtered_4FGL_J0854.8+2006_weekly_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/484707/ltcube_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.fits outfile=/scratch/kocevski/484707/expmap_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.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/484707/ltcube_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.fits
.....................!
real 191.04
user 184.81
sys 5.65

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/484707/ft1_filtered_4FGL_J0854.8+2006_weekly_bin598.fits scfile=/scratch/kocevski/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.fits outfile=/scratch/kocevski/484707/cmap_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484707/ft1_filtered_4FGL_J0854.8+2006_weekly_bin598.fits scfile=/scratch/kocevski/484707/ft2_4FGL_J0854.8+2006_weekly_bin598.fits outfile=/scratch/kocevski/484707/cmap_HighResolution_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.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.59
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3380       1.0000         .10000E-03   10000.    
     3 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13908E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .26307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.903       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9890       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1487       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0375       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=   14699.41     FROM MIGRAD    STATUS=CONVERGED    305 CALLS     1484 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5394       -.76437E-05** at limit **
   2  Prefactor     5.3319        13.027       -.66407E-05   -.18254E-03
   3  norm          .10000E-03    .19771        .20311E-06** at limit **
   4  Prefactor     .10000E-03    4.0851       -.74811E-07** at limit **
   5  Prefactor     .10002E-03    2.0959        .12270E-05** at limit **
   6  Prefactor     .10000E-03    9.1838        .29673E-05** at limit **
   7  norm          .26309        .35672       -.89828E-07   -.30541E-02
   8  Prefactor     6.8935        6.3828       -.27577E-07   -.99188E-05
   9  Prefactor     28.903        14.757       -.78214E-06   -.24051E-04
  10  norm          2.9890        2.9992        .42244E-06   -.62821E-04
  11  norm          .10000E-03    15.408       -.10967E-04** at limit **
  12  norm          .73815        .73678        .49289E-07    .81353E-03
  13  Prefactor     .10000E-03    13.873        .10948E-04** at limit **
  14  Prefactor     .10000E-03    1.2363        .11231E-07** at limit **
  15  Normalizat    1.1487        .12139        .47139E-06   -.43592E-03
  16  Prefactor     1.0375        .10093        .12985E-06   -.35432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.33188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.263094
  Prefactor  = 6.89349
  Prefactor  = 28.9025
  norm       = 2.98897
  norm       = 0.0001
  norm       = 0.738148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14868
  Prefactor  = 1.03752
 **********
 **   18 **HESSE 
 **********

 FCN=   14699.41     FROM HESSE     STATUS=OK           205 CALLS     1689 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3319        12.984        .17395E-03   -1.5246    
   3  norm          .10000E-03    .26088        .10311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    6.5478        .33357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .26309        .27849        .79312E-03   -1.5605    
   8  Prefactor     6.8935        6.3056        .15280E-03   -1.5183    
   9  Prefactor     28.903        14.778        .74521E-04   -1.4632    
  10  norm          2.9890        2.9979        .20494E-03   -1.5362    
  11  norm          .10000E-03    15.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73815        .67736        .10105E-02   -1.5536    
  13  Prefactor     .10000E-03    13.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2583        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1487        .14317        .25325E-03   -.88204    
  16  Prefactor     1.0375        .11979        .22557E-03   -.91489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16164e-09
Minuit parameter uncertainties:
  1  7.79517e-06
  2  12.9907
  3  1.07793e-05
  4  5.96147e-06
  5  0.000763239
  6  1.18431e-05
  7  0.27849
  8  6.30624
  9  14.7797
  10  2.99809
  11  1.64112e-05
  12  0.677372
  13  1.3132e-05
  14  4.85168e-07
  15  0.143216
  16  0.119822
Done.

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

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  2.631e-01  2.785e-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:  1.038e+00  1.198e-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.149e+00  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 133.707 20.116
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.24e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 5.46e-06 +/- 5.78e-06

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

Saving results to:
/scratch/kocevski/484707/likelihoodResults_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.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) = 14699.4066714
delta logL = 0.00734990539968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14699.4058023
delta logL = 0.00821901692689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25125       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0462       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0369       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14699.41     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      255 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25124        .28510        .80213E-03    .20412E-03
   2  alpha         2.0462        .82263        .30584E-01   -.20500E-03
   3  Normalizat    1.1504        .14031        .25308E-03    .14905E-03
   4  Prefactor     1.0369        .11963        .22563E-03    .13644E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.251244
  alpha      = 2.04624
  Normalizat = 1.15043
  Prefactor  = 1.03687
 **********
 **   18 **HESSE 
 **********

 FCN=   14699.41     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25124        .28881        .32085E-04   -1.5608    
   2  alpha         2.0462        .83384        .61167E-02   -.18252    
   3  Normalizat    1.1504        .14043        .10123E-04   -.88149    
   4  Prefactor     1.0369        .11975        .90254E-05   -.91510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07904e-11
Minuit parameter uncertainties:
  1  0.288814
  2  0.850711
  3  0.140478
  4  0.119782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484707': 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) = 14699.4058023
delta logL = 0.00821904971963

Extracting fit parameters...

4FGL J0854.8+2006
   Spectrum: LogParabola
289         norm:  2.512e-01  2.888e-01  1.000e-04  1.000e+04 ( 1.000e-11)
290        alpha:  2.046e+00  8.507e-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:  1.037e+00  1.198e-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.150e+00  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 133.707 20.116
Photon Index (Free Index): 2.05 +/- 0.85
Photon Flux (Free Index): 1.07e-08 +/- 1.73e-08
Energy Flux (Free Index): 5.64e-06 +/- 6.25e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/484707/cmap_HighResolution_600652801_601257601_4FGL_J0854.8+2006_weekly_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', comment='SUCCESS', photon_flux='1.24e-08', energy_flux2='5.64e-06', photon_flux_error='1.31e-08', dlogl='8.22e-03', energy_flux='5.46e-06', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-07-14 16:50:33.666330', photon_index_error2='0.85', photon_index2='2.05', ts='2.09', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='4.78e-08', energy_flux_error2='6.25e-06', EG='1.15', time_epoch_completed='1626306633.67', return_code='0', job_id='484707', GAL2='1.04', EG2='1.15', return_code2='0', energy_flux_error='5.78e-06', photon_flux_error2='1.73e-08', ts2='2.11', photon_index='2.16' WHERE bin_id='598' AND source_name='4FGL J0854.8+2006' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 16:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 484707: <4FGL_J0854.8+2006_weekly_bin598> in cluster <slac> Done

Job <4FGL_J0854.8+2006_weekly_bin598> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jul 14 16:35:34 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 16:35:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 14 16:35:47 2021
Terminated at Wed Jul 14 16:50:34 2021
Results reported at Wed Jul 14 16:50:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0854.8+2006_weekly_bin598 133.707 20.1159 600652801 601257601 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 :                                   841.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            900 sec.

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

