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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin699
RA = 129.963, Dec = 1.0877
tmin = 420508801, tmax = 420768001
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='603180', job_status='RUN', time_executed='2021-08-30 02:56:11.263179', time_epoch_executed='1630317371.26' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603180/ft1_4FGL_J0839.8+0105_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603180/ft2_4FGL_J0839.8+0105_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603180/ft1_4FGL_J0839.8+0105_daily_bin699.fits outfile=/scratch/kocevski/603180/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin699.fits ra=129.963 dec=1.0877 rad=12.0 tmin=420508801.0 tmax=420768001.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 2.93
user 2.48
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603180/ft2_4FGL_J0839.8+0105_daily_bin699.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/603180/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin699.fits evtable="EVENTS" outfile="/scratch/kocevski/603180/ft1_filtered_4FGL_J0839.8+0105_daily_bin699.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.27
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603180/ft1_filtered_4FGL_J0839.8+0105_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/603180/ft2_4FGL_J0839.8+0105_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/603180/ltcube_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.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/603180/ft2_4FGL_J0839.8+0105_daily_bin699.fits
.....................!
real 9.91
user 9.34
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603180/ft1_filtered_4FGL_J0839.8+0105_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/603180/ft2_4FGL_J0839.8+0105_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/603180/ltcube_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.fits outfile=/scratch/kocevski/603180/expmap_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.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/603180/ltcube_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.fits
.....................!
real 146.29
user 141.63
sys 4.03

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/603180/ft1_filtered_4FGL_J0839.8+0105_daily_bin699.fits scfile=/scratch/kocevski/603180/ft2_4FGL_J0839.8+0105_daily_bin699.fits outfile=/scratch/kocevski/603180/cmap_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.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.76
user 0.28
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603180/ft1_filtered_4FGL_J0839.8+0105_daily_bin699.fits scfile=/scratch/kocevski/603180/ft2_4FGL_J0839.8+0105_daily_bin699.fits outfile=/scratch/kocevski/603180/cmap_HighResolution_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.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.81
user 0.29
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3431       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2918       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9644       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.292       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4464       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.209       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1509       1.0000         .10000E-03   10000.    
    12 'norm      '    8.8828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.376       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8368       1.0000         .10000E-03   10000.    
    15 'norm      '    4.7169       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18697E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .72498       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1701       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=   5133.091     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2237 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9360        7.0267       -.29232E-05   -.67354E-04
   2  Prefactor     9.3746        35.376        .27729E-04   -.70821E-05
   3  norm          9.2913        10.173       -.17549E-05   -.56802E-04
   4  norm          1.9647        1.8262        .16387E-06    .18153E-03
   5  norm          .10000E-03    .43368        .14342E-07** at limit **
   6  norm          20.268        22.957        .15003E-05   -.45964E-04
   7  norm          4.4456        3.5588       -.53766E-06   -.84751E-04
   8  Prefactor     .10000E-03    15.443       -.29907E-06** at limit **
   9  norm          21.333        27.714       -.11275E-05   -.20254E-06
  10  Prefactor     19.196        16.042       -.12742E-05   -.23623E-04
  11  norm          2.1506        1.1114       -.24539E-07   -.21303E-03
  12  norm          8.8824        7.7079        .38609E-06   -.44363E-04
  13  Prefactor     82.369        49.729       -.42780E-05   -.39255E-05
  14  norm          3.8361        4.4988       -.65428E-07   -.35293E-03
  15  norm          4.7165        5.0974       -.23199E-06   -.55774E-04
  16  Prefactor     .10001E-03    11.889        .43823E-06** at limit **
  17  Prefactor     .10000E-03    3.2351        .10868E-06** at limit **
  18  Normalizat    .72528        .23030       -.14289E-05   -.40974E-04
  19  Prefactor     1.1699        .17207        .31275E-06   -.86026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.936
  Prefactor  = 9.37461
  norm       = 9.29135
  norm       = 1.96469
  norm       = 0.0001
  norm       = 20.2683
  norm       = 4.44562
  Prefactor  = 0.0001
  norm       = 21.3334
  Prefactor  = 19.1958
  norm       = 2.15058
  norm       = 8.88241
  Prefactor  = 82.3687
  norm       = 3.83606
  norm       = 4.71646
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Normalizat = 0.725275
  Prefactor  = 1.16992
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.091     FROM HESSE     STATUS=OK           280 CALLS     2517 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9360        7.0345        .16482E-03   -1.5221    
   2  Prefactor     9.3746        35.195        .13111E-03   -1.5096    
   3  norm          9.2913        10.174        .13148E-03   -1.5098    
   4  norm          1.9647        1.8383        .90673E-04   -1.5428    
   5  norm          .10000E-03    .43571        .46066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.268        22.879        .88915E-04   -1.4807    
   7  norm          4.4456        3.5581        .11626E-03   -1.5286    
   8  Prefactor     .10000E-03    15.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.333        27.731        .86734E-04   -1.4784    
  10  Prefactor     19.196        16.083        .91385E-04   -1.4831    
  11  norm          2.1506        1.1071        .52022E-04   -1.5415    
  12  norm          8.8824        7.7043        .13448E-03   -1.5112    
  13  Prefactor     82.369        49.794        .44255E-04   -1.3890    
  14  norm          3.8361        4.4995        .15484E-03   -1.5316    
  15  norm          4.7165        5.0913        .16288E-03   -1.5274    
  16  Prefactor     .10001E-03    175.77        .47969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2260        .24819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .72528        .26172        .32080E-03   -1.0290    
  19  Prefactor     1.1699        .19763        .20407E-03   -.87262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72533e-10
