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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin291
RA = 129.963, Dec = 1.0877
tmin = 314755201, tmax = 315014401
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='600814', job_status='RUN', time_executed='2021-08-30 02:53:16.338835', time_epoch_executed='1630317196.34' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600814/ft1_4FGL_J0839.8+0105_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600814/ft2_4FGL_J0839.8+0105_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600814/ft1_4FGL_J0839.8+0105_daily_bin291.fits outfile=/scratch/kocevski/600814/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin291.fits ra=129.963 dec=1.0877 rad=12.0 tmin=314755201.0 tmax=315014401.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.41
user 3.22
sys 1.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600814/ft1_filtered_4FGL_J0839.8+0105_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/600814/ft2_4FGL_J0839.8+0105_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/600814/ltcube_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.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/600814/ft2_4FGL_J0839.8+0105_daily_bin291.fits
.....................!
real 13.23
user 11.75
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600814/ft1_filtered_4FGL_J0839.8+0105_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/600814/ft2_4FGL_J0839.8+0105_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/600814/ltcube_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.fits outfile=/scratch/kocevski/600814/expmap_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.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/600814/ltcube_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.fits
.....................!
real 193.61
user 186.07
sys 6.53

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/600814/ft1_filtered_4FGL_J0839.8+0105_daily_bin291.fits scfile=/scratch/kocevski/600814/ft2_4FGL_J0839.8+0105_daily_bin291.fits outfile=/scratch/kocevski/600814/cmap_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.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.46
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600814/ft1_filtered_4FGL_J0839.8+0105_daily_bin291.fits scfile=/scratch/kocevski/600814/ft2_4FGL_J0839.8+0105_daily_bin291.fits outfile=/scratch/kocevski/600814/cmap_HighResolution_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.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.42
user 0.39
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3710       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5800       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5191       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4389       1.0000         .10000E-03   10000.    
     6 'norm      '    35.526       1.0000         .10000E-03   10000.    
     7 'norm      '    12.655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11363E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8363       1.0000         .10000E-03   10000.    
    11 'norm      '    .43154       1.0000         .10000E-03   10000.    
    12 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.540       1.0000         .10000E-03   10000.    
    14 'norm      '    12.774       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8471       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97423       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97365       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=   5100.781     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1872 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3712        7.3515        .64026E-07   -.42853E-05
   2  Prefactor     12.584        37.259        .21551E-06   -.21505E-06
   3  norm          6.5809        7.9722        .12318E-06   -.88866E-05
   4  norm          3.5194        3.1837        .77888E-07   -.92104E-05
   5  norm          2.4387        2.0276        .58682E-07   -.11661E-04
   6  norm          35.517        30.213       -.20644E-06   -.22758E-04
   7  norm          12.655        6.0666        .31829E-07   -.37746E-04
   8  Prefactor     .10000E-03    17.833       -.12816E-08** at limit **
   9  norm          .10000E-03    27.252        .15721E-07** at limit **
  10  Prefactor     2.8292        23.840        .14188E-05   -.17656E-04
  11  norm          .43069        1.0439        .80442E-06   -.28510E-04
  12  norm          .10000E-03    4.6312        .28401E-06** at limit **
  13  Prefactor     12.465        43.470        .23522E-06   -.19210E-04
  14  norm          12.775        5.8384       -.47031E-08   -.36378E-04
  15  norm          2.2347        7.8276        .14640E-05   -.34011E-04
  16  Prefactor     .10000E-03    13.494        .18130E-06** at limit **
  17  Prefactor     5.8461        4.5463        .12454E-06   -.30311E-04
  18  Normalizat    .97430        .22466       -.74663E-06   -.87250E-04
  19  Prefactor     .97370        .16796       -.89421E-06   -.48609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.3712
  Prefactor  = 12.5844
  norm       = 6.58087
  norm       = 3.51936
  norm       = 2.43869
  norm       = 35.5168
  norm       = 12.6545
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.82915
  norm       = 0.430685
  norm       = 0.0001
  Prefactor  = 12.4648
  norm       = 12.7748
  norm       = 2.23471
  Prefactor  = 0.0001
  Prefactor  = 5.84612
  Normalizat = 0.9743
  Prefactor  = 0.973698
 **********
 **   18 **HESSE 
 **********

 FCN=   5100.781     FROM HESSE     STATUS=OK           278 CALLS     2150 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3712        7.3429        .15902E-03   -1.5203    
   2  Prefactor     12.584        37.120        .11295E-03   -1.4998    
   3  norm          6.5809        7.9663        .15644E-03   -1.5195    
   4  norm          3.5194        3.1756        .11322E-03   -1.5333    
   5  norm          2.4387        2.0174        .86781E-04   -1.5396    
   6  norm          35.517        30.155        .67236E-04   -1.4515    
   7  norm          12.655        6.0636        .11260E-03   -1.4996    
   8  Prefactor     .10000E-03    17.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8292        23.810        .24146E-03   -1.5372    
  11  norm          .43069        1.0429        .10895E-03   -1.5577    
  12  norm          .10000E-03    4.6480        .15001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.465        43.554        .11312E-03   -1.5002    
  14  norm          12.775        5.8308        .11012E-03   -1.4993    
  15  norm          2.2347        7.8214        .27487E-03   -1.5409    
  16  Prefactor     .10000E-03    13.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8461        4.5455        .12916E-03   -1.5224    
  18  Normalizat    .97430        .26154        .28228E-03   -.93896    
  19  Prefactor     .97370        .19457        .21864E-03   -.93611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8551e-11
Minuit parameter uncertainties:
  1  7.34389
  2  37.1886
  3  7.96762
  4  3.17576
  5  2.01747
  6  30.168
  7  6.06391
  8  2.95548e-06
  9  2.39533e-05
  10  16.4234
  11  1.04297
  12  5.70489e-06
  13  43.6649
  14  5.83101
  15  7.82498
  16  3.6881e-06
  17  4.54575
  18  0.261888
  19  0.194707
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  5.705e-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.737e-01  1.947e-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:  9.743e-01  2.619e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600814/likelihoodResults_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.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) = 5100.78242753
delta logL = -0.0010245293397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5100.78140302
delta logL = -1.70275598066e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2429       1.0000          .0000       5.0000    
     3 'Normalizat'    .97430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97372       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=   5100.781     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      223 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    8.7119        .15001E-02** at limit **
   2  alpha         2.2827        3.4314        .16572       -.90822E-06
   3  Normalizat    .97430        .24624        .28227E-03    .11237E-04
   4  Prefactor     .97370        .19178        .21864E-03    .13103E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100065
  alpha      = 2.28269
  Normalizat = 0.974302
  Prefactor  = 0.973698
 **********
 **   18 **HESSE 
 **********

 FCN=   5100.781     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    4.6636        .30003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2827        3.6950        .66288E-02   -.87034E-01
   3  Normalizat    .97430        .24646        .11291E-04   -.93896    
   4  Prefactor     .97370        .19195        .87455E-05   -.93611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32695e-08
Minuit parameter uncertainties:
  1  0.00109949
  2  370.146
  3  0.246749
  4  0.192082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600814': 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) = 5100.78140299
delta logL = 1.4370016288e-08

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.001e-04  1.099e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.283e+00  3.701e+02  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.737e-01  1.921e-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:  9.743e-01  2.467e-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/600814/cmap_HighResolution_314755201_315014401_4FGL_J0839.8+0105_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-08-30 03:02:07.556407', job_id='600814', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630317727.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='291' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 600814: <4FGL_J0839.8+0105_daily_bin291> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin291 129.963 1.0877 314755201 315014401 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 :                                   536.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

