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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin515
RA = 129.963, Dec = 1.0877
tmin = 372816001, tmax = 373075201
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='601231', job_status='RUN', time_executed='2021-08-30 02:53:47.207363', time_epoch_executed='1630317227.21' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601231/ft1_4FGL_J0839.8+0105_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601231/ft2_4FGL_J0839.8+0105_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601231/ft1_4FGL_J0839.8+0105_daily_bin515.fits outfile=/scratch/kocevski/601231/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin515.fits ra=129.963 dec=1.0877 rad=12.0 tmin=372816001.0 tmax=373075201.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.76
user 4.19
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601231/ft2_4FGL_J0839.8+0105_daily_bin515.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/601231/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin515.fits evtable="EVENTS" outfile="/scratch/kocevski/601231/ft1_filtered_4FGL_J0839.8+0105_daily_bin515.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.85
user 0.31
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601231/ft1_filtered_4FGL_J0839.8+0105_daily_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/601231/ft2_4FGL_J0839.8+0105_daily_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/601231/ltcube_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.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/601231/ft2_4FGL_J0839.8+0105_daily_bin515.fits
.....................!
real 11.99
user 11.14
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601231/ft1_filtered_4FGL_J0839.8+0105_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/601231/ft2_4FGL_J0839.8+0105_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/601231/ltcube_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.fits outfile=/scratch/kocevski/601231/expmap_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.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/601231/ltcube_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.fits
.....................!
real 195.03
user 188.23
sys 6.30

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/601231/ft1_filtered_4FGL_J0839.8+0105_daily_bin515.fits scfile=/scratch/kocevski/601231/ft2_4FGL_J0839.8+0105_daily_bin515.fits outfile=/scratch/kocevski/601231/cmap_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.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.84
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601231/ft1_filtered_4FGL_J0839.8+0105_daily_bin515.fits scfile=/scratch/kocevski/601231/ft2_4FGL_J0839.8+0105_daily_bin515.fits outfile=/scratch/kocevski/601231/cmap_HighResolution_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.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.85
user 0.37
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41096E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12192E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.638       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8649       1.0000         .10000E-03   10000.    
     6 'norm      '    .11252E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4910       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.243       1.0000         .10000E-03   10000.    
     9 'norm      '    .34542E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.922       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5668       1.0000         .10000E-03   10000.    
    12 'norm      '    .13100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49571E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2655       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18471E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98318       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91894       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=   7147.947     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     2300 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2694        .35093E-06** at limit **
   2  Prefactor     .10000E-03    10.541        .16269E-05** at limit **
   3  norm          14.613        11.011        .24751E-05   -.81178E-04
   4  norm          .10000E-03    .80763        .13111E-07** at limit **
   5  norm          1.8654        1.1595        .11275E-06   -.36879E-04
   6  norm          .10001E-03    16.698       -.67077E-05** at limit **
   7  norm          3.4969        3.5992       -.49181E-06   -.57158E-03
   8  Prefactor     11.285        31.220        .77044E-04    .24736E-04
   9  norm          .10000E-03    12.984       -.95992E-05** at limit **
  10  Prefactor     12.911        12.313       -.25504E-05   -.12929E-03
  11  norm          6.5674        1.3570       -.61571E-07   -.30962E-03
  12  norm          .10000E-03    2.6858       -.13996E-06** at limit **
  13  Prefactor     .10000E-03    14.016       -.29302E-06** at limit **
  14  norm          2.2603        3.6567        .51125E-06   -.71233E-03
  15  norm          4.6739        6.1390       -.92708E-06   -.40817E-03
  16  Prefactor     .10000E-03    40.212        .14608E-04** at limit **
  17  Prefactor     .10000E-03    1.1446        .12286E-06** at limit **
  18  Normalizat    .98328        .18053       -.63076E-05    .29840E-06
  19  Prefactor     .91889        .13430        .37468E-07   -.32915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6126
  norm       = 0.0001
  norm       = 1.86536
  norm       = 0.000100008
  norm       = 3.49685
  Prefactor  = 11.2848
  norm       = 0.0001
  Prefactor  = 12.9111
  norm       = 6.56738
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26025
  norm       = 4.67386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.983278
  Prefactor  = 0.918887
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.947     FROM HESSE     STATUS=OK           264 CALLS     2564 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3154        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.613        11.000        .10469E-03   -1.4943    
   4  norm          .10000E-03    .82890        .14828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8654        1.1579        .69367E-04   -1.5435    
   6  norm          .10001E-03    16.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4969        3.5901        .15585E-03   -1.5334    
   8  Prefactor     11.285        31.149        .11948E-03   -1.5036    
   9  norm          .10000E-03    13.040        .21329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.911        12.317        .11143E-03   -1.4989    
  11  norm          6.5674        1.3581        .42994E-04   -1.5195    
  12  norm          .10000E-03    2.6969        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.139        .21162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2603        3.6354        .19495E-03   -1.5407    
  15  norm          4.6739        6.1323        .18609E-03   -1.5276    
  16  Prefactor     .10000E-03    41.501        .40598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1523        .88320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98328        .21031        .27299E-03   -.93593    
  19  Prefactor     .91889        .15715        .21498E-03   -.95484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41223e-09
