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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin426
RA = 129.963, Dec = 1.0877
tmin = 349747201, tmax = 350006401
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='601100', job_status='RUN', time_executed='2021-08-30 02:53:52.079890', time_epoch_executed='1630317232.08' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601100

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601100/ft1_4FGL_J0839.8+0105_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601100/ft1_4FGL_J0839.8+0105_daily_bin426.fits outfile=/scratch/kocevski/601100/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin426.fits ra=129.963 dec=1.0877 rad=12.0 tmin=349747201.0 tmax=350006401.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.43
user 3.24
sys 2.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601100/ft1_filtered_4FGL_J0839.8+0105_daily_bin426.fits" evtable="EVENTS" scfile=/scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits sctable="SC_DATA" outfile=/scratch/kocevski/601100/ltcube_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.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/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits
.....................!
real 14.69
user 12.07
sys 2.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601100/ft1_filtered_4FGL_J0839.8+0105_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/601100/ltcube_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.fits outfile=/scratch/kocevski/601100/expmap_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.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/601100/ltcube_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.fits
.....................!
real 193.64
user 185.40
sys 7.58

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/601100/ft1_filtered_4FGL_J0839.8+0105_daily_bin426.fits scfile=/scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits outfile=/scratch/kocevski/601100/cmap_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.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.48
user 0.38
sys 2.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601100/ft1_filtered_4FGL_J0839.8+0105_daily_bin426.fits scfile=/scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits outfile=/scratch/kocevski/601100/cmap_HighResolution_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.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 2.57
user 0.39
sys 2.05

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601100/ft1_filtered_4FGL_J0839.8+0105_daily_bin426.fits', '/scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits', expMap='/scratch/kocevski/601100/expmap_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.fits', expCube='/scratch/kocevski/601100/ltcube_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601100/Model_4FGL_J0839.8+0105_daily_bin426.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/601100/ft1_filtered_4FGL_J0839.8+0105_daily_bin426.fits
Spacecraft file(s): /scratch/kocevski/601100/ft2_4FGL_J0839.8+0105_daily_bin426.fits
Exposure map: /scratch/kocevski/601100/expmap_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.fits
Exposure cube: /scratch/kocevski/601100/ltcube_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601100/Model_4FGL_J0839.8+0105_daily_bin426.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6822.67844113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66432E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10905E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0263       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.951       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13778       1.0000         .10000E-03   10000.    
    12 'norm      '    .67471E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.3309       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .84985       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .92923       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2751       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=   6821.896     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1713 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16607        4.9605        .34446E-06   -.89082E-04
   2  Prefactor     .10000E-03    31.754       -.56157E-06** at limit **
   3  norm          .10002E-03    6.4960       -.41968E-06** at limit **
   4  norm          1.0252        .99611       -.30378E-07    .35197E-04
   5  norm          .10000E-03    .56757       -.18757E-08** at limit **
   6  norm          .10000E-03    31.393       -.44096E-06** at limit **
   7  norm          .10000E-03    1.7386        .75845E-08** at limit **
   8  Prefactor     .10000E-03    30.619        .36886E-06** at limit **
   9  norm          17.955        21.393        .18009E-06    .51182E-04
  10  Prefactor     .10000E-03    3.7793       -.45562E-07** at limit **
  11  norm          .13791        .56977        .73018E-06   -.41783E-03
  12  norm          .10018E-03    5.9645        .12133E-05** at limit **
  13  Prefactor     .10000E-03    6.1414       -.11179E-07** at limit **
  14  norm          7.3332        4.3005       -.18179E-07   -.22302E-03
  15  norm          2.1949        6.9302        .20674E-05    .35778E-03
  16  Prefactor     .10000E-03    12.192        .14696E-06** at limit **
  17  Prefactor     .85102        2.7527        .10551E-05   -.16007E-03
  18  Normalizat    .92903        .19818       -.92206E-06   -.18147E-03
  19  Prefactor     1.2749        .15147        .74366E-07   -.28331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.166067
  Prefactor  = 0.0001
  norm       = 0.000100015
  norm       = 1.02516
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9545
  Prefactor  = 0.0001
  norm       = 0.137911
  norm       = 0.000100178
  Prefactor  = 0.0001
  norm       = 7.33322
  norm       = 2.1949
  Prefactor  = 0.0001
  Prefactor  = 0.851024
  Normalizat = 0.929033
  Prefactor  = 1.27491
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.896     FROM HESSE     STATUS=OK           274 CALLS     1987 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16607        93.141        .34394E-02   -1.5626    
   2  Prefactor     .10000E-03    32.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    35.966        .39415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0252        1.0401        .78886E-03   -1.5505    
   5  norm          .10000E-03    .97674        .12074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    31.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7746        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.955        21.423        .94530E-04   -1.4860    
  10  Prefactor     .10000E-03    3.7835        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13791        .57959        .12345E-03   -1.5634    
  12  norm          .10018E-03    40.152        .36319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.3332        4.3070        .12560E-03   -1.5166    
  15  norm          2.1949        7.2453        .27803E-03   -1.5412    
  16  Prefactor     .10000E-03    12.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .85102        2.7441        .24338E-03   -1.5523    
  18  Normalizat    .92903        .22829        .30380E-03   -.95447    
  19  Prefactor     1.2749        .17560        .20448E-03   -.84056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36848e-09
Minuit parameter uncertainties:
  1  7.87575
  2  0.00025177
  3  0.00149297
  4  1.04011
  5  2.40111e-06
  6  0.000152889
  7  4.07295e-06
  8  0.000238234
  9  21.4322
  10  6.28257e-06
  11  0.565248
  12  0.00534714
  13  1.96291e-06
  14  4.30718
  15  7.24823
  16  2.95048e-05
  17  2.74454
  18  0.228533
  19  0.175677
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.002e-04  5.347e-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.275e+00  1.757e-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:  9.290e-01  2.285e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601100/likelihoodResults_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.89585265
delta logL = -0.000116150306894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.89576412
delta logL = -2.7620554647e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99910E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3362       1.0000          .0000       5.0000    
     3 'Normalizat'    .92815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2750       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=   6821.896     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      232 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10049E-03    755.64        .64719E-01** at limit **
   2  alpha         2.3622        3.4323        .41264       -.18315E-04
   3  Normalizat    .92903        .10120        .68671E-01   -.10626E-03
   4  Prefactor     1.2749        .71342E-01    .33060E-01   -.25815E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100489
  alpha      = 2.36219
  Normalizat = 0.929033
  Prefactor  = 1.27491
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.896     FROM HESSE     STATUS=OK            39 CALLS      271 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10049E-03    6.9224        .58340E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3622        3.5299        .16506       -.55151E-01
   3  Normalizat    .92903        .22323        .30380E-03   -.95447    
   4  Prefactor     1.2749        .17336        .20448E-03   -.84056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59804e-10
Minuit parameter uncertainties:
  1  0.00367886
  2  2.54281
  3  0.223448
  4  0.173442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601100': 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) = 6821.89573565
delta logL = 8.45225258672e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.005e-04  3.679e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.362e+00  2.543e+00  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.275e+00  1.734e-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:  9.290e-01  2.234e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/601100/cmap_HighResolution_349747201_350006401_4FGL_J0839.8+0105_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-08-30 03:03:47.267480', job_id='601100', GAL2='1.27', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630317827.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='8.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='426' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 601100: <4FGL_J0839.8+0105_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin426 129.963 1.0877 349747201 350006401 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 :                                   618.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

