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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin646
RA = 129.963, Dec = 1.0877
tmin = 406771201, tmax = 407030401
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='603103', job_status='RUN', time_executed='2021-08-30 02:59:49.777265', time_epoch_executed='1630317589.78' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603103/ft1_4FGL_J0839.8+0105_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603103/ft2_4FGL_J0839.8+0105_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603103/ft1_4FGL_J0839.8+0105_daily_bin646.fits outfile=/scratch/kocevski/603103/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin646.fits ra=129.963 dec=1.0877 rad=12.0 tmin=406771201.0 tmax=407030401.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.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603103/ft1_filtered_4FGL_J0839.8+0105_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/603103/ft2_4FGL_J0839.8+0105_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/603103/ltcube_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.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/603103/ft2_4FGL_J0839.8+0105_daily_bin646.fits
.....................!
real 11.92
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603103/ft1_filtered_4FGL_J0839.8+0105_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/603103/ft2_4FGL_J0839.8+0105_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/603103/ltcube_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.fits outfile=/scratch/kocevski/603103/expmap_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.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/603103/ltcube_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.fits
.....................!
real 190.90
user 184.63
sys 5.75

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/603103/ft1_filtered_4FGL_J0839.8+0105_daily_bin646.fits scfile=/scratch/kocevski/603103/ft2_4FGL_J0839.8+0105_daily_bin646.fits outfile=/scratch/kocevski/603103/cmap_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.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 1.09
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603103/ft1_filtered_4FGL_J0839.8+0105_daily_bin646.fits scfile=/scratch/kocevski/603103/ft2_4FGL_J0839.8+0105_daily_bin646.fits outfile=/scratch/kocevski/603103/cmap_HighResolution_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.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 1.00
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17911E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4348       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6182       1.0000         .10000E-03   10000.    
     5 'norm      '    .62286       1.0000         .10000E-03   10000.    
     6 'norm      '    44.746       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44266E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    48.633       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3287       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.382       1.0000         .10000E-03   10000.    
    14 'norm      '    .16456E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.9242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3004       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95387       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94761       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=   5500.235     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1907 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0488        .92905E-07** at limit **
   2  Prefactor     .10001E-03    26.544        .70860E-06** at limit **
   3  norm          1.4335        7.9118       -.34420E-05   -.70961E-03
   4  norm          3.6181        2.5020       -.13139E-06   -.16164E-03
   5  norm          .62202        1.0352        .96335E-07   -.13146E-03
   6  norm          44.715        29.167       -.21770E-04   -.23573E-03
   7  norm          1.6199        4.2266        .18077E-05   -.46612E-03
   8  Prefactor     .10002E-03    58.098        .30829E-04** at limit **
   9  norm          48.628        36.696       -.44926E-05   -.14938E-05
  10  Prefactor     .10000E-03    5.9159       -.10203E-05** at limit **
  11  norm          1.3291        .95313        .37451E-07   -.10550E-03
  12  norm          5.8426        7.7513        .11824E-06   -.15413E-03
  13  Prefactor     47.389        34.657        .51090E-05    .81232E-05
  14  norm          .10000E-03    2.4322       -.21945E-06** at limit **
  15  norm          6.9246        5.4049       -.38363E-06   -.14626E-04
  16  Prefactor     .10000E-03    6.0006        .15126E-05** at limit **
  17  Prefactor     2.3004        4.4574       -.19764E-05   -.67577E-03
  18  Normalizat    .95331        .20098        .45028E-05   -.15414E-03
  19  Prefactor     .94800        .15301        .55719E-06    .38167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.43348
  norm       = 3.61812
  norm       = 0.622018
  norm       = 44.7151
  norm       = 1.61991
  Prefactor  = 0.000100021
  norm       = 48.6281
  Prefactor  = 0.0001
  norm       = 1.32912
  norm       = 5.84256
  Prefactor  = 47.3886
  norm       = 0.000100001
  norm       = 6.92464
  Prefactor  = 0.0001
  Prefactor  = 2.30036
  Normalizat = 0.953313
  Prefactor  = 0.947998
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.235     FROM HESSE     STATUS=OK           274 CALLS     2181 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0501        .10367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    26.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4335        8.0024        .36044E-03   -1.5469    
   4  norm          3.6181        2.4874        .93715E-04   -1.5328    
   5  norm          .62202        .85864        .93671E-03   -1.5550    
   6  norm          44.715        29.058        .59936E-04   -1.4370    
   7  norm          1.6199        4.1761        .23115E-03   -1.5453    
   8  Prefactor     .10002E-03    59.611        .21216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          48.628        36.720        .57501E-04   -1.4312    
  10  Prefactor     .10000E-03    5.9310        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3291        .94708        .58646E-04   -1.5477    
  12  norm          5.8426        7.7425        .16616E-03   -1.5224    
  13  Prefactor     47.389        34.610        .58252E-04   -1.4330    
  14  norm          .10000E-03    4.7626        .22289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9246        5.4027        .14745E-03   -1.5182    
  16  Prefactor     .10000E-03    6.0022        .17742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3004        4.4654        .20673E-03   -1.5405    
  18  Normalizat    .95331        .23288        .27106E-03   -.94611    
  19  Prefactor     .94800        .17878        .21217E-03   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20158e-09
