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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin12
RA = 129.963, Dec = 1.0877
tmin = 242438401, tmax = 242697601
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='598198', job_status='RUN', time_executed='2021-08-30 02:46:32.227913', time_epoch_executed='1630316792.23' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598198/ft1_4FGL_J0839.8+0105_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598198/ft2_4FGL_J0839.8+0105_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598198/ft1_4FGL_J0839.8+0105_daily_bin12.fits outfile=/scratch/kocevski/598198/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin12.fits ra=129.963 dec=1.0877 rad=12.0 tmin=242438401.0 tmax=242697601.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 1.73
user 1.27
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598198/ft1_filtered_4FGL_J0839.8+0105_daily_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/598198/ft2_4FGL_J0839.8+0105_daily_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/598198/ltcube_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.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/598198/ft2_4FGL_J0839.8+0105_daily_bin12.fits
.....................!
real 14.09
user 13.32
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598198/ft1_filtered_4FGL_J0839.8+0105_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/598198/ft2_4FGL_J0839.8+0105_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/598198/ltcube_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.fits outfile=/scratch/kocevski/598198/expmap_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.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/598198/ltcube_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.fits
.....................!
real 191.01
user 185.26
sys 5.26

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/598198/ft1_filtered_4FGL_J0839.8+0105_daily_bin12.fits scfile=/scratch/kocevski/598198/ft2_4FGL_J0839.8+0105_daily_bin12.fits outfile=/scratch/kocevski/598198/cmap_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.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 0.75
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598198/ft1_filtered_4FGL_J0839.8+0105_daily_bin12.fits scfile=/scratch/kocevski/598198/ft2_4FGL_J0839.8+0105_daily_bin12.fits outfile=/scratch/kocevski/598198/cmap_HighResolution_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.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 0.76
user 0.38
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.006       1.0000         .10000E-03   10000.    
     4 'norm      '    .19007       1.0000         .10000E-03   10000.    
     5 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.252       1.0000         .10000E-03   10000.    
     9 'norm      '    13.268       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .92497       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0585       1.0000         .10000E-03   10000.    
    15 'norm      '    5.1822       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.369       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3548       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .67595       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=   8505.398     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1882 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2278        5.0370       -.58944E-07   -.48073E-04
   2  Prefactor     .10000E-03    13.494       -.27253E-07** at limit **
   3  norm          18.007        10.538        .17435E-06    .49831E-04
   4  norm          .19008        1.0664        .10696E-05   -.74611E-03
   5  norm          .10000E-03    .41820       -.12283E-06** at limit **
   6  norm          .10000E-03    5.5890        .82117E-06** at limit **
   7  norm          .10000E-03    2.0102        .35063E-07** at limit **
   8  Prefactor     22.250        23.349       -.83646E-06   -.14344E-03
   9  norm          13.261        26.887       -.35384E-05   -.22825E-03
  10  Prefactor     .10000E-03    5.6879       -.88577E-06** at limit **
  11  norm          .92527        .69582        .29811E-07   -.67840E-04
  12  norm          7.2055        5.5990        .31718E-07   -.53858E-04
  13  Prefactor     .10000E-03    8.7905        .14921E-06** at limit **
  14  norm          5.0592        3.1012        .69612E-06   -.12176E-02
  15  norm          5.1829        4.6511       -.18654E-06   -.17560E-03
  16  Prefactor     19.374        18.921        .16337E-05    .30298E-03
  17  Prefactor     .10000E-03    2.0867       -.23780E-07** at limit **
  18  Normalizat    1.3543        .16311       -.60989E-06    .41752E-04
  19  Prefactor     .67630        .12009        .34183E-06   -.65204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22783
  Prefactor  = 0.0001
  norm       = 18.007
  norm       = 0.190077
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.2497
  norm       = 13.2615
  Prefactor  = 0.0001
  norm       = 0.925271
  norm       = 7.20552
  Prefactor  = 0.0001
  norm       = 5.05921
  norm       = 5.18293
  Prefactor  = 19.374
  Prefactor  = 0.0001
  Normalizat = 1.35432
  Prefactor  = 0.676297
 **********
 **   18 **HESSE 
 **********

 FCN=   8505.398     FROM HESSE     STATUS=OK           268 CALLS     2150 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2278        5.0352        .16086E-03   -1.5209    
   2  Prefactor     .10000E-03    13.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.007        10.536        .94388E-04   -1.4859    
   4  norm          .19008        1.1645        .19273E-03   -1.5621    
   5  norm          .10000E-03    .68057        .11477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0704        .25519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.250        23.639        .84912E-04   -1.4764    
   9  norm          13.261        28.049        .10996E-03   -1.4979    
  10  Prefactor     .10000E-03    5.7661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .92527        .69102        .63856E-04   -1.5516    
  12  norm          7.2055        5.5967        .14943E-03   -1.5171    
  13  Prefactor     .10000E-03    8.8107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0592        3.2434        .63555E-03   -1.5258    
  15  norm          5.1829        4.6590        .17659E-03   -1.5253    
  16  Prefactor     19.374        19.380        .91006E-04   -1.4827    
  17  Prefactor     .10000E-03    2.1327        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3543        .19265        .23625E-03   -.81959    
  19  Prefactor     .67630        .14135        .23987E-03   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29978e-09
