/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 76 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin73
RA = 129.963, Dec = 1.0877
tmin = 258249601, tmax = 258508801
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='598284', job_status='RUN', time_executed='2021-08-30 02:48:01.868582', time_epoch_executed='1630316881.87' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598284

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598284/ft1_4FGL_J0839.8+0105_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598284/ft2_4FGL_J0839.8+0105_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598284/ft1_4FGL_J0839.8+0105_daily_bin73.fits outfile=/scratch/kocevski/598284/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin73.fits ra=129.963 dec=1.0877 rad=12.0 tmin=258249601.0 tmax=258508801.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 5.16
user 0.97
sys 4.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598284/ft1_filtered_4FGL_J0839.8+0105_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/598284/ft2_4FGL_J0839.8+0105_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/598284/ltcube_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.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/598284/ft2_4FGL_J0839.8+0105_daily_bin73.fits
.....................!
real 15.01
user 9.59
sys 4.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598284/ft1_filtered_4FGL_J0839.8+0105_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/598284/ft2_4FGL_J0839.8+0105_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/598284/ltcube_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.fits outfile=/scratch/kocevski/598284/expmap_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.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/598284/ltcube_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.fits
.....................!
real 201.14
user 185.04
sys 10.81

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/598284/ft1_filtered_4FGL_J0839.8+0105_daily_bin73.fits scfile=/scratch/kocevski/598284/ft2_4FGL_J0839.8+0105_daily_bin73.fits outfile=/scratch/kocevski/598284/cmap_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.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 4.42
user 0.35
sys 4.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598284/ft1_filtered_4FGL_J0839.8+0105_daily_bin73.fits scfile=/scratch/kocevski/598284/ft2_4FGL_J0839.8+0105_daily_bin73.fits outfile=/scratch/kocevski/598284/cmap_HighResolution_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.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 4.46
user 0.36
sys 4.08

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8354       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4572       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6034       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.728       1.0000         .10000E-03   10000.    
     9 'norm      '    58.925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8164       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.012       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3551       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.256       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.442       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1120       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87977       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=   5611.964     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     2119 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8152        .14022E-06** at limit **
   2  Prefactor     .10000E-03    6.4397       -.15504E-06** at limit **
   3  norm          5.8352        7.8811        .41078E-06   -.11329E-03
   4  norm          1.4570        2.5056       -.31545E-06   -.70913E-03
   5  norm          1.6033        1.7069        .20184E-06   -.38450E-03
   6  norm          .10000E-03    15.756       -.19228E-06** at limit **
   7  norm          .10000E-03    2.7492       -.83540E-07** at limit **
   8  Prefactor     19.734        33.396        .10252E-04    .96289E-05
   9  norm          58.915        34.063       -.84794E-05    .58967E-06
  10  Prefactor     .10000E-03    8.9083       -.71120E-06** at limit **
  11  norm          2.8165        1.3281       -.58100E-07   -.23231E-03
  12  norm          .10000E-03    2.2099        .28881E-07** at limit **
  13  Prefactor     38.013        26.092        .69092E-06   -.37149E-05
  14  norm          7.3556        4.4568       -.90647E-07   -.78908E-04
  15  norm          .10000E-03    3.3299       -.46265E-08** at limit **
  16  Prefactor     36.258        27.321        .15007E-05   -.66794E-05
  17  Prefactor     11.443        5.7125       -.10826E-06   -.54911E-04
  18  Normalizat    1.1118        .21105       -.15841E-05    .11739E-03
  19  Prefactor     .87994        .15399        .94241E-06   -.36810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.83516
  norm       = 1.457
  norm       = 1.60333
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7341
  norm       = 58.9145
  Prefactor  = 0.000100003
  norm       = 2.81653
  norm       = 0.0001
  Prefactor  = 38.0131
  norm       = 7.35561
  norm       = 0.0001
  Prefactor  = 36.2577
  Prefactor  = 11.4425
  Normalizat = 1.11181
  Prefactor  = 0.879937
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.964     FROM HESSE     STATUS=OK           272 CALLS     2391 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8325        .12274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8352        7.8689        .16625E-03   -1.5225    
   4  norm          1.4570        2.4585        .14272E-03   -1.5467    
   5  norm          1.6033        1.6694        .91840E-04   -1.5455    
   6  norm          .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8221        .24247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.734        33.393        .90176E-04   -1.4819    
   9  norm          58.915        33.951        .52265E-04   -1.4171    
  10  Prefactor     .10000E-03    59.402        .43111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8165        1.3306        .56053E-04   -1.5372    
  12  norm          .10000E-03    2.2127        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.013        26.090        .65008E-04   -1.4474    
  14  norm          7.3556        4.4651        .11802E-03   -1.5165    
  15  norm          .10000E-03    3.3530        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.258        27.347        .66558E-04   -1.4503    
  17  Prefactor     11.443        5.7174        .11843E-03   -1.5031    
  18  Normalizat    1.1118        .25082        .26860E-03   -.89374    
  19  Prefactor     .87994        .18302        .22473E-03   -.96846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08448e-10
Minuit parameter uncertainties:
  1  7.92344e-07
  2  7.50142e-06
  3  7.87027
  4  2.4587
  5  1.66947
  6  0.000114499
  7  4.54404e-06
  8  33.4241
  9  33.9626
  10  0.00081702
  11  1.33059
  12  8.02849e-07
  13  26.0975
  14  4.46531
  15  9.25561e-07
  16  27.356
  17  5.71769
  18  0.25109
  19  0.183147
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  8.028e-07  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.799e-01  1.831e-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.112e+00  2.511e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598284/likelihoodResults_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.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) = 5611.96605389
delta logL = -0.00211461350864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5611.96393927
delta logL = -6.12089934293e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5611.788     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      429 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20857        .35813        .10884E-01   -.23221E-02
   2  alpha         5.0000        3.6013        .50000    ** at limit **
   3  Normalizat    1.0601        .24697        .26860E-03    .50113E-04
   4  Prefactor     .90442        .18261        .22473E-03    .76033E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.208567
  alpha      = 5
  Normalizat = 1.06013
  Prefactor  = 0.904418
 **********
 **   18 **HESSE 
 **********

 FCN=   5611.788     FROM HESSE     STATUS=OK            27 CALLS      456 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20857        .37721        .55838E-04   -1.5799    
   2  alpha         5.0000        3.7403        .10154        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0601        .25149        .10744E-04   -.91043    
   4  Prefactor     .90442        .18401        .89893E-05   -.95987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80618e-12
Minuit parameter uncertainties:
  1  0.377217
  2  1.80138e-06
  3  0.251775
  4  0.184133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598284': 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) = 5611.78782784
delta logL = 0.176111435897

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.086e-01  3.772e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  1.801e-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:  9.044e-01  1.841e-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.060e+00  2.518e-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/598284/cmap_HighResolution_258249601_258508801_4FGL_J0839.8+0105_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-08-30 02:57:57.996590', job_id='598284', GAL2='0.90', fit_tolerance='1e-08', EG2='1.06', EG='1.11', time_epoch_completed='1630317478.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.76e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='73' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:57:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 598284: <4FGL_J0839.8+0105_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin73 129.963 1.0877 258249601 258508801 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 :                                   649.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            749 sec.

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

