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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin22
RA = 129.963, Dec = 1.0877
tmin = 245030401, tmax = 245289601
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='598212', job_status='RUN', time_executed='2021-08-30 02:46:42.306213', time_epoch_executed='1630316802.31' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598212/ft1_4FGL_J0839.8+0105_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598212/ft2_4FGL_J0839.8+0105_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598212/ft1_4FGL_J0839.8+0105_daily_bin22.fits outfile=/scratch/kocevski/598212/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin22.fits ra=129.963 dec=1.0877 rad=12.0 tmin=245030401.0 tmax=245289601.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.57
user 1.26
sys 3.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598212/ft2_4FGL_J0839.8+0105_daily_bin22.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/598212/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/598212/ft1_filtered_4FGL_J0839.8+0105_daily_bin22.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 3.68
user 0.35
sys 3.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598212/ft1_filtered_4FGL_J0839.8+0105_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/598212/ft2_4FGL_J0839.8+0105_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/598212/ltcube_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.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/598212/ft2_4FGL_J0839.8+0105_daily_bin22.fits
.....................!
real 16.49
user 12.55
sys 3.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598212/ft1_filtered_4FGL_J0839.8+0105_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/598212/ft2_4FGL_J0839.8+0105_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/598212/ltcube_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.fits outfile=/scratch/kocevski/598212/expmap_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.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/598212/ltcube_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.fits
.....................!
real 195.87
user 186.83
sys 8.20

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/598212/ft1_filtered_4FGL_J0839.8+0105_daily_bin22.fits scfile=/scratch/kocevski/598212/ft2_4FGL_J0839.8+0105_daily_bin22.fits outfile=/scratch/kocevski/598212/cmap_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.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 3.71
user 0.38
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598212/ft1_filtered_4FGL_J0839.8+0105_daily_bin22.fits scfile=/scratch/kocevski/598212/ft2_4FGL_J0839.8+0105_daily_bin22.fits outfile=/scratch/kocevski/598212/cmap_HighResolution_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.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 3.70
user 0.40
sys 3.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    15.444       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2760       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .29524       1.0000         .10000E-03   10000.    
     6 'norm      '    22.158       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .42098       1.0000         .10000E-03   10000.    
    12 'norm      '    13.811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    19.786       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13702E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0866       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86525       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=   6237.305     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1871 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6802        .22549E-07** at limit **
   2  Prefactor     15.439        35.770       -.78861E-05    .19525E-03
   3  norm          7.2761        6.5975       -.11134E-05   -.15267E-02
   4  norm          .10000E-03    .65518       -.14115E-07** at limit **
   5  norm          .29547        .81021       -.53711E-06   -.14029E-02
   6  norm          22.155        27.040       -.34494E-05    .28482E-03
   7  norm          5.6469        4.1867        .91666E-06   -.37296E-03
   8  Prefactor     .10000E-03    10.521       -.60756E-08** at limit **
   9  norm          31.425        30.005        .28073E-05   -.93409E-04
  10  Prefactor     .10000E-03    2.6468       -.12090E-06** at limit **
  11  norm          .42054        1.1020       -.49299E-06   -.16124E-02
  12  norm          13.812        8.9651       -.23163E-06    .55724E-04
  13  Prefactor     .10000E-03    25.294       -.49823E-06** at limit **
  14  norm          19.784        6.1257        .16213E-06   -.12805E-03
  15  norm          .10000E-03    1.9755       -.65986E-07** at limit **
  16  Prefactor     30.717        20.633       -.14460E-05    .11731E-03
  17  Prefactor     .10000E-03    2.1815       -.25660E-06** at limit **
  18  Normalizat    1.0868        .19584        .19013E-05    .82526E-04
  19  Prefactor     .86513        .14294       -.23630E-06    .23884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.439
  norm       = 7.27612
  norm       = 0.0001
  norm       = 0.295472
  norm       = 22.1547
  norm       = 5.64688
  Prefactor  = 0.0001
  norm       = 31.4245
  Prefactor  = 0.0001
  norm       = 0.420544
  norm       = 13.8124
  Prefactor  = 0.0001
  norm       = 19.7839
  norm       = 0.0001
  Prefactor  = 30.7173
  Prefactor  = 0.0001
  Normalizat = 1.08675
  Prefactor  = 0.865133
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.305     FROM HESSE     STATUS=OK           266 CALLS     2137 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6818        .99975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.439        35.025        .10192E-03   -1.4922    
   3  norm          7.2761        7.1130        .74349E-03   -1.5168    
   4  norm          .10000E-03    .66494        .62380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29547        .88117        .11620E-02   -1.5599    
   6  norm          22.155        26.623        .85091E-04   -1.4766    
   7  norm          5.6469        4.1421        .13148E-03   -1.5233    
   8  Prefactor     .10000E-03    10.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.425        29.785        .71479E-04   -1.4586    
  10  Prefactor     .10000E-03    2.6472        .12548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .42054        1.1427        .12688E-03   -1.5578    
  12  norm          13.812        8.9396        .10778E-03   -1.4964    
  13  Prefactor     .10000E-03    25.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.784        6.1127        .90044E-04   -1.4818    
  15  norm          .10000E-03    1.9824        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.717        20.611        .72291E-04   -1.4599    
  17  Prefactor     .10000E-03    9.0770        .22475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0868        .23094        .26698E-03   -.90178    
  19  Prefactor     .86513        .16946        .22321E-03   -.97370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44645e-09
