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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin110
RA = 129.963, Dec = 1.0877
tmin = 267840001, tmax = 268099201
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='598336', job_status='RUN', time_executed='2021-08-30 02:51:06.265346', time_epoch_executed='1630317066.27' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598336/ft1_4FGL_J0839.8+0105_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598336/ft2_4FGL_J0839.8+0105_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598336/ft1_4FGL_J0839.8+0105_daily_bin110.fits outfile=/scratch/kocevski/598336/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin110.fits ra=129.963 dec=1.0877 rad=12.0 tmin=267840001.0 tmax=268099201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.71
user 1.27
sys 4.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598336/ft2_4FGL_J0839.8+0105_daily_bin110.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/598336/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin110.fits evtable="EVENTS" outfile="/scratch/kocevski/598336/ft1_filtered_4FGL_J0839.8+0105_daily_bin110.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.76
user 0.32
sys 4.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598336/ft1_filtered_4FGL_J0839.8+0105_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/598336/ft2_4FGL_J0839.8+0105_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/598336/ltcube_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.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/598336/ft2_4FGL_J0839.8+0105_daily_bin110.fits
.....................!
real 17.61
user 12.49
sys 5.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598336/ft1_filtered_4FGL_J0839.8+0105_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/598336/ft2_4FGL_J0839.8+0105_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/598336/ltcube_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.fits outfile=/scratch/kocevski/598336/expmap_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.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/598336/ltcube_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.fits
.....................!
real 198.26
user 186.61
sys 10.70

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/598336/ft1_filtered_4FGL_J0839.8+0105_daily_bin110.fits scfile=/scratch/kocevski/598336/ft2_4FGL_J0839.8+0105_daily_bin110.fits outfile=/scratch/kocevski/598336/cmap_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.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.64
user 0.37
sys 4.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598336/ft1_filtered_4FGL_J0839.8+0105_daily_bin110.fits scfile=/scratch/kocevski/598336/ft2_4FGL_J0839.8+0105_daily_bin110.fits outfile=/scratch/kocevski/598336/cmap_HighResolution_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.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.64
user 0.36
sys 4.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0623       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.870       1.0000         .10000E-03   10000.    
     3 'norm      '    8.5030       1.0000         .10000E-03   10000.    
     4 'norm      '    .91574       1.0000         .10000E-03   10000.    
     5 'norm      '    8.6668       1.0000         .10000E-03   10000.    
     6 'norm      '    13.716       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    35.466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3380       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9070       1.0000         .10000E-03   10000.    
    12 'norm      '    .75268E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7709       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5981       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2877       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80939       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.

 FCN=   6973.088     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1928 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0622        7.8850         .0000       -.51334E-03
   2  Prefactor     26.870        31.642         .0000       -.13572E-03
   3  norm          8.5034        9.2531         .0000        .14436E-02
   4  norm          .91606        2.0607         .0000        .11978E-02
   5  norm          8.6667        2.2308         .0000        .58805E-04
   6  norm          13.717        16.614         .0000        .33529E-03
   7  norm          .10000E-03    1.1275         .0000    ** at limit **
   8  Prefactor     .10000E-03    14.041         .0000    ** at limit **
   9  norm          35.466        28.698         .0000       -.26511E-03
  10  Prefactor     2.3401        16.955         .0000        .77423E-03
  11  norm          2.9071        1.1668         .0000        .19730E-03
  12  norm          .10011E-03    5.2170         .0000    ** at limit **
  13  Prefactor     .10001E-03    60.803         .0000    ** at limit **
  14  norm          6.7712        5.2679         .0000        .19953E-02
  15  norm          1.5973        6.3667         .0000        .12113E-02
  16  Prefactor     1.3359        32.591         .0000        .50881E-02
  17  Prefactor     .10000E-03    1.7441         .0000    ** at limit **
  18  Normalizat    1.2877        .19501         .0000        .26805E-04
  19  Prefactor     .80930        .14412         .0000        .30995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06222
  Prefactor  = 26.8702
  norm       = 8.50342
  norm       = 0.916065
  norm       = 8.66671
  norm       = 13.7173
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 35.4661
  Prefactor  = 2.34014
  norm       = 2.90705
  norm       = 0.000100107
  Prefactor  = 0.000100006
  norm       = 6.77119
  norm       = 1.59732
  Prefactor  = 1.33594
  Prefactor  = 0.0001
  Normalizat = 1.28773
  Prefactor  = 0.809298
 **********
 **   18 **HESSE 
 **********

 FCN=   6973.088     FROM HESSE     STATUS=OK           282 CALLS     2210 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0622        7.8401        .16307E-03   -1.5215    
   2  Prefactor     26.870        31.632        .77284E-04   -1.4671    
   3  norm          8.5034        9.2440        .68736E-03   -1.5125    
   4  norm          .91606        1.9961        .16701E-03   -1.5517    
   5  norm          8.6667        2.2179        .59159E-04   -1.5119    
   6  norm          13.717        16.597        .10815E-03   -1.4967    
   7  norm          .10000E-03    1.1313        .86571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          35.466        28.713        .67293E-04   -1.4516    
  10  Prefactor     2.3401        16.968        .26816E-03   -1.5402    
  11  norm          2.9071        1.1668        .54536E-04   -1.5367    
  12  norm          .10011E-03    5.6295        .58569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    62.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7712        5.2758        .15420E-03   -1.5187    
  15  norm          1.5973        6.3413        .33544E-03   -1.5455    
  16  Prefactor     1.3359        32.886        .18962E-02   -1.5477    
  17  Prefactor     .10000E-03    1.7642        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2877        .23047        .26331E-03   -.83933    
  19  Prefactor     .80930        .16941        .24264E-03   -.99386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85306e-09
