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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin702
RA = 129.963, Dec = 1.0877
tmin = 421286401, tmax = 421545601
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='603184', job_status='RUN', time_executed='2021-08-30 02:59:57.018407', time_epoch_executed='1630317597.02' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603184

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603184/ft1_4FGL_J0839.8+0105_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603184/ft2_4FGL_J0839.8+0105_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603184/ft1_4FGL_J0839.8+0105_daily_bin702.fits outfile=/scratch/kocevski/603184/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin702.fits ra=129.963 dec=1.0877 rad=12.0 tmin=421286401.0 tmax=421545601.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 4.13
user 3.41
sys 0.64

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603184/ft1_filtered_4FGL_J0839.8+0105_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/603184/ft2_4FGL_J0839.8+0105_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/603184/ltcube_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.fits outfile=/scratch/kocevski/603184/expmap_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.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/603184/ltcube_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.fits
.....................!
real 191.34
user 185.01
sys 5.94

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/603184/ft1_filtered_4FGL_J0839.8+0105_daily_bin702.fits scfile=/scratch/kocevski/603184/ft2_4FGL_J0839.8+0105_daily_bin702.fits outfile=/scratch/kocevski/603184/cmap_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.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.98
user 0.36
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603184/ft1_filtered_4FGL_J0839.8+0105_daily_bin702.fits scfile=/scratch/kocevski/603184/ft2_4FGL_J0839.8+0105_daily_bin702.fits outfile=/scratch/kocevski/603184/cmap_HighResolution_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.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.11
user 0.36
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.331       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0847       1.0000         .10000E-03   10000.    
     6 'norm      '    13.439       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5725       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15333E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30551E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87412E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73499       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0931       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=   5030.336     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1982 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    11.129        .90712E-02** at limit **
   2  Prefactor     .10005E-03    101.21        .90712E-02** at limit **
   3  norm          20.328        13.507        .22207E-02   -.31667E-03
   4  norm          .10000E-03    .65978        .90712E-02** at limit **
   5  norm          1.0845        1.0516        .11529E-01    .37996E-03
   6  norm          13.435        18.685        .27316E-02   -.46271E-03
   7  norm          1.5697        3.8602        .84736E-02    .27407E-03
   8  Prefactor     .10018E-03    28.540        .90712E-02** at limit **
   9  norm          .10000E-03    9.9682        .90712E-02** at limit **
  10  Prefactor     .10004E-03    29.222        .90712E-02** at limit **
  11  norm          .10000E-03    .60086        .35766E-01** at limit **
  12  norm          .10003E-03    4.8721        .56272E-01** at limit **
  13  Prefactor     .10009E-03    20.558        .90712E-02** at limit **
  14  norm          .10194E-03    2.5754        .73333E-01** at limit **
  15  norm          .10000E-03    4.0007        .90712E-02** at limit **
  16  Prefactor     6.2829        19.494        .40051E-02    .19218E-03
  17  Prefactor     .10002E-03    2.6443        .66460E-01** at limit **
  18  Normalizat    .73522        .19984        .65647E-01   -.33291E-03
  19  Prefactor     1.0932        .15104        .37856E-01   -.13471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.000100052
  norm       = 20.3279
  norm       = 0.0001
  norm       = 1.08451
  norm       = 13.4352
  norm       = 1.56968
  Prefactor  = 0.000100182
  norm       = 0.0001
  Prefactor  = 0.000100044
  norm       = 0.0001
  norm       = 0.000100031
  Prefactor  = 0.000100089
  norm       = 0.000101944
  norm       = 0.0001
  Prefactor  = 6.28289
  Prefactor  = 0.000100018
  Normalizat = 0.735224
  Prefactor  = 1.09316
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.336     FROM HESSE     STATUS=OK           266 CALLS     2248 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    11.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    102.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.328        13.454        .88829E-04   -1.4806    
   4  norm          .10000E-03    .66166        .56254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0845        1.0479        .69615E-04   -1.5500    
   6  norm          13.435        18.632        .10926E-03   -1.4975    
   7  norm          1.5697        3.8173        .20761E-03   -1.5457    
   8  Prefactor     .10018E-03    28.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.9713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    29.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.8013        .10355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10003E-03    15.838        .30298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    20.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10194E-03    44.410        .21329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0747        .13848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2829        19.470        .16020E-03   -1.5207    
  17  Prefactor     .10002E-03    12.915        .22030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .73522        .22691        .29045E-03   -1.0252    
  19  Prefactor     1.0932        .17724        .18806E-03   -.89686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04125e-08
Minuit parameter uncertainties:
  1  0.000820129
  2  0.00461444
  3  13.4558
  4  2.14031e-07
  5  1.04796
  6  18.6401
  7  3.81792
  8  0.00456779
  9  3.1438e-05
  10  0.00230183
  11  1.42491e-05
  12  0.00140248
  13  0.0027087
  14  0.0185972
  15  1.56673e-05
  16  19.4897
  17  0.000969464
  18  0.227203
  19  0.177338
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.402e-03  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.093e+00  1.773e-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.352e-01  2.272e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603184/likelihoodResults_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.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) = 5030.33639036
delta logL = -0.000298931429825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5030.33609146
delta logL = -2.66809365712e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2346       1.0000          .0000       5.0000    
     3 'Normalizat'    .73523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0932       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=   5030.336     FROM MIGRAD    STATUS=FAILED        92 CALLS      255 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    1402.9        .30309E-02** at limit **
   2  alpha         2.1848        2.5492        .16579        .47904E-06
   3  Normalizat    .73523        .52608E-01    .29045E-03    .19180E-04
   4  Prefactor     1.0932        .41097E-01    .18806E-03    .56112E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5030.336     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      412 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    1402.9        .59173E-03** at limit **
   2  alpha         2.1848        2.5492        .10516E-04    .47904E-06
   3  Normalizat    .73523        .52608E-01    .52950E-06    .19180E-04
   4  Prefactor     1.0932        .41097E-01    .80421E-07    .56112E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5030.336     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      440 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    16.426        .60618E-03** at limit **
   2  alpha         2.1903        3.3417        .66318E-02    .64388E-06
   3  Normalizat    .73523        .22545        .11618E-04    .21724E-04
   4  Prefactor     1.0932        .17613        .37612E-04    .59848E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100087
  alpha      = 2.19027
  Normalizat = 0.735229
  Prefactor  = 1.09315
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.336     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    16.172        .12124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1903        2.5806        .13264E-02   -.12421    
   3  Normalizat    .73523        .22543        .23236E-05   -1.0252    
   4  Prefactor     1.0932        .17614        .75224E-05   -.89686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07282e-08
Minuit parameter uncertainties:
  1  0.00237177
  2  287.58
  3  0.225716
  4  0.176231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603184': 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) = 5030.3360914
delta logL = 2.74712874671e-08

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.001e-04  2.372e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.190e+00  2.876e+02  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.093e+00  1.762e-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.352e-01  2.257e-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/603184/cmap_HighResolution_421286401_421545601_4FGL_J0839.8+0105_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-08-30 03:08:36.599887', job_id='603184', GAL2='1.09', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630318116.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='702' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 603184: <4FGL_J0839.8+0105_daily_bin702> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin702> 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) <bullet0242>, 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:08:37 2021
Results reported at Mon Aug 30 03:08:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin702 129.963 1.0877 421286401 421545601 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 :                                   524.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