Minuit parameter uncertainties:
  1  7.03552
  2  35.2734
  3  10.1763
  4  1.83831
  5  1.01281e-06
  6  22.8893
  7  3.55826
  8  5.07506e-05
  9  27.7475
  10  16.0867
  11  1.10711
  12  7.7052
  13  49.819
  14  4.4999
  15  5.09181
  16  0.00309204
  17  4.12225e-05
  18  0.262168
  19  0.197759
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.882e+00  7.705e+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:  1.170e+00  1.978e-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:  7.253e-01  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/603180/likelihoodResults_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.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) = 5132.93863994
delta logL = 0.15283372113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5132.92431994
delta logL = 0.167153721696

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5132.924     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      248 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8107        7.8040        .71711E-03   -.42535E-04
   2  alpha         2.8051        .99769        .16824E-01    .55303E-05
   3  Normalizat    .69638        .25283        .32684E-03    .93220E-06
   4  Prefactor     1.1828        .19711        .20306E-03   -.11197E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.81071
  alpha      = 2.80512
  Normalizat = 0.696382
  Prefactor  = 1.18279
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.924     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8107        7.3310        .28684E-04   -1.5149    
   2  alpha         2.8051        .93912        .67295E-03    .12235    
   3  Normalizat    .69638        .25248        .65368E-04   -1.0404    
   4  Prefactor     1.1828        .19698        .40612E-04   -.86863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78258e-12
Minuit parameter uncertainties:
  1  7.33184
  2  0.963123
  3  0.252904
  4  0.197099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603180': 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) = 5132.92431919
delta logL = 0.167154479906

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.811e+00  7.332e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.805e+00  9.631e-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:  1.183e+00  1.971e-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:  6.964e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.81 +/- 0.96
Photon Flux (Free Index): 5.66e-08 +/- 5.59e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.05e-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/603180/cmap_HighResolution_420508801_420768001_4FGL_J0839.8+0105_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.37e-05', photon_flux_error='2.99e-08', dlogl='1.67e-01', energy_flux='1.27e-05', photon_flux2='5.66e-08', job_status='DONE', time_completed='2021-08-30 03:02:52.424651', photon_index_error2='0.96', photon_index2='2.81', ts='2.81', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.05e-05', EG='0.73', time_epoch_completed='1630317772.42', return_code='0', job_id='603180', GAL2='1.18', EG2='0.70', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.59e-08', ts2='3.15', photon_index='2.24' WHERE bin_id='699' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 603180: <4FGL_J0839.8+0105_daily_bin699> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin699> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:37 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:39 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:55:39 2021
Terminated at Mon Aug 30 03:02:54 2021
Results reported at Mon Aug 30 03:02:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin699 129.963 1.0877 420508801 420768001 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 :                                   397.59 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             222.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   435 sec.
    Turnaround time :                            437 sec.

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