Minuit parameter uncertainties:
  1  1.77302e-07
  2  0.000822723
  3  6.77503
  4  2.48751
  5  0.858656
  6  29.0677
  7  4.17682
  8  0.00223478
  9  36.7371
  10  4.01357e-06
  11  0.94709
  12  7.74386
  13  34.6246
  14  0.000120099
  15  5.40308
  16  6.77998e-06
  17  4.46607
  18  0.233128
  19  0.178889
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.843e+00  7.744e+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.480e-01  1.789e-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:  9.533e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603103/likelihoodResults_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.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) = 5499.17983549
delta logL = 1.05538613944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5499.15772618
delta logL = 1.07749545052

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5499.158     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      272 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47847        10.534        .74414E-02    .10501E-02
   2  alpha         5.0000        4.5545        .46267    ** at limit **
   3  Normalizat    .84605        .11608        .64620E-01    .18653E-04
   4  Prefactor     1.0103        .89573E-01    .43307E-01   -.58559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.478466
  alpha      = 5
  Normalizat = 0.846053
  Prefactor  = 1.01026
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.158     FROM HESSE     STATUS=OK            35 CALLS      307 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47847        .33494        .33796E-03   -1.5570    
   2  alpha         5.0000        3.4801        .53797E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84605        .23175        .28585E-03   -.98383    
   4  Prefactor     1.0103        .17868        .20625E-03   -.92388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80197e-12
Minuit parameter uncertainties:
  1  0.334936
  2  3.59603e-06
  3  0.232021
  4  0.178783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603103': 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) = 5499.15772436
delta logL = 1.07749727169

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  4.785e-01  3.349e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  3.596e-06  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.010e+00  1.788e-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.461e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 129.963 1.088
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.31e-08 +/- 5.79e-08
Energy Flux (Free Index): 1.16e-05 +/- 8.08e-06

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/603103/cmap_HighResolution_406771201_407030401_4FGL_J0839.8+0105_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.08e+00', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-08-30 03:08:39.659649', photon_index_error2='0.00', photon_index2='5.00', ts='0.76', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.45e-08', energy_flux_error2='8.08e-06', EG='0.95', time_epoch_completed='1630318119.66', return_code='0', job_id='603103', GAL2='1.01', EG2='0.85', return_code2='0', photon_flux_error2='5.79e-08', ts2='3.12', photon_index='2.24' WHERE bin_id='646' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 603103: <4FGL_J0839.8+0105_daily_bin646> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin646 129.963 1.0877 406771201 407030401 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 :                                   521.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

