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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin967
RA = 129.963, Dec = 1.0877
tmin = 489974401, tmax = 490233601
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='605075', job_status='RUN', time_executed='2021-08-30 03:06:08.707694', time_epoch_executed='1630317968.71' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605075

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605075/ft1_4FGL_J0839.8+0105_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605075/ft2_4FGL_J0839.8+0105_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605075/ft1_4FGL_J0839.8+0105_daily_bin967.fits outfile=/scratch/kocevski/605075/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin967.fits ra=129.963 dec=1.0877 rad=12.0 tmin=489974401.0 tmax=490233601.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 8.06
user 3.51
sys 4.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605075/ft1_filtered_4FGL_J0839.8+0105_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/605075/ft2_4FGL_J0839.8+0105_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/605075/ltcube_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.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/605075/ft2_4FGL_J0839.8+0105_daily_bin967.fits
.....................!
real 17.91
user 12.51
sys 5.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605075/ft1_filtered_4FGL_J0839.8+0105_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/605075/ft2_4FGL_J0839.8+0105_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/605075/ltcube_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.fits outfile=/scratch/kocevski/605075/expmap_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.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/605075/ltcube_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.fits
.....................!
real 197.62
user 186.09
sys 9.94

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/605075/ft1_filtered_4FGL_J0839.8+0105_daily_bin967.fits scfile=/scratch/kocevski/605075/ft2_4FGL_J0839.8+0105_daily_bin967.fits outfile=/scratch/kocevski/605075/cmap_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.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.73
user 0.38
sys 4.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605075/ft1_filtered_4FGL_J0839.8+0105_daily_bin967.fits scfile=/scratch/kocevski/605075/ft2_4FGL_J0839.8+0105_daily_bin967.fits outfile=/scratch/kocevski/605075/cmap_HighResolution_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.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.72
user 0.38
sys 4.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5534       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.969       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2875       1.0000         .10000E-03   10000.    
     5 'norm      '    .14250E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .38099E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.500       1.0000         .10000E-03   10000.    
     9 'norm      '    40.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.883       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4639       1.0000         .10000E-03   10000.    
    12 'norm      '    10.369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2430       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6953       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .76577       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99622       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=   4882.894     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1889 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5523        9.2238        .88040E-06   -.39106E-04
   2  Prefactor     14.937        32.595        .27878E-05    .28590E-04
   3  norm          .10000E-03    4.0121        .28710E-07** at limit **
   4  norm          1.2896        2.2222        .20759E-06   -.12131E-03
   5  norm          .10000E-03    1.4341        .68490E-06** at limit **
   6  norm          .10000E-03    61.285       -.48031E-05** at limit **
   7  norm          14.371        5.6588       -.11227E-07    .12696E-04
   8  Prefactor     42.489        41.862        .29714E-06    .19575E-04
   9  norm          40.498        49.426       -.28247E-05   -.26815E-04
  10  Prefactor     22.864        17.269       -.17602E-06    .84157E-05
  11  norm          2.4638        1.3335       -.56862E-08    .23085E-05
  12  norm          10.369        9.4890        .10384E-06   -.14308E-05
  13  Prefactor     .10000E-03    15.216        .63039E-07** at limit **
  14  norm          .10000E-03    2.8346       -.35826E-08** at limit **
  15  norm          2.2437        5.3917       -.19820E-07   -.12825E-05
  16  Prefactor     .10000E-03    9.4742       -.50286E-07** at limit **
  17  Prefactor     2.6944        4.4693        .49023E-07   -.16561E-05
  18  Normalizat    .76550        .21755        .20285E-05   -.51806E-04
  19  Prefactor     .99645        .16643       -.14965E-05   -.70415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55229
  Prefactor  = 14.9373
  norm       = 0.0001
  norm       = 1.2896
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 14.3712
  Prefactor  = 42.4894
  norm       = 40.4976
  Prefactor  = 22.8637
  norm       = 2.46384
  norm       = 10.369
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.24374
  Prefactor  = 0.0001
  Prefactor  = 2.69441
  Normalizat = 0.765501
  Prefactor  = 0.996453
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.894     FROM HESSE     STATUS=OK           274 CALLS     2163 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5523        9.4697        .10721E-02   -1.5331    
   2  Prefactor     14.937        33.093        .10352E-03   -1.4935    
   3  norm          .10000E-03    4.0183        .13669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2896        2.1626        .12933E-03   -1.5481    
   5  norm          .10000E-03    2.6743        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    65.121        .42572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.371        5.6573        .10038E-03   -1.4950    
   8  Prefactor     42.489        41.964        .61492E-04   -1.4403    
   9  norm          40.498        49.656        .63025E-04   -1.4434    
  10  Prefactor     22.864        17.290        .83735E-04   -1.4751    
  11  norm          2.4638        1.3311        .56323E-04   -1.5394    
  12  norm          10.369        9.4940        .62215E-03   -1.5064    
  13  Prefactor     .10000E-03    15.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9029        .22957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2437        5.3679        .24184E-03   -1.5408    
  16  Prefactor     .10000E-03    9.4813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6944        4.4594        .18184E-03   -1.5380    
  18  Normalizat    .76550        .24502        .29917E-03   -1.0136    
  19  Prefactor     .99645        .18637        .20213E-03   -.92848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15099e-10
