/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 230 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin317
RA = 129.963, Dec = 1.0877
tmin = 321494401, tmax = 321753601
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='600852', job_status='RUN', time_executed='2021-08-30 02:54:52.377217', time_epoch_executed='1630317292.38' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600852/ft1_4FGL_J0839.8+0105_daily_bin317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600852/ft1_4FGL_J0839.8+0105_daily_bin317.fits outfile=/scratch/kocevski/600852/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin317.fits ra=129.963 dec=1.0877 rad=12.0 tmin=321494401.0 tmax=321753601.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 5.81
user 3.75
sys 2.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.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/600852/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin317.fits evtable="EVENTS" outfile="/scratch/kocevski/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.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 2.13
user 0.33
sys 1.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.fits" evtable="EVENTS" scfile=/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits sctable="SC_DATA" outfile=/scratch/kocevski/600852/ltcube_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.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/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits
.....................!
real 14.10
user 11.64
sys 2.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits sctable="SC_DATA" expcube=/scratch/kocevski/600852/ltcube_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.fits outfile=/scratch/kocevski/600852/expmap_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.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/600852/ltcube_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.fits
.....................!
real 194.87
user 186.31
sys 6.48

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/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.fits scfile=/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits outfile=/scratch/kocevski/600852/cmap_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.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 2.30
user 0.38
sys 1.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.fits scfile=/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits outfile=/scratch/kocevski/600852/cmap_HighResolution_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.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 2.32
user 0.37
sys 1.76

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.fits', '/scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits', expMap='/scratch/kocevski/600852/expmap_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.fits', expCube='/scratch/kocevski/600852/ltcube_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600852/Model_4FGL_J0839.8+0105_daily_bin317.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  1.000e-04  1.000e+04 ( 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  0.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/600852/ft1_filtered_4FGL_J0839.8+0105_daily_bin317.fits
Spacecraft file(s): /scratch/kocevski/600852/ft2_4FGL_J0839.8+0105_daily_bin317.fits
Exposure map: /scratch/kocevski/600852/expmap_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.fits
Exposure cube: /scratch/kocevski/600852/ltcube_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600852/Model_4FGL_J0839.8+0105_daily_bin317.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) = 7995.80802801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.752       1.0000         .10000E-03   10000.    
     3 'norm      '    21.166       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6505       1.0000         .10000E-03   10000.    
     6 'norm      '    13.098       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8593       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4580       1.0000         .10000E-03   10000.    
    12 'norm      '    .20088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9136       1.0000         .10000E-03   10000.    
    15 'norm      '    10.614       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0729       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85270       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7995.705     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1695 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5218       -.26224E-07** at limit **
   2  Prefactor     48.751        28.553       -.57599E-07    .46484E-03
   3  norm          21.168        9.9062       -.11957E-07   -.14403E-03
   4  norm          .10000E-03    .48301       -.83185E-08** at limit **
   5  norm          5.6505        1.5863       -.60907E-08    .85994E-03
   6  norm          13.098        14.510        .93598E-08   -.67728E-04
   7  norm          6.6154        3.1515       -.63318E-09   -.35488E-03
   8  Prefactor     .10000E-03    17.655        .43520E-07** at limit **
   9  norm          .10000E-03    10.286       -.43686E-07** at limit **
  10  Prefactor     2.8591        2.4766       -.88220E-06   -.30174E-03
  11  norm          1.4579        .82442        .18136E-08   -.24031E-02
  12  norm          .10001E-03    3.2285       -.15083E-07** at limit **
  13  Prefactor     .10000E-03    8.1892       -.61179E-07** at limit **
  14  norm          3.9135        3.4823       -.19311E-07   -.18123E-03
  15  norm          10.615        6.8109       -.36686E-08   -.26640E-03
  16  Prefactor     1.0997        14.643       -.15789E-06    .27255E-04
  17  Prefactor     .10000E-03    1.1243       -.10490E-07** at limit **
  18  Normalizat    1.0729        .16709        .11293E-06   -.10067E-02
  19  Prefactor     .85269        .12513        .46074E-07   -.13358E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 48.7515
  norm       = 21.1677
  norm       = 0.0001
  norm       = 5.65051
  norm       = 13.098
  norm       = 6.61536
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 2.85912
  norm       = 1.45792
  norm       = 0.000100006
  Prefactor  = 0.000100003
  norm       = 3.91351
  norm       = 10.6147
  Prefactor  = 1.09974
  Prefactor  = 0.0001
  Normalizat = 1.0729
  Prefactor  = 0.852692
 **********
 **   18 **HESSE 
 **********

 FCN=   7995.705     FROM HESSE     STATUS=OK           280 CALLS     1975 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8849        .27550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.751        28.540        .57431E-04   -1.4310    
   3  norm          21.168        9.8767        .87060E-04   -1.4787    
   4  norm          .10000E-03    .48561        .60653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6505        1.5873        .57521E-04   -1.5233    
   6  norm          13.098        14.498        .11068E-03   -1.4984    
   7  norm          6.6154        3.1509        .10588E-03   -1.5194    
   8  Prefactor     .10000E-03    17.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8591        10.816        .12021E-02   -1.5370    
  11  norm          1.4579        .81714        .58571E-04   -1.5466    
  12  norm          .10001E-03    3.3748        .54539E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9135        3.4871        .15022E-03   -1.5312    
  15  norm          10.615        6.7856        .12298E-03   -1.5056    
  16  Prefactor     1.0997        79.798        .63824E-02   -1.5498    
  17  Prefactor     .10000E-03    1.1378        .92576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0729        .20009        .26398E-03   -.90627    
  19  Prefactor     .85269        .14811        .22337E-03   -.97814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.797e-09
