/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 53 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin944
RA = 129.963, Dec = 1.0877
tmin = 484012801, tmax = 484272001
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='605038', job_status='RUN', time_executed='2021-08-30 03:05:24.568631', time_epoch_executed='1630317924.57' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605038/ft1_4FGL_J0839.8+0105_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605038/ft1_4FGL_J0839.8+0105_daily_bin944.fits outfile=/scratch/kocevski/605038/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin944.fits ra=129.963 dec=1.0877 rad=12.0 tmin=484012801.0 tmax=484272001.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 12.76
user 3.17
sys 9.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605038/ft1_filtered_4FGL_J0839.8+0105_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/605038/ltcube_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.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/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits
.....................!
real 23.05
user 11.96
sys 10.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605038/ft1_filtered_4FGL_J0839.8+0105_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/605038/ltcube_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.fits outfile=/scratch/kocevski/605038/expmap_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.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/605038/ltcube_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.fits
.....................!
real 206.66
user 185.93
sys 17.35

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/605038/ft1_filtered_4FGL_J0839.8+0105_daily_bin944.fits scfile=/scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits outfile=/scratch/kocevski/605038/cmap_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.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 9.79
user 0.41
sys 9.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605038/ft1_filtered_4FGL_J0839.8+0105_daily_bin944.fits scfile=/scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits outfile=/scratch/kocevski/605038/cmap_HighResolution_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.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 8.88
user 0.39
sys 8.30

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605038/ft1_filtered_4FGL_J0839.8+0105_daily_bin944.fits', '/scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits', expMap='/scratch/kocevski/605038/expmap_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.fits', expCube='/scratch/kocevski/605038/ltcube_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605038/Model_4FGL_J0839.8+0105_daily_bin944.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/605038/ft1_filtered_4FGL_J0839.8+0105_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/605038/ft2_4FGL_J0839.8+0105_daily_bin944.fits
Exposure map: /scratch/kocevski/605038/expmap_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.fits
Exposure cube: /scratch/kocevski/605038/ltcube_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605038/Model_4FGL_J0839.8+0105_daily_bin944.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) = 4993.49209002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    23.969       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .98387       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9061       1.0000         .10000E-03   10000.    
     6 'norm      '    11.218       1.0000         .10000E-03   10000.    
     7 'norm      '    11.115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
     9 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2311       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1187       1.0000         .10000E-03   10000.    
    12 'norm      '    9.2468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.549       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5626       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.041       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1247       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84065       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97983       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=   4993.485     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1863 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2794       -.22086E-07** at limit **
   2  Prefactor     23.971        33.090        .29011E-05    .29204E-05
   3  norm          .10000E-03    5.1206       -.72498E-07** at limit **
   4  norm          .98329        2.3151       -.50960E-06   -.11257E-02
   5  norm          3.9055        2.1424       -.41868E-09    .39945E-04
   6  norm          11.214        23.590       -.86103E-05   -.42561E-04
   7  norm          11.115        4.9969        .10942E-06    .99624E-06
   8  Prefactor     11.649        41.866        .22064E-04    .20132E-04
   9  norm          .10000E-03    46.569        .54047E-06** at limit **
  10  Prefactor     6.2267        16.339       -.55035E-05   -.76805E-04
  11  norm          1.1190        1.0387       -.28410E-06   -.83785E-03
  12  norm          9.2463        8.0070        .74482E-06   -.14511E-04
  13  Prefactor     40.532        37.779       -.22338E-04    .75845E-05
  14  norm          5.5627        5.2147       -.45706E-06   -.19047E-03
  15  norm          .10000E-03    2.4773       -.14884E-07** at limit **
  16  Prefactor     27.042        30.410        .73482E-06    .67387E-05
  17  Prefactor     3.1246        4.6017       -.14741E-05   -.43015E-03
  18  Normalizat    .84065        .21718        .14941E-05    .60333E-04
  19  Prefactor     .97984        .15734        .14950E-05    .29161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.971
  norm       = 0.0001
  norm       = 0.983287
  norm       = 3.90554
  norm       = 11.2144
  norm       = 11.1146
  Prefactor  = 11.6489
  norm       = 0.0001
  Prefactor  = 6.22666
  norm       = 1.11896
  norm       = 9.24625
  Prefactor  = 40.5315
  norm       = 5.56266
  norm       = 0.0001
  Prefactor  = 27.0417
  Prefactor  = 3.1246
  Normalizat = 0.840648
  Prefactor  = 0.97984
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.485     FROM HESSE     STATUS=OK           282 CALLS     2145 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3165        .17285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.971        33.032        .81818E-04   -1.4728    
   3  norm          .10000E-03    5.1490        .15615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98329        1.9706        .15613E-02   -1.5510    
   5  norm          3.9055        2.1216        .72116E-04   -1.5313    
   6  norm          11.214        23.526        .11961E-03   -1.5038    
   7  norm          11.115        4.9960        .10194E-03   -1.5041    
   8  Prefactor     11.649        41.850        .11742E-03   -1.5025    
   9  norm          .10000E-03    46.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2267        16.438        .16082E-03   -1.5209    
  11  norm          1.1190        1.0101        .66016E-03   -1.5496    
  12  norm          9.2463        8.0022        .13180E-03   -1.5100    
  13  Prefactor     40.532        37.683        .62948E-04   -1.4434    
  14  norm          5.5627        5.2279        .14613E-03   -1.5236    
  15  norm          .10000E-03    2.4818        .10860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.042        30.484        .77039E-04   -1.4667    
  17  Prefactor     3.1246        4.6149        .17504E-03   -1.5354    
  18  Normalizat    .84065        .25680        .28820E-03   -.98578    
  19  Prefactor     .97984        .18564        .20801E-03   -.93405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38392e-10