Minuit parameter uncertainties:
  1  5.0355
  2  1.09293e-06
  3  10.5368
  4  0.940742
  5  1.1399e-05
  6  7.31482e-05
  7  3.61165e-07
  8  23.6489
  9  28.0772
  10  6.99535e-05
  11  0.691024
  12  5.59714
  13  1.56159e-05
  14  3.24349
  15  4.65935
  16  19.3868
  17  2.38203e-06
  18  0.192751
  19  0.141428
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.206e+00  5.597e+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:  6.763e-01  1.414e-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.354e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 8.00e-06

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

Saving results to:
/scratch/kocevski/598198/likelihoodResults_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.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) = 8505.03564541
delta logL = 0.362852459017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8505.02107664
delta logL = 0.377421228401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0968       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6313       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66561       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=   8505.021     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0855        6.9447        .35225E-02    .96384E-04
   2  alpha         1.6287        .62143        .44841       -.31212E-04
   3  Normalizat    1.3713        .15826        .53151E-01    .45474E-05
   4  Prefactor     .66573        .11850        .41942E-01    .26855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.08548
  alpha      = 1.62871
  Normalizat = 1.37126
  Prefactor  = 0.665733
 **********
 **   18 **HESSE 
 **********

 FCN=   8505.021     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0855        6.0542        .14090E-03   -1.5139    
   2  alpha         1.6287        .62792        .20419E-01   -.35599    
   3  Normalizat    1.3713        .18500        .23500E-03   -.81464    
   4  Prefactor     .66573        .13845        .24150E-03   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1938e-12
Minuit parameter uncertainties:
  1  6.0547
  2  0.635687
  3  0.185093
  4  0.138525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598198': 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) = 8505.02106751
delta logL = 0.377430360437

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.085e+00  6.055e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.629e+00  6.357e-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:  6.657e-01  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:  1.371e+00  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.63 +/- 0.64
Photon Flux (Free Index): 1.98e-08 +/- 1.73e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.41e-05

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/598198/cmap_HighResolution_242438401_242697601_4FGL_J0839.8+0105_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='1.57e-05', photon_flux_error='2.17e-08', dlogl='3.77e-01', energy_flux='1.03e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-08-30 02:57:10.372901', photon_index_error2='0.64', photon_index2='1.63', ts='2.73', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='7.73e-08', energy_flux_error2='1.41e-05', EG='1.35', time_epoch_completed='1630317430.37', return_code='0', job_id='598198', GAL2='0.67', EG2='1.37', return_code2='0', energy_flux_error='8.00e-06', photon_flux_error2='1.73e-08', ts2='3.51', photon_index='2.24' WHERE bin_id='12' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 598198: <4FGL_J0839.8+0105_daily_bin12> in cluster <slac> Done

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

Your job looked like:

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

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

