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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin706
RA = 129.963, Dec = 1.0877
tmin = 422323201, tmax = 422582401
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='603190', job_status='RUN', time_executed='2021-08-30 02:59:00.404977', time_epoch_executed='1630317540.41' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603190/ft1_4FGL_J0839.8+0105_daily_bin706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603190/ft2_4FGL_J0839.8+0105_daily_bin706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603190/ft1_4FGL_J0839.8+0105_daily_bin706.fits outfile=/scratch/kocevski/603190/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin706.fits ra=129.963 dec=1.0877 rad=12.0 tmin=422323201.0 tmax=422582401.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.88
user 3.27
sys 1.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603190/ft1_filtered_4FGL_J0839.8+0105_daily_bin706.fits" evtable="EVENTS" scfile=/scratch/kocevski/603190/ft2_4FGL_J0839.8+0105_daily_bin706.fits sctable="SC_DATA" outfile=/scratch/kocevski/603190/ltcube_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.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/603190/ft2_4FGL_J0839.8+0105_daily_bin706.fits
.....................!
real 13.54
user 11.55
sys 1.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603190/ft1_filtered_4FGL_J0839.8+0105_daily_bin706.fits evtable="EVENTS" scfile=/scratch/kocevski/603190/ft2_4FGL_J0839.8+0105_daily_bin706.fits sctable="SC_DATA" expcube=/scratch/kocevski/603190/ltcube_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.fits outfile=/scratch/kocevski/603190/expmap_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.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/603190/ltcube_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.fits
.....................!
real 193.99
user 187.45
sys 5.80

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/603190/ft1_filtered_4FGL_J0839.8+0105_daily_bin706.fits scfile=/scratch/kocevski/603190/ft2_4FGL_J0839.8+0105_daily_bin706.fits outfile=/scratch/kocevski/603190/cmap_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.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 2.37
user 0.37
sys 1.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603190/ft1_filtered_4FGL_J0839.8+0105_daily_bin706.fits scfile=/scratch/kocevski/603190/ft2_4FGL_J0839.8+0105_daily_bin706.fits outfile=/scratch/kocevski/603190/cmap_HighResolution_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.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.98
user 0.37
sys 1.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0256       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.223       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3423       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0701       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7070       1.0000         .10000E-03   10000.    
     6 'norm      '    36.444       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.600       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .49736       1.0000         .10000E-03   10000.    
    12 'norm      '    .64332E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0431       1.0000         .10000E-03   10000.    
    15 'norm      '    10.209       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .54066       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3224       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=   7143.605     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1947 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0208        6.5776        .13803E-05   -.18323E-03
   2  Prefactor     21.172        30.572       -.52148E-04   -.40555E-04
   3  norm          4.3405        7.0552        .12493E-05   -.19488E-03
   4  norm          3.0700        2.3233       -.89263E-07   -.47447E-03
   5  norm          1.7076        1.3100       -.49055E-06   -.12672E-02
   6  norm          36.424        25.386       -.21789E-05   -.12650E-04
   7  norm          4.9238        3.9321        .31899E-05   -.17265E-03
   8  Prefactor     60.612        41.480        .14581E-04   -.91169E-05
   9  norm          1.7410        89.809        .86233E-04   -.74464E-04
  10  Prefactor     .10000E-03    4.5021       -.43633E-08** at limit **
  11  norm          .49743        .52252       -.29050E-07   -.65012E-03
  12  norm          .10136E-03    5.4021        .24223E-05** at limit **
  13  Prefactor     .10000E-03    11.280        .57669E-06** at limit **
  14  norm          6.0439        3.7526        .37628E-06   -.25080E-03
  15  norm          10.202        5.7478       -.12208E-05   -.57390E-04
  16  Prefactor     .10000E-03    22.620       -.40627E-05** at limit **
  17  Prefactor     .10000E-03    1.7637       -.61073E-07** at limit **
  18  Normalizat    .54093        .19025        .65237E-05   -.44955E-03
  19  Prefactor     1.3223        .15080       -.34994E-05   -.43625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.02081
  Prefactor  = 21.172
  norm       = 4.34053
  norm       = 3.07005
  norm       = 1.70757
  norm       = 36.4235
  norm       = 4.92381
  Prefactor  = 60.6117
  norm       = 1.74097
  Prefactor  = 0.0001
  norm       = 0.497431
  norm       = 0.000101357
  Prefactor  = 0.0001
  norm       = 6.04394
  norm       = 10.2021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.540933
  Prefactor  = 1.32233
 **********
 **   18 **HESSE 
 **********

 FCN=   7143.605     FROM HESSE     STATUS=OK           280 CALLS     2227 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0208        6.5636        .16357E-03   -1.5217    
   2  Prefactor     21.172        30.617        .86944E-04   -1.4787    
   3  norm          4.3405        7.0359        .19330E-03   -1.5291    
   4  norm          3.0700        2.3140        .10570E-03   -1.5358    
   5  norm          1.7076        1.3109        .80089E-04   -1.5447    
   6  norm          36.424        25.363        .66387E-04   -1.4500    
   7  norm          4.9238        3.9234        .14284E-03   -1.5264    
   8  Prefactor     60.612        41.478        .51542E-04   -1.4149    
   9  norm          1.7410        88.962        .32222E-03   -1.5444    
  10  Prefactor     .10000E-03    4.5068        .17514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .49743        .50978        .60639E-04   -1.5567    
  12  norm          .10136E-03    52.533        .37404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0439        3.7441        .12264E-03   -1.5216    
  15  norm          10.202        5.7432        .12541E-03   -1.5069    
  16  Prefactor     .10000E-03    23.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3905        .21753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .54093        .20659        .36136E-03   -1.1055    
  19  Prefactor     1.3223        .16617        .19270E-03   -.82646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48424e-08
