aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 37 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7533
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin1754
RA = 129.963, Dec = 1.0877
tmin = 693964801, tmax = 694224001
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='639271', job_status='RUN', time_executed='2023-01-01 00:56:53.150119', time_epoch_executed='1672563413.15' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639271/ft1_4FGL_J0839.8+0105_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639271/ft1_4FGL_J0839.8+0105_daily_bin1754.fits outfile=/scratch/kocevski/639271/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin1754.fits ra=129.963 dec=1.0877 rad=12.0 tmin=693964801.0 tmax=694224001.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.99
user 3.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.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/639271/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 241

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/639271/ltcube_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.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/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits
.....................!
real 15.45
user 15.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/639271/ltcube_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.fits outfile=/scratch/kocevski/639271/expmap_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.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/639271/ltcube_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.fits
.....................!
real 191.69
user 186.31
sys 4.98

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

Setting source of interest to:
4FGL J0839.8+0105 @ 129.963 1.0877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits scfile=/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits outfile=/scratch/kocevski/639271/cmap_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.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=129.963 yref=1.0877 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits scfile=/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits outfile=/scratch/kocevski/639271/cmap_HighResolution_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.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=129.963 yref=1.0877 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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639271/Model_4FGL_J0839.8+0105_daily_bin1754.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/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits.....................!
real 39.45
user 38.08
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits', '/scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits', expMap='/scratch/kocevski/639271/expmap_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.fits', expCube='/scratch/kocevski/639271/ltcube_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639271/Model_4FGL_J0839.8+0105_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0839.8+0105'

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.335e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639271/ft1_filtered_4FGL_J0839.8+0105_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/639271/ft2_4FGL_J0839.8+0105_daily_bin1754.fits
Exposure map: /scratch/kocevski/639271/expmap_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.fits
Exposure cube: /scratch/kocevski/639271/ltcube_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639271/Model_4FGL_J0839.8+0105_daily_bin1754.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) = 2743.95283992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34161E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22799       1.0000          .0000       .10000E+07
     3 'norm      '    44.645       1.0000          .0000       .10000E+07
     4 'norm      '    .35860E-06   1.0000          .0000       .10000E+07
     5 'norm      '    1.3005       1.0000          .0000       .10000E+07
     6 'norm      '    14.259       1.0000          .0000       .10000E+07
     7 'norm      '    4.5639       1.0000          .0000       .10000E+07
     8 'norm      '    .60126E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .62306E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.3431       1.0000          .0000       .10000E+07
    11 'norm      '    8.0670       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21356       1.0000          .0000       .10000E+07
    13 'norm      '    15.727       1.0000          .0000       .10000E+07
    14 'norm      '    .39198E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.770       1.0000          .0000       .10000E+07
    16 'Prefactor '    .80745E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3826       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .46648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2743.945     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1258 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.2784       -.12221E-07** at limit **
   2  Prefactor     .10891E-05    23.609        .14115E-05** at limit **
   3  norm          44.665        4.8791       -.13163E-07    .15913    
   4  norm           .0000        .90593       -.35240E-06** at limit **
   5  norm          1.2995        1.3815       -.27457E-06   -.11370E-02
   6  norm          14.022        33.944       -.57448E-06    .10456E-01
   7  norm          4.5686        4.3707       -.23239E-06   -.47596E-03
   8  norm          .28311E-08    10.871        .85891E-06** at limit **
   9  Prefactor     .38858E-09    9.6448        .34316E-06** at limit **
  10  norm          1.3415        1.3460        .10852E-06    .68210E-03
  11  norm          8.0647        4.2519        .24640E-07    .91701E-01
  12  Prefactor     .72353E-06    25.316        .15989E-05** at limit **
  13  norm          15.729        8.1285        .88412E-07    .59157E-01
  14  norm           .0000        3.0494        .88308E-07** at limit **
  15  Prefactor     13.693        11.272       -.19521E-06    .11045E-01
  16  Prefactor      .0000        2.5898        .90971E-06** at limit **
  17  Normalizat    1.3832        .32247       -.11560E-04    .25276E-04
  18  Prefactor     .46646        .21673        .24387E-04    .32704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.08913e-06
  norm       = 44.6646
  norm       = 0
  norm       = 1.29951
  norm       = 14.0216
  norm       = 4.56865
  norm       = 2.83107e-09
  Prefactor  = 3.88578e-10
  norm       = 1.34146
  norm       = 8.06474
  Prefactor  = 7.23532e-07
  norm       = 15.729
  norm       = 0
  Prefactor  = 13.6934
  Prefactor  = 0
  Normalizat = 1.38319
  Prefactor  = 0.466464
 **********
 **   18 **HESSE 
 **********

 FCN=   2743.945     FROM HESSE     STATUS=OK           282 CALLS     1540 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.2790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10891E-05    49.724        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          44.665        20.168        .14968E-03   -1.5574    
   4  norm           .0000        .90553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2995        1.3884        .96859E-03   -1.5685    
   6  norm          14.022        36.415        .26499E-03   -1.5633    
   7  norm          4.5686        4.3858        .47097E-03   -1.5665    
   8  norm          .28311E-08    11.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38858E-09    9.8306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3415        1.3559        .94496E-03   -1.5685    
  11  norm          8.0647        8.7768        .35277E-03   -1.5651    
  12  Prefactor     .72353E-06    47.524        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.729        9.0523        .25229E-03   -1.5629    
  14  norm           .0000        3.0480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.693        35.803        .26966E-03   -1.5634    
  16  Prefactor      .0000        2.5898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3832        .27898        .52189E-01   -.81116    
  18  Prefactor     .46646        .18547        .58461E-01   -1.1354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07539e-07
