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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin131
RA = 129.963, Dec = 1.0877
tmin = 273283201, tmax = 273542401
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='598371', job_status='RUN', time_executed='2021-08-30 02:48:49.522926', time_epoch_executed='1630316929.52' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598371/ft1_4FGL_J0839.8+0105_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598371/ft2_4FGL_J0839.8+0105_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598371/ft1_4FGL_J0839.8+0105_daily_bin131.fits outfile=/scratch/kocevski/598371/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin131.fits ra=129.963 dec=1.0877 rad=12.0 tmin=273283201.0 tmax=273542401.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 3.05
user 1.50
sys 1.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598371/ft1_filtered_4FGL_J0839.8+0105_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/598371/ft2_4FGL_J0839.8+0105_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/598371/ltcube_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.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/598371/ft2_4FGL_J0839.8+0105_daily_bin131.fits
.....................!
real 13.64
user 11.99
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598371/ft1_filtered_4FGL_J0839.8+0105_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/598371/ft2_4FGL_J0839.8+0105_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/598371/ltcube_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.fits outfile=/scratch/kocevski/598371/expmap_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.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/598371/ltcube_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.fits
.....................!
real 193.37
user 185.45
sys 5.54

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/598371/ft1_filtered_4FGL_J0839.8+0105_daily_bin131.fits scfile=/scratch/kocevski/598371/ft2_4FGL_J0839.8+0105_daily_bin131.fits outfile=/scratch/kocevski/598371/cmap_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.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.66
user 0.38
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598371/ft1_filtered_4FGL_J0839.8+0105_daily_bin131.fits scfile=/scratch/kocevski/598371/ft2_4FGL_J0839.8+0105_daily_bin131.fits outfile=/scratch/kocevski/598371/cmap_HighResolution_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.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.68
user 0.38
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27418E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11048E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5683       1.0000         .10000E-03   10000.    
     6 'norm      '    .95220       1.0000         .10000E-03   10000.    
     7 'norm      '    5.2066       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.978       1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4359       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.1593       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.796       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29247E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0478       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83617       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=   5590.909     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1951 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5264        .56903E-01** at limit **
   2  Prefactor     .10000E-03    21.709        .90712E-02** at limit **
   3  norm          .10000E-03    17.604        .90712E-02** at limit **
   4  norm          .10000E-03    2.5550        .90712E-02** at limit **
   5  norm          5.5688        2.1072        .42563E-02    .26113E-03
   6  norm          .91181        14.822        .12996       -.57948E-04
   7  norm          5.2056        3.4101        .44042E-02    .74856E-04
   8  Prefactor     31.969        28.827        .17714E-02   -.78169E-04
   9  norm          .10000E-03    9.5760        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.3897        .90712E-02** at limit **
  11  norm          1.4355        1.0622        .90061E-02    .15728E-03
  12  norm          4.6876        5.7378        .46477E-02    .13065E-03
  13  Prefactor     .10000E-03    12.358        .90712E-02** at limit **
  14  norm          8.1591        4.4899        .35089E-02    .18755E-02
  15  norm          4.8763        6.4877        .45523E-02    .89905E-03
  16  Prefactor     23.779        24.530        .20529E-02   -.23474E-03
  17  Prefactor     .10001E-03    1.7101        .58930E-01** at limit **
  18  Normalizat    1.0478        .19296        .58337E-01    .65750E-04
  19  Prefactor     .83626        .14338        .44186E-01    .79186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.56875
  norm       = 0.911807
  norm       = 5.20555
  Prefactor  = 31.9688
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43552
  norm       = 4.68763
  Prefactor  = 0.0001
  norm       = 8.15907
  norm       = 4.87626
  Prefactor  = 23.7788
  Prefactor  = 0.000100007
  Normalizat = 1.04778
  Prefactor  = 0.836264
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.909     FROM HESSE     STATUS=OK           290 CALLS     2241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7044        .54808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6538        .23242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5688        2.1039        .63845E-04   -1.5236    
   6  norm          .91181        119.65        .52481E-02   -1.5517    
   7  norm          5.2056        3.4082        .10823E-03   -1.5252    
   8  Prefactor     31.969        29.313        .70857E-04   -1.4577    
   9  norm          .10000E-03    9.5772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4033        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4355        1.0534        .63019E-04   -1.5468    
  12  norm          4.6876        5.7333        .18591E-03   -1.5275    
  13  Prefactor     .10000E-03    12.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.1591        4.4946        .56058E-03   -1.5137    
  15  norm          4.8763        6.4780        .18209E-03   -1.5266    
  16  Prefactor     23.779        24.548        .82115E-04   -1.4732    
  17  Prefactor     .10001E-03    3.1090        .35479E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0478        .22720        .25798E-03   -.91446    
  19  Prefactor     .83626        .16892        .21743E-03   -.98405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43829e-09