Minuit parameter uncertainties:
  1  8.19511e-06
  2  33.0573
  3  1.09159e-05
  4  1.97068
  5  2.12162
  6  23.5455
  7  4.99621
  8  41.9555
  9  9.35224e-06
  10  16.45
  11  1.01007
  12  8.00316
  13  37.705
  14  5.22835
  15  2.11422e-06
  16  30.5019
  17  4.61547
  18  0.257173
  19  0.185764
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  9.246e+00  8.003e+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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.798e-01  1.858e-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:  8.406e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/605038/likelihoodResults_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.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) = 4993.45242463
delta logL = 0.0327239810913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4993.4498571
delta logL = 0.0352915144258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7781       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0354       1.0000          .0000       5.0000    
     3 'Normalizat'    .84694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97647       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=   4993.450     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7786        8.5167        .12815E-03   -.15094E-02
   2  alpha         2.0354        .74897        .18609E-01   -.14813E-03
   3  Normalizat    .84685        .23243        .28723E-03    .95270E-04
   4  Prefactor     .97657        .18096        .20831E-03    .17115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.77859
  alpha      = 2.03539
  Normalizat = 0.846845
  Prefactor  = 0.97657
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.450     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7786        8.4834        .25630E-04   -1.5082    
   2  alpha         2.0354        .74604        .74437E-03   -.18693    
   3  Normalizat    .84685        .23255        .11489E-04   -.98354    
   4  Prefactor     .97657        .18106        .41661E-04   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47512e-09
Minuit parameter uncertainties:
  1  8.48445
  2  0.75801
  3  0.232826
  4  0.181172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605038': 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) = 4993.44985695
delta logL = 0.0352916663724

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  9.779e+00  8.484e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.035e+00  7.580e-01  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:  9.766e-01  1.812e-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:  8.468e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.04 +/- 0.76
Photon Flux (Free Index): 3.15e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.33e-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/605038/cmap_HighResolution_484012801_484272001_4FGL_J0839.8+0105_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-05', comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='1.44e-05', photon_flux_error='3.11e-08', dlogl='3.53e-02', energy_flux='1.32e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-08-30 03:16:19.247187', photon_index_error2='0.76', photon_index2='2.04', ts='2.80', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.33e-05', EG='0.84', time_epoch_completed='1630318579.25', return_code='0', job_id='605038', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.21e-08', ts2='2.86', photon_index='2.24' WHERE bin_id='944' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 605038: <4FGL_J0839.8+0105_daily_bin944> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin944 129.963 1.0877 484012801 484272001 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 :                                   787.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