Minuit parameter uncertainties:
  1  4.05162e-07
  2  0.0147184
  3  20.1675
  4  2.96834e-06
  5  1.38843
  6  36.4159
  7  4.38583
  8  0.000352859
  9  0.000119871
  10  1.35592
  11  8.77683
  12  0.0117277
  13  9.0523
  14  3.84284e-06
  15  35.8036
  16  4.8835e-06
  17  0.279288
  18  0.185705
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.065e+00  8.777e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  4.665e-01  1.857e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.383e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.25e-05

TS (Fixed Index): 1.99
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639271/likelihoodResults_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.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) = 2743.85127555
delta logL = 0.0933202925926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2743.85025331
delta logL = 0.0943425294299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2871       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2743.850     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      192 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2917        10.381        .34801E-03   -.35679E-03
   2  alpha         1.7825        1.0132        .43540        .12935E-04
   3  Normalizat    1.3930        .26926        .52034E-01    .10473E-03
   4  Prefactor     .46213        .18477        .58708E-01    .11837E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.29171
  alpha      = 1.7825
  Normalizat = 1.39298
  Prefactor  = 0.462134
 **********
 **   18 **HESSE 
 **********

 FCN=   2743.850     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2917        9.1565        .13920E-04   -1.5650    
   2  alpha         1.7825        .99882        .19320E-01   -.29109    
   3  Normalizat    1.3930        .31258        .23005E-03   -.80832    
   4  Prefactor     .46213        .21424        .25976E-03   -1.1375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44152e-11
Minuit parameter uncertainties:
  1  9.15654
  2  1.03031
  3  0.313008
  4  0.214613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639271': 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) = 2743.85025237
delta logL = 0.0943434774867

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.292e+00  9.157e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        alpha:  1.783e+00  1.030e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  4.621e-01  2.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.393e+00  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.78 +/- 1.03
Photon Flux (Free Index): 2.21e-08 +/- 3.06e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.73e-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/639271/cmap_HighResolution_693964801_694224001_4FGL_J0839.8+0105_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.40e-05', photon_flux_error='3.41e-08', dlogl='9.43e-02', energy_flux='1.15e-05', photon_flux2='2.21e-08', job_status='DONE', time_completed='2023-01-01 01:03:33.427663', photon_index_error2='1.03', photon_index2='1.78', ts='1.99', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.73e-05', EG='1.38', time_epoch_completed='1672563813.43', return_code='0', job_id='639271', GAL2='0.46', EG2='1.39', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.06e-08', ts2='2.18', photon_index='2.24' WHERE bin_id='1754' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:03:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 639271: <4FGL_J0839.8+0105_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 00:55:15 2023
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 00:56:04 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 00:56:04 2023
Terminated at Sun Jan  1 01:03:34 2023
Results reported at Sun Jan  1 01:03:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin1754 129.963 1.0877 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0839.8+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   402.40 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             317.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   449 sec.
    Turnaround time :                            499 sec.

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

