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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin83
RA = 129.963, Dec = 1.0877
tmin = 260841601, tmax = 261100801
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='598297', job_status='RUN', time_executed='2021-08-30 02:45:56.687035', time_epoch_executed='1630316756.69' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598297/ft1_4FGL_J0839.8+0105_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598297/ft2_4FGL_J0839.8+0105_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598297/ft1_4FGL_J0839.8+0105_daily_bin83.fits outfile=/scratch/kocevski/598297/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin83.fits ra=129.963 dec=1.0877 rad=12.0 tmin=260841601.0 tmax=261100801.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 2.15
user 1.42
sys 0.68

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598297/ft1_filtered_4FGL_J0839.8+0105_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/598297/ft2_4FGL_J0839.8+0105_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/598297/ltcube_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.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/598297/ft2_4FGL_J0839.8+0105_daily_bin83.fits
.....................!
real 13.09
user 12.03
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598297/ft1_filtered_4FGL_J0839.8+0105_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/598297/ft2_4FGL_J0839.8+0105_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/598297/ltcube_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.fits outfile=/scratch/kocevski/598297/expmap_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.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/598297/ltcube_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.fits
.....................!
real 190.97
user 185.68
sys 4.88

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/598297/ft1_filtered_4FGL_J0839.8+0105_daily_bin83.fits scfile=/scratch/kocevski/598297/ft2_4FGL_J0839.8+0105_daily_bin83.fits outfile=/scratch/kocevski/598297/cmap_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.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.22
user 0.36
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598297/ft1_filtered_4FGL_J0839.8+0105_daily_bin83.fits scfile=/scratch/kocevski/598297/ft2_4FGL_J0839.8+0105_daily_bin83.fits outfile=/scratch/kocevski/598297/cmap_HighResolution_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.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.19
user 0.37
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.6701       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6822       1.0000         .10000E-03   10000.    
     6 'norm      '    13.488       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9789       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
     9 'norm      '    .10125E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8532       1.0000         .10000E-03   10000.    
    11 'norm      '    .40327       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.740       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7571       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40956       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0973       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63787       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1788       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.

 FCN=   8851.184     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1942 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0444        .90712E-02** at limit **
   2  Prefactor     4.6703        17.342        .46556E-02    .68768E-03
   3  norm          .10000E-03    3.6858        .90712E-02** at limit **
   4  norm          .10000E-03    .49786        .90712E-02** at limit **
   5  norm          4.6821        1.4052        .46494E-02    .18723E-04
   6  norm          13.488        17.695        .27266E-02    .43644E-03
   7  norm          3.9794        2.6773        .50550E-02    .44910E-02
   8  Prefactor     10.912        29.524        .30312E-02    .57614E-03
   9  norm          .10000E-03    13.542        .13113    ** at limit **
  10  Prefactor     7.8609        10.208        .35771E-02   -.53920E-03
  11  norm          .40330        .54628        .16009E-01    .11154E-02
  12  norm          .10000E-03    9.4497        .90712E-02** at limit **
  13  Prefactor     .10000E-03    6.8342        .90712E-02** at limit **
  14  norm          10.739        4.0513        .30564E-02    .17399E-02
  15  norm          2.7550        4.0743        .61286E-02    .94119E-03
  16  Prefactor     .47840        6.1662        .10896        .38958E-03
  17  Prefactor     4.0978        3.0587        .49791E-02    .24341E-03
  18  Normalizat    .63789        .15753        .71495E-01    .16511E-04
  19  Prefactor     1.1788        .12140        .35151E-01   -.47154E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.67032
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.68209
  norm       = 13.4881
  norm       = 3.97936
  Prefactor  = 10.9119
  norm       = 0.000100001
  Prefactor  = 7.86089
  norm       = 0.403299
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7391
  norm       = 2.75501
  Prefactor  = 0.478395
  Prefactor  = 4.09776
  Normalizat = 0.637893
  Prefactor  = 1.17878
 **********
 **   18 **HESSE 
 **********

 FCN=   8851.184     FROM HESSE     STATUS=OK           280 CALLS     2222 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0449        .93897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6703        17.230        .18622E-03   -1.5276    
   3  norm          .10000E-03    3.7405        .17636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .50530        .64798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6821        1.4038        .59069E-04   -1.5275    
   6  norm          13.488        17.554        .10906E-03   -1.4973    
   7  norm          3.9794        2.6744        .60879E-03   -1.5309    
   8  Prefactor     10.912        29.451        .12125E-03   -1.5047    
   9  norm          .10000E-03    133.20        .67251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8609        10.203        .14309E-03   -1.5147    
  11  norm          .40330        .45650        .77590E-03   -1.5581    
  12  norm          .10000E-03    9.7785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.739        4.0523        .11008E-03   -1.5052    
  15  norm          2.7550        4.0533        .22200E-03   -1.5376    
  16  Prefactor     .47840        36.201        .45243E-02   -1.5570    
  17  Prefactor     4.0978        3.0554        .13686E-03   -1.5303    
  18  Normalizat    .63789        .17799        .31646E-03   -1.0640    
  19  Prefactor     1.1788        .13847        .19114E-03   -.86987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51388e-08
