/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 190 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 = 7383
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin540
RA = 129.963, Dec = 1.0877
tmin = 379296001, tmax = 379555201
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='601266', job_status='RUN', time_executed='2021-08-30 02:54:18.447216', time_epoch_executed='1630317258.45' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601266/ft1_4FGL_J0839.8+0105_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601266/ft2_4FGL_J0839.8+0105_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601266/ft1_4FGL_J0839.8+0105_daily_bin540.fits outfile=/scratch/kocevski/601266/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin540.fits ra=129.963 dec=1.0877 rad=12.0 tmin=379296001.0 tmax=379555201.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.08
user 4.36
sys 0.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601266/ft2_4FGL_J0839.8+0105_daily_bin540.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/601266/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin540.fits evtable="EVENTS" outfile="/scratch/kocevski/601266/ft1_filtered_4FGL_J0839.8+0105_daily_bin540.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.05
user 0.35
sys 0.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601266/ft1_filtered_4FGL_J0839.8+0105_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/601266/ft2_4FGL_J0839.8+0105_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/601266/ltcube_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.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/601266/ft2_4FGL_J0839.8+0105_daily_bin540.fits
.....................!
real 12.57
user 11.54
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601266/ft1_filtered_4FGL_J0839.8+0105_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/601266/ft2_4FGL_J0839.8+0105_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/601266/ltcube_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.fits outfile=/scratch/kocevski/601266/expmap_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.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/601266/ltcube_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.fits
.....................!
real 192.59
user 185.51
sys 5.42

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/601266/ft1_filtered_4FGL_J0839.8+0105_daily_bin540.fits scfile=/scratch/kocevski/601266/ft2_4FGL_J0839.8+0105_daily_bin540.fits outfile=/scratch/kocevski/601266/cmap_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.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.14
user 0.38
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601266/ft1_filtered_4FGL_J0839.8+0105_daily_bin540.fits scfile=/scratch/kocevski/601266/ft2_4FGL_J0839.8+0105_daily_bin540.fits outfile=/scratch/kocevski/601266/cmap_HighResolution_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.19
user 0.39
sys 0.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9356       1.0000         .10000E-03   10000.    
     5 'norm      '    .94535       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9870       1.0000         .10000E-03   10000.    
     9 'norm      '    82.274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6959       1.0000         .10000E-03   10000.    
    11 'norm      '    .74333       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10585E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.887       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4339       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80813       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1055       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=   4484.690     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1660 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7972        .15436E-07** at limit **
   2  Prefactor     .10000E-03    16.800        .26095E-05** at limit **
   3  norm          .10000E-03    11.070       -.12975E-05** at limit **
   4  norm          1.9348        2.2624        .43670E-08   -.27246E-04
   5  norm          .94594        1.6336        .89005E-07   -.18939E-04
   6  norm          .10000E-03    26.597       -.32053E-05** at limit **
   7  norm          5.5706        4.6549        .17604E-05    .74987E-03
   8  Prefactor     3.9896        53.237        .36484E-05    .33999E-04
   9  norm          82.271        57.778       -.16335E-05   -.73477E-04
  10  Prefactor     2.6968        9.8151        .49707E-05   -.81844E-03
  11  norm          .74336        .78330       -.93738E-08   -.20188E-03
  12  norm          .10000E-03    5.7896       -.17805E-05** at limit **
  13  Prefactor     .10000E-03    26.216        .14381E-05** at limit **
  14  norm          .10000E-03    3.3053        .16728E-05** at limit **
  15  norm          10.888        7.7927        .10226E-06   -.16236E-03
  16  Prefactor     18.176        20.163       -.12186E-05   -.12100E-03
  17  Prefactor     2.4343        4.5656       -.25653E-05   -.79997E-03
  18  Normalizat    .80776        .22049       -.76930E-06   -.14328E-03
  19  Prefactor     1.1058        .17261        .56883E-07   -.18901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.93478
  norm       = 0.945939
  norm       = 0.000100001
  norm       = 5.57056
  Prefactor  = 3.98963
  norm       = 82.271
  Prefactor  = 2.69683
  norm       = 0.74336
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 10.8878
  Prefactor  = 18.1765
  Prefactor  = 2.43433
  Normalizat = 0.807761
  Prefactor  = 1.10583
 **********
 **   18 **HESSE 
 **********

 FCN=   4484.690     FROM HESSE     STATUS=OK           274 CALLS     1934 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7992        .10938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9348        2.2419        .10441E-03   -1.5430    
   5  norm          .94594        1.4145        .10644E-02   -1.5513    
   6  norm          .10000E-03    27.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5706        4.6975        .12850E-03   -1.5236    
   8  Prefactor     3.9896        53.785        .20199E-03   -1.5308    
   9  norm          82.271        57.702        .44282E-04   -1.3891    
  10  Prefactor     2.6968        19.858        .12406E-02   -1.5380    
  11  norm          .74336        .74287        .58754E-03   -1.5536    
  12  norm          .10000E-03    5.8380        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.0577        .22926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.888        7.7876        .12142E-03   -1.5048    
  16  Prefactor     18.176        20.197        .93937E-04   -1.4855    
  17  Prefactor     2.4343        4.7037        .19321E-03   -1.5396    
  18  Normalizat    .80776        .25890        .28933E-03   -.99781    
  19  Prefactor     1.1058        .20319        .19877E-03   -.89281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22128e-09