Minuit parameter uncertainties:
  1  9.47372
  2  33.1333
  3  3.2079e-08
  4  2.16277
  5  6.74595e-05
  6  0.000724209
  7  5.65755
  8  41.9932
  9  49.7069
  10  17.294
  11  1.33107
  12  9.49533
  13  1.38382e-06
  14  2.07792e-06
  15  5.36904
  16  3.82328e-07
  17  4.45991
  18  0.245376
  19  0.18649
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.965e-01  1.865e-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:  7.655e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.36e-05

TS (Fixed Index): 2.06
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605075/likelihoodResults_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.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) = 4882.87747581
delta logL = 0.0169226320368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4882.87659305
delta logL = 0.0178053985001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.167       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4410       1.0000          .0000       5.0000    
     3 'Normalizat'    .75549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0009       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.

 FCN=   4882.877     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      276 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.171        9.5009        .62833E-03   -.31844E-04
   2  alpha         2.4404        1.0504        .20885E-01   -.21931E-05
   3  Normalizat    .75550        .24157        .30096E-03   -.31504E-04
   4  Prefactor     1.0009        .18157        .20173E-03   -.10181E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1707
  alpha      = 2.44035
  Normalizat = 0.755499
  Prefactor  = 1.00085
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.877     FROM HESSE     STATUS=OK            27 CALLS      303 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.171        9.3309        .25133E-04   -1.5070    
   2  alpha         2.4404        1.0308        .83541E-03   -.23861E-01
   3  Normalizat    .75550        .24133        .12038E-04   -1.0174    
   4  Prefactor     1.0009        .18149        .40346E-04   -.92701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9195e-11
Minuit parameter uncertainties:
  1  9.33223
  2  1.06256
  3  0.241671
  4  0.181599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605075': 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) = 4882.87659261
delta logL = 0.0178058301963

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.001e+00  1.816e-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:  7.555e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.44 +/- 1.06
Photon Flux (Free Index): 4.84e-08 +/- 6.11e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.33e-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/605075/cmap_HighResolution_489974401_490233601_4FGL_J0839.8+0105_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.50e-05', photon_flux_error='3.69e-08', dlogl='1.78e-02', energy_flux='1.48e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2021-08-30 03:15:39.925853', photon_index_error2='1.06', photon_index2='2.44', ts='2.06', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.33e-05', EG='0.77', time_epoch_completed='1630318539.93', return_code='0', job_id='605075', GAL2='1.00', EG2='0.76', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.11e-08', ts2='2.09', photon_index='2.24' WHERE bin_id='967' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:15:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 605075: <4FGL_J0839.8+0105_daily_bin967> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin967> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:53 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:00:54 2021
Terminated at Mon Aug 30 03:15:41 2021
Results reported at Mon Aug 30 03:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin967 129.963 1.0877 489974401 490233601 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 :                                   632.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             210.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