Minuit parameter uncertainties:
  1  6.13768e-06
  2  17.2478
  3  8.16512e-06
  4  1.67348e-07
  5  1.40382
  6  17.5606
  7  2.67448
  8  29.4902
  9  0.00086392
  10  10.2049
  11  0.456502
  12  8.59167e-05
  13  5.46579e-06
  14  4.05242
  15  4.05372
  16  8.32741
  17  3.0555
  18  0.178146
  19  0.138511
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.179e+00  1.385e-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:  6.379e-01  1.781e-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: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598297/likelihoodResults_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.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) = 8851.18457589
delta logL = -0.000488185141876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8851.18408763
delta logL = 7.22247932572e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2898       1.0000          .0000       5.0000    
     3 'Normalizat'    .63774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1789       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=   8850.044     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      346 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44031        .78199        .35520E-02    .10809E-02
   2  alpha         5.0000        4.1036        .50000    ** at limit **
   3  Normalizat    .52983        .18516        .31646E-02    .11188E-03
   4  Prefactor     1.2297        .14220        .19114E-03    .23843E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.440312
  alpha      = 5
  Normalizat = 0.529829
  Prefactor  = 1.22969
 **********
 **   18 **HESSE 
 **********

 FCN=   8850.044     FROM HESSE     STATUS=OK            31 CALLS      377 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44031        .32353        .40332E-04   -1.5575    
   2  alpha         5.0000        3.2673        .65241E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52983        .18419        .12658E-03   -1.1105    
   4  Prefactor     1.2297        .14203        .38229E-04   -.85422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61953e-11
Minuit parameter uncertainties:
  1  0.323527
  2  1.86915e-05
  3  0.184403
  4  0.142078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598297': 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) = 8850.04447016
delta logL = 1.13961754461

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.230e+00  1.421e-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:  5.298e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 129.963 1.088
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.64e-08 +/- 5.59e-08
Energy Flux (Free Index): 1.06e-05 +/- 7.80e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/598297/cmap_HighResolution_260841601_261100801_4FGL_J0839.8+0105_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.14e+00', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-08-30 02:57:07.572059', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='5.85e-08', energy_flux_error2='7.80e-06', EG='0.64', time_epoch_completed='1630317427.57', return_code='0', job_id='598297', GAL2='1.23', EG2='0.53', return_code2='0', photon_flux_error2='5.59e-08', ts2='2.62', photon_index='2.24' WHERE bin_id='83' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 598297: <4FGL_J0839.8+0105_daily_bin83> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin83 129.963 1.0877 260841601 261100801 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 :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            697 sec.

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