Minuit parameter uncertainties:
  1  3.26684e-05
  2  4.78712e-05
  3  1.95527e-05
  4  1.06523e-05
  5  2.1039
  6  20.932
  7  3.40831
  8  29.3266
  9  2.96558e-05
  10  4.20379e-07
  11  1.05338
  12  5.734
  13  1.31442e-05
  14  4.49481
  15  6.47898
  16  24.5585
  17  0.000292259
  18  0.227413
  19  0.169026
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  8.363e-01  1.690e-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.048e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.82e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 6.70e-06 +/- 8.19e-06

TS (Fixed Index): 1.46
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598371/likelihoodResults_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.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) = 5590.13433312
delta logL = 0.77417004066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.0626427
delta logL = 0.845860451646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75426       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9556       1.0000          .0000       5.0000    
     3 'Normalizat'    .90119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91100       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=   5590.063     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      329 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74160        .62607        .83886E-02    .11464E-02
   2  alpha         4.9680        1.1020        .47368       -.88695E-04
   3  Normalizat    .90103        .20173        .44917E-01   -.32473E-04
   4  Prefactor     .91133        .14777        .45145E-01   -.66296E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.741596
  alpha      = 4.968
  Normalizat = 0.901026
  Prefactor  = 0.91133
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.063     FROM HESSE     STATUS=OK            33 CALLS      362 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74160        .83436        .37772E-04   -1.5536    
   2  alpha         4.9680        4.2290        .54576E-01    1.4106    
   3  Normalizat    .90103        .23465        .27542E-03   -.96424    
   4  Prefactor     .91133        .17332        .20927E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16548e-10
Minuit parameter uncertainties:
  1  0.834372
  2  0.724763
  3  0.234912
  4  0.173426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598371': 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) = 5590.0626224
delta logL = 0.845880756323

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.416e-01  8.344e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  4.968e+00  7.248e-01  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.113e-01  1.734e-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.010e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 129.963 1.088
Photon Index (Free Index): 4.97 +/- 0.72
Photon Flux (Free Index): 1.22e-07 +/- 8.24e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/598371/cmap_HighResolution_273283201_273542401_4FGL_J0839.8+0105_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', photon_flux='1.82e-08', energy_flux2='1.71e-05', photon_flux_error='2.23e-08', dlogl='8.46e-01', energy_flux='6.70e-06', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-08-30 02:57:54.618675', photon_index_error2='0.72', photon_index2='4.97', ts='1.46', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.47e-08', energy_flux_error2='1.12e-05', EG='1.05', time_epoch_completed='1630317474.62', return_code='0', job_id='598371', GAL2='0.91', EG2='0.90', return_code2='0', energy_flux_error='8.19e-06', photon_flux_error2='8.24e-08', ts2='3.50', photon_index='2.24' WHERE bin_id='131' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:57:54 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin131 129.963 1.0877 273283201 273542401 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 :                                   559.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             239.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