Minuit parameter uncertainties:
  1  7.84141
  2  31.6521
  3  9.24556
  4  1.99624
  5  2.21788
  6  16.6025
  7  9.02027e-07
  8  7.85268e-06
  9  28.7245
  10  12.6075
  11  1.16686
  12  0.00155193
  13  0.00125954
  14  5.2762
  15  6.34393
  16  13.2642
  17  1.5841e-07
  18  0.230654
  19  0.169519
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.001e-04  1.552e-03  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.093e-01  1.695e-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.288e+00  2.307e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598336/likelihoodResults_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.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) = 6973.08761309
delta logL = -5.98107653786e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6973.08757932
delta logL = -2.60468941633e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13761E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0209       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80918       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=   6973.088     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      320 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    31.380        .59221E-01** at limit **
   2  alpha         1.9988        2.5274        .16860        .59339E-08
   3  Normalizat    1.2877        .11221E-01    .26331E-03    .34109E-04
   4  Prefactor     .80930        .84555E-02    .24264E-03    .73045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100021
  alpha      = 1.99882
  Normalizat = 1.28773
  Prefactor  = 0.809299
 **********
 **   18 **HESSE 
 **********

 FCN=   6973.088     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    350.38        .61194E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9988        3.4055        .67439E-02   -.20184    
   3  Normalizat    1.2877        .43513E-01    .10532E-04   -.83933    
   4  Prefactor     .80930        .33367E-01    .97057E-05   -.99386    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0153e-11
Minuit parameter uncertainties:
  1  0.0054496
  2  1989.5
  3  0.0435139
  4  0.0333678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598336': 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): 102
logL (Free Index) = 6973.08755283
delta logL = 4.44961187895e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  5.450e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.999e+00  1.990e+03  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.093e-01  3.337e-02  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.288e+00  4.351e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/598336/cmap_HighResolution_267840001_268099201_4FGL_J0839.8+0105_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-08-30 03:02:04.996143', job_id='598336', GAL2='0.81', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630317725.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='110' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 598336: <4FGL_J0839.8+0105_daily_bin110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin110 129.963 1.0877 267840001 268099201 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 :                                   718.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             262.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

