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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin577
RA = 129.963, Dec = 1.0877
tmin = 388886401, tmax = 389145601
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='601366', job_status='RUN', time_executed='2021-08-30 02:53:38.076134', time_epoch_executed='1630317218.08' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601366/ft1_4FGL_J0839.8+0105_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601366/ft2_4FGL_J0839.8+0105_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601366/ft1_4FGL_J0839.8+0105_daily_bin577.fits outfile=/scratch/kocevski/601366/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin577.fits ra=129.963 dec=1.0877 rad=12.0 tmin=388886401.0 tmax=389145601.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 4.50
user 3.26
sys 1.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601366/ft1_filtered_4FGL_J0839.8+0105_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/601366/ft2_4FGL_J0839.8+0105_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/601366/ltcube_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.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/601366/ft2_4FGL_J0839.8+0105_daily_bin577.fits
.....................!
real 13.10
user 11.62
sys 1.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601366/ft1_filtered_4FGL_J0839.8+0105_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/601366/ft2_4FGL_J0839.8+0105_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/601366/ltcube_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.fits outfile=/scratch/kocevski/601366/expmap_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.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/601366/ltcube_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.fits
.....................!
real 190.78
user 184.88
sys 5.58

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/601366/ft1_filtered_4FGL_J0839.8+0105_daily_bin577.fits scfile=/scratch/kocevski/601366/ft2_4FGL_J0839.8+0105_daily_bin577.fits outfile=/scratch/kocevski/601366/cmap_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.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.53
user 0.39
sys 1.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601366/ft1_filtered_4FGL_J0839.8+0105_daily_bin577.fits scfile=/scratch/kocevski/601366/ft2_4FGL_J0839.8+0105_daily_bin577.fits outfile=/scratch/kocevski/601366/cmap_HighResolution_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.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.60
user 0.38
sys 1.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6891       1.0000         .10000E-03   10000.    
     3 'norm      '    15.583       1.0000         .10000E-03   10000.    
     4 'norm      '    7.6789       1.0000         .10000E-03   10000.    
     5 'norm      '    .35303E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.668       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.310       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5346       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.215       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0675       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1478       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80489       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=   5377.227     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1873 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7486        9.4504        .13937E-06   -.87050E-05
   2  Prefactor     3.6141        100.99        .71549E-05   -.11812E-04
   3  norm          15.584        12.083        .20874E-07   -.14397E-04
   4  norm          7.6810        3.6459        .13070E-07   -.83725E-04
   5  norm          .10000E-03    .89263        .65566E-07** at limit **
   6  norm          26.663        27.759       -.27662E-05   -.59774E-04
   7  norm          8.0207        5.4961       -.20953E-06   -.54306E-04
   8  Prefactor     .10000E-03    26.292        .13772E-06** at limit **
   9  norm          .10000E-03    9.2055        .21685E-07** at limit **
  10  Prefactor     29.308        15.974       -.87153E-08   -.26903E-05
  11  norm          4.5346        1.4509        .66812E-08   -.35496E-04
  12  norm          .10000E-03    2.5415        .71427E-07** at limit **
  13  Prefactor     62.216        45.321        .21031E-06   -.21895E-05
  14  norm          .10000E-03    1.6565        .28139E-07** at limit **
  15  norm          1.4873        9.0644        .28175E-05    .16464E-04
  16  Prefactor     .10000E-03    63.697        .97006E-07** at limit **
  17  Prefactor     3.0675        4.8823        .48955E-06   -.15948E-05
  18  Normalizat    1.1479        .22691        .13392E-05   -.15747E-03
  19  Prefactor     .80474        .16646       -.23544E-05   -.29415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74855
  Prefactor  = 3.61409
  norm       = 15.584
  norm       = 7.68098
  norm       = 0.0001
  norm       = 26.663
  norm       = 8.02068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.3084
  norm       = 4.53458
  norm       = 0.0001
  Prefactor  = 62.2164
  norm       = 0.0001
  norm       = 1.48727
  Prefactor  = 0.0001
  Prefactor  = 3.06753
  Normalizat = 1.14789
  Prefactor  = 0.804742
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.227     FROM HESSE     STATUS=OK           274 CALLS     2147 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7486        9.4431        .13552E-03   -1.5116    
   2  Prefactor     3.6141        101.15        .21028E-03   -1.5328    
   3  norm          15.584        12.075        .10146E-03   -1.4918    
   4  norm          7.6810        3.5753        .90205E-04   -1.5154    
   5  norm          .10000E-03    8.3018        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.663        27.685        .77576E-04   -1.4675    
   7  norm          8.0207        5.4854        .13404E-03   -1.5141    
   8  Prefactor     .10000E-03    26.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.2058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.308        16.003        .74004E-04   -1.4625    
  11  norm          4.5346        1.4533        .47718E-04   -1.5282    
  12  norm          .10000E-03    2.5489        .11417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.216        45.415        .50872E-04   -1.4129    
  14  norm          .10000E-03    1.6648        .92118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4873        9.2635        .35025E-03   -1.5464    
  16  Prefactor     .10000E-03    64.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0675        4.8865        .19488E-03   -1.5358    
  18  Normalizat    1.1479        .26023        .27100E-03   -.88229    
  19  Prefactor     .80474        .18684        .23676E-03   -.99554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64554e-10
