/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 230 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 = 7317
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin410
RA = 129.963, Dec = 1.0877
tmin = 345600001, tmax = 345859201
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='601077', job_status='RUN', time_executed='2021-08-30 02:54:52.758543', time_epoch_executed='1630317292.76' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601077/ft1_4FGL_J0839.8+0105_daily_bin410.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601077/ft2_4FGL_J0839.8+0105_daily_bin410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601077/ft1_4FGL_J0839.8+0105_daily_bin410.fits outfile=/scratch/kocevski/601077/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin410.fits ra=129.963 dec=1.0877 rad=12.0 tmin=345600001.0 tmax=345859201.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.43
user 3.07
sys 1.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601077/ft2_4FGL_J0839.8+0105_daily_bin410.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/601077/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin410.fits evtable="EVENTS" outfile="/scratch/kocevski/601077/ft1_filtered_4FGL_J0839.8+0105_daily_bin410.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.65
user 0.33
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601077/ft1_filtered_4FGL_J0839.8+0105_daily_bin410.fits" evtable="EVENTS" scfile=/scratch/kocevski/601077/ft2_4FGL_J0839.8+0105_daily_bin410.fits sctable="SC_DATA" outfile=/scratch/kocevski/601077/ltcube_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.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/601077/ft2_4FGL_J0839.8+0105_daily_bin410.fits
.....................!
real 13.07
user 11.43
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601077/ft1_filtered_4FGL_J0839.8+0105_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/601077/ft2_4FGL_J0839.8+0105_daily_bin410.fits sctable="SC_DATA" expcube=/scratch/kocevski/601077/ltcube_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.fits outfile=/scratch/kocevski/601077/expmap_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.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/601077/ltcube_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.fits
.....................!
real 191.58
user 184.92
sys 5.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/601077/ft1_filtered_4FGL_J0839.8+0105_daily_bin410.fits scfile=/scratch/kocevski/601077/ft2_4FGL_J0839.8+0105_daily_bin410.fits outfile=/scratch/kocevski/601077/cmap_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.71
user 0.36
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601077/ft1_filtered_4FGL_J0839.8+0105_daily_bin410.fits scfile=/scratch/kocevski/601077/ft2_4FGL_J0839.8+0105_daily_bin410.fits outfile=/scratch/kocevski/601077/cmap_HighResolution_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.79
user 0.38
sys 1.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10340E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.4129       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    53.536       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.128       1.0000         .10000E-03   10000.    
     9 'norm      '    13.809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3777       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0628       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49749E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1087       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91442       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=   6428.550     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1924 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9987        .12023E-06** at limit **
   2  Prefactor     .10000E-03    11.886       -.14823E-06** at limit **
   3  norm          6.4125        7.3147       -.63389E-07    .36909E-04
   4  norm          .10000E-03    .68337        .96776E-09** at limit **
   5  norm          .10000E-03    .55897       -.19314E-07** at limit **
   6  norm          53.537        28.093        .41847E-06   -.10029E-03
   7  norm          3.5153        5.1114       -.25604E-05    .13314E-03
   8  Prefactor     69.132        47.218        .37817E-05   -.29624E-03
   9  norm          13.809        14.853        .16849E-07    .50506E-05
  10  Prefactor     11.151        14.764       -.11262E-05    .44238E-04
  11  norm          2.3785        1.3502       -.53364E-07   -.37158E-03
  12  norm          .10000E-03    4.2708        .17889E-06** at limit **
  13  Prefactor     .10000E-03    13.782        .77596E-06** at limit **
  14  norm          4.0639        4.1896       -.84394E-06    .60288E-04
  15  norm          1.3936        5.0415       -.34978E-05   -.82308E-03
  16  Prefactor     12.505        23.065        .51564E-05   -.23644E-03
  17  Prefactor     .10001E-03    1.9632        .99863E-07** at limit **
  18  Normalizat    1.1079        .20735       -.35790E-06    .10186E-03
  19  Prefactor     .91498        .14866        .86943E-06    .16484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.41247
  norm       = 0.0001
  norm       = 0.0001
  norm       = 53.5372
  norm       = 3.51529
  Prefactor  = 69.1324
  norm       = 13.8091
  Prefactor  = 11.151
  norm       = 2.37847
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06387
  norm       = 1.39364
  Prefactor  = 12.5055
  Prefactor  = 0.000100009
  Normalizat = 1.10794
  Prefactor  = 0.914983
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.550     FROM HESSE     STATUS=OK           282 CALLS     2206 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0015        .11069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.4125        7.3091        .15849E-03   -1.5201    
   4  norm          .10000E-03    1.0181        .12905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .58584        .11694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          53.537        28.080        .54818E-04   -1.4243    
   7  norm          3.5153        5.1885        .20799E-03   -1.5333    
   8  Prefactor     69.132        46.430        .48278E-04   -1.4043    
   9  norm          13.809        14.854        .10779E-03   -1.4965    
  10  Prefactor     11.151        14.775        .12000E-03   -1.5040    
  11  norm          2.3785        1.3499        .65906E-04   -1.5400    
  12  norm          .10000E-03    4.2918        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0639        4.1891        .15860E-03   -1.5305    
  15  norm          1.3936        5.8821        .36797E-03   -1.5472    
  16  Prefactor     12.505        22.861        .11330E-03   -1.5001    
  17  Prefactor     .10001E-03    3.8144        .39175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1079        .25260        .27550E-03   -.89497    
  19  Prefactor     .91498        .18030        .22271E-03   -.95619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22563e-09