Minuit parameter uncertainties:
  1  6.56435
  2  30.64
  3  7.03726
  4  2.31404
  5  1.31093
  6  25.3702
  7  3.92362
  8  41.4981
  9  24.9287
  10  1.68298e-05
  11  0.509785
  12  0.0169006
  13  2.35472e-05
  14  3.74424
  15  5.7435
  16  4.47892e-05
  17  2.62893e-05
  18  0.20688
  19  0.166238
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.014e-04  1.690e-02  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.322e+00  1.662e-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:  5.409e-01  2.069e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603190/likelihoodResults_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.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) = 7143.60489195
delta logL = -8.82446420292e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7143.60483527
delta logL = -3.15593688356e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10977E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3328       1.0000          .0000       5.0000    
     3 'Normalizat'    .54240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3212       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=   7143.569     FROM MIGRAD    STATUS=FAILED       189 CALLS      364 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74681E-01    .27562        .39204E-02   -.12690    
   2  alpha         5.0000        3.6037        .50000    ** at limit **
   3  Normalizat    .52345        .21707        .36135E-03   -.45648E-03
   4  Prefactor     1.3303        .16689        .19270E-03   -.44052E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7143.569     FROM SIMPLEX   STATUS=PROGRESS     113 CALLS      477 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74693E-01    .27562        .42332E-06   -1.5763    
   2  alpha         5.0000        3.6037        .83727E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52345        .21707        .45870E-06   -1.1134    
   4  Prefactor     1.3303        .16689        .96621E-07   -.82412    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7143.569     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      511 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74692E-01    .32712        .39825E-03   -.32603E-03
   2  alpha         5.0000        3.2084        .50000    ** at limit **
   3  Normalizat    .52345        .21443        .14454E-04    .17619E-04
   4  Prefactor     1.3303        .16612        .38540E-04    .19587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0746922
  alpha      = 5
  Normalizat = 0.523454
  Prefactor  = 1.33026
 **********
 **   18 **HESSE 
 **********

 FCN=   7143.569     FROM HESSE     STATUS=OK            31 CALLS      542 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74692E-01    .38335        .15930E-04   -1.5763    
   2  alpha         5.0000        2.8108        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52345        .21369        .28908E-05   -1.1134    
   4  Prefactor     1.3303        .16592        .77079E-05   -.82412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34332e-12
Minuit parameter uncertainties:
  1  0.338202
  2  0.000861656
  3  0.214021
  4  0.165982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603190': 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) = 7143.56949406
delta logL = 0.0353096503322

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.469e-02  3.382e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  8.617e-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.330e+00  1.660e-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:  5.235e-01  2.140e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/603190/cmap_HighResolution_422323201_422582401_4FGL_J0839.8+0105_daily_bin706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-08-30 03:09:33.660892', job_id='603190', GAL2='1.33', fit_tolerance='1e-08', EG2='0.52', EG='0.54', time_epoch_completed='1630318173.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.53e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='706' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:09:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 603190: <4FGL_J0839.8+0105_daily_bin706> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin706 129.963 1.0877 422323201 422582401 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

