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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin446
RA = 129.963, Dec = 1.0877
tmin = 354931201, tmax = 355190401
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='601130', job_status='RUN', time_executed='2021-08-30 02:53:55.283432', time_epoch_executed='1630317235.28' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601130/ft1_4FGL_J0839.8+0105_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601130/ft2_4FGL_J0839.8+0105_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601130/ft1_4FGL_J0839.8+0105_daily_bin446.fits outfile=/scratch/kocevski/601130/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin446.fits ra=129.963 dec=1.0877 rad=12.0 tmin=354931201.0 tmax=355190401.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.43
user 3.09
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601130/ft1_filtered_4FGL_J0839.8+0105_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/601130/ft2_4FGL_J0839.8+0105_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/601130/ltcube_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.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/601130/ft2_4FGL_J0839.8+0105_daily_bin446.fits
.....................!
real 12.31
user 11.81
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601130/ft1_filtered_4FGL_J0839.8+0105_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/601130/ft2_4FGL_J0839.8+0105_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/601130/ltcube_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.fits outfile=/scratch/kocevski/601130/expmap_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.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/601130/ltcube_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.fits
.....................!
real 191.47
user 185.22
sys 4.70

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/601130/ft1_filtered_4FGL_J0839.8+0105_daily_bin446.fits scfile=/scratch/kocevski/601130/ft2_4FGL_J0839.8+0105_daily_bin446.fits outfile=/scratch/kocevski/601130/cmap_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.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.64
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601130/ft1_filtered_4FGL_J0839.8+0105_daily_bin446.fits scfile=/scratch/kocevski/601130/ft2_4FGL_J0839.8+0105_daily_bin446.fits outfile=/scratch/kocevski/601130/cmap_HighResolution_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.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.63
user 0.38
sys 0.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9807       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2117       1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.4925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .98461       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.135       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54519       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0820       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=   5693.479     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1617 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5383       -.21502E-08** at limit **
   2  Prefactor     .10000E-03    19.956        .99959E-05** at limit **
   3  norm          9.9790        13.842       -.42205E-06   -.50305E-04
   4  norm          2.2112        1.8547        .10819E-07    .35728E-04
   5  norm          .10000E-03    .47950        .55017E-07** at limit **
   6  norm          .10000E-03    9.1268       -.89724E-07** at limit **
   7  norm          7.4908        5.5346       -.56444E-06   -.25747E-03
   8  Prefactor     .10000E-03    48.290       -.70203E-06** at limit **
   9  norm          25.516        29.999       -.22489E-04    .74105E-06
  10  Prefactor     .10000E-03    20.750       -.11565E-04** at limit **
  11  norm          .98466        .76179       -.31535E-07    .79209E-04
  12  norm          .10000E-03    4.4150       -.40054E-07** at limit **
  13  Prefactor     .10000E-03    40.054        .44423E-05** at limit **
  14  norm          13.135        5.4757       -.44365E-06   -.17730E-05
  15  norm          1.7162        4.1040       -.83120E-06   -.54694E-03
  16  Prefactor     .10000E-03    5.6045       -.84687E-08** at limit **
  17  Prefactor     .54511        2.2873       -.13860E-05   -.14095E-02
  18  Normalizat    1.0218        .21329       -.67717E-06    .13419E-03
  19  Prefactor     1.0824        .16260        .21736E-05   -.37960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.97901
  norm       = 2.21115
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.49083
  Prefactor  = 0.0001
  norm       = 25.5165
  Prefactor  = 0.0001
  norm       = 0.984657
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1348
  norm       = 1.71617
  Prefactor  = 0.0001
  Prefactor  = 0.545115
  Normalizat = 1.02176
  Prefactor  = 1.08242
 **********
 **   18 **HESSE 
 **********

 FCN=   5693.479     FROM HESSE     STATUS=OK           268 CALLS     1885 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5407        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9790        13.827        .12684E-03   -1.5076    
   4  norm          2.2112        1.8540        .91454E-04   -1.5411    
   5  norm          .10000E-03    .48930        .51007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.1455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4908        5.5326        .14464E-03   -1.5161    
   8  Prefactor     .10000E-03    48.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.516        29.752        .79263E-04   -1.4697    
  10  Prefactor     .10000E-03    20.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .98466        .77332        .56049E-04   -1.5510    
  12  norm          .10000E-03    4.4326        .15482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.135        5.4751        .10957E-03   -1.4983    
  15  norm          1.7162        4.0781        .23028E-03   -1.5446    
  16  Prefactor     .10000E-03    5.6050        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .54511        2.2520        .22537E-03   -1.5560    
  18  Normalizat    1.0218        .25016        .29402E-03   -.92305    
  19  Prefactor     1.0824        .19116        .21658E-03   -.90030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30804e-09
Minuit parameter uncertainties:
  1  8.18682e-08
  2  1.0981e-05
  3  13.8318
  4  1.85405
  5  4.30977e-06
  6  4.50589e-06
  7  5.53294
  8  4.25831e-05
  9  29.7698
  10  2.30126e-05
  11  0.773325
  12  7.16839e-06
  13  5.23634e-05
  14  5.47527
  15  4.07872
  16  8.71839e-08
  17  2.2159
  18  0.250446
  19  0.191277
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  7.168e-06  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:  1.082e+00  1.913e-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.022e+00  2.504e-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: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601130/likelihoodResults_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.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) = 5693.48010004
delta logL = -0.00107350326653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5693.47902667
delta logL = -1.41446435009e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2312       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0825       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=   5693.479     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    146.64        .15544E-01** at limit **
   2  alpha         1.9756        2.6168        .16582       -.36679E-07
   3  Normalizat    1.0218        .31328E-01    .29402E-03    .11677E-04
   4  Prefactor     1.0824        .23822E-01    .21658E-03    .20420E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.97555
  Normalizat = 1.02175
  Prefactor  = 1.08242
 **********
 **   18 **HESSE 
 **********

 FCN=   5693.479     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7016        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9756        2.6315        .66330E-02   -.21135    
   3  Normalizat    1.0218        .24806        .11761E-04   -.92305    
   4  Prefactor     1.0824        .18868        .86630E-05   -.90030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69802e-10
Minuit parameter uncertainties:
  1  0.000115794
  2  237.283
  3  0.248338
  4  0.188794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601130': 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) = 5693.47902592
delta logL = 6.15175849816e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.158e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.976e+00  2.373e+02  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:  1.082e+00  1.888e-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.022e+00  2.483e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/601130/cmap_HighResolution_354931201_355190401_4FGL_J0839.8+0105_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-08-30 03:02:32.811053', job_id='601130', GAL2='1.08', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630317752.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='446' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 601130: <4FGL_J0839.8+0105_daily_bin446> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin446> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:36 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:38 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:38 2021
Terminated at Mon Aug 30 03:02:34 2021
Results reported at Mon Aug 30 03:02:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin446 129.963 1.0877 354931201 355190401 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 :                                   511.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             278.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