Minuit parameter uncertainties:
  1  6.16816e-06
  2  8.56533e-05
  3  11.0012
  4  3.84047e-06
  5  1.15792
  6  0.000741887
  7  3.59029
  8  31.1934
  9  3.80477e-05
  10  12.3197
  11  1.35814
  12  1.35238e-05
  13  8.80599e-05
  14  3.63578
  15  6.13313
  16  0.000199508
  17  6.76234e-06
  18  0.210484
  19  0.157227
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.352e-05  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.189e-01  1.572e-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.833e-01  2.105e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601231/likelihoodResults_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.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) = 7147.94839966
delta logL = -0.00176348917284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7147.93185036
delta logL = 0.014785814581

Fit tolerance = 1e-08

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

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

 FCN=   7147.932     FROM MIGRAD    STATUS=FAILED       101 CALLS      372 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57110E-01    .50940        .72259E-03    .12050E-01
   2  alpha         5.0000        4.9954        .18507    ** at limit **
   3  Normalizat    .97052        .21836        .27458E-03   -.12421E-05
   4  Prefactor     .92490        .16076        .21436E-03   -.14267E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7147.932     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      515 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57110E-01    .50940        .91631E-08   -1.5660    
   2  alpha         5.0000        4.9954        .21894E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97052        .21836        .35826E-07   -.94025    
   4  Prefactor     .92490        .16076        .74474E-08   -.95276    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7147.932     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      546 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57110E-01    .49973        .14452E-03    .45638E-03
   2  alpha         5.0000        4.9895        .37014E-01** at limit **
   3  Normalizat    .97052        .21693        .10983E-04   -.12421E-05
   4  Prefactor     .92490        .16043        .85744E-05   -.14320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0571097
  alpha      = 5
  Normalizat = 0.970525
  Prefactor  = 0.924902
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.932     FROM HESSE     STATUS=OK            25 CALLS      571 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57110E-01    .49796        .28903E-04   -1.5660    
   2  alpha         5.0000        4.9892        .74028E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97052        .21651        .21967E-05   -.94025    
   4  Prefactor     .92490        .16025        .17149E-05   -.95276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87092e-13
Minuit parameter uncertainties:
  1  0.33698
  2  1.2576e-05
  3  0.216702
  4  0.16033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601231': 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) = 7147.93185035
delta logL = 0.0147858188084

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.711e-02  3.370e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  1.258e-05  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.249e-01  1.603e-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.705e-01  2.167e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/601231/cmap_HighResolution_372816001_373075201_4FGL_J0839.8+0105_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-08-30 03:04:33.214979', job_id='601231', GAL2='0.92', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1630317873.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.48e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='515' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:04:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 601231: <4FGL_J0839.8+0105_daily_bin515> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin515 129.963 1.0877 372816001 373075201 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