Minuit parameter uncertainties:
  1  3.9061e-06
  2  1.41518e-05
  3  7.31008
  4  2.64771e-06
  5  7.03995e-07
  6  28.087
  7  5.18918
  8  46.4547
  9  14.8575
  10  14.7797
  11  1.34994
  12  8.97305e-06
  13  7.28586e-05
  14  4.18937
  15  5.72703
  16  22.8774
  17  0.00036978
  18  0.25288
  19  0.180414
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.150e-01  1.804e-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.108e+00  2.529e-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: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601077/likelihoodResults_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.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): 102
logL (Free Index) = 6428.55087952
delta logL = -0.00110971794311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6428.3366467
delta logL = 0.213123099981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28653       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94915       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=   6428.337     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      334 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28656        .46649        .59835E-04   -.72200E-04
   2  alpha         5.0000        3.8809        .10790    ** at limit **
   3  Normalizat    1.0377        .26102        .28363E-03   -.11864E-04
   4  Prefactor     .94917        .18594        .21914E-03   -.88712E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.286564
  alpha      = 5
  Normalizat = 1.03766
  Prefactor  = 0.949166
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.337     FROM HESSE     STATUS=OK            23 CALLS      357 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28656        .45943        .23934E-05   -1.5601    
   2  alpha         5.0000        3.8819        .43159E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0377        .26121        .11345E-04   -.91779    
   4  Prefactor     .94917        .18612        .87657E-05   -.94444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6784e-13
Minuit parameter uncertainties:
  1  0.459432
  2  1.48448e-06
  3  0.261535
  4  0.186243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601077': 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) = 6428.33664647
delta logL = 0.213123329251

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.866e-01  4.594e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  1.484e-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.492e-01  1.862e-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.038e+00  2.615e-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/601077/cmap_HighResolution_345600001_345859201_4FGL_J0839.8+0105_daily_bin410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-08-30 03:04:30.877387', job_id='601077', GAL2='0.95', fit_tolerance='1e-08', EG2='1.04', EG='1.11', time_epoch_completed='1630317870.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.13e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='410' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:04:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 601077: <4FGL_J0839.8+0105_daily_bin410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin410 129.963 1.0877 345600001 345859201 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 :                                   594.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