Minuit parameter uncertainties:
  1  9.44473
  2  38.3113
  3  12.0768
  4  3.5754
  5  9.54072e-05
  6  27.6982
  7  5.48575
  8  4.26646e-05
  9  2.11404e-06
  10  16.0056
  11  1.45333
  12  1.49352e-06
  13  45.44
  14  2.28438e-06
  15  7.425
  16  0.000124826
  17  4.88714
  18  0.260523
  19  0.186988
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.494e-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:  8.047e-01  1.870e-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.148e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601366/likelihoodResults_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.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) = 5377.22863778
delta logL = -0.00183681550061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5377.22680096
delta logL = 5.27506927028e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2387       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80475       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5377.227     FROM MIGRAD    STATUS=FAILED        81 CALLS      220 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10016E-03    616.93        .11421E-02** at limit **
   2  alpha         2.1788        2.7682        .16576        .27290E-05
   3  Normalizat    1.1479        .21817        .27100E-03   -.47825E-05
   4  Prefactor     .80474        .16348        .23676E-03   -.23048E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5377.227     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      379 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10016E-03    616.93        .27560E-03** at limit **
   2  alpha         2.1788        2.7682        .10809E-04    .27290E-05
   3  Normalizat    1.1479        .21817        .18135E-05   -.47825E-05
   4  Prefactor     .80474        .16348        .23780E-06   -.23048E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5377.227     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      412 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5695        .22841E-03** at limit **
   2  alpha         2.1139        3.5474        .33151E-01    .24005E-08
   3  Normalizat    1.1479        .24658        .10840E-04    .15103E-04
   4  Prefactor     .80474        .18478        .94705E-05    .13925E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11391
  Normalizat = 1.14789
  Prefactor  = 0.80474
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.227     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5670        .45682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1139        3.3977        .13261E-02   -.15506    
   3  Normalizat    1.1479        .24675        .21680E-05   -.88229    
   4  Prefactor     .80474        .18492        .18941E-05   -.99554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04084e-13
Minuit parameter uncertainties:
  1  2.73145e-06
  2  241.649
  3  0.247
  4  0.185065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601366': 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) = 5377.22680083
delta logL = 1.3757016859e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  2.731e-06  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.114e+00  2.416e+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:  8.047e-01  1.851e-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.148e+00  2.470e-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/601366/cmap_HighResolution_388886401_389145601_4FGL_J0839.8+0105_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-08-30 03:02:35.643219', job_id='601366', GAL2='0.80', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630317755.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='577' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 601366: <4FGL_J0839.8+0105_daily_bin577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin577 129.963 1.0877 388886401 389145601 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 :                                   551.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            705 sec.

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