Minuit parameter uncertainties:
  1  3.20652e-07
  2  0.000152428
  3  0.000108885
  4  2.24201
  5  1.41453
  6  0.000364941
  7  4.69776
  8  29.3291
  9  57.7412
  10  14.6425
  11  0.742884
  12  7.1954e-05
  13  0.000126477
  14  0.000211605
  15  7.78836
  16  20.2048
  17  4.70444
  18  0.2593
  19  0.203329
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.106e+00  2.033e-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:  8.078e-01  2.593e-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: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601266/likelihoodResults_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.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) = 4484.69087244
delta logL = -0.0008156289814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4484.69005679
delta logL = 2.12794475374e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2555       1.0000          .0000       5.0000    
     3 'Normalizat'    .80777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1058       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4484.617     FROM MIGRAD    STATUS=FAILED       179 CALLS      323 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13899        15.195        .14152E-01    .17830E-02
   2  alpha         5.0000        3.4065        .50000    ** at limit **
   3  Normalizat    .77469        .59172E-01    .28933E-03   -.34028E-04
   4  Prefactor     1.1216        .43714E-01    .19877E-03   -.85482E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4484.617     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      462 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13899        15.195        .13198E-05    .17830E-02
   2  alpha         5.0000        3.4065        .17000E-01** at limit **
   3  Normalizat    .77469        .59172E-01    .40881E-06   -.34028E-04
   4  Prefactor     1.1216        .43714E-01    .25942E-07   -.85482E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4484.617     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      501 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13899        .44436        .57349E-03    .75980E-02
   2  alpha         5.0000        4.9916        .50000    ** at limit **
   3  Normalizat    .77469        .26740        .11573E-04   -.33989E-04
   4  Prefactor     1.1216        .20503        .39755E-04   -.85505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.138994
  alpha      = 5
  Normalizat = 0.774693
  Prefactor  = 1.12157
 **********
 **   18 **HESSE 
 **********

 FCN=   4484.617     FROM HESSE     STATUS=OK            31 CALLS      532 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13899        .41785        .11470E-03   -1.5633    
   2  alpha         5.0000        4.9971        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77469        .26748        .23146E-05   -1.0101    
   4  Prefactor     1.1216        .20497        .79509E-05   -.88780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20128e-11
Minuit parameter uncertainties:
  1  0.417855
  2  0.000176358
  3  0.267937
  4  0.205111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601266': 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) = 4484.61709726
delta logL = 0.0729595534176

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.122e+00  2.051e-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:  7.747e-01  2.679e-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/601266/cmap_HighResolution_379296001_379555201_4FGL_J0839.8+0105_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-08-30 03:02:47.392593', job_id='601266', GAL2='1.12', fit_tolerance='1e-08', EG2='0.77', EG='0.81', time_epoch_completed='1630317767.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='7.30e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='540' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 601266: <4FGL_J0839.8+0105_daily_bin540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin540 129.963 1.0877 379296001 379555201 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 :                                   503.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             264.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