Minuit parameter uncertainties:
  1  3.08194e-07
  2  35.0718
  3  7.1138
  4  1.18634e-06
  5  0.881205
  6  26.6371
  7  4.14236
  8  2.58619e-05
  9  29.7986
  10  2.97306e-06
  11  1.14278
  12  8.94043
  13  1.90518e-05
  14  6.11287
  15  7.59451e-08
  16  20.6153
  17  1.35217e-06
  18  0.231157
  19  0.169561
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.381e+01  8.940e+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:  8.651e-01  1.696e-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.087e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.28e-05

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) = 6237.28594303
delta logL = 0.0186826568879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6237.28493216
delta logL = 0.019693525207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.054       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0969       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86107       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=   6237.285     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      266 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.056        9.2317        .10684E-03   -.81932E-05
   2  alpha         2.0968        .72283        .17668E-01    .41767E-04
   3  Normalizat    1.0950        .22347        .26612E-03    .60450E-04
   4  Prefactor     .86123        .16766        .22366E-03   -.39037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.056
  alpha      = 2.09681
  Normalizat = 1.09502
  Prefactor  = 0.861233
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.285     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.056        9.2207        .42737E-05   -1.4958    
   2  alpha         2.0968        .72171        .35336E-02   -.16199    
   3  Normalizat    1.0950        .22361        .10645E-04   -.89912    
   4  Prefactor     .86123        .16777        .89465E-05   -.97509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12864e-11
Minuit parameter uncertainties:
  1  9.22162
  2  0.732416
  3  0.223802
  4  0.167869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598212': 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) = 6237.2849316
delta logL = 0.0196940851847

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  8.612e-01  1.679e-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.095e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.10 +/- 0.73
Photon Flux (Free Index): 4.78e-08 +/- 4.35e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/598212/cmap_HighResolution_245030401_245289601_4FGL_J0839.8+0105_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='2.04e-05', photon_flux_error='3.47e-08', dlogl='1.97e-02', energy_flux='1.97e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-08-30 02:55:56.882994', photon_index_error2='0.73', photon_index2='2.10', ts='4.18', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.09', time_epoch_completed='1630317356.88', return_code='0', job_id='598212', GAL2='0.86', EG2='1.10', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.35e-08', ts2='4.21', photon_index='2.24' WHERE bin_id='22' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 598212: <4FGL_J0839.8+0105_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin22 129.963 1.0877 245030401 245289601 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 :                                   598.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

