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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin362
RA = 129.963, Dec = 1.0877
tmin = 333158401, tmax = 333417601
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='600950', job_status='RUN', time_executed='2021-08-30 02:53:38.701924', time_epoch_executed='1630317218.7' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600950

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600950/ft1_4FGL_J0839.8+0105_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600950/ft2_4FGL_J0839.8+0105_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600950/ft1_4FGL_J0839.8+0105_daily_bin362.fits outfile=/scratch/kocevski/600950/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin362.fits ra=129.963 dec=1.0877 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.32
user 5.78
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600950/ft1_filtered_4FGL_J0839.8+0105_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/600950/ft2_4FGL_J0839.8+0105_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/600950/ltcube_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.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/600950/ft2_4FGL_J0839.8+0105_daily_bin362.fits
.....................!
real 12.12
user 11.47
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600950/ft1_filtered_4FGL_J0839.8+0105_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/600950/ft2_4FGL_J0839.8+0105_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/600950/ltcube_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.fits outfile=/scratch/kocevski/600950/expmap_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.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/600950/ltcube_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.fits
.....................!
real 191.21
user 185.20
sys 5.68

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/600950/ft1_filtered_4FGL_J0839.8+0105_daily_bin362.fits scfile=/scratch/kocevski/600950/ft2_4FGL_J0839.8+0105_daily_bin362.fits outfile=/scratch/kocevski/600950/cmap_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.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.76
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600950/ft1_filtered_4FGL_J0839.8+0105_daily_bin362.fits scfile=/scratch/kocevski/600950/ft2_4FGL_J0839.8+0105_daily_bin362.fits outfile=/scratch/kocevski/600950/cmap_HighResolution_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.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.78
user 0.37
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.662       1.0000         .10000E-03   10000.    
     3 'norm      '    9.9438       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4113       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    39.226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7448       1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7800       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3784       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1983       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1485       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2807       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=   5651.321     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1843 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2590        7.3086       -.13278E-06   -.84499E-04
   2  Prefactor     23.661        34.114       -.14923E-05   -.15976E-04
   3  norm          9.9446        12.112        .42380E-06    .81878E-05
   4  norm          .10000E-03    1.5498        .58575E-08** at limit **
   5  norm          2.4113        1.9445       -.58796E-09   -.66150E-04
   6  norm          .10000E-03    9.5215        .98812E-06** at limit **
   7  norm          .10000E-03    3.4269       -.67926E-06** at limit **
   8  Prefactor     .10000E-03    15.506       -.53783E-06** at limit **
   9  norm          39.227        36.957        .12176E-05    .15501E-04
  10  Prefactor     .10000E-03    4.8504        .61864E-06** at limit **
  11  norm          2.7447        1.1987        .12245E-07    .10198E-04
  12  norm          .10000E-03    6.5005       -.93167E-06** at limit **
  13  Prefactor     8.7801        31.787        .16733E-06   -.35645E-05
  14  norm          5.3784        2.2746       -.11245E-06   -.19655E-02
  15  norm          .10000E-03    3.3068        .53260E-06** at limit **
  16  Prefactor     2.3921        57.511        .50555E-05   -.38012E-05
  17  Prefactor     1.1984        3.9285        .25179E-05   -.12766E-03
  18  Normalizat    1.1486        .22983       -.58802E-06   -.35626E-04
  19  Prefactor     1.2806        .18053       -.78840E-07   -.41924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25897
  Prefactor  = 23.661
  norm       = 9.94458
  norm       = 0.0001
  norm       = 2.4113
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 39.2267
  Prefactor  = 0.0001
  norm       = 2.74473
  norm       = 0.0001
  Prefactor  = 8.78013
  norm       = 5.3784
  norm       = 0.0001
  Prefactor  = 2.39205
  Prefactor  = 1.19835
  Normalizat = 1.14864
  Prefactor  = 1.2806
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.321     FROM HESSE     STATUS=OK           268 CALLS     2111 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2590        7.3031        .27332E-03   -1.5407    
   2  Prefactor     23.661        34.158        .82346E-04   -1.4735    
   3  norm          9.9446        12.096        .12707E-03   -1.5077    
   4  norm          .10000E-03    1.5710        .91303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4113        1.9396        .90762E-04   -1.5397    
   6  norm          .10000E-03    9.5529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.4692        .13550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          39.227        36.970        .63998E-04   -1.4455    
  10  Prefactor     .10000E-03    4.8596        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7447        1.2013        .52370E-04   -1.5377    
  12  norm          .10000E-03    6.6053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7801        31.813        .13527E-03   -1.5115    
  14  norm          5.3784        5.4118        .83117E-03   -1.5244    
  15  norm          .10000E-03    3.3170        .13344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3921        57.588        .26489E-03   -1.5399    
  17  Prefactor     1.1984        3.9391        .26060E-03   -1.5489    
  18  Normalizat    1.1486        .27488        .30500E-03   -.88205    
  19  Prefactor     1.2806        .21522        .22874E-03   -.83886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08073e-09
Minuit parameter uncertainties:
  1  7.30597
  2  34.1861
  3  12.0993
  4  6.18246e-07
  5  1.93964
  6  2.5335e-05
  7  1.84167e-06
  8  3.12147e-06
  9  36.9916
  10  7.57115e-06
  11  1.20132
  12  3.0394e-06
  13  31.8742
  14  5.4123
  15  2.86247e-06
  16  23.4986
  17  3.9399
  18  0.275226
  19  0.215365
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.281e+00  2.154e-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.149e+00  2.752e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600950/likelihoodResults_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.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) = 5651.32143984
delta logL = -0.000720597372492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5651.32071925
delta logL = -8.83210304892e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2247       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5651.320     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      274 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16128E-01    23.528        .18142E-01    .12660E-02
   2  alpha         5.0000        2.5032        .16589    ** at limit **
   3  Normalizat    1.1449        .10939        .30500E-03    .13553E-03
   4  Prefactor     1.2824        .59412E-01    .22874E-03    .16042E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0161285
  alpha      = 5
  Normalizat = 1.14494
  Prefactor  = 1.28235
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.320     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16128E-01    3.0070        .73757E-03   -1.5683    
   2  alpha         5.0000        2.5109        .66354E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1449        .29236        .12200E-04   -.88322    
   4  Prefactor     1.2824        .21956        .45747E-04   -.83833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78122e-10
Minuit parameter uncertainties:
  1  0.439098
  2  0.000599881
  3  0.292775
  4  0.219717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600950': 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) = 5651.32001112
delta logL = 0.00070811954447

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.613e-02  4.391e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  5.999e-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.282e+00  2.197e-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.145e+00  2.928e-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/600950/cmap_HighResolution_333158401_333417601_4FGL_J0839.8+0105_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-08-30 03:02:42.974592', job_id='600950', GAL2='1.28', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1630317762.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='7.08e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='362' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 600950: <4FGL_J0839.8+0105_daily_bin362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin362 129.963 1.0877 333158401 333417601 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 :                                   545.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             220.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