Minuit parameter uncertainties:
  1  0.000216692
  2  28.5476
  3  9.87746
  4  1.1051e-05
  5  1.58733
  6  14.5019
  7  3.15096
  8  0.000309051
  9  0.000275901
  10  10.8231
  11  0.817147
  12  0.000272971
  13  0.000336043
  14  3.48729
  15  6.78607
  16  18.7609
  17  1.93967e-05
  18  0.200226
  19  0.148181
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  2.730e-04  1.000e-04  1.000e+04 ( 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  0.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:  8.527e-01  1.482e-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.073e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600852/likelihoodResults_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.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) = 7995.7051973
delta logL = -0.000107219768324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7995.70508996
delta logL = 1.16034243547e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7995.705     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      292 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    25.937        .56105E-01** at limit **
   2  alpha         1.9771        4.0108        .16687        .79236E-07
   3  Normalizat    1.0729        .11521E-01    .26398E-03    .65073E-04
   4  Prefactor     .85269        .88437E-02    .22337E-03    .19595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100135
  alpha      = 1.97709
  Normalizat = 1.0729
  Prefactor  = 0.852694
 **********
 **   18 **HESSE 
 **********

 FCN=   7995.705     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    514.81        .56461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9771        3.8966        .66746E-02   -.21072    
   3  Normalizat    1.0729        .74947E-01    .10559E-04   -.90627    
   4  Prefactor     .85269        .60437E-01    .89348E-05   -.97814    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.92047e-10
Minuit parameter uncertainties:
  1  0.0168446
  2  2636.6
  3  0.0749544
  4  0.0604418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600852': 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) = 7995.70508937
delta logL = 7.10225322109e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.001e-04  1.684e-02  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.977e+00  2.637e+03  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00  0.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:  8.527e-01  6.044e-02  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.073e+00  7.495e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.963 1.088

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/600852/cmap_HighResolution_321494401_321753601_4FGL_J0839.8+0105_daily_bin317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-08-30 03:05:35.633548', job_id='600852', GAL2='0.85', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630317935.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='317' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 600852: <4FGL_J0839.8+0105_daily_bin317> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin317> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:23 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:50:25 2021
Terminated at Mon Aug 30 03:05:36 2021
Results reported at Mon Aug 30 03:05:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin317 129.963 1.0877 321494401 321753601 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

